:root {
    --blue: #00309a;
    --gold: #e0b64b;
    --white: #ffffff;
    --ink: #101b35;
    --muted: #65708a;
    --line: #dce3f3;
    --soft: #f5f7fc;
    font-family: "Barlow", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); }
button, input, select { font: inherit; }

.app-shell { min-height: 100vh; background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%); }
.screen { display: none; min-height: 100vh; padding: 18px; }
.screen.active { display: block; }
.splash {
    background: radial-gradient(circle at 50% 22%, rgba(224, 182, 75, .34), transparent 24%), var(--blue);
    color: var(--white);
    padding: 30px 22px;
}
.splash.active { display: flex; flex-direction: column; justify-content: space-between; }
.logo-white {
    width: min(360px, 94vw);
    height: auto;
    display: block;
    border-radius: 0;
}
.splash-top p, .eyebrow { margin: 10px 0 0; color: var(--gold); text-transform: uppercase; letter-spacing: 0; font-weight: 800; }
.splash-ball { font-size: 108px; text-align: center; filter: drop-shadow(0 18px 30px rgba(0,0,0,.28)); }
.splash h1, h1, h2 {
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    letter-spacing: 0;
    line-height: .95;
    margin: 0;
}
.splash h1 { font-size: clamp(46px, 18vw, 78px); max-width: 360px; }
.splash-bottom p { font-size: 18px; line-height: 1.45; max-width: 360px; }
.btn {
    border: 0;
    border-radius: 8px;
    min-height: 48px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
}
.btn.primary { background: var(--blue); color: var(--white); }
.btn.gold { background: var(--gold); color: #142048; }
.btn.ghost {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(224,182,75,.5);
}
.btn.large { width: 100%; font-size: 18px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}
.app-header img { width: 152px; height: auto; }
.app-header span { font-weight: 800; color: var(--blue); }
.panel, .match-card, .winner-card, .empty {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(0, 48, 154, .08);
}
.panel { padding: 20px; }
.panel h2, .title-row h2 { font-size: 40px; color: var(--blue); }
.muted { color: var(--muted); line-height: 1.45; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-weight: 700; color: var(--ink); }
input, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    min-height: 46px;
    background: #fff;
}
input:focus, select:focus { outline: 3px solid rgba(224, 182, 75, .28); border-color: var(--gold); }
.title-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; }
.link-btn, .install-btn {
    border: 0;
    background: transparent;
    color: var(--blue);
    font-weight: 800;
    padding: 8px;
    cursor: pointer;
}
.install-btn { border: 1px solid var(--blue); border-radius: 8px; }
.matches-list { display: grid; gap: 14px; }
.match-card { padding: 14px; }
.match-meta { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.teams {
    display: grid;
    grid-template-columns: 1fr 44px 1fr;
    align-items: center;
    gap: 8px;
}
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team strong { overflow-wrap: anywhere; }
.team.right { justify-content: end; text-align: right; }
.flag { font-size: 24px; flex: 0 0 auto; }
.versus { color: var(--gold); font-family: "Barlow Condensed"; font-size: 24px; text-align: center; }
.score-row {
    display: grid;
    grid-template-columns: 1fr 18px 1fr;
    gap: 10px;
    align-items: center;
    margin: 14px 0;
}
.score-separator { font-weight: 900; text-align: center; color: var(--blue); }
.score-control {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.score-control button {
    border: 0;
    background: var(--blue);
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
}
.score-control input { border: 0; border-radius: 0; text-align: center; font-weight: 900; color: var(--blue); padding: 0; }
.result-pill {
    display: inline-flex;
    gap: 6px;
    background: #fff7df;
    color: #6d5312;
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 700;
}
.bottom-submit { margin: 18px 0 8px; }
.status-message { min-height: 24px; margin: 8px 0 12px; color: var(--muted); font-weight: 700; }
.status-message.error { color: #b00020; }
.status-message.gold { color: #745613; }
.empty { padding: 18px; color: var(--muted); text-align: center; }

.share-card {
    width: min(100%, 390px);
    margin: 0 auto 18px;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
    padding: 28px 22px;
    background: linear-gradient(180deg, #00309a 0%, #001b5a 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 22px 42px rgba(0, 48, 154, .26);
}
.share-card img {
    width: min(310px, 92%);
    display: block;
}
.share-card h2 { font-size: 46px; }
.share-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.22);
    padding: 10px 0;
    font-weight: 700;
}
.share-line strong { color: var(--gold); font-size: 22px; white-space: nowrap; }
.share-line span:last-child { text-align: right; }
.share-tag { color: var(--gold); font-weight: 900; font-size: 20px; }
.centered { display: block; margin: 8px auto; }
.winners-list { display: grid; gap: 12px; }
.winner-card { padding: 16px; }
.winner-card div { display: flex; justify-content: space-between; gap: 8px; }
.winner-card span { color: var(--blue); font-weight: 700; }
.winner-card b { color: #7a5a11; }

.admin-body { background: #f3f6fc; }
.admin-shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 50px; }
.admin-header { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.admin-logo {
    width: 210px;
    padding: 12px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #00309a, #06143f);
}
.admin-header h1 { color: var(--blue); font-size: 44px; }
.admin-header p { margin: 4px 0 0; color: var(--muted); }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 18px; }
.admin-tabs a, .admin-tabs button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    text-decoration: none;
    background: #fff;
    color: var(--blue);
    font-weight: 900;
}
.admin-tabs a.active { background: var(--blue); color: #fff; }
.admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
}
.admin-card h2 { color: var(--blue); font-size: 32px; margin-bottom: 14px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-card form { display: grid; gap: 12px; }
.coupon-form { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px; vertical-align: middle; }
th { color: var(--blue); font-size: 13px; text-transform: uppercase; }
small { color: var(--muted); }
.inline-form { display: flex !important; flex-direction: row; align-items: center; gap: 8px; }
.inline-form input[type="number"] { width: 62px; }
.inline-form select { width: auto; min-width: 180px; }
td button, .danger {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 800;
}
.danger { color: #b00020; }
.flash { padding: 12px 14px; border-radius: 8px; margin: 12px 0; font-weight: 800; }
.flash.success { background: #e8f8ef; color: #116b35; }
.flash.error { background: #ffebee; color: #a40018; }
.login-card { max-width: 460px; margin: 30px auto; }

.stats-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(224,182,75,.35), transparent 24%),
        linear-gradient(135deg, #00309a, #06143f);
    border-color: rgba(224,182,75,.45);
}

.stats-hero h2 {
    color: #fff;
    font-size: 48px;
}

.stats-hero p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.78);
    font-weight: 700;
}

.stats-kicker {
    display: inline-flex;
    margin: 0 0 8px !important;
    padding: 6px 10px;
    border: 1px solid rgba(224,182,75,.52);
    border-radius: 999px;
    color: #ffe29b !important;
    font-size: 12px;
    text-transform: uppercase;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: max-content;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-weight: 900;
}

.live-pill span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #26e67a;
    box-shadow: 0 0 16px rgba(38,230,122,.9);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.stat-card {
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,48,154,.08);
}

.stat-card.live {
    background: linear-gradient(180deg, #fff7df, #fff);
    border-color: rgba(224,182,75,.55);
}

.stat-card span,
.stats-periods span {
    color: #65708a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin: 6px 0;
    color: #00309a;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 48px;
    line-height: .9;
}

.stat-card p {
    margin: 0;
    color: #65708a;
    font-weight: 700;
}

.stats-periods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stats-periods div {
    padding: 16px;
    border-radius: 8px;
    background: #f5f7fc;
    border: 1px solid var(--line);
}

.stats-periods strong {
    display: block;
    margin: 8px 0 3px;
    color: #00309a;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 42px;
    line-height: .9;
}

.stats-periods p {
    margin: 0;
    color: #65708a;
    font-weight: 700;
}

.stats-periods.compact strong {
    font-size: 36px;
}

.activity-list {
    display: grid;
    gap: 8px;
}

.activity-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 8px;
    background: #f5f7fc;
    border: 1px solid var(--line);
}

.activity-list strong {
    color: #00309a;
}

.activity-list span {
    color: #65708a;
    font-weight: 700;
}

@media (max-width: 760px) {
    .screen { padding: 14px; }
    .panel h2, .title-row h2 { font-size: 34px; }
    .teams { grid-template-columns: 1fr 36px 1fr; }
    .team { font-size: 14px; }
    .score-control { grid-template-columns: 38px 1fr 38px; }
    .share-card { padding: 22px 18px; }
    .share-card h2 { font-size: 38px; }
    .admin-grid, .coupon-form { grid-template-columns: 1fr; }
    .admin-header { align-items: flex-start; flex-direction: column; }
    .admin-header h1 { font-size: 36px; }
    .inline-form { flex-wrap: wrap; }
    .stats-hero { align-items: flex-start; flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-periods { grid-template-columns: 1fr; }
    .activity-list div { flex-direction: column; }
}

/* Sport-futuristic mobile skin */
body:not(.admin-body) {
    background:
        linear-gradient(135deg, rgba(224, 182, 75, .12) 0 1px, transparent 1px 18px),
        radial-gradient(circle at 20% 0%, rgba(224, 182, 75, .22), transparent 30%),
        #061640;
}

body:not(.admin-body) .app-shell {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 48, 154, .96), rgba(3, 15, 50, .98)),
        var(--blue);
    color: var(--white);
}

body:not(.admin-body) .app-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 70%);
}

