/* ════════════════════════════════════════════════════════════════════════
   Beer-cap lottery & store finder — clean, modern UI in Kamenitza colours.
   One typeface (Plus Jakarta Sans), warm-cream surfaces, Kamenitza red as the
   primary + Kamenitza gold as the secondary accent, soft elevation, calm motion.
   ════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* seven-segment digital face for the hero countdown clock */
@font-face {
    font-family: "Digital Numbers";
    src: url('/static/fonts/DigitalNumbers-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

:root {
    /* surfaces — palette from the Figma design */
    --bg:        #064f24;       /* deep Kamenitza green — the page background */
    --green-deep:#04391a;       /* darker green — footer / dark cards */
    --green-mid: #246c2d;       /* mid green — subtle accents */
    --bg-2:      #f3ecda;       /* light cream — used INSIDE white cards */
    --surface:   #ffffff;
    --admin-bg:  #f4efe2;       /* light cream — admin pages */

    /* text */
    --ink:       #231811;       /* warm brown-black — text on light surfaces */
    --ink-2:     #5a4a3e;
    --ink-3:     #94857a;
    --on-dark:   #fdf8ee;       /* cream — text on green / red / dark surfaces */
    --on-dark-2: rgba(253, 248, 238, 0.66);
    --on-green:  rgba(253, 248, 238, 0.88);

    /* lines */
    --line:        #ece3d2;
    --line-strong: #dacfba;

    /* brand — Kamenitza red + antique gold (on the deep-green ground) */
    --brand:        #cf1f39;    /* Kamenitza red — primary buttons, logo, active */
    --brand-hover:  #b51b32;
    --brand-strong: #a81930;    /* readable red on white (links, accents) */
    --brand-soft:   #f4e7c4;    /* pale antique-gold tint — pill/tile backgrounds inside cards */
    --brand-ring:   rgba(207, 31, 57, 0.30);
    --ring-green:   rgba(36, 108, 45, 0.35);  /* green focus ring (admin / inputs) */
    --gold:         #deba65;    /* antique gold — secondary accent */
    --gold-hi:      #edce89;    /* light gold — hover on dark surfaces */
    --gold-strong:  #8a6420;    /* readable gold on white */
    --gold-hover:   #c8a851;    /* gold button hover (a touch darker) */

    /* support colours (used sparingly) */
    --ok:        #2c7a57;
    --ok-soft:   #e4f1ea;
    --danger:    #c0392b;
    --danger-soft:#fbeae8;

    /* elevation */
    --sh-1: 0 1px 2px rgba(35, 24, 17, 0.06);
    --sh-2: 0 1px 3px rgba(35, 24, 17, 0.06), 0 6px 18px rgba(35, 24, 17, 0.07);
    --sh-3: 0 2px 8px rgba(35, 24, 17, 0.06), 0 18px 40px rgba(35, 24, 17, 0.12);

    /* radii */
    --r-1: 10px;
    --r-2: 16px;
    --r-3: 24px;
    --r-pill: 999px;

    --maxw: 1120px;
    --head-h: 64px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --ff: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ff-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ff);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg) url('/static/img/bg.png') center top / cover no-repeat fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
::selection { background: var(--brand-soft); color: var(--ink); }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 2px; border-radius: 4px; }

/* unused decorative layers from older markup — kept harmless */
.bg, .bg-cap { display: none; }

/* generic "cap" icon tile (rounded badge with content inside) */
.cap {
    display: inline-grid; place-items: center; flex: none;
    width: 44px; height: 44px; border-radius: 14px;
    background: var(--brand-soft); color: var(--brand-strong);
    font-weight: 800; font-size: 1.05rem; line-height: 1; user-select: none;
}
.cap > * { line-height: 1; }
.cap--mint { background: var(--ok-soft); color: var(--ok); }
.cap--tang { background: var(--ink); color: var(--on-dark); }
.cap--lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.7rem; }

