/* The boardroom is a game scene. All controls remain in document flow at every width. */
.hero-game {
  display: block;
  width: min(100%, 1680px);
  max-width: 1680px;
  padding: clamp(12px, 2vw, 28px);
}
.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, .72fr);
  grid-template-rows: auto minmax(40px, 1fr) auto auto;
  gap: 12px clamp(20px, 3.5vw, 58px);
  min-height: min(760px, calc(100svh - 105px));
  height: auto;
  padding: clamp(22px, 3.3vw, 48px);
  overflow: hidden;
  border: 1px solid #e5bd715e;
  border-radius: 18px;
  background: #071015;
  box-shadow: 0 0 0 5px #081115, 0 24px 80px #000b;
}
.hero-stage::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  transform: none;
  background: linear-gradient(90deg, #071015eb 0%, #071015c2 31%, #07101544 57%, #07101512 100%);
}
.hero-stage::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #07101568 0%, transparent 23%, #0710151f 63%, #071015d4 100%);
}
.hero-stage .room-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.hero-stage .room-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  filter: saturate(1.05) contrast(1.05) brightness(1.06);
}
.hero-stage .door-panel { bottom: auto; height: 62%; }
/* The landing scene has its own mission HUD; the legacy progress overlay
   describes a session that has not started and covers controls on phones. */
