/*
 * scarcekicks — global theme.
 * Derived from the Football wireframes (Wireframes.html in the vault). The Theme Layer
 * variables are taken verbatim so swapping in another sport theme later is a single block.
 * Structural values (spacing, radii, shadows) are sport-agnostic.
 */

:root {
    /* Generic Layout — sport-agnostic */
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-pill: 12px;
    --space-card: 16px;
    --space-gap: 10px;
    --shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 6px 24px rgba(22, 163, 74, 0.20);
    --shadow-strong: 0 10px 32px rgba(15, 23, 42, 0.18);
    --transition-fast: 0.15s;
}

/* ===== THEME LAYER (Football) ===== */
:root {
    --primary-1: #16a34a;
    --primary-2: #15803d;
    --secondary-1: #0f172a;
    --secondary-2: #1e293b;
    --accent-gold-1: #fbbf24;
    --accent-gold-2: #d97706;
    --accent-goal: #f97316;
    --accent-goal-2: #ea580c;
    --live-red-1: #dc2626;
    --live-red-2: #991b1b;
    --silver-1: #cbd5e1;
    --silver-2: #94a3b8;
    --bronze-1: #fb923c;
    --bronze-2: #c2410c;

    --bg: #f9faf7;
    --panel: #ffffff;
    --line: #e2ebd9;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-faint: #94a3b8;

    --tint-grass: #ecfccb;
    --tint-pitch: #f0f9ec;
    --tint-gold: #fef3c7;
    --tint-red: #fee2e2;

    --grad-hero: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    --grad-stadium: linear-gradient(180deg, #1e293b 0%, #334155 100%);
    --grad-live: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    --grad-trophy: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --grad-goal: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --grad-pitch: linear-gradient(180deg, #f0f9ec 0%, #ecfccb 100%);
    --grad-night: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --grad-silver: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    --grad-bronze: linear-gradient(135deg, #fb923c 0%, #c2410c 100%);

    --shadow-glow-hero: 0 6px 24px rgba(22, 163, 74, 0.25);
    --shadow-glow-gold: 0 8px 22px rgba(217, 119, 6, 0.30);
    --shadow-glow-live: 0 6px 22px rgba(220, 38, 38, 0.30);
    --shadow-glow-goal: 0 4px 14px rgba(249, 115, 22, 0.30);
}
/* ===== END THEME LAYER ===== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: -apple-system, "Inter", "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }

/* ---------- Boot splash (pre-Blazor) ---------- */
.boot-splash {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--bg);
}
.boot-spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--tint-grass);
    border-top-color: var(--primary-1);
    border-radius: 50%;
    animation: sk-spin 1s linear infinite;
}
.boot-text { color: var(--text-muted); font-size: 14px; }
@keyframes sk-spin { to { transform: rotate(360deg); } }

#blazor-error-ui {
    background: var(--live-red-1);
    color: white;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .15);
    display: none;
    left: 0;
    padding: 12px 16px;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 12px; top: 12px; }
#blazor-error-ui .reload { color: white; text-decoration: underline; margin-left: 12px; }

/* ---------- App shell ---------- */
.app-shell {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    background: var(--bg);
}
.app-shell__inner {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px 20px;
}
.app-content.with-bottom-nav { padding-bottom: 88px; } /* clears the fixed bottom-nav */

