/* ==========================================================================
   《最後一毫秒拍賣會 / SNIPE BID v2.0 — BLACK GOLD DIRECTOR'S CUT》
   Luxury 1988 Art-Deco Black & Gold TV Shopping Channel + VHS CRT Aesthetic
   ========================================================================== */

:root {
  --bg-obsidian: #060609;
  --bg-panel: #100f15;
  --bg-panel-elevated: #181620;
  --gold-bright: #fff3c4;
  --gold-main: #e6ba4c;
  --gold-deep: #966c16;
  --gold-border: rgba(230, 186, 76, 0.4);
  --gold-glow: rgba(230, 186, 76, 0.28);
  --crimson: #ff2a40;
  --crimson-dark: #7a0e1a;
  --mint: #2eff9b;
  --cyan: #38e8ff;
  --purple: #be72ff;
  --amber: #ff9c24;
  --text-main: #f6f0e1;
  --text-muted: #a19782;
  --font-display: 'Georgia', 'Songti TC', 'Noto Serif TC', serif;
  --font-sans: 'PingFang TC', 'Hiragino Sans TC', 'Microsoft JhengHei', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ==================== VHS & CRT OVERLAYS ==================== */
#vhs-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
  mix-blend-mode: screen;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

body.vhs-lite #vhs-canvas {
  opacity: 0.14;
}

.crt-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 91;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0) 2px,
    rgba(0, 0, 0, 0.22) 3px,
    rgba(0, 0, 0, 0.22) 4px
  );
  transition: opacity 0.3s ease;
}

body.vhs-lite .crt-scanlines {
  opacity: 0.32;
}

.crt-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 92;
  background: radial-gradient(
    ellipse at center,
    transparent 56%,
    rgba(0, 0, 0, 0.66) 100%
  );
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.88);
}

body.fever-mode .crt-vignette {
  box-shadow: inset 0 0 90px rgba(230, 186, 76, 0.35), inset 0 0 140px rgba(0, 0, 0, 0.85);
}

#impact-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 88;
  opacity: 0;
  transition: opacity 0.12s ease;
}

#impact-flash.flash-gold {
  background: radial-gradient(circle, rgba(255, 232, 138, 0.48), rgba(230, 186, 76, 0.08));
  opacity: 1;
}

#impact-flash.flash-crimson {
  background: radial-gradient(circle, rgba(255, 42, 64, 0.52), rgba(122, 14, 26, 0.12));
  opacity: 1;
}

#impact-flash.flash-mint {
  background: radial-gradient(circle, rgba(46, 255, 155, 0.4), rgba(0, 0, 0, 0));
  opacity: 1;
}

#impact-flash.flash-cyan {
  background: radial-gradient(circle, rgba(56, 232, 255, 0.36), rgba(0, 0, 0, 0));
  opacity: 1;
}

/* Floating Popups */
#floating-fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 94;
  overflow: hidden;
}

.float-pop {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
  animation: float-up-fade 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes float-up-fade {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(0.75); }
  18% { opacity: 1; transform: translate(-50%, -10px) scale(1.12); }
  100% { opacity: 0; transform: translate(-50%, -56px) scale(0.95); }
}

/* Achievement Toast */
.achievement-toast {
  position: fixed;
  top: 72px;
  right: 18px;
  z-index: 96;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #271e0c, #110e16);
  border: 2px solid var(--gold-bright);
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 24px rgba(230, 186, 76, 0.45);
  animation: toast-slide 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes toast-slide {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

.ach-toast-icon { font-size: 26px; }
.ach-toast-tag { font-family: var(--font-mono); font-size: 10px; color: var(--gold-main); letter-spacing: 1px; }
.ach-toast-title { font-size: 14px; font-weight: 900; color: var(--gold-bright); }

/* Chromatic Aberration & Screen Shake */
.screen-shake {
  animation: shake-hard 0.32s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake-hard {
  10%, 90% { transform: translate3d(-3px, 1px, 0); }
  20%, 80% { transform: translate3d(5px, -2px, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 2px, 0); }
  40%, 60% { transform: translate3d(6px, -1px, 0); }
}

.chroma-glitch {
  animation: chroma-burst 0.36s steps(2, end);
}

@keyframes chroma-burst {
  0% { filter: drop-shadow(-3px 0 #ff2a40) drop-shadow(3px 0 #38e8ff); }
  50% { filter: drop-shadow(4px -1px #ff2a40) drop-shadow(-4px 1px #38e8ff); }
  100% { filter: none; }
}

/* ==================== SCREENS ==================== */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10;
}

.screen.active { display: flex; }
.hidden { display: none !important; }

/* ==================== COMMON GOLD CHROME ==================== */
.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--crimson);
  background: rgba(255, 42, 64, 0.14);
  border: 1px solid rgba(255, 42, 64, 0.5);
  padding: 4px 10px;
  border-radius: 3px;
}

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 10px var(--crimson);
  animation: blink-rec 1s infinite;
}

@keyframes blink-rec {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.2; }
}

.vhs-stamp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--gold-bright);
  opacity: 0.85;
}

kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 243, 196, 0.45);
  color: var(--gold-bright);
  vertical-align: middle;
  margin-left: 3px;
}

.btn-gold-primary {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--gold-bright);
  background: linear-gradient(180deg, #fae092 0%, #cf9826 52%, #8e610f 100%);
  color: #140e02;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 13px 28px;
  border-radius: 6px;
  box-shadow: 0 0 28px rgba(230, 186, 76, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.btn-gold-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 243, 196, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-gold-primary:active { transform: translateY(1px) scale(0.98); }

.btn-gold-primary .btn-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: btn-sweep 3s infinite;
}

@keyframes btn-sweep {
  0%, 60% { left: -120%; }
  100% { left: 160%; }
}

.btn-outline-gold {
  cursor: pointer;
  background: rgba(230, 186, 76, 0.09);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 16px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-outline-gold:hover {
  background: rgba(230, 186, 76, 0.22);
  border-color: var(--gold-bright);
  box-shadow: 0 0 14px rgba(230, 186, 76, 0.25);
}

/* ==================== TITLE SCREEN ==================== */
#title-screen {
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 22%, rgba(230, 186, 76, 0.22), transparent 56%),
    repeating-linear-gradient(90deg, rgba(230, 186, 76, 0.03) 0 1px, transparent 1px 64px),
    var(--bg-obsidian);
}

.title-broadcast-frame {
  position: relative;
  width: min(1160px, 100%);
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(22, 19, 28, 0.97), rgba(9, 8, 13, 0.98));
  border: 2px solid var(--gold-main);
  border-radius: 12px;
  box-shadow: 0 0 70px rgba(230, 186, 76, 0.24), inset 0 0 50px rgba(0, 0, 0, 0.85);
  padding: 18px 26px;
  overflow-y: auto;
}

/* Art-Deco Gold Corners */
.deco-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold-bright);
  border-style: solid;
  pointer-events: none;
}
.deco-corner.tl { top: 8px; left: 8px; border-width: 3px 0 0 3px; }
.deco-corner.tr { top: 8px; right: 8px; border-width: 3px 3px 0 0; }
.deco-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 3px 3px; }
.deco-corner.br { bottom: 8px; right: 8px; border-width: 0 3px 3px 0; }

.title-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-border);
  flex-wrap: wrap;
  gap: 10px;
}

.best-score-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(230, 186, 76, 0.09);
  border: 1px solid var(--gold-border);
  padding: 4px 12px;
  border-radius: 4px;
}

.best-score-chip strong { color: var(--mint); }

.title-hero {
  text-align: center;
  padding: 14px 0 12px;
}

.gold-emblem {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 3px;
  color: var(--gold-main);
  border: 1px solid var(--gold-border);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 8px;
  background: rgba(230, 186, 76, 0.08);
}

.main-logo {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 900;
  letter-spacing: 5px;
  background: linear-gradient(180deg, #fff9de 0%, #f7d472 45%, #b57c16 82%, #ffe79e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 5px 18px rgba(230, 186, 76, 0.45));
  line-height: 1.15;
}

.sub-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--gold-bright);
  margin-top: 4px;
}

.sub-logo span {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
}

.title-pitch {
  max-width: 740px;
  margin: 12px auto;
  font-size: 14.5px;
  line-height: 1.6;
  color: #dfd6c0;
}

.title-pitch strong { color: var(--gold-bright); }

.title-feature-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 15px;
}

.pill {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 186, 76, 0.3);
  padding: 5px 12px;
  border-radius: 99px;
}

.pill-icon { margin-right: 5px; }

.mode-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mode-btn {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 190px;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(230, 186, 76, 0.3);
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.mode-btn.selected {
  background: linear-gradient(180deg, rgba(230, 186, 76, 0.22), rgba(230, 186, 76, 0.08));
  border: 2px solid var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 0 20px rgba(230, 186, 76, 0.3);
}

.mode-name { font-size: 14px; font-weight: 900; }
.mode-desc { font-size: 11px; opacity: 0.85; margin-top: 2px; }

.title-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.title-cast-preview {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--gold-border);
}

.cast-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: var(--gold-main);
  text-align: center;
  margin-bottom: 8px;
}

.cast-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.cast-mini-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(230, 186, 76, 0.22);
  border-radius: 6px;
  padding: 7px 5px;
  text-align: center;
}

.cast-mini-avatar { width: 48px; height: 48px; margin: 0 auto 4px; }
.cast-mini-name { font-size: 11.5px; font-weight: 900; color: var(--gold-bright); }
.cast-mini-role { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ==================== MAIN GAME SCREEN ==================== */
#game-screen {
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 30%, rgba(230, 186, 76, 0.14), transparent 56%),
    var(--bg-obsidian);
}

