:root {
  --ink: #162033;
  --muted: #66758a;
  --paper: #fff7e8;
  --paper-2: #fffdf7;
  --surface: #ffffff;
  --line: #eadbc7;
  --night: #20305a;
  --blue: #477fd3;
  --teal: #249b8c;
  --gold: #f0b848;
  --coral: #eb7358;
  --green: #4fa76d;
  --red: #d95b55;
  --lavender: #8176d6;
  --sky: #72b9e8;
  --shadow: 0 20px 48px rgba(58, 69, 99, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(114, 185, 232, 0.3) 0 240px, transparent 241px),
    radial-gradient(circle at 88% 14%, rgba(240, 184, 72, 0.28) 0 220px, transparent 221px),
    radial-gradient(circle at 82% 78%, rgba(36, 155, 140, 0.18) 0 280px, transparent 281px),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

img,
svg,
canvas,
video {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 70px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 0 18px;
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid rgba(234, 219, 199, 0.78);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(58, 69, 99, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 950;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.topnav a,
.admin-link,
.small-pill,
.round-action,
.answer-button,
.ghost-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: 0;
}

.topnav a {
  padding: 0 15px;
  color: #343a49;
  min-height: 38px;
}

.topnav a:hover {
  background: rgba(71, 127, 211, 0.11);
}

.admin-link {
  min-height: 44px;
  padding: 0 18px;
  background: var(--night);
  color: #fff;
}

.app-shell {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: 42px 0 38px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--coral);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px 0 0;
  color: #424a5d;
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.round-action {
  padding: 0 20px;
  background: var(--night);
  color: #fff;
}

.round-action.alt {
  background: var(--gold);
  color: #241708;
}

.hero-stage {
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
}

.spotlight-card {
  width: min(74vw, 390px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  padding: 34px;
  overflow: hidden;
  border: 9px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--night);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 20, 27, 0.08), rgba(18, 20, 27, 0.86));
  z-index: -1;
}

.spotlight-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.spotlight-content {
  width: 78%;
  align-self: end;
  text-align: center;
}

.spotlight-content h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.75rem, 3.5vw, 2.85rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.spotlight-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.mini-orbit {
  position: absolute;
  width: 96px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(24, 35, 61, 0.16);
}

.mini-orbit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-orbit.one {
  top: 30px;
  left: 18px;
}

.mini-orbit.two {
  right: 0;
  top: 108px;
  width: 118px;
}

.mini-orbit.three {
  left: 86px;
  bottom: 34px;
  width: 108px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.section-head p:last-child {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 700;
}

.control-deck {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 18px;
  align-items: start;
  margin: 0 0 26px;
}

.search-card {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(24, 35, 61, 0.08);
}

.search-card label {
  display: block;
  margin: 0 0 8px 8px;
  font-weight: 950;
}

.search-card input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--paper-2);
  outline: none;
}

.search-card input:focus {
  border-color: var(--teal);
}

.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.small-pill {
  padding: 0 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.small-pill.active,
.small-pill:hover {
  background: var(--night);
  color: #fff;
  border-color: var(--night);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 34px;
}

.stat-token {
  min-height: 104px;
  display: grid;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(18, 20, 27, 0.1);
  border-radius: 999px;
  background: var(--surface);
  text-align: center;
}

.stat-token strong {
  font-size: 2rem;
  line-height: 1;
}

.stat-token span {
  color: var(--muted);
  font-weight: 800;
}

.quiz-wall {
  padding: 34px 0 62px;
}

.ad-zone {
  width: 100%;
  min-height: 96px;
  display: grid;
  place-items: center;
  margin: 10px 0 32px;
  overflow: hidden;
  border: 1px solid rgba(234, 219, 199, 0.82);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 247, 232, 0.7)),
    var(--surface);
}

.ad-zone.compact {
  min-height: 72px;
  margin: 0 0 32px;
}

.adsbygoogle {
  width: 100%;
  min-height: inherit;
}

.round-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
  align-items: start;
}

.quiz-disc {
  --disc-color: var(--blue);
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--ink);
  text-align: center;
}