/* ---------- Top bar (with back arrow) for sub-screens ---------- */
.top-bar {
    display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.top-bar .back {
    font-size: 30px; font-weight: 700; color: var(--primary-2); cursor: pointer;
    /* Comfortable 44x44 tap target (mobile guideline) instead of just the thin glyph. */
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0;
    margin-left: -10px; border-radius: 12px; line-height: 1;
    user-select: none; -webkit-tap-highlight-color: transparent; transition: background 0.15s;
}
.top-bar .back:hover { background: rgba(15, 23, 42, 0.06); }
.top-bar .back:active { background: rgba(15, 23, 42, 0.12); }
.top-bar h1 { font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.top-bar .sub { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ---------- Greeting on Dashboard ---------- */
.app-greeting { margin-bottom: 8px; }
.app-greeting h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.app-greeting .meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

/* ---------- Section heading ---------- */
.section-head {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin: 16px 0 10px 2px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-head .badge {
    background: var(--live-red-1);
    color: white;
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

/* ---------- Hero CTA (Football emoji decoration) ---------- */
.hero-cta {
    background: var(--grad-hero);
    color: white;
    padding: 22px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin: 16px 0 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    box-shadow: var(--shadow-glow-hero);
    position: relative;
    overflow: hidden;
    border: none;
    font-family: inherit;
    width: 100%;
}
.hero-cta .icon { display: block; font-size: 32px; margin-bottom: 6px; }
.hero-cta::after {
    content: "⚽";
    position: absolute;
    top: -18px; right: -14px;
    font-size: 92px;
    opacity: 0.14;
    transform: rotate(20deg);
    pointer-events: none;
}

/* ---------- Invite card (Trophy gradient, stadium emoji deco) ---------- */
.invite-card {
    background: var(--grad-trophy);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    color: white;
    box-shadow: var(--shadow-glow-gold);
    position: relative;
    overflow: hidden;
}
.invite-card::before {
    content: "🏟️";
    position: absolute;
    top: -10px; right: -8px;
    font-size: 64px;
    opacity: 0.25;
    transform: rotate(12deg);
}
.invite-card .title { font-size: 15px; font-weight: 800; position: relative; }
.invite-card .from { font-size: 12px; opacity: 0.95; margin-top: 2px; position: relative; }
.invite-card .actions { display: flex; gap: 8px; margin-top: 14px; position: relative; }
.invite-card .actions button {
    flex: 1; padding: 10px;
    border-radius: 12px;
    font-size: 13px; font-weight: 700;
    cursor: pointer; border: none;
    font-family: inherit;
}
.invite-card .btn-accept { background: white; color: var(--accent-gold-2); }
.invite-card .btn-decline { background: rgba(255,255,255,0.25); color: white; }
.invite-card .btn-accept:disabled, .invite-card .btn-decline:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- Tipprunde card ---------- */
.tipprunde-card {
    background: var(--panel);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-1);
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--text);
    display: block;
}
.tipprunde-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.tipprunde-card.rank-1 { border-left-color: var(--accent-gold-1); }
.tipprunde-card.rank-2 { border-left-color: var(--primary-1); }
.tipprunde-card .name { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
.tipprunde-card .name .owner-flag { font-size: 11px; color: var(--accent-gold-2); margin-left: 6px; font-weight: 700; }
.tipprunde-card .meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }
.tipprunde-card .footer-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 12px;
}
.tipprunde-card .points { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.tipprunde-card .points b { color: var(--primary-2); font-weight: 800; font-size: 16px; }
.tipprunde-card .joincode {
    font-size: 11px; color: var(--text-faint); font-family: ui-monospace, "JetBrains Mono", monospace;
    letter-spacing: 0.5px;
}

.rank-badge {
    background: var(--grad-hero);
    color: white;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.30);
}

/* ---------- Inputs ---------- */
.input-group { margin-bottom: 14px; text-align: left; }
.input-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; }
.input-field {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--line);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: var(--panel);
    font-weight: 500;
    transition: all var(--transition-fast);
    font-family: inherit;
    color: var(--text);
}
.input-field:focus { outline: none; border-color: var(--primary-1); box-shadow: 0 0 0 4px rgba(22,163,74,0.12); }
.input-field.invalid { border-color: var(--live-red-1); background: var(--tint-red); }
.input-hint { font-size: 11px; color: var(--text-faint); margin-top: 6px; font-weight: 500; }
.input-error { font-size: 12px; color: var(--live-red-1); margin-top: 6px; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: var(--grad-hero);
    color: white;
    margin-bottom: 8px;
    box-shadow: var(--shadow-glow-hero);
    transition: all var(--transition-fast);
    font-family: inherit;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: var(--panel); color: var(--text); box-shadow: var(--shadow-soft); }
.btn.outline { background: var(--panel); color: var(--primary-2); box-shadow: none; border: 2px solid var(--line); }
.btn.success { background: var(--grad-hero); box-shadow: var(--shadow-glow-hero); }
.btn.fire { background: var(--grad-goal); box-shadow: var(--shadow-glow-goal); }
.btn.danger { background: var(--grad-live); box-shadow: var(--shadow-glow-live); }
.btn.text { background: transparent; color: var(--primary-2); box-shadow: none; padding: 8px 4px; font-weight: 600; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { margin-bottom: 0; }

/* ---------- Bottom Nav ---------- */
.bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 420px;
    height: 70px;
    background: var(--panel);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    border-radius: 36px 36px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 20;
}
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
}
.bottom-nav-item.active { color: var(--primary-2); }
.bottom-nav-item.active .nav-icon {
    background: var(--grad-hero);
    color: white;
    box-shadow: var(--shadow-glow-hero);
}
.bottom-nav-item .nav-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    border-radius: 14px;
    background: transparent;
    transition: all 0.2s;
}

/* ---------- Alerts (inline notices) ---------- */
.alert {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
}
.alert.success { background: var(--tint-grass); color: var(--primary-2); border: 1px solid var(--primary-1); }
.alert.error { background: var(--tint-red); color: var(--live-red-2); border: 1px solid var(--live-red-1); }
.alert.info { background: var(--tint-pitch); color: var(--primary-2); border: 1px solid var(--line); }

/* ---------- Logo plate (used on Login + Onboarding) ---------- */
.logo-plate {
    background: var(--grad-hero);
    border-radius: 28px;
    margin: 24px auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-strong);
    transform: rotate(-5deg);
}
.logo-plate.large { width: 96px; height: 96px; font-size: 48px; }
.logo-plate.medium { width: 88px; height: 88px; font-size: 44px; border-radius: 24px; box-shadow: var(--shadow-glow); transform: rotate(-3deg); }

.hero-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 6px;
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}
.hero-title.compact { font-size: 26px; letter-spacing: -0.5px; }
.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 600;
}

.foot-hint {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
}

