:root {
  --court: #080c14;
  --gold: #c9a227;
  --gold-bright: #f0d078;
  --arena: #e85d04;
  --text: #f4f4f5;
  --muted: #8b95a8;
  --line: rgba(255, 255, 255, 0.07);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Noto Sans SC", sans-serif;
  --orbit-radius:  min(38vw, 320px);
  --bubble-w: clamp(38px, 7vw, 46px);
  --bubble-h: calc(var(--bubble-w) * 1.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--court);
  color: var(--text);
  font-family: var(--font-body);
}

.wall-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 50% 45%, rgba(201, 162, 39, 0.1), transparent 62%),
    radial-gradient(ellipse 40% 30% at 12% 88%, rgba(232, 93, 4, 0.06), transparent),
    radial-gradient(ellipse 35% 28% at 90% 15%, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

.wall-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.15) 2px,
    rgba(255, 255, 255, 0.15) 3px
  );
}

.wall-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 24px 14px;
  /* 不要用整高全宽黑底：现场正中上方要给浮动泡；仅顶部薄渐变护住标题字 */
  background: none;
  pointer-events: none;
}

.wall-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(56px, 8vh, 80px);
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.72), transparent);
  pointer-events: none;
  z-index: -1;
}

.wall-header > * {
  pointer-events: auto;
}

.wall-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.brand {
  font-size: clamp(15px, 3.5vw, 22px);
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.brand-mark { margin-right: 4px; }

.live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 11px;
  font-weight: 700;
  color: #fca5a5;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: livePulse 1.2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.wall-count {
  font-size: clamp(12px, 2.8vw, 16px);
  color: var(--muted);
  white-space: nowrap;
  margin-top: 2px;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.wall-count strong {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 34px);
  margin: 0 3px;
}

.wall-stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  padding: 0 16px 200px;
}

.orbit-rings {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--orbit-radius) * 2 + 120px);
  height: calc(var(--orbit-radius) * 2 + 120px);
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(201, 162, 39, 0.12);
}

.orbit-ring-2 {
  inset: 14%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.04);
}

.orbit-ring-3 {
  inset: 28%;
  border-color: rgba(201, 162, 39, 0.08);
}

.orbit-layer {
  position: fixed;
  inset: 0;
  z-index: 11;
  pointer-events: none;
}

.float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-bubble {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--bubble-w);
  opacity: 0;
  will-change: left, top, transform;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.float-bubble:hover .bubble-frame {
  border-color: rgba(240, 208, 120, 0.65);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.float-bubble.is-pinned .bubble-frame {
  border-color: var(--gold-bright);
  box-shadow: 0 0 28px rgba(201, 162, 39, 0.55);
}

.float-bubble.is-visible {
  opacity: 1;
}

.float-bubble.is-spotlight {
  z-index: 12;
}

.float-bubble.is-spotlight .bubble-frame {
  border-color: var(--gold-bright);
  box-shadow:
    0 0 36px rgba(201, 162, 39, 0.65),
    0 0 80px rgba(232, 93, 4, 0.25);
  transform: scale(1.14);
}

.bubble-frame {
  width: var(--bubble-w);
  height: var(--bubble-h);
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(201, 162, 39, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.55));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s, border-color 0.5s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bubble-frame canvas,
.bubble-frame .bubble-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  background: #101828;
  flex-shrink: 0;
}

.float-bubble .bubble-label {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 9px;
  color: var(--muted);
  text-shadow: 0 2px 8px #000;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.float-bubble.is-spotlight .bubble-label {
  color: var(--gold-bright);
  font-weight: 700;
}

.qr-hub {
  position: relative;
  z-index: 21;
  --qr-size: clamp(140px, 18vw, 240px);
  --qr-pad: 8px;
  --card-pad: 12px;
  box-sizing: border-box;
  width: calc(var(--qr-size) + var(--qr-pad) * 2 + var(--card-pad) * 2);
  max-width: 100%;
  padding: var(--card-pad);
  border-radius: 14px;
  background: rgba(15, 22, 36, 0.88);
  border: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.qr-glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12), transparent 68%);
  pointer-events: none;
  z-index: -1;
  animation: qrPulse 4s ease-in-out infinite;
}

@keyframes qrPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.qr-frame {
  box-sizing: border-box;
  width: 100%;
  padding: var(--qr-pad);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  line-height: 0;
}