/* ─────────────────────────────── header ──────────────────────────────── */
.site-head {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 1rem;
    height: var(--head-h);
    padding: 0 clamp(1rem, 3vw, 2rem);
    background: rgba(4, 41, 18, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(222, 186, 101, 0.22);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}
.brandmark { display: flex; align-items: center; margin-right: auto; }
.brandmark:hover { text-decoration: none; }
.brandmark-logo { height: 46px; width: auto; display: block; }
/* legacy fallbacks (older markup) */
.brandmark .mark, .brandmark .cap { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: var(--on-dark); font-weight: 800; }
.brandmark-text { font-size: 1.04rem; font-weight: 800; color: var(--on-dark); margin-left: 0.55rem; }

.nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
.nav-desktop a {
    color: var(--on-green); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 0.5rem 0.8rem; border-radius: var(--r-1); white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.nav-desktop a:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.nav-desktop a[aria-current="page"] { color: var(--gold); }
.nav-desktop a.nav-cta {
    margin-left: 0.4rem; background: var(--brand); color: var(--on-dark); font-weight: 800;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.nav-desktop a.nav-cta:hover { background: var(--brand-hover); color: var(--on-dark); }

/* hamburger (mobile) */
.menu-btn {
    display: none; width: 40px; height: 40px; padding: 0; cursor: pointer;
    background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.30); border-radius: var(--r-1);
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--on-dark); border-radius: 2px; transition: transform 0.22s var(--ease), opacity 0.18s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-panel {
    position: fixed; top: calc(var(--head-h) + 8px); left: 12px; right: 12px; z-index: 49;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2);
    box-shadow: var(--sh-3); padding: 0.5rem;
    display: none; animation: rise 0.2s var(--ease);
}
.menu-panel.open { display: block; }
.menu-panel a {
    display: block; padding: 0.75rem 0.9rem; color: var(--ink); font-weight: 600;
    border-radius: var(--r-1);
}
.menu-panel a:hover { background: var(--bg-2); text-decoration: none; }
.menu-panel hr { border: none; border-top: 1px solid var(--line); margin: 0.4rem; }

/* ─────────────────────────────── layout ──────────────────────────────── */
.page {
    flex: 1 0 auto;
    width: 100%; max-width: var(--maxw); margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem) 4.5rem;
    display: flex; flex-direction: column; align-items: center;
}
.page > *, .hero > * { width: 100%; }
.page > .eyebrow, .hero > .eyebrow { width: auto; max-width: 100%; }

/* ─────────────────────────── headings & tags ─────────────────────────── */
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    align-self: center;
    padding: 0.34rem 0.85rem; border-radius: var(--r-pill);
    background: var(--gold); color: var(--ink);
    font-size: 0.76rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
    box-shadow: var(--sh-1);
    margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.title {
    font-size: clamp(2rem, 5.2vw, 3.5rem); font-weight: 800; line-height: 1.12;
    letter-spacing: -0.025em; text-align: center; text-wrap: balance;
    color: var(--on-dark); margin: 0 0 1rem; max-width: 18ch;
}
.title.small { font-size: clamp(1.6rem, 3.6vw, 2.3rem); max-width: 24ch; margin-bottom: 1.75rem; }
.title .accent { color: var(--gold); }
.subtitle {
    text-align: center; max-width: 56ch; margin: 0 0 2rem;
    font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--on-green); line-height: 1.55;
    text-wrap: pretty;
}

/* small fact chips */
.badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; margin: 0.5rem 0 0; }
.badge {
    display: inline-flex; align-items: baseline; gap: 0.4rem;
    padding: 0.5rem 0.9rem; border-radius: var(--r-pill);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
    font-size: 0.9rem; color: var(--ink-2); font-weight: 500;
}
.badge b { font-size: 1.08rem; font-weight: 800; color: var(--ink); }
.badge--accent { background: var(--brand-soft); border-color: transparent; }

/* ─────────────────────────────── buttons ─────────────────────────────── */
.btn, .big-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
    padding: 0.85rem 1.5rem; border-radius: var(--r-pill);
    border: 1.5px solid transparent; cursor: pointer; text-align: center;
    background: var(--brand); color: var(--on-dark);
    transition: background 0.16s, transform 0.12s var(--ease), box-shadow 0.16s, border-color 0.16s;
    box-shadow: var(--sh-1);
}
.btn:hover, .big-btn:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: var(--sh-2); text-decoration: none; color: var(--on-dark); }
.btn:active, .big-btn:active { transform: translateY(0); box-shadow: var(--sh-1); }
/* form-submit button — gold (matches the registration mockup) */
.big-btn { width: 100%; padding: 1rem 1.5rem; margin-top: 1.6rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--gold); color: var(--ink); border-color: transparent; }
.big-btn:hover { background: var(--gold-hover); color: var(--ink); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--secondary, .btn--ghost {
    background: var(--surface); color: var(--ink); border-color: var(--line-strong);
}
.btn--secondary:hover, .btn--ghost:hover { background: var(--bg-2); border-color: var(--line-strong); color: var(--ink); }
.btn--success, .btn--mint { background: var(--ok); color: #fff; }
.btn--success:hover, .btn--mint:hover { background: #246549; color: #fff; }
.btn--amber, .btn--gold { background: var(--gold); color: var(--ink); border-color: transparent; }
.btn--amber:hover, .btn--gold:hover { background: var(--gold-hover); color: var(--ink); }
/* gold-outline button — the "НАГРАДНИ ЦЕНТРОВЕ" CTA on the hero */
.btn--outline-gold { background: transparent; color: var(--gold); border: 2px solid var(--gold); text-transform: uppercase; letter-spacing: 0.04em; box-shadow: none; }
.btn--outline-gold:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--cta { text-transform: uppercase; letter-spacing: 0.04em; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.92rem; }
.btn--full { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }

/* ─────────────────────── hero (Figma promo banner) ───────────────────── */
.hero { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 1.25rem; }
.hero-banner { width: 100%; max-width: 760px; position: relative; }
.hero-banner .hero-photo { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 38px rgba(0,0,0,0.38)); }
/* slogan overlaid across the top of the hero photo */
.hero-banner .hero-slogan {
    position: absolute; top: -7%; left: 50%; transform: translateX(-50%);
    width: 82%; height: auto; display: block;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35));
}
.hero .btn-row { margin-top: 0.2rem; }