/* ---------- Binary choice cards (A32 reminder decision: onboarding + profile) ---------- */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card {
    border: 2px solid var(--line); border-radius: var(--radius-lg);
    padding: 16px 8px 14px; background: var(--panel); text-align: center;
    cursor: pointer; transition: all var(--transition-fast); box-shadow: var(--shadow-soft);
    font-family: inherit; color: var(--text);
}
.choice-card:hover:not(.selected):not(:disabled) { transform: translateY(-2px); }
.choice-card:disabled { opacity: .55; cursor: not-allowed; }
.choice-card .emoji { font-size: 28px; line-height: 1; margin-bottom: 8px; display: block; }
.choice-card .label { font-size: 13px; font-weight: 800; letter-spacing: -0.2px; }
.choice-card .sub { font-size: 10px; color: var(--text-muted); margin-top: 3px; font-weight: 600; }
.choice-card.selected { border-color: var(--primary-1); background: var(--tint-pitch); box-shadow: var(--shadow-glow); }
.choice-card.selected .label { color: var(--primary-2); }
.choice-warn { font-size: 11px; color: var(--text-faint); margin-top: 10px; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.choice-warn .warn-icon { color: var(--accent-gold-2); }

/* ---------- Empty-state card ---------- */
.empty-state {
    background: var(--tint-pitch);
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}
.empty-state .icon { font-size: 36px; display: block; margin-bottom: 10px; }
.empty-state .title { color: var(--text); font-weight: 700; font-size: 15px; margin-bottom: 6px; }

/* ============================================================
   Session 9 — wizard, prediction entry, live matchday.
   Ported from Wireframes.html (vault); values kept faithful,
   with :disabled / font-family hardening for real controls.
   ============================================================ */

/* ---------- Team badge (placeholder for the not-yet-wired flag icons) ---------- */
.team-badge {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.team-badge.lg { width: 56px; height: 40px; font-size: 15px; }
.team-badge.sm { width: 30px; height: 20px; font-size: 10px; border-radius: 6px; margin-right: 6px; }
.team-badge.dark { background: var(--tint-pitch); color: var(--primary-2); }

/* ---------- Flag emoji (replaces the team-badge placeholder, Session 11 A28) ---------- */
.flag-lg { font-size: 42px; line-height: 1; display: inline-block; }
.flag-sm { font-size: 20px; line-height: 1; display: inline-block; vertical-align: middle; }

/* ---------- Wizard stepper ---------- */
.stepper { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 18px; }
.step-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--panel);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
    box-shadow: var(--shadow-soft);
}
.step-dot.active { background: var(--grad-hero); color: white; box-shadow: var(--shadow-glow-hero); }
.step-dot.done { background: var(--grad-hero); color: white; box-shadow: var(--shadow-glow-hero); opacity: 0.85; }
.step-line { width: 22px; height: 3px; background: var(--line); border-radius: 2px; }
.step-line.done { background: var(--grad-hero); }

/* ---------- Score / points config grid ---------- */
.sub-head {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin: 16px 0 8px 4px; font-weight: 800;
}
.score-config-row {
    display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
    padding: 10px 14px; background: var(--panel); border-radius: var(--radius-md);
    margin-bottom: 6px; box-shadow: var(--shadow-soft);
}
.score-config-row .lhs { display: flex; align-items: center; gap: 10px; }
.score-config-row .score-pill {
    background: var(--grad-hero); color: white;
    padding: 4px 12px; border-radius: 12px;
    font-size: 13px; font-weight: 800; min-width: 50px; text-align: center;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.22);
}
.score-config-row .lhs-text { font-size: 13px; font-weight: 600; }
.quota-input {
    width: 60px; text-align: center; padding: 8px 4px;
    border: 2px solid var(--line); border-radius: 10px;
    font-size: 15px; font-weight: 800; color: var(--primary-2);
    background: var(--panel); font-family: inherit;
}
.quota-input:focus { outline: none; border-color: var(--primary-1); }

/* ---------- Email invite list ---------- */
.email-list-head { display: flex; gap: 8px; align-items: stretch; }
.email-list-head .input-field { flex: 1; }
.btn-add {
    padding: 0 14px; border-radius: var(--radius-md);
    background: var(--grad-hero); color: white; border: none;
    font-weight: 800; cursor: pointer; font-size: 13px;
    box-shadow: var(--shadow-glow-hero); font-family: inherit; white-space: nowrap;
}
.btn-add:disabled { opacity: .5; cursor: not-allowed; }
.email-list {
    background: var(--panel); border-radius: var(--radius-md); margin-top: 10px;
    box-shadow: var(--shadow-soft); overflow: hidden;
}
.email-list-row {
    padding: 11px 14px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.email-list-row:last-child { border-bottom: none; }
.email-list-row .remove-btn {
    color: var(--live-red-1); cursor: pointer; font-weight: 800; font-size: 16px; padding: 0 6px;
    background: none; border: none; font-family: inherit;
}

/* ---------- Confirmation code box ---------- */
.code-box {
    background: var(--grad-hero); color: white; border-radius: 20px;
    padding: 22px; text-align: center; margin: 18px 0;
    box-shadow: var(--shadow-glow-hero); position: relative; overflow: hidden;
}
.code-box::after {
    content: "🏟️"; position: absolute; top: -14px; right: -10px;
    font-size: 76px; opacity: 0.20; transform: rotate(12deg);
}
.code-box .code-label {
    font-size: 11px; opacity: 0.90; text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 8px; position: relative; font-weight: 700;
}
.code-box .code-value { font-size: 36px; font-weight: 900; letter-spacing: 6px; position: relative; }

/* ---------- Strategy / hint box ---------- */
.strategy-box {
    background: var(--grad-pitch); border-radius: var(--radius-md);
    padding: 14px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--text);
}
.strategy-box b { color: var(--primary-2); }
.strategy-box.success { background: var(--grad-hero); color: white; }
.strategy-box.success b { color: white; }
.strategy-box.info { background: var(--grad-night); color: white; }
.strategy-box.info b { color: var(--accent-gold-1); }

