/* EHC Engelberg-Titlis – Team Dashboard
   Klassisch-modern (Referenz: masters.com): viel Weissraum, Serifen-Titel,
   Haarlinien, helles Gold. (Red & Gold Theme) */

:root {
    --burgund: #b31b1b;
    --burgund-light: #d32f2f;
    --navy: #1a1a1a;
    --silver: #e0e0e0;
    --berry: #8e1616;
    --gold: #f4d03f;
    --gold-dark: #d4ac0d;
    --white: #ffffff;
    --bg: #ffffff;
    --card: #ffffff;
    --hairline: #eaecee;
    --hairline-dark: #d5d8dc;
    --text: #1c2833;
    --muted: #566573;
    --track: #f2f3f4;
    --danger: #e74c3c;
    --ok: #27ae60;
    --ehc-bordarot: rgba(151,51,85,1.0);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.04), 0 14px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.06), 0 24px 48px rgba(0, 0, 0, 0.08);
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15.5px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--burgund); text-decoration: none; }
a:hover { color: var(--gold-dark); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }

.muted { color: var(--muted); font-weight: 400; }

/* Kleine Versalien-Labels – das wiederkehrende Detail des Designs. */
.kicker, .card-title, .tile-kicker, .pot-label, .picker legend,
.stats-table th, .topnav a, .bp-label, .season-label {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .14em;
}

/* ---------- Masters Header ---------- */
.masters-header { display: flex; flex-direction: column; width: 100%; background: var(--white); z-index: 50; }
.mh-top { display: flex; border-bottom: 1px solid var(--hairline-dark); }
.mh-top-left { 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 12px 16px; border-right: 1px solid var(--hairline-dark); min-width: 90px;
}
.mh-circle { 
    width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--burgund); 
    display: grid; place-items: center; font-family: var(--serif); font-size: 16px; color: var(--navy); 
    font-weight: 700; margin-bottom: 8px; 
}
.mh-badge { 
    background: var(--burgund); color: var(--white); font-size: 10px; font-weight: 700; 
    padding: 2px 8px; border-radius: 12px; margin-bottom: 4px; white-space: nowrap; 
}
.mh-sub { font-size: 10px; font-weight: 600; color: var(--navy); }

.mh-top-scroll { flex: 1; overflow-x: auto; scrollbar-width: none; display: flex; align-items: stretch; }
.mh-top-scroll::-webkit-scrollbar { display: none; }
.mh-ticker { display: flex; padding: 12px 20px; gap: 32px; align-items: flex-end; }
.mh-player { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--navy); }
.mh-avatar-wrap { position: relative; margin-bottom: 8px; }
.mh-avatar { 
    width: 56px; height: 56px; border-radius: 50%; object-fit: cover; 
    border: 1px solid var(--hairline-dark); display: grid; place-items: center; 
}
.mh-avatar-text { background: var(--card); font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); }
.mh-mobile-score { 
    position: absolute; top: -4px; right: -8px; background: var(--burgund); color: var(--white); 
    font-size: 11px; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; 
    display: grid; place-items: center; border: 2px solid var(--white); 
}
.mh-player-info { display: flex; flex-direction: column; align-items: center; }
.mh-name { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); white-space: nowrap; }

/* Mobile Hiding */
.mh-desk-rank, .mh-desk-stats, .mh-desk-icons, .mh-h-text, .mh-quick-links, .mh-admin-text { display: none; }

