/* ============================================================
   Who Wants to Be a Givernaire? -- deep navy and gold stage, teal accents.
   Mobile first.
   ============================================================ */
.gn-page {
  --navy: #0A1433;
  --navy-2: #101D4A;
  --navy-3: #16275F;
  background: var(--navy);
  color: var(--white);
}
.gn-page .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gn-page [hidden] { display: none !important; }

.gn-stage {
  min-height: calc(100vh - 64px);
  padding: 22px 14px 64px;
  background:
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(253,205,44,0.16), transparent 70%),
    radial-gradient(ellipse 70% 40% at 90% 30%, rgba(19,199,182,0.14), transparent 70%),
    linear-gradient(180deg, #0B1640 0%, #060C24 100%);
}
.gn-wrap { max-width: 560px; margin: 0 auto; }
.gn-center { text-align: center; }

.gn-head { text-align: center; margin-bottom: 14px; }
.gn-logo { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--yellow); }
.gn-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); }
.gn-head h1 { font-size: clamp(1.5rem, 7vw, 2.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; margin-top: 4px; }
.gn-head h1 span { display: block; color: var(--yellow); font-size: 1.25em; }
.gn-round { text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-bottom: 10px; }

.gn-card {
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  border: 2px solid rgba(253,205,44,0.55); border-radius: 22px; padding: 20px 18px; margin-bottom: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}
.gn-card h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.gn-muted { font-size: 0.92rem; line-height: 1.5; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
.gn-fine { font-size: 0.8rem; color: rgba(255,255,255,0.55); text-align: center; margin-top: 12px; }
.gn-error { color: #FF8A80; font-weight: 700; font-size: 0.9rem; min-height: 1.2em; margin-top: 8px; }

.gn-btn {
  display: block; width: 100%; text-align: center; font: inherit; font-weight: 800; font-size: 1rem; padding: 15px 18px;
  border-radius: 999px; border: 0; background: var(--yellow); color: #0A1433; text-decoration: none; margin-top: 14px;
}
.gn-btn:hover { background: var(--yellow-dk); }
.gn-btn:disabled { opacity: 0.55; cursor: default; }
.gn-btn--ghost { background: transparent; color: var(--white); border: 2px solid var(--teal); }
.gn-btn--ghost:hover { background: rgba(19,199,182,0.15); }

/* Gate */
.gn-platforms { border: 0; display: flex; gap: 8px; margin: 14px 0 12px; }
.gn-platforms label { flex: 1; }
.gn-platforms input { position: absolute; opacity: 0; pointer-events: none; }
.gn-platforms span { display: block; text-align: center; padding: 11px 8px; border-radius: 999px; font-weight: 700; border: 2px solid rgba(255,255,255,0.25); cursor: pointer; }
.gn-platforms input:checked + span { background: var(--teal); border-color: var(--teal); color: #06222A; }
.gn-platforms input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.gn-label { display: block; font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.8); margin-bottom: 6px; }
.gn-input { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 14px; border: 2px solid rgba(255,255,255,0.25); background: #0A1433; color: var(--white); }
.gn-input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(253,205,44,0.3); }

/* Rules */
.gn-rule { font-size: 1.05rem; font-weight: 700; line-height: 1.45; color: var(--yellow); margin: 6px 0 10px; }
.gn-rule--fair { color: var(--white); font-weight: 600; font-size: 1rem; }
.gn-how { margin: 6px 0 4px; padding: 0; display: grid; gap: 6px; }
.gn-how li { position: relative; padding-left: 20px; font-size: 0.9rem; line-height: 1.4; color: rgba(255,255,255,0.78); }
.gn-how li::before { content: ''; position: absolute; left: 3px; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

/* Ladder: 12 chips in two rows of six */
.gn-ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin-bottom: 12px; }
.gn-rung { text-align: center; padding: 5px 2px 4px; border-radius: 9px; background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.14); line-height: 1.1; }
.gn-rung small { display: block; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); }
.gn-rung b { font-size: 0.95rem; font-weight: 900; }
.gn-rung.is-haven { border-color: var(--teal); }
.gn-rung.is-haven small::after { content: ' SAFE'; color: var(--teal); }
.gn-rung.is-reached { background: rgba(253,205,44,0.22); border-color: rgba(253,205,44,0.7); }
.gn-rung.is-current { background: var(--yellow); border-color: var(--yellow); color: #0A1433; box-shadow: 0 0 14px rgba(253,205,44,0.6); }
.gn-rung.is-current small { color: #0A1433; }

/* Timer */
.gn-timer { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gn-timer-bar { flex: 1; height: 12px; border-radius: 999px; background: rgba(255,255,255,0.14); overflow: hidden; }
.gn-timer-bar i { display: block; height: 100%; width: 100%; background: var(--teal); border-radius: 999px; transform-origin: left; }
.gn-timer.is-low .gn-timer-bar i { background: #FF5E5E; }
.gn-timer-num { min-width: 2ch; text-align: right; font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.gn-timer.is-low .gn-timer-num { color: #FF8A80; }
.gn-timer.is-off { opacity: 0.35; }

/* Question */
.gn-qmeta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.gn-qnum { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); }
.gn-cat { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: rgba(19,199,182,0.2); color: var(--teal); }
.gn-qtext { font-size: 1.28rem; line-height: 1.3; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.01em; }

.gn-answers { display: grid; gap: 8px; }
.gn-ans {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; font-weight: 700;
  font-size: 1rem; line-height: 1.3; padding: 13px 14px; min-height: 52px; border-radius: 14px; color: var(--white);
  background: #0A1433; border: 2px solid rgba(255,255,255,0.28);
}
.gn-ans i { font-style: normal; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 900; background: var(--yellow); color: #0A1433; }
.gn-ans span { flex: 1; }
.gn-ans em { font-style: normal; font-weight: 900; color: var(--teal); }
.gn-ans:hover:not(:disabled) { border-color: var(--yellow); }
.gn-ans:disabled { cursor: default; }
.gn-ans.is-gone { visibility: hidden; }
.gn-ans.is-right { background: #11875D; border-color: #5DE3A8; }
.gn-ans.is-wrong { background: #A32A2A; border-color: #FF8A80; }
.gn-ans.is-picked { border-color: var(--yellow); background: #1B2C6B; }
.gn-poll { position: absolute; left: 0; bottom: 0; height: 4px; border-radius: 0 0 0 12px; background: var(--teal); opacity: 0.9; }

.gn-lifelines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.gn-life { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; min-height: 62px; border-radius: 14px; font: inherit; color: var(--white);
  background: transparent; border: 2px solid var(--teal); }
.gn-life b { font-size: 1.15rem; font-weight: 900; color: var(--yellow); }
.gn-life small { font-size: 0.62rem; font-weight: 700; text-align: center; line-height: 1.15; }
.gn-life:disabled, .gn-life.is-used { opacity: 0.35; border-style: dashed; }
.gn-life--grace { cursor: default; }
.gn-life--grace.is-ready { border-color: var(--yellow); }
.gn-flash { min-height: 1.4em; margin-top: 12px; text-align: center; font-weight: 800; color: var(--yellow); }

.gn-decide h2 { color: #5DE3A8; }
.gn-haven { font-weight: 800; font-size: 1.02rem; line-height: 1.4; color: var(--yellow); background: rgba(253,205,44,0.12); border: 1.5px solid rgba(253,205,44,0.55); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }

/* Result */
.gn-result { text-align: center; }
.gn-score { font-size: 4.4rem; font-weight: 900; line-height: 1; color: var(--yellow); margin-top: 4px; }
.gn-scorelabel { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.gn-code { font-size: 1.7rem; font-weight: 900; letter-spacing: 0.08em; padding: 12px 8px; margin-bottom: 4px; border: 2px dashed var(--teal); border-radius: 16px; background: #0A1433; user-select: all; word-break: break-all; }
.gn-challenge { margin-top: 16px; font-weight: 800; color: var(--yellow); }

@media (prefers-reduced-motion: reduce) { .gn-timer-bar i { transition: none !important; } }

/* Stop or play on: "Keep climbing" is the big colorful button; banking is
   the smaller plain one under it (the same rule in every game). */
.gn-decide #bankBtn { font-size: 0.9rem; padding-top: 10px; padding-bottom: 10px; font-weight: 700; }