.disc-media {
  width: min(100%, 238px);
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border: 8px solid var(--surface);
  border-radius: 50%;
  background: var(--disc-color);
  box-shadow: 0 16px 34px rgba(24, 35, 61, 0.16);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.quiz-disc:hover .disc-media {
  transform: translateY(-7px) rotate(-2deg);
  box-shadow: 0 24px 42px rgba(24, 35, 61, 0.2);
}

.disc-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.disc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(18, 20, 27, 0.78));
}

.disc-count {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 1;
  transform: translateX(-50%);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
}

.quiz-disc h3 {
  width: min(100%, 260px);
  min-height: 2.6em;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.disc-category {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.empty-state,
.loading-view,
.error-panel {
  margin: 44px 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.quiz-page {
  padding: 30px 0 64px;
}

.quiz-hero {
  display: grid;
  grid-template-columns: minmax(250px, 380px) 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 30px;
}

.quiz-cover {
  width: min(100%, 360px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 50%;
  background: var(--night);
  box-shadow: var(--shadow);
}

.quiz-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-title-block h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.quiz-title-block p {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 700;
}

.quiz-status {
  position: sticky;
  top: 86px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(24, 35, 61, 0.1);
  backdrop-filter: blur(12px);
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9dfcf;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.status-text {
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.submit-button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #241708;
  font-weight: 950;
}

.question-stack {
  display: grid;
  gap: 18px;
}

.question-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(24, 35, 61, 0.07);
}

.question-number {
  width: 64px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 950;
}

.question-card h2 {
  margin: 2px 0 16px;
  font-size: clamp(1.18rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.answers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.answer-button {
  min-height: 58px;
  justify-content: flex-start;
  padding: 12px 16px;
  border: 2px solid #ece2d3;
  background: var(--paper-2);
  color: var(--ink);
  text-align: left;
}

.answer-button:hover {
  border-color: var(--gold);
}

.answer-button.selected {
  border-color: var(--night);
  background: var(--night);
  color: #fff;
}

.answer-button.correct {
  border-color: var(--green);
  background: rgba(47, 139, 87, 0.12);
  color: #163d28;
}

.answer-button.wrong {
  border-color: var(--red);
  background: rgba(201, 71, 61, 0.12);
  color: #551d18;
}

.score-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 24px;
  border-radius: 32px;
  background: var(--night);
  color: #fff;
}

.score-panel strong {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.score-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 750;
}

.ghost-button {
  width: fit-content;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  color: #fff;
}

body.quiz-mode {
  overflow: hidden;
}

body.quiz-mode .site-footer {
  display: none;
}

body.quiz-mode .app-shell {
  width: min(1180px, calc(100% - 28px));
}

.quiz-play-screen {
  height: calc(100svh - 76px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  overflow: hidden;
  padding: 14px 0;
}

.play-topline {
  display: grid;
  grid-template-columns: auto minmax(220px, 420px);
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.play-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(24, 35, 61, 0.08);
}

.play-progress span {
  color: var(--muted);
  font-weight: 950;
  white-space: nowrap;
}

.play-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.play-identity {
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.72);
}

.quiz-cover.compact {
  width: min(100%, 230px);
  border-width: 8px;
}

.play-identity h1 {
  max-width: 260px;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 0.96;
  text-align: center;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.play-identity .eyebrow {
  margin: 0;
}

.play-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-content: stretch;
  padding: clamp(20px, 3vw, 42px);
  border: 1px solid var(--line);
  border-radius: 42px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.question-kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.play-card h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  align-self: center;
  max-height: 100%;
  overflow: hidden;
}

.play-card.long-question h2 {
  font-size: clamp(1.35rem, 2.35vw, 2.2rem);
  line-height: 1.12;
}

.play-card.very-long-question h2 {
  font-size: clamp(1.08rem, 1.75vw, 1.65rem);
  line-height: 1.16;
}

.answers-grid.single {
  align-self: end;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
}

.answers-grid.single .answer-button {
  min-height: clamp(62px, 9vh, 96px);
  padding: 14px 18px;
  border-radius: 28px;
  font-size: clamp(0.98rem, 1.5vw, 1.2rem);
  line-height: 1.22;
}

.result-card {
  grid-template-rows: auto auto auto auto;
  align-content: center;
  justify-items: start;
}

.result-card strong {
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.88;
}

.result-card p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 750;
  line-height: 1.5;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 24px;
  padding: 0 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 28px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(234, 219, 199, 0.84);
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 12px 30px rgba(58, 69, 99, 0.08);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.footer-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 850;
}

.footer-inner p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.admin-page {
  min-height: calc(100vh - 94px);
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: 46px 0;
}

.admin-card {
  width: min(920px, 100%);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(234, 219, 199, 0.92);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 232, 0.88)),
    var(--surface);
  box-shadow: var(--shadow);
}

.login-card {
  width: min(520px, 100%);
}

.admin-card h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.admin-card p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.admin-form {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-top: 22px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  color: var(--ink);
  outline: none;
}

.admin-form input:focus,
.admin-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(71, 127, 211, 0.14);
}

.form-error {
  padding: 12px 14px;
  border: 1px solid rgba(217, 91, 85, 0.28);
  border-radius: 16px;
  background: rgba(217, 91, 85, 0.1);
  color: #74211d !important;
}

.admin-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.ai-generator {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 247, 0.82);
}