.mh-bottom { 
    position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; 
    padding: 10px 18px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); 
    border-bottom: none; z-index: 55;
}
.mh-hamburger { 
    background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; 
    padding: 8px; width: auto; align-items: flex-start; margin-left: -8px; 
}
.mh-h-icon { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.mh-h-icon i { display: block; width: 24px; height: 2px; background: var(--burgund); transition: 0.2s; }
.mh-spacer { flex: 1; display: flex; }
.mh-right { justify-content: flex-end; align-items: center; gap: 16px; margin-right: -8px; }

.mh-logo { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; text-decoration: none; z-index: 10; }
.mh-logo img { height: 28px; width: auto; object-fit: contain; }

.mh-admin { display: flex; align-items: center; font-size: 18px; text-decoration: none; padding: 4px; }

/* Overlay Menu */
.mh-overlay { 
    position: fixed; inset: 0; background: var(--burgund); z-index: 100; 
    transform: translateX(-100%); transition: transform 0.3s ease-in-out; 
    display: flex; flex-direction: column; color: var(--white); overflow-y: auto;
}
.mh-overlay.open { transform: translateX(0); }
.mho-desk-wrap { display: flex; flex-direction: column; min-height: 100%; }
.mho-desk-left { flex: 1; display: flex; flex-direction: column; }
.mho-desk-right { display: none; }
.mho-sub-nav { display: none; }

.mho-header { display: flex; justify-content: flex-end; padding: 16px 24px; }
.mho-close { background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; padding: 8px; }
.mho-content { padding: 0 32px 64px; max-width: 600px; margin: 0 auto; width: 100%; }
.mho-search { 
    display: flex; align-items: center; gap: 16px; background: transparent; 
    border: 2px solid rgba(255,255,255,0.15); border-radius: 40px; padding: 12px 20px; margin-bottom: 32px; 
}
.mho-search-icon { width: 22px; height: 22px; color: var(--white); }
.mho-search input[type="text"] { 
    background: transparent; border: none; color: var(--white); outline: none; font-size: 16px; width: 100%; padding: 0; box-shadow: none; -webkit-appearance: none;
}
.mho-search input[type="text"]:focus { box-shadow: none; }
.mho-search input[type="text"]::placeholder { color: rgba(255,255,255,0.7); }
.mho-meta { margin-bottom: 32px; }
.mho-badge { background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; }
.mho-meta h2 { font-family: var(--serif); font-size: 28px; margin: 8px 0 4px; }
.mho-meta p { font-size: 13px; opacity: 0.8; margin: 0; }
.mho-nav { display: flex; flex-direction: column; gap: 4px; }
.mho-nav a { 
    color: var(--white); text-decoration: none; font-family: var(--serif); 
    font-size: 24px; font-weight: 700; letter-spacing: 0.02em; transition: color 0.2s;
}
.mho-nav a:hover { color: var(--gold); }

/* ---------- Page ---------- */
.page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 18px 40px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.page-head { text-align: center; padding: 14px 0 4px; }
.page-head h1 {
    margin: 6px 0 10px;
    font-size: clamp(34px, 8vw, 52px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.08;
}
.page-head p { margin: 0 auto; max-width: 620px; color: var(--muted); font-size: 15px; }
.page-head::after {
    content: '';
    display: block;
    width: 56px;
    height: 2px;
    margin: 18px auto 0;
    background: var(--gold);
}

.flash {
    max-width: 1400px;
    margin: 14px auto 0;
    padding: 12px 18px;
    border: 1px solid var(--ok);
    border-left-width: 4px;
    background: #f2f7f4;
    color: var(--ok);
    font-weight: 600;
    font-size: 14px;
    width: calc(100% - 36px);
}
.flash-error { border-color: var(--danger); background: #faf1ef; color: var(--danger); }

/* ---------- Hero (Home) ---------- */
.hero {
    position: relative;
    padding: 40px 24px 34px;
    background: var(--card);
    border: 1px solid var(--hairline-dark);
    border-top: 4px solid var(--burgund);
    border-radius: 6px;
    box-shadow: var(--shadow);
    text-align: center;
    overflow: hidden;
}
.hero::after {
    content: 'e';
    position: absolute;
    right: -14px;
    bottom: -78px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 700;
    font-size: 250px;
    color: rgba(179, 27, 27, .03);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid var(--gold);
    color: var(--gold-dark);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 18px 0 8px;
    font-size: clamp(34px, 8.6vw, 58px);
    font-weight: 800;
    line-height: 1.04;
    color: var(--navy);
}
.hero-sub { color: var(--burgund); font-style: italic; font-weight: 600; }
.hero-tag {
    margin: 0 auto 26px;
    max-width: 480px;
    color: var(--muted);
    font-size: 15px;
}

/* Kennzahlen-Zeile im Hero – Leaderboard-Stil. */
.hero-pot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    border-top: 1px solid var(--hairline);
    padding-top: 22px;
}
.hero-stat {
    padding: 2px 22px;
    border-left: 1px solid var(--hairline);
    min-width: 110px;
}
.hero-stat:first-child { border-left: none; }
.pot-label {
    display: block;
    color: var(--gold-dark);
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 2px;
}
.pot-value {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(26px, 6vw, 36px);
    color: var(--navy);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.hero-stat .pot-value { font-size: clamp(22px, 5vw, 30px); }
.card .pot-value { color: var(--burgund); }
.pot-detail, .pot-breakdown { color: var(--muted); font-size: 13px; }
.pot-detail { margin-top: 4px; }
.pot-breakdown { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.pot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.setup-wrap { max-width: 600px; margin: 60px auto; padding: 0 20px; }
.setup-wrap .card { padding: 40px; }
.setup-wrap form { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Player Profile ---------- */
.player-header { padding: 32px 20px 24px 20px; background: var(--white); }

/* ---------- Player Statistics Tabs ---------- */
.ph-stats-header { width: 100%; margin-top: 24px; }
.ph-stats-title { font-family: var(--serif); font-size: 24px; color: var(--ehc-bordarot); margin: 0 0 12px 0; font-weight: 500; text-align: left; }

.ph-tabs-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 0;
}
.ph-tabs-container::-webkit-scrollbar { display: none; }

.ph-tabs {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--hairline-dark);
    border-radius: 999px;
    padding: 4px;
    background: var(--white);
    min-width: min-content;
}

.ph-tab {
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ehc-bordarot);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.ph-tab:hover { background: var(--ehc-bordarot); color: var(--white); }
.ph-tab.active { background: var(--ehc-bordarot); color: var(--gold); }
.back-link { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ehc-bordarot); transition: color 0.2s; }
.back-link:hover { color: var(--gold-dark); }
.ph-wrap { display: flex; flex-direction: column; gap: 20px; }
.ph-top-info { display: flex; align-items: center; gap: 20px; }
.ph-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border: none; }
.ph-avatar-placeholder { background: var(--ehc-bordarot); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 36px; font-family: var(--serif); font-weight: 700; }
.ph-title-wrap { display: flex; flex-direction: column; gap: 4px; }
.ph-name { margin: 0; font-size: 20px; color: rgba(151,51,85,1.0); }
.ph-bio { font-size: 14px; color: var(--navy); margin: 0; line-height: 1.5; }

.ph-stats-row { display: flex; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; margin-top: 16px; }
.ph-stat-col { flex: 1; padding: 8px 12px; text-align: center; border-right: 1px solid var(--hairline); display: flex; flex-direction: column; justify-content: center; background: var(--card); gap: 2px; }
.ph-stat-label { font-size: 11px; color: var(--muted); margin: 0; }
.ph-stat-val { font-size: 18px; font-family: var(--sans); font-weight: 400; color: var(--navy); margin: 0; }

.player-body { display: flex; flex-direction: column; gap: 24px; padding: 0 20px 64px; max-width: 1400px; margin: 0 auto; }
/* ---------- Player Facts ---------- */
.pf-container {
    max-width: 1000px;
    margin: 0 auto;
}
.pf-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: center;
}
.pf-highlight {
    border: 1px solid var(--gold);
    padding: 64px 24px;
    text-align: center;
    background: var(--card);
}
.pf-grid-right {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px 24px;
}
.pf-item {
    text-align: center;
}
.pf-val-md {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--ehc-bordarot);
    margin-bottom: 4px;
}
.pf-val-huge {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 500;
    color: var(--ehc-bordarot);
    margin-bottom: 8px;
}
.pf-lbl {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .pf-grid-right {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .pf-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pf-grid-right {
        grid-template-columns: 1fr 1fr;
    }
}

.career-table th { background: var(--ehc-bordarot); color: var(--white); }
.career-table tr:hover td { background: var(--gray-bg); }
.postseason-row td { background: rgba(151, 51, 85, 0.05); }
.pot-breakdown { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.pot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Tiles ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }

.tile {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px 20px 18px;
    background: var(--card);
    border: 1px solid var(--hairline-dark);
    border-top: 3px solid var(--gold);
    border-radius: 6px;
    box-shadow: var(--shadow);
    color: var(--text);
    transition: transform .18s ease, box-shadow .18s ease;
}
.tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    color: var(--text);
}
.tile-burgund { border-top-color: var(--burgund); }
.tile-berry { border-top-color: var(--berry); }
.tile-navy { border-top-color: var(--navy); }

.tile-kicker { font-size: 10.5px; font-weight: 600; color: var(--gold-dark); }
.tile-big {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 24px;
    color: var(--navy);
    line-height: 1.2;
}
.tile-sub { color: var(--muted); font-size: 13.5px; }

/* ---------- Cards ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--hairline-dark);
    border-radius: 6px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.card-title {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--burgund);
}
.card-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    margin-top: 8px;
    background: var(--gold);
}
.card-title small { letter-spacing: .04em; text-transform: none; }

/* Kategorie-Kopf (Katalog, Hall of Shame) – Serifen-Titel mit Akzentlinie. */
.ribbon {
    margin: -22px -22px 18px;
    padding: 16px 22px 13px;
    border-bottom: 1px solid var(--hairline);
    border-top: 3px solid var(--burgund);
    background: transparent;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .01em;
}

.empty { color: var(--muted); font-style: italic; font-size: 14px; }
.fineprint { color: var(--muted); font-size: 12.5px; text-align: center; letter-spacing: .02em; }

/* ---------- Catalog ---------- */
.catalog-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }

.catalog-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.catalog-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
}
.catalog-list li:last-child { border-bottom: none; padding-bottom: 2px; }

