:root {
  --navy-950: #080f1f;
  --navy-900: #0d1629;
  --navy-850: #111c33;
  --navy-800: #15213a;
  --white: #f8f9ff;
  --muted: #aeb9ce;
  --purple: #9b45ff;
  --blue: #4d7cff;
  --cyan: #48c6ff;
  --gold: #d6b16d;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 80px rgba(22, 45, 150, 0.3);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shell: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  min-height: 100%;
  background: var(--navy-950);
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 12%, rgba(70, 68, 255, 0.12), transparent 25rem),
    linear-gradient(180deg, var(--navy-900) 0%, #0a1325 55%, var(--navy-950) 100%);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy-950);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

.site-header.scrolled {
  background: rgba(8, 15, 31, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(155,69,255,.26), rgba(77,124,255,.12));
  font-family: Georgia, serif;
  color: #c9b2ff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 15px;
  border-radius: 99px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
  transition: color .2s, background .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.07);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-block: 132px 84px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .8fr);
  grid-template-areas: "copy visual";
  direction: ltr;
  align-items: center;
  gap: clamp(58px, 8vw, 118px);
}

.hero-copy {
  grid-area: copy;
  direction: rtl;
  text-align: right;
}

.team-names {
  margin: 0 0 48px;
  color: #e8ebf5;
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b8c4dc;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(4.25rem, 8.5vw, 7.9rem);
  line-height: .92;
  letter-spacing: -.075em;
  font-weight: 900;
}

h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(125deg, #fff 15%, #bca3ff 72%, #73a3ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  max-width: 580px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.button-primary {
  color: #080d19;
  background: linear-gradient(105deg, var(--purple), #7770ff 52%, var(--blue));
  box-shadow: 0 14px 38px rgba(93, 86, 255, .32);
}

.text-link {
  border-bottom: 1px solid rgba(255,255,255,.26);
  color: #d7def0;
  font-size: .9rem;
  font-weight: 800;
}

.hero-visual {
  grid-area: visual;
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #2b3bff;
  filter: blur(70px);
  opacity: .34;
  z-index: -2;
}

.hero-image {
  width: 78%;
  aspect-ratio: 1;
  border-radius: 25px;
  background-image: url("../assets/parthenon-reference.png");
  background-size: 336.5% auto;
  background-position: 83.6% 55.4%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 28px 80px rgba(40,55,255,.42);
}

.orbit {
  position: absolute;
  inset: 2%;
  z-index: -1;
  border: 1px solid rgba(136, 128, 255, .2);
  border-radius: 50%;
}

.orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 22px var(--purple);
  top: 12%;
  right: 15%;
}

.orbit-two {
  inset: 11%;
  border-style: dashed;
  transform: rotate(30deg);
}

.orbit-two::after {
  top: auto;
  right: auto;
  left: 8%;
  bottom: 18%;
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan);
}

.visual-badge {
  position: absolute;
  left: -4%;
  bottom: 12%;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  direction: rtl;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  background: rgba(13,22,41,.78);
  box-shadow: 0 15px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}

.visual-badge span {
  color: var(--muted);
  font-size: .7rem;
}

.visual-badge strong {
  font-size: .9rem;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #8f9bb2;
  font-size: .68rem;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 25px;
  background: linear-gradient(var(--purple), transparent);
}

.section {
  position: relative;
  padding-block: clamp(92px, 12vw, 150px);
}

.game-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(77,124,255,.08), transparent 36rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(2.45rem, 6vw, 4.7rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.section-heading p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.game-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(14, 24, 44, .78);
  box-shadow: var(--shadow);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 12%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #776eff, transparent);
}

.game-toolbar {
  min-height: 62px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}

.game-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dfe4f2;
  font-size: .85rem;
  font-weight: 800;
}

.game-status > span {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #49dc97;
  box-shadow: 0 0 14px rgba(73,220,151,.7);
}

.game-status > span.loading {
  background: #ffcc66;
  box-shadow: 0 0 14px rgba(255,204,102,.65);
}

.game-status > span.error {
  background: #ff6879;
  box-shadow: 0 0 14px rgba(255,104,121,.65);
}

.icon-button {
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #dce2f2;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.icon-button:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control-button {
  width: fit-content;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--white);
  background: rgba(255,255,255,.055);
  cursor: pointer;
  font-weight: 800;
  transition: background .2s, border-color .2s;
}

.control-button:hover:not(:disabled) {
  background: rgba(121,100,255,.18);
  border-color: rgba(149,124,255,.45);
}

.control-button:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.questions-section {
  padding-top: 90px;
}

.questions-download {
  margin-top: 22px;
}

.question-viewer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(14, 24, 44, .78);
  box-shadow: var(--shadow);
}