/* ---------- Pool hub: tab bar + match cards ---------- */
.tab-bar {
    display: flex; gap: 4px; background: var(--panel); border-radius: var(--radius-md);
    padding: 4px; margin-bottom: 14px; box-shadow: var(--shadow-soft);
}
.tab-item {
    flex: 1; padding: 9px 4px; text-align: center; font-size: 12px;
    color: var(--text-muted); cursor: pointer; border-radius: 10px; font-weight: 700;
    transition: all var(--transition-fast); background: none; border: none; font-family: inherit;
}
.tab-item.active { background: var(--grad-hero); color: white; box-shadow: var(--shadow-glow-hero); }
.tab-item:disabled { opacity: .55; cursor: not-allowed; }
.tab-item .tab-icon { font-size: 16px; line-height: 1; vertical-align: -1px; }

.match-card {
    background: var(--panel); border-radius: var(--radius-md); padding: 14px;
    margin-bottom: 10px; box-shadow: var(--shadow-soft); transition: all var(--transition-fast);
    border: none; width: 100%; text-align: left; font-family: inherit; color: var(--text); display: block;
}
.match-card.clickable { cursor: pointer; }
.match-card.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.match-meta {
    font-size: 11px; color: var(--text-muted); margin-bottom: 8px;
    display: flex; justify-content: space-between; align-items: center; font-weight: 600;
}
.match-teams { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.match-team { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.match-vs { font-size: 11px; color: var(--text-faint); padding: 0 8px; font-weight: 700; }
.match-score-text { font-size: 15px; font-weight: 800; color: var(--text); }
.match-venue { font-size: 10px; color: var(--text-muted); margin: 4px 0 8px; font-weight: 500; }
.match-tip-foot { font-size: 11px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

.tip-pill { padding: 4px 11px; border-radius: 12px; font-size: 11px; font-weight: 800; }
.tip-pill.done { background: var(--grad-hero); color: white; box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25); }
.tip-pill.pending { background: var(--grad-trophy); color: white; box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25); }
.tip-pill.locked { background: var(--tint-pitch); color: var(--text-muted); }
.tip-pill.fire { background: var(--grad-goal); color: white; box-shadow: 0 2px 6px rgba(249, 115, 22, 0.30); }

.btn-mini {
    padding: 8px 12px; border-radius: 10px; border: none;
    background: var(--grad-hero); color: white; font-weight: 700; font-size: 12px;
    cursor: pointer; box-shadow: 0 3px 10px rgba(22, 163, 74, 0.22); font-family: inherit;
}
.btn-mini:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Prediction entry: hero, quick tags, score input ---------- */
.match-hero {
    background: var(--grad-hero); color: white; border-radius: 20px;
    padding: 20px 16px; text-align: center; margin-bottom: 14px;
    box-shadow: var(--shadow-glow-hero); position: relative; overflow: hidden;
}
.match-hero::before {
    content: "⚽"; position: absolute; top: -18px; left: -18px;
    font-size: 96px; opacity: 0.14; transform: rotate(-20deg); pointer-events: none;
}
.match-hero::after {
    content: "🥅"; position: absolute; bottom: -14px; right: -10px;
    font-size: 72px; opacity: 0.12; transform: rotate(8deg); pointer-events: none;
}
.match-hero .league-info { font-size: 12px; opacity: 0.92; margin-bottom: 12px; font-weight: 600; position: relative; }
.match-hero .teams-row { display: flex; align-items: center; justify-content: center; gap: 18px; position: relative; }
.match-hero .team-block { text-align: center; }
.match-hero .team-block .team-name { font-size: 14px; font-weight: 800; margin-top: 8px; letter-spacing: -0.2px; }
.match-hero .vs-text { font-size: 12px; font-weight: 800; opacity: 0.7; text-transform: uppercase; letter-spacing: 1.5px; }
.match-hero .venue-info { font-size: 11px; opacity: 0.92; margin-top: 12px; font-weight: 500; position: relative; }

.swipe-hint {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; margin-bottom: 12px; background: var(--panel);
    border-radius: var(--radius-md); color: var(--text-muted);
    font-size: 11px; font-weight: 600; box-shadow: var(--shadow-soft);
}
.swipe-hint .swipe-arrow {
    font-weight: 800; color: var(--primary-2); font-size: 14px;
    background: none; border: none; cursor: pointer; font-family: inherit;
}
.swipe-hint .swipe-arrow:disabled { opacity: .3; cursor: not-allowed; }

.quick-tag-section { margin: 12px 0; }
.quick-tag-section .head {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--text-muted); text-align: center; margin-bottom: 10px; font-weight: 800;
}
.quick-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qtag {
    background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius-md);
    padding: 12px 4px; text-align: center; font-weight: 800; font-size: 17px;
    color: var(--text); cursor: pointer; transition: all var(--transition-fast);
    position: relative; font-family: inherit;
}
.qtag:hover:not(.empty) { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.qtag.active {
    background: var(--grad-hero); color: white; border-color: var(--primary-2);
    box-shadow: var(--shadow-glow-hero); transform: scale(1.05);
}
.qtag.empty { opacity: 0.4; cursor: not-allowed; }
.qtag .left { display: block; font-size: 9px; color: inherit; opacity: 0.7; margin-top: 3px; font-weight: 600; text-transform: none; }

.score-input-row { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 0; }
.score-input {
    width: 64px; height: 72px; border: 2px solid var(--line); border-radius: var(--radius-md);
    font-size: 32px; font-weight: 900; text-align: center; color: var(--primary-2);
    background: var(--panel); box-shadow: var(--shadow-soft); font-family: inherit;
}
.score-input:focus { outline: none; border-color: var(--primary-1); }
.score-sep { font-size: 30px; font-weight: 800; color: var(--text-muted); }

.quota-indicator {
    background: var(--grad-pitch); border-radius: var(--radius-md); padding: 12px 14px;
    margin: 12px 0; font-size: 13px; color: var(--text); text-align: center; font-weight: 600;
}
.quota-indicator b { color: var(--primary-2); font-weight: 800; }
.quota-indicator.low { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); }
.quota-indicator.low b { color: var(--accent-goal-2); }
.quota-indicator.free { background: var(--tint-pitch); }