.ci-text { display: flex; flex-direction: column; gap: 1px; }
.ci-title { font-weight: 600; font-size: 14.5px; }
.ci-desc { color: var(--muted); font-size: 13px; font-style: italic; }
.ci-amount {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 17px;
    color: var(--burgund);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.catalog-gold .ribbon { border-top-color: var(--gold); }

/* ---------- Rank lists & bars ---------- */
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rank-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--hairline);
}
.rank-list li:last-child { border-bottom: none; }

.medal {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--navy);
    border: 1px solid var(--hairline-dark);
    background: var(--card);
}
.medal-gold { background: linear-gradient(135deg, #ecd9a8, var(--gold)); border-color: var(--gold-dark); }
.medal-silver { background: linear-gradient(135deg, #f3f3f3, #c9c9c9); border-color: #b3b3b3; }
.medal-bronze { background: linear-gradient(135deg, #ddb284, #b8814e); border-color: #a06f3e; color: #fff; }
.medal-none { color: var(--muted); }

.rl-body { flex: 1; min-width: 0; }
.rl-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rl-inline { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding-top: 4px; }
.rl-name { font-weight: 600; font-size: 14.5px; }
.rl-value {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 16px;
    color: var(--burgund);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.rl-value small { color: var(--muted); font-family: var(--sans); font-weight: 400; }
.rl-open { color: var(--danger); font-size: 12px; margin-top: 2px; }

.bar {
    height: 3px;
    margin-top: 8px;
    background: var(--track);
    overflow: hidden;
}
.bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--burgund));
    min-width: 3px;
}

/* ---------- Tally marks ---------- */
.tally { display: inline-flex; gap: 8px; align-items: center; color: var(--navy); }
.tally-zero { color: var(--muted); }
.tg { position: relative; display: inline-flex; gap: 3px; padding: 1px 0; }
.tg i { display: block; width: 2px; height: 15px; background: currentColor; }
.tg-full::after {
    content: '';
    position: absolute;
    left: -3px;
    right: -3px;
    top: 50%;
    height: 2px;
    background: currentColor;
    transform: rotate(-24deg);
}

/* ---------- Fine feed ---------- */
.fine-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fine-feed > li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
}
.fine-feed > li:last-child { border-bottom: none; }
.fine-feed .is-paid { opacity: .5; }

.ff-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ff-main strong { font-size: 14.5px; }
.ff-title { color: var(--text); font-size: 13.5px; }
.ff-note { color: var(--muted); font-size: 12.5px; font-style: italic; }
.ff-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.ff-amount {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 16px;
    color: var(--burgund);
    font-variant-numeric: tabular-nums;
}
.ff-date { color: var(--muted); font-size: 11.5px; letter-spacing: .04em; }
.ff-actions { flex-direction: row; align-items: center; gap: 6px; }

/* ---------- Games ---------- */
.game-list { list-style: none; margin: 0; padding: 0; }
.game-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
}
.game-list li:last-child { border-bottom: none; }
.game-date {
    color: var(--muted);
    font-size: 11.5px;
    letter-spacing: .06em;
    flex: 0 0 76px;
    text-transform: uppercase;
}
.game-opp { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; font-size: 14.5px; }
.game-opp a { color: var(--text); }
.game-opp a:hover { color: var(--burgund); }
.game-score {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 19px;
    padding: 1px 12px;
    border: 1px solid var(--hairline-dark);
    font-variant-numeric: tabular-nums;
    color: var(--navy);
}
.game-score.win { border-color: var(--ok); color: var(--ok); }
.game-score.loss { border-color: var(--danger); color: var(--danger); }
.page-actions { display: flex; gap: 12px; align-items: center; }

/* ---------- Charts Layout ---------- */
.charts-container { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.chart-card { background: var(--white); border: none; border-radius: 8px; padding: 24px; box-shadow: var(--shadow-sm); }
.chart-title { font-family: var(--sans); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 24px 0; text-align: center; }
.donut-wrapper { height: 250px; position: relative; }
.line-wrapper { height: 250px; position: relative; }
.radial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.radial-item { text-align: center; height: 100px; position: relative; }
.radial-item canvas { max-height: 100px; }
.radial-label { font-size: 11px; font-weight: 600; color: var(--text); margin-top: 8px; letter-spacing: 0.05em; }
.radial-legend { text-align: center; font-size: 11px; margin-top: 24px; color: var(--muted); }
.rl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 12px; }
.rl-dot.player { background: var(--ehc-bordarot); }
.rl-dot.field { background: #a0aab2; }


/* ---------- Matchblatt timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--hairline);
}
.timeline li:last-child { border-bottom: none; }
.tl-time {
    flex: 0 0 52px;
    font-family: var(--serif);
    font-weight: 700;
    color: var(--gold-dark);
    font-size: 15px;
    padding-top: 1px;
    font-variant-numeric: tabular-nums;
}
.tl-icon { flex: 0 0 auto; font-size: 16px; }
.tl-body { display: flex; flex-direction: column; min-width: 0; }
.tl-body strong { font-size: 14.5px; }
.tl-body small { color: var(--muted); font-size: 12.5px; }
.tl-goal .tl-body strong { color: var(--burgund); }

/* ---------- Bets ---------- */
.bet-strip { display: grid; gap: 12px; grid-template-columns: 1fr; }
.bet-chip {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--hairline-dark);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    color: var(--text);
    transition: transform .18s ease, box-shadow .18s ease;
}
.bet-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--text); border-left-color: var(--burgund); }
.bc-title { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--navy); }
.bc-pot { color: var(--gold-dark); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.bc-leader { color: var(--muted); font-size: 13px; }

.bet-card { border: none; background: transparent; box-shadow: none; padding: 0; }
.bet-card.bet-closed { opacity: 1; }
.bet-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 0 0 10px 0;
}
.bet-head .card-title {
    color: var(--navy);
    margin: 0 0 5px 0;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}
