/* 3-Round Contest: public site. Colours come from the contest medal (red, gold, cream)
   and the Reach for the Stars mark (teal, amber). */
/* The hidden attribute always wins, even over components that set display (flex, grid). */
[hidden] { display: none !important; }

:root {
  --red: #c8161d;
  --red-600: #a50f15;
  --maroon: #5b0a0e;
  --maroon-900: #2b0608;
  --gold: #d9a84e;
  --gold-600: #b8862f;
  --gold-300: #f0d49a;
  --gold-100: #fbf1db;
  --cream: #fbf7ef;
  --paper: #ffffff;
  --ink: #1d1515;
  --ink-2: #4b3f3c;
  --muted: #7b6e6a;
  --line: #ece2d3;
  --teal: #1d5a6c;
  --green: #1f8a4c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(43, 6, 8, .06), 0 10px 30px -12px rgba(43, 6, 8, .18);
  --shadow-lg: 0 30px 60px -25px rgba(43, 6, 8, .45);
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--paper); padding: 8px 14px; border-radius: 8px; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 17px; height: 17px; }
.muted { color: var(--muted); font-size: .92rem; }
.muted-light { color: rgba(255, 255, 255, .7); font-size: .88rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 .98rem/1 var(--font-head); padding: .95em 1.4em; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .7em 1.05em; font-size: .9rem; }
.btn-gold { background: linear-gradient(180deg, #f2cf86, var(--gold) 55%, var(--gold-600)); color: var(--maroon-900); box-shadow: 0 8px 22px -10px rgba(217, 168, 78, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(200, 22, 29, .8); }
.btn-red:hover { background: var(--red-600); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { color: var(--maroon); border-color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn.is-soon { opacity: .55; cursor: not-allowed; transform: none; }

/* Top bar and navigation */
.topbar { background: var(--maroon-900); color: var(--gold-300); font-size: .84rem; }
.topbar .wrap { display: flex; gap: .5em; align-items: center; justify-content: center; padding: .55em 0; text-align: center; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font: 900 1.08rem var(--font-head); letter-spacing: -.01em; }
.brand-txt small { font: 600 .7rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-top: 3px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font: 600 .92rem var(--font-head); color: var(--ink-2); padding: .55em .8em; border-radius: 999px; }
.nav-links a:hover { color: var(--red); background: var(--gold-100); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.pl-short { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; border-radius: 10px; cursor: pointer; color: var(--ink); }

/* State picker */
.picker { position: relative; }
.picker-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; z-index: 60; }
.picker-head { font: 700 .72rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 10px 8px; }
.picker-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 12px; text-decoration: none; }
.picker-item:hover { background: var(--cream); }
.picker-item span { display: flex; flex-direction: column; line-height: 1.25; }
.picker-item strong { font-family: var(--font-head); }
.picker-item small { color: var(--muted); }

.badge { font: 700 .7rem var(--font-head); font-style: normal; letter-spacing: .04em; text-transform: uppercase; padding: .42em .75em; border-radius: 999px; white-space: nowrap; }
.badge-open { background: #e3f4ea; color: var(--green); }
.badge-coming_soon { background: var(--gold-100); color: #8a5f12; }
.badge-closed { background: #f1ecea; color: var(--ink-2); }
.badge-hidden { background: #eee; color: #666; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--maroon-900); overflow: hidden; padding: 72px 0 0; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 520px at 78% 30%, rgba(217, 168, 78, .28), transparent 60%),
    linear-gradient(100deg, rgba(43, 6, 8, .97) 30%, rgba(70, 8, 11, .9) 62%, rgba(91, 10, 14, .78)),
    var(--hero-img) center/cover no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(1.4px 1.4px at 12% 22%, #f6dfa8 50%, transparent 51%), radial-gradient(1.2px 1.2px at 32% 70%, #f6dfa8 50%, transparent 51%), radial-gradient(1.6px 1.6px at 55% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 80%, #f6dfa8 50%, transparent 51%), radial-gradient(1.3px 1.3px at 88% 40%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 88%, #fff 50%, transparent 51%); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-bottom: 64px; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .85); max-width: 54ch; margin-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 800 .78rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.eyebrow-light { color: var(--gold-300); }
.link-light { display: inline-flex; align-items: center; gap: .4em; color: var(--gold-300); font: 700 .95rem var(--font-head); text-decoration: none; margin-top: 18px; }
.link-light:hover { color: #fff; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { width: min(400px, 82%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); animation: float 7s ease-in-out infinite; }
.hero-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242, 207, 134, .5), transparent 65%); filter: blur(10px); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } html { scroll-behavior: auto; } }

/* State selector form */
.state-form { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 16px; max-width: 560px; backdrop-filter: blur(6px); }
.state-form label { display: block; font: 700 .85rem var(--font-head); color: var(--gold-300); margin: 0 0 10px 4px; }
.state-form-row { display: flex; gap: 10px; }
.select { position: relative; flex: 1; display: flex; align-items: center; }
.select .ic { position: absolute; left: 14px; color: var(--red); pointer-events: none; }
.select select { width: 100%; appearance: none; font: 600 1rem var(--font-body); color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b0a0e' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat; border: 0; border-radius: 999px; padding: .95em 2.4em .95em 2.6em; min-height: 52px; cursor: pointer; }

/* Stats strip */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); color: var(--ink); border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); position: relative; }
.stats li { padding: 26px 24px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats strong { font: 900 2rem/1.1 var(--font-head); color: var(--red); }
.stats span { color: var(--ink-2); font-size: .92rem; }

/* Sections */
.section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--maroon-900); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.08rem; }
.section-head-light h2 { color: #fff; }
.section-head-left { text-align: left; margin: 0; }

/* Rounds */
.rounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.round { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 28px; box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.round:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.round::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.round-num { position: absolute; top: 18px; right: 22px; font: 900 3.2rem/1 var(--font-head); color: var(--gold-100); }
.round-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--red), var(--maroon)); color: var(--gold-300); margin-bottom: 18px; }
.round-icon .ic { width: 28px; height: 28px; }
.round h3 { font-size: 1.6rem; margin-bottom: 2px; }
.round-tag { font: 800 .75rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.round p:last-child { color: var(--ink-2); margin: 0; }
.rounds-compact { grid-template-columns: 1fr; gap: 12px; }
.rounds-compact .round { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; padding: 18px 20px; }
.rounds-compact .round-icon { grid-row: span 2; margin: 0; width: 48px; height: 48px; }
.rounds-compact .round h3 { font-size: 1.2rem; margin: 0; }
.rounds-compact .round-tag { margin: 0; }
.rounds-compact .round-num { font-size: 2.2rem; top: 50%; transform: translateY(-50%); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--maroon); color: var(--gold-300); font: 900 1.1rem var(--font-head); margin-bottom: 16px; box-shadow: 0 0 0 6px var(--gold-100); }
.step p { color: var(--ink-2); margin: 0; font-size: .96rem; }

/* States */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.state-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.state-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.state-card-top { display: flex; justify-content: space-between; align-items: center; }
.state-map { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--gold-100); color: var(--maroon); }
.state-card h3 { font-size: 1.7rem; margin: 0; }
.state-card h3 span { color: var(--muted); font-weight: 600; font-size: 1rem; }
.meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.meta li { display: flex; gap: 8px; align-items: center; }
.meta .ic { color: var(--red); }
.state-card-go { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font: 700 .92rem var(--font-head); color: var(--red); padding-top: 12px; border-top: 1px dashed var(--line); }
.state-card-cta { background: linear-gradient(160deg, var(--cream), var(--gold-100)); border-style: dashed; border-color: var(--gold); box-shadow: none; }
.state-card-cta h3 { font-size: 1.3rem; }
.state-card-cta p { color: var(--ink-2); margin: 0; }
.state-card-cta .btn { align-self: flex-start; margin-top: auto; }

