/*
 * One Prize template — converted from the "One Prize" design study.
 * The design's layered overrides are resolved into one cascade here; the
 * preview tools (layout switch, theme picker, banner upload, demo controls)
 * are gone. Theme variables are emitted per campaign in the page <head>.
 * Breakpoints: 1100 / 999 / 850 / 650 (phone layout) / 400 / 380 / 360.
 */

:root {
  --paper:#fbf8f2; --ink:#302032; --muted:#70646b; --accent:#f56b43;
  --accent-hover:#ed5d34; --peach:#f5e6da; --line:#ded6ce; --white:#fffefa;
  --on-accent:#302032; --accent-text:#ad3818; --accent-soft:#ff9c79; --accent-muted:#9b694f;
  --on-ink:#fbf8f2; --ink-subtle:#d4c9d0; --error:#962e27;
  --digit-h:104px; --digit-w:80px; --digit-size:82px;
  --mobile-bar-h:0px;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:94px; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:Arial,Helvetica,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
button,input,select { font:inherit; }
img { max-width:100%; }
[hidden] { display:none!important; }
:focus-visible { outline:3px solid var(--accent-text); outline-offset:4px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.wrap { width:min(1280px,calc(100% - 96px)); margin-inline:auto; }
.eyebrow { font-size:14px; font-weight:700; line-height:1.5; margin:0; }
.skip-link { position:absolute; left:16px; top:-60px; z-index:50; background:var(--ink); color:var(--on-ink); padding:10px 14px; border-radius:4px; font-size:14px; }
.skip-link:focus { top:12px; }

/* ---------- Header ---------- */
.site-header { min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding-block:6px; }
.brand { display:flex; align-items:center; gap:12px; font-size:14px; font-weight:700; line-height:1.15; letter-spacing:-.3px; min-width:0; }
.brand-logo { display:block; max-height:44px; max-width:220px; width:auto; height:auto; object-fit:contain; }
.brand-name { overflow-wrap:anywhere; }
.header-link { font-weight:700; font-size:14px; display:flex; gap:24px; align-items:center; padding:12px 0; white-space:nowrap; }
.header-link span { font-size:23px; }
.header-link.is-disabled { opacity:.6; }
.test-mode-banner { position:sticky; top:0; z-index:40; display:flex; flex-wrap:wrap; justify-content:center; gap:4px 10px; padding:8px 16px; background:#ffd83d; color:#231b25; font-size:13px; line-height:1.4; text-align:center; }
.test-mode-banner strong { letter-spacing:.08em; }
body:has(.test-mode-banner:not([hidden])) .guide { top:37px; }

/* ---------- Hero: text banner ---------- */
.opening { display:block; }
.hero { background:var(--ink); color:var(--on-ink); }
.hero-inner { display:grid; grid-template-columns:1.12fr 1fr; align-items:center; gap:60px; height:clamp(340px,calc(100svh - 390px),520px); }
.hero-inner.no-art { grid-template-columns:1fr; height:auto; min-height:clamp(300px,calc(100svh - 420px),460px); }
.hero-copy { padding:28px 0; min-width:0; }
.hero h1 { color:var(--on-ink); font-size:clamp(88px,9vw,130px); line-height:.88; letter-spacing:-.065em; margin:0 0 24px; font-weight:800; overflow-wrap:break-word; }
.hero h1.is-long { font-size:clamp(60px,6.2vw,92px); line-height:.92; letter-spacing:-.05em; }
.hero h1.is-xlong { font-size:clamp(44px,4.4vw,64px); line-height:1; letter-spacing:-.035em; }
.hero h1 em { font-style:normal; color:var(--accent-soft); }
.hero-lead { font-size:24px; line-height:1.3; font-weight:700; letter-spacing:-.6px; margin:0 0 12px; }
.hero .cause { color:var(--ink-subtle); font-size:16px; line-height:1.5; max-width:425px; margin:0; }
.prize-art { height:100%; width:100%; min-height:0; position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.prize-art picture { display:contents; }
.prize-art img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(14px 18px 16px #0003); animation:arrive .6s ease-out both; }

/* ---------- Hero: picture banner ---------- */
.banner-hero { display:block; width:100%; margin:0; padding:0; background:var(--paper); }
.banner-hero picture { display:block; }
.banner-hero img { display:block; width:100%; height:auto; max-width:none; }
/* Picture banner that failed to load: show its title as a text hero instead of a broken image. */
.banner-hero.banner-failed { background:var(--ink); color:var(--on-ink); padding:56px 20px; }
.banner-hero.banner-failed picture { display:none; }
.banner-hero.banner-failed h1.sr-only { position:static; width:auto; height:auto; overflow:visible; clip-path:none; white-space:normal; max-width:1180px; margin:0 auto; color:var(--on-ink); font-size:clamp(40px,6vw,88px); line-height:.95; letter-spacing:-.04em; font-weight:800; overflow-wrap:break-word; }

/* ---------- Tickets-left bar ---------- */
.ticket-bar { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:20px 0; margin-top:8px; }
.tickets-remaining { display:flex; align-items:baseline; gap:15px; color:var(--ink); min-width:0; }
.tickets-remaining strong { font-size:58px; font-weight:700; line-height:1; letter-spacing:-2.5px; font-variant-numeric:tabular-nums; }
.tickets-remaining>span { font-size:19px; letter-spacing:-.3px; }
.entry-action { display:flex; align-items:center; gap:28px; }
.entry-price { display:flex; flex-direction:column; gap:4px; text-align:right; }
.entry-price strong { font-size:17px; letter-spacing:-.4px; white-space:nowrap; }
.entry-price>span { font-size:12px; color:var(--muted); }
.entry-price>.round-label { align-self:flex-end; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--accent-text); background:var(--peach); padding:2px 8px; border-radius:3px; }
.entry-cta { display:flex; align-items:center; justify-content:space-between; gap:50px; padding:18px 25px; min-height:60px; background:var(--accent); color:var(--on-accent); border-radius:5px; transition:background .2s; animation:entry-cue 1.2s ease 1s 2; }
.entry-cta:hover { background:var(--accent-hover); }
.entry-cta strong { font-size:19px; letter-spacing:-.4px; }
.entry-arrow { font-size:25px; line-height:1; }
.entry-cta.is-disabled,.mobile-bar-cta.is-disabled { background:var(--line); color:var(--muted); animation:none; cursor:default; }
body.entry-started .entry-cta { animation:none; }
/* "Show ticket amount bar" off: only the entry button (and share) remain */
.ticket-bar.is-compact { justify-content:flex-end; padding-block:12px; }

/* ---------- Share ---------- */
.share { position:relative; display:flex; align-items:center; gap:10px; }
.share-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:10px 16px; border:1px solid var(--line); border-radius:5px; background:var(--white); color:var(--ink); font:inherit; font-size:15px; font-weight:700; cursor:pointer; transition:border-color .2s; }
.share-button:hover { border-color:var(--ink); }
.share-button:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.share-status { font-size:13px; color:var(--muted); white-space:nowrap; }
.share-status:empty { display:none; }
.share-fallback { position:absolute; right:0; top:calc(100% + 8px); z-index:25; width:min(320px,calc(100vw - 40px)); background:var(--white); border:1px solid var(--line); border-radius:6px; padding:12px; box-shadow:0 8px 24px #0002; }
.share-fallback label { margin:0; font-size:13px; }
.share-fallback input:not([type=checkbox]):not([type=radio]) { height:44px; font-size:14px; }
.ty-actions .share { justify-content:center; }
.ty-actions .share-fallback { right:auto; left:50%; translate:-50% 0; }

/* ---------- Guide (docks into a compact step bar while scrolling) ---------- */
#guide-marker { height:1px; margin-top:-1px; }
#guide-space { height:0; pointer-events:none; }
.opening,.guide,#guide-space,.entry-section { overflow-anchor:none; }
.guide { position:sticky; top:0; z-index:12; background:var(--ink); color:var(--on-ink); border-radius:6px; display:grid; grid-template-columns:1.05fr 1fr 1.13fr 1.1fr; overflow:hidden; scroll-margin-top:24px; height:180px; }
.guide-intro { background:var(--accent); color:var(--on-accent); padding:22px 26px; display:flex; flex-direction:column; justify-content:center; gap:12px; position:relative; }
.guide-intro>.eyebrow { font-size:13px; color:inherit; font-weight:700; }
.guide h2 { font-size:30px; letter-spacing:-1.8px; line-height:1.05; margin:0; }
.guide-step { position:relative; padding:18px 24px; }
.guide-step+.guide-step::before { content:""; position:absolute; top:22px; bottom:22px; left:0; width:1px; background:#ffffff21; }
.step-top { display:flex; margin-bottom:11px; }
.step-top b { font-size:28px; line-height:1; font-weight:500; letter-spacing:-1.7px; color:#b8a8b5; }
.guide-step.current .step-top b { color:var(--accent-soft); }
.guide-step.done .step-top b { color:var(--paper); }
.guide-step.current { box-shadow:inset 0 -3px var(--accent); }
.guide h3 { font-size:18px; line-height:1.1; margin:0 0 8px; letter-spacing:-.5px; }
.guide p { font-size:14px; line-height:1.4; margin:0; color:var(--ink-subtle); }
.guide.guide-docked { width:100%; max-width:none; margin-inline:0; padding:0 max(24px,calc((100vw - 1280px)/2)); height:72px; min-height:72px; grid-template-columns:repeat(3,minmax(0,1fr)); border-radius:0; box-shadow:0 5px 15px #0001; }
.guide-docked .guide-step p { display:none; }
/* Docked: the intro leaves the layout but its h2 stays in the outline (heading order). */
.guide-docked .guide-intro { position:absolute; width:1px; height:1px; padding:0; margin:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.guide-docked .guide-step { display:flex; align-items:center; gap:15px; min-height:0; padding:16px 24px; border:0; }
.guide-docked .step-top { position:static; margin:0; }
.guide-docked .step-top b { font-size:23px; letter-spacing:-.5px; }
.guide-docked h3 { margin:0; font-size:16px; line-height:1.3; }
.guide-docked .guide-step:not(.current):not(.done) h3 { color:var(--ink-subtle); }
.guide-docked .guide-step+.guide-step::before { top:18px; bottom:18px; left:0; width:1px; height:auto; right:auto; }

/* ---------- Entry section ---------- */
.entry-section { display:grid; grid-template-columns:.82fr 1.18fr; gap:80px; padding-top:64px; padding-bottom:90px; outline:none; scroll-margin-top:0; }
.entry-intro { min-width:0; }
.entry-intro>.eyebrow { margin-bottom:20px; }
.entry-intro h2 { font-size:66px; letter-spacing:-3.7px; line-height:1; margin:0 0 22px; }
.entry-section.entered .entry-intro h2 { color:var(--accent-text); }
.entry-intro>.entry-context-lead { color:var(--ink); font-size:21px; line-height:1.45; letter-spacing:-.4px; max-width:370px; margin:22px 0 16px; }
.entry-intro>.entry-context { font-size:16px; line-height:1.65; max-width:370px; color:var(--muted); margin:0; }
.entry-summary { margin-top:26px; max-width:370px; border-top:2px solid var(--ink); padding-top:23px; }
.entry-summary>div:not(.summary-divider) { display:flex; justify-content:space-between; gap:15px; margin-top:20px; font-size:19px; letter-spacing:-.5px; }
.entry-summary>div>span { font-weight:700; }
.entry-summary p { font-size:14px; line-height:1.6; color:var(--muted); margin:16px 0 0; }
.entry-summary p strong { color:var(--ink); font-weight:700; }
.entry-summary .optional-drawing-date { font-size:12px; }
.summary-divider { height:1px; background:var(--line); margin-top:25px; }
.sold-board { margin-top:28px; max-width:370px; border-top:1px solid var(--line); padding-top:16px; }
.sold-board summary { cursor:pointer; font-size:14px; font-weight:700; display:flex; justify-content:space-between; gap:12px; }
.sold-board summary span { color:var(--muted); font-weight:400; }
.sold-list { list-style:none; margin:14px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:6px; max-height:220px; overflow:auto; }
.sold-list li { font-size:12px; font-variant-numeric:tabular-nums; padding:4px 8px; border-radius:3px; background:var(--peach); color:var(--ink); }
.sold-empty { font-size:13px; color:var(--muted); margin:12px 0 0; }

.checkout-shell { min-width:0; }

/* ---------- Winners ---------- */
.winners { margin-bottom:24px; background:var(--white); border:1px solid var(--line); border-top:4px solid var(--accent); border-radius:0 0 6px 6px; padding:22px 28px 10px; }
.winners-heading { font-size:26px; letter-spacing:-.8px; margin:0 0 6px; }
.winner-card { display:flex; gap:16px; align-items:flex-start; padding:14px 0; border-top:1px solid var(--line); }
.winners-list>.winner-card:first-child { border-top:0; }
.winner-icon { flex-shrink:0; width:44px; height:44px; border-radius:50%; background:var(--peach); color:var(--accent-text); display:flex; align-items:center; justify-content:center; }
.winner-icon svg { width:24px; height:24px; }
.winner-body { min-width:0; }
.winner-body>* { margin:0; }
.winner-prize { font-size:14px; font-weight:700; letter-spacing:.02em; text-transform:uppercase; color:var(--accent-text); margin-bottom:2px!important; }
.winner-name { font-size:21px; font-weight:700; letter-spacing:-.4px; line-height:1.25; }
.winner-entry { font-size:15px; color:var(--ink); margin-top:2px!important; font-variant-numeric:tabular-nums; }
.winner-message { font-size:14px; line-height:1.55; color:var(--muted); white-space:pre-line; overflow-wrap:anywhere; margin-top:6px!important; }
.winner-date { font-size:12px; color:var(--muted); margin-top:6px!important; }
.state-notice,.entry-form,.flow-panel { background:var(--white); border:1px solid var(--line); border-top:4px solid var(--ink); border-radius:0 0 6px 6px; }
.state-notice { padding:40px 32px; }
.state-notice h3 { font-size:34px; letter-spacing:-1.2px; line-height:1.1; margin:0 0 12px; }
.state-notice p { font-size:15px; line-height:1.6; color:var(--muted); margin:0; }
.state-notice .state-donate { margin-top:22px; }
.entry-form { padding:32px; }
fieldset { border:0; padding:0; margin:0 0 28px; min-width:0; }
.entry-form legend { font-weight:700; font-size:23px; letter-spacing:-.6px; margin-bottom:20px; padding:0; }
.entry-form legend>span { display:inline-block; color:var(--accent-muted); font-size:14px; margin-right:12px; }
label,.field { display:block; font-size:14px; font-weight:600; margin-bottom:18px; }
.field-label { display:block; }
input:not([type=checkbox]):not([type=radio]) { width:100%; background:var(--white); border:1px solid #cfc5bf; color:var(--ink); border-radius:4px; height:52px; margin-top:9px; padding:0 14px; font-size:16px; font-weight:400; outline:none; }
input::placeholder { color:#8d8086; }
input:focus { border-color:var(--ink); box-shadow:0 0 0 2px #38263812; }
input[aria-invalid=true] { border-color:var(--error); }
input:disabled { background:#f6f3ef; cursor:not-allowed; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field-hint { font-size:12px; font-weight:400; color:var(--muted); margin:-8px 0 16px; line-height:1.5; }
.field-error { display:block; font-size:12px; font-weight:400; color:var(--error); line-height:1.5; margin-top:7px; }
.field-optional { font-weight:400; color:var(--muted); }
/* Billing address (pool setting): a group inside "Your details", ZIP included */
.entry-form .billing-address { margin:6px 0 0; padding-top:20px; border-top:1px solid var(--line); }
.entry-form .billing-address>legend.sub-legend { float:left; width:100%; font-size:16px; letter-spacing:-.2px; margin-bottom:14px; }
.billing-address>legend+* { clear:both; }
.pac-container { z-index:1000; font-family:inherit; }
.payment { border-top:1px solid var(--line); padding-top:25px; margin-bottom:10px; }
.payment>legend { float:left; width:100%; margin-bottom:12px; }
.payment>legend+* { clear:both; }
.dev-note { font-size:12px; line-height:1.5; font-weight:400; color:var(--muted); background:var(--peach); padding:10px 12px; border-radius:4px; margin:0 0 16px; }
/* Combined card field (ambulance pattern): brand icons, detected one highlighted */
.card-brand-icons { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:2px 0 12px; }
.card-brand-icon { width:48px; height:32px; display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; border-radius:4px; opacity:.55; transition:opacity .25s ease,transform .25s ease,filter .25s ease; }
.card-brand-icon svg { width:100%; height:100%; display:block; }
.card-brand-icon img { width:100%; height:100%; object-fit:contain; display:block; border-radius:4px; }
.card-brand-icon b { font-size:9px; line-height:1.1; text-align:center; color:var(--ink); }
.card-brand-icon.active { opacity:1; transform:scale(1.12); }
.card-brand-icon.dimmed { opacity:.18; filter:grayscale(100%); }
.card-number-input { letter-spacing:2px; font-variant-numeric:tabular-nums; }
.card-hint { margin:-8px 0 16px; }
.card-hint.is-warning { color:var(--error); }
.daf-selector { padding:2px 0 16px; }
.daf-selector-label { display:block; font-size:13px; font-weight:600; color:var(--muted); margin-bottom:8px; }
.daf-selector-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.daf-sel-btn { display:flex; align-items:center; gap:8px; padding:8px 16px; min-height:44px; border:2px solid var(--line); border-radius:6px; background:var(--white); color:var(--ink); font-size:14px; font-weight:600; cursor:pointer; transition:border-color .2s ease,background .2s ease; }
.daf-sel-btn:hover { border-color:var(--muted); }
.daf-sel-btn.active { border-color:var(--ink); background:var(--peach); }
.daf-sel-icon { width:32px; height:22px; object-fit:contain; border-radius:3px; }
.card-extra-row.single { grid-template-columns:1fr; }
.verify-email { margin-top:4px; }
.verify-email .field-hint { margin:0 0 10px; }
.verify-row { align-items:end; }
.verify-actions { margin-bottom:18px; }
.inline-link { border:0; background:none; padding:0; color:var(--ink); font:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.fee-choice { margin:0 0 14px; }
.authorization { padding:22px; border-radius:4px; background:var(--peach); }
.check-label { display:flex; align-items:flex-start; gap:12px; margin:0; font-weight:400; line-height:1.5; font-size:14px; }
.check-label input { accent-color:var(--ink); width:20px; height:20px; flex-shrink:0; margin:1px 0 0; }
.terms-text { font-size:13px; line-height:1.55; color:var(--muted); margin:12px 0 0 32px; white-space:pre-line; overflow-wrap:anywhere; }
.authorization .field-error { margin:8px 0 0 32px; }
.authorization:has(#opConsent[aria-invalid=true]) { box-shadow:inset 0 0 0 1px var(--error); }
.payment-error { font-size:14px; color:var(--error); padding:12px 0 0; margin:0; }
.button { display:inline-flex; align-items:center; justify-content:space-between; gap:32px; background:var(--accent); border:0; border-radius:5px; min-height:60px; padding:16px 23px; color:var(--on-accent); font-size:17px; font-weight:700; cursor:pointer; transition:background .2s,transform .2s; text-decoration:none; }
.button:hover { background:var(--accent-hover); transform:translateY(-2px); }
.button span { font-size:26px; line-height:1; transition:translate .2s; }
.button:hover span { translate:2px -2px; }
.button:disabled { opacity:.65; cursor:wait; transform:none; }
.entry-cta,.button{box-shadow:inset 0 0 0 1px var(--accent-edge,transparent);}
.button-small { min-height:52px; padding:12px 18px; font-size:15px; width:100%; justify-content:center; }
.authorize { width:100%; margin-top:20px; }
/* ---------- Stripe secure card box ---------- */
.stripe-field { display:block; margin-bottom:18px; }
.stripe-field .field-label { font-size:14px; font-weight:600; }
.stripe-input { height:52px; margin-top:9px; padding:0 14px; border:1px solid #cfc5bf; border-radius:4px; background:var(--white); display:flex; flex-direction:column; justify-content:center; transition:border-color .15s, box-shadow .15s; }
.stripe-input>* { width:100%; }
.stripe-input.is-focused { border-color:var(--ink); box-shadow:0 0 0 2px #38263812; }
.stripe-input.is-invalid { border-color:var(--error); }
.stripe-failed .stripe-input { background:#f6f3ef; }
.stripe-card .card-extra-row .stripe-field { margin-bottom:18px; }
.card-switch { margin:-6px 0 16px; font-size:14px; }
.card-switch .inline-link { font-weight:600; min-height:44px; }
.charity-card .card-switch { margin-top:0; }

/* ---------- PayPal ---------- */
.paypal-block { margin:2px 0 20px; }
.paypal-or { display:flex; align-items:center; gap:12px; margin:0 0 14px; font-size:13px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.paypal-or::before,.paypal-or::after { content:""; flex:1; height:1px; background:var(--line); }
.paypal-buttons { min-height:48px; }
.paypal-hint { margin:10px 0 0; }
.flow-paypal { max-width:360px; margin:22px auto 0; }

.tax-id { font-size:12px; line-height:1.5; text-align:center; color:var(--muted); margin:14px 0 0; }
.tax-id span { white-space:nowrap; }
.form-footnote { font-size:12px; text-align:center; color:var(--muted); margin:6px 0 0; line-height:1.5; }
.op-turnstile { display:flex; justify-content:center; margin:16px 0 0; min-height:0; }
.checkout-shell.is-final .op-turnstile { display:none; }

/* ---------- Status panel ---------- */
.flow-panel { padding:28px 32px; min-height:460px; outline:none; scroll-margin-top:84px; }
.flow-top { display:flex; align-items:center; justify-content:space-between; gap:15px; font-size:13px; font-weight:700; }
.flow-top-note { font-weight:400; color:var(--muted); text-align:right; }
#flow-body { padding:48px 0 20px; text-align:center; }
.flow-symbol { height:52px; display:grid; place-items:center; margin:3px 0 22px; color:var(--accent-text); font-size:42px; line-height:1; }
.processing-ring { display:block; width:34px; height:34px; border:3px solid var(--peach); border-top-color:var(--accent-text); border-radius:50%; animation:spin .85s linear infinite; }
.flow-eyebrow { font-size:13px; color:var(--muted); margin:0 0 13px; }
#flow-heading { font-size:38px; line-height:1.1; letter-spacing:-1.3px; margin:0 0 15px; overflow-wrap:break-word; }
#flow-heading:focus { outline:none; }
.flow-contact { font-size:14px; line-height:1.6; color:var(--muted); max-width:400px; margin:18px auto 0; overflow-wrap:anywhere; }
.flow-contact a { color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
#flow-description { font-size:15px; color:var(--muted); line-height:1.6; max-width:380px; margin:0 auto; }
.flow-footer { text-align:center; margin:24px 0 0; font-size:12px; color:var(--muted); line-height:1.5; }
.flow-hold { font-size:14px; font-weight:700; margin:0 auto 6px; font-variant-numeric:tabular-nums; }
.number-display { display:flex; justify-content:center; gap:9px; margin:26px 0; }
.number-display[data-digits="4"] { --digit-w:66px; --digit-size:68px; --digit-h:92px; }
.number-display[data-digits="5"],.number-display[data-digits="6"],.number-display[data-digits="7"] { --digit-w:52px; --digit-size:54px; --digit-h:76px; gap:6px; }
.number-digit { height:var(--digit-h); width:var(--digit-w); border-radius:5px; background:var(--peach); overflow:hidden; color:var(--ink); font-size:var(--digit-size); font-weight:700; letter-spacing:-.06em; font-variant-numeric:tabular-nums; }
.number-digit.lead-zero { opacity:.35; }
.digit-track { display:block; transform:translateY(0); }
.digit-track span { display:block; height:var(--digit-h); line-height:var(--digit-h); text-align:center; }
.number-display.settled .number-digit { background:var(--accent); color:var(--on-accent); transition:background .25s; }
.number-display.settled .number-digit.lead-zero { opacity:.45; }
.entry-receipt { text-align:left; margin-top:25px; border-top:1px solid var(--line); }
.entry-receipt>div { display:flex; justify-content:space-between; gap:20px; padding:14px 0; border-bottom:1px solid var(--line); font-size:14px; }
.entry-receipt>div>span { color:var(--muted); }
.entry-receipt strong { text-align:right; overflow-wrap:anywhere; }
.flow-daf-pay { text-align:left; margin-top:24px; }
#flow-actions { margin-top:24px; display:flex; flex-direction:column; align-items:center; gap:4px; }
#flow-actions .button { min-width:240px; }
.flow-link { border:0; background:none; padding:12px; cursor:pointer; color:var(--ink); text-decoration:underline; text-underline-offset:4px; font:inherit; font-size:14px; }
.flow-link:disabled,.button:disabled { cursor:wait; }

/* ---------- Organization ---------- */
.organization-section { border-top:1px solid var(--line); padding:88px 0 55px; background:var(--white); }
.organization-editorial { display:grid; grid-template-columns:1fr 1fr; align-items:start; gap:72px; }
.organization-editorial.no-photo { grid-template-columns:minmax(0,760px); }
.organization-photo { margin:0; }
.organization-photo img { display:block; width:100%; height:620px; object-fit:cover; object-position:50% 34%; border-radius:2px; }
.organization-narrative { padding-top:12px; min-width:0; }
.organization-narrative>.eyebrow { font-size:13px; color:var(--muted); margin-bottom:27px; }
.organization-narrative h2 { font-size:clamp(38px,4vw,57px); letter-spacing:-2.3px; line-height:1.06; margin:0 0 25px; }
.organization-rich { font-size:16px; line-height:1.7; color:var(--muted); overflow-wrap:break-word; }
.organization-rich>:first-child { margin-top:0; }
.organization-rich p { margin:0 0 19px; }
.organization-rich img { height:auto; }
.organization-rich a { text-decoration:underline; text-underline-offset:2px; }
.organization-action { margin:26px 0 0; }
.organization-contact { border-top:1px solid var(--line); display:grid; grid-template-columns:1fr 1fr; gap:72px; margin-top:45px; padding-top:28px; }
.organization-contact.standalone { border-top:0; margin-top:0; padding-top:0; }
.organization-contact h3 { font-size:18px; margin:0 0 8px; letter-spacing:-.3px; }
.organization-contact p { font-size:14px; color:var(--muted); margin:0 0 18px; max-width:380px; line-height:1.6; }
.organization-contact dl,.platform-footer dl { margin:0; font-size:14px; line-height:1.6; }
.organization-contact dl>div,.platform-footer dl>div { display:flex; gap:16px; margin-bottom:7px; }
.organization-contact dt,.platform-footer dt { min-width:60px; }
.organization-contact dd,.platform-footer dd { margin:0; overflow-wrap:anywhere; }
.organization-contact dd { color:var(--muted); }
.organization-contact dd a:hover { color:var(--ink); text-decoration:underline; }

/* ---------- Footers ---------- */
.site-footer { border-top:1px solid var(--line); font-size:12px; color:var(--muted); }
.site-footer-inner { display:flex; justify-content:space-between; gap:20px; padding:26px 0; line-height:1.6; }
.site-footer b { color:var(--ink); }
footer.platform-footer { display:block; width:100%; margin:0; border:0; padding:0; background:var(--ink); color:var(--on-ink); }
.platform-invitation { display:grid; grid-template-columns:1fr 1.12fr; gap:100px; align-items:center; padding:58px 0; border-bottom:1px solid #ffffff25; }
.platform-invitation .eyebrow { font-size:14px; margin-bottom:15px; color:var(--accent-soft); }
.platform-invitation h2 { font-size:43px; letter-spacing:-1.7px; line-height:1.1; margin:0; }
.platform-intro>p { font-size:18px; line-height:1.5; color:var(--ink-subtle); max-width:390px; margin:0 0 24px; }
.platform-cta { display:inline-flex; gap:30px; align-items:center; font-size:16px; font-weight:700; padding-bottom:9px; border-bottom:1px solid var(--accent-soft); color:var(--on-ink); }
.platform-cta:hover { color:var(--accent-soft); }
.platform-cta span { font-size:22px; }
.platform-footer-grid { display:grid; grid-template-columns:1fr .7fr 1fr; gap:60px; padding:45px 0; }
.platform-brand>strong { font-size:23px; letter-spacing:-.5px; }
.platform-brand>p,.platform-footer-grid p { font-size:14px; line-height:1.6; color:var(--ink-subtle); margin:14px 0; }
.platform-brand>p { max-width:250px; }
.platform-footer-grid h3 { font-size:15px; margin:0 0 17px; }
.platform-information details { margin:0 0 15px; }
.platform-information summary { font-size:14px; cursor:pointer; color:var(--ink-subtle); }
.platform-information details p { font-size:13px; line-height:1.6; max-width:310px; }
.platform-team-link { display:inline-flex; gap:12px; align-items:center; font-size:14px; font-weight:700; color:var(--on-ink); padding:12px 0; min-height:44px; }
.platform-team-link:hover { color:var(--accent-soft); }
.platform-footer dd { color:var(--ink-subtle); }
.footer-bottom { border-top:1px solid #ffffff25; display:flex; justify-content:space-between; gap:20px; padding:22px 0; font-size:12px; color:var(--ink-subtle); }

/* ---------- Thank-you page ---------- */
.thank-you { max-width:640px; padding-block:48px 80px; }
.ty-card { min-height:0; }
.ty-heading { font-size:38px; line-height:1.1; letter-spacing:-1.3px; margin:0 0 12px; }
.ty-text { font-size:15px; color:var(--muted); margin:0; }
.ty-receipt { margin-top:24px; background:var(--white); border:1px solid var(--line); border-radius:6px; padding:12px; overflow-x:auto; }
.ty-receipt img { height:auto; }
.ty-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px; margin-top:24px; }

/* ---------- Mobile sticky bar (phones only) ---------- */
.mobile-bar { display:none; }

/* ---------- How the draw works ---------- */
.draw-explainer { padding-top:28px; }
.draw-explainer-box { background:var(--white); border:1px solid var(--line); border-radius:6px; }
.draw-explainer-box>summary { list-style:none; cursor:pointer; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; padding:18px 56px 18px 24px; position:relative; }
.draw-explainer-box>summary::-webkit-details-marker { display:none; }
.draw-explainer-box>summary::after { content:"+"; position:absolute; right:22px; top:50%; translate:0 -50%; font-size:26px; line-height:1; color:var(--accent-text); }
.draw-explainer-box[open]>summary::after { content:"\2212"; }
.draw-explainer-box>summary:focus-visible { outline:2px solid var(--ink); outline-offset:2px; border-radius:6px; }
.draw-explainer-box>summary>span:first-child { font-size:19px; font-weight:700; letter-spacing:-.4px; }
.draw-explainer-hint { font-size:14px; color:var(--muted); }
.draw-explainer-steps { list-style:none; counter-reset:draw; margin:0; padding:4px 24px 8px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 36px; }
.draw-explainer-steps li { counter-increment:draw; position:relative; padding-left:44px; font-size:15px; line-height:1.55; color:var(--muted); }
.draw-explainer-steps li::before { content:counter(draw); position:absolute; left:0; top:0; width:30px; height:30px; border-radius:50%; background:var(--peach); color:var(--accent-text); font-weight:700; font-size:14px; display:flex; align-items:center; justify-content:center; }
.draw-explainer-steps strong { display:block; color:var(--ink); font-size:16px; }
.draw-explainer-note { margin:0; padding:10px 24px 0 68px; font-size:14px; line-height:1.55; color:var(--muted); }
.draw-explainer-note:last-child { padding-bottom:22px; }

/* ---------- Gallery ---------- */
.op-gallery { border-top:1px solid var(--line); padding-block:64px; }
.op-gallery-heading { font-size:40px; letter-spacing:-1.6px; line-height:1.05; margin:0 0 28px; }
.op-gallery-grid { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.op-gallery-grid.is-single { grid-template-columns:minmax(0,760px); }
.op-gallery-item { margin:0; }
.op-gallery-item a { display:block; border-radius:6px; overflow:hidden; background:var(--peach); }
.op-gallery-item a:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
.op-gallery-item img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; transition:transform .3s ease; }
.op-gallery-item a:hover img { transform:scale(1.03); }
.op-gallery-item figcaption { font-size:13px; line-height:1.5; color:var(--muted); margin-top:8px; }
.op-lightbox { max-width:min(1100px,94vw); width:auto; padding:0; border:0; border-radius:8px; background:#111; color:#fff; overflow:visible; }
.op-lightbox::backdrop { background:#000c; }
.op-lightbox figure { margin:0; }
.op-lightbox img { display:block; max-width:min(1100px,94vw); max-height:80vh; margin:auto; border-radius:8px 8px 0 0; }
.op-lightbox figcaption { padding:10px 16px 14px; font-size:14px; }
.op-lightbox figcaption:empty { display:none; }
.op-lightbox-close,.op-lightbox-nav { position:absolute; width:44px; height:44px; border:0; border-radius:50%; background:#fff; color:#111; font-size:26px; line-height:1; cursor:pointer; }
.op-lightbox-close { top:-14px; right:-14px; }
.op-lightbox-nav { top:50%; translate:0 -50%; }
.op-lightbox-nav.prev { left:-16px; }
.op-lightbox-nav.next { right:-16px; }

/* ---------- Offline entry mode (staff only) ---------- */
.op-staff-bar { position:sticky; top:0; z-index:45; background:#1f3a5f; color:#fff; }
.op-staff-bar.is-ended { background:#7a2b24; }
.op-staff-bar-inner { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; padding-block:10px; }
.op-staff-bar p { margin:0; font-size:14px; line-height:1.45; }
.op-staff-exit { min-height:44px; padding:8px 16px; border:1px solid #fff; border-radius:5px; background:transparent; color:#fff; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.op-staff-exit:hover { background:#ffffff1f; }
.offline-note { margin:0 0 20px; padding:10px 12px; border-radius:4px; background:var(--peach); font-size:13px; line-height:1.5; }
.offline-address { margin:0 0 6px; }
.offline-address>summary { cursor:pointer; font-size:14px; font-weight:600; margin:0 0 16px; min-height:32px; }
.offline-types { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 18px; }
.offline-types>.field-label { width:100%; font-size:14px; font-weight:600; }
.offline-type { display:inline-flex; align-items:center; gap:8px; margin:0; padding:10px 16px; min-height:44px; border:1px solid var(--line); border-radius:5px; font-weight:600; cursor:pointer; }
.offline-type:has(input:checked) { border-color:var(--ink); background:var(--peach); }
.offline-type input { width:18px; height:18px; margin:0; accent-color:var(--ink); }
.offline-form textarea { display:block; width:100%; margin-top:9px; padding:10px 14px; border:1px solid #cfc5bf; border-radius:4px; background:var(--white); color:var(--ink); font:inherit; font-size:16px; font-weight:400; resize:vertical; }
.offline-check { margin:0 0 12px; }
.offline-result-body { padding:44px 28px 36px; text-align:center; }
.offline-result #opOffResultHeading { font-size:48px; letter-spacing:-1.8px; line-height:1.05; margin:6px 0 12px; outline:none; font-variant-numeric:tabular-nums; }
.offline-result.is-refusal #opOffResultHeading,.offline-result.is-ended #opOffResultHeading { font-size:30px; letter-spacing:-.8px; }
.offline-amount { font-size:26px; font-weight:700; color:var(--accent-text); margin:0 0 10px; }
.offline-result p { margin:0 0 10px; font-size:15px; line-height:1.55; color:var(--muted); }
.offline-receipt { font-weight:600; }
.offline-result-actions { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px; margin-top:22px; }

@keyframes arrive { from { opacity:0; translate:0 12px; } to { opacity:1; translate:0 0; } }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes entry-cue { 0%,100% { box-shadow:0 0 0 0 transparent; } 40% { box-shadow:0 0 0 6px var(--peach); } }

@media(max-width:1100px) {
  .wrap { width:calc(100% - 56px); }
  .guide-intro { padding:24px; }
  .guide-step { padding:18px 20px; }
  .entry-section { gap:45px; }
  .entry-intro h2 { font-size:56px; }
  .entry-form { padding:27px; }
}
@media(max-width:999px) {
  .hero-inner { height:390px; gap:25px; }
  .hero h1 { font-size:90px; }
  .hero h1.is-long { font-size:64px; }
  .hero h1.is-xlong { font-size:46px; }
  .hero-lead { font-size:21px; }
  .guide { height:auto; }
  .guide-step { padding:26px 20px; }
  .organization-editorial,.platform-invitation { gap:35px; }
  .organization-photo img { height:560px; }
  .platform-footer-grid { gap:30px; }
}
@media(max-width:850px) {
  .guide { grid-template-columns:1fr 1fr 1fr; }
  .guide-intro { grid-column:1/-1; flex-direction:row; align-items:center; justify-content:space-between; padding:22px 25px; }
  .guide h2 br { display:none; }
  .entry-section { gap:30px; grid-template-columns:.8fr 1.2fr; }
  .entry-intro h2 { font-size:46px; letter-spacing:-2.4px; }
  .entry-summary>div:not(.summary-divider) { flex-wrap:wrap; }
}

/* ---------- Phone layout ---------- */
@media(max-width:650px) {
  :root { --digit-h:84px; --digit-w:62px; --digit-size:64px; }
  html { scroll-padding-top:92px; }
  .wrap { width:calc(100% - 40px); }
  .hide-mobile { display:none!important; }
  .site-header { min-height:60px; }
  .brand { font-size:13px; gap:8px; }
  .brand-logo { max-height:36px; max-width:160px; }
  .header-link { font-size:13px; gap:10px; }
  .header-link span { font-size:18px; }

  .hero-inner { grid-template-columns:1fr; gap:0; height:auto; min-height:0; padding-bottom:8px; }
  .hero-inner.no-art { min-height:0; }
  .hero-copy { padding:28px 0 20px; }
  .hero h1 { font-size:clamp(56px,17vw,84px); letter-spacing:-.06em; margin-bottom:16px; }
  .hero h1.is-long { font-size:clamp(40px,11vw,56px); }
  .hero h1.is-xlong { font-size:clamp(32px,8.5vw,42px); }
  .hero-lead { font-size:18px; }
  .hero .cause { font-size:14px; }
  .prize-art { height:min(62vw,300px); margin-bottom:8px; }

  .ticket-bar { gap:14px; padding:18px 0; margin-top:0; }
  .tickets-remaining { flex-direction:column; align-items:flex-start; gap:4px; }
  .tickets-remaining strong { font-size:42px; }
  .tickets-remaining>span { font-size:14px; }
  .entry-action { gap:8px; flex-direction:column-reverse; align-items:stretch; }
  .entry-cta { padding:14px 17px; min-height:50px; gap:22px; }
  .entry-cta strong { font-size:16px; }
  .entry-price { flex-direction:row; justify-content:center; align-items:baseline; gap:5px; text-align:center; }
  .entry-action .share { order:-1; justify-content:center; }
  .entry-action .share-button { min-height:44px; padding:8px 14px; font-size:14px; border-color:transparent; background:transparent; text-decoration:underline; text-underline-offset:3px; }
  .ticket-bar.is-compact { padding-block:10px; }
  .ticket-bar.is-compact .entry-action { width:100%; }
  .share-fallback { left:50%; right:auto; translate:-50% 0; }
  .winners { padding:18px 18px 6px; }
  .winners-heading { font-size:22px; }
  .draw-explainer { padding-top:20px; }
  .draw-explainer-box>summary { padding:16px 48px 16px 18px; }
  .draw-explainer-steps { grid-template-columns:1fr; padding:4px 18px 8px; gap:14px; }
  .draw-explainer-note { padding:10px 18px 0; }
  .op-gallery { padding-block:44px; }
  .op-gallery-heading { font-size:30px; margin-bottom:20px; }
  .op-gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .op-gallery-grid.is-single { grid-template-columns:1fr; }
  .op-lightbox-close { top:8px; right:8px; }
  .op-lightbox-nav.prev { left:8px; }
  .op-lightbox-nav.next { right:8px; }
  .offline-result #opOffResultHeading { font-size:38px; }
  .entry-price strong,.entry-price>span { font-size:12px; }
  .entry-arrow { font-size:22px; }

  .guide { grid-template-columns:1fr; border-radius:6px; }
  .guide-intro { grid-column:auto; display:block; padding:22px 24px; }
  .guide-intro>.eyebrow { display:block; margin-bottom:8px; }
  .guide h2 { font-size:30px; }
  .guide-step { padding:20px 24px 20px 78px; min-height:0; }
  .guide-step+.guide-step::before { top:0; left:24px; right:24px; height:1px; width:auto; bottom:auto; }
  .step-top { position:absolute; left:24px; top:19px; margin:0; }
  .step-top b { font-size:28px; }
  .guide h3 { font-size:19px; margin-bottom:6px; }
  .guide.guide-docked { padding-inline:8px; height:76px; min-height:76px; }
  .guide-docked .guide-step { padding:8px 6px; gap:3px; flex-direction:column; justify-content:center; text-align:center; }
  .guide-docked .guide-step+.guide-step::before { top:14px; bottom:14px; left:0; right:auto; width:1px; height:auto; }
  .guide-docked h3 { font-size:12px; line-height:1.2; }
  .guide-docked .step-top b { font-size:17px; }
  .ticket-bar { flex-wrap:wrap; }
  .entry-price>.round-label { align-self:center; }
  .test-mode-banner { font-size:12px; padding:6px 12px; }

  .entry-section { grid-template-columns:1fr; padding-top:40px; padding-bottom:48px; gap:26px; }
  .entry-intro>.eyebrow { margin-bottom:12px; }
  .entry-intro h2 { font-size:44px; letter-spacing:-2.4px; margin-bottom:12px; }
  .entry-intro h2 br { display:none; }
  .entry-intro>.entry-context-lead { font-size:19px; max-width:none; margin:14px 0 10px; }
  .entry-intro>.entry-context { font-size:15px; max-width:none; }
  .entry-summary { margin-top:20px; max-width:none; padding-top:16px; }
  .entry-summary>div:not(.summary-divider) { margin-top:10px; }
  .entry-summary p { margin:10px 0 0; }
  .summary-divider,.summary-divider+p { display:none; }
  .sold-board { max-width:none; }

  .state-notice { padding:28px 20px; }
  .state-notice h3 { font-size:28px; }
  .entry-form { padding:24px 18px; }
  .entry-form legend { font-size:21px; }
  .field-row { gap:12px; }
  .authorization { padding:16px; }
  .authorize { font-size:16px; gap:10px; }
  input:not([type=checkbox]):not([type=radio]) { height:50px; }
  .card-brand-icon { width:40px; height:27px; }

  .flow-panel { padding:22px 18px; min-height:400px; scroll-margin-top:64px; }
  #flow-body { padding-top:32px; }
  #flow-heading { font-size:29px; letter-spacing:-1px; }
  .number-display { gap:6px; margin:22px 0; }
  .number-display[data-digits="4"] { --digit-w:54px; --digit-size:54px; --digit-h:74px; }
  .number-display[data-digits="5"],.number-display[data-digits="6"],.number-display[data-digits="7"] { --digit-w:42px; --digit-size:42px; --digit-h:60px; gap:4px; }
  .entry-receipt>div { font-size:13px; gap:12px; }
  #flow-actions .button { min-width:0; width:100%; justify-content:center; gap:14px; }

  .organization-section { padding:48px 0 38px; }
  .organization-editorial { grid-template-columns:1fr; gap:28px; }
  .organization-photo img { height:min(100vw,400px); }
  .organization-narrative { padding-top:0; }
  .organization-narrative>.eyebrow { margin-bottom:14px; }
  .organization-narrative h2 { font-size:36px; letter-spacing:-1.4px; }
  .organization-contact { grid-template-columns:1fr; gap:14px; margin-top:28px; }
  .site-footer-inner { flex-direction:column; gap:6px; padding:22px 0; }
  body { padding-bottom:var(--mobile-bar-h); }
  .platform-invitation,.platform-footer-grid { grid-template-columns:1fr; gap:26px; }
  .platform-invitation { padding:40px 0; }
  .platform-invitation h2 { font-size:34px; }
  .platform-footer-grid { padding:32px 0; }
  .footer-bottom { flex-direction:column; gap:8px; }

  .mobile-bar { display:flex; position:fixed; left:0; right:0; bottom:0; z-index:30; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:var(--ink); color:var(--on-ink); box-shadow:0 -6px 18px #0002; transform:translateY(110%); transition:transform .25s ease; }
  .mobile-bar.is-visible { transform:translateY(0); }
  .mobile-bar-count { font-size:13px; line-height:1.3; min-width:0; }
  .mobile-bar-count strong { font-size:22px; letter-spacing:-.6px; font-variant-numeric:tabular-nums; }
  .mobile-bar-cta { flex-shrink:0; display:inline-flex; align-items:center; gap:10px; padding:12px 16px; min-height:46px; border-radius:5px; background:var(--accent); color:var(--on-accent); font-size:15px; font-weight:700; }
  .thank-you { padding-block:28px 56px; }
  .ty-heading { font-size:30px; }
}
@media(max-width:400px) {
  .field-row { grid-template-columns:1fr; gap:0; }
  .entry-form { padding:22px 16px; }
  .flow-panel { padding:20px 14px; }
  #flow-heading { font-size:26px; }
  .entry-intro h2 { font-size:40px; letter-spacing:-2px; }
  .tickets-remaining strong { font-size:38px; }
  .authorization { padding:14px; }
  .terms-text,.authorization .field-error { margin-left:0; }
  .card-brand-icon { width:36px; height:24px; }
}
@media(max-width:380px) {
  .wrap { width:calc(100% - 32px); }
  .entry-intro h2 { font-size:40px; }
  .guide-docked h3 { font-size:11px; }
  .mobile-bar-cta { padding:12px; font-size:14px; }
}
@media(max-width:360px) {
  .guide-docked h3 { font-size:10.5px; }
  .number-display[data-digits="5"],.number-display[data-digits="6"],.number-display[data-digits="7"] { --digit-w:38px; --digit-size:38px; --digit-h:56px; gap:3px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none!important; transition:none!important; }
}