.bet-head .card-title::after { display: none; }
.bet-head .bet-question {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.4;
    margin: 0;
}
.bet-pot {
    background: var(--bg);
    padding: 10px 14px;
    border-radius: 8px;
    text-align: right;
    flex: 0 0 auto;
}
.bp-value {
    display: block;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 30px;
    color: var(--burgund);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.bp-label { color: var(--gold-dark); font-size: 9.5px; font-weight: 600; }

.bet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 14px 0 16px;
    padding: 10px 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    color: var(--muted);
    font-size: 12.5px;
}
.bet-status { color: var(--gold-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }

.race { display: flex; flex-direction: column; gap: 9px; }
.race-row { display: grid; grid-template-columns: 24px minmax(90px, 150px) 1fr 36px; gap: 10px; align-items: center; }
.race-rank { text-align: center; font-family: var(--serif); font-weight: 700; color: var(--muted); }
.race-name { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-bar { height: 4px; background: var(--track); overflow: hidden; }
.race-bar span {
    display: block; height: 100%; min-width: 3px;
    background: var(--silver);
    background: linear-gradient(90deg, #cfccc4, #a8a49a);
}
.race-bar .leadbar { background: linear-gradient(90deg, var(--gold), var(--burgund)); }
.race-value { font-family: var(--serif); font-weight: 700; font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.race-caption { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
.race-caption strong { color: var(--burgund); }

.entry-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--hairline-dark);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .02em;
}
.chip-paid { border-color: var(--gold); color: var(--gold-dark); background: #fbf8f1; }

/* ---------- Shame ---------- */
.shame-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.shame-sub {
    color: var(--muted);
    font-size: 11.5px;
    margin: -6px 0 12px;
    text-align: center;
    font-style: italic;
}
.shame-gold .ribbon { border-top-color: var(--gold); }
.shame-navy .ribbon { border-top-color: var(--navy); }
.shame-p0 .ribbon { border-top-color: var(--berry); }
.shame-p1 .ribbon { border-top-color: var(--burgund); }
.shame-p2 .ribbon { border-top-color: #2f5d50; }
.shame-p3 .ribbon { border-top-color: #4a3a6b; }

/* ---------- Stats table ---------- */
.table-wrap { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.stats-table th, .stats-table td {
    padding: 10px 10px;
    text-align: center;
    border-bottom: 1px solid var(--hairline);
}
.stats-table td { font-variant-numeric: tabular-nums; }
.stats-table th {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--gold-dark);
    border-bottom: 1px solid var(--hairline-dark);
}
.stats-table tbody tr:hover { background: #faf9f6; }
.stats-table .t-left { text-align: left; }
.stats-table td strong { font-family: var(--serif); font-size: 16px; }
.row-leader { background: #fbf8f1; }
.row-leader td:first-child { box-shadow: inset 3px 0 0 var(--gold); }

/* ---------- Forms ---------- */
.form-card form { display: flex; flex-direction: column; gap: 15px; }
.form-card form + form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hairline); }

label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
label small { color: var(--muted); font-weight: 400; }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 4px;
    border: 1px solid var(--hairline-dark);
    background: var(--card);
    color: var(--text);
    font-size: 16px; /* prevents iOS zoom */
    font-family: var(--sans);
    transition: border-color .15s ease;
}
input:focus, select:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 1px var(--gold-dark); }

input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--burgund); }

.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; }

.picker { border: 1px solid var(--hairline-dark); padding: 14px; }
.picker legend { padding: 0 8px; color: var(--gold-dark); font-size: 10.5px; font-weight: 600; }

.player-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { flex-direction: row; align-items: center; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--hairline-dark);
    background: var(--card);
    color: var(--text);
    font-size: 13.5px;
    user-select: none;
    transition: all .14s ease;
}
.pick input:checked + span {
    background: var(--burgund);
    border-color: var(--burgund);
    color: var(--white);
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .08); }
.btn-primary { background: var(--burgund); color: var(--white); }
.btn-primary:hover { background: var(--burgund-light); color: var(--white); }
.btn-ghost {
    background: transparent;
    border-color: var(--hairline-dark);
    color: var(--text);
    margin-top: 12px;
}
.btn-ghost:hover { border-color: var(--gold-dark); color: var(--gold-dark); }
.btn-mini {
    padding: 6px 9px;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: none;
    background: var(--track);
    color: var(--text);
    border: 1px solid var(--hairline-dark);
}
.btn-mini:hover { border-color: var(--gold-dark); }
.btn-danger { background: transparent; border-color: var(--hairline-dark); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: var(--white); }

.inline-edit { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; flex: 1; }
.inline-edit input[type="text"] { flex: 1; min-width: 120px; padding: 8px 10px; font-size: 14px; }
.inline-edit .num, .edit-table .num { width: 64px; }
.inline-edit select { width: auto; padding: 8px 10px; font-size: 13px; }
.inline-edit .emoji { width: 54px; text-align: center; }
.edit-table input.num { padding: 8px 6px; text-align: center; }
.t-left { text-align: left; }

.admin-feed form { margin: 0; }

/* ---------- Admin Navigation Bar ---------- */
.admin-bar {
    background: var(--ehc-bordarot, rgba(151,51,85,1.0));
    border-bottom: 2px solid var(--gold);
    margin: -26px -18px 20px;
    padding: 0;
    position: sticky;
    top: 52px;
    z-index: 40;
}
.ab-inner {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8px;
    gap: 4px;
}
.ab-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    color: var(--gold);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.15);
    margin-right: 4px;
}
.ab-brand:hover { color: var(--white); }
.ab-icon { font-size: 14px; }
.ab-title { display: none; }
.ab-links {
    display: flex;
    align-items: center;
    gap: 1px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}
.ab-links::-webkit-scrollbar { display: none; }
.ab-links a {
    padding: 10px 10px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.15s;
}
.ab-links a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.ab-links a.active { background: rgba(255,255,255,0.15); color: var(--gold); font-weight: 700; }
.ab-back {
    padding: 8px 12px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-left: 1px solid rgba(255,255,255,0.15);
    margin-left: auto;
    transition: color 0.15s;
}
.ab-back:hover { color: var(--white); }

/* ---------- Admin Page Head (Premium) ---------- */
.admin-bar + .page-head h1,
.admin-head h1 {
    color: var(--ehc-bordarot, rgba(151,51,85,1.0));
}
.admin-head {
    text-align: center;
    padding: 14px 0 4px;
}
.admin-head h1 {
    margin: 6px 0 10px;
    font-family: var(--serif);
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 600;
    line-height: 1.08;
}
.admin-head p {
    margin: 0 auto;
    max-width: 620px;
    color: var(--muted);
    font-size: 14px;
}
.admin-head::after {
    content: '';
    display: block;
    width: 56px;
    height: 2px;
    margin: 18px auto 0;
    background: var(--gold);
}

/* ---------- Admin Quick Stats ---------- */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 4px;
}
.admin-stat {
    background: var(--card);
    border: 1px solid var(--hairline-dark);
    border-top: 3px solid var(--ehc-bordarot, rgba(151,51,85,1.0));
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}
.admin-stat-value {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--ehc-bordarot, rgba(151,51,85,1.0));
    line-height: 1.1;
}
.admin-stat-value.stat-burgund { color: var(--burgund); }
.admin-stat-label {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-top: 4px;
}