body:not(.admin-body) .screen {
    position: relative;
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}

.stadium-grid {
    position: absolute;
    inset: -30% -50% auto;
    height: 62%;
    transform: perspective(420px) rotateX(64deg);
    background:
        linear-gradient(90deg, rgba(224,182,75,.25) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.13) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: .65;
}

.splash {
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 12%, rgba(224, 182, 75, .36), transparent 26%),
        radial-gradient(circle at 85% 78%, rgba(255,255,255,.12), transparent 20%),
        linear-gradient(180deg, #00309a 0%, #061743 76%, #020817 100%);
}

.splash-top,
.splash-bottom,
.hero-orbit {
    position: relative;
    z-index: 1;
}

.logo-white {
    width: min(360px, 94vw);
    filter: drop-shadow(0 12px 28px rgba(0,0,0,.22));
}

.splash-top p,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 6px 10px;
    border: 1px solid rgba(224, 182, 75, .4);
    border-radius: 999px;
    background: rgba(224, 182, 75, .12);
    color: #ffe29b;
    font-size: 12px;
    letter-spacing: 0;
}

.hero-orbit {
    width: min(280px, 72vw);
    aspect-ratio: 1;
    margin: 18px auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(224,182,75,.22), transparent 45%),
        conic-gradient(from 40deg, transparent, rgba(224,182,75,.9), transparent 32%, rgba(255,255,255,.25), transparent 70%);
    box-shadow: 0 28px 70px rgba(0,0,0,.28);
}

