/* ── Tokens ─────────────────────────────────────────────────────────────────── */

:root {
    --bg: #0a0e16;
    --bg-elevated: #0f1520;
    --surface: rgba(18, 24, 38, 0.72);
    --surface-strong: #141c2b;
    --border: rgba(148, 163, 184, 0.1);
    --border-strong: rgba(148, 163, 184, 0.18);
    --txt: #e8edf4;
    --txt-secondary: #b8c4d4;
    --muted: #7b8a9e;
    --accent: #3ecf8e;
    --accent-soft: rgba(62, 207, 142, 0.1);
    --accent-glow: rgba(62, 207, 142, 0.22);
    --gold: #e8c468;
    --gold-soft: rgba(232, 196, 104, 0.08);
    --danger: #f0a0a0;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.12);
    --nav-h: 76px;
    --header-h: 64px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--txt);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% -5%, rgba(62, 207, 142, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 35% 28% at 95% 35%, rgba(232, 196, 104, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 30% 25% at 5% 85%, rgba(100, 140, 200, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #0c1220 0%, #0a0e16 100%);
    pointer-events: none;
}

/* ── Loading screen ─────────────────────────────────────────────────────────── */

.screen {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(48px, 16vh, 112px) 20px 24px;
}

.screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.018'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.screen.is-hidden {
    display: none;
}

.splash-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 340px);
    text-align: center;
    animation: splash-in 0.6s var(--ease) both;
}

.splash-glow {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(62, 207, 142, 0.14) 0%, transparent 70%);
    filter: blur(12px);
    animation: splash-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

.splash-logo {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 20px;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
    animation: splash-logo 3s ease-in-out infinite;
}

.splash-badge {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.splash-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--txt);
}

.splash-sub {
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 28px;
}

.splash-progress {
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-bottom: 14px;
}

.splash-progress-bar {
    height: 100%;
    width: 32%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), rgba(232, 196, 104, 0.8));
    animation: splash-progress 1.6s ease-in-out infinite;
}

.splash-status {
    font-size: 0.84rem;
    color: var(--muted);
    font-weight: 400;
    min-height: 1.4em;
}

@keyframes splash-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes splash-pulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50%      { opacity: 0.9; transform: translateX(-50%) scale(1.04); }
}

@keyframes splash-logo {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

@keyframes splash-progress {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(380%); }
}

/* ── Access / blocked screen ────────────────────────────────────────────────── */

.access-screen {
    align-items: center;
    padding: 24px;
}

.access-card {
    position: relative;
    z-index: 1;
    width: min(100%, 380px);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    animation: fade-up 0.5s var(--ease) both;
    overflow: hidden;
}

.access-card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(62, 207, 142, 0.12), transparent 70%);
    pointer-events: none;
}

.access-icon-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid rgba(62, 207, 142, 0.18);
    color: var(--accent);
}

.access-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.access-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.access-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.access-example {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.access-example-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.access-example code {
    display: block;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(62, 207, 142, 0.85);
    word-break: break-all;
}

/* ── App shell ──────────────────────────────────────────────────────────────── */

.wc-app {
    position: relative;
    z-index: 10;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px));
}

.wc-app.is-hidden {
    display: none;
}

.wc-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--header-h);
    padding: 10px 18px;
    background: rgba(10, 14, 22, 0.78);
    backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

.wc-header-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.wc-header-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.95;
}

.wc-header-text {
    min-width: 0;
}

.wc-header-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.wc-header-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
    line-height: 1.3;
    margin-top: 1px;
}

.wc-user-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.wc-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(62, 207, 142, 0.15);
    flex-shrink: 0;
}