/* ---------- Admin Table (Premium, like Leader Board) ---------- */
.admin-table-wrap { overflow-x: auto; background: var(--white); border-radius: 8px; box-shadow: var(--shadow); border: 1px solid var(--hairline-dark); }
.admin-table { width: 100%; border-collapse: collapse; font-family: var(--sans); }
.admin-table th {
    background: var(--ehc-bordarot, rgba(151,51,85,1.0));
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 12px;
    border-right: 1px solid rgba(255,255,255,0.15);
    text-align: left;
    white-space: nowrap;
}
.admin-table th:last-child { border-right: none; }
.admin-table th.t-center { text-align: center; }
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--hairline);
    font-size: 14px;
    vertical-align: middle;
}
.admin-table tr:nth-child(even) td { background: #fafbfa; }
.admin-table tr:hover td { background: #f2f7f4; }
.admin-table td.t-center { text-align: center; }
.admin-table td.t-right { text-align: right; }
.admin-table .at-player {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.admin-table .at-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--hairline-dark);
    flex-shrink: 0;
}
.admin-table .at-avatar-text {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ehc-bordarot, rgba(151,51,85,1.0));
    color: var(--white);
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.admin-table .at-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}
.admin-table .at-amount {
    font-family: var(--serif);
    font-weight: 700;
    color: var(--burgund);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.admin-table .inline-edit {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
}
.admin-table .inline-edit input[type="text"] { min-width: 100px; }
.admin-table .inline-edit select { width: auto; }

/* ---------- Status Badges ---------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.badge-ok { background: rgba(39,174,96,0.1); color: var(--ok); }
.badge-warn { background: rgba(231,76,60,0.1); color: var(--danger); }
.badge-muted { background: var(--track); color: var(--muted); }
.badge-gold { background: rgba(244,208,63,0.15); color: var(--gold-dark); border: 1px solid rgba(244,208,63,0.3); }

/* ---------- Admin Menu Image Grid ---------- */
.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.admin-menu-grid .card { margin: 0; }
.menu-img-wrap { margin-bottom: 16px; }
.menu-img-preview {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    border: 1px solid var(--hairline);
}

/* ---------- Admin Player/Game Edit ---------- */
.admin-edit-card { max-width: 800px; }
.admin-edit-card .form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-edit-section { margin-top: 40px; }
.admin-edit-section h3 { margin-top: 0; font-family: var(--serif); color: var(--ehc-bordarot, rgba(151,51,85,1.0)); }
.admin-textarea {
    width: 100%;
    padding: 12px;
    font-family: monospace;
    background: var(--track);
    color: var(--text);
    border: 1px solid var(--hairline-dark);
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    resize: vertical;
}
.admin-btn-row { margin-top: 24px; display: flex; gap: 12px; }
.admin-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    align-items: start;
}