/* hero countdown — time to the next round-hour draw */
.countdown {
    display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
    margin-top: 0.4rem;
}
.countdown__label {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--gold);
}
.countdown__time {
    font-family: "Digital Numbers", var(--ff-mono);
    font-size: clamp(1.9rem, 6vw, 3.1rem); line-height: 1;
    color: var(--gold-hi);
    letter-spacing: 0.1em;
    text-shadow: 0 3px 12px rgba(0,0,0,0.45);
}
.hero .countdown { margin-bottom: 1rem; }
.countdown__done {
    font-size: clamp(1.2rem, 4.2vw, 2rem); font-weight: 800; line-height: 1.15;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--gold-hi);
    text-shadow: 0 3px 12px rgba(0,0,0,0.45);
    text-align: center;
}
/* pre-launch "coming soon" teaser (shown before the campaign start date) */
.teaser {
    display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
    max-width: 540px; margin: 0.4rem auto 1rem; padding: 1.4rem 1.6rem;
    text-align: center;
    background: var(--green-deep);
    border: 2px solid var(--gold);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.34);
}
.teaser__eyebrow {
    font-size: 0.82rem; font-weight: 800; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--gold);
}
.teaser__text {
    margin: 0; font-size: clamp(1.05rem, 3.4vw, 1.35rem); font-weight: 600;
    line-height: 1.45; color: var(--on-dark);
}
.teaser__text strong { color: var(--gold-hi); font-weight: 800; white-space: nowrap; }
/* standalone pre-launch "coming soon" page (whole site before campaign start) */
.coming-soon {
    min-height: 100dvh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1.5rem; max-width: 600px; margin: 0 auto; padding: 2.2rem 1.1rem; text-align: center;
}
.coming-soon__logo { width: clamp(120px, 32vw, 200px); height: auto; }
.coming-soon .hero-banner { width: 100%; max-width: 480px; margin-top: 0.6rem; }
.coming-soon__legal {
    margin: 0.6rem 0 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
    color: var(--gold); opacity: 0.85;
}
/* gold bottle scroll-down cue */
.scroll-cue { width: 26px; height: auto; margin: 0.6rem auto 0; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
    .scroll-cue { animation: bob 1.8s var(--ease) infinite; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
/* generic centred hero text block (used on form/inner pages) */
.hero-text { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 760px; margin: 0 auto; text-align: center; }
.hero-text > * { width: 100%; }
.hero .badge-row { margin-top: 2rem; }
/* circular brand photo above forms / on inner pages */
/* circular promo composition (already has its own gold ring + transparent corners) */
.form-photo {
    width: clamp(260px, 50vw, 460px); height: auto;
    display: block; margin: 0 auto 1.4rem;
    filter: drop-shadow(0 14px 30px rgba(0,0,0,0.34));
    border: none; border-radius: 0; background: none;
}
/* registration form wrapper — anchors the decorative can */
.reg-wrap {
    position: relative; width: 100%; max-width: 480px; margin: 0 auto;
    display: flex; flex-direction: column;
}
/* decorative Kamenitza can beside the form (desktop only) */
.deco-can {
    position: absolute; left: calc(100% + clamp(8px, 3vw, 56px)); bottom: -1rem;
    width: clamp(140px, 14vw, 210px); height: auto; pointer-events: none;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.42));
    z-index: 1;
}
@media (max-width: 1080px) { .deco-can { display: none; } }
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem; width: 100%;
}
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.5rem; width: 100%; max-width: 760px; margin: 0 auto; }

.card, .cta-card {
    display: flex; flex-direction: column; gap: 0.5rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2);
    padding: 1.6rem; box-shadow: var(--sh-1);
    transition: transform 0.16s var(--ease), box-shadow 0.16s, border-color 0.16s;
}
a.card, a.cta-card { color: var(--ink); }
a.card:hover, a.cta-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-strong); text-decoration: none; }
.cta-card .icon-tile, .cta-icon, .cta-card .cap {
    width: 46px; height: 46px; flex: none; border-radius: var(--r-1);
    display: grid; place-items: center; font-size: 1.4rem;
    background: var(--brand-soft);
    margin-bottom: 0.3rem;
}
.cta-icon img { width: 24px; height: auto; display: block; }
.cta-card .cap { background: var(--brand); color: var(--on-dark); }
.cta-card .cap > * { font-size: 1rem; font-weight: 800; }
.cta-card.cta--tang { background: var(--green-deep); border-color: var(--green-deep); color: var(--on-dark); }
/* dark-green Figma pin needs a light tile to read on the dark card */
.cta-card.cta--tang .icon-tile { background: rgba(255,255,255,0.10); }
.cta-card.cta--tang .cta-icon { background: var(--gold); }
a.cta-card.cta--tang:hover { background: #0a6630; border-color: var(--green-deep); }
.cta-card.cta--tang .cta-sub { color: var(--on-dark-2); }
.cta-label { font-size: 1.2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.cta-sub { font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
.cta-card .arrow { margin-top: auto; padding-top: 0.6rem; font-weight: 700; color: var(--brand-strong); }
.cta-card.cta--tang .arrow { color: var(--gold); }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.5rem; width: 100%; }
.step {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2);
    padding: 1.6rem; box-shadow: var(--sh-1);
}
.step .num, .step .cap {
    width: 38px; height: 38px; flex: none; border-radius: 12px;
    display: grid; place-items: center; margin-bottom: 0.9rem;
    background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; font-size: 1.05rem;
}
.step .cap > * { font-size: 1.05rem; }
.step .cap--tang { background: var(--ink); color: var(--on-dark); }
.step .cap--mint { background: var(--ok-soft); color: var(--ok); }
.step h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }

/* generic panel */
.panel {
    width: 100%; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-2); box-shadow: var(--sh-1); padding: clamp(1.5rem, 4vw, 2.25rem);
}

/* ───────── forms — sit directly on the green page, gold-bordered inputs ───────── */
.form-section {
    width: 100%; max-width: 480px; margin: 0 auto;
    display: flex; flex-direction: column;
    background: transparent; border: none; box-shadow: none; padding: 0;
}
.form-section.wide { max-width: 560px; }
.form-label {
    font-weight: 600; font-size: 0.92rem; color: var(--on-dark); margin: 1.3rem 0 0.45rem;
}
.form-section > .form-label:first-child, .form-section > .form-label:first-of-type { margin-top: 0; }
.form-section input[type="text"], .form-section input[type="tel"], .form-section input[type="email"], .form-section input[type="password"], .form-section input:not([type]) {
    width: 100%; padding: 0.85rem 1rem;
    font-family: inherit; font-size: 1.02rem; color: var(--on-dark);
    background: var(--green-deep); border: 2px solid var(--gold); border-radius: var(--r-1);
    outline: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.form-section input:hover { background: #053a1a; }
.form-section input:focus { border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(222, 186, 101, 0.30); }
.form-section input::placeholder { color: var(--on-dark-2); }
#u_code { font-family: var(--ff-mono); letter-spacing: 0.16em; font-weight: 500; text-transform: uppercase; }
#u_code::placeholder { letter-spacing: normal; }

.check-row, .reg-form .check-row {
    display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.9rem;
    font-size: 0.92rem; line-height: 1.45; color: var(--on-green);
}
.check-row input[type="checkbox"], .reg-form .check-row input[type="checkbox"] {
    flex: none; margin-top: 0.15rem; width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer;
}
.check-row a, .reg-form .check-row a { color: var(--gold); font-weight: 700; }

#reg-status, #search-status { min-height: 1.25rem; margin-top: 0.85rem; font-size: 0.9rem; font-weight: 600; color: var(--on-green); }
#reg-status.warn, #search-status.warn { color: #ffd1c4; }
#search-status { margin-top: 0.6rem; }

.claim-error {
    margin: 0 0 1.1rem; padding: 0.8rem 1rem; font-size: 0.92rem; font-weight: 600;
    color: #ffd1c4; background: rgba(207, 31, 57, 0.18);
    border: 2px solid var(--brand); border-radius: var(--r-1);
}
.hint { margin: 1.1rem 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--on-green); }
.form-section .hint { text-align: center; }

/* ─────────────────────────────── modal ──────────────────────────────── */
.modal {
    position: fixed; inset: 0; z-index: 200; padding: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(6, 35, 18, 0.5); backdrop-filter: blur(3px);
    animation: fade 0.2s ease;
}
.modal[hidden] { display: none; }
.modal-card {
    width: 100%; max-width: 400px; text-align: center;
    background: var(--surface); border-radius: var(--r-2); box-shadow: var(--sh-3);
    padding: 2rem 1.75rem 1.75rem; animation: rise 0.25s var(--ease);
}
.modal-icon {
    width: 64px; height: 64px; margin: 0 auto 1rem; display: grid; place-items: center;
    font-size: 2rem; border-radius: 50%; background: var(--brand-soft);
}
.modal-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.modal-text { font-size: 0.98rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 1.25rem; }
.modal-card .big-btn { margin-top: 0; }

/* ──────────────────────────────── prizes ─────────────────────────────── */
/* Figma "награда:" red pill, used as the section eyebrow */
.eyebrow-img { display: block; height: 30px; width: auto; margin: 0 auto 1.1rem; }
/* slogan graphic ("награди / Всеки час") used as a page heading */
.slogan-head { display: block; width: min(100%, 560px); height: auto; margin: 0 auto 1.4rem;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.30)); }