.wc-user-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.wc-user-name {
    font-size: 0.78rem;
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.wc-user-id {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.wc-main {
    flex: 1;
    padding: 20px 18px 12px;
    animation: fade-up 0.45s var(--ease) both;
}

.wc-section-head {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.wc-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 5px;
}

.wc-section-desc {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 400;
}

/* ── Bottom navigation ──────────────────────────────────────────────────────── */

.wc-nav {
    position: fixed;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 50;
    width: min(calc(100% - 24px), 456px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 6px;
    background: rgba(14, 20, 32, 0.88);
    backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.app-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 6px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.22s var(--ease), background 0.22s var(--ease);
}

.app-tab-icon {
    width: 20px;
    height: 20px;
    opacity: 0.75;
    transition: opacity 0.22s var(--ease);
}

.app-tab-label {
    line-height: 1;
}

.app-tab:hover {
    color: var(--txt-secondary);
}

.app-tab:hover .app-tab-icon {
    opacity: 0.9;
}

.app-tab.is-active {
    color: var(--accent);
    background: var(--accent-soft);
}

.app-tab.is-active .app-tab-icon {
    opacity: 1;
}

.tab-count {
    position: absolute;
    top: 6px;
    right: calc(50% - 26px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gold);
    color: #1a1408;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
    animation: fade-up 0.25s var(--ease) both;
}

.tab-panel[hidden] {
    display: none !important;
}

/* ── Match list & cards ─────────────────────────────────────────────────────── */

.match-list {
    display: grid;
    gap: 16px;
}

.match-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.match-card--active::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.7;
}

.match-card.is-loading .match-card-body,
.match-card.is-loading .match-card-top,
.match-card.is-loading .match-scoreboard,
.match-card.is-loading .combo-legs {
    pointer-events: none;
}

.match-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: rgba(10, 14, 22, 0.82);
    backdrop-filter: blur(8px);
}

.match-card-overlay[hidden] {
    display: none !important;
}

.match-card-spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.15);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

.match-card-overlay-text {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--txt-secondary);
    text-align: center;
}

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

.match-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px 0;
}

.match-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(62, 207, 142, 0.9);
    background: var(--accent-soft);
    border: 1px solid rgba(62, 207, 142, 0.15);
}

.match-live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    animation: live-pulse 2.2s ease-out infinite;
}

.match-window {
    font-size: 0.66rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    text-align: right;
    line-height: 1.4;
    font-weight: 400;
}

.match-scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 20px 18px 18px;
}

.match-scoreboard--compact {
    padding: 0 0 10px;
}

.match-team-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.match-team-block--home {
    align-items: flex-end;
    text-align: right;
}

.match-team-block--away {
    align-items: flex-start;
    text-align: left;
}

.match-scoreboard--compact .match-team-block {
    align-items: center;
    text-align: center;
}

.team-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.match-scoreboard--compact .team-name {
    font-size: 0.84rem;
    font-weight: 600;
}

.match-vs-ring {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold-soft);
    border: 1px solid rgba(232, 196, 104, 0.18);
}

.match-vs-ring--sm {
    width: 32px;
    height: 32px;
}

.match-vs-ring span {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold);
    opacity: 0.85;
}

.match-stake-banner {
    margin: 0 18px 4px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    border: 1px solid rgba(232, 196, 104, 0.14);
    font-size: 0.76rem;
    color: var(--muted);
    text-align: center;
    font-weight: 400;
}

.match-stake-banner strong {
    color: var(--gold);
    font-weight: 600;
}

.match-card-body {
    padding: 0 18px 18px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.12);
}

.match-card--history {
    padding: 18px;
}

.match-card--history .match-scoreboard {
    padding: 0 0 12px;
}

/* ── Prediction options ─────────────────────────────────────────────────────── */

.prediction-options {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    margin-bottom: 12px;
}

.prediction-options--grid3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.prediction-options--compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding-top: 0;
    margin-bottom: 0;
}

.prediction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 68px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--txt);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.prediction-options:not(.prediction-options--compact):not(.prediction-options--grid3) .prediction-btn {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    justify-items: start;
    min-height: auto;
    padding: 12px 14px;
    text-align: left;
}

.prediction-btn:hover {
    border-color: rgba(62, 207, 142, 0.28);
    background: rgba(62, 207, 142, 0.04);
}

.prediction-btn.is-selected {
    border-color: rgba(62, 207, 142, 0.45);
    background: rgba(62, 207, 142, 0.1);
    box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.08);
}

.prediction-code {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    background: var(--gold-soft);
    color: var(--gold);
    border: 1px solid rgba(232, 196, 104, 0.16);
}

.prediction-options--grid3 .prediction-code,
.prediction-options--compact .prediction-code {
    width: auto;
    height: auto;
    background: none;
    border: none;
    font-size: 0.88rem;
}

.prediction-label {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--txt-secondary);
    line-height: 1.25;
}

