/* Redeem page: one two-column grid. Row 1 pairs the intro with the live status card,
   row 2 pairs the redemption panel with its result panel; each row shares top and bottom edges. */
.redeem-page .page-body { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.redeem-page .night-layout { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); grid-template-areas: 'intro status' 'form results' 'footer footer'; column-gap: 24px; row-gap: 28px; align-items: stretch; padding-top: 28px; }
.redeem-page .night-layout:has(> #hero-us-status[hidden]) { grid-template-areas: 'intro intro' 'form results' 'footer footer'; }
.redeem-page .night-intro { grid-area: intro; align-self: center; min-width: 0; padding: 8px 0; text-shadow: 0 1px 2px rgb(7 11 9 / 70%), 0 0 24px rgb(7 11 9 / 70%); }
.redeem-page #redeem-form { grid-area: form; animation: night-enter 700ms var(--ease) 140ms both; }
.redeem-page #session-panel { grid-area: results; animation: night-enter 700ms var(--ease) 200ms both; }
.redeem-page .night-layout > .brand-footer { grid-area: footer; }
.night-intro > * { animation: night-enter 700ms var(--ease) both; }
.night-intro > :nth-child(2) { animation-delay: 60ms; }
.night-intro > :nth-child(3) { animation-delay: 120ms; }
.night-intro > :nth-child(4) { animation-delay: 180ms; }

.redeem-page .night-display { margin-top: 0; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.15; }
.redeem-page .night-display > * { display: inline-block; }
.redeem-page .night-lead { max-width: none; margin-top: 14px; color: var(--text-soft); font-size: 16px; line-height: 1.7; }

/* US status: a glass card that echoes the sibling site's key card; it stretches to the intro height. */
.hero-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero-nojs-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.hero-status { --mx: 30%; --my: 20%; grid-area: status; display: flex; flex-direction: column; position: relative; z-index: 2; isolation: isolate; min-width: 0; padding: 22px 26px 16px; border-radius: 8px; color: #eef6ef; background: radial-gradient(120% 90% at 92% -6%, rgb(58 154 124 / 34%) 0%, transparent 58%), linear-gradient(155deg, #16211c 0%, #0a0f0d 72%); box-shadow: inset 0 0 0 1px rgb(214 240 222 / 14%), 0 24px 48px -28px rgb(0 0 0 / 90%); animation: hero-card-in 950ms var(--ease) 200ms both; }
.hero-status::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(440px circle at var(--mx) var(--my), rgb(210 245 220 / 11%), transparent 62%), linear-gradient(115deg, transparent 36%, rgb(205 245 220 / 5%) 48%, transparent 60%); }
.hero-status[data-hero-state='available'], .hero-status[data-hero-state='manual'] { box-shadow: inset 0 0 0 1px rgb(185 232 166 / 26%), 0 24px 48px -28px rgb(0 0 0 / 90%); }
.hero-status-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hero-status-heading h2 { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; margin: 0; color: var(--text); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.hero-region-code { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 30px; height: 22px; padding: 0 6px; border: 1px solid rgb(185 232 166 / 30%); border-radius: 4px; color: var(--brand-lime); font: 600 11px/1 var(--font-mono); letter-spacing: .06em; }
.hero-status-label { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.hero-status-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.hero-status[data-hero-state='loading'] .hero-status-label::before { animation: hero-pulse 1.4s ease-in-out 6; }
.hero-status[data-hero-state='available'] .hero-status-label { color: var(--success); }
.hero-status[data-hero-state='available'] .hero-status-label::before { box-shadow: 0 0 0 3px rgb(87 200 150 / 16%); opacity: 1; }
.hero-status[data-hero-state='manual'] .hero-status-label { color: #e4d6a9; }
.hero-status[data-hero-state='error'] .hero-status-label, .hero-status[data-hero-state='stale'] .hero-status-label { color: var(--accent); }
.hero-status-metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: auto 0; padding: 16px 0; }
.hero-status-metric strong { color: var(--text); font: 600 56px/1 var(--font-sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.hero-status:is([data-hero-state='loading'], [data-hero-state='insufficient_sample'], [data-hero-state='error'], [data-hero-state='stale']) .hero-status-metric strong { color: var(--muted); font-size: 34px; font-weight: 500; }
.hero-status-metric p { min-width: 0; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.hero-status[data-presentation-mode='hidden'] .hero-status-metric { min-height: 44px; align-items: center; }
.hero-status-footer { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid rgb(214 240 222 / 10%); color: var(--muted); font-size: 12px; }
.hero-status-details { position: relative; flex: 0 0 auto; }
.hero-status-details summary { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 0 4px 8px; color: var(--text-soft); cursor: pointer; text-decoration: underline; text-decoration-color: rgb(193 205 197 / 40%); text-underline-offset: 3px; }
.hero-status-details summary:hover { color: var(--text); }
.hero-status-details p { position: absolute; z-index: 5; right: -8px; top: 30px; width: min(300px, 72vw); margin: 0; padding: 14px; border: 1px solid var(--border-strong); border-radius: 6px; background: #121a16; color: var(--text-soft); box-shadow: var(--shadow-md); font-size: 12px; line-height: 1.8; text-shadow: none; }
#hero-us-custom-title, #hero-us-description { min-width: 0; overflow-wrap: anywhere; }
@keyframes hero-card-in { from { opacity: 0; transform: translateY(22px) scale(.97); } }
@keyframes hero-pulse { 50% { opacity: .25; } }

@media (max-width: 1040px) {
  .redeem-page .night-layout { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); column-gap: 20px; }
}
@media (max-width: 880px) {
  .redeem-page .night-layout, .redeem-page .night-layout:has(> #hero-us-status[hidden]) { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'form' 'results' 'status' 'footer'; row-gap: 20px; padding-top: 20px; }
  .redeem-page .night-display { font-size: 40px; }
}
@media (max-width: 600px) {
  .redeem-page .page-body { width: calc(100% - 32px); }
  .redeem-page .night-layout { padding-top: 12px; row-gap: 16px; }
  .redeem-page .night-display { font-size: 34px; }
  .redeem-page .night-lead { margin-top: 10px; font-size: 15px; line-height: 1.65; }
  .redeem-page .night-intro { padding: 4px 0 0; }
  .hero-status { padding: 18px 18px 12px; }
  .hero-status-metric { padding: 14px 0; }
  .hero-status-metric strong { font-size: 40px; }
  .hero-status-footer { font-size: 11.5px; }
}
@media (max-width: 380px) {
  .redeem-page .page-body { width: calc(100% - 24px); }
  .redeem-page .night-display { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .night-intro > *, .redeem-page #redeem-form, .redeem-page #session-panel, .hero-status { animation: none; }
}