.prize-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 2rem 1.5rem; width: 100%; max-width: 1000px; margin: 0 auto; }
/* prize cards float on the green page — the Figma art is the whole card */
.prize-card {
    display: flex; flex-direction: column; align-items: center;
    background: transparent; border: none; box-shadow: none; padding: 0; overflow: visible;
    transition: transform 0.18s var(--ease);
}
.prize-card:hover { transform: translateY(-4px); }
.prize-img {
    width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: contain;
    background: none; border-radius: 0; margin-bottom: 1.1rem;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.34));
}
.prize-img.placeholder { display: grid; place-items: center; font-size: 2.6rem; }
.prize-img.placeholder .cap { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); font-size: 1.6rem; }
.prize-name { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; margin: 0; color: var(--on-dark); text-align: center; }
.prize-desc { font-size: 0.92rem; color: var(--on-green); margin: 0.35rem 0 0; line-height: 1.5; text-align: center; }
.prize-progress { width: 100%; max-width: 280px; margin-top: auto; padding-top: 0.9rem; font-size: 0.82rem; color: var(--on-dark-2); font-weight: 600; text-align: center; }
.prize-progress b { font-size: 1.05rem; font-weight: 800; color: var(--gold); }
.prize-bar { margin-top: 0.5rem; height: 8px; background: rgba(4, 41, 18, 0.6); border: 1px solid rgba(222, 186, 101, 0.35); border-radius: var(--r-pill); overflow: hidden; }
.prize-bar > i { display: block; height: 100%; background: var(--gold); border-radius: var(--r-pill); }

/* ──────────────────────────────── winners ────────────────────────────── */
.winners-table-wrap, .data-table-wrap {
    width: 100%; max-width: 820px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2);
    box-shadow: var(--sh-1); overflow: hidden;
}
.winners-table, .data-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    /* the .winners-table-wrap provides the card — neutralise the generic `table` styles */
    margin: 0; background: transparent; border: none; border-radius: 0; box-shadow: none;
}
.winners-table th, .winners-table td, .data-table th, .data-table td {
    padding: 0.95rem 1.25rem; text-align: left; font-size: 0.94rem; border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.winners-table tr:last-child td, .data-table tr:last-child td { border-bottom: none; }
.winners-table th, .data-table th {
    background: var(--bg-2); color: var(--ink-2); font-weight: 700;
    font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.winners-table tbody tr, .data-table tbody tr { transition: background 0.15s var(--ease); }
.winners-table tbody tr:nth-child(even) td { background: rgba(243, 236, 218, 0.4); }
.winners-table tr:hover td, .data-table tr:hover td { background: var(--bg-2); }
/* dedicated cells */
.winners-table td[data-label="Дата и час"] { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.winners-table td[data-label="Телефон"]    { font-variant-numeric: tabular-nums; }
.winners-table code, .data-table code, code.mono {
    font-family: var(--ff-mono); font-size: 0.9em; letter-spacing: 0.06em; font-weight: 600;
    background: var(--brand-soft); color: var(--gold-strong);
    padding: 0.22rem 0.55rem; border-radius: 8px; border: 1px solid var(--line-strong);
    white-space: nowrap;
}

/* ──────────────────────────── empty / generic ────────────────────────── */
.empty {
    width: 100%; max-width: 460px; margin: 0 auto; text-align: center;
    background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-2);
    padding: 2.25rem 1.75rem; color: var(--ink-2);
}
.empty .cap { width: 48px; height: 48px; margin: 0 auto 0.9rem; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.5rem; }
.empty .cap--mint { background: var(--ok-soft); }
.empty br { display: none; }

/* ──────────────────────────── prose (rules) ──────────────────────────── */
.prose {
    width: 100%; max-width: 720px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2);
    box-shadow: var(--sh-1); padding: clamp(1.75rem, 4vw, 3rem); line-height: 1.7;
}
.prose > p:first-child { font-size: 1.05rem; color: var(--ink); }
.prose h2 {
    font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3;
    margin: 2.25rem 0 0.6rem; padding-left: 0.85rem; border-left: 3px solid var(--brand); color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.02rem; font-weight: 700; margin: 1.3rem 0 0.35rem; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--brand-strong); }