.prediction-options--grid3 .prediction-label {
    font-size: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prediction-options--compact .prediction-label {
    display: none;
}

.prediction-odds {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.prediction-options:not(.prediction-options--compact):not(.prediction-options--grid3) .prediction-odds {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    background: var(--gold-soft);
    border: 1px solid rgba(232, 196, 104, 0.16);
}

.prediction-btn.is-selected .prediction-odds {
    color: #f5e6b8;
}

.prediction-btn.is-selected .prediction-code {
    background: rgba(62, 207, 142, 0.15);
    color: rgba(62, 207, 142, 0.95);
    border-color: rgba(62, 207, 142, 0.22);
}

/* ── Stake & actions ─────────────────────────────────────────────────────────── */

.stake-field {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stake-limits {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 400;
}

.stake-limits strong {
    color: var(--gold);
    font-weight: 600;
}

.stake-hint {
    font-size: 0.78rem;
    color: var(--danger);
    font-weight: 500;
}

.stake-input.is-invalid {
    border-color: rgba(240, 160, 160, 0.5);
    box-shadow: 0 0 0 3px rgba(240, 160, 160, 0.08);
}

.stake-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.stake-input {
    width: 100%;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--txt);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.stake-input:focus {
    outline: none;
    border-color: rgba(62, 207, 142, 0.4);
    box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.08);
}

.stake-summary,
.combo-odds-summary {
    font-size: 0.8rem;
    color: rgba(62, 207, 142, 0.85);
    font-weight: 500;
    line-height: 1.45;
}

.combo-odds-summary.muted {
    color: var(--muted);
}

.match-actions {
    margin-top: 12px;
}

.btn-save {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #0a1812;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.btn-save:hover:not(:disabled) {
    background: #4dd99a;
}

.btn-save:active:not(:disabled) {
    transform: scale(0.985);
}

.btn-save:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ── Combo cards ──────────────────────────────────────────────────────────────── */

.combo-title {
    padding: 0 18px 10px;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.combo-title--sm {
    padding: 0 0 10px;
    font-size: 0.92rem;
}

.combo-legs {
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.combo-leg {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.combo-leg-head {
    margin-bottom: 10px;
    font-size: 0.82rem;
    text-align: center;
    color: var(--txt-secondary);
    font-weight: 400;
}

.combo-leg-head strong {
    color: var(--txt);
    font-weight: 600;
}

.match-card--combo .match-card-body {
    padding-top: 12px;
}

/* ── History ──────────────────────────────────────────────────────────────────── */

.history-type-tag {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-soft);
    border: 1px solid rgba(232, 196, 104, 0.16);
}

.history-body {
    padding-top: 2px;
}

.history-pick,
.history-result {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.history-pick:last-of-type,
.history-result:last-of-type {
    border-bottom: none;
}

.history-pick span,
.history-result span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.history-pick strong,
.history-result strong {
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.status-badge {
    display: inline-flex;
    margin-top: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status-pending {
    color: #e8c468;
    background: rgba(232, 196, 104, 0.1);
    border: 1px solid rgba(232, 196, 104, 0.2);
}

.status-won {
    color: rgba(62, 207, 142, 0.9);
    background: rgba(62, 207, 142, 0.1);
    border: 1px solid rgba(62, 207, 142, 0.2);
}

.status-lost {
    color: var(--danger);
    background: rgba(240, 160, 160, 0.08);
    border: 1px solid rgba(240, 160, 160, 0.18);
}

.combo-history-legs {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.combo-history-legs li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.combo-history-legs span {
    color: var(--muted);
}

.combo-history-legs strong {
    font-weight: 600;
    text-align: right;
}

/* ── Empty state & toast ─────────────────────────────────────────────────────── */

[hidden] {
    display: none !important;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-strong);
    background: rgba(255, 255, 255, 0.015);
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
    line-height: 1.55;
    font-weight: 400;
}

.empty-state-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--muted);
}

.empty-state-icon svg {
    width: 22px;
    height: 22px;
    opacity: 0.7;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 500;
    max-width: min(calc(100% - 32px), 380px);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: toast-in 0.3s var(--ease) both;
}

.toast--success {
    background: rgba(20, 50, 38, 0.96);
    color: rgba(62, 207, 142, 0.95);
    border: 1px solid rgba(62, 207, 142, 0.25);
    backdrop-filter: blur(12px);
}

.toast--error {
    background: rgba(40, 20, 20, 0.96);
    color: var(--danger);
    border: 1px solid rgba(240, 160, 160, 0.2);
    backdrop-filter: blur(12px);
}

.toast--info {
    background: rgba(14, 20, 32, 0.96);
    color: var(--txt-secondary);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.4); }
    70%  { box-shadow: 0 0 0 6px rgba(62, 207, 142, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0); }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────────────────────────── */

@media (min-width: 520px) {
    .wc-nav {
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 380px) {
    .wc-user-name {
        max-width: 72px;
    }

    .team-name {
        font-size: 0.88rem;
    }

    .wc-main {
        padding-left: 14px;
        padding-right: 14px;
    }
}