.hero-orbit::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(255,255,255,.32);
    border-radius: 50%;
}

.hero-orbit span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 18px rgba(224,182,75,.9);
}

.hero-orbit span:nth-child(2) { top: 24px; right: 72px; }
.hero-orbit span:nth-child(3) { bottom: 52px; left: 34px; }
.hero-orbit span:nth-child(4) { right: 30px; bottom: 72px; }

.hero-cup {
    font-size: 96px;
    filter: drop-shadow(0 18px 22px rgba(0,0,0,.34));
}

.splash h1 {
    max-width: 330px;
    font-size: clamp(54px, 18vw, 86px);
    text-transform: uppercase;
    text-shadow: 0 12px 32px rgba(0,0,0,.34);
}

.splash-bottom p {
    max-width: 340px;
    color: rgba(255,255,255,.84);
    font-weight: 600;
}

.hype-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 16px;
    scrollbar-width: none;
}

.hype-strip span {
    flex: 0 0 auto;
    padding: 9px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

body:not(.admin-body) .btn {
    border-radius: 8px;
    min-height: 56px;
    text-transform: uppercase;
    letter-spacing: 0;
    box-shadow: 0 16px 28px rgba(0,0,0,.22);
}

body:not(.admin-body) .btn.primary {
    background: linear-gradient(135deg, #e0b64b, #fff0b5 42%, #e0b64b);
    color: #071746;
    border: 1px solid rgba(255,255,255,.45);
}

body:not(.admin-body) .btn.gold {
    background: linear-gradient(135deg, #e0b64b, #fff1bd);
    color: #08184a;
}

body:not(.admin-body) .btn.ghost {
    margin-top: 10px;
    background: rgba(255,255,255,.08);
    color: #ffe29b;
    border: 1px solid rgba(224,182,75,.55);
    box-shadow: none;
}

body:not(.admin-body) .app-header {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: -4px -16px 14px;
    padding: 12px 16px;
    background: rgba(2, 10, 32, .64);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

body:not(.admin-body) .app-header img {
    width: 190px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.28));
}

body:not(.admin-body) .app-header span {
    color: #ffe29b;
    text-transform: uppercase;
}

.match-hero {
    min-height: 178px;
    margin: 0 0 18px;
    padding: 18px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.12), transparent 42%),
        radial-gradient(circle at 88% 22%, rgba(224,182,75,.38), transparent 24%),
        #071b57;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 20px 42px rgba(0,0,0,.22);
}

