/* ==========================================================================
   MEDA PLAY — mobile app UI
   Phone-first layout rendered inside a centred app frame on desktop:
   app bar, bottom tab bar, list cards, compact typography.
   ========================================================================== */

:root {
    /* Light theme: white canvas, light-green brand */
    --bg: #ffffff;
    --bg-soft: #f5fbf2;
    --surface: #ffffff;
    --surface-2: #eaf8e5;
    --border: rgba(18, 64, 39, 0.12);
    --border-strong: rgba(18, 64, 39, 0.22);

    --text: #10231a;
    --muted: #5f7a6b;

    --brand: #8be25f;        /* brand light green */
    --brand-2: #57c94a;
    --brand-strong: #1f8a3b; /* readable green for text */
    --brand-ink: #0d3419;    /* text on light-green fills */
    --tint: #f1fbf0;
    --tint-2: #e2f7df;

    --violet: var(--brand-2);
    --violet-soft: var(--brand);
    --cyan: var(--brand-strong);
    --gold: #f0a92b;
    --green: #1f8a3b;
    --danger: #d6455d;

    --radius: 20px;
    --radius-sm: 14px;
    --radius-pill: 999px;

    --app-w: 480px;
    --bar-h: 56px;
    --tab-h: 66px;

    --font-body: "Inter", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Sora", "Noto Sans Ethiopic", var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: #f7fcf5; }

body {
    margin: 0 auto;
    width: 100%;
    max-width: var(--app-w);
    min-height: 100dvh;
    padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 12px);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

body.game-page { padding-bottom: 28px; }

img { max-width: 100%; display: block; }
a { color: var(--violet-soft); text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:hover { color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 0.4em;
    font-weight: 700;
}

h1 { font-size: 1.7rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.75em; }

.shell { padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- phone frame on desktop ---------- */

@media (min-width: 560px) {
    body {
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
        box-shadow: 0 0 90px rgba(18, 64, 39, 0.12);
        background-image:
            radial-gradient(320px 260px at 50% -6%, rgba(139, 226, 95, 0.3), transparent 70%);
        background-repeat: no-repeat;
    }

    html {
        background:
            radial-gradient(700px 420px at 20% 0%, rgba(139, 226, 95, 0.22), transparent 60%),
            radial-gradient(600px 400px at 85% 100%, rgba(87, 201, 74, 0.16), transparent 60%),
            #f2faee;
    }
}

/* ---------- app bar ---------- */

.app-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(6, 9, 15, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.app-bar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--bar-h);
    padding: 0 14px;
}

.app-bar__brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    box-shadow: 0 6px 16px -6px rgba(139, 92, 246, 0.9);
}

.app-bar__spacer { flex: 1; }

.app-bar__action {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.app-bar__action:hover { color: #fff; background: var(--surface-2); }

/* ---------- bottom tab bar ---------- */

.tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-w);
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 12, 22, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
}

.tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 0;
    border-radius: 14px;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, background 0.2s ease;
}

.tabbar__icon { font-size: 1.15rem; line-height: 1; }

.tabbar__item:hover { color: #fff; }

.tabbar__item.is-active {
    color: #fff;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.24), rgba(139, 92, 246, 0.08));
}

.tabbar__item.is-active .tabbar__icon {
    filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.9));
}

body.game-page .tabbar { display: none; }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:active { transform: scale(0.975); }

.btn--primary {
    color: #08060f;
    background: linear-gradient(120deg, var(--cyan), var(--violet-soft));
    box-shadow: 0 14px 30px -14px rgba(139, 92, 246, 0.95);
}