/* ---------- Saison-Wahl & Archiv ---------- */
.season-bar {
    max-width: 1400px;
    margin: 14px auto -8px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.season-bar form { display: inline-flex; align-items: center; gap: 8px; }
.season-label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
}
.season-label select { width: auto; padding: 7px 12px; font-size: 13.5px; }
.season-archive {
    padding: 4px 14px;
    border: 1px solid var(--gold);
    color: var(--gold-dark);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.season-back { font-size: 13px; font-weight: 600; }

/* ---------- Drag & Drop ---------- */
.dnd-group { display: contents; }
.dnd-handle {
    flex: 0 0 auto;
    align-self: center;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    padding: 6px 8px;
    margin-right: 2px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1;
}
.dnd-handle:hover { background: var(--track); color: var(--text); }
body.dnd-active { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.dnd-hint { color: var(--muted); }
.dnd-item.dragging { opacity: .35; }
.dnd-ghost {
    position: fixed;
    z-index: 200;
    pointer-events: none;
    list-style: none;
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    background: var(--card);
    border: 1px solid var(--gold-dark);
    box-shadow: 0 12px 32px rgba(12, 17, 34, .2);
    opacity: .96;
}
.dnd-zone.dnd-over { outline: 1px dashed var(--gold-dark); outline-offset: 3px; }
.dnd-empty { padding: 14px 0; text-align: center; border: none !important; }

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(86px + env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(12px);
    z-index: 300;
    padding: 10px 22px;
    background: var(--navy);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { background: var(--danger); }

.footer {
    max-width: 1400px;
    margin: 4px auto 18px;
    padding: 18px 18px 0;
    border-top: 1px solid var(--hairline);
    color: var(--muted);
    font-size: 10.5px;
    text-align: center;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero-split { display: flex; flex-direction: column; background: var(--burgund); border-radius: 8px; overflow: hidden; color: var(--white); margin-bottom: 16px; box-shadow: var(--shadow); }
.hs-image { background: var(--burgund-light); height: 240px; position: relative; overflow: hidden; }
.hs-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; font-family: var(--serif); font-size: 42px; font-weight: 700; color: rgba(255,255,255,0.15); background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 10px, transparent 10px, transparent 20px); }
.hs-icon { font-size: 80px; font-style: normal; margin-top: 10px; }
.hs-content { padding: 32px 24px; }
.hs-date { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 12px; }
.hs-title { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.1; margin: 0 0 12px; color: var(--white); }
.hs-lead { font-size: 15px; color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.hs-news { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; }
.hn-item { display: flex; flex-direction: column; text-decoration: none; color: var(--white); }
.hn-label { font-size: 11px; text-transform: uppercase; color: var(--gold); font-weight: 600; letter-spacing: 0.05em; margin-bottom: 4px; }
.hn-val { font-family: var(--serif); font-size: 24px; margin-bottom: 6px; }
.hn-link { font-size: 12px; font-weight: 600; color: var(--gold); transition: color 0.2s; }
.hn-item:hover .hn-link { color: var(--white); }

.section-title { margin: 32px 0 16px; border-bottom: 1px solid var(--hairline-dark); padding-bottom: 8px; }
.section-title h2 { font-size: 22px; font-family: var(--serif); color: var(--navy); margin: 0; }
.player-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.pcard { background: var(--card); border: 1px solid var(--hairline-dark); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; color: var(--text); display: block; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--text); }
.pc-head { height: 120px; display: grid; place-items: center; border-bottom: 1px solid var(--hairline-dark); }
.pc-image { background-size: cover; background-position: center top; background-repeat: no-repeat; }
.pc-burgund { background: linear-gradient(135deg, var(--burgund-light), var(--burgund)); }
.pc-gold { background: linear-gradient(135deg, #fcebb6, var(--gold)); }
.pc-navy { background: linear-gradient(135deg, #444, #1a1a1a); }
.pc-huge { font-size: 54px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); }
.pc-body { padding: 16px; }
.pc-name { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 18px; }
.pc-name strong { font-family: var(--serif); font-weight: 700; color: var(--navy); }
.pc-flag { font-size: 16px; }
.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--hairline); padding-top: 12px; text-align: center; }
.pcg-col { display: flex; flex-direction: column; gap: 4px; }
.pcg-label { font-size: 10px; text-transform: uppercase; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; }
.pcg-val { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.pcg-red { color: var(--burgund); }

.dashboard-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 24px; }
.dg-col { display: flex; flex-direction: column; gap: 16px; }
.news-card { border-top: 3px solid var(--burgund); }
.nc-title { font-family: var(--serif); font-size: 20px; color: var(--navy); margin: 0 0 16px; }
.mt-card { margin-top: 16px; }

/* ---------- Leader Board ---------- */
.lb-head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px; }
.lb-title { font-family: var(--serif); font-size: 42px; color: var(--ehc-bordarot, rgba(151,51,85,1.0)); font-weight: 500; margin: 0; }
.lb-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid var(--hairline); padding-bottom: 16px; }
.lb-f-left, .lb-f-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lb-btn { background: var(--white); border: 1px solid var(--hairline-dark); border-radius: 20px; padding: 6px 16px; font-family: var(--sans); font-size: 14px; color: var(--ehc-bordarot, rgba(151,51,85,1.0)); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.lb-btn i { font-style: normal; opacity: 0.5; }
.lb-toggle { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; color: var(--navy); background: var(--white); border: 1px solid var(--hairline-dark); padding: 4px 12px; border-radius: 20px; }
.lb-switch { width: 32px; height: 18px; background: #666; border-radius: 10px; position: relative; }
.lb-knob { width: 14px; height: 14px; background: var(--white); border-radius: 50%; position: absolute; left: 2px; top: 2px; }
.lb-off { font-weight: 700; color: #666; }
.lb-icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hairline-dark); background: var(--white); color: var(--ehc-bordarot, rgba(151,51,85,1.0)); display: grid; place-items: center; cursor: pointer; font-size: 16px; }
.lb-views { display: flex; gap: 4px; background: var(--white); border: 1px solid var(--hairline-dark); border-radius: 20px; padding: 2px; }
.lb-views .lb-icon-btn { border: none; width: 32px; height: 32px; }
.lb-views .lb-icon-btn.active { background: rgba(151, 51, 85, 0.1); }

.lb-table-wrap { overflow-x: auto; background: var(--white); border-radius: 8px; box-shadow: var(--shadow-sm); margin-bottom: 32px; }
.lb-table { width: 100%; border-collapse: collapse; font-family: var(--sans); }
.lb-table th { background: var(--ehc-bordarot, rgba(151,51,85,1.0)); color: var(--white); font-size: 9px; font-weight: 700; text-transform: uppercase; padding: 8px 4px; border-right: 1px solid rgba(255,255,255,0.2); letter-spacing: -0.02em; }
.lb-table th:last-child { border-right: none; }
.lb-table td { padding: 8px 4px; border-bottom: 1px solid var(--hairline); border-right: 1px solid var(--hairline); font-size: 11px; }
.lb-table td:last-child { border-right: none; }
.lb-table tr:nth-child(even) td { background: #fbfbfb; }
.lb-pos { font-family: var(--serif); font-size: 12px; color: var(--navy); }
.lb-player { display: flex; align-items: center; gap: 0; font-family: var(--serif); font-weight: 700; font-size: 11px; color: var(--ehc-bordarot, rgba(151,51,85,1.0)); text-transform: uppercase; letter-spacing: 0.02em; }
.lb-avatar { display: none; }
.lb-avatar-text { display: none; }
.lb-score { font-weight: 700; font-size: 13px; }
.lb-red { color: var(--burgund); }
.lb-green { color: var(--ehc-bordarot, rgba(151,51,85,1.0)); font-weight: 600; }
.lb-dark { color: var(--navy); }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
    /* Desktop Overlay Split Menu */
    .mh-overlay { display: block; bottom: 0; height: auto; background: none; overflow: hidden; }
    .mho-desk-wrap { flex-direction: row; height: 100%; }
    .mho-desk-left { flex: 0 0 35%; background: var(--berry); color: var(--white); padding: 0 0 64px 0; overflow-y: auto; }
    .mho-desk-left .mho-header { display: none; }
    
    .mho-content { padding: 48px 64px; max-width: none; margin: 0; }
    .mho-search { background: transparent; border: 2px solid rgba(255,255,255,0.2); transition: border-color 0.2s; }
    .mho-search:focus-within { border-color: rgba(255,255,255,0.5); }
    .mho-search input[type="text"] { font-size: 18px; }
    .mho-search input[type="text"]::placeholder { color: rgba(255,255,255,0.6); }
    
    .mho-nav { gap: 12px; margin-top: 48px; }
    .mho-nav a { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--white); padding: 8px 0; border: none; text-align: left; }
    .mho-nav a:hover, .mho-nav a.active { color: #e2c044; background: transparent; padding-left: 0; }
    
    .mho-sub-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px dotted rgba(255,255,255,0.2); }
    .mho-sub-nav a { color: var(--white); text-decoration: none; font-size: 14px; opacity: 0.8; transition: opacity 0.2s; }
    .mho-sub-nav a:hover { opacity: 1; }
    
    .mho-desk-right { display: block; flex: 1; position: relative; background: var(--burgund); overflow: hidden; }
    .mho-desk-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--white); font-size: 28px; cursor: pointer; z-index: 20; transition: transform 0.2s; }
    .mho-desk-close:hover { transform: scale(1.1); }
    .mho-bg-fallback { position: absolute; inset: 0; background: radial-gradient(circle at center, var(--burgund-light) 0%, var(--berry) 100%); z-index: 1; }
    .mho-bg-img { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); width: 75%; height: 60%; object-fit: cover; border-radius: 8px; z-index: 2; transition: opacity 0.3s; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
    .mho-desk-caption { position: absolute; left: 12.5%; right: 12.5%; bottom: 12%; z-index: 10; color: var(--white); text-shadow: 0 2px 4px rgba(0,0,0,0.6); transform: translateY(120%); transition: transform 0.3s ease-out; }
    .mh-overlay.open .mho-desk-caption { transform: translateY(0); }
    .mho-desk-caption h3 { font-family: var(--serif); font-size: 36px; margin: 0 0 8px 0; }
    .mho-desk-caption p { font-size: 18px; margin: 0; opacity: 0.9; }
    /* Player Profile Desktop */
    .ph-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; max-width: 1400px; margin: 0 auto; }
    .ph-top-info { gap: 32px; margin-bottom: 24px; }
    .ph-avatar { width: 140px; height: 140px; }
    .ph-name { font-size: 32px; }
    .ph-bio { font-size: 16px; }
    .ph-stats-header { margin-left: 0; margin-top: 24px; grid-row: 2; grid-column: 1 / 3; }
    .ph-stats-row { margin-top: 0; grid-row: 1; grid-column: 2; }
    .player-body { flex-direction: column; align-items: stretch; max-width: 1400px; }
    .charts-container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
    .chart-full { grid-column: 1 / 3; }
    .player-header { padding: 48px 40px; }
    .back-link { margin-left: auto; max-width: 1400px; display: block; margin: 0 auto; padding: 0 20px; }
    .mh-mobile-rank, .mh-mobile-score, .mh-h-icon, .mh-admin-icon { display: none; }
    .mh-desk-rank, .mh-desk-stats, .mh-desk-icons, .mh-h-text, .mh-admin-text { display: flex; }

    /* Desktop Admin Bar */
    .ab-title { display: inline; }
    .ab-links a { padding: 10px 14px; font-size: 12px; }
    .admin-bar { margin: -30px -24px 24px; }

    /* Desktop Leader Board */
    .lb-table { min-width: 800px; }
    .lb-table th { font-size: 11px; padding: 12px; letter-spacing: normal; }
    .lb-table td { padding: 12px; font-size: 14px; }
    .lb-pos { font-size: 15px; }
    .lb-player { font-size: 16px; gap: 12px; color: var(--navy); text-transform: none; font-weight: 500; letter-spacing: normal; }
    .lb-avatar { display: grid; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--hairline-dark); place-items: center; }
    .lb-avatar-text { background: var(--ehc-bordarot, rgba(151,51,85,1.0)); color: var(--white); font-size: 14px; font-weight: 700; font-family: var(--serif); }
    .lb-score { font-size: 15px; }
    
    .mh-top-left { padding: 8px 12px; min-width: auto; }
    .mh-circle { width: 40px; height: 40px; font-size: 14px; margin-bottom: 4px; }
    .mh-ticker { height: 100%; padding: 0 20px; gap: 24px; align-items: center; }
    .mh-player { 
        flex-direction: row; gap: 16px; border-right: 1px solid var(--hairline); 
        padding-right: 24px; min-width: 260px; justify-content: flex-start;
    }
    .mh-desk-rank { font-family: var(--serif); font-size: 14px; font-weight: 700; width: 20px; }
    .mh-avatar-wrap { margin-bottom: 0; }
    .mh-player-info { align-items: flex-start; flex: 1; }
    .mh-desk-stats { gap: 6px; align-items: baseline; margin-top: 4px; }
    .mh-desk-score { color: var(--burgund); font-weight: 800; font-size: 15px; }
    .mh-desk-thru { color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; }
    .mh-desk-icons { display: flex; align-items: center; margin-left: auto; }
    .mh-jersey { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--gold-dark); background: rgba(0,0,0,0.04); padding: 2px 6px; border-radius: 4px; }
    
    .mh-bottom { padding: 20px 24px; }
    .mh-logo img { height: 42px; }
    .mh-nav-left { display: flex; align-items: center; gap: 48px; }
    .mh-hamburger { padding: 8px 0; }
    .mh-h-text { color: var(--navy); font-family: var(--serif); font-size: 20px; font-weight: 500; }
    .mh-quick-links { gap: 32px; }
    .mh-quick-links a { color: var(--navy); text-decoration: none; font-family: var(--serif); font-size: 20px; transition: color 0.2s; }
    .mh-quick-links a:hover { color: var(--burgund); }
    .mh-admin { gap: 8px; color: var(--navy); }
    .mh-admin-text { font-family: var(--serif); font-size: 20px; font-weight: 500; }

    .page { gap: 30px; }
    .tiles { grid-template-columns: repeat(3, 1fr); }
    .admin-tiles { grid-template-columns: repeat(2, 1fr); }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .shame-grid { grid-template-columns: repeat(2, 1fr); }
    .bet-strip { grid-template-columns: repeat(3, 1fr); }
    .form-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .hero { padding: 52px 40px 42px; }
    
    .hero-split { flex-direction: row; }
    .hs-image { flex: 1.1; height: auto; min-height: 420px; }
    .hs-content { flex: 0.9; padding: 56px 40px; }
    .player-cards { grid-template-columns: repeat(3, 1fr); }
    .dashboard-grid { grid-template-columns: 2fr 1fr; align-items: start; }
    .mt-card { margin-top: 24px; }
}

