:root {
    --gold: #F0C040;
    --gold-dim: #C89A20;
    --gold-glow: rgba(240, 192, 64, 0.25);
    --green: #00C064;
    --red: #FF3B3B;
    --bg: #080C12;
    --surface: #0F1520;
    --surface2: #16202E;
    --border: rgba(255, 255, 255, 0.07);
    --text: #E8EDF5;
    --muted: #6B7A90;
    --font-display: "Bebas Neue", sans-serif;
    --font-ui: "Barlow Condensed", sans-serif;
    --font-body: "Barlow", sans-serif;
    --nav-h: 57px;
    --ticker-h: 38px;
    --bottom-nav-h: 56px;
    --slip-bar-h: 44px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

body.has-slip {
    padding-bottom: calc(var(--bottom-nav-h) + var(--slip-bar-h) + env(safe-area-inset-bottom, 0px));
}

body.slip-open {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: 0.4;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.main-content {
    min-height: 50svh;
    padding-top: calc(var(--nav-h) + var(--ticker-h));
}

/* ---- TOP BAR & NAV ---- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(8, 12, 18, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-family: var(--font-display);
    font-size: 1.65rem;
    color: var(--text);
    text-decoration: none;
    line-height: 1;
    flex-shrink: 1;
    min-width: 0;
}

.nav-logo-prefix {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    font-family: var(--font-ui);
    font-size: 0.5em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    padding-top: 0.15em;
}

.nav-logo-partner {
    color: inherit;
}

.nav-logo-by {
    color: inherit;
    opacity: 0.75;
    font-weight: 400;
}

.nav-logo-product {
    font-size: 1em;
    color: var(--text);
    letter-spacing: 0.06em;
    white-space: nowrap;
    line-height: 1;
}

.nav-logo-mark {
    color: var(--gold);
    text-shadow: 0 0 28px rgba(240, 192, 64, 0.4);
}

.nav-logo-trophy {
    font-size: 0.55em;
    line-height: 1;
}

@media (max-width: 767px) {
    .nav-logo-compact {
        font-size: 1.5rem;
        gap: 0.28em;
    }

    .nav-logo-compact .nav-logo-prefix {
        font-size: 0.46em;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.nav-desktop a {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
    color: var(--gold);
    background: rgba(240, 192, 64, 0.08);
}

.nav-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface2);
    cursor: pointer;
    padding: 0 10px;
}

.nav-menu-btn span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- SIDEBAR ---- */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.sidebar-overlay[hidden] {
    display: none;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 300;
    width: min(290px, 88vw);
    background: var(--surface);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem 1.5rem;
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface2);
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar-close:hover {
    color: var(--text);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.85rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active,
.sidebar-link[aria-current="page"] {
    color: var(--gold);
    background: rgba(240, 192, 64, 0.08);
    border-left: 3px solid var(--gold);
    padding-left: calc(0.75rem - 3px);
}

.sidebar-link-icon {
    font-size: 1.15rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar-foot {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ---- BOTTOM NAV ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: rgba(15, 21, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom, 0px));
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    flex: 1;
    min-height: 56px;
    max-width: 25%;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.45rem 0.2rem;
    transition: color 0.2s;
    text-decoration: none;
}

.bottom-nav-item.active,
.bottom-nav-item[aria-current="page"] {
    color: var(--gold);
}

.bottom-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
    display: block;
}

.bottom-nav-label {
    display: block;
    line-height: 1.1;
    white-space: nowrap;
}

/* ---- TICKER ---- */
.ticker-wrap {
    background: rgba(240, 192, 64, 0.06);
    border-bottom: 1px solid rgba(240, 192, 64, 0.15);
    overflow: hidden;
    padding: 0.55rem 0;
}

.ticker {
    display: flex;
    gap: 3rem;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.ticker-item {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticker-sep {
    color: var(--muted);
}

/* Offset content below fixed header */
.page-home .hero,
.page-intro,
.section {
    scroll-margin-top: calc(var(--nav-h) + var(--ticker-h) + 1rem);
}

.page-home .hero {
    margin-top: 0;
}

.page-intro,
.page-play .section,
.page-teams .section,
.page-prizes .section,
.page-how .section,
.page-responsible .section,
.page-404 .page-intro {
    padding-top: 1.25rem;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    padding: 0.85rem 2rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: #080C12;
}

.btn-primary:hover {
    background: #FFD84A;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(240, 192, 64, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.btn-compact {
    padding: 0.55rem 1.25rem;
    font-size: 0.8rem;
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

.btn.full {
    width: 100%;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: calc(100svh - var(--nav-h) - var(--ticker-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(240, 192, 64, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(0, 192, 100, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 60%, rgba(0, 100, 200, 0.06) 0%, transparent 60%);
}

.hero-pitch {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.04;
}

.hero-pitch svg {
    width: 100%;
    height: 100%;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(240, 192, 64, 0.1);
    border: 1px solid rgba(240, 192, 64, 0.3);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease both;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 9rem);
    line-height: 0.9;
    letter-spacing: 0.03em;
    color: var(--text);
    margin-bottom: 0.3rem;
    animation: fadeUp 0.7s 0.1s ease both;
}

.hero-title span {
    color: var(--gold);
    text-shadow: 0 0 60px rgba(240, 192, 64, 0.5);
}

.hero-sub {
    font-family: var(--font-ui);
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2.5rem;
    animation: fadeUp 0.7s 0.2s ease both;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeUp 0.7s 0.3s ease both;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-meta-item .val {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
}

.hero-meta-item .lbl {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.7s 0.4s ease both;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    animation: fadeUp 1s 0.8s ease both;
}

.scroll-hint .arrow {
    animation: bounce 1.8s infinite;
}

/* ---- PAGE INTRO ---- */
.page-intro {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 1rem;
    text-align: center;
}

.page-intro .section-label {
    margin-bottom: 0.75rem;
}

.page-intro .section-title {
    margin-bottom: 0.75rem;
}

.page-intro .section-desc {
    max-width: 520px;
    margin: 0 auto;
}

/* ---- COUNTDOWN ---- */
.countdown-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
}

.countdown-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.countdown-units {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.c-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.c-val {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    line-height: 1;
}

.c-lbl {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---- SECTIONS ---- */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.25rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-tight {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ---- BET CARDS ---- */
.bet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.bet-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.bet-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--gold));
    opacity: 0;
    transition: opacity 0.2s;
}

.bet-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.bet-card:hover::before {
    opacity: 1;
}

.bet-card.featured {
    border-color: rgba(240, 192, 64, 0.3);
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.06) 0%, var(--surface) 60%);
}

.bet-card.featured::before {
    opacity: 1;
}

.bet-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.bet-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.tag-gold { background: rgba(240, 192, 64, 0.15); color: var(--gold); }
.tag-green { background: rgba(0, 192, 100, 0.12); color: var(--green); }
.tag-blue { background: rgba(40, 120, 255, 0.12); color: #5599FF; }
.tag-red { background: rgba(255, 59, 59, 0.12); color: var(--red); }
.tag-purple { background: rgba(204, 68, 255, 0.12); color: #CC44FF; }
.tag-orange { background: rgba(255, 136, 0, 0.12); color: #FF8800; }
.tag-teal { background: rgba(45, 212, 191, 0.12); color: #2DD4BF; }

.bet-title {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.bet-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bet-prize {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-family: var(--font-display);
}

.prize-val {
    font-size: 2rem;
    color: var(--gold);
}

.prize-currency {
    font-size: 0.9rem;
    color: var(--muted);
    font-family: var(--font-ui);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.prize-tag {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-left: auto;
}

.bet-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-ui);
    flex-wrap: wrap;
}

.entry-cost {
    font-size: 0.8rem;
    color: var(--muted);
}

.entry-cost strong {
    color: var(--text);
    font-weight: 700;
}

/* ---- TEAMS ---- */
.picker-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.search-bar-wrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto 2rem;
}

.search-bar-wrap input,
.form-input,
.field {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-bar-wrap input {
    padding-left: 3rem;
}

.search-bar-wrap input:focus,
.form-input:focus,
.field:focus {
    border-color: rgba(240, 192, 64, 0.4);
}

.search-bar-wrap input::placeholder,
.form-input::placeholder,
.field::placeholder {
    color: var(--muted);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1rem;
    pointer-events: none;
}

.conf-tabs,
.chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.chips {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.35rem;
    margin-bottom: 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.conf-tab,
.chip {
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.conf-tab:hover,
.conf-tab.active,
.chip:hover,
.chip.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(240, 192, 64, 0.08);
}

.teams-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.team-card {
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.team-card:hover {
    border-color: rgba(240, 192, 64, 0.3);
    background: rgba(240, 192, 64, 0.04);
    transform: translateY(-2px);
}

.team-card.selected {
    border-color: var(--gold);
    background: rgba(240, 192, 64, 0.1);
}

.team-card.selected::after {
    content: "✓";
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 900;
}

.team-card[hidden] {
    display: none;
}

.team-flag {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    display: block;
}

.team-name {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.2;
}

.team-rank,
.team-conf {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

/* ---- STEPS ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
}

.step-num {
    font-family: var(--font-display);
    font-size: 4rem;
    color: rgba(240, 192, 64, 0.12);
    line-height: 1;
    position: absolute;
    top: 1rem;
    right: 1.25rem;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-title {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.83rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ---- PRIZES ---- */
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.prize-card {
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    background: var(--surface);
}

.prize-card.tier-1 {
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.12) 0%, var(--surface) 70%);
    border-color: rgba(240, 192, 64, 0.3);
}

.prize-card.tier-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.08) 0%, var(--surface) 70%);
    border-color: rgba(192, 192, 192, 0.2);
}

.prize-card.tier-3 {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.06) 0%, var(--surface) 70%);
    border-color: rgba(255, 59, 59, 0.2);
}

.prize-card.tier-4 {
    border-color: rgba(0, 192, 100, 0.2);
}

.prize-card.tier-5 {
    border-color: rgba(204, 68, 255, 0.2);
}

.prize-card.tier-6 {
    border-color: rgba(255, 136, 0, 0.2);
}

.prize-medal {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.prize-tier {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.prize-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.prize-kes {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--muted);
}

.prize-bet-name {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text);
    margin-top: 0.75rem;
    font-weight: 600;
}

/* ---- CONTENT PANEL ---- */
.content-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    max-width: 680px;
    margin: 0 auto;
}

.content-panel h2 {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.content-panel p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

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

/* ---- TRUST & FOOTER ---- */
.trust-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.trust-item span {
    font-size: 1.1rem;
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--gold);
}

.footer-tagline {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.6;
}

.footer-copy a {
    color: var(--gold);
    text-decoration: none;
}

.footer-copy a:hover {
    text-decoration: underline;
}

.footer-responsible {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* ---- MODAL ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    padding: 0;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay[hidden] {
    display: none;
}

.modal {
    position: relative;
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    padding: 2rem 1.5rem 2.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90svh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 3px solid var(--gold);
}

.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    margin: 0 auto 1.5rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.modal-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.modal-close:hover {
    color: var(--text);
}

.modal-step[hidden] {
    display: none;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label,
.field-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.team-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 4px;
}

.team-option {
    min-height: 64px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface2);
    padding: 0.65rem;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: var(--text);
    transition: all 0.15s;
}

.team-option:hover {
    border-color: rgba(240, 192, 64, 0.3);
}

.team-option.active {
    border-color: var(--gold);
    background: rgba(240, 192, 64, 0.1);
}

.team-option b,
.team-option span {
    display: block;
}

.team-option b {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
}

.team-option span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.team-option[hidden] {
    display: none;
}

.selected-display {
    background: var(--surface2);
    border: 1px dashed rgba(240, 192, 64, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.selected-display .sel-flag {
    font-size: 2.5rem;
}

.selected-display .sel-name {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 0.3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.selected-display .sel-placeholder {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.amount-btn,
.amount-option {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.6rem;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.amount-btn:hover,
.amount-btn.active,
.amount-option:hover,
.amount-option.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(240, 192, 64, 0.08);
}

.summary-box,
.summary-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    padding: 0.35rem 0;
}

.summary-row .lbl {
    color: var(--muted);
}

.summary-row .val {
    color: var(--text);
    font-weight: 600;
}

.summary-row.total .lbl {
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
}

.summary-row.total .val {
    color: var(--gold);
    font-size: 1.1rem;
    font-family: var(--font-display);
}

.summary-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.5rem 0;
}

.summary-card p {
    margin-bottom: 0.35rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.summary-card p strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.modal-actions .btn-outline {
    flex: 1;
}

.modal-actions .btn-primary {
    flex: 2;
}

/* ---- TOAST ---- */
.toast {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(0.75rem);
    background: var(--surface2);
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.25s ease,
        visibility 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 90vw;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0.9rem 1.5rem;
    border-color: var(--gold);
}

/* ---- UTILITIES ---- */
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-muted { color: var(--muted); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---- DESKTOP ---- */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .nav-menu-btn {
        display: none;
    }

    .nav-desktop {
        display: flex;
    }

    .bottom-nav {
        display: none;
    }

    .toast {
        bottom: 1.5rem;
    }

    .modal-overlay {
        align-items: center;
        padding: 1rem;
    }

    .modal {
        border-radius: 16px;
        max-height: 85svh;
        border: 1px solid var(--border);
        border-top: 3px solid var(--gold);
    }

    .modal-handle {
        display: none;
    }

    .team-picker {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .teams-grid,
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 480px) {
    .teams-grid,
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (min-width: 1024px) {
    .nav {
        padding-inline: calc((100% - 1100px) / 2 + 1rem);
    }

    .ticker-wrap {
        padding-inline: 0;
    }
}

/* ---- WALLET & ACCOUNT ---- */
.wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(240, 192, 64, 0.35);
    border-radius: 100px;
    background: rgba(240, 192, 64, 0.08);
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.wallet-chip:hover {
    border-color: var(--gold);
    background: rgba(240, 192, 64, 0.14);
}

.wallet-chip strong {
    color: var(--gold);
}

.sidebar-wallet {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(240, 192, 64, 0.25);
    border-radius: 10px;
    background: rgba(240, 192, 64, 0.06);
}

.sidebar-wallet .wallet-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.sidebar-wallet strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

.sidebar-wallet a {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

.account-grid {
    display: grid;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.wallet-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
}

.wallet-card h2 {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wallet-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.wallet-balance {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    color: var(--gold);
    line-height: 1;
    margin: 0.5rem 0;
}

.wallet-user {
    color: var(--muted);
    font-size: 0.9rem;
}

.wallet-topup p {
    margin-bottom: 1rem;
}

.topup-form {
    margin-top: 0.5rem;
}

.txn-list {
    display: grid;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.txn-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.txn-row strong {
    font-family: var(--font-ui);
    font-size: 0.95rem;
}

.txn-row p {
    margin: 0.2rem 0;
    font-size: 0.85rem;
}

.txn-meta {
    text-align: right;
    flex-shrink: 0;
}

.txn-meta span {
    display: block;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.95rem;
}

.bets-list {
    display: grid;
    gap: 1rem;
    max-width: 760px;
    margin: 0 auto;
}

.bet-slip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.bet-slip-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.status-pill {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
}

.status-pill.status-active {
    background: rgba(0, 192, 100, 0.12);
    color: var(--green);
}

.status-pill.status-won {
    background: rgba(240, 192, 64, 0.15);
    color: var(--gold);
}

.status-pill.status-lost {
    background: rgba(255, 59, 59, 0.12);
    color: var(--red);
}

.status-pill.status-cancelled {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.empty-state {
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 0.5rem;
}

.wallet-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(240, 192, 64, 0.25);
    border-radius: 8px;
    background: rgba(240, 192, 64, 0.06);
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.wallet-inline strong {
    color: var(--gold);
    font-size: 1.1rem;
}

.insufficient-note {
    font-size: 0.85rem;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.insufficient-note a {
    color: var(--gold);
    font-weight: 600;
}

/* ---- AUTH MODAL ---- */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-tab {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface2);
    color: var(--muted);
    padding: 0.6rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(240, 192, 64, 0.08);
}

.auth-panel[hidden] {
    display: none;
}

.auth-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 1rem;
}

.pin-input {
    letter-spacing: 0.35em;
    font-size: 1.25rem;
    text-align: center;
    font-family: var(--font-ui);
    font-weight: 700;
}

.nav-auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

@media (max-width: 767px) {
    .nav-auth-toggle {
        position: relative;
        width: 5.75rem;
        height: 2.05rem;
        flex-shrink: 0;
    }

    .nav-auth-toggle .nav-auth-item {
        position: absolute;
        top: 0;
        right: 0;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .nav-auth-toggle .nav-auth-item.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (min-width: 768px) {
    .nav-auth-toggle .nav-auth-item {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.nav-auth-stack {
    display: grid;
    gap: 0.5rem;
    width: 100%;
}

.games-timeline {
    display: grid;
    gap: 0.75rem;
    max-width: 720px;
    margin: 0 auto;
}

.game-round {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.game-round-num {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(240, 192, 64, 0.12);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.game-round h3 {
    margin: 0;
}

@media (min-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .account-grid .wallet-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .account-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .account-grid .wallet-card:first-child {
        grid-column: auto;
    }
}

/* ---- MARKETS & BET FLOW ---- */
.hero-compact {
    min-height: 42svh;
}

.hero-compact .hero-inner {
    padding: 2.5rem 1.25rem 2rem;
}

.hero-compact .hero-sub {
    margin-bottom: 1.5rem;
}

.hero-compact .hero-meta {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-compact .hero-meta-item .val {
    font-size: 1.75rem;
}

.countdown-bar-compact {
    padding: 0.85rem 1rem;
}

.countdown-bar-compact .countdown-units {
    gap: 0.5rem;
}

.market-cards {
    display: grid;
    gap: 0.85rem;
    max-width: 960px;
    margin: 0 auto;
}

.market-card {
    display: grid;
    grid-template-columns: minmax(108px, 34%) 1fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.market-card:hover {
    border-color: rgba(240, 192, 64, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.market-card.featured {
    border-color: rgba(240, 192, 64, 0.28);
    box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.08), 0 8px 28px rgba(240, 192, 64, 0.06);
}

.market-card.featured .market-card-prize-block {
    background: linear-gradient(160deg, rgba(240, 192, 64, 0.22) 0%, rgba(240, 192, 64, 0.06) 55%, rgba(15, 21, 32, 0.2) 100%);
}

.market-card-prize-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.1rem 0.65rem;
    background: linear-gradient(160deg, rgba(0, 192, 100, 0.14) 0%, rgba(0, 192, 100, 0.04) 50%, transparent 100%);
    border-right: 1px solid var(--border);
}

.market-card-prize-label {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.market-card-prize-amount {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 5vw, 2.15rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--green);
    text-shadow: 0 0 24px rgba(0, 192, 100, 0.25);
}

.market-card.featured .market-card-prize-amount {
    color: var(--gold);
    text-shadow: 0 0 28px rgba(240, 192, 64, 0.3);
}

.market-card-prize-currency {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-top: 0.15rem;
}

.market-card-body {
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.market-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.market-card-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.market-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    margin: 0 0 0.3rem;
    color: var(--text);
    line-height: 1.1;
}

.market-card-desc {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 0.65rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.market-card-stake {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.market-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.market-tabs::-webkit-scrollbar {
    display: none;
}

.market-tab {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 130px;
    padding: 0.65rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    transition: border-color 0.2s, color 0.2s;
}

.market-tab.active {
    border-color: var(--gold);
    color: var(--text);
    background: rgba(240, 192, 64, 0.06);
}

.market-tab-icon {
    font-size: 1.1rem;
}

.market-tab-label {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.market-tab-prize {
    font-size: 0.68rem;
    color: var(--green);
    font-weight: 600;
}

.market-detail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--market-accent, var(--gold));
    border-radius: 12px;
    padding: 1rem 1.15rem;
    margin: 1rem 0;
}

.market-detail-head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.market-detail-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.market-detail-head h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin: 0 0 0.25rem;
}

.market-detail-prize {
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

.market-detail-prize .lbl {
    display: block;
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.market-detail-prize strong {
    color: var(--green);
    font-size: 1rem;
}

.teams-grid-bet .team-card-link,
.teams-grid-compact .team-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}

.teams-grid-bet .team-card-link:hover,
.teams-grid-compact .team-card-link:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.team-odds {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.bet-page-header {
    padding: 1rem 1.25rem 1.25rem;
    background: linear-gradient(180deg, rgba(240, 192, 64, 0.06), transparent);
    border-bottom: 1px solid var(--border);
}

.bet-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.85rem;
    text-decoration: none;
}

.bet-back:hover {
    color: var(--gold);
}

.bet-page-title {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.bet-page-title h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 0 0 0.25rem;
    letter-spacing: 0.02em;
}

.bet-page-title p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}

.bet-page-icon {
    font-size: 2rem;
}

.bet-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.bet-meta-pill {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
}

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

.bet-slip-team {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.team-flag-lg {
    font-size: 2.5rem;
}

.bet-slip-layout {
    display: grid;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.bet-slip-heading {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin: 0 0 0.75rem;
}

.bet-slip-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.bet-slip-note {
    font-size: 0.78rem;
    margin: 0.75rem 0 0;
    line-height: 1.45;
}

.bet-slip-wallet {
    margin-bottom: 1rem;
}

.prizes-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.section-muted {
    background: rgba(15, 21, 32, 0.5);
}

.auth-page {
    max-width: 440px;
    margin: 0 auto;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.auth-switch a {
    color: var(--gold);
    font-weight: 600;
}

.wallet-withdraw h2 {
    color: var(--muted);
}

@media (min-width: 768px) {
    .market-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1100px;
    }

    .market-card.featured {
        grid-column: 1 / -1;
    }

    .market-card.featured .market-card-prize-amount {
        font-size: clamp(2rem, 4vw, 2.75rem);
    }

    .bet-slip-layout {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }
}

/* ---- LADDER & MATCH BETS ---- */
.tournament-ladder {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 720px;
    margin: 0 auto;
}

.ladder-rung {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.15s;
}

.ladder-rung:hover {
    border-color: rgba(240, 192, 64, 0.35);
    transform: translateX(2px);
}

.ladder-rung.featured {
    border-color: rgba(240, 192, 64, 0.3);
    background: linear-gradient(90deg, rgba(240, 192, 64, 0.08), var(--surface));
}

.ladder-rung-prize {
    text-align: center;
    padding-right: 0.65rem;
    border-right: 1px solid var(--border);
}

.ladder-prize-amount {
    display: block;
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
    color: var(--green);
}

.ladder-rung.featured .ladder-prize-amount {
    color: var(--gold);
    font-size: 1.65rem;
}

.ladder-prize-currency {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.ladder-rung-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.ladder-survivors {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.ladder-rung-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0 0 0.2rem;
    letter-spacing: 0.02em;
}

.ladder-rung-desc {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.ladder-rung-stake {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
}

.ladder-rung-arrow {
    color: var(--muted);
    font-size: 0.85rem;
}

.match-stage-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
}

.match-stage-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
}

.match-stage-tab.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(240, 192, 64, 0.08);
}

.match-list {
    display: grid;
    gap: 0.65rem;
    max-width: 720px;
    margin: 0 auto;
}

.match-card {
    display: block;
    padding: 1rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.15s;
}

.match-card:hover {
    border-color: rgba(240, 192, 64, 0.35);
    transform: translateY(-1px);
}

.match-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
}

.match-card-label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.match-card-time {
    color: var(--gold);
}

.match-card-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.65rem;
}

.match-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.match-side:last-child .match-team-name {
    text-align: center;
}

.match-team-name {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.match-vs {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.match-card-foot {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border);
}

.match-odds {
    color: var(--green);
}

.match-stake-hint {
    color: var(--gold);
}

.match-pick-arena {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.match-pick-prompt {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}

.match-pick-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: stretch;
}

.match-pick-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.match-pick-team:hover {
    border-color: var(--gold);
    background: rgba(240, 192, 64, 0.06);
}

.team-flag-xl {
    font-size: 3rem;
    line-height: 1;
}

.match-pick-name {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
}

.match-pick-hint {
    font-size: 0.68rem;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.match-pick-vs {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--muted);
}

.match-pick-note {
    margin-top: 1.25rem;
    font-size: 0.82rem;
}

.match-page-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.match-page-label {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.match-page-meta {
    font-size: 0.82rem;
    margin: 0.25rem 0 0;
}

.match-slip-fixture {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.match-vs-sm {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 700;
}

.match-slip-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--muted);
    width: 100%;
}

.special-markets {
    display: grid;
    gap: 0.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.special-market-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}

.special-market-card strong {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.special-market-card span.text-muted {
    font-size: 0.78rem;
}

.special-market-icon {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .match-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: 960px;
    }
}

/* ---- COMPACT MOBILE + MULTIBET ---- */
.section-compact { padding-top: 0.5rem; }
.page-intro-tight { padding: 0.85rem 1rem 0.5rem; }
.sec-head-compact { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.5rem; }
.sec-head-compact h2 { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.03em; margin: 0; }
.sec-link { font-size: 0.75rem; color: var(--gold); text-decoration: none; font-weight: 700; }
.hint-compact { font-size: 0.72rem; color: var(--muted); margin: 0 0 0.5rem; }
.hero-mini .hero-inner { padding: 1.25rem 1rem 1rem; }
.hero-mini .hero-title { font-size: 2.5rem; margin-bottom: 0.15rem; }
.hero-mini .hero-sub { font-size: 0.82rem; margin-bottom: 0.65rem; }

.jp-list, .fx-list { display: flex; flex-direction: column; gap: 0.45rem; }
.jp-row, .fx-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    text-decoration: none;
    color: inherit;
}
.jp-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 0.5rem; align-items: center; }
.jp-row.featured { border-color: rgba(240, 192, 64, 0.25); }
.jp-row-prize { text-align: center; line-height: 1.05; }
.jp-row-prize strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--green); }
.jp-row.featured .jp-row-prize strong { color: var(--gold); }
.jp-row-prize span { font-size: 0.58rem; color: var(--muted); letter-spacing: 0.08em; }
.jp-row-body { display: flex; gap: 0.45rem; align-items: center; min-width: 0; }
.jp-row-icon { font-size: 1.1rem; }
.jp-row-text { min-width: 0; }
.jp-row-text strong { display: block; font-size: 0.82rem; font-family: var(--font-ui); }
.jp-row-text span { font-size: 0.68rem; color: var(--muted); }
.jp-row-go { color: var(--muted); font-size: 0.7rem; }

.fx-row-top { display: flex; justify-content: space-between; font-size: 0.62rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--muted); }
.fx-time { color: var(--gold); }
.fx-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.35rem; align-items: stretch; }
.fx-side {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.1rem; padding: 0.35rem 0.25rem; border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface2); color: inherit; cursor: pointer; font-family: var(--font-ui);
}
.fx-side.picked { border-color: var(--gold); background: rgba(240, 192, 64, 0.1); }
.fx-flag { font-size: 1.15rem; line-height: 1; }
.fx-name { font-size: 0.72rem; font-weight: 700; }
.fx-odd { font-size: 0.62rem; color: var(--green); font-weight: 700; }
.fx-vs { display: flex; align-items: center; font-size: 0.65rem; color: var(--muted); font-weight: 700; }

.jp-head { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
.jp-head-main { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.35rem; }
.jp-head-main h1 { font-family: var(--font-display); font-size: 1.35rem; margin: 0; }
.jp-head-main p { font-size: 0.75rem; color: var(--muted); margin: 0.15rem 0 0; }
.jp-head-icon { font-size: 1.5rem; }
.jp-hint { font-size: 0.72rem; color: var(--muted); margin: 0 0 0.65rem; }
.jp-fx { display: grid; grid-template-columns: 22px 1fr; gap: 0.4rem; align-items: center; }
.jp-leg-num { font-size: 0.65rem; font-weight: 700; color: var(--gold); text-align: center; }
.jp-place { margin: 0.65rem 0 0.75rem; }

.jp-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}
.jp-slots-single { grid-template-columns: 1fr; }
.jp-slot {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 0.35rem;
    align-items: center;
    padding: 0.55rem 0.5rem;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: var(--surface2);
    color: inherit;
    text-align: left;
    cursor: default;
    font-family: var(--font-ui);
}
.jp-slot.is-filled {
    border-style: solid;
    border-color: rgba(240, 192, 64, 0.45);
    background: rgba(240, 192, 64, 0.08);
}
.jp-slot-num {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(240, 192, 64, 0.15);
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
}
.jp-slot-body {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}
.jp-slot-empty { font-size: 0.72rem; color: var(--muted); }
.jp-slot-flag { font-size: 1.2rem; line-height: 1; }
.jp-slot-code { font-size: 0.74rem; font-weight: 700; color: var(--gold); }
.jp-slot-name {
    font-size: 0.65rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jp-slot-clear {
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
}
.jp-slot-clear:hover { color: var(--text); }
.jp-pool-label {
    font-size: 0.68rem;
    color: var(--muted);
    margin: 0 0 0.5rem;
}
.jp-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr));
    gap: 0.4rem;
    max-height: 42vh;
    overflow-y: auto;
    padding: 0.15rem 0 0.25rem;
}
.jp-team-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    padding: 0.45rem 0.25rem;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface2);
    color: inherit;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}
.jp-team-chip:hover:not(:disabled) {
    border-color: rgba(240, 192, 64, 0.4);
    background: rgba(240, 192, 64, 0.06);
}
.jp-team-chip.is-used,
.jp-team-chip:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.jp-team-flag { font-size: 1.25rem; line-height: 1; }
.jp-team-code { font-size: 0.68rem; font-weight: 700; }

@media (min-width: 480px) {
    .jp-slots { grid-template-columns: repeat(4, 1fr); }
    .jp-slots-single { grid-template-columns: 1fr; max-width: 220px; }
}
.amount-grid-tight { gap: 0.35rem; margin-bottom: 0.5rem; }
.amount-grid-tight .amount-option { padding: 0.45rem 0.35rem; font-size: 0.75rem; min-height: auto; }

.match-stage-tabs-tight .match-stage-tab { padding: 0.4rem 0.7rem; font-size: 0.72rem; }
.special-compact { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.special-chip {
    font-size: 0.72rem; padding: 0.45rem 0.65rem; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); color: inherit; text-decoration: none;
}

.slip-bar {
    position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    z-index: 210; background: var(--surface2); border-top: 1px solid rgba(240, 192, 64, 0.35);
    height: var(--slip-bar-h);
}
.slip-bar-btn {
    width: 100%; height: 100%; display: flex; align-items: center; gap: 0.45rem;
    padding: 0 1rem; border: none; background: transparent; color: var(--text);
    font-family: var(--font-ui); font-weight: 700; font-size: 0.8rem; cursor: pointer;
}
.slip-bar-count {
    display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px;
    background: var(--gold); color: #111; font-size: 0.75rem;
}
.slip-bar-win { margin-left: auto; color: var(--green); font-size: 0.78rem; }

.slip-overlay {
    position: fixed;
    inset: 0;
    z-index: 220;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
}

.slip-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.slip-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 230;
    max-height: 92vh;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-radius: 14px 14px 0 0;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
}

.slip-drawer.is-open {
    transform: translateY(0);
    visibility: visible;
}

.slip-bar[hidden] {
    display: none !important;
}

.slip-bar-chevron {
    margin-left: 0.35rem;
    font-size: 0.7rem;
    color: var(--muted);
    transition: transform 0.2s;
}

.slip-bar-btn[aria-expanded="true"] .slip-bar-chevron {
    transform: rotate(180deg);
}

.prize-card-link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.15s;
}

.prize-card-link:hover {
    border-color: rgba(240, 192, 64, 0.35);
    transform: translateY(-2px);
}
.slip-drawer-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.65rem 1rem; border-bottom: 1px solid var(--border);
    font-family: var(--font-ui); font-weight: 700;
}
.slip-close { border: none; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.slip-legs {
    flex: 1;
    overflow-y: auto;
    padding: 0.55rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.slip-leg-card {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 0.4rem;
    align-items: start;
    padding: 0.55rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.slip-leg-n {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: rgba(240, 192, 64, 0.15);
    border-radius: 6px;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.65rem;
    font-family: var(--font-ui);
}
.slip-leg-fixture {
    font-size: 0.65rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-family: var(--font-ui);
}
.slip-leg-vs { opacity: 0.55; font-weight: 700; }
.slip-leg-picks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}
.slip-leg-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    padding: 0.4rem 0.3rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}
.slip-leg-team.is-selected {
    border-color: var(--gold);
    background: rgba(240, 192, 64, 0.12);
    box-shadow: 0 0 0 1px rgba(240, 192, 64, 0.25);
}
.slip-leg-team.is-dim { opacity: 0.42; }
.slip-leg-flag { font-size: 1.25rem; line-height: 1; }
.slip-leg-code {
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-ui);
}
.slip-leg-team.is-selected .slip-leg-code { color: var(--gold); }
.slip-leg-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
}
.slip-leg-pick-name { font-weight: 600; min-width: 0; }
.slip-leg-odd {
    color: var(--green);
    font-weight: 700;
    font-family: var(--font-ui);
    white-space: nowrap;
}
.slip-leg-x {
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    width: 26px;
    height: 26px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.82rem;
    flex-shrink: 0;
}
.slip-leg-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.slip-foot { padding: 0.65rem 1rem 0.85rem; border-top: 1px solid var(--border); }
.slip-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; margin: 0.35rem 0; }
.slip-stake-input {
    width: 100px; text-align: right; padding: 0.35rem 0.5rem; border-radius: 6px;
    border: 1px solid var(--border); background: var(--surface2); color: var(--text);
}
.slip-note { font-size: 0.68rem; color: var(--muted); margin: 0.35rem 0; }
.slip-clear { margin-top: 0.35rem; }

.bets-compact { display: flex; flex-direction: column; gap: 0.5rem; }
.bet-row { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.65rem 0.75rem; }
.bet-row-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.bet-ref { font-size: 0.68rem; color: var(--gold); font-weight: 700; }
.bet-row-title { font-size: 0.85rem; display: block; margin-bottom: 0.25rem; }
.bet-legs-list { list-style: none; margin: 0 0 0.35rem; padding: 0; font-size: 0.72rem; color: var(--muted); }
.bet-legs-list li { padding: 0.1rem 0; }
.bet-row-foot { display: flex; justify-content: space-between; font-size: 0.72rem; font-weight: 700; }