#qr-canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
}

.qr-hub h1 {
  font-family: var(--font-body);
  font-size: clamp(9px, 1.35vw, 10px);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
  width: 100%;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
}

.qr-sub {
  color: var(--muted);
  font-size: 8px;
  margin: 0;
  line-height: 1.3;
  width: 100%;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
}

.qr-archive-link {
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.qr-archive-link:hover {
  text-decoration: underline;
}

.qr-url {
  display: none;
  font-size: 9px;
  color: #5c6578;
  word-break: break-all;
  line-height: 1.35;
  margin-top: 4px;
}

.spotlight {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 8px 16px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(8, 12, 20, 0.98) 55%, transparent);
}

.spotlight-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.75;
}

.spotlight-inner {
  --spot-figure-h: clamp(86px, 22vw, 132px);
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(16, 24, 40, 0.92);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}

.spot-body {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.spot-copy {
  flex: 0 1 auto;
  min-width: 0;
}

.spot-radar-wrap {
  flex-shrink: 0;
  width: var(--spot-figure-h);
  height: var(--spot-figure-h);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}

.spot-radar-wrap[hidden] {
  display: none !important;
}

.spot-radar-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.spot-avatar {
  position: relative;
  flex-shrink: 0;
  width: clamp(72px, 18vw, 110px);
  height: var(--spot-figure-h);
  border-radius: 12px;
  overflow: visible;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: #080c14;
  transition: width 0.35s ease, height 0.35s ease;
}

.spot-avatar-glow {
  position: absolute;
  inset: -12px;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.45), transparent 68%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.spot-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  border: 2px solid rgba(240, 208, 120, 0.85);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.spot-avatar.is-hero {
  border-color: var(--gold-bright);
  box-shadow: 0 0 40px rgba(201, 162, 39, 0.45);
}

.spot-avatar canvas,
.spot-avatar .spot-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 11px;
}

.spot-avatar canvas[hidden],
.spot-avatar .spot-img[hidden] {
  display: none !important;
}

.spot-rarity {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 2px;
}

.spot-name {
  font-size: clamp(18px, 4.5vw, 26px);
  font-weight: 900;
  line-height: 1.15;
}

.spot-title {
  font-size: clamp(14px, 3.5vw, 17px);
  color: var(--gold-bright);
  margin: 4px 0;
}

.spot-meta {
  font-size: 12px;
  color: var(--muted);
}

.spot-ovr {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.spot-ovr span {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 42px);
  color: var(--gold-bright);
  line-height: 1;
}

.spot-ovr small {
  color: var(--muted);
  font-size: 12px;
}

.spot-ticker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 4px 0;
  max-width: 720px;
  margin: 0 auto;
  scrollbar-width: none;
}

.spot-ticker::-webkit-scrollbar { display: none; }

.ticker-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-family: inherit;
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  cursor: pointer;
  touch-action: manipulation;
  appearance: none;
}

.ticker-chip.active {
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--gold-bright);
  background: rgba(201, 162, 39, 0.08);
}

/* —— 手机竖屏 —— */
@media (max-width: 600px) {
  :root {
    --orbit-radius: min(34vw, 140px);
  }

  .wall-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .wall-header-left {
    gap: 8px;
  }

  .live-pill { display: none; }

  .wall-stage {
    padding-bottom: 178px;
  }

  .orbit-rings {
    top: 48%;
  }

  .float-layer {
    z-index: 11;
  }

  .qr-hub {
    --card-pad: 8px;
  }

  .spotlight-inner {
    padding: 10px 12px;
    gap: 10px;
  }

  .spot-body {
    gap: 8px;
  }

  .spot-copy { min-width: 0; }

  .spot-radar-wrap {
    width: var(--spot-figure-h);
    height: var(--spot-figure-h);
  }
}

/* —— 横屏手机 / 小平板 —— */
@media (max-height: 500px) and (orientation: landscape) {
  .wall-stage {
    padding-bottom: 120px;
  }

  .spotlight-label,
  .spot-ticker {
    display: none;
  }

  .spotlight-inner {
    flex-direction: row;
    max-width: 90vw;
  }
}

/* —— 大屏电视 —— */
@media (min-width: 1200px) {
  :root {
    --orbit-radius: 360px;
  }

  .wall-header-left {
    max-width: 210px;
  }
}