@media (min-width: 980px) {
    body { padding-bottom: 24px; }
    .topnav { display: flex; }
    .admin-link { margin-left: 4px; }
    .page { padding: 0 24px 56px; }
    .toast { bottom: 28px; }
}

@media (min-width: 1100px) {
    .mh-quick-links { display: flex; }
}

/* Autosave: Hide manual save buttons for inline forms */
form.inline-edit button[type="submit"] {
    display: none;
}

/* ---------- Leader Board Search ---------- */
.lb-search-wrap { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--hairline-dark); border-radius: 20px; padding: 4px 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.lb-search-wrap:focus-within { border-color: var(--ehc-bordarot, rgba(151,51,85,1.0)); box-shadow: 0 0 0 2px rgba(151, 51, 85,0.12); }
.lb-search-icon { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.lb-search { border: none; outline: none; background: transparent; font-family: var(--sans); font-size: 14px; color: var(--navy); width: 120px; }
.lb-search::placeholder { color: var(--muted); }

/* ---------- Sortable Columns ---------- */
.lb-sortable { cursor: pointer; user-select: none; position: relative; white-space: nowrap; transition: background 0.15s; }
.lb-sortable:hover { background: rgba(255,255,255,0.15); }
.lb-sortable::after { content: '⇅'; margin-left: 3px; opacity: 0.35; font-size: 0.8em; }
.lb-sortable.lb-sort-active::after { opacity: 1; }
.lb-sortable.lb-sort-active.lb-sort-asc::after { content: '↑'; }
.lb-sortable.lb-sort-active.lb-sort-desc::after { content: '↓'; }
.lb-no-match td { text-align: center !important; color: var(--muted); font-style: italic; padding: 24px !important; }

/* ---------- Menu Overlay Search Results ---------- */
.mho-search-results { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--white); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); max-height: 280px; overflow-y: auto; z-index: 100; }
.mho-search-results.active { display: block; }
.mho-search { position: relative; }
.mho-search-results a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--navy); text-decoration: none; font-family: var(--sans); font-size: 14px; border-bottom: 1px solid var(--hairline); transition: background 0.12s; }
.mho-search-results a:last-child { border-bottom: none; }
.mho-search-results a:hover { background: rgba(151, 51, 85,0.06); }
.mho-search-results .sr-icon { font-size: 16px; width: 24px; text-align: center; flex-shrink: 0; }
.mho-search-results .sr-label { flex: 1; }
.mho-search-results .sr-type { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.mho-search-results .sr-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Admin: Menu Grid ---------- */
.admin-menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding: 0 20px 64px; }
.admin-menu-grid > .card { margin: 0; }
.menu-img-wrap { margin-bottom: 16px; }
.menu-img-preview { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; display: block; }

/* ---------- Admin: Player Edit ---------- */
.admin-edit-card { max-width: 800px; }
.form-row-2col { grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-edit-section { margin-top: 40px; }
.admin-textarea { width: 100%; padding: 12px; font-family: monospace; background: rgba(0,0,0,0.2); color: var(--text); border: 1px solid var(--hairline-dark); border-radius: 4px; font-size: 13px; line-height: 1.4; }
.admin-parse-ok { color: var(--ok); font-size: 14px; margin-top: 8px; }
.admin-btn-row { margin-top: 24px; display: flex; gap: 12px; }
.back-link { display: inline-block; margin-bottom: 12px; }

/* ---------- Gamification: FIFA Packs & Trading Cards ---------- */
.trading-card {
    position: relative;
    width: 130px;
    height: 190px;
    perspective: 1000px;
    cursor: pointer;
    margin: 10px 10px 10px 0;
    display: inline-block;
}
.tc-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}
.trading-card:hover .tc-inner {
    transform: translateY(-8px) rotateX(10deg) rotateY(5deg);
}
.tc-front, .tc-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--navy);
    padding: 10px;
}
.tc-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--burgund), var(--berry));
    color: var(--white);
    border-color: var(--gold);
}
.tc-player-name {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.4);
}
.tc-stake {
    background: var(--navy);
    color: var(--white);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
}
.tc-odd {
    font-size: 11px;
    font-weight: 600;
    color: rgba(0,0,0,0.7);
    text-transform: uppercase;
}