.broadcast-topbar {
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: linear-gradient(180deg, #1b1721 0%, #0b0a0e 100%);
  border-bottom: 2px solid var(--gold-main);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.78);
  z-index: 20;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-bug {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 42, 64, 0.14);
  border: 1px solid rgba(255, 42, 64, 0.55);
  padding: 4px 9px;
  border-radius: 4px;
}

.ch-num { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--gold-bright); }
.ch-name { font-family: var(--font-mono); font-size: 10px; color: var(--crimson); letter-spacing: 1px; }

.lot-indicator {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-main);
  background: rgba(230, 186, 76, 0.09);
  border: 1px solid var(--gold-border);
  padding: 4px 10px;
  border-radius: 4px;
}
.lot-indicator #hud-lot-num { color: var(--gold-bright); font-weight: 700; }
.lot-divider { margin: 0 5px; opacity: 0.4; }

.fever-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 186, 76, 0.35);
  border-radius: 4px;
  padding: 4px 10px;
  transition: all 0.2s;
}

.fever-chip.hot {
  background: linear-gradient(90deg, rgba(255, 136, 0, 0.32), rgba(255, 42, 64, 0.32));
  border-color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(255, 156, 36, 0.5);
  animation: pulse-urgent 0.55s infinite alternate;
}

.fever-lbl { font-size: 10px; color: var(--text-muted); font-weight: 700; }
.fever-val { font-family: var(--font-mono); font-size: 15px; font-weight: 900; color: var(--gold-bright); }

.master-clock-box {
  display: flex;
  align-items: baseline;
  gap: 7px;
  background: #050507;
  border: 2px solid var(--gold-main);
  border-radius: 6px;
  padding: 3px 14px;
  box-shadow: inset 0 0 14px rgba(230, 186, 76, 0.2);
}

.master-clock-box.urgent {
  border-color: var(--crimson);
  box-shadow: 0 0 20px rgba(255, 42, 64, 0.58), inset 0 0 14px rgba(255, 42, 64, 0.35);
  animation: pulse-urgent 0.5s infinite alternate;
}

@keyframes pulse-urgent {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

.clock-label { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-muted); letter-spacing: 1px; }
.clock-digits {
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 700;
  color: var(--gold-bright);
  min-width: 64px;
  text-align: right;
  text-shadow: 0 0 12px rgba(255, 243, 196, 0.65);
}
.master-clock-box.urgent .clock-digits { color: var(--crimson); text-shadow: 0 0 14px var(--crimson); }
.clock-unit { font-family: var(--font-mono); font-size: 10.5px; color: var(--gold-main); }

.player-stat-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gold-border);
  border-radius: 5px;
  padding: 3px 11px;
  min-width: 118px;
}
.stat-lbl { font-size: 9px; letter-spacing: 1px; color: var(--text-muted); }
.stat-val { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: var(--gold-bright); }
.profit-chip .stat-val.positive { color: var(--mint); }
.profit-chip .stat-val.negative { color: var(--crimson); }

.hud-tools { display: flex; gap: 6px; }
.icon-btn {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 5px;
  transition: background 0.15s;
}
.icon-btn:hover { background: rgba(230, 186, 76, 0.22); }

/* ==================== STUDIO 3-COLUMN GRID ==================== */
.studio-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 276px minmax(470px, 1fr) 294px;
  gap: 10px;
  padding: 8px 12px;
}

.rivals-column, .right-column {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
}

/* ==================== AI RIVAL CRT MONITOR CARDS ==================== */
.rival-card {
  position: relative;
  cursor: pointer;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px;
  background: linear-gradient(135deg, #17151f 0%, #0d0c12 100%);
  border: 1px solid rgba(230, 186, 76, 0.28);
  border-radius: 7px;
  padding: 6px 8px;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s, opacity 0.2s;
  overflow: hidden;
}

.rival-card:hover:not(.state-bankrupt) {
  border-color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(230, 186, 76, 0.25);
}

.rival-card.is-leading {
  border-color: var(--gold-bright);
  box-shadow: 0 0 20px rgba(230, 186, 76, 0.45), inset 0 0 16px rgba(230, 186, 76, 0.16);
  background: linear-gradient(135deg, #2b210e 0%, #121016 100%);
}

.rival-card.state-hesitating {
  border-color: var(--amber);
  animation: card-tremble 0.2s infinite;
}

@keyframes card-tremble {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1.5px); }
  75% { transform: translateX(1.5px); }
}

.rival-card.state-snipe {
  border-color: var(--crimson);
  box-shadow: 0 0 18px rgba(255, 42, 64, 0.6);
}