.match-hero h1 {
    margin-top: 14px;
    font-size: 52px;
    text-transform: uppercase;
    color: #fff;
}

.match-hero p:not(.eyebrow) {
    width: min(270px, 100%);
    color: rgba(255,255,255,.78);
    font-weight: 700;
    line-height: 1.35;
}

body:not(.admin-body) .title-row {
    align-items: center;
}

body:not(.admin-body) .title-row h2,
body:not(.admin-body) .panel h2 {
    color: #fff;
    font-size: 38px;
    text-transform: uppercase;
}

body:not(.admin-body) .link-btn,
body:not(.admin-body) .install-btn {
    color: #ffe29b;
    border: 1px solid rgba(224,182,75,.42);
    border-radius: 8px;
    background: rgba(224,182,75,.1);
}

body:not(.admin-body) .panel,
body:not(.admin-body) .match-card,
body:not(.admin-body) .winner-card,
body:not(.admin-body) .empty {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,244,255,.94));
    border: 1px solid rgba(255,255,255,.52);
    box-shadow: 0 18px 38px rgba(0,0,0,.24);
}

.lead-panel {
    margin-top: 26px;
    position: relative;
}

.lead-panel::before {
    content: "FAN PASS";
    position: absolute;
    top: -15px;
    right: 16px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--gold);
    color: #071746;
    font-size: 12px;
    font-weight: 900;
}

body:not(.admin-body) .panel h2 {
    color: var(--blue);
}

body:not(.admin-body) label {
    color: #142048;
    text-transform: uppercase;
    font-size: 13px;
}

body:not(.admin-body) input,
body:not(.admin-body) select {
    min-height: 54px;
    border: 1px solid #c8d5f2;
    background: #f8fbff;
    font-weight: 800;
}

.match-card {
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--blue), var(--gold), var(--blue));
}

.match-meta {
    display: inline-flex;
    margin: 6px 0 13px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #12306f;
    background: #e9efff;
    font-size: 12px;
    text-transform: uppercase;
}

.teams {
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
}

.team {
    min-height: 70px;
    align-content: center;
    padding: 10px;
    border-radius: 8px;
    background: #f3f6ff;
    border: 1px solid #dfe7f8;
}

.team strong {
    color: #08184a;
    font-size: 16px;
    line-height: 1.05;
    text-transform: uppercase;
}

.flag {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,48,154,.12);
    font-size: 22px;
}

.versus {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--gold);
    box-shadow: 0 12px 22px rgba(0,48,154,.25);
}

.score-row {
    grid-template-columns: 1fr 24px 1fr;
    margin: 18px 0 14px;
}

.score-control {
    height: 58px;
    grid-template-columns: 48px 1fr 48px;
    border: 0;
    background: #071746;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.score-control button {
    background: linear-gradient(180deg, #00309a, #001f66);
    color: var(--gold);
}

.score-control input {
    background: #ffffff;
    color: #06143f;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 34px;
    -webkit-text-fill-color: #06143f;
    opacity: 1;
    caret-color: #06143f;
}

.score-separator {
    color: var(--gold);
    font-size: 26px;
}

.result-pill {
    width: 100%;
    justify-content: center;
    background: #06143f;
    color: #fff;
    border: 1px solid rgba(224,182,75,.42);
    border-radius: 8px;
    text-transform: uppercase;
}

.result-pill strong {
    color: var(--gold);
}

.bottom-submit {
    position: static;
    margin: 20px 0 8px;
}

.status-message {
    color: rgba(255,255,255,.72);
}

body:not(.admin-body) .empty {
    color: #132756;
}

.share-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(224,182,75,.5);
    background:
        linear-gradient(135deg, rgba(255,255,255,.12), transparent 38%),
        radial-gradient(circle at 86% 18%, rgba(224,182,75,.45), transparent 23%),
        linear-gradient(180deg, #00309a, #06143f 72%, #020817);
}

.share-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: .55;
}