.prose p { margin: 0.6rem 0; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ─────────────────────────────── maps ───────────────────────────────── */
.map-frame {
    width: 100%; max-width: 920px; margin: 1.25rem auto 0;
    border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--sh-1);
    overflow: hidden; background: var(--bg-2);
    /* own stacking context so Leaflet's panes don't overlap the sticky header */
    position: relative; z-index: 0;
}
#map, #admin-map { width: 100%; height: 500px; max-height: 80vh; position: relative; z-index: 0; }
#admin-map { height: 360px; border: 1px solid var(--line-strong); border-radius: var(--r-1); }
.leaflet-container { font-family: var(--ff); }
.leaflet-popup-content-wrapper { border-radius: var(--r-1); box-shadow: var(--sh-2); }
.leaflet-popup-content { margin: 0.8rem 1rem; }
.leaflet-bar { border: none !important; box-shadow: var(--sh-2) !important; border-radius: var(--r-1) !important; overflow: hidden; }
.leaflet-bar a { background: var(--surface); color: var(--ink); border-bottom-color: var(--line) !important; }
.leaflet-bar a:hover { background: var(--bg-2); }
.leaflet-marker-icon { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
.popup-name { font-weight: 800; font-size: 0.98rem; margin-bottom: 0.2rem; color: var(--ink); }
.popup-addr { font-size: 0.84rem; color: var(--ink-2); margin-bottom: 0.25rem; }
.popup-desc { font-size: 0.86rem; color: var(--ink); }
.beer-marker { font-size: 1.4rem; text-align: center; }

/* floating buttons */
.locate-fab, .goto-top {
    position: fixed; right: 1.25rem; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; z-index: 40;
    border: 1px solid var(--line); box-shadow: var(--sh-3);
    transition: transform 0.14s var(--ease), box-shadow 0.16s, background 0.16s;
}
.locate-fab { bottom: 1.25rem; background: var(--brand); color: var(--on-dark); border-color: transparent; }
.locate-fab:hover { background: var(--brand-hover); transform: translateY(-2px); }
.goto-top {
    bottom: 1.25rem; background: var(--surface); color: var(--ink); font-size: 1.2rem; font-weight: 800;
    opacity: 0; pointer-events: none; transform: translateY(8px);
}
.goto-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.goto-top:hover { background: var(--bg-2); }
body:has(.locate-fab) .goto-top { bottom: 5rem; }

/* ─────────────────────────────── footer ─────────────────────────────── */
.site-foot { margin-top: auto; background: var(--green-deep); color: var(--on-dark-2); padding: 2.6rem clamp(1rem, 4vw, 2.5rem); text-align: center; }
.site-foot .toothline { display: none; }
.site-foot-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.95rem; }
.site-foot-legal { margin: 0; max-width: 58ch; font-size: 0.8rem; line-height: 1.55; color: rgba(253, 248, 238, 0.5); }
.site-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; font-size: 0.85rem; }
.site-foot-links a { color: var(--gold); font-weight: 600; }
.site-foot-links a:hover { color: var(--gold-hi); }
.site-foot-links span { color: rgba(253, 248, 238, 0.3); }
.site-foot-copy { margin: 0; font-size: 0.78rem; color: rgba(253, 248, 238, 0.38); }

/* vertical "консумирай с мярка" strip on the right edge (Figma asset) */
.side-legal {
    position: fixed; right: 0.55rem; top: 50%; transform: translateY(-50%);
    height: min(58vh, 520px); width: auto; z-index: 5;
    pointer-events: none; user-select: none; opacity: 0.85;
}

/* ════════════════════════════════ ADMIN ═══════════════════════════════ */
.admin-body { background: var(--bg); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
.admin-body .bg { display: none; }

.topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
    padding: 0.65rem clamp(1rem, 3vw, 1.75rem);
    background: var(--bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}
.topbar .brand { display: flex; align-items: center; gap: 0.55rem; margin-right: auto; font-weight: 800; font-size: 1.02rem; color: var(--on-dark); }
.topbar .brand .topbar-logo { height: 30px; width: auto; display: block; }
.topbar .brand .cap { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: var(--on-dark); display: grid; place-items: center; font-size: 0.85rem; font-weight: 800; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.topbar .brand .cap > * { font-size: 0.85rem; }
.topbar nav { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.topbar nav a { color: var(--on-green); font-weight: 600; font-size: 0.88rem; padding: 0.45rem 0.7rem; border-radius: var(--r-1); }
.topbar nav a:hover { background: rgba(255, 255, 255, 0.14); color: var(--on-dark); text-decoration: none; }
.topbar nav a.active { background: var(--gold); color: var(--ink); font-weight: 700; }
.logout-form { display: inline; margin-left: 0.3rem; }
.logout-btn {
    padding: 0.45rem 0.85rem; background: rgba(255, 255, 255, 0.08); color: var(--on-green);
    border: 1px solid rgba(255, 255, 255, 0.30); border-radius: var(--r-1);
    font-family: inherit; font-weight: 600; font-size: 0.85rem; cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.logout-btn:hover { background: var(--brand); color: var(--on-dark); border-color: var(--brand); }

.admin-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 1.75rem clamp(1rem, 3vw, 1.75rem) 3rem; flex: 1; }
.admin-wrap h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 0.9rem; color: var(--on-dark); }
.admin-wrap h2 + .hint-admin { margin-top: -0.5rem; margin-bottom: 0.9rem; color: var(--on-green); }

.empty-admin { color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-1); padding: 1.1rem 1.4rem; font-size: 0.95rem; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 1rem; margin-bottom: 0.5rem; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--sh-1); padding: 1.1rem 1.3rem; }
.stat-num { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.stat-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 600; margin-top: 0.35rem; }

.form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2);
    box-shadow: var(--sh-1); padding: 1.5rem;
}
.form-grid label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.form-grid input, .form-grid textarea, .form-grid select {
    padding: 0.65rem 0.8rem; font-family: inherit; font-size: 0.95rem; color: var(--ink);
    background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-1); outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { border-color: var(--green-mid); box-shadow: 0 0 0 3px var(--ring-green); }