.ko-bonus-section {
    background: var(--grad-trophy); border-radius: var(--radius-lg); padding: 16px;
    margin: 12px 0; color: white; box-shadow: var(--shadow-glow-gold);
    position: relative; overflow: hidden;
}
.ko-bonus-section::before {
    content: "🏆"; position: absolute; top: -10px; right: -8px;
    font-size: 68px; opacity: 0.22; transform: rotate(15deg); pointer-events: none;
}
.ko-bonus-section .head { font-size: 14px; font-weight: 800; margin-bottom: 4px; position: relative; }
.ko-bonus-section .body { font-size: 12px; margin-bottom: 12px; opacity: 0.96; position: relative; font-weight: 500; }
.ko-radio-row { display: flex; gap: 8px; position: relative; }
.ko-radio {
    flex: 1; padding: 10px; text-align: center; background: rgba(255, 255, 255, 0.25);
    border-radius: 12px; font-size: 13px; font-weight: 700; color: white; cursor: pointer;
    border: none; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ko-radio.selected { background: white; color: var(--accent-gold-2); }

/* ---------- Live matchday ---------- */
.live-banner {
    background: var(--grad-live); color: white; padding: 12px 14px; border-radius: var(--radius-md);
    font-size: 13px; font-weight: 700; margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-glow-live);
}
.live-pulse { width: 10px; height: 10px; background: white; border-radius: 50%; animation: sk-pulse 1.2s infinite; flex-shrink: 0; }
@keyframes sk-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.live-card {
    background: var(--panel); border-radius: 20px; padding: 16px; margin-bottom: 12px;
    box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
}
.live-card.is-live {
    background: var(--grad-stadium); color: white;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35); border: 1px solid rgba(251, 191, 36, 0.25);
}
.live-card.is-live::before {
    content: "🏟️"; position: absolute; bottom: -18px; left: -14px;
    font-size: 96px; opacity: 0.06; transform: rotate(-8deg); pointer-events: none;
}
.live-card .header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; position: relative; }
.league-tag { background: var(--tint-pitch); color: var(--primary-2); padding: 4px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.live-card.is-live .league-tag { background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.92); }
.live-tag {
    background: var(--grad-live); color: white; padding: 4px 10px; border-radius: 10px;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}
.live-score-block { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 6px 0; position: relative; }
.live-team { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.live-team .team-name { font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: -0.2px; }
.live-card.is-live .live-team .team-name { color: white; }
.live-score { font-size: 32px; font-weight: 900; letter-spacing: 2px; color: var(--text); text-align: center; min-width: 80px; }
.live-card.is-live .live-score {
    background: var(--grad-trophy); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; text-shadow: 0 2px 12px rgba(251, 191, 36, 0.20);
}
.live-score.kickoff { font-size: 22px; color: var(--text-faint); font-weight: 800; letter-spacing: 1px; }
.venue-row { font-size: 11px; color: var(--text-muted); text-align: center; margin-bottom: 8px; font-weight: 600; position: relative; }
.live-card.is-live .venue-row { color: rgba(255, 255, 255, 0.75); }
.goals-list { background: rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 10px 12px; margin: 8px 0; position: relative; }
.live-card:not(.is-live) .goals-list { background: var(--tint-pitch); }
.goals-list .goals-head { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 800; margin-bottom: 6px; }
.live-card.is-live .goals-list .goals-head { color: rgba(255, 255, 255, 0.65); }
.goal-event { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; font-weight: 600; }
.live-card.is-live .goal-event { color: white; }
.goal-min {
    background: var(--grad-goal); color: white; padding: 2px 8px; border-radius: 8px;
    font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(249, 115, 22, 0.30);
}
.tip-status-row {
    display: flex; justify-content: space-between; align-items: center; padding: 10px 12px;
    background: var(--grad-pitch); border-radius: 12px; margin-top: 8px; font-size: 13px; font-weight: 700; position: relative;
}
.live-card.is-live .tip-status-row { background: rgba(255, 255, 255, 0.10); color: white; }
.points-pill { background: var(--grad-hero); color: white; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 800; box-shadow: 0 2px 8px rgba(22, 163, 74, 0.30); }
.points-pill.fire { background: var(--grad-trophy); box-shadow: 0 2px 8px rgba(217, 119, 6, 0.30); }
.points-pill.muted { background: var(--tint-pitch); color: var(--text-muted); box-shadow: none; }
.rank-prognose {
    display: flex; justify-content: space-between; align-items: center; padding: 9px 14px;
    border-radius: 12px; margin-top: 6px; font-size: 12px; font-weight: 700;
    background: var(--grad-hero); color: white; position: relative;
}
.rank-prognose.down { background: var(--grad-live); }
.rank-prognose.neutral { background: var(--tint-pitch); color: var(--text-muted); }
.live-card.is-live .rank-prognose.neutral { background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.85); }
.rank-prognose .arrow { font-weight: 900; font-size: 16px; }

