:root {
  --ink: #e9e4d9;
  --muted: #9aa3a5;
  --bg: #0e1318;
  --panel: #151d24;
  --line: #29353c;
  --gold: #f5b35b;
  --green: #98d9ac;
  --amber: #f1bb6a;
  --radius: 18px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(
    circle at 76% 6%,
    #233746 0,
    #11181e 32%,
    #0b0f13 70%
  );
  color: var(--ink);
  min-height: 100vh;
}
.scene-shell {
  --scene-image: url('/assets/boardroom/boardroom-cast-960.webp');
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 72px);
}
.scene-shell::before {
  content: "";
  position: fixed;
  inset: 72px 0 0;
  z-index: -2;
  pointer-events: none;
  background-image: var(--scene-image);
  background-position: center;
  background-size: cover;
  filter: saturate(.82) contrast(1.03);
  opacity: .54;
}
.scene-shell::after {
  content: "";
  position: fixed;
  inset: 72px 0 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5,9,12,.48), rgba(5,9,12,.73) 56%, rgba(5,9,12,.9));
}
.scene-arrival { --scene-image: url('/assets/boardroom/boardroom-cast-960.webp'); }
.scene-objective,.scene-evidence,.scene-control { --scene-image: url('/assets/boardroom/diligence-room-v2.webp'); }
.scene-brief,.scene-cabinet { --scene-image: url('/assets/boardroom/executive-office-intake-v2.webp'); }
.scene-pitch,.scene-league { --scene-image: url('/assets/boardroom/boardroom-cast-960.webp'); }
.scene-verdict { --scene-image: url('/assets/boardroom/verdict-boardroom-v2.webp'); }
button,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
  border-bottom: 1px solid #ffffff12;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #0e1318cc;
  backdrop-filter: blur(18px);
}
.brand {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #cbd0ce;
}
.brand b {
  color: var(--gold);
  font-weight: 700;
}
.seal {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin-right: 10px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0;
}
.sandbox {
  font-size: 10px;
  letter-spacing: 0.13em;
  color: #7f8b8d;
}
.ghost,
.quiet {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 12px 14px;
}
.hero {
  max-width: 1300px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 116px) clamp(20px, 5vw, 80px) 56px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 70px;
  align-items: center;
}
.eyebrow,
.panel-kicker {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero h1 {
  font-weight: 300;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 20px 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-copy {
  font-size: 18px;
  line-height: 1.6;
  max-width: 540px;
  color: #b6c0c0;
}
.hero-actions,
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}
.primary {
  border: 0;
  border-radius: 999px;
  padding: 15px 20px;
  background: var(--gold);
  color: #1a1b19;
  font-weight: 800;
  box-shadow: 0 10px 30px #f5b35b26;
  transition:
    0.2s transform,
    0.2s box-shadow;
}
.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px #f5b35b40;
}
.primary span {
  padding-left: 16px;
}
.hero-room {
  min-height: 350px;
  position: relative;
  border: 1px solid #ffffff14;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, #283a47, #11171c 68%);
  box-shadow:
    inset 0 0 100px #0008,
    0 30px 80px #0005;
}
.hero-room:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    #f5b35b1c 50%,
    transparent 70%
  );
  transform: skewX(-15deg);
}
.door-glow {
  position: absolute;
  width: 55%;
  height: 75%;
  left: 23%;
  top: 5%;
  border: 1px solid #ffffff30;
  border-bottom: 0;
  background: linear-gradient(90deg, #10161a, #334a59, #10161a);
  box-shadow: 0 0 80px #a7d2e421;
}
.room-label {
  position: absolute;
  left: 26px;
  top: 22px;
  color: #b8c5c5;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.portrait-grid {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 65px;
  display: flex;
  justify-content: space-around;
  gap: 15px;
}
.portrait {
  width: 92px;
  height: 130px;
  border-radius: 52px 52px 26px 26px;
  background: linear-gradient(#859baa, #283a43 48%, #162028 49%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 13px;
  color: #dce4df;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  box-shadow: 0 8px 20px #0008;
  border: 1px solid #ffffff24;
}
.portrait .initial {
  font-size: 24px;
  color: #fff9;
  margin-bottom: 5px;
}
.p1 {
  transform: translateY(-18px);
  background: linear-gradient(#d19a7b, #5a3d43 48%, #231e28 49%);
}
.p2 {
  background: linear-gradient(#b9a88c, #55514a 48%, #292a28 49%);
}
.table-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(170deg, #66492d, #251f1a);
  border-top: 2px solid #f5b35b40;
  box-shadow: 0 -15px 50px #0008;
}
.tabs {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  padding: 15px 0;
  background: transparent;
  border: 0;
  color: #839092;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  position: relative;
}
.tabs button.active {
  color: var(--ink);
}
.tabs button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}
.content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 80px) 100px;
}
.scene-shell .content { min-height: calc(100vh - 120px); }
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}
.panel {
  background: linear-gradient(135deg, #18222aee, #11181eec);
  border: 1px solid #ffffff13;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 16px 42px #00022;
}
.panel h2 {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 14px 0;
}
.panel h3 {
  font-size: 22px;
  font-weight: 500;
}
.muted {
  color: var(--muted);
  line-height: 1.55;
}
.intake textarea {
  width: 100%;
  height: 150px;
  resize: vertical;
  margin: 25px 0 0;
  padding: 16px;
  color: var(--ink);
  background: #0a0f13;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  line-height: 1.5;
}
.intake textarea:focus {
  border-color: var(--gold);
}
.mic {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #10171c;
  color: #d7dfdc;
  padding: 13px 18px;
}
.mic span {
  margin-left: 5px;
}
.upload {
  margin-top: 25px;
  border: 1px dashed #627078;
  border-radius: 14px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #d2d9d4;
}
.upload small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.upload-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff14;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 22px;
}
.upload input {
  display: none;
}
.principle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 330px;
}
.quote {
  font-size: 32px;
  line-height: 1.15;
  margin: 35px 0 20px;
  color: #f3eee4;
  letter-spacing: -0.04em;
}
.principle-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.principle-list span,
.focus {
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 10px;
  color: #bac3c0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin: 30px 0;
  gap: 9px;
}
.cash span {
  color: var(--muted);
  font-size: 12px;
}
.cash strong {
  text-align: right;
  color: var(--gold);
}
.evidence-row,
.choice {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  width: 100%;
  border: 1px solid transparent;
  background: #ffffff06;
  color: var(--ink);
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
  transition: 0.2s;
}
.evidence-row:hover,
.choice:hover,
.evidence-row.selected {
  background: #ffffff0d;
  border-color: #f5b35b55;
}
.evidence-row > span {
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}
.evidence-row b,
.choice b {
  display: block;
  font-weight: 600;
}
.evidence-row small,
.choice span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.4;
}
.decision h2 {
  margin-bottom: 24px;
}
.board {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}
.board-stage {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.speaker,
.seat,
.judge {
  display: flex;
  align-items: center;
  gap: 14px;
}
.speaker {
  margin: 25px 0;
}
.speaker small,
.seat small,
.judge small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent, var(--gold)), #252c32);
  color: #1a1b19;
  font-weight: 800;
}
.avatar-soren {
  background: linear-gradient(135deg, var(--gold), #805a32);
}
.live-dot {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ed6e6e;
  box-shadow: 0 0 0 5px #ed6e6e22;
}
.board blockquote {
  font-size: 28px;
  line-height: 1.24;
  margin: 0 0 20px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  max-width: 700px;
}
.seat {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.seat > span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #172024;
  font-size: 10px;
  font-weight: 800;
}
.verdict-hero {
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid #ffffff18;
  position: relative;
  overflow: hidden;
}
.verdict-hero:after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  right: -70px;
  top: -100px;
  background: #ffffff15;
  filter: blur(2px);
}
.verdict-hero.green {
  background: linear-gradient(120deg, #1c4235, #15251f);
}
.verdict-hero.amber {
  background: linear-gradient(120deg, #49351f, #211c17);
}
.verdict-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #d8dfda;
  text-transform: uppercase;
}
.verdict-hero h2 {
  font-size: 46px;
  margin: 18px 0 4px;
}
.score {
  font-size: 80px;
  font-weight: 300;
  letter-spacing: -0.08em;
}
.score small {
  font-size: 20px;
  letter-spacing: 0;
  color: #adbaaf;
}
.verdict-hero p {
  max-width: 550px;
  color: #c5d0c9;
  line-height: 1.6;
}
.judges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 18px;
}
.judge {
  align-items: flex-start;
  padding: 20px;
  background: #ffffff05;
  border: 1px solid #ffffff12;
  border-radius: var(--radius);
}
.judge p {
  font-size: 13px;
  color: #c4cdca;
  line-height: 1.45;
}
.focus {
  font-size: 9px;
}
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dashboard h2 {
  font-size: 42px;
  font-weight: 400;
  margin: 12px 0 16px;
}
.table {
  min-height: 160px;
}
.rank {
  display: grid;
  grid-template-columns: 50px 1fr 70px 180px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.rank span {
  color: var(--gold);
  font-size: 13px;
}
.rank strong {
  font-size: 24px;
  color: var(--gold);
}
.rank small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 9px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.metric {
  background: #ffffff06;
  border: 1px solid #ffffff13;
  border-radius: 16px;
  padding: 24px;
}
.metric small,
.metric span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.metric strong {
  display: block;
  font-size: 42px;
  color: var(--gold);
  font-weight: 300;
  margin: 12px 0;
}
.freshness {
  font-size: 11px;
}
.empty {
  text-align: center;
  padding: 70px 20px;
}
.cabinet-icon {
  font-size: 56px;
  color: var(--gold);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #f5b35b;
  color: #1b1d1a;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 12px;
  transition: 0.2s;
  z-index: 8;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-room {
    min-height: 250px;
  }
  .split,
  .board {
    grid-template-columns: 1fr;
  }
  .judges {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .topbar {
    height: 62px;
    padding: 0 17px;
  }
  .sandbox {
    display: none;
  }
  .hero {
    padding-top: 45px;
  }
  .hero h1 {
    font-size: 50px;
  }
  .content {
    padding-top: 24px;
  }
  .panel {
    padding: 22px;
  }
  .tabs {
    gap: 18px;
    overflow: auto;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .rank {
    grid-template-columns: 35px 1fr 60px;
  }
  .rank small {
    display: none;
  }
  .hero-room {
    min-height: 230px;
  }
  .portrait {
    width: 68px;
    height: 98px;
    font-size: 7px;
  }
  .portrait .initial {
    font-size: 18px;
  }
  .board blockquote {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.registration-control { margin: 18px 0; padding: 24px; border: 1px solid #ffffff13; border-radius: 18px; background: linear-gradient(135deg, #15212a, #10171d); }
.registration-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.registration-summary div { padding: 14px; border: 1px solid #ffffff12; border-radius: 12px; background: #ffffff05; }
.registration-summary span, .registration-chart span { display: block; color: var(--muted); font-size: 11px; }
.registration-summary strong { display: block; margin-top: 6px; color: var(--gold); font-size: 28px; }
.registration-chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.registration-chart { min-width: 0; padding: 16px; border: 1px solid #ffffff10; border-radius: 14px; background: #090e1280; }
.registration-chart h3 { margin: 5px 0; font-size: 16px; }
.registration-bars { display: flex; height: 150px; align-items: end; gap: 4px; margin-top: 16px; overflow-x: auto; }
.registration-bars > div { display: flex; min-width: 12px; height: 100%; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.registration-bars b { color: #dce8f7; font-size: 9px; }
.registration-bars i { display: block; width: 100%; min-height: 3px; border-radius: 4px 4px 1px 1px; background: linear-gradient(#8ab8ff, #5071b8); }
.registration-bars small { color: #7f8b8d; font-size: 8px; writing-mode: vertical-rl; }
@media (max-width: 850px) { .registration-chart-grid { grid-template-columns: 1fr; } .registration-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.secondary {
  border: 1px solid #f5b35b99;
  border-radius: 999px;
  padding: 14px 19px;
  background: #f5b35b14;
  color: #f8ca8a;
  font-weight: 750;
  transition:
    0.2s transform,
    0.2s background,
    0.2s box-shadow;
}
.secondary:hover {
  transform: translateY(-2px);
  background: #f5b35b25;
  box-shadow: 0 10px 26px #f5b35b1f;
}
.secondary span {
  padding-left: 16px;
}
button:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f5b35b;
  outline-offset: 3px;
}
.account-row .quiet:focus-visible {
  outline-offset: 4px;
}