.rival-card.state-jammed {
  border-color: var(--cyan);
  filter: hue-rotate(40deg) contrast(1.25);
}

.rival-card.state-jammed::after {
  content: 'NO SIGNAL // 干擾中';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(56, 232, 255, 0.22) 0 3px, rgba(0, 0, 0, 0.72) 3px 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 13px;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan);
  z-index: 6;
}

.rival-card.state-folded {
  opacity: 0.44;
  filter: grayscale(0.85);
}

.rival-card.state-bankrupt {
  opacity: 0.66;
  border-color: var(--crimson);
  background: linear-gradient(135deg, #26090e 0%, #0d080a 100%);
  cursor: default;
}

.rival-card.state-bankrupt::after {
  content: '破產出局 BANKRUPT';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--crimson);
  border: 2px solid var(--crimson);
  background: rgba(15, 0, 3, 0.9);
  padding: 3px 10px;
  border-radius: 3px;
  box-shadow: 0 0 16px rgba(255, 42, 64, 0.65);
  z-index: 5;
  pointer-events: none;
}

.rival-avatar-box {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 5px;
  background: #07060a;
  border: 1px solid rgba(230, 186, 76, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rival-avatar-box svg { width: 100%; height: 100%; }

.rival-lead-crown {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 10px;
  background: var(--gold-main);
  color: #140e02;
  font-weight: 900;
  padding: 0 4px;
  border-radius: 3px;
  display: none;
}
.rival-card.is-leading .rival-lead-crown { display: block; }

.rival-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 2px;
}

.rival-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.rival-name { font-size: 12.5px; font-weight: 900; color: var(--gold-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rival-tag { font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 3px; background: rgba(230, 186, 76, 0.14); color: var(--gold-main); white-space: nowrap; }

.rival-cash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.rival-cash-val { color: #e4f7ec; font-weight: 700; }

/* Cash health bar */
.rival-cash-bar {
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}
.rival-cash-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--gold-main), var(--mint));
  transition: width 0.3s ease;
}

.rival-tell-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: #ccc;
}
.rival-tell-badge.tell-hot { background: rgba(255, 42, 64, 0.28); color: #ff8593; }
.rival-tell-badge.tell-sweat { background: rgba(56, 232, 255, 0.22); color: var(--cyan); }
.rival-tell-badge.tell-snipe { background: rgba(255, 42, 64, 0.45); color: #fff; animation: blink-rec 0.45s infinite; }
.rival-tell-badge.tell-expert { background: rgba(46, 255, 155, 0.22); color: var(--mint); }

.rival-bubble {
  font-size: 10.5px;
  line-height: 1.2;
  color: #f3ead3;
  background: rgba(0, 0, 0, 0.48);
  border-left: 2px solid var(--gold-main);
  padding: 2px 5px;
  border-radius: 0 4px 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== CENTER STAGE ==================== */
.center-stage {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
}

.event-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  background: linear-gradient(90deg, rgba(255, 42, 64, 0.28), rgba(230, 186, 76, 0.22));
  border: 1px solid var(--crimson);
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(255, 42, 64, 0.3);
  animation: banner-slam 0.28s ease-out;
}
.event-pill {
  font-size: 10.5px;
  font-weight: 900;
  background: var(--crimson);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
}
.event-text { font-size: 12px; font-weight: 900; color: var(--gold-bright); }

.lot-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(90deg, rgba(230, 186, 76, 0.18), rgba(16, 15, 22, 0.96));
  border: 1px solid var(--gold-main);
  border-radius: 8px;
  padding: 7px 13px;
}

.lot-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lot-title-wrap h2 { font-size: 19px; font-weight: 900; color: var(--gold-bright); letter-spacing: 0.5px; }

.modifier-badge {
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(190, 114, 255, 0.24);
  border: 1px solid var(--purple);
  color: #f3dbff;
}
.modifier-badge.mod-good { background: rgba(46, 255, 155, 0.2); border-color: var(--mint); color: #ccffe6; }
.modifier-badge.mod-bad { background: rgba(255, 42, 64, 0.24); border-color: var(--crimson); color: #ffc2c9; }

.item-subtitle { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); letter-spacing: 1px; }

.lot-estimate-box {
  text-align: right;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--gold-border);
  border-radius: 5px;
  padding: 4px 10px;
}
.est-label { display: block; font-size: 9.5px; color: var(--text-muted); }
.est-value { font-family: var(--font-mono); font-size: 13.5px; font-weight: 700; color: var(--gold-main); }

/* Turntable Viewport */
.turntable-viewport {
  position: relative;
  flex: 1;
  min-height: 175px;
  border-radius: 10px;
  border: 2px solid var(--gold-border);
  background: radial-gradient(ellipse at 50% 45%, rgba(230, 186, 76, 0.22) 0%, rgba(15, 13, 21, 0.94) 60%, #07060a 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sunburst-bg {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    rgba(230, 186, 76, 0.06) 0deg 12deg,
    transparent 12deg 24deg
  );
  animation: spin-slow 24s linear infinite;
  pointer-events: none;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spotlight-beam {
  position: absolute;
  top: -30%;
  width: 170px;
  height: 160%;
  background: linear-gradient(180deg, rgba(255, 243, 196, 0.2), transparent 78%);
  pointer-events: none;
  filter: blur(8px);
}
.beam-left { left: 14%; transform: rotate(18deg); animation: sway-left 5s ease-in-out infinite alternate; }
.beam-right { right: 14%; transform: rotate(-18deg); animation: sway-right 5.5s ease-in-out infinite alternate; }
@keyframes sway-left { from { transform: rotate(14deg); } to { transform: rotate(24deg); } }
@keyframes sway-right { from { transform: rotate(-14deg); } to { transform: rotate(-24deg); } }

.stage-grid-floor {
  position: absolute;
  bottom: 0;
  left: -10%;
  right: -10%;
  height: 44%;
  background-image:
    linear-gradient(rgba(230, 186, 76, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 186, 76, 0.12) 1px, transparent 1px);
  background-size: 32px 20px;
  transform: perspective(260px) rotateX(62deg);
  transform-origin: bottom;
  opacity: 0.65;
  pointer-events: none;
}

.stage-badges {
  position: absolute;
  top: 8px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  z-index: 6;
}
.stage-badge { font-size: 10.5px; font-weight: 900; padding: 3px 8px; border-radius: 4px; }
.badge-hot { background: rgba(255, 136, 0, 0.28); border: 1px solid #ff9900; color: #ffd485; }
.badge-snipe { background: rgba(255, 42, 64, 0.38); border: 1px solid var(--crimson); color: #fff; animation: blink-rec 0.45s infinite; }
.badge-trap { background: rgba(190, 114, 255, 0.3); border: 1px solid var(--purple); color: #f3dbff; }
.badge-jammed { background: rgba(56, 232, 255, 0.28); border: 1px solid var(--cyan); color: #d6fbff; }

/* Host PiP Box */
.host-pip {
  position: absolute;
  bottom: 34px;
  left: 10px;
  width: 196px;
  background: rgba(10, 9, 14, 0.9);
  border: 1px solid var(--gold-main);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
  z-index: 6;
}
.host-pip-head {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  background: rgba(230, 186, 76, 0.16);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gold-bright);
  letter-spacing: 0.6px;
}
.host-pip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); animation: blink-rec 1s infinite; }
.host-pip-inner { display: flex; align-items: center; gap: 6px; padding: 5px 6px; }
.host-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 4px; overflow: hidden; border: 1px solid var(--gold-border); }
.host-avatar svg { width: 100%; height: 100%; }
.host-speech { font-size: 10.5px; line-height: 1.25; color: #f5ebd4; }

/* Physical Animated Golden Gavel */
.stage-gavel-box {
  position: absolute;
  bottom: 36px;
  right: 14px;
  width: 96px;
  height: 76px;
  z-index: 6;
  pointer-events: none;
}

.gavel-arm {
  width: 88px;
  height: 68px;
  transform-origin: 85% 65%;
  transform: rotate(0deg);
  transition: transform 0.16s cubic-bezier(0.2, 0.9, 0.3, 1);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.75));
}
.gavel-arm.lift-1 { transform: rotate(22deg); }
.gavel-arm.lift-2 { transform: rotate(42deg); animation: gavel-tremble 0.14s infinite; }
.gavel-arm.slam { transform: rotate(-18deg); transition: transform 0.06s ease-in; }

@keyframes gavel-tremble {
  0%, 100% { transform: rotate(42deg); }
  50% { transform: rotate(46deg); }
}

.gavel-block {
  position: absolute;
  bottom: 2px;
  left: 6px;
  width: 48px;
  height: 11px;
  border-radius: 4px;
  background: linear-gradient(90deg, #5e3d09, #f5d27b, #7a520d);
  border: 1px solid var(--gold-bright);
}

.gavel-shockwave {
  position: absolute;
  bottom: 2px;
  left: 16px;
  width: 30px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  opacity: 0;
}
.gavel-shockwave.boom {
  animation: shockwave-ring 0.45s ease-out forwards;
}
@keyframes shockwave-ring {
  0% { opacity: 1; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(3.2); }
}

/* UV Scan Panel */
.uv-scan-panel {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 235px;
  background: rgba(5, 22, 19, 0.94);
  border: 1px solid var(--mint);
  border-radius: 6px;
  padding: 7px 9px;
  box-shadow: 0 0 22px rgba(46, 255, 155, 0.34);
  z-index: 7;
  animation: scan-pop 0.25s ease-out;
}
@keyframes scan-pop { from { opacity: 0; transform: translateY(-8px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.uv-scan-header { font-family: var(--font-mono); font-size: 9.5px; color: var(--mint); letter-spacing: 1px; margin-bottom: 2px; }
.uv-scan-verdict { font-size: 12.5px; font-weight: 900; color: #fff; margin-bottom: 2px; }
.uv-scan-note { font-size: 10.5px; color: #c5f7de; line-height: 1.3; }

/* Pedestal & Item Art */
.pedestal-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  margin-bottom: 22px;
}

.item-art-container {
  width: 152px;
  height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.88)) drop-shadow(0 0 18px rgba(230, 186, 76, 0.38));
  animation: float-item 2.8s ease-in-out infinite;
}
.item-art-container svg { width: 100%; height: 100%; }
@keyframes float-item { 0%, 100% { transform: translateY(0px) scale(1); } 50% { transform: translateY(-7px) scale(1.02); } }

.velvet-pedestal { width: 168px; display: flex; flex-direction: column; align-items: center; margin-top: -10px; }
.pedestal-rim {
  width: 160px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #3e0d15 0%, #190508 70%, #e6ba4c 100%);
  border: 2px solid var(--gold-main);
  box-shadow: 0 0 18px rgba(230, 186, 76, 0.45);
}
.pedestal-base {
  width: 118px;
  height: 13px;
  background: linear-gradient(90deg, #5d400c, #f7d67e, #8a6014);
  border-radius: 0 0 12px 12px;
  margin-top: -4px;
}

.item-pitch-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 7, 11, 0.88);
  border-top: 1px solid var(--gold-border);
  padding: 5px 12px;
  font-size: 11.5px;
  color: #efe5ce;
  z-index: 6;
}
.pitch-tag { flex-shrink: 0; font-size: 10px; font-weight: 900; background: var(--gold-main); color: #140e02; padding: 2px 6px; border-radius: 3px; }

/* ==================== TELEMETRY: PRICE & GAVEL ==================== */
.auction-telemetry {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 9px;
}

.price-panel {
  background: linear-gradient(180deg, #131118, #08070c);
  border: 2px solid var(--gold-main);
  border-radius: 8px;
  padding: 7px 13px;
  box-shadow: inset 0 0 24px rgba(230, 186, 76, 0.14);
  transition: transform 0.08s ease, border-color 0.15s ease;
}
.price-panel.bid-pop { transform: scale(1.028); border-color: var(--gold-bright); box-shadow: 0 0 26px rgba(255, 243, 196, 0.48); }

.price-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.price-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1px; color: var(--text-muted); }

.high-bidder-tag {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(230, 186, 76, 0.16);
  color: var(--gold-bright);
}
.high-bidder-tag.is-player { background: rgba(46, 255, 155, 0.22); color: var(--mint); border: 1px solid var(--mint); }
.high-bidder-tag.is-phone { background: rgba(190, 114, 255, 0.28); color: #f3dbff; border: 1px solid var(--purple); }

.price-digits-row { display: flex; align-items: baseline; gap: 4px; }
.currency-sign { font-family: var(--font-mono); font-size: 22px; color: var(--gold-main); }
.price-digits {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(230, 186, 76, 0.58);
}
.price-delta { font-family: var(--font-mono); font-size: 12.5px; color: var(--mint); margin-left: auto; }

.gavel-panel {
  background: linear-gradient(180deg, #131018, #08070b);
  border: 2px solid var(--gold-border);
  border-radius: 8px;
  padding: 7px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gavel-panel.danger-zone {
  border-color: var(--crimson);
  box-shadow: 0 0 22px rgba(255, 42, 64, 0.38), inset 0 0 18px rgba(255, 42, 64, 0.22);
}

.gavel-header { display: flex; align-items: center; justify-content: space-between; }
.gavel-call { font-size: 12.5px; font-weight: 900; color: var(--gold-bright); }
.gavel-panel.danger-zone .gavel-call { color: var(--crimson); }
.gavel-bpm { font-family: var(--font-mono); font-size: 11.5px; color: var(--crimson); }

.tension-track {
  position: relative;
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin: 4px 0;
}
.tension-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-main), #ff8800, var(--crimson)); transition: width 0.06s linear; }
.tension-notch { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(0, 0, 0, 0.75); }
.notch-1 { left: 45%; }
.notch-2 { left: 75%; }
#ecg-canvas { width: 100%; height: 26px; display: block; }

/* ==================== PLAYER CONTROL DESK ==================== */
.control-desk {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: linear-gradient(180deg, #191620, #0d0c11);
  border: 1px solid var(--gold-border);
  border-radius: 9px;
  padding: 8px;
}

.bid-tier-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; }

.btn-bid {
  cursor: pointer;
  border-radius: 7px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s, box-shadow 0.12s, opacity 0.15s;
}
.btn-bid:active:not(:disabled) { transform: scale(0.97); }
.btn-bid:disabled { opacity: 0.34; cursor: not-allowed; filter: grayscale(0.75); }

.btn-bid-normal {
  background: linear-gradient(180deg, #f8d884 0%, #c89122 60%, #8c5e0b 100%);
  border: 2px solid var(--gold-bright);
  color: #160f02;
  box-shadow: 0 0 22px rgba(230, 186, 76, 0.4);
}
.btn-bid-normal:hover:not(:disabled) { box-shadow: 0 0 34px rgba(255, 243, 196, 0.68); }

.btn-bid-heavy {
  background: linear-gradient(180deg, #ff5465 0%, #c7182b 65%, #7a0915 100%);
  border: 2px solid #ff9aa4;
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 42, 64, 0.36);
}
.btn-bid-heavy:hover:not(:disabled) { box-shadow: 0 0 30px rgba(255, 42, 64, 0.68); }

.bid-btn-top { font-size: 13.5px; font-weight: 900; }
.bid-btn-amt { font-family: var(--font-mono); font-size: 17px; font-weight: 700; margin-top: 2px; }

.tactic-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tactic-row.tactic-row-4 { grid-template-columns: repeat(4, 1fr); }

.btn-tactic {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gold-border);
  color: var(--text-main);
  transition: all 0.12s;
}
.btn-tactic:hover:not(:disabled) { background: rgba(230, 186, 76, 0.18); border-color: var(--gold-bright); }
.btn-tactic:disabled { opacity: 0.34; cursor: not-allowed; }
.btn-taunt:hover:not(:disabled) { border-color: var(--amber); background: rgba(255, 156, 36, 0.2); }
.btn-scan:hover:not(:disabled) { border-color: var(--mint); background: rgba(46, 255, 155, 0.18); }
.btn-jam:hover:not(:disabled) { border-color: var(--cyan); background: rgba(56, 232, 255, 0.18); }
.btn-fold:hover:not(:disabled) { border-color: var(--purple); background: rgba(190, 114, 255, 0.18); }
.btn-fold.folded-active { background: rgba(190, 114, 255, 0.24); border-color: var(--purple); }

.tactic-title { font-size: 11.5px; font-weight: 900; white-space: nowrap; }
.tactic-sub { font-size: 9.5px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; }

/* ==================== LIVE BROADCAST CHAT ==================== */
.live-chat-panel {
  flex: 1;
  min-height: 105px;
  display: flex;
  flex-direction: column;
  background: rgba(11, 10, 15, 0.94);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: rgba(230, 186, 76, 0.14);
  border-bottom: 1px solid var(--gold-border);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--gold-bright);
}
.viewer-count { color: var(--crimson); }

.chat-feed {
  flex: 1;
  padding: 6px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  line-height: 1.32;
}
.chat-msg { animation: chat-in 0.2s ease-out; }
@keyframes chat-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.chat-user { font-weight: 900; color: var(--gold-main); margin-right: 4px; }
.chat-msg.sys-alert { color: var(--mint); font-weight: 700; }
.chat-msg.sys-trap { color: #ff8593; font-weight: 900; }
.chat-msg.sys-event { color: #ffe07d; font-weight: 900; }

/* ==================== BOTTOM TICKER ==================== */
.broadcast-ticker {
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: #0a090d;
  border-top: 2px solid var(--gold-main);
  overflow: hidden;
}
.ticker-badge {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 11px;
  background: var(--gold-main);
  color: #140e02;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  z-index: 2;
}
.ticker-viewport { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; padding-left: 100%; font-size: 12px; color: var(--gold-bright); animation: ticker-scroll 34s linear infinite; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ==================== CENTER IMPACT BANNER ==================== */
#center-banner {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 89;
  background: rgba(0, 0, 0, 0.36);
}
.banner-inner {
  text-align: center;
  padding: 20px 50px;
  background: linear-gradient(135deg, rgba(16, 14, 22, 0.96), rgba(36, 25, 9, 0.96));
  border-top: 3px solid var(--gold-bright);
  border-bottom: 3px solid var(--gold-bright);
  box-shadow: 0 0 55px rgba(230, 186, 76, 0.58);
  animation: banner-slam 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes banner-slam { from { opacity: 0; transform: scale(1.35); } to { opacity: 1; transform: scale(1); } }
.banner-tag { font-family: var(--font-mono); font-size: 13px; letter-spacing: 3px; color: var(--gold-main); }
.banner-title { font-family: var(--font-display); font-size: 38px; font-weight: 900; color: var(--gold-bright); text-shadow: 0 0 22px rgba(255, 243, 196, 0.75); margin: 4px 0; }
.banner-sub { font-size: 14.5px; font-weight: 700; color: #fff; }

/* ==================== RESULT SCREEN ==================== */
#result-screen {
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(circle at 50% 20%, rgba(230, 186, 76, 0.18), var(--bg-obsidian) 70%);
}
.result-card {
  width: min(1060px, 100%);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  gap: 13px;
  background: linear-gradient(180deg, #17151f, #0b0a0e);
  border: 2px solid var(--gold-main);
  border-radius: 12px;
  padding: 18px 24px;
  overflow-y: auto;
  box-shadow: 0 0 65px rgba(230, 186, 76, 0.26);
}
.result-top-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--gold-border); }
.result-hero { display: flex; align-items: center; gap: 18px; }
.rank-seal {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid var(--gold-bright);
  background: radial-gradient(circle, #3d2a07, #120d03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  color: var(--gold-bright);
  box-shadow: 0 0 30px rgba(230, 186, 76, 0.55);
}
.rank-title { font-size: 26px; font-weight: 900; color: var(--gold-bright); }
.rank-quote { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }

.result-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi-box { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--gold-border); border-radius: 8px; padding: 9px 10px; text-align: center; }
.kpi-label { display: block; font-size: 11px; color: var(--text-muted); }
.kpi-val { display: block; font-family: var(--font-mono); font-size: 20px; font-weight: 700; margin-top: 4px; }
.kpi-val.gold { color: var(--gold-bright); }
.kpi-val.mint { color: var(--mint); }
.kpi-val.crimson { color: var(--crimson); }

.result-columns { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; min-height: 0; }
.result-panel {
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 270px;
  overflow-y: auto;
}
.result-panel h3 { font-size: 13.5px; color: var(--gold-main); border-bottom: 1px solid rgba(230, 186, 76, 0.22); padding-bottom: 6px; }
.lot-receipt-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 5px; background: rgba(255, 255, 255, 0.03); font-size: 12px; }
.lot-receipt-main strong { color: var(--gold-bright); display: block; }
.lot-receipt-sub { font-size: 11px; color: var(--text-muted); }
.lot-receipt-delta { font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.result-awards { display: flex; flex-wrap: wrap; gap: 6px; }
.award-pill { font-size: 11px; font-weight: 900; background: rgba(230, 186, 76, 0.16); border: 1px solid var(--gold-main); color: var(--gold-bright); padding: 4px 10px; border-radius: 99px; }
.ai-standing-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 6px; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); }
.result-actions { display: flex; justify-content: center; gap: 12px; padding-top: 6px; }

/* ==================== MODALS ==================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 95;
  padding: 20px;
}
.modal-window {
  width: min(960px, 100%);
  max-height: 86vh;
  background: #121017;
  border: 2px solid var(--gold-main);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 44px rgba(230, 186, 76, 0.32);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: rgba(230, 186, 76, 0.14); border-bottom: 1px solid var(--gold-border); }
.modal-header h3 { color: var(--gold-bright); font-size: 16px; }
.modal-close { cursor: pointer; background: transparent; border: 1px solid var(--gold-border); color: var(--gold-bright); width: 30px; height: 30px; border-radius: 5px; font-size: 15px; }
.modal-close:hover { background: var(--crimson); border-color: var(--crimson); color: #fff; }

.codex-grid { padding: 14px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px; }
.codex-item { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(230, 186, 76, 0.25); border-radius: 8px; padding: 10px; text-align: center; }
.codex-item.locked { opacity: 0.42; filter: grayscale(1); }
.codex-art { width: 72px; height: 72px; margin: 0 auto 6px; }
.codex-name { font-size: 12px; font-weight: 900; color: var(--gold-bright); }
.codex-truth { font-size: 10.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.35; }

.ach-grid { padding: 16px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ach-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(230, 186, 76, 0.1);
  border: 1px solid var(--gold-main);
}
.ach-card.locked { opacity: 0.42; background: rgba(255, 255, 255, 0.02); border-color: rgba(255, 255, 255, 0.14); filter: grayscale(1); }
.ach-icon { font-size: 28px; flex-shrink: 0; }
.ach-title { font-size: 13.5px; font-weight: 900; color: var(--gold-bright); }
.ach-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.guide-body { padding: 18px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; line-height: 1.6; font-size: 14px; }
.guide-section h4 { color: var(--gold-bright); margin-bottom: 6px; }
.guide-section ul { padding-left: 20px; color: #ddd4be; }
.guide-section li { margin-bottom: 5px; }

@media (max-width: 1140px) {
  .studio-grid { grid-template-columns: 235px minmax(390px, 1fr) 245px; }
  .price-digits { font-size: 31px; }
  .host-pip { display: none; }
  .cast-strip { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  html, body { overflow-y: auto; }
  .studio-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .tactic-row.tactic-row-4 { grid-template-columns: repeat(2, 1fr); }
  .result-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .result-columns { grid-template-columns: 1fr; }
}