.btn--primary:hover { color: #08060f; }

.btn--gold {
    color: #1b1300;
    background: linear-gradient(120deg, #fde68a, var(--gold));
    box-shadow: 0 14px 30px -16px rgba(251, 191, 36, 0.9);
}

.btn--gold:hover { color: #1b1300; }

.btn--ghost {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border-strong);
}

.btn--ghost:hover { background: var(--surface-2); }
.btn--block { width: 100%; }

/* ---------- hero (app home) ---------- */

.hero { padding: 18px 0 8px; }

.hero__grid { display: flex; flex-direction: column; gap: 16px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: rgba(139, 92, 246, 0.12);
    color: #d8ccff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.hero h1 span {
    background: linear-gradient(100deg, var(--cyan), var(--violet-soft) 45%, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead { color: var(--muted); font-size: 0.9rem; margin-bottom: 0; }
.hero__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.hero__actions .btn { width: 100%; }
.hero__note { margin-top: 14px; font-size: 0.78rem; color: var(--muted); }
.hero__note strong { color: var(--text); }

.hero__art { position: relative; }

.hero__art-frame {
    border-radius: 22px;
    padding: 6px;
    background: linear-gradient(150deg, rgba(139, 92, 246, 0.5), rgba(34, 211, 238, 0.22) 50%, rgba(251, 191, 36, 0.22));
    box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.9);
}

.hero__art-frame img { border-radius: 17px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.hero__chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(8, 12, 22, 0.92);
    border: 1px solid var(--border-strong);
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.hero__chip span { font-size: 0.95rem; }
.hero__chip--prize { top: -10px; left: -6px; }
.hero__chip--time { bottom: -10px; right: -6px; }

/* ---------- stat strip ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 20px;
}

.stats__item {
    padding: 13px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
}

.stats__value { display: block; font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: #fff; }
.stats__label { font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- sections ---------- */

.section { padding: 24px 0 4px; }

.section__head { margin: 0 0 14px; }

.section__head h2 { margin-bottom: 4px; }
.section__head p { color: var(--muted); font-size: 0.84rem; margin: 0; }

.card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    padding: 16px;
}

.card__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 10px;
    background: rgba(139, 92, 246, 0.18);
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.3);
}

.card p:last-child { margin-bottom: 0; }

/* prize list */

.prizes { display: flex; flex-direction: column; gap: 8px; }

.prize {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 14px 16px;
}

.prize--one {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(120deg, rgba(251, 191, 36, 0.16), rgba(255, 255, 255, 0.02));
}

.prize__rank {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
}

.prize--one .prize__rank { background: linear-gradient(140deg, #fde68a, var(--gold)); color: #2b1d00; border-color: transparent; }
.prize__amount { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.1; }
.prize__unit { margin-left: auto; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: right; }

/* steps */

.steps { display: flex; flex-direction: column; gap: 8px; }

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    counter-increment: step;
}

.step::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: rgba(139, 92, 246, 0.22);
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35);
}

.step h3 { margin-bottom: 2px; font-size: 0.92rem; }
.step p { font-size: 0.8rem; margin: 0; }

.steps { counter-reset: step; }

/* games grid */

.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.game-card {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.game-card:active { transform: scale(0.985); }
.game-card:hover { border-color: rgba(167, 139, 250, 0.5); color: #fff; }

.game-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; }

.game-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 9, 15, 0.94));
}

.game-card__tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(6, 9, 15, 0.78);
    border: 1px solid var(--border-strong);
}

.game-card__body { position: relative; padding: 0 12px 12px; margin-top: -38px; z-index: 2; }
.game-card__body h3 { margin-bottom: 1px; font-size: 0.86rem; }
.game-card__body p { margin: 0; font-size: 0.7rem; color: var(--muted); display: none; }

.game-card--soon {
    display: grid;
    place-items: center;
    min-height: 132px;
    border-style: dashed;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    color: var(--muted);
    padding: 14px;
}

.game-card--soon h3 { font-size: 0.86rem; }
.game-card--soon p { display: block; font-size: 0.7rem; margin: 0; }

/* CTA band */

.cta-band {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(167, 139, 250, 0.35);
    background:
        radial-gradient(300px 180px at 100% 0%, rgba(34, 211, 238, 0.2), transparent 70%),
        linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(11, 17, 32, 0.94));
}