.day-summary {
    background: var(--grad-hero); color: white; border-radius: 20px; padding: 16px; margin-top: 14px;
    box-shadow: var(--shadow-glow-hero); position: relative; overflow: hidden;
}
.day-summary::after { content: "🏆"; position: absolute; top: -10px; right: -10px; font-size: 80px; opacity: 0.18; transform: rotate(20deg); }
.day-summary .ds-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; position: relative; }
.day-summary .ds-head b { font-size: 16px; font-weight: 800; }
.day-summary .ds-rank { background: rgba(255, 255, 255, 0.25); padding: 5px 12px; border-radius: 14px; font-weight: 800; font-size: 14px; }
.day-summary .ds-foot { font-size: 12px; opacity: 0.95; position: relative; font-weight: 500; }

/* ---------- Gradient-text helper + wizard / confirmation headings ---------- */
.grad-text {
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.step-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.step-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; font-weight: 500; }
.confirm-wrap { text-align: center; padding-top: 20px; }
.confirm-icon {
    width: 80px; height: 80px; background: var(--grad-hero); border-radius: 24px;
    margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 40px; box-shadow: var(--shadow-glow-hero); transform: rotate(-4deg);
}
.confirm-title { font-size: 26px; font-weight: 900; margin-bottom: 4px; }

/* ---------- Pool hub action grid ---------- */
.hub-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 4px; }
.hub-action {
    background: var(--grad-hero); color: white; border: none; border-radius: var(--radius-lg);
    padding: 20px 12px; text-align: center; cursor: pointer; font-family: inherit;
    font-weight: 800; font-size: 14px; box-shadow: var(--shadow-glow-hero);
    transition: all var(--transition-fast);
}
.hub-action:hover { transform: translateY(-2px); }
.hub-action .icon { display: block; font-size: 28px; margin-bottom: 6px; }
.hub-action.live { background: var(--grad-live); box-shadow: var(--shadow-glow-live); }

/* ============================================================
   Polish — user feedback 31.05.: roomier layout, slightly larger
   type, chromeless arrow nav, no number-input spinners.
   Cascade overrides earlier rules per-property.
   ============================================================ */

/* More breathing room on the scroll area + dashboard vertical rhythm */
body { line-height: 1.55; }
.app-content { padding: 20px 20px 28px; }
.app-content.with-bottom-nav { padding-bottom: 92px; }
.app-greeting { margin-bottom: 16px; }
.app-greeting h1 { font-size: 30px; }
.app-greeting .meta { font-size: 14px; margin-top: 4px; }
.section-head { font-size: 12px; margin: 24px 0 12px 2px; }
.hero-cta { padding: 26px; margin: 22px 0 6px; font-size: 16px; }
.invite-card { padding: 18px; margin-bottom: 14px; }
.invite-card .title { font-size: 16px; }
.invite-card .from { font-size: 13px; }
.tipprunde-card { padding: 18px; margin-bottom: 12px; }
.tipprunde-card .name { font-size: 17px; }
.tipprunde-card .meta { font-size: 13px; }
.empty-state { padding: 28px; font-size: 14px; }
.top-bar h1 { font-size: 20px; }
.step-title { font-size: 22px; }
.match-team { font-size: 15px; }
.match-hero .team-block .team-name { font-size: 15px; }

/* Arrow-based navigation: chromeless icon buttons (no button background) */
.swipe-hint .swipe-arrow {
    font-size: 18px;
    background: transparent;
    padding: 0 6px;
    appearance: none;
    -webkit-appearance: none;
}

/* Remove number-input spin controls in score / quota fields */
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button,
.quota-input::-webkit-outer-spin-button,
.quota-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-input,
.quota-input { -moz-appearance: textfield; appearance: textfield; }

/* ============================================================
   Session 10 — pool-detail tabs (ranking, members, quota), bulk
   entry, invitation landing. Ported from Wireframes.html.
   ============================================================ */

/* ---------- Ranking: podium + rows ---------- */
.rank-podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: end; margin: 12px 0 18px; }
.podium-spot { background: var(--panel); border-radius: var(--radius-md); padding: 14px 6px; text-align: center; box-shadow: var(--shadow-soft); }
.podium-spot .medal { font-size: 30px; display: block; margin-bottom: 4px; }
.podium-spot .name { font-size: 11px; font-weight: 800; }
.podium-spot .pts { font-size: 13px; font-weight: 800; color: var(--primary-2); margin-top: 4px; }
.podium-spot.gold { background: var(--grad-trophy); color: white; padding: 18px 6px; transform: translateY(-10px); box-shadow: var(--shadow-glow-gold); }
.podium-spot.gold .pts { color: white; }
.podium-spot.silver { background: var(--grad-silver); color: white; padding: 14px 6px; }
.podium-spot.silver .pts { color: white; }
.podium-spot.bronze { background: var(--grad-bronze); color: white; padding: 14px 6px; }
.podium-spot.bronze .pts { color: white; }