.form-grid code { font-family: var(--ff-mono); background: var(--bg-2); padding: 0.1rem 0.35rem; border-radius: 5px; font-size: 0.86em; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .actions { grid-column: 1 / -1; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.form-grid button {
    font-family: inherit; font-weight: 700; font-size: 0.95rem; padding: 0.65rem 1.3rem; cursor: pointer;
    background: var(--brand); color: var(--on-dark); border: 1.5px solid transparent; border-radius: var(--r-pill);
    box-shadow: var(--sh-1); transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.form-grid button:hover { background: var(--brand-hover); transform: translateY(-1px); }
.form-grid button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.form-grid button.secondary:hover { background: var(--bg-2); }
.form-grid .hint-admin { grid-column: 1 / -1; }

table {
    width: 100%; border-collapse: collapse; margin-top: 1.5rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; box-shadow: var(--sh-1);
}
table th, table td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.9rem; }
table tr:last-child td { border-bottom: none; }
table th { background: var(--bg-2); color: var(--ink-2); font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; }
table tr:hover td { background: var(--bg-2); }
table code { font-family: var(--ff-mono); background: var(--bg-2); padding: 0.1rem 0.35rem; border-radius: 5px; font-size: 0.85rem; }
table button[type="submit"]:not(.delete-btn) {
    font-family: inherit; font-weight: 600; font-size: 0.85rem; padding: 0.4rem 0.85rem; cursor: pointer;
    background: var(--brand); color: var(--on-dark); border: 1.5px solid transparent; border-radius: var(--r-pill);
}
table button[type="submit"]:not(.delete-btn):hover { background: var(--brand-hover); }
table input { padding: 0.4rem 0.6rem; font-family: inherit; font-size: 0.85rem; border: 1.5px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--ink); outline: none; }
table input:focus { border-color: var(--green-mid); box-shadow: 0 0 0 3px var(--ring-green); }
table details summary { cursor: pointer; font-weight: 600; color: var(--brand-strong); }
table details[open] summary { margin-bottom: 0.25rem; }
.delete-btn {
    font-family: inherit; font-weight: 600; font-size: 0.85rem; padding: 0.4rem 0.85rem; cursor: pointer;
    background: var(--danger-soft); color: var(--danger); border: 1px solid #e9c3bd; border-radius: var(--r-pill);
}
.delete-btn:hover { background: #f6dad6; }
.hint-admin { font-size: 0.8rem; color: var(--ink-3); font-weight: 400; line-height: 1.45; }
.btn-admin {
    display: inline-block; font-family: inherit; font-weight: 700; font-size: 0.9rem;
    padding: 0.55rem 1.1rem; cursor: pointer; text-decoration: none;
    background: var(--green-mid); color: var(--on-dark);
    border: 1.5px solid transparent; border-radius: var(--r-pill); box-shadow: var(--sh-1);
    transition: background 0.15s, transform 0.12s;
}
.btn-admin:hover { background: var(--green-deep); transform: translateY(-1px); }

/* admin login */
.login-body { background: var(--bg); display: flex; flex-direction: column; }
.login-body .bg { display: none; }
.login-wrap { flex: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.25rem;
    background: radial-gradient(70% 60% at 50% 0%, var(--brand-soft), transparent 70%); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); box-shadow: var(--sh-3); padding: 2rem; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.login-brand .login-logo { height: 52px; width: auto; display: block; }
.login-brand .cap { width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: var(--on-dark); display: grid; place-items: center; font-size: 1.2rem; font-weight: 800; }
.login-brand .cap > * { font-size: 1.2rem; }
.login-card form { display: flex; flex-direction: column; gap: 0.85rem; }
.login-card label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.login-card input { padding: 0.7rem 0.85rem; font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-1); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.login-card input:focus { border-color: var(--green-mid); box-shadow: 0 0 0 3px var(--ring-green); }
.login-card button {
    margin-top: 0.4rem; font-family: inherit; font-weight: 700; font-size: 1rem; padding: 0.8rem 1.4rem;
    background: var(--brand); color: var(--on-dark); border: 1.5px solid transparent; border-radius: var(--r-pill); cursor: pointer;
    transition: background 0.15s, transform 0.12s;
}
.login-card button:hover { background: var(--brand-hover); transform: translateY(-1px); }
.login-error { background: var(--danger-soft); color: #962b20; border: 1px solid #f0c8c2; padding: 0.65rem 0.85rem; border-radius: var(--r-1); font-size: 0.88rem; font-weight: 600; }

/* ─────────────────────────── utilities (last — so they win) ──────────── */
.center { text-align: center; }
.section-block { width: 100%; }
.stack { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
/* big top gap before a new page section; overrides component margins via source order */
.mt { margin-top: clamp(3rem, 6.5vw, 4.75rem); }

/* ─────────────────────────── motion & a11y ──────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
    .page > * { animation: rise 0.5s var(--ease) backwards; }
    .page > :nth-child(1) { animation-delay: 0.02s; }
    .page > :nth-child(2) { animation-delay: 0.08s; }
    .page > :nth-child(3) { animation-delay: 0.14s; }
    .page > :nth-child(4) { animation-delay: 0.20s; }
    .page > :nth-child(5) { animation-delay: 0.26s; }
    .page > :nth-child(n+6) { animation-delay: 0.32s; }
    .page > .modal, .page > .locate-fab { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ───────────────────────────── responsive ───────────────────────────── */
@media (max-width: 1180px) { .side-legal { display: none; } }
@media (max-width: 880px) {
    .nav-desktop { display: none; }
    .menu-btn { display: flex; }
}
@media (max-width: 980px) {
    /* fixed backgrounds stutter on mobile / iOS */
    body { background-attachment: scroll; background-position: center top; }
}
@media (max-width: 600px) {
    .side-legal { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .topbar nav a { padding: 0.4rem 0.55rem; font-size: 0.82rem; }
    table { font-size: 0.85rem; }
    table th, table td { padding: 0.6rem 0.7rem; }
    .btn, .big-btn { font-size: 0.95rem; }

    /* Winners: keep the full table at its natural size and let it scroll sideways. */
    .winners-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .winners-table { min-width: 560px; }
    .winners-table td[data-label="Награда"] .prize-cell { white-space: nowrap; }
    .brandmark-logo { height: 34px; }
    .brandmark-text { font-size: 0.92rem; }
}

/* Admin tables: let the wide data tables scroll sideways on phones/tablets
   instead of squashing columns. display:block turns the table into a
   scrollable box while tr/td keep their table layout inside it. */
@media (max-width: 880px) {
    .admin-wrap table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

/* ───────────────────────────── age gate ──────────────────────────────── */
.age-gate-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg) url('/static/img/bg.png') center top / cover no-repeat fixed;
}
.age-gate {
    width: 100%;
    max-width: 560px;
}
.age-gate__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
}
.age-gate__logo {
    height: 96px;
    width: auto;
    filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.35));
}
.age-gate__lead {
    margin: 0;
    color: var(--on-dark);
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.005em;
    max-width: 30ch;
}
.age-gate__date {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    width: 100%;
}
.age-gate__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    flex: 1 1 0;
    min-width: 0;
}
.age-gate__box--year { flex: 2 1 0; }
.age-gate__box input {
    width: 100%;
    padding: 0.75rem 0.6rem;
    text-align: center;
    font-family: var(--ff);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 700;
    color: var(--on-dark);
    background: var(--green-deep);
    border: 2px solid var(--gold);
    border-radius: var(--r-2);
    box-shadow: var(--sh-1);
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.age-gate__box input::placeholder {
    color: rgba(253, 248, 238, 0.35);
    font-weight: 600;
}
.age-gate__box input:focus {
    outline: none;
    border-color: var(--gold-hi);
    box-shadow: 0 0 0 4px rgba(222, 186, 101, 0.25);
}
.age-gate__box span {
    color: var(--on-green);
    font-size: 0.95rem;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}
.age-gate__error {
    margin: -0.25rem 0 0;
    color: var(--gold-hi);
    font-weight: 600;
    font-size: 0.98rem;
}
.age-gate__submit {
    appearance: none;
    border: none;
    cursor: pointer;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--ff);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.05rem;
    padding: 1rem 2.6rem;
    border-radius: var(--r-pill);
    box-shadow: var(--sh-2);
    transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.age-gate__submit:hover { background: var(--gold-hover); transform: translateY(-1px); }
.age-gate__submit:active { transform: translateY(0); }
.age-gate__legal {
    margin: 0.25rem 0 0;
    color: var(--on-dark-2);
    font-size: 0.85rem;
    line-height: 1.5;
}

.age-gate__lead.shake { animation: ageGateShake 0.5s var(--ease); }
@keyframes ageGateShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

@media (max-width: 768px) {
    .age-gate-body {
        background-image: url('/static/img/bg-mobile.png');
        background-attachment: scroll;
        background-position: center top;
    }
    .age-gate__logo { height: 76px; }
    .age-gate__date { gap: 0.5rem; }
    .age-gate__box input { padding: 0.6rem 0.4rem; }
}

/* ────────────────────── small red pictogram badges ───────────────────── */
/* Floating mini-badge on prize cards (top-right of the torn-label art). */
.prize-card { position: relative; }
.prize-icon {
    position: absolute;
    top: -6px;
    right: 14px;
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: var(--on-dark);
    border: 2px solid var(--gold);
    border-radius: 50%;
    padding: 8px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
    z-index: 2;
}
@media (max-width: 600px) {
    .prize-icon { width: 46px; height: 46px; right: 8px; padding: 7px; }
}

/* Inline pictogram next to the prize name in the winners table. */
.prize-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}
.prize-icon--inline {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: none;
}