.cta-band h2 { margin-bottom: 4px; font-size: 1.1rem; }
.cta-band p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.cta-band .btn { width: 100%; }

/* ---------- auth ---------- */

.auth { padding: 16px 0; }

.auth__card {
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(11, 17, 32, 0.92);
}

.auth__aside {
    padding: 22px 20px;
    background:
        radial-gradient(280px 180px at 15% 0%, rgba(34, 211, 238, 0.28), transparent 70%),
        linear-gradient(160deg, rgba(139, 92, 246, 0.45), rgba(11, 17, 32, 0.95));
}

.auth__aside h2 { font-size: 1.15rem; margin-bottom: 6px; }
.auth__aside p { font-size: 0.8rem; }
.auth__aside ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.auth__aside li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.78rem; color: #e6e2ff; }

.auth__aside li::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
    border-radius: 50%;
    font-size: 0.6rem;
    background: rgba(52, 211, 153, 0.25);
    color: #a7f3d0;
}

.auth__form { padding: 20px; }
.auth__form h2 { font-size: 1.05rem; }
.field { margin-bottom: 14px; }

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.input {
    width: 100%;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

.input::placeholder { color: rgba(147, 160, 189, 0.65); }

.input:focus {
    outline: none;
    border-color: var(--violet-soft);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.form-row { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.form-row .btn { width: 100%; }

.helper {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-strong);
    background: rgba(34, 211, 238, 0.06);
    font-size: 0.76rem;
    color: var(--muted);
}

.helper strong { color: var(--text); }
.divider { height: 1px; background: var(--border); margin: 18px 0; border: 0; }

.alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    border: 1px solid rgba(251, 113, 133, 0.4);
    background: rgba(251, 113, 133, 0.12);
    color: #ffd7dd;
}

/* ---------- leaderboard (list rows) ---------- */

.board-top { display: flex; flex-direction: column; gap: 8px; }

.rank-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 13px 15px;
}

.rank-card--1 {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(120deg, rgba(251, 191, 36, 0.14), rgba(255, 255, 255, 0.02));
}