.ai-generator-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
}

.ai-generator-head strong,
.admin-list h2 {
  color: var(--night);
}

.ai-generator code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(32, 48, 90, 0.08);
  overflow-wrap: anywhere;
}

.ai-form {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) minmax(110px, 140px) auto;
  align-items: end;
  margin-top: 0;
}

.generation-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(71, 127, 211, 0.2);
  border-radius: 16px;
  background: rgba(71, 127, 211, 0.09);
  color: var(--night) !important;
}

.ai-note {
  margin: 0;
  font-size: 0.95rem;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list h2 {
  margin: 0 0 4px;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.admin-row strong,
.admin-row small {
  display: block;
  overflow-wrap: anywhere;
}

.admin-row small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
}

body.quiz-mode {
  background:
    linear-gradient(135deg, rgba(71, 127, 211, 0.2) 0 24%, transparent 24% 100%),
    linear-gradient(45deg, transparent 0 66%, rgba(240, 184, 72, 0.24) 66% 100%),
    linear-gradient(90deg, rgba(32, 48, 90, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(32, 48, 90, 0.035) 1px, transparent 1px),
    #fff5e4;
  background-size: auto, auto, 40px 40px, 40px 40px, auto;
}

body.quiz-mode .topbar {
  background: rgba(255, 247, 232, 0.88);
}

.play-progress {
  background: rgba(255, 253, 247, 0.94);
}

.progress-fill {
  background: linear-gradient(90deg, var(--teal), var(--sky), var(--gold));
}

.play-identity {
  border-color: rgba(234, 219, 199, 0.9);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 242, 213, 0.76)),
    var(--surface);
  box-shadow: 0 18px 38px rgba(58, 69, 99, 0.08);
}

.play-card {
  position: relative;
  border-color: rgba(234, 219, 199, 0.92);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 232, 0.94)),
    var(--surface);
}

.play-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: linear-gradient(180deg, var(--coral), var(--gold), var(--teal), var(--blue));
}

.question-kicker,
.play-card h2,
.answers-grid.single,
.result-card > * {
  position: relative;
}

.question-kicker {
  color: var(--blue);
}

.answer-button {
  gap: 12px;
  box-shadow: 0 10px 24px rgba(58, 69, 99, 0.08);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.answer-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(58, 69, 99, 0.12);
}

.answer-letter {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--night);
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(32, 48, 90, 0.08);
}

.answers-grid.single .answer-button:nth-child(1) {
  border-color: rgba(71, 127, 211, 0.28);
  background: #eef5ff;
}

.answers-grid.single .answer-button:nth-child(2) {
  border-color: rgba(36, 155, 140, 0.28);
  background: #edf9f5;
}

.answers-grid.single .answer-button:nth-child(3) {
  border-color: rgba(240, 184, 72, 0.34);
  background: #fff7de;
}

.answers-grid.single .answer-button:nth-child(4) {
  border-color: rgba(235, 115, 88, 0.28);
  background: #fff0eb;
}

.answer-button.selected {
  border-color: var(--night);
  background: linear-gradient(135deg, var(--night), var(--blue));
  color: #fff;
}

.answer-button.selected .answer-letter {
  color: var(--night);
}