.question-topbar {
  min-height: 66px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.question-topic,
.question-counter {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

.question-counter {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.question-progress {
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
}

.question-progress-fill {
  width: var(--progress, 0%);
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #42d8b0, #ffca68);
  transition: width .35s ease;
}

.question-content {
  min-height: 300px;
  padding: clamp(28px, 6vw, 68px) clamp(24px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.question-number {
  margin: 0 0 16px;
  color: #42d8b0;
  font-size: .88rem;
  font-weight: 900;
}

.question-text {
  max-width: 900px;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  line-height: 1.65;
}

.answer-panel {
  max-width: 900px;
  margin-top: 26px;
  padding: 18px 22px;
  border-inline-start: 3px solid #ffca68;
  background: rgba(255, 202, 104, .08);
  animation: reveal-answer .24s ease-out both;
}

.answer-panel[hidden],
.survey-panel[hidden] {
  display: none;
}

.answer-panel span {
  color: #ffca68;
  font-size: .8rem;
  font-weight: 900;
}

.answer-panel p {
  margin: 6px 0 0;
  color: #e4e9f2;
  font-size: 1.1rem;
  line-height: 1.8;
}

.question-controls {
  min-height: 78px;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.question-controls > :last-child {
  justify-self: end;
}

.answer-toggle {
  border-color: rgba(66, 216, 176, .35);
  color: #8debd2;
}

.survey-panel {
  margin-top: 28px;
}

.survey-panel > p:first-child {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.survey-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.survey-choice[aria-pressed="true"] {
  border-color: #42d8b0;
  color: #8debd2;
  background: rgba(66, 216, 176, .12);
}

.survey-response {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: #8debd2;
  font-size: .9rem;
}

@keyframes reveal-answer {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.game-section {
  padding-top: 90px;
}

.game-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 70%, rgba(88,74,255,.22), transparent 36%),
    #060b15;
}

.game-viewport iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.game-cover,
.game-loading,
.game-error {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 70%, rgba(98,68,255,.26), transparent 40%),
    linear-gradient(rgba(8,15,31,.95), rgba(7,12,24,.98));
}

.game-cover[hidden],
.game-loading[hidden],
.game-error[hidden] {
  display: none;
}

.column-icon {
  height: 72px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-block: 8px solid #c9ac78;
  padding: 4px 8px;
  filter: drop-shadow(0 0 25px rgba(201,172,120,.28));
}

.column-icon span {
  width: 12px;
  height: 48px;
  display: block;
  border-radius: 2px;
  background: linear-gradient(90deg, #8e744c, #e6cea0 45%, #9c8056);
}

.game-kicker {
  margin: 0;
  color: #bba2ff;
  font-size: .76rem;
  font-weight: 900;
}

.game-cover h3 {
  margin: 3px 0 6px;
  font-size: clamp(1.55rem, 4vw, 2.8rem);
  line-height: 1.25;
}

.game-cover > p:not(.game-kicker),
.game-loading span,
.game-error span {
  max-width: 520px;
  margin: 0 0 22px;
  color: var(--muted);
}

.game-loading,
.game-error {
  gap: 10px;
}

.loader-ring {
  width: 46px;
  aspect-ratio: 1;
  margin-bottom: 5px;
  border: 3px solid rgba(255,255,255,.12);
  border-top-color: var(--purple);
  border-right-color: var(--blue);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.game-help {
  min-height: 64px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

kbd {
  margin-inline-end: 4px;
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: #e7eaf3;
  background: rgba(255,255,255,.06);
  font-family: inherit;
  font-size: .72rem;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .82rem;
}

.footer-inner a {
  color: #dce2f0;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  50% { transform: scale(.7); opacity: .5; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 760px); }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas: "visual" "copy";
    padding-block: 118px 100px;
    gap: 42px;
  }

  .hero-visual {
    width: min(78vw, 430px);
    justify-self: center;
  }

  .hero-copy {
    text-align: center;
  }

  .team-names {
    margin-bottom: 25px;
  }

  .hero-copy .eyebrow,
  .hero-actions {
    justify-content: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 28px);
    --radius-xl: 21px;
  }

  html { scroll-padding-top: 70px; }

  .nav { min-height: 66px; }
  .brand > span:last-child { display: none; }
  .brand-mark { width: 35px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 10px; font-size: .78rem; }

  .hero { padding-top: 95px; }
  .hero-visual { width: min(88vw, 370px); }
  .visual-badge { left: 0; bottom: 8%; }
  .team-names { font-size: .92rem; }
  h1 { font-size: clamp(3.7rem, 21vw, 5.7rem); }

  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .button { width: 100%; max-width: 330px; }

  .section { padding-block: 82px; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2 { font-size: 2.7rem; }
  .question-content { min-height: 250px; padding: 28px 22px; }
  .question-controls { min-height: 66px; padding: 10px 12px; gap: 8px; }
  .question-controls .control-button { padding: 8px 10px; font-size: .78rem; }
  .question-topbar { padding: 0 14px; }
  .question-topic, .question-counter { font-size: .76rem; }
  .question-text { font-size: 1.4rem; }
  .answer-panel { padding: 15px 16px; }
  .answer-panel p { font-size: 1rem; }

  .game-toolbar { min-height: 54px; padding-inline: 14px; }
  .control-button { padding: 8px 10px; font-size: .78rem; }

  .game-viewport { min-height: 220px; }
  .game-cover { padding: 18px; }
  .column-icon { height: 54px; margin-bottom: 8px; border-block-width: 6px; }
  .column-icon span { height: 34px; width: 9px; }
  .game-cover > p:not(.game-kicker) { font-size: .8rem; margin-bottom: 14px; }
  .game-help { justify-content: flex-start; gap: 10px 16px; }

  .footer-inner { flex-direction: column; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