.rank-card__medal { font-size: 1.35rem; line-height: 1; }
.rank-card__phone { font-family: var(--font-display); font-size: 0.95rem; color: #fff; }
.rank-card__meta { font-size: 0.7rem; color: var(--muted); }

.rank-card__score {
    margin-left: auto;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.68rem;
    color: var(--muted);
}

.rank-card__score b { font-family: var(--font-display); font-size: 0.98rem; color: #fff; }

.empty-state {
    text-align: center;
    padding: 34px 20px;
    border-radius: var(--radius);
    border: 1px dashed var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
}

.empty-state span { font-size: 1.9rem; display: block; margin-bottom: 6px; }
.empty-state h3 { font-size: 1rem; }
.empty-state p { font-size: 0.8rem; }
.empty-state .btn { width: 100%; margin-top: 10px; }

/* ---------- prose ---------- */

.page-head { padding: 18px 16px 6px; text-align: center; }
.page-head h1 { font-size: 1.5rem; }
.page-head p { color: var(--muted); font-size: 0.84rem; margin: 0 auto; max-width: 34ch; }

.prose { display: flex; flex-direction: column; gap: 10px; }
.prose .card h2 { font-size: 1rem; margin-bottom: 6px; }
.prose .card h3 { margin-top: 12px; font-size: 0.95rem; }
.prose .card p, .prose .card li { font-size: 0.82rem; }
.prose ul { margin: 0 0 8px; padding-left: 18px; color: #c9d2ea; }
.prose li { margin-bottom: 4px; }
.prose .card p:last-child, .prose .card ul:last-child { margin-bottom: 0; }
.prose .cta-band .btn { width: 100%; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 12px; }

.chip {
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    font-size: 0.72rem;
    color: var(--muted);
}

.chip b { color: #fff; }

/* ---------- faq ---------- */

.faq { display: flex; flex-direction: column; gap: 7px; }

.faq details {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
    padding: 2px 14px;
}

.faq details[open] { border-color: rgba(167, 139, 250, 0.4); background: rgba(139, 92, 246, 0.08); }

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 13px 22px 13px 0;
    font-size: 0.86rem;
    font-weight: 600;
    position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--violet-soft);
}

.faq details[open] summary::after { content: "−"; }
.faq .faq__answer { padding-bottom: 14px; color: var(--muted); font-size: 0.8rem; }
.faq .faq__answer ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- footer ---------- */

.site-footer {
    margin-top: 22px;
    border-top: 1px solid var(--border);
    padding-top: 6px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px 0 10px;
}

.site-footer__brand { grid-column: 1 / -1; }
.site-footer__brand p { color: var(--muted); font-size: 0.76rem; margin: 6px 0 0; max-width: 36ch; }

.site-footer h4 {
    font-family: var(--font-body);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #c3cce4; font-size: 0.78rem; }
.site-footer a:hover { color: #fff; }

.site-footer__base {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0 8px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.68rem;
}

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.brand:hover { color: #fff; }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-display); font-size: 0.92rem; }
.brand__text small { font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* ---------- animations ---------- */

/* Cards stay fully visible; only the slide-in is animated, so a browser that
   never runs the observer can't leave content invisible. */
.reveal { transform: translateY(10px); transition: transform 0.45s ease; }
.reveal.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }

    .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   LIGHT THEME LAYER — white background, light-green brand
   Overrides the dark surfaces defined above; same selectors, later in the
   file, so these win.
   ========================================================================== */

body { background: var(--bg); }

/* ---------- app bar + tab bar ---------- */

.app-bar {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 0 rgba(18, 64, 39, 0.06);
}

.brand__mark {
    color: var(--brand-ink);
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 6px 16px -8px rgba(31, 138, 59, 0.55);
}

.app-bar__action { background: #fff; }
.app-bar__action:hover { color: var(--brand-strong); background: var(--tint-2); }

.tabbar {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -10px 30px -20px rgba(18, 64, 39, 0.4);
}

.tabbar__item:hover { color: var(--brand-strong); }

.tabbar__item.is-active {
    color: var(--brand-ink);
    background: linear-gradient(180deg, var(--tint-2), rgba(226, 247, 223, 0.35));
}

.tabbar__item.is-active .tabbar__icon { filter: drop-shadow(0 2px 6px rgba(31, 138, 59, 0.4)); }

/* ---------- buttons ---------- */

.btn--primary {
    color: var(--brand-ink);
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 26px -14px rgba(31, 138, 59, 0.6);
}

.btn--primary:hover { color: var(--brand-ink); }
.btn--gold { color: #3a2503; }

.btn--ghost { background: #fff; }
.btn--ghost:hover { background: var(--tint-2); }

/* ---------- hero ---------- */

.eyebrow {
    border-color: rgba(31, 138, 59, 0.28);
    background: var(--tint-2);
    color: var(--brand-strong);
}

.eyebrow::before { background: var(--brand-2); box-shadow: 0 0 8px rgba(87, 201, 74, 0.75); }

.hero h1 span {
    background: linear-gradient(100deg, var(--brand-strong), var(--brand) 55%, var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__art-frame {
    background: linear-gradient(150deg, var(--brand), var(--brand-2) 55%, #cdf3c2);
    box-shadow: 0 20px 40px -26px rgba(18, 64, 39, 0.5);
}

.hero__chip {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--border-strong);
    color: var(--text);
    box-shadow: 0 8px 20px -14px rgba(18, 64, 39, 0.45);
}

/* ---------- cards + lists ---------- */

.stats__item { background: #fff; }
.stats__value { color: var(--text); }

.card {
    background: linear-gradient(165deg, #ffffff, var(--tint));
    box-shadow: 0 10px 24px -24px rgba(18, 64, 39, 0.6);
}

.card__icon {
    background: var(--tint-2);
    box-shadow: inset 0 0 0 1px rgba(31, 138, 59, 0.22);
}

.prize--one {
    border-color: rgba(240, 169, 43, 0.45);
    background: linear-gradient(120deg, rgba(240, 169, 43, 0.14), #ffffff);
}

.prize__amount { color: var(--text); }

.step::before {
    color: var(--brand-ink);
    background: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(31, 138, 59, 0.25);
}

/* ---------- game cards ---------- */

.game-card { background: #fff; }
.game-card:hover { border-color: rgba(31, 138, 59, 0.5); color: var(--text); }

.game-card__media::after {
    background: linear-gradient(180deg, transparent 42%, rgba(255, 255, 255, 0.97));
}

.game-card__tag {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(31, 138, 59, 0.3);
    color: var(--brand-strong);
}

.game-card--soon { background: var(--tint); }

/* ---------- cta band ---------- */

.cta-band {
    border-color: rgba(31, 138, 59, 0.28);
    background:
        radial-gradient(300px 180px at 100% 0%, rgba(139, 226, 95, 0.28), transparent 70%),
        linear-gradient(135deg, #eafbe2, #ffffff);
}

/* ---------- auth ---------- */

.auth__card { background: #fff; }

.auth__aside {
    background:
        radial-gradient(280px 180px at 15% 0%, rgba(255, 255, 255, 0.65), transparent 70%),
        linear-gradient(160deg, var(--brand), var(--brand-2));
}

.auth__aside li { color: #12351f; }

.auth__aside li::before {
    background: rgba(255, 255, 255, 0.8);
    color: var(--brand-strong);
}

.input {
    background: #fff;
    border-color: var(--border-strong);
    color: var(--text);
}

.input::placeholder { color: rgba(95, 122, 107, 0.7); }

.input:focus {
    border-color: var(--brand-2);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(87, 201, 74, 0.2);
}

.helper {
    background: var(--tint);
    border-color: rgba(31, 138, 59, 0.28);
}

.alert {
    border-color: rgba(214, 69, 93, 0.35);
    background: rgba(214, 69, 93, 0.08);
    color: #8f1d2f;
}

/* ---------- leaderboard ---------- */

.rank-card--1 {
    border-color: rgba(240, 169, 43, 0.45);
    background: linear-gradient(120deg, rgba(240, 169, 43, 0.14), #ffffff);
}

.rank-card__phone { color: var(--text); }
.rank-card__score { background: var(--tint-2); }
.rank-card__score b { color: var(--text); }

.empty-state { background: var(--tint); }

/* ---------- prose + faq ---------- */

.prose ul { color: var(--muted); }
.chip b { color: var(--text); }

.faq details { background: #fff; }
.faq details[open] { border-color: rgba(31, 138, 59, 0.35); background: var(--tint); }
.faq summary::after { color: var(--brand-strong); }

/* ---------- footer ---------- */

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand-strong); }
.brand:hover { color: var(--brand-strong); }

/* ---------- language switcher ---------- */

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    background: var(--tint);
}

.lang-switch__item {
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--muted);
    line-height: 1.4;
}

.lang-switch__item:hover { color: var(--brand-strong); }

.lang-switch__item.is-active {
    color: var(--brand-ink);
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* ---------- guest reminder ---------- */

.guest-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    padding: 9px 12px;
    border-radius: 14px;
    border: 1px solid rgba(31, 138, 59, 0.24);
    background: var(--tint-2, #f4fbef);
    font-size: 0.74rem;
    color: var(--muted);
}

.guest-bar .btn { padding: 7px 12px; font-size: 0.72rem; white-space: nowrap; }

/* ---------- extra picture thumbnails ---------- */

.games--thumbs {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
}

.game-card--thumb {
    border-radius: 14px;
}

.game-card--thumb .game-card__media {
    aspect-ratio: 1 / 1;
}

.game-card--thumb .game-card__body {
    display: none;
}