/* Vision */
.vision { background: linear-gradient(110deg, var(--teal), #133f4c); color: #fff; padding: 64px 0; }
.vision-in { display: flex; gap: 28px; align-items: center; }
.vision-icon { display: grid; place-items: center; width: 84px; height: 84px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--gold-300); }
.vision-icon .ic { width: 42px; height: 42px; }
.vision h2 { color: #fff; margin-bottom: .3em; }
.vision p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 70ch; font-size: 1.06rem; }

/* Timeline */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 780px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 76px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--red)); }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 40px; padding: 0 0 30px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 70px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--red); }
.tl-year { font: 900 1.05rem var(--font-head); color: var(--red); text-align: right; padding-top: 1px; }
.tl-body h3 { margin-bottom: 4px; }
.tl-body p { margin: 0; color: var(--ink-2); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.g-item { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #3a0a0c; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; font: 600 .86rem var(--font-head); background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.g-0 { grid-column: span 2; grid-row: span 2; }
.g-3, .g-4, .g-5 { grid-column: span 2; }
.gallery-short { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; }
.gallery-short .g-item { grid-column: auto; grid-row: auto; }

/* Sponsor */
.sponsor { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; background: linear-gradient(135deg, var(--cream), #fff 60%); border: 1px solid var(--line); border-radius: 28px; padding: 56px; box-shadow: var(--shadow); }
.sponsor-copy p:not(.eyebrow) { color: var(--ink-2); font-size: 1.05rem; }
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ticks .ic { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.sponsor-art { display: grid; place-items: center; }
.medal-ring { display: grid; place-items: center; width: 220px; aspect-ratio: 1; border-radius: 50%; color: var(--gold-300); background: radial-gradient(circle at 35% 30%, var(--red), var(--maroon) 70%); box-shadow: 0 0 0 12px var(--gold-100), 0 0 0 14px var(--gold), var(--shadow-lg); }
.medal-ring .ic { width: 96px; height: 96px; stroke-width: 1.4; }

/* Partner badges */
.partners-sec { padding: 80px 0; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.badges li { width: 240px; }
.badges li > a, .badges li > span, .badges li { text-decoration: none; }
.badges a, .badges li:not(:has(a)) { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; height: 100%; transition: transform .2s, box-shadow .2s; }
.badges a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.badge-logo { display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: 8px; }
.badge-logo img { width: auto; height: auto; max-width: 120px; max-height: 120px; object-fit: contain; }
.badges strong { font: 800 1rem var(--font-head); line-height: 1.25; }
.badges small { font: 700 .72rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font: 700 1.08rem var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--red); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); }

/* Closing band */
.cta-band { background: radial-gradient(800px 300px at 85% 0%, rgba(217, 168, 78, .3), transparent 60%), linear-gradient(120deg, var(--maroon-900), var(--maroon)); color: #fff; padding: 64px 0; }
.cta-band-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta-band .state-form { justify-self: end; width: 100%; }
.cta-choices { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-choices small { flex-basis: 100%; text-align: right; }
.cta-closed { display: flex; gap: 10px; align-items: center; justify-self: end; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); padding: 16px 20px; border-radius: var(--radius-sm); }

/* State page */
.hero-state { padding-bottom: 0; }
.hero-state .hero-in { padding-bottom: 72px; }
.hero-status { display: inline-flex; align-items: center; gap: 10px; font: 700 .92rem var(--font-head); padding: .6em 1em; border-radius: 999px; background: rgba(255, 255, 255, .1); margin-bottom: 24px; }
.hero-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217, 168, 78, .25); }
.status-open .dot { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .25); }
.status-closed .dot { background: #bbb; box-shadow: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.edition-card { background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); border-top: 5px solid var(--gold); }
.edition-kicker { font: 800 .8rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.edition-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.edition-card li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.edition-card li:last-child { border: 0; }
.edition-card li > .ic { color: var(--red); width: 24px; height: 24px; }
.edition-card small { display: block; color: var(--muted); font-size: .8rem; }
.edition-card strong { font: 700 1.02rem var(--font-head); }
.subnav { position: sticky; top: 74px; z-index: 40; background: var(--maroon); color: #fff; }
.subnav-in { display: flex; gap: 6px; align-items: center; min-height: 54px; overflow-x: auto; scrollbar-width: none; }
.subnav-in strong { font: 800 .95rem var(--font-head); color: var(--gold-300); margin-right: 14px; white-space: nowrap; }
.subnav-in a { color: rgba(255, 255, 255, .85); text-decoration: none; font: 600 .9rem var(--font-head); padding: .5em .8em; border-radius: 999px; white-space: nowrap; }
.subnav-in a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.subnav-in .subnav-cta { margin-left: auto; background: var(--gold); color: var(--maroon-900); }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.two-col-top { align-items: start; grid-template-columns: 1fr 1fr; }
.prose p { color: var(--ink-2); font-size: 1.05rem; }
.fee-list { display: grid; gap: 12px; margin-bottom: 14px; }
.fee { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.fee span { font-weight: 600; }
.fee small { display: block; color: var(--muted); font-weight: 400; }
.fee strong { font: 900 1.3rem var(--font-head); color: var(--red); text-align: right; }
.prizes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.prize { display: flex; gap: 16px; align-items: center; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prize-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none; background: #f1ecea; color: #8d7f7a; }
.prize-0 { border-color: var(--gold); background: linear-gradient(120deg, var(--gold-100), #fff); }
.prize-0 .prize-icon { background: linear-gradient(135deg, #f2cf86, var(--gold-600)); color: var(--maroon-900); }
.prize-1 .prize-icon { background: linear-gradient(135deg, #eceff1, #b0b7bc); color: #39434a; }
.prize-2 .prize-icon { background: linear-gradient(135deg, #f3d3b5, #b87842); color: #4e2c10; }
.prize small { display: block; font: 700 .76rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prize strong { display: block; font: 900 1.35rem/1.2 var(--font-head); }
.prize span { color: var(--ink-2); font-size: .92rem; }
.notfound { text-align: center; padding: 120px 0; }

/* Footer */
.footer { position: relative; background: #170405; color: rgba(255, 255, 255, .75); padding: 72px 0 0; overflow: hidden; }
.footer-stars { position: absolute; inset: 0; opacity: .35; pointer-events: none; background-image: radial-gradient(1.2px 1.2px at 8% 20%, #f6dfa8 50%, transparent 51%), radial-gradient(1px 1px at 40% 60%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 75% 25%, #f6dfa8 50%, transparent 51%), radial-gradient(1px 1px at 92% 70%, #fff 50%, transparent 51%); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.brand-light { color: #fff; margin-bottom: 18px; }
.brand-light img { width: 48px; }
.brand-light small { color: var(--gold-300); }
.footer p { font-size: .94rem; }
.footer-org { color: var(--gold-300); font-weight: 500; }
.footer h3 { font: 800 .8rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.footer a:hover { color: var(--gold-300); }
.footer li span { color: rgba(255, 255, 255, .45); }
.footer-contact a { display: inline-flex; gap: 8px; align-items: center; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.socials a:hover { background: var(--gold); color: var(--maroon-900); border-color: var(--gold); }
.socials .ic { width: 18px; height: 18px; }
.footer-base { position: relative; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .5); }

/* Responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .85em 1em; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: grid; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero-in, .two-col, .two-col-top, .sponsor, .faq-wrap, .cta-band-in { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(220px, 60%); }
  .hero-state .hero-art, .hero-state .edition-card { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rounds { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .sponsor { padding: 32px 24px; }
  .sponsor-art { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-3, .g-4, .g-5 { grid-column: span 1; }
  .g-0 { grid-column: span 2; }
  .cta-band .state-form, .cta-closed { justify-self: stretch; }
  .cta-choices { justify-content: flex-start; }
  .cta-choices small { text-align: left; }
  .vision-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .brand-txt small { display: none; }
  .pl-long { display: none; }
  .pl-short { display: inline; }
  .nav-in { gap: 10px; min-height: 64px; }
  .brand { min-width: 0; }
  .brand-txt { min-width: 0; }
  .brand-txt strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-cta { gap: 2px; }
  .nav-cta .btn-sm { padding: .65em .8em; gap: .35em; }
  .brand img { width: 34px; }
  .subnav { top: 64px; }
  .hero-art img { width: 150px; }
  .state-form-row { flex-direction: column; }
  .state-form .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 56px; }
  .timeline li { grid-template-columns: 44px 1fr; gap: 36px; }
  .timeline li::before { left: 50px; }
  .tl-year { font-size: .9rem; }
  .picker-menu { position: fixed; left: 16px; right: 16px; width: auto; top: 84px; }
  .fee, .prize { padding: 16px; }
  .stats li { padding: 18px 16px; }
  .stats strong { font-size: 1.6rem; }
}

/* ---------- Phase 2: state pages, panel, finale, gallery, editions, livestream ---------- */
.center { text-align: center; margin-top: 32px; }
.subnav-in a.is-active { background: rgba(255, 255, 255, .16); color: #fff; }
.hero-page { padding: 64px 0 72px; }
.hero-page-in > * { max-width: 760px; }
.hero-page h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: none; }
.hero-page .lead { margin-bottom: 0; }
.empty-state { text-align: center; padding: 56px 24px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }
.empty-state > .ic { width: 44px; height: 44px; color: var(--gold-600); margin-bottom: 10px; }
.notice { background: var(--gold-100); color: #6b4a0f; font-size: .94rem; }
.notice .wrap { display: flex; gap: 8px; align-items: center; padding: 12px 0; }

/* Faces (panel preview) */
.faces { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.face { margin: 0; width: 150px; text-align: center; }
.face img, .face .face-init { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold), var(--shadow); }
.face figcaption strong { display: block; font: 800 .95rem/1.25 var(--font-head); }
.face figcaption small { color: var(--muted); font-size: .84rem; }
.face-init { display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--maroon)); color: var(--gold-300); font: 900 1.6rem var(--font-head); }

/* Champions teaser */
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.champ { display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; background: var(--paper); border: 1px solid var(--gold-300); border-radius: var(--radius); padding: 22px 16px; }
.champ-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #f2cf86, var(--gold-600)); color: var(--maroon-900); margin-bottom: 8px; }
.champ small { font: 800 .72rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.champ strong { font: 800 1.05rem/1.25 var(--font-head); }
.champ > span:last-child { color: var(--muted); font-size: .86rem; }

/* Panel page */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.people-sm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.person:hover { transform: translateY(-3px); }
.person-photo { position: relative; aspect-ratio: 1; background: var(--cream); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person-photo .face-init { width: 100%; height: 100%; font-size: 3rem; }
.person-round { position: absolute; left: 12px; bottom: 12px; background: var(--maroon); color: var(--gold-300); font: 800 .7rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; padding: .45em .8em; border-radius: 999px; }
.person-body { padding: 16px 18px 20px; }
.person-body h3 { font-size: 1.05rem; margin-bottom: 2px; }
.person-role { color: var(--red); font: 700 .88rem var(--font-head); margin: 0; }
.person-bio { color: var(--ink-2); font-size: .9rem; margin: 8px 0 0; }
.person-lead { display: grid; grid-template-columns: 300px 1fr; margin: 0 auto 28px; max-width: 900px; border-color: var(--gold); }
.person-lead .person-photo { aspect-ratio: auto; min-height: 300px; }
.person-lead .person-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.person-lead h3 { font-size: 1.6rem; }
.person-lead .person-role { font-size: 1rem; }
.person-lead .person-bio { font-size: 1rem; margin-top: 14px; }

/* Grand finale */
.finale-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.finale-facts span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); padding: .55em 1em; border-radius: 999px; font: 600 .92rem var(--font-head); }
.countdown { display: flex; gap: 12px; margin-top: 22px; }
.countdown div { min-width: 82px; text-align: center; padding: 14px 10px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(240, 212, 154, .35); }
.countdown strong { display: block; font: 900 2rem/1 var(--font-head); color: var(--gold-300); font-variant-numeric: tabular-nums; }
.countdown small { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
.programme { display: grid; gap: 24px; max-width: 760px; margin: 0 auto; }
.programme-2 { grid-template-columns: 1fr 1fr; max-width: none; }
.prog-day { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.prog-day h3 { color: var(--red); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.prog-day ol { list-style: none; margin: 0; padding: 0; }
.prog-day li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.prog-day li:last-child { border: 0; }
.prog-day time { font: 700 .88rem var(--font-head); color: var(--muted); }
.prog-day li.is-key span { font-weight: 600; }
.prog-day li.is-key time { color: var(--red); }
.podium { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; max-width: 900px; }
.podium li { text-align: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 26px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.podium .prize-icon { width: 60px; height: 60px; margin-bottom: 8px; }
.podium small { font: 800 .74rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300); }
.podium strong { font: 900 1.7rem var(--font-head); color: #fff; }
.podium span:last-child { color: rgba(255, 255, 255, .72); font-size: .9rem; }
.podium-0 { order: 2; padding-top: 44px !important; padding-bottom: 44px !important; border-color: var(--gold) !important; background: rgba(217, 168, 78, .14) !important; }
.podium-0 .prize-icon { background: linear-gradient(135deg, #f2cf86, var(--gold-600)); color: var(--maroon-900); }
.podium-1 { order: 1; }
.podium-1 .prize-icon { background: linear-gradient(135deg, #eceff1, #b0b7bc); color: #39434a; }
.podium-2 { order: 3; }
.podium-2 .prize-icon { background: linear-gradient(135deg, #f3d3b5, #b87842); color: #4e2c10; }
.podium li:nth-child(n+4) { order: 4; }

/* Galleries */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.tabs a { text-decoration: none; font: 700 .9rem var(--font-head); padding: .6em 1.1em; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.tabs a:hover { border-color: var(--gold); }
.tabs a.is-active { background: var(--maroon); border-color: var(--maroon); color: var(--gold-300); }
.masonry { columns: 3 300px; column-gap: 14px; }
.m-item { display: block; position: relative; margin: 0 0 14px; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream); }
.m-item img { width: 100%; transition: transform .4s; }
.m-item:hover img { transform: scale(1.04); }
.m-cap { position: absolute; inset: auto 0 0; padding: 28px 14px 12px; color: #fff; font: 600 .86rem var(--font-head); background: linear-gradient(transparent, rgba(0, 0, 0, .75)); display: flex; justify-content: space-between; gap: 8px; }
.m-cap em { font-style: normal; color: var(--gold-300); font-size: .78rem; white-space: nowrap; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 3, 4, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; padding: 56px 0; }
.lightbox img { max-height: 80vh; max-width: 100%; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #fff; margin-top: 12px; font: 600 .95rem var(--font-head); }
.lb-close, .lb-nav { background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; justify-self: center; }
.lb-close { position: absolute; top: 16px; right: 16px; }
.lb-nav .ic { transform: rotate(-90deg); }

/* Past editions */
.editions { display: grid; gap: 32px; }
.edition { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.edition-head { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; }
.edition-head.no-cover { grid-template-columns: 1fr; }
.edition-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.edition-year { font: 900 .9rem var(--font-head); color: #fff; background: var(--red); padding: .35em .8em; border-radius: 999px; }
.edition-info h2 { margin: 10px 0 8px; }
.edition-info p { color: var(--ink-2); }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .92rem; }
.meta-line span { display: inline-flex; gap: 6px; align-items: center; }
.meta-line .ic { color: var(--red); }
.hof-title { display: flex; gap: 8px; align-items: center; margin: 28px 0 14px; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.hof { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.hof-class { background: var(--cream); border-radius: var(--radius); padding: 18px; }
.hof-class h4 { font: 800 .95rem var(--font-head); margin: 0 0 10px; }
.hof-class ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hof-class li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.hof-class li strong { display: block; font: 700 .95rem/1.25 var(--font-head); }
.hof-class li small { color: var(--muted); font-size: .8rem; }
.hof-class li em { font-style: normal; font: 800 .86rem var(--font-head); color: var(--red); }
.medal-dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 900 .9rem var(--font-head); background: #f1ecea; color: var(--ink-2); }
.place-1 .medal-dot { background: linear-gradient(135deg, #f2cf86, var(--gold-600)); color: var(--maroon-900); }
.place-2 .medal-dot { background: linear-gradient(135deg, #eceff1, #b0b7bc); color: #39434a; }
.place-3 .medal-dot { background: linear-gradient(135deg, #f3d3b5, #b87842); color: #4e2c10; }

/* Livestream */
.player-wrap { position: relative; max-width: 980px; margin: 0 auto; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-badge { position: absolute; top: -14px; left: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; font: 800 .8rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: .55em 1em; border-radius: 999px; }
.live-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.player-empty { max-width: 760px; margin: 0 auto; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.video { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; margin-bottom: 8px; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.video .play .ic { width: 56px; height: 56px; background: var(--red); border-radius: 14px; padding: 12px; }
.video strong { font: 700 1rem var(--font-head); }
.video small { color: var(--muted); }

@media (max-width: 860px) {
  .person-lead { grid-template-columns: 1fr; }
  .person-lead .person-photo { min-height: 0; aspect-ratio: 1; }
  .programme-2 { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium li { order: 0 !important; }
  .edition-head { grid-template-columns: 1fr; }
  .edition { padding: 20px; }
  .hof { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
}
@media (max-width: 560px) {
  .countdown div { min-width: 0; flex: 1; padding: 10px 4px; }
  .countdown strong { font-size: 1.5rem; }
  .people { grid-template-columns: 1fr 1fr; gap: 12px; }
  .person-body { padding: 12px; }
  .person-body h3 { font-size: .95rem; }
  .face { width: 130px; }
  .face img, .face .face-init { width: 100px; height: 100px; }
}

/* ---------- Phase 3: registration and payment ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; border: 1px solid; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-ok { background: #e8f6ee; border-color: #bfe6cf; color: #145c33; }
.alert-error { background: #fdecea; border-color: #f5c2bd; color: #8c1d18; }
.reg-section { padding-top: 48px; }
.reg-tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 26px; }
.reg-tabs a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font: 700 .95rem var(--font-head); padding: .7em 1.3em; border-radius: 999px; color: var(--ink-2); }
.reg-tabs a.is-active { background: var(--maroon); color: var(--gold-300); }
.reg { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.reg-main { display: grid; gap: 20px; min-width: 0; }
.reg-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0; background: var(--paper); box-shadow: var(--shadow); min-width: 0; }
.reg-card legend { display: flex; align-items: center; gap: 10px; font: 800 1.15rem var(--font-head); padding: 0 8px; margin-left: -8px; }
.reg-card legend span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--maroon); color: var(--gold-300); font-size: .9rem; }
.reg-card legend em { font: 600 .85rem var(--font-body); color: var(--muted); font-style: normal; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 8px; }
.f-wide { grid-column: 1 / -1; }
.reg label { display: block; font: 600 .9rem var(--font-body); color: var(--ink); }
.reg label em { font-style: normal; color: var(--muted); font-weight: 400; }
.reg label small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; margin-top: 5px; }
.reg input:not([type=radio]):not([type=checkbox]), .reg select, .reg textarea, .proof-form input:not([type=file]) {
  display: block; width: 100%; margin-top: 6px; font: 400 1rem var(--font-body); color: var(--ink); background: #fff;
  border: 1.5px solid #ddd2c5; border-radius: 12px; padding: .8em .9em; min-height: 50px; }
.reg input:focus, .reg select:focus, .reg textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 168, 78, .22); }
.reg .is-invalid { border-color: #d9534f !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prow { display: grid; grid-template-columns: 26px 1.6fr 1fr .8fr 1.3fr 34px; gap: 8px; align-items: center; padding: 6px 0; }
.prow input, .prow select { margin-top: 0 !important; min-height: 44px !important; padding: .55em .7em !important; font-size: .94rem !important; }
.prow-head { font: 700 .74rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 0; }
.prow-n { font: 800 .85rem var(--font-head); color: var(--muted); text-align: center; }
.prow-x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--muted); }
.prow-x:hover { color: var(--red); border-color: #f0b8b4; }
.prow-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-ghost-dark { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--gold); }
.paste { margin-top: 14px; padding: 16px; border-radius: var(--radius-sm); background: var(--cream); border: 1px dashed var(--gold); }
.paste label { font-weight: 400 !important; font-size: .9rem; }
.paste textarea { font-family: ui-monospace, Consolas, monospace !important; font-size: .85rem !important; }
.paste .btn { margin-top: 10px; }
.paste small { display: block; margin-top: 8px; color: var(--ink-2); }
.paychoice { display: grid; gap: 12px; margin-top: 8px; }
.pay-opt { display: flex !important; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--red); background: #fff7f6; }
.pay-opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.pay-opt span { display: flex; flex-direction: column; gap: 2px; }
.pay-opt strong { font: 800 1rem var(--font-head); }
.pay-opt small { color: var(--ink-2); font-size: .88rem; margin: 0; }
.reg-side { position: sticky; top: 140px; display: grid; gap: 16px; }
.summary { background: var(--maroon-900); color: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg); }
.summary h3 { color: var(--gold-300); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.summary dl { margin: 0 0 18px; }
.summary dl div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .95rem; }
.summary dt { color: rgba(255, 255, 255, .7); }
.summary dd { margin: 0; font-weight: 600; }
.summary .sum-total { border: 0; padding-top: 14px; }
.summary .sum-total dt { color: #fff; font-weight: 700; }
.summary .sum-total dd { font: 900 1.6rem var(--font-head); color: var(--gold-300); }
.btn-block { width: 100%; }
.sum-note { font-size: .78rem; color: rgba(255, 255, 255, .6); margin: 12px 0 0; }
.next-steps { background: var(--cream); border-radius: var(--radius); padding: 20px 22px; }
.next-steps h4 { font: 800 .95rem var(--font-head); margin: 0 0 8px; }
.next-steps ol { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .92rem; }
.next-steps li { margin: 4px 0; }

/* Status page */
.narrow-wrap { max-width: 760px; }
.status-card { text-align: center; padding: 36px 24px 28px; border-radius: 22px; background: linear-gradient(160deg, var(--maroon-900), var(--maroon)); color: #fff; margin-bottom: 22px; box-shadow: var(--shadow-lg); }
.status-card .eyebrow { color: var(--gold-300); }
.status-card h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 6px; }
.status-card .ref { color: rgba(255, 255, 255, .8); }
.status-card .ref strong { font-family: ui-monospace, Consolas, monospace; color: var(--gold-300); letter-spacing: .04em; }
.status-confirmed { background: linear-gradient(160deg, #0f5132, #1f8a4c); }
.progress { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 20px 0 10px; flex-wrap: wrap; }
.progress li { display: flex; align-items: center; gap: 8px; font: 700 .88rem var(--font-head); color: rgba(255, 255, 255, .6); }
.progress li + li::before { content: ''; width: 28px; height: 2px; background: rgba(255, 255, 255, .25); }
.progress span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); font-size: .8rem; }
.progress li.is-done { color: #fff; }
.progress li.is-done span { background: var(--gold); border-color: var(--gold); color: var(--maroon-900); }
.status-line { margin: 0; color: rgba(255, 255, 255, .85); font-weight: 600; }
.card-pub { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card-pub h2 { font-size: 1.3rem; }
.card-ok { border-color: #bfe6cf; background: #f3fbf6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row form { margin: 0; }
.bank { margin: 8px 0 14px; }
.bank div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 700; text-align: right; display: flex; gap: 8px; align-items: center; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.copy { font: 700 .72rem var(--font-head); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35em .8em; cursor: pointer; color: var(--red); }
.proof-form { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.proof-form label { font-weight: 600; font-size: .92rem; }
.proof-form input[type=file] { display: block; margin-top: 6px; }
.proof-form .btn { justify-self: start; }
.alt-pay { margin-top: 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--red); font: 600 .92rem var(--font-body); text-decoration: underline; cursor: pointer; }
.pupil-list { list-style: none; margin: 0 0 12px; padding: 0; }
.pupil-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pupil-list span { color: var(--muted); font-size: .9rem; text-align: right; }
.small { font-size: .86rem; }

@media (max-width: 980px) {
  .reg { grid-template-columns: 1fr; }
  .reg-side { position: static; }
  .prow-head { display: none; }
  .prow { grid-template-columns: 1fr 1fr 34px; grid-template-areas: "n n x" "name name name" "dob cls cls" "mail mail mail"; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
  .prow-n { grid-area: n; text-align: left; }
  .prow-n::before { content: 'Pupil '; }
  .prow input[name$="[name]"] { grid-area: name; }
  .prow input[type=date] { grid-area: dob; }
  .prow select { grid-area: cls; }
  .prow input[type=email] { grid-area: mail; }
  .prow-x { grid-area: x; justify-self: end; }
}
@media (max-width: 560px) {
  .f-grid { grid-template-columns: 1fr; }
  .reg-card { padding: 18px; }
  .reg-tabs { display: flex; }
  .reg-tabs a { flex: 1; justify-content: center; padding: .7em .6em; }
  .bank div { flex-direction: column; gap: 2px; }
  .bank dd { text-align: left; }
}
.admin-note { margin-top: 18px; padding: 16px 20px; border-radius: var(--radius-sm); background: #fff8e6; border: 1px solid var(--gold); color: #5a3d07; font-size: .94rem; }
.admin-note ul { margin: 8px 0 0; padding-left: 20px; }
.admin-note li { margin: 4px 0; }

/* ---------- Phase 5: chat assistant ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.chat-fab { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: .95em 1.3em; border-radius: 999px; font: 800 .95rem var(--font-head); color: var(--maroon-900); background: linear-gradient(180deg, #f2cf86, var(--gold) 55%, var(--gold-600)); box-shadow: 0 14px 30px -12px rgba(43, 6, 8, .55), 0 0 0 4px rgba(255, 255, 255, .7); }
.chat.is-open .chat-fab { display: none; }
.chat-panel { position: absolute; right: 0; bottom: 0; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 100px)); display: flex; flex-direction: column; background: var(--paper); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(43, 6, 8, .55); border: 1px solid var(--line); }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: linear-gradient(120deg, var(--maroon-900), var(--maroon)); color: #fff; }
.chat-head div { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.chat-head strong { font: 800 1rem var(--font-head); }
.chat-head small { color: rgba(255, 255, 255, .7); font-size: .72rem; }
.chat-x { background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 16px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-user { align-self: flex-end; background: var(--maroon); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg a { color: var(--red); font-weight: 600; }
.chat-user a { color: var(--gold-300); }
.chat-typing { display: flex; gap: 4px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #c9b9ad; animation: chatdot 1.2s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; } .chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; background: var(--cream); }
.chat-chips:empty { display: none; }
.chat-chips button { border: 1px solid var(--gold); background: #fff; color: var(--maroon); border-radius: 999px; padding: .45em .85em; font: 600 .8rem var(--font-body); cursor: pointer; }
.chat-chips button:hover { background: var(--gold-100); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; border: 1px solid #ddd2c5; border-radius: 999px; padding: .7em 1em; font: 400 .95rem var(--font-body); min-width: 0; }
.chat-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 168, 78, .25); }
.chat-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.chat-human { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; font-size: .8rem; color: var(--ink-2); text-decoration: none; background: #fff; border-top: 1px solid var(--line); }
.chat-human:hover { color: var(--green); }
@media (max-width: 560px) {
  .chat { right: 12px; bottom: 12px; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 1em; }
  .chat-panel { position: fixed; inset: auto 8px 8px 8px; width: auto; height: min(78vh, 600px); }
}