.hero-stage .arena-hud { display: none; }
.game-scene-label,
.game-roster-title,
.game-objective,
.hero-stage .room-label,
.hero-stage .live-turn,
.hero-stage .fiction-disclosure,
.hero-stage .cast-strip,
.hero-copy-block { position: relative; z-index: 7; min-width: 0; }
.game-scene-label {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #f7d797;
  font: 800 clamp(10px, .9vw, 13px)/1.4 ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
}
.game-scene-label span:last-child { color: #91dacc; font-size: .85em; }
.hero-stage .live-turn {
  grid-column: 2;
  grid-row: 1;
  inset: auto;
  justify-self: end;
  align-self: start;
  padding: 9px 12px;
  border: 1px solid #9de5d966;
  border-radius: 4px;
  background: #071517d9;
  font: 800 11px/1.25 ui-monospace, Consolas, monospace;
  letter-spacing: .05em;
}
.hero-stage .live-turn > span:last-child { display: none; }
.hero-copy-block {
  grid-column: 1;
  grid-row: 2 / 4;
  align-self: end;
  inset: auto;
  max-width: 660px;
  padding: clamp(14px, 2vw, 25px);
  border-left: 3px solid #f5b35b;
  background: linear-gradient(90deg, #071015d9, #071015a1 76%, transparent);
  text-shadow: 0 2px 12px #000;
}
.hero-copy-block .eyebrow {
  margin: 0;
  color: #a9e4e2;
  font: 800 clamp(11px, 1vw, 14px)/1.4 ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
}
.hero-copy-block h1 {
  max-width: 12ch;
  margin: 14px 0;
  font-family: Impact, 'Arial Narrow', system-ui, sans-serif;
  font-size: clamp(48px, 5vw, 88px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.hero-copy-block h1 em { color: #ffca78; }
.hero-copy-block .hero-copy { max-width: 56ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; color: #e9edea; }
.hero-copy-block .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.hero-copy-block .primary,
.hero-copy-block .hero-link,
.hero-copy-block .quiet {
  min-height: 48px;
  border-radius: 5px;
  font-weight: 850;
  letter-spacing: .035em;
}
.hero-copy-block .primary {
  padding: 12px 23px;
  border: 1px solid #ffe0aa;
  background: #ffbb65;
  color: #1a120a;
  box-shadow: 0 0 0 4px #ffbb6520, 0 0 22px #ffbb6540;
}
.hero-copy-block .hero-link {
  margin: 0;
  padding: 11px 16px;
  background: #081619e3;
  color: #d9f3ee;
  border-color: #8ad2d299;
}
.hero-copy-block .quiet { padding: 10px 12px; color: #d8e0dd; }
.game-objective {
  display: grid;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin-top: 22px;
  padding: 9px 13px;
  border: 1px solid #93d9d45c;
  border-left: 3px solid #92e2d7;
  background: #071417df;
  text-shadow: none;
}
.game-objective span { color: #92e2d7; font: 800 10px/1.4 ui-monospace, monospace; letter-spacing: .12em; }
.game-objective b { color: #f8f4e9; font-size: 14px; }
.game-objective small { color: #bbc9c8; font-size: 12px; }
.game-roster-title {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #f8ead0;
  font: 850 16px/1.35 ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
}
.game-roster-title span { color: #8fe0c7; font-size: 11px; white-space: nowrap; }
.hero-stage .cast-strip {
  grid-column: 2;
  grid-row: 3;
  inset: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.hero-stage .cast-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid #7fbdbd65;
  border-left: 3px solid var(--accent, #f5b35b);
  border-radius: 5px;
  background: #061319df;
  color: #f6f1e7;
  font: 800 12px/1.2 ui-monospace, Consolas, monospace;
  letter-spacing: .02em;
  white-space: normal;
  text-transform: uppercase;
  animation: game-judge-arrive .4s ease-out var(--delay) both;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.hero-stage .cast-chip:hover,
.hero-stage .cast-chip:focus-visible { border-color: var(--accent); background: #122429f2; transform: translateY(-3px); }
.hero-stage .cast-chip:focus-visible { outline: 2px solid #fff3d8; outline-offset: 2px; }
.hero-stage .cast-sigil {
  position: absolute;
  top: 5px;
  right: 18px;
  color: var(--accent);
  font: 800 15px/1 ui-monospace, Consolas, monospace;
  text-shadow: 0 0 9px var(--accent);
}
.hero-stage .cast-chip img {
  width: 49px;
  height: 51px;
  flex: none;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--accent, #f5b35b);
  border-radius: 3px;
  filter: saturate(.78);
}
.hero-stage .cast-chip > span { min-width: 0; display: grid; gap: 3px; }
.hero-stage .cast-chip b { font-size: 12px; }
.hero-stage .cast-chip small { display: block; color: #bed0ce; font-size: 10px; line-height: 1.2; overflow: visible; text-overflow: clip; }
.hero-stage .cast-chip .cast-cue { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.hero-stage .cast-chip i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; background: #91e6c9; box-shadow: 0 0 8px #91e6c9; }
.hero-stage .room-label { grid-column: 1; grid-row: 4; inset: auto; align-self: center; color: #d3b995; font-size: 11px; }
.hero-stage .fiction-disclosure { grid-column: 2; grid-row: 4; inset: auto; justify-self: end; align-self: center; text-align: right; color: #cdd6d1; font-size: 10px; }
@keyframes game-judge-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.board-stage { position: relative; overflow: hidden; background: linear-gradient(90deg, #071015f0, #071015d9), url('/assets/boardroom/investor-room-v3.webp') center / cover; }
.board-stage .speaker { width: fit-content; max-width: 100%; padding: 10px 15px; border: 1px solid #9ee4d35e; border-left: 3px solid #ffbb65; background: #08191de8; }
.board-stage .speaker .avatar { border: 2px solid #ffca78; box-shadow: 0 0 0 5px #ffca781d; }
.board-stage.judge-speaking .speaker .avatar { animation: judge-speaking-pulse .55s ease-in-out infinite alternate; }
.board-stage.judge-speaking .speaker .live-dot { background: #90e0d3; box-shadow: 0 0 0 6px #90e0d333, 0 0 18px #90e0d3; }
.board-stage .chat-history { max-height: min(280px, 38svh); border-radius: 4px; background: #061116d9; }
.board-stage .chat-controls { position: relative; z-index: 2; }
@keyframes judge-speaking-pulse { from { transform: scale(1); box-shadow: 0 0 0 4px #ffca7815; } to { transform: scale(1.07); box-shadow: 0 0 0 9px #ffca7855; } }
@media (max-width: 1000px) {
  .hero-stage { grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); gap: 12px 20px; padding: 22px; }
  .hero-copy-block h1 { font-size: clamp(43px, 5.6vw, 67px); }
  .hero-copy-block .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-copy-block .hero-actions > * { width: 100%; justify-content: center; text-align: center; }
  .hero-stage .cast-chip { min-height: 57px; }
  .hero-stage .cast-chip img { width: 38px; height: 42px; }
}
@media (max-width: 740px) {
  .hero-game { padding: 10px; }
  .hero-stage {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 11px;
  }
  .hero-stage::before { background: linear-gradient(180deg, #07101510 0%, #07101565 200px, #071015 390px); }
  .hero-stage::after { background: linear-gradient(180deg, transparent 0%, #071015 300px); }
  .hero-stage .room-backdrop { position: absolute; inset: 0 0 auto; height: clamp(210px, 61vw, 340px); }
  .hero-stage .room-backdrop img { object-position: center 54%; filter: saturate(1.1) brightness(.95); }
  .hero-stage .door-panel { height: clamp(210px, 61vw, 340px); }
  .hero-stage .game-scene-label { margin: 15px 16px 0; }
  .hero-stage .live-turn { align-self: flex-start; margin: 9px 16px 0; }
  .hero-copy-block {
    align-self: stretch;
    width: auto;
    max-width: none;
    margin: clamp(160px, 46vw, 260px) 12px 0;
    padding: 14px;
    border-left: 3px solid #ffbb65;
    background: #071015eb;
  }
  .hero-copy-block h1 { max-width: 100%; font-size: clamp(36px, 8vw, 57px); line-height: 1.04; }
  .hero-copy-block .hero-copy { font-size: 16px; }
  .hero-copy-block .hero-actions { display: grid; grid-template-columns: 1fr; }
  .game-objective { width: 100%; }
  .game-roster-title { align-self: stretch; margin: 20px 18px 9px; }
  .hero-stage .cast-strip { align-self: stretch; margin: 0 12px; }
  .hero-stage .room-label { align-self: flex-start; margin: 18px 16px 0; }
  .hero-stage .fiction-disclosure { align-self: stretch; margin: 6px 16px 18px; text-align: left; }
}
@media (max-width: 420px) {
  .hero-stage .cast-strip { grid-template-columns: minmax(0, 1fr); }
  .hero-stage .cast-chip { min-height: 54px; }
  .hero-stage .cast-chip img { width: 40px; height: 40px; }
  .hero-stage .cast-chip small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stage .cast-chip { animation: none; }
  .hero-stage .room-backdrop, .hero-stage .room-backdrop img { transition: none; animation: none; transform: none; }
  .board-stage.judge-speaking .speaker .avatar { animation: none; }
}
.cabinet-progress { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.cabinet-progress > div { padding:15px; border:1px solid #f6b75f33; border-radius:13px; background:#111d25; }
.cabinet-progress small { display:block; color:#8ea4a6; font-size:10px; letter-spacing:.09em; }
.cabinet-progress strong { display:block; margin-top:7px; color:#f6b75f; font-size:24px; font-variant-numeric:tabular-nums; }
.cabinet-file { flex-wrap:wrap; }
.cabinet-open { min-width:0; }
.cabinet-open > div { min-width:0; }
.cabinet-open strong { white-space:nowrap; }
.cabinet-retry,.cabinet-final { margin:0 8px 4px 54px; }
.cabinet-final { color:#a9b4b4; font-size:11px; letter-spacing:.07em; }
@media (max-width:600px) { .cabinet-progress { grid-template-columns:1fr 1fr; } .cabinet-progress > div:last-child { grid-column:1/-1; } .cabinet-open { grid-template-columns:27px minmax(0,1fr) auto; gap:8px; } .cabinet-open strong { font-size:14px; } .cabinet-retry,.cabinet-final { margin-left:8px; } }
.practice-context{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 18px;padding:12px 16px;border:1px solid #f5b35b55;border-left:4px solid #f5b35b;border-radius:10px;background:#0b1820e8;color:#dbe4df;font-size:13px;line-height:1.5}.practice-context b{color:#f5b35b;white-space:nowrap}.practice-context span{flex:1 1 280px;min-width:0}