.rank-row { display: flex; align-items: center; padding: 11px 14px; margin-bottom: 6px; gap: 10px; background: var(--panel); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.rank-row.me { background: var(--grad-hero); color: white; box-shadow: var(--shadow-glow-hero); }
.rank-num { font-size: 15px; font-weight: 800; color: var(--text-muted); width: 22px; text-align: center; }
.rank-row.me .rank-num { color: white; }
.rank-name { flex: 1; font-size: 14px; font-weight: 700; }
.rank-points { font-size: 16px; font-weight: 800; color: var(--primary-2); }
.rank-row.me .rank-points { color: white; }

/* ---------- Members + privacy ---------- */
.member-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 6px; background: var(--panel); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.member-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-hero); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.member-avatar.pending { background: var(--grad-trophy); }
.member-avatar.declined { background: var(--grad-live); }
.member-info { flex: 1; font-size: 14px; font-weight: 700; }
.member-info .sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; font-weight: 500; }
.status-pill { padding: 3px 9px; border-radius: 10px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.status-pill.joined { background: var(--grad-hero); color: white; }
.status-pill.pending { background: var(--grad-trophy); color: white; }
.status-pill.declined { background: var(--grad-live); color: white; }
.privacy-card { background: var(--grad-night); color: white; border-radius: var(--radius-md); padding: 14px; margin-bottom: 14px; font-size: 12px; font-weight: 500; box-shadow: var(--shadow-strong); }
.privacy-card b { font-weight: 800; }

/* ---------- Quota dashboard ---------- */
.quota-card { background: var(--panel); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-soft); }
.quota-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.quota-score-big { font-size: 24px; font-weight: 900; background: var(--grad-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: 1px; }
.quota-count { background: var(--grad-hero); color: white; padding: 5px 12px; border-radius: 14px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.quota-count.low { background: var(--grad-goal); }
.quota-count.empty { background: var(--grad-live); }
.quota-progress { height: 12px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: 4px; }
.quota-progress-fill { height: 100%; background: var(--grad-hero); border-radius: 6px; transition: width 0.5s; }
.quota-progress-fill.low { background: var(--grad-goal); }
.quota-progress-fill.empty { background: var(--grad-live); }
.quota-foot { font-size: 11px; color: var(--text-muted); margin-top: 6px; font-weight: 600; }
.quota-foot.warn { color: var(--accent-goal-2); font-weight: 700; }

/* ---------- Bulk entry ---------- */
.bulk-card { background: var(--panel); border-radius: var(--radius-md); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-soft); }
.bulk-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.bulk-card-teams { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bulk-card-meta { font-size: 10px; color: var(--text-muted); margin-bottom: 10px; font-weight: 500; }
.bulk-quick-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 8px; }
.bulk-quick { padding: 8px 2px; text-align: center; background: var(--tint-pitch); border-radius: 8px; font-weight: 800; font-size: 12px; cursor: pointer; color: var(--text); border: none; font-family: inherit; }
.bulk-quick.active { background: var(--grad-hero); color: white; box-shadow: 0 3px 10px rgba(22, 163, 74, 0.28); }
.bulk-quick.empty { opacity: 0.4; cursor: not-allowed; }
.bulk-free-row { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--text-muted); font-weight: 600; }
.bulk-free-row input { width: 42px; padding: 6px; text-align: center; border: 2px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 800; font-family: inherit; color: var(--primary-2); -moz-appearance: textfield; appearance: textfield; }
.bulk-free-row input::-webkit-outer-spin-button, .bulk-free-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bulk-free-row input:focus { outline: none; border-color: var(--primary-1); }
.bulk-free-row .free-ok { color: var(--primary-2); font-weight: 800; margin-left: auto; }

/* ---------- Generic info card (invitation landing) ---------- */
.info-card { background: var(--panel); border-radius: var(--radius-md); padding: 16px; margin-bottom: 10px; box-shadow: var(--shadow-soft); text-align: left; }
.info-card .ti { font-size: 15px; font-weight: 800; }
.info-card .body { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; font-weight: 500; }
.info-card .body b { color: var(--text); font-weight: 800; }

/* ---------- Special bets (A31) ---------- */
.sb-card { background: var(--panel); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-soft); text-align: left; border-left: 4px solid transparent; }
.sb-card.hit { border-left-color: var(--primary-1); background: var(--tint-pitch); }
.sb-card.miss { border-left-color: var(--silver-2); }
.sb-card-head { display: flex; align-items: center; gap: 8px; }
.sb-emoji { font-size: 20px; }
.sb-title { font-size: 14px; font-weight: 800; color: var(--text); }
.sb-points { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--accent-gold-2); background: var(--tint-gold); padding: 3px 9px; border-radius: var(--radius-pill); white-space: nowrap; }
.sb-points.win { color: white; background: var(--grad-hero); }
.sb-question { font-size: 12px; color: var(--text-muted); font-weight: 600; margin: 8px 0 10px; }
.sb-select { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-md); font-size: 14px; background: var(--panel); font-weight: 600; font-family: inherit; color: var(--text); cursor: pointer; }
.sb-select:focus { outline: none; border-color: var(--primary-1); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12); }
.sb-result-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: 8px; gap: 10px; }
.sb-result-row .lbl { color: var(--text-muted); font-weight: 600; }
.sb-result-row .val { font-weight: 800; color: var(--text); text-align: right; }
.sb-verdict { margin-top: 10px; font-size: 12px; font-weight: 800; }
.sb-verdict.hit { color: var(--primary-2); }
.sb-verdict.miss { color: var(--text-faint); }
.sb-total-box { background: var(--grad-trophy); color: white; border-radius: var(--radius-lg); padding: 18px; text-align: center; margin-bottom: 14px; box-shadow: var(--shadow-glow); }
.sb-total-box .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.92; }
.sb-total-box .value { font-size: 34px; font-weight: 900; margin-top: 2px; }
.sb-total-box .value .unit { font-size: 18px; font-weight: 800; opacity: 0.85; }