.result-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 245, 0.96)),
    var(--surface);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .topnav {
    display: none;
  }

  .hero,
  .control-deck,
  .quiz-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 500px;
  }

  .round-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .play-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .play-identity {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-content: center;
    padding: 10px 14px;
    border-radius: 28px;
  }

  .quiz-cover.compact {
    width: 86px;
    border-width: 5px;
  }

  .play-identity h1 {
    max-width: none;
    text-align: left;
    font-size: clamp(1.4rem, 5vw, 2.4rem);
  }

  .play-identity .eyebrow {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    top: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100vw - 16px);
    max-width: 1180px;
    min-width: 0;
    margin-top: 8px;
    margin-right: auto;
    margin-left: auto;
    padding: 0 10px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
  }

  .admin-link {
    flex-shrink: 0;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .app-shell {
    width: calc(100vw - 16px);
    max-width: 1240px;
    overflow-x: hidden;
  }

  .hero {
    overflow-x: hidden;
  }

  .ad-zone {
    min-height: 82px;
    margin: 6px 0 24px;
    border-radius: 20px;
  }

  .hero-actions {
    max-width: 100%;
  }

  .hero-stage {
    min-height: 360px;
    overflow: hidden;
  }

  .spotlight-card {
    width: min(76vw, 320px);
  }

  .mini-orbit {
    width: 76px;
    border-width: 5px;
  }

  .mini-orbit.two,
  .mini-orbit.three {
    width: 84px;
  }

  .mini-orbit.one {
    left: 0;
  }

  .mini-orbit.two {
    right: 0;
  }

  .mini-orbit.three {
    left: 36px;
  }

  .section-head,
  .quiz-status {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .stats-row,
  .round-grid,
  .answers-grid,
  .question-card {
    grid-template-columns: 1fr;
  }

  .question-number {
    width: 52px;
  }

  .quiz-status {
    border-radius: 28px;
  }

  body.quiz-mode .topbar {
    top: 8px;
    width: calc(100vw - 16px);
    max-width: 1180px;
    min-height: 54px;
    margin-top: 8px;
    margin-right: auto;
    margin-left: auto;
    padding: 0 12px;
  }

  body.quiz-mode .brand img {
    width: 34px;
    height: 34px;
  }

  body.quiz-mode .brand span {
    font-size: 0.95rem;
  }

  body.quiz-mode .admin-link {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .quiz-play-screen {
    height: calc(100svh - 70px);
    gap: 8px;
    padding: 8px 0;
  }

  .play-topline {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
  }

  .play-topline .small-pill {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .play-progress {
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
  }

  .play-progress span {
    font-size: 0.9rem;
  }

  .progress-track {
    height: 10px;
  }

  .play-stage {
    gap: 8px;
  }

  .play-identity {
    display: none;
  }

  .play-card {
    min-width: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 14px;
    border-radius: 26px;
  }

  .play-card::before {
    width: 8px;
  }

  .question-kicker {
    font-size: 0.72rem;
  }

  .play-card h2 {
    font-size: clamp(1.05rem, 5.4vw, 1.65rem);
    line-height: 1.08;
    align-self: center;
    max-height: 100%;
    overflow: hidden;
  }

  .play-card.long-question h2 {
    font-size: clamp(0.92rem, 4.4vw, 1.28rem);
    line-height: 1.12;
  }

  .play-card.very-long-question h2 {
    font-size: clamp(0.82rem, 3.7vw, 1.05rem);
    line-height: 1.14;
  }

  .answers-grid.single {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .answers-grid.single .answer-button {
    min-width: 0;
    min-height: clamp(48px, 8.4vh, 62px);
    padding: 8px 12px;
    border-radius: 18px;
    font-size: clamp(0.9rem, 4.2vw, 1.04rem);
  }

  .answer-letter {
    width: 32px;
    height: 32px;
  }

  .admin-heading,
  .ai-generator-head,
  .ai-form,
  .admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .admin-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 66px 0 28px;
  }

  .admin-card,
  .login-card,
  .admin-dashboard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 28px;
  }

  .admin-card h1 {
    overflow-wrap: anywhere;
  }

  .ai-generator {
    padding: 14px;
    border-radius: 22px;
  }

  .admin-form input,
  .admin-form select,
  .round-action,
  .small-pill {
    max-width: 100%;
  }

  .site-footer {
    width: calc(100vw - 16px);
    max-width: 1180px;
    margin: 20px auto 16px;
    padding-bottom: 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    border-radius: 24px;
  }

  .footer-nav {
    justify-content: start;
  }
}