/* Pack Opening */
.pack-container {
    display: none;
    text-align: center;
    padding: 30px;
    min-height: 280px;
    position: relative;
}
.pack-wrapper {
    position: relative;
    width: 130px;
    height: 190px;
    margin: 0 auto;
}
.pack {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--burgund), var(--navy));
    border: 2px solid var(--gold);
    border-radius: 8px;
    position: absolute;
    top: 0; left: 0;
    z-index: 2;
    box-shadow: 0 0 20px rgba(244, 208, 63, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 800;
}
.pack.shake {
    animation: packShake 0.4s ease-in-out infinite;
}
.pack.explode {
    animation: packExplode 0.4s forwards;
}
.pack-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 0; height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244,208,63,0.8) 0%, rgba(244,208,63,0) 70%);
    z-index: 1;
    pointer-events: none;
}
.pack-glow.pulse {
    animation: glowPulse 1.2s forwards;
}

.tc-reveal-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
}
.tc-reveal-card.show .tc-inner {
    animation: cardRevealAnim 1.2s cubic-bezier(0.4, 0.2, 0.2, 1) forwards;
}

@keyframes packShake {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-6deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(6deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}
@keyframes packExplode {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}
@keyframes glowPulse {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 500px; height: 500px; opacity: 0; }
}
@keyframes cardRevealAnim {
    0% { transform: scale(0.2) rotateY(180deg); opacity: 0; }
    40% { transform: scale(1.4) rotateY(90deg); opacity: 1; }
    100% { transform: scale(1) rotateY(0deg); opacity: 1; }
}

/* FUT Card Style */
.fut-card-wrap {
    width: 200px;
    height: 320px;
    perspective: 1000px;
    position: relative;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
    flex: 0 0 auto;
}

.bet-entries-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 25px;
    padding-top: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin: 0 -30px;
    padding-left: 30px;
    padding-right: 30px;
}
.bet-entries-scroll::-webkit-scrollbar {
    height: 6px;
}
.bet-entries-scroll::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}
.bet-entries-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.tc-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    flex-shrink: 0;
}
.tc-inner.flipped {
    transform: translateY(-8px) rotateX(8deg) rotateY(4deg);
}
.fut-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.fut-card.tc-gold { background-image: url('../img/fut-bg-gold.png') !important; }
.fut-card.tc-silver { background-image: url('../img/fut-bg-silver.png') !important; }
.fut-card.tc-bronze { background-image: url('../img/fut-bg-bronze.png') !important; }
.fut-card.tc-normal { background-image: url('../img/fut-bg-normal.png') !important; }

.fut-top {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}
.fut-rating-box {
    position: absolute;
    top: 50px;
    left: 0px;
    width: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}
.fut-rating {
    font-family: 'Teko', sans-serif;
    font-size: 30px;
    line-height: 0.8;
    font-weight: 600;
    color: #3b2c00;
}
.fut-pos {
    font-family: 'Teko', sans-serif;
    font-size: 20px;
    line-height: 1;
    font-weight: 500;
    color: #3b2c00;
    margin-top: 4px;
    border-bottom: 1px solid rgba(59, 44, 0, 0.3);
    padding-bottom: 2px;
    width: 35px;
    text-align: center;
}
.fut-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding-top: 4px;
}
.fut-badge {
    width: 22px;
    height: 16px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
}
.fut-badge.ehc-logo {
    height: 22px;
    margin-top: 2px;
}
.fut-image-box {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    z-index: 1;
}
.fut-image-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    overflow: hidden;
}
.fut-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    outline: none;
}
.fut-name {
    position: absolute;
    top: 153px;
    left: 10px;
    right: 10px;
    font-family: 'Teko', sans-serif;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    color: #3b2c00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}
.fut-stats-grid {
    position: absolute;
    top: 210px;
    left: 20px;
    right: 20px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 8px;
}
.fut-stats-col {
    display: flex;
    flex-direction: column;
    gap: -2px;
}
.fut-stat {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-family: 'Teko', sans-serif;
    font-size: 22px;
    line-height: 1.1;
    color: #3b2c00;
}
.fut-stat strong { font-weight: 600; }
.fut-stat span { font-weight: 400; }
.fut-stats-divider {
    background: rgba(59, 44, 0, 0.2);
    width: 1px;
    height: 90%;
    align-self: center;
}
.fut-bet-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0,0,0,0.85);
    color: #fcebb6;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--sans);
    border-radius: 8px;
}
.fut-bet-info span { font-weight: 600; text-transform: uppercase; font-size: 10px; }
.fut-bet-info strong { font-family: monospace; font-size: 13px; font-weight: 800; }

/* --- FUT MODAL DESIGN --- */
.fut-modal {
    padding: 40px 30px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: var(--navy) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    max-width: 360px !important;
    width: 90% !important;
    position: relative;
    overflow: hidden;
}
.fut-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--berry); /* Dark green top border */
}
.fut-modal-header {
    margin-bottom: 30px;
    text-align: center;
}
.fut-modal-title {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--berry);
    margin: 0;
    position: relative;
    display: inline-block;
}
.fut-modal-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 8px auto 0;
}
.fut-modal-form-group {
    text-align: left;
    margin-bottom: 20px;
}
.fut-modal-label {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    color: #8fa0ac; /* Light grayish blue */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}
.fut-modal-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    background: #ffffff;
    color: var(--navy);
    font-family: var(--sans);
    font-weight: 500;
    font-size: 14px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2306402b" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    transition: all 0.3s;
}
.fut-modal-select:focus {
    outline: none;
    border-color: var(--berry);
    box-shadow: 0 0 0 3px rgba(142, 22, 22, 0.1);
}
.fut-modal-stake-box {
    background: #ffffff;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e1e8ed;
    margin-bottom: 30px;
}
.fut-modal-stake-label {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--navy);
    font-weight: 500;
}
.fut-modal-stake-value {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}
.fut-modal-stake-value span {
    font-size: 10px;
    color: #8fa0ac;
    font-weight: 600;
    margin-left: 4px;
}
.fut-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.fut-modal-btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: var(--berry);
    color: #fff;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.fut-modal-btn-submit:hover {
    background: var(--navy);
}
.fut-modal-btn-cancel {
    width: 100%;
    background: transparent;
    border: none;
    color: #8fa0ac;
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s;
}
.fut-modal-btn-cancel:hover {
    color: var(--navy);
}

/* Walkout classes */
.walkout-hidden .fut-image,
.walkout-hidden .fut-name {
    opacity: 0;
    filter: brightness(0);
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.walkout-reveal .fut-image,
.walkout-reveal .fut-name {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1);
}
.fut-flash {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 10;
    border-radius: 10px 10px 50% 50% / 10px 10px 25px 25px;
    animation: walkoutFlash 0.5s ease-out forwards;
    pointer-events: none;
}
@keyframes walkoutFlash {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