/* ---------- Rank delta (A25, live matchday header) ---------- */
.rank-delta-card { background: var(--grad-night); color: white; border-radius: var(--radius-lg); padding: 14px 18px; margin-bottom: 14px; box-shadow: var(--shadow-strong); }
.rd-top { display: flex; align-items: baseline; gap: 10px; }
.rd-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.7; }
.rd-rank { font-size: 22px; font-weight: 900; margin-left: auto; }
.rd-arrow { font-size: 15px; font-weight: 900; padding: 2px 10px; border-radius: var(--radius-pill); }
.rank-delta-card.up .rd-arrow { color: #bbf7d0; background: rgba(22, 163, 74, 0.35); }
.rank-delta-card.down .rd-arrow { color: #fecaca; background: rgba(220, 38, 38, 0.35); }
.rd-sub { font-size: 11px; opacity: 0.75; margin-top: 4px; font-weight: 500; }

/* ---------- Legal pages + cookie banner (A17) ---------- */
.legal-page { text-align: left; padding-bottom: 20px; }
.legal-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; font-weight: 500; margin: 4px 0; }
.legal-text code, .legal-list code { background: var(--tint-pitch); padding: 1px 5px; border-radius: 6px; font-size: 12px; color: var(--primary-2); }
.legal-list { font-size: 13px; color: var(--text-muted); line-height: 1.6; font-weight: 500; padding-left: 18px; margin: 4px 0; }
.legal-list li { margin-bottom: 6px; }
.legal-list b { color: var(--text); font-weight: 800; }
.cookie-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; width: calc(100% - 24px); max-width: 432px; background: var(--secondary-1); color: white; border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-strong); display: flex; align-items: center; gap: 12px; z-index: 100; }
.cookie-text { font-size: 12px; line-height: 1.5; font-weight: 500; flex: 1; }
.cookie-text a { color: var(--accent-gold-1); font-weight: 700; }
.cookie-ok { flex-shrink: 0; background: var(--grad-hero); color: white; border: none; border-radius: var(--radius-md); padding: 10px 18px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.legal-links { text-align: center; font-size: 11px; color: var(--text-faint); margin-top: 16px; font-weight: 600; }
.legal-links a { color: var(--text-muted); text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }

/* ---------- Resolution link: tappable finished match on the live matchday (A33) ---------- */
.resolution-link { cursor: pointer; }
.resolution-link .live-card { margin-bottom: 4px; }
.resolution-cue {
    font-size: 11px; font-weight: 700; color: var(--primary-2);
    text-align: right; margin: 0 4px 14px;
}
.resolution-link:hover .resolution-cue { text-decoration: underline; }

/* ---------- Achievement toast (A35 earning moment) ---------- */
.achv-toast {
    position: fixed; left: 50%; top: 16px; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: 388px;
    background: var(--grad-trophy); color: white;
    border-radius: var(--radius-lg); padding: 14px 16px;
    box-shadow: var(--shadow-glow-gold);
    display: flex; align-items: center; gap: 12px;
    z-index: 200; animation: achv-pop 0.3s ease-out;
}
@keyframes achv-pop {
    from { opacity: 0; transform: translate(-50%, -12px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.achv-toast-icon { width: 37px; height: 40px; flex-shrink: 0; }
.achv-toast-title { font-size: 14px; font-weight: 800; }
.achv-toast-desc { font-size: 12px; opacity: 0.95; font-weight: 500; }

/* ---------- Trophy tier tags (A35 trophy tab) ---------- */
.tier-tag {
    font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 1px 7px; border-radius: 8px; margin-left: 6px; vertical-align: middle; color: white;
}
.tier-tag.bronze { background: var(--grad-bronze); }
.tier-tag.silver { background: var(--grad-silver); }
.tier-tag.gold { background: var(--grad-trophy); }

/* ---------- Showcase badges in the member list (A35) ---------- */
.member-badges { display: flex; gap: 5px; margin-top: 4px; font-size: 15px; line-height: 1; }
.member-badges.mine { cursor: pointer; }
.member-badge { width: 18px; height: 20px; line-height: 1; }
/* A35: real achievement SVG icons (from Achievements-Showcase) — media-object row:
   full-height icon on the left, title (top) + description (below) stacked on the right. */
.ach-row { display: flex; align-items: stretch; gap: 12px; min-height: 58px; }
.ach-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.ach-row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ach-svg { width: 54px; flex-shrink: 0; align-self: stretch; object-fit: contain; }