.share-card > * {
    position: relative;
}

.share-card h2 {
    text-transform: uppercase;
    text-shadow: 0 12px 26px rgba(0,0,0,.3);
}

.winner-card {
    color: #08184a;
}

.winner-featured {
    position: relative;
    overflow: hidden;
    padding: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 16%, rgba(224,182,75,.46), transparent 26%),
        linear-gradient(180deg, #00309a, #06143f);
    border-color: rgba(224,182,75,.55);
}

.winner-featured::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .45;
}

.winner-featured > * {
    position: relative;
}

.winner-label {
    display: inline-flex;
    width: max-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(224,182,75,.18);
    border: 1px solid rgba(224,182,75,.55);
    color: #ffe29b !important;
    font-size: 12px;
    font-weight: 900;
}

.winner-featured strong {
    display: block;
    margin: 14px 0 8px;
    color: #fff;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 48px;
    line-height: .95;
    text-transform: uppercase;
}

.winner-featured p {
    color: rgba(255,255,255,.82);
    font-weight: 800;
}

.winner-featured b {
    display: inline-flex;
    margin: 4px 0 10px;
    color: #06143f;
    background: #e0b64b;
    border-radius: 999px;
    padding: 8px 12px;
}

.winner-featured small {
    display: block;
    color: rgba(255,255,255,.7);
    font-weight: 700;
}

.reveal-stage {
    overflow: hidden;
    position: relative;
    min-height: 620px;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 50% 12%, rgba(224,182,75,.34), transparent 24%),
        radial-gradient(circle at 15% 85%, rgba(255,255,255,.12), transparent 26%),
        linear-gradient(180deg, #00309a, #06143f 72%, #020817);
    border-color: rgba(224,182,75,.5);
}

.reveal-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: .48;
}

.reveal-stage > * {
    position: relative;
    z-index: 1;
}

.reveal-topline {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(224,182,75,.6);
    border-radius: 999px;
    color: #ffe29b;
    font-weight: 900;
    font-size: 12px;
}

.reveal-stage h2 {
    margin: 16px 0 8px;
    color: #fff;
    font-size: clamp(42px, 12vw, 78px);
    text-transform: uppercase;
}

.reveal-match {
    margin: 0 0 22px;
    color: rgba(255,255,255,.78);
    font-weight: 800;
}

.draw-machine {
    width: min(100%, 620px);
    min-height: 220px;
    display: grid;
    place-items: center;
    gap: 14px;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    background: rgba(2,10,32,.52);
    box-shadow: 0 24px 60px rgba(0,0,0,.34), inset 0 0 0 1px rgba(224,182,75,.18);
}

.draw-glow {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, #e0b64b, transparent 38%, #fff, transparent 70%);
    animation: revealSpin 1s linear infinite;
    filter: drop-shadow(0 0 22px rgba(224,182,75,.7));
}

.draw-ticker {
    width: 100%;
    min-height: 62px;
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    color: #06143f;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: clamp(34px, 8vw, 58px);
    font-weight: 900;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.draw-countdown {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e0b64b;
    color: #06143f;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 42px;
    font-weight: 900;
}

.winner-reveal {
    width: min(100%, 620px);
    margin-top: 18px;
    padding: 22px;
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    color: #06143f;
    transform: translateY(18px) scale(.96);
    opacity: 0;
    transition: .45s ease;
}

.winner-reveal.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.winner-reveal span {
    color: #8a6816;
    font-weight: 900;
    text-transform: uppercase;
}

.winner-reveal strong {
    display: block;
    margin: 8px 0;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: clamp(44px, 10vw, 72px);
    text-transform: uppercase;
}

.winner-reveal p {
    margin: 0 0 12px;
    font-weight: 900;
}

.winner-reveal a {
    color: #00309a;
    font-weight: 900;
}

.reveal-actions {
    width: min(100%, 620px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.reveal-actions .btn,
.reveal-back {
    display: grid;
    place-items: center;
    text-decoration: none;
}

@keyframes revealSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
    .reveal-stage {
        min-height: 560px;
        padding: 18px;
    }

    .draw-machine {
        padding: 18px;
    }

    .reveal-actions {
        grid-template-columns: 1fr;
    }
}
