/* Country flags on Windows, whose emoji font has none: a flag-only font (the unicode range keeps every other character on the normal fonts). */
@font-face {
    font-family: "Twemoji Country Flags";
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
    src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.8/dist/TwemojiCountryFlags.woff2") format("woff2");
    font-display: swap;
}
/* =====================================================================
   Huấn Luyện Viên Bóng Đá — mobile-first dark theme
   Layout: <768px phone (top bar + bottom tabs + drawer)
           768–1099px tablet (icon rail, expandable)
           ≥1100px desktop (full sidebar)
   ===================================================================== */

:root {
    --bg: #09120d;
    --panel: #111e17;
    --panel-2: #172920;
    --panel-3: #1f3529;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --text: #eaf3ee;
    --muted: #8ea797;
    --accent: #3ddc84;
    --accent-2: #23b567;
    --accent-ink: #03200e;
    --gold: #ffd54f;
    --gem: #8fd8ff;
    --warn: #f5b942;
    --danger: #ef5350;
    --info: #4fc3f7;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .28);
    --sidebar: 268px;
    --rail: 78px;
    --topbar: 56px;
    --bottombar: 62px;
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
    margin: 0;
    color: var(--text);
    font-family: "Twemoji Country Flags", "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 100% -10%, rgba(61, 220, 132, .08), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(79, 195, 247, .06), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; }
@media (hover: hover) { a:hover { text-decoration: underline; } }
h1 { font-size: 1.65rem; line-height: 1.25; margin: 0 0 1rem; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .8rem; font-weight: 700; }
h3 { margin: .5rem 0 .1rem; font-size: 1.05rem; font-weight: 700; }
h1:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.neg { color: var(--danger); }
.pos-text { color: var(--accent); }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.topbar, .bottom-nav, .backdrop, .sidebar .rail-toggle { display: none; }

.sidebar {
    position: sticky; top: 0;
    height: 100vh; height: 100dvh;
    overflow-y: auto; overscroll-behavior: contain;
    background: linear-gradient(180deg, #13231a, #0e1914);
    border-right: 1px solid var(--line);
    padding: 1rem .8rem;
    display: flex; flex-direction: column; gap: .8rem;
    scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-size: 1.12rem; font-weight: 800; color: var(--text); padding: .2rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid; place-items: center; flex-shrink: 0;
    width: 2.1rem; height: 2.1rem; border-radius: 11px; font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent), #178a4a);
    box-shadow: 0 4px 14px rgba(61, 220, 132, .35);
}
.icon-btn {
    display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2);
    color: var(--text); font-size: 1.15rem; cursor: pointer;
}

.club-card {
    display: flex; gap: .7rem; align-items: center; color: var(--text);
    padding: .75rem; border-radius: var(--radius);
    background: linear-gradient(135deg, color-mix(in srgb, var(--club) 38%, transparent), rgba(255, 255, 255, .02));
    border: 1px solid var(--line);
}
.club-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--club) 60%, white 10%); }
.club-info { min-width: 0; }
.club-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-budget { font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }

.wallet-row { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.chip, .coin {
    display: inline-flex; justify-content: center; align-items: center; gap: .3rem;
    padding: .35rem .7rem; border-radius: 999px; font-weight: 700; font-size: .9rem;
    border: 1px solid var(--line); background: var(--panel-2); color: var(--text); white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.chip:hover, .coin:hover { text-decoration: none; border-color: var(--line-2); }
.chip.gems, .coin.gems { color: var(--gem); }
.chip.coins, .coin.coins { color: var(--gold); }

.league-switch { display: grid; gap: .25rem; }
.league-switch select { margin: 0; width: 100%; }

.nav { display: flex; flex-direction: column; gap: .15rem; }
.nav a {
    position: relative; display: flex; align-items: center; gap: .7rem;
    min-height: 42px; padding: .5rem .7rem; border-radius: 11px; color: var(--text); font-weight: 500;
}
.nav a:hover { background: var(--panel-2); text-decoration: none; }
.nav a.active { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); font-weight: 700; }
.nav a.active::before {
    content: ""; position: absolute; left: -.8rem; top: 22%; bottom: 22%; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav .ico, .logout .ico { width: 1.6rem; text-align: center; font-size: 1.1rem; flex-shrink: 0; }
.nav-section { margin: .9rem .7rem .25rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.user-box { margin-top: auto; display: flex; flex-direction: column; gap: .4rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.user-name { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout { display: inline-flex; align-items: center; gap: .4rem; }

.backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); }

.content { width: 100%; max-width: 1280px; min-width: 0; padding: 1.6rem 2rem 3rem; }

/* ---------- page structure ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%), var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-2 > * { min-width: 0; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .card, .grid-2 + .grid-2 { margin-top: 1rem; }
.grid-2.wide-left { grid-template-columns: 2fr 1fr; }

/* ---------- controls ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 40px; padding: .5rem .95rem; border-radius: 11px;
    border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
    cursor: pointer; font: inherit; font-weight: 600; text-align: center;
    transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.btn:active:not(:disabled) { transform: scale(.97); }
@media (hover: hover) { .btn:hover:not(:disabled) { border-color: var(--accent); } }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; font-weight: 700; box-shadow: 0 4px 14px rgba(61, 220, 132, .25); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: .3rem .7rem; font-size: .85rem; border-radius: 9px; }
.btn.lg { min-height: 50px; padding: .8rem 1.6rem; font-size: 1.05rem; border-radius: 14px; }

select, input:not([type]), input[type=text], input[type=number], input[type=email], input[type=password], input[type=datetime-local], input[type=date], input[type=tel] {
    background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2);
    border-radius: 10px; padding: .5rem .65rem; min-height: 40px; font: inherit; margin-left: .4rem;
}
select:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 220, 132, .18); }
input[type=checkbox] { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
input[type=color] { width: 2.6rem; height: 2.2rem; border: none; background: none; padding: 0; }
.form-row { display: flex; gap: .8rem 1.2rem; flex-wrap: wrap; align-items: end; margin-bottom: .6rem; }

.pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.pill {
    min-width: 2.5rem; min-height: 36px; padding: .3rem .75rem; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--panel); color: var(--text);
    cursor: pointer; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pill.current { border-color: var(--warn); }
.pill.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tab {
    background: none; border: none; color: var(--muted); padding: .7rem 1rem; min-height: 44px;
    cursor: pointer; font: inherit; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

.alert { padding: .75rem 1rem; border-radius: 12px; margin: .8rem 0; border: 1px solid; }
.alert.ok { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.alert.warn { border-color: color-mix(in srgb, var(--warn) 60%, transparent); background: color-mix(in srgb, var(--warn) 11%, transparent); }
.alert.info { border-color: color-mix(in srgb, var(--info) 55%, transparent); background: color-mix(in srgb, var(--info) 9%, transparent); }
.answer-pop { position: absolute; z-index: 1200; margin: 0; padding-right: 2.2rem; background: var(--panel-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: answer-pop .18s ease-out; }
.answer-pop.ok { background: color-mix(in srgb, var(--accent) 18%, var(--panel-2)); }
.answer-pop.warn { background: color-mix(in srgb, var(--warn) 18%, var(--panel-2)); }
.answer-pop-close { position: absolute; top: .35rem; right: .45rem; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .95rem; }
@keyframes answer-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.tag { display: inline-block; font-size: .7rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); padding: .05rem .4rem; border-radius: 6px; margin-left: .3rem; vertical-align: middle; }
.warn-tag { background: var(--warn); color: #2b1d00; }
code { background: var(--panel-2); padding: .05rem .35rem; border-radius: 5px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.25rem; padding: 0 .25rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr { transition: background .12s ease; }
@media (hover: hover) { .table tbody tr:hover { background: rgba(255, 255, 255, .03); } }
.table tr.me { background: color-mix(in srgb, var(--accent) 11%, transparent); }
.table tr.starter td:first-child { box-shadow: inset 3px 0 var(--accent); }
.table.compact td, .table.compact th { padding: .35rem .4rem; }
.table td.pos { color: var(--accent); }
.table td.wrap { white-space: normal; min-width: 10rem; }
.zone-champ td:first-child { box-shadow: inset 3px 0 var(--gold); }
.zone-down td:first-child { box-shadow: inset 3px 0 var(--danger); }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .5rem; }

.pos { display: inline-block; min-width: 2.1rem; text-align: center; border-radius: 6px; font-size: .72rem; font-weight: 800; padding: .12rem .3rem; }
.pos-GK { background: #f9a825; color: #2b1d00; }
.pos-DF { background: #42a5f5; color: #03192b; }
.pos-MF { background: #66bb6a; color: #06200f; }
.pos-FW { background: #ef5350; color: #fff; }

.form span { display: inline-block; width: 1.35rem; text-align: center; border-radius: 4px; margin-right: 2px; font-size: .72rem; font-weight: 800; }
.form-W { background: var(--accent); color: var(--accent-ink); }
.form-D { background: #78909c; color: #fff; }
.form-L { background: var(--danger); color: #fff; }

.bar { height: 7px; background: var(--panel-3); border-radius: 4px; overflow: hidden; min-width: 64px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.bar span.low { background: var(--warn); }

.status { font-size: .78rem; font-weight: 700; padding: .12rem .5rem; border-radius: 6px; background: var(--panel-2); }
.status-Won, .status-HalfWon, .status-Approved, .status-Settled { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.status-Lost, .status-HalfLost, .status-Rejected, .status-Cancelled { background: color-mix(in srgb, var(--danger) 20%, transparent); color: #ff8a80; }
.status-Pending, .status-Open, .status-Locked { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }

/* ---------- shared widgets ---------- */
.badge { display: inline-flex; vertical-align: middle; flex-shrink: 0; line-height: 0; }
.crest { display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }

.hero { text-align: center; padding: 4rem 1rem; }
.hero h1 { font-size: 2.6rem; }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto 2rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 1rem; }
.team-pick { border-top: 4px solid var(--club); display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; margin: 0; }
.team-pick .btn { margin-top: auto; width: 100%; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; width: 100%; margin: .6rem 0 .8rem; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 700; }

.share-link { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.share-link a { font-weight: 700; word-break: break-all; }

/* ---------- match ---------- */
.scoreboard { background: radial-gradient(600px 200px at 50% 0, rgba(61, 220, 132, .12), transparent 70%), var(--panel); }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: 1rem 0 .4rem; }
.versus .side { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.vs { font-size: 1.3rem; font-weight: 800; color: var(--muted); }
.big-score { font-size: 3rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; line-height: 1.1; }
.clock { font-size: .9rem; font-weight: 700; color: var(--muted); }
.clock.live { color: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.kickoff { display: grid; gap: .3rem; padding: .6rem 0; }
.big-time { font-size: 1.6rem; font-weight: 800; color: var(--gold); }

.news { list-style: none; padding: 0; margin: 0; }
.news li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.news li:last-child { border-bottom: none; }
.news-title { font-weight: 700; }

.fixtures { list-style: none; margin: 0; padding: 0; }
.fixtures li { display: grid; grid-template-columns: auto 1fr 5rem 1fr; align-items: center; gap: .8rem; padding: .6rem .35rem; border-bottom: 1px solid var(--line); }
.fixtures li:not(:has(.round)) { grid-template-columns: 1fr 5rem 1fr; }
.fixtures li.me { background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: 10px; }
.fixtures .team { min-width: 0; overflow-wrap: anywhere; }
.fixtures .home { text-align: right; }
.fixtures .score { text-align: center; font-weight: 800; font-size: 1.1rem; background: var(--panel-2); border-radius: 9px; padding: .3rem 0; color: var(--text); font-variant-numeric: tabular-nums; }
.fixtures .score.pending { color: var(--muted); font-weight: 600; font-size: .9rem; }

.timeline { list-style: none; padding: 0; margin: 0; max-height: 480px; overflow-y: auto; }
.ev { display: flex; align-items: flex-start; gap: .7rem; padding: .5rem .25rem; border-bottom: 1px solid var(--line); animation: fadein .3s; }
.ev .min { min-width: 2.3rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ev-Goal { font-weight: 700; background: color-mix(in srgb, var(--accent) 11%, transparent); border-radius: 8px; }
.ev-Substitution, .ev-TacticChange { color: var(--gem); }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } }

.stat { margin-bottom: .85rem; }
.stat-head { display: flex; justify-content: space-between; gap: .5rem; }
.stat-bar { height: 8px; background: var(--danger); border-radius: 4px; overflow: hidden; }
.stat-bar span { display: block; height: 100%; background: var(--accent); }

.scorers { margin: 0; padding-left: 1.4rem; }
.scorers li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.scorers li > * { display: inline; }
.scorers li strong { float: right; }
.scorers li.me { color: var(--accent); }

/* ---------- squad ---------- */
.counter { padding: .55rem .75rem; border-radius: 10px; margin: .6rem 0; }
.counter.ok { background: color-mix(in srgb, var(--accent) 11%, transparent); }
.counter.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); }
.ratings { display: grid; gap: .45rem; margin-top: .8rem; }
.rating { display: grid; grid-template-columns: 6rem 1fr 2.2rem; align-items: center; gap: .6rem; font-size: .9rem; }
.rating-value { text-align: right; font-weight: 800; }

.pitch {
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 50% 50%, transparent 58px, rgba(255, 255, 255, .22) 59px, rgba(255, 255, 255, .22) 61px, transparent 62px),
        linear-gradient(rgba(255, 255, 255, .22), rgba(255, 255, 255, .22)) center / 100% 2px no-repeat,
        repeating-linear-gradient(0deg, #2e7d32 0 44px, #33873a 44px 88px);
    border: 2px solid rgba(255, 255, 255, .35);
    padding: 1rem .5rem;
    display: flex; flex-direction: column; justify-content: space-between; gap: .6rem; min-height: 360px;
    box-shadow: var(--shadow);
}
.pitch-row { display: flex; justify-content: space-evenly; }
.pitch-player { display: flex; flex-direction: column; align-items: center; gap: .2rem; width: 4.5rem; }
.shirt {
    width: 2.4rem; height: 2.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.pname { font-size: .76rem; font-weight: 700; text-shadow: 0 1px 2px #000; text-align: center; overflow-wrap: anywhere; }

/* ---------- accounts ---------- */
.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 1rem;
    padding-top: calc(1rem + var(--safe-t)); padding-bottom: calc(1rem + var(--safe-b));
    background: radial-gradient(circle at 30% 20%, #1f3a2a, var(--bg) 60%); }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow); }
.auth-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.2rem; }
.auth-form { display: grid; gap: .85rem; margin-bottom: 1rem; }
.auth-form label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
.auth-form input:not([type=checkbox]) { margin: 0; min-height: 46px; }
.auth-form label.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .85rem; font-weight: 400; color: var(--muted); }
.auth-form .btn { width: 100%; }
.validation { color: var(--warn); font-size: .85rem; margin: 0; padding-left: 1.1rem; }
.validation-message { color: var(--warn); font-size: .8rem; }

/* ---------- club ---------- */
.crest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: .8rem; }
.crest-option {
    display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .85rem .4rem;
    border-radius: 14px; background: var(--panel-2); border: 2px solid transparent;
    color: var(--text); font: inherit; cursor: pointer; text-align: center;
}
.crest-option.active { border-color: var(--accent); }
.crest-option.locked .crest { filter: grayscale(.7) opacity(.6); }
.crest-row { display: flex; gap: .3rem; justify-content: center; }
.crest-grid:has(.crest-row) { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.coach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: .8rem; }
.coach { background: var(--panel-2); border-radius: 12px; padding: .85rem; display: grid; gap: .45rem; }
.coach-head { display: flex; justify-content: space-between; align-items: center; }
.coach-level { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: var(--gold); }
.coach-level .small { color: var(--text); }
.coach-level.have { opacity: .7; }
.level-row { display: flex; gap: .3rem; margin-bottom: .5rem; }
.pip { width: 2rem; height: .5rem; border-radius: 4px; background: var(--panel-3); }
.pip.on { background: linear-gradient(90deg, #f5c542, #ffe082); }

/* ---------- shop ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: .8rem; }
.shop-item { background: var(--panel-2); border-radius: 14px; padding: 1rem; display: flex; flex-direction: column; gap: .3rem; border: 1px solid var(--line); }
.shop-item p { margin: 0 0 .5rem; flex: 1; }
.shop-icon { font-size: 2rem; line-height: 1; }
.shop-icon.sm { font-size: 1.5rem; }
.shop-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.inventory { list-style: none; margin: 0; padding: 0; }
.inventory li { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); }

/* ---------- betting ---------- */
.bet-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: .8rem; }
.bet-match { background: var(--panel-2); border-radius: 14px; padding: .95rem; display: grid; gap: .5rem; border: 1px solid var(--line); }
.bet-match.closed { opacity: .65; }
.bet-meta { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; align-items: center; }
.bet-teams { font-size: 1.05rem; }
.bet-odds { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.odds-btn {
    display: grid; gap: .1rem; padding: .6rem; min-height: 64px; border-radius: 11px;
    border: 1px solid var(--line-2); background: var(--panel); color: var(--text);
    cursor: pointer; font: inherit; text-align: center;
}
.odds-btn strong { color: var(--gold); font-size: 1.15rem; }
@media (hover: hover) { .odds-btn:hover:not(:disabled) { border-color: var(--accent); } }
.odds-btn.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, var(--panel)); }
.odds-btn:disabled { cursor: not-allowed; }
.bet-slip { display: grid; gap: .5rem; padding-top: .5rem; border-top: 1px dashed var(--line-2); }
.bet-slip input { width: 100%; margin: .3rem 0 0; }
.quick { display: flex; gap: .35rem; flex-wrap: wrap; }

/* ---------- wallet & top-up ---------- */
.wallet-card { display: grid; gap: .4rem; }
.gems-card { border-top: 3px solid var(--info); }
.coins-card { border-top: 3px solid var(--gold); }
.big-number { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.exchange { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .4rem; }
.exchange input { width: 7rem; margin: 0; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: .8rem; margin-bottom: .8rem; }
.package {
    display: grid; gap: .4rem; justify-items: center; padding: 1.1rem .6rem; border-radius: 14px;
    cursor: pointer; font: inherit; color: var(--text);
    background: linear-gradient(160deg, #173449, var(--panel-2)); border: 1px solid var(--line-2);
}
@media (hover: hover) { .package:hover:not(:disabled) { border-color: var(--info); } }
.package-gems { font-size: 1.3rem; font-weight: 800; color: var(--gem); }
.package-price { font-weight: 700; }
.pay-card { border: 2px solid var(--info); }
.pay-grid { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.qr img { display: block; background: #fff; border-radius: 14px; padding: .5rem; max-width: 100%; height: auto; margin: 0 auto; }
.qr-missing { width: 260px; max-width: 100%; aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 1rem;
    border: 2px dashed var(--line-2); border-radius: 14px; color: var(--muted); }
.pay-kv { grid-template-columns: auto 1fr; }
.pay-kv dd { text-align: left; }
.pay-kv .big { font-size: 1.25rem; }
.pay-kv .code { color: var(--gold); letter-spacing: .08em; }
.waiting { display: flex; gap: .6rem; align-items: center; color: var(--gem); }
.spinner { width: 1rem; height: 1rem; border: 2px solid var(--gem); border-right-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- admin ---------- */
.admin-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: .8rem; margin-bottom: .6rem; }
.admin-form label { display: grid; gap: .3rem; font-size: .9rem; }
.admin-form input, .admin-form select { margin: 0; width: 100%; }
.admin-actions { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; white-space: normal !important; }
.odds-input { width: 5rem; margin: 0 .2rem; }
.score-input { width: 3.6rem; }
.settle { display: inline-flex; gap: .3rem; align-items: center; }
.row-warn { background: color-mix(in srgb, var(--warn) 8%, transparent); }

/* ---------- multiplayer ---------- */
.opponent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: .8rem; }
.opponent { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; margin: 0; border-left: 4px solid var(--club, var(--line)); }
.opponent.invited { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.opponent-info { display: grid; gap: .15rem; min-width: 0; }
.opponent-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waiting-room { display: grid; justify-items: center; gap: .6rem; padding: 2rem 1rem; }
.waiting-room h2 { margin: 0; }
.control-panel { border: 2px solid var(--accent); }
.mentality-switch { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.subs { display: flex; gap: .8rem; flex-wrap: wrap; align-items: end; }
.subs label { display: grid; gap: .3rem; font-size: .9rem; }
.subs select { margin: 0; max-width: 100%; }
.league-card.joined { border-left: 4px solid var(--accent); }
.league-card .page-head { margin-bottom: .4rem; }
.league-card h2 { margin: 0 0 .2rem; }

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 1099px) {
    .grid-2, .grid-2.wide-left { grid-template-columns: 1fr; }
    .hide-md { display: none !important; }
    .content { padding: 1.4rem 1.4rem 3rem; }
}

/* ---------- tablet: icon rail that expands over the page ---------- */
@media (min-width: 768px) and (max-width: 1099px) {
    .shell { grid-template-columns: var(--rail) minmax(0, 1fr); }
    .sidebar { padding: .8rem .55rem; align-items: center; }
    .sidebar-head { flex-direction: column; }
    .sidebar .rail-toggle { display: grid; }
    .sidebar .lbl, .sidebar .lbl-block, .nav-section { display: none; }
    .club-card { padding: .35rem; background: none; border-color: transparent; }
    .nav { width: 100%; }
    .nav a { justify-content: center; padding: .55rem; }
    .nav a.active::before { left: -.55rem; }
    .user-box { align-items: center; }

    .shell.menu-open .sidebar {
        position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: var(--sidebar);
        align-items: stretch; box-shadow: 0 0 40px rgba(0, 0, 0, .6);
    }
    .shell.menu-open .sidebar-head { flex-direction: row; }
    .shell.menu-open .sidebar .lbl { display: revert; }
    .shell.menu-open .wallet-row, .shell.menu-open .league-switch { display: grid; }
    .shell.menu-open .nav-section { display: block; }
    .shell.menu-open .club-card { padding: .75rem; background: linear-gradient(135deg, color-mix(in srgb, var(--club) 38%, transparent), rgba(255, 255, 255, .02)); border-color: var(--line); }
    .shell.menu-open .nav a { justify-content: flex-start; padding: .5rem .7rem; }
    .shell.menu-open .nav a.active::before { left: -.8rem; }
    .shell.menu-open .user-box { align-items: stretch; }
    .shell.menu-open .backdrop { display: block; }
}

/* ---------- phone: top bar, bottom tabs, slide-in drawer ---------- */
@media (max-width: 767px) {
    html, body { font-size: 15px; }
    .shell { grid-template-columns: minmax(0, 1fr); }

    .topbar {
        display: flex; align-items: center; gap: .6rem;
        position: sticky; top: 0; z-index: 40;
        height: calc(var(--topbar) + var(--safe-t)); padding: var(--safe-t) .7rem 0;
        background: rgba(11, 22, 16, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
    }
    .topbar-club { display: flex; align-items: center; gap: .5rem; min-width: 0; flex: 1; color: var(--text); font-weight: 800; }
    .topbar-club:hover { text-decoration: none; }
    .topbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-wallet { display: flex; gap: .35rem; }
    .topbar-wallet .chip { padding: .3rem .55rem; font-size: .82rem; }
    .topbar .brand-mark { width: 1.9rem; height: 1.9rem; }

    .sidebar {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
        width: min(86vw, 320px); height: 100dvh;
        padding-top: calc(1rem + var(--safe-t)); padding-bottom: calc(1rem + var(--safe-b));
        transform: translateX(-102%); transition: transform .25s ease;
    }
    .shell.menu-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
    .shell.menu-open .backdrop { display: block; }
    .sidebar .rail-toggle { display: grid; }

    .bottom-nav {
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        height: calc(var(--bottombar) + var(--safe-b)); padding-bottom: var(--safe-b);
        background: rgba(11, 22, 16, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--line);
    }
    .bottom-nav a, .bottom-nav button {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
        background: none; border: none; color: var(--muted); font: inherit; font-size: .68rem; font-weight: 600;
        cursor: pointer; min-width: 0;
    }
    .bottom-nav a:hover { text-decoration: none; }
    .bottom-nav .ico { font-size: 1.3rem; line-height: 1.2; transition: transform .15s ease; }
    .bottom-nav .active { color: var(--accent); }
    .bottom-nav .active .ico { transform: translateY(-2px) scale(1.08); }

    .content { padding: 1rem .8rem calc(var(--bottombar) + var(--safe-b) + 1.4rem); }
    #blazor-error-ui { bottom: calc(var(--bottombar) + var(--safe-b)); }

    h1 { font-size: 1.35rem; }
    .hero { padding: 2.5rem .5rem; }
    .hero h1 { font-size: 2rem; }
    .card { padding: .95rem; border-radius: 14px; margin-bottom: .85rem; }
    .grid-2 { gap: .85rem; }
    .grid-2 + .card, .grid-2 + .grid-2 { margin-top: .85rem; }
    .hide-sm { display: none !important; }

    /* iOS zooms into inputs below 16px */
    select, input:not([type]), input[type=text], input[type=number], input[type=email], input[type=password], input[type=datetime-local], input[type=date], input[type=tel] { font-size: 16px; min-height: 44px; }

    .page-head { gap: .6rem; }
    .page-head h1 { flex: 1 1 auto; }
    .btn { min-height: 44px; }
    .btn.sm { min-height: 38px; }
    .btn.lg { width: 100%; }
    .form-row { flex-direction: column; align-items: stretch; }
    .form-row label, .form-row select { width: 100%; }
    .form-row select, .form-row input { margin-left: 0; margin-top: .3rem; }

    /* Long rows of pills and tabs scroll sideways instead of wrapping into walls of buttons */
    .pills, .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .pills::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
    .pill { flex-shrink: 0; }

    .table th, .table td { padding: .5rem .35rem; }
    .table { font-size: .9rem; }

    .versus { gap: .5rem; }
    .versus .crest { width: 52px; height: 52px; }
    .versus .side { font-size: .9rem; }
    .big-score { font-size: 2.3rem; }

    .fixtures li { grid-template-columns: 1fr 3.8rem 1fr; gap: .45rem; font-size: .88rem; padding: .55rem .2rem; }
    .fixtures li:has(.round) { grid-template-columns: auto 1fr 3.8rem 1fr; }
    .fixtures .crest { width: 22px; height: 22px; }

    .pitch { min-height: 300px; padding: .8rem .2rem; }
    .pitch-player { width: 3.5rem; }
    .shirt { width: 2.1rem; height: 2.1rem; font-size: .85rem; }
    .pname { font-size: .68rem; }
    .rating { grid-template-columns: 5.4rem 1fr 2rem; }

    .opponent { grid-template-columns: auto 1fr; }
    .opponent .btn { grid-column: 1 / -1; }
    .pay-grid { grid-template-columns: 1fr; }
    .inventory li { grid-template-columns: auto 1fr; }
    .inventory li .actions { grid-column: 1 / -1; }
    .subs { flex-direction: column; align-items: stretch; }
    .subs select { width: 100%; }
    .exchange input { flex: 1; }
    .big-number { font-size: 1.9rem; }
    .auth-card { padding: 1.25rem; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

#blazor-error-ui {
    background: #5c1b1b; color: #fff; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
#blazor-error-ui a { color: #fff; margin-left: .5rem; }

/* =====================================================================
   World update: live matches, drag & drop lineup, player cards, admin
   ===================================================================== */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.section-head h2, .section-head h3 { margin: 0; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.warn-text { color: var(--warn); }
.danger-text { color: var(--danger); }
.pill-group { display: flex; flex-wrap: wrap; gap: .35rem; }
.pill-sep { width: 1px; background: var(--line-2); margin: 0 .2rem; }
.pill.mine { border-color: var(--gold); }
.tag.ok { border-color: var(--accent); color: var(--accent); }
.vip-tag { background: linear-gradient(90deg, #f7d774, #c99a2e); color: #2b1d00; border-color: transparent; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem 1rem; margin-bottom: .8rem; }
.form-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; color: var(--muted); }
.form-grid input, .form-grid select { margin-left: 0; width: 100%; }
textarea { width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: .55rem .7rem; font: inherit; margin: .3rem 0 .8rem; }
input[type=search] { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: .45rem .7rem; min-height: 38px; font: inherit; }
.rules { padding-left: 1.1rem; margin: 0 0 .8rem; }
.rules li { margin-bottom: .35rem; }

/* zones in tables */
.zone-c1 td:first-child, .legend .zone-c1 { box-shadow: inset 3px 0 0 var(--accent); color: var(--accent); }
.zone-c2 td:first-child, .legend .zone-c2 { box-shadow: inset 3px 0 0 var(--info); color: var(--info); }
.zone-up td:first-child, .legend .zone-up { box-shadow: inset 3px 0 0 var(--gold); color: var(--gold); }
.zone-down td:first-child, .legend .zone-down { box-shadow: inset 3px 0 0 var(--danger); color: var(--danger); }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .6rem 0 0; }
.legend span span { box-shadow: none; }
.comp-tabs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1rem; }
.cup-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.cup-groups .card { margin-bottom: 0; }
.cup-groups + p { margin-top: .8rem; }
.fixtures li.current { background: color-mix(in srgb, var(--warn) 8%, transparent); border-radius: 10px; }
.fixtures .round { white-space: nowrap; }
.fixtures .score.live { color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 60%, transparent); }
.fixtures .score.win { background: color-mix(in srgb, var(--accent) 22%, var(--panel-2)); }
.fixtures .score.loss { background: color-mix(in srgb, var(--danger) 22%, var(--panel-2)); }
.live-clock { color: var(--danger); font-weight: 700; }
.news li.mine .news-title::before { content: "● "; color: var(--accent); }

/* live banners */
.live-banner { display: block; margin: 0 .8rem .6rem; padding: .5rem .7rem; border-radius: 10px; background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--text); font-weight: 700; font-size: .88rem; }
.live-now { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem; color: var(--text); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.live-now:hover { text-decoration: none; }
.live-now .btn { margin-left: auto; }
.live-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(239, 83, 80, .6); animation: live-pulse 1.4s infinite; flex: none; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 10px rgba(239, 83, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 83, 80, 0); } }
.room-list { list-style: none; margin: 0; padding: 0; }
.room-list li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.room-list li.invited { background: color-mix(in srgb, var(--gold) 8%, transparent); border-radius: 10px; padding: .55rem; }

/* match centre */
.view-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: .8rem; }
.speed-switch { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .6rem; }
.pitch2d-wrap { padding: .5rem; }
.pitch2d { display: block; width: 100%; aspect-ratio: 109.8 / 71.2; border-radius: 12px; background: #1A6E3F; }
.control-panel .control-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: .6rem; }
.control-panel .control-row > .muted { min-width: 4.5rem; }
.sub-board { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sub-list { list-style: none; margin: 0; padding: 0; }
.sub-list li { display: flex; align-items: center; gap: .45rem; padding: .45rem .5rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer; user-select: none; }
.sub-list li:hover { background: var(--panel-2); }
.sub-list li.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.sub-list li.hurt { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.sub-list li.disabled { opacity: .55; }
.sub-list .num { width: 1.8rem; text-align: center; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.ovr { font-weight: 800; min-width: 2rem; text-align: right; font-variant-numeric: tabular-nums; }
.ev-RedCard { color: var(--danger); }
.ev-Injury { color: var(--warn); }
.ev-Commentary { color: var(--muted); }
.ev-Goal { font-weight: 700; }

/* drag & drop lineup */
.squad-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.tactic-bar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; padding: .8rem 1rem; }
.tactic-bar label { display: flex; align-items: center; gap: .3rem; font-size: .88rem; color: var(--muted); }
.pick-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem .8rem; margin-bottom: .6rem; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); font-size: .9rem; }
.pick-bar > span { flex: 1; min-width: 12rem; }
.dnd-pitch {
    position: relative; aspect-ratio: 68 / 88; width: 100%; max-width: 560px; margin: 0 auto .8rem;
    border-radius: 16px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .25);
    background: repeating-linear-gradient(180deg, #1f7a40 0 10%, #1b6f3a 10% 20%);
}
.pitch-lines { position: absolute; inset: 0; pointer-events: none; }
.pitch-lines::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid rgba(255, 255, 255, .35); }
.pitch-lines .circle { position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(255, 255, 255, .35); border-radius: 50%; }
.pitch-lines .box { position: absolute; left: 25%; width: 50%; height: 14%; border: 2px solid rgba(255, 255, 255, .35); }
.pitch-lines .box.top { top: -2px; }
.pitch-lines .box.bottom { bottom: -2px; }
.slot {
    position: absolute; transform: translate(-50%, -50%); width: 5.2rem;
    display: flex; flex-direction: column; align-items: center; gap: .1rem;
    padding: .25rem .1rem; border-radius: 12px; cursor: grab; user-select: none; -webkit-user-select: none;
    touch-action: manipulation; border: 2px solid transparent; transition: border-color .12s, background .12s;
}
.slot.empty { cursor: pointer; border: 2px dashed rgba(255, 255, 255, .45); width: 3.6rem; height: 3.6rem; justify-content: center; background: rgba(0, 0, 0, .15); }
.slot.picked, .slot.over { border-color: var(--gold); background: rgba(0, 0, 0, .25); }
.slot-plus { font-size: 1.3rem; line-height: 1; font-weight: 800; }
.slot-role { font-size: .7rem; color: rgba(255, 255, 255, .8); font-weight: 700; }
.slot-shirt { position: relative; }
.slot-ovr { position: absolute; right: -.6rem; bottom: -.1rem; min-width: 1.6rem; padding: 0 .25rem; border-radius: 8px; background: #0b1610; color: var(--accent); font-size: .72rem; font-weight: 800; text-align: center; border: 1px solid var(--accent); }
.slot-ovr.off { color: var(--warn); border-color: var(--warn); }
.slot-name { max-width: 100%; font-size: .74rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(0, 0, 0, .35); padding: 0 .35rem; border-radius: 6px; }
.slot-flags { font-size: .7rem; line-height: 1; min-height: .7rem; }
/* Age and fitness under each starter's name: small, just enough to spot a tired or ageing player. */
.slot-meta { font-size: .62rem; line-height: 1.1; color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .35); padding: 0 .3rem; border-radius: 5px; white-space: nowrap; }
.slot-meta i { font-style: normal; font-weight: 700; }
.slot-meta .fit-ok { color: #7dffb0; }
.slot-meta .fit-mid { color: #ffd54f; }
.slot-meta .fit-low { color: #ff8a80; }
.squad-lists .card { padding: .9rem; }
.drop-zone.over { border-color: var(--gold); }
.player-list { list-style: none; margin: 0; padding: 0; }
.player-row { display: flex; align-items: center; gap: .5rem; padding: .4rem .45rem; border-radius: 10px; border: 1px solid transparent; cursor: grab; user-select: none; -webkit-user-select: none; }
.player-row:hover { background: var(--panel-2); }
.player-row.picked { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.player-row.unavailable { opacity: .6; }
.player-row .grow { display: flex; flex-direction: column; line-height: 1.25; }
.pr-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn.sm { width: 1.9rem; height: 1.9rem; font-size: .95rem; }
.potential.great { color: var(--gold); font-weight: 800; }
.potential.mid { color: var(--accent); font-weight: 700; }
.actions-cell { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }

/* avatar & player card */
.avatar { display: block; flex: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.modal {
    position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(94vw, 460px); max-height: 88dvh; overflow-y: auto;
    background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); padding: 1.1rem;
}
.modal-close { position: absolute; right: .7rem; top: .7rem; z-index: 1; }
.pc-head { display: flex; align-items: center; gap: .9rem; padding: .8rem; margin: -1.1rem -1.1rem 1rem; border-radius: 20px 20px 0 0; background: linear-gradient(135deg, color-mix(in srgb, var(--club) 55%, transparent), transparent 75%); }
.pc-title { flex: 1; min-width: 0; }
.pc-name { font-size: 1.15rem; font-weight: 800; }
.pc-ovr { text-align: center; margin-right: 1.6rem; }
.pc-ovr-value { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1; }
.pc-status { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.pc-attrs { display: grid; gap: .4rem; margin-bottom: .9rem; text-align: left; }
.pc-hidden { padding: .7rem; border-radius: 12px; background: var(--panel-2); margin-bottom: .8rem; }
.pc-season { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.attr { display: grid; grid-template-columns: 6.5rem 1fr 2rem; align-items: center; gap: .5rem; font-size: .88rem; }
.attr-value { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.bar span.great { background: var(--gold); }
.bar span.mid { background: var(--warn); }

/* admin */
.qr-preview { display: block; margin: 0 auto 1rem; border-radius: 12px; background: #fff; padding: .4rem; }

@media (max-width: 1099px) {
    .squad-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .sub-board { grid-template-columns: minmax(0, 1fr); }
    .slot { width: 4.2rem; }
    .slot .avatar { width: 36px; height: 36px; }
    .slot-name { font-size: .68rem; }
    .attr { grid-template-columns: 5.5rem 1fr 1.8rem; }
    .fixtures li { grid-template-columns: 1fr 4.5rem 1fr; gap: .45rem; }
    .fixtures li .round { grid-column: 1 / -1; text-align: center; }
    .control-panel .control-row > .muted { min-width: 100%; }
}

/* game name: long, so it wraps onto two lines in the sidebar */
.brand-name { font-size: .9rem; line-height: 1.15; letter-spacing: .02em; }
.auth-brand .brand { font-size: 1.15rem; line-height: 1.2; letter-spacing: .02em; }

/* =====================================================================
   v3: brand, ticker, notices, mail, chat, team page, live tools, sponsors
   ===================================================================== */
.brand-logo { width: 2.3rem; height: 2.3rem; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.topbar .brand-logo { width: 1.9rem; height: 1.9rem; }
.brand-name { font-size: 1.05rem; line-height: 1.1; letter-spacing: .01em; }
.nav a { position: relative; }
.nav-badge { margin-left: auto; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; }
.badge-count { min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: .78rem; font-weight: 800; display: grid; place-items: center; }

/* scrolling announcements */
.ticker { display: flex; align-items: center; gap: .6rem; margin: -.4rem 0 1rem; padding: .45rem .8rem; border-radius: 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 22%, var(--panel)), var(--panel)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); overflow: hidden; }
.ticker-label { flex: none; }
.ticker-window { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-block; padding-left: 100%; font-weight: 700; animation: ticker linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.notice-modal { text-align: center; border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.notice-kicker { font-weight: 800; color: var(--gold); margin-bottom: .6rem; }
.notice-body { white-space: pre-line; margin: .6rem 0 1rem; }

/* live match: strength bar, energy, coaching tools */
.strength { margin: .8rem 0 .2rem; }
.strength-head { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .3rem; }
.strength-bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; border: 1px solid var(--line-2); }
.strength-bar span { display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); min-width: 2.2rem; transition: width .8s ease; }
.coach-tools { display: grid; gap: .2rem; margin-bottom: .6rem; }
.energy { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); margin-top: 3px; overflow: hidden; max-width: 9rem; }
.energy span { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .6s; }
.energy span.mid { background: var(--warn); }
.energy span.low { background: var(--danger); }
.sub-list .grow { display: flex; flex-direction: column; }

/* player card */
.pc-sub { margin: .9rem 0 .45rem; font-size: .95rem; }
.pc-bio { grid-template-columns: auto 1fr; margin-bottom: .4rem; }
.pc-hidden-traits { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.trait { display: flex; flex-direction: column; padding: .5rem .7rem; border-radius: 12px; background: var(--panel-2); border-left: 3px solid var(--line-2); }
.trait.good { border-left-color: var(--accent); }
.trait.bad { border-left-color: var(--danger); }

/* team page */
.team-head { align-items: center; }
.team-title { display: flex; align-items: center; gap: 1rem; }
.team-title h1 { margin: 0; }
.team-link { color: inherit; }
.team-link:hover { color: var(--accent); }
.dnd-pitch.readonly .slot { cursor: pointer; }
.compare { margin-top: .8rem; }
.form-chip { display: inline-block; padding: .25rem .6rem; border-radius: 8px; font-weight: 800; color: #fff; }
.form-chip.w { background: #2e7d32; } .form-chip.d { background: #6d6d6d; } .form-chip.l { background: #c62828; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: .6rem; }
.grid-3 > div { display: flex; flex-direction: column; padding: .6rem .8rem; border-radius: 12px; background: var(--panel-2); }
.scout-report { border-color: color-mix(in srgb, var(--info) 45%, transparent); }
tr.clickable { cursor: pointer; }

/* competitions: prizes */
.prize-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.prize-grid > div { display: flex; flex-direction: column; padding: .55rem .7rem; border-radius: 12px; background: var(--panel-2); }
.prize-grid > div.zone-c1 { box-shadow: inset 3px 0 0 var(--accent); }
.prize-grid > div.zone-c2 { box-shadow: inset 3px 0 0 var(--info); }
.prize-grid > div.zone-up { box-shadow: inset 3px 0 0 var(--gold); }
.prize-grid > div.zone-down { box-shadow: inset 3px 0 0 var(--danger); }
.small-tabs .tab { padding: .45rem .7rem; min-height: 36px; font-size: .9rem; }

/* sponsors */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; margin-bottom: .6rem; }
.sponsor { display: flex; align-items: center; gap: .8rem; padding: .8rem; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.sponsor.active { border-color: color-mix(in srgb, var(--accent) 55%, transparent); margin-bottom: .5rem; }
.sponsor-icon { font-size: 2rem; width: 3rem; text-align: center; flex: none; }

/* mail */
.mail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1rem; align-items: start; }
.mail-list ul { list-style: none; margin: 0; padding: 0; max-height: 65vh; overflow-y: auto; }
.mail-list li { padding: .6rem .7rem; border-radius: 10px; cursor: pointer; border-bottom: 1px solid var(--line); }
.mail-list li:hover { background: var(--panel-2); }
.mail-list li.active { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.mail-list li.unread .mail-subject { font-weight: 800; }
.mail-list li.unread .mail-from::before { content: "● "; color: var(--accent); }
.mail-from { font-size: .85rem; color: var(--muted); }
.table tr.muted-row td { background: color-mix(in srgb, var(--info) 7%, transparent); }
.share-win { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem .8rem; margin: .5rem 0; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.comp-sections { margin-bottom: .6rem; }
.comp-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; margin-bottom: .6rem; }
.comp-country { display: flex; gap: .45rem; align-items: center; text-align: left; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: inherit; cursor: pointer; line-height: 1.2; }
.comp-country.active { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.comp-country.mine b::after { content: " ⭐"; }
.comp-flag { font-size: 1.5rem; }
.comp-regions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .5rem; }
.comp-jump { margin-left: auto; max-width: 260px; }
@media (max-width: 600px) { .comp-jump { margin-left: 0; max-width: 100%; width: 100%; } .comp-countries { grid-template-columns: repeat(2, 1fr); } }
.comp-more > summary { cursor: pointer; font-weight: 700; padding: .2rem 0; }
.comp-more[open] > summary { margin-bottom: .5rem; }
.comp-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.scout-find { display: flex; gap: .8rem; align-items: center; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; margin-top: .5rem; background: var(--panel-2); }
.mail-tools { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .5rem; }
.mail-list li.selecting { position: relative; padding-left: 2.2rem; }
.mail-check { position: absolute; left: .7rem; top: .85rem; width: 1.1rem; height: 1.1rem; }
.mail-body { white-space: pre-line; margin: 1rem 0; line-height: 1.6; }
.form-grid-full { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; color: var(--muted); margin-bottom: .6rem; }
.form-grid-full input { margin-left: 0; }

/* chat */
.chat-layout { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.chat-rooms ul { list-style: none; margin: 0 0 .8rem; padding: 0; }
.chat-rooms li { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; border-radius: 10px; cursor: pointer; }
.chat-rooms li:hover { background: var(--panel-2); }
.chat-rooms li.active { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.room-title { font-weight: 700; }
.room-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12rem; }
.new-dm { display: flex; gap: .4rem; }
.new-dm select { margin-left: 0; flex: 1; min-width: 0; }
.chat-main { display: flex; flex-direction: column; }
.chat-title { font-weight: 800; margin-bottom: .6rem; }
.chat-messages { height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding: .3rem; }
.msg { max-width: 78%; padding: .5rem .75rem; border-radius: 14px 14px 14px 4px; background: var(--panel-2); align-self: flex-start; }
.msg.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--accent) 20%, var(--panel-2)); }
.msg-head { display: flex; align-items: center; gap: .4rem; font-size: .8rem; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-input { display: flex; gap: .5rem; margin-top: .6rem; }
.chat-input input { flex: 1; margin-left: 0; }

/* admin */
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-list li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.log-list { list-style: none; padding: 0; margin: 0; max-height: 50vh; overflow-y: auto; }
.log-list li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .3rem .8rem; margin-bottom: .8rem; }
.switch-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.promo-box .form-row input { flex: 1; min-width: 12rem; }

.mail-back { display: none; margin-bottom: .5rem; }
@media (max-width: 900px) {
    .mail-layout, .chat-layout { grid-template-columns: minmax(0, 1fr); }
    .mail-layout.reading .mail-list { display: none; }
    .mail-layout:not(.reading) .mail-read { display: none; }
    .mail-back { display: inline-flex; }
    .chat-messages { height: 50vh; }
    .grid-3 { grid-template-columns: 1fr; }
}


/* ---------- v4: positions, market search, kits, profile, admin online & economy ---------- */
.slot-spot { font-size: .62rem; font-weight: 800; color: var(--gold); margin-right: .15rem; }
.market-filter { padding: .9rem 1rem; }
.mf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem .8rem; }
.mf-grid label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; color: var(--muted); }
.mf-grid .mf-wide { grid-column: span 2; }
.mf-range { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.mf-range input { min-width: 0; }
.mf-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .7rem; }
@media (max-width: 520px) { .mf-grid .mf-wide { grid-column: auto; } }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.stat-tiles .tile { padding: .8rem 1rem; }
.tile-value { font-size: 1.45rem; font-weight: 900; line-height: 1.2; }
.ok-text { color: var(--accent); }
.total-row td { border-top: 1px solid var(--line-2); }

.eco-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.eco-item { border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: var(--radius-sm); padding: .7rem .9rem; background: var(--panel-2); }
.eco-item.eco-danger { border-left-color: var(--danger); }
.eco-item.eco-watch { border-left-color: var(--warn); }
.eco-item.eco-good { border-left-color: var(--accent); }
.eco-head { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.eco-value { font-weight: 800; font-variant-numeric: tabular-nums; }
.eco-actions { margin: .45rem 0 0; padding-left: .2rem; list-style: none; display: grid; gap: .2rem; }
input[type=range] { width: 100%; accent-color: var(--accent); }

.kit-editor { display: grid; grid-template-columns: 190px 1fr; gap: 1rem; align-items: start; }
.kit-preview { display: flex; flex-direction: column; align-items: center; gap: .6rem; background: var(--panel-2); border-radius: var(--radius); padding: 1rem; }
.kit-preview label { display: flex; align-items: center; gap: .5rem; }
.kit-grid .crest-option { gap: .25rem; }
.kit-shirt { display: block; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
@media (max-width: 640px) { .kit-editor { grid-template-columns: 1fr; } }

.key-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.key-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .55rem; max-width: 100%; }
.key-chip .kc-team { display: inline-block; width: 6px; height: 14px; border-radius: 2px; }
.key-chip .kc-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }

.pc-rename { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .8rem; }
.pc-rename .input { flex: 1 1 160px; }
.profile-form { display: grid; gap: .8rem; max-width: 520px; }
.profile-form label { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.profile-nag { margin-bottom: 1rem; }
.privacy p { margin: 0 0 .7rem; line-height: 1.55; }
a.user-name { color: inherit; text-decoration: none; }
a.user-name:hover { text-decoration: underline; }

/* ---------- v5: pastimes (missions, flash cups, challenges, fantasy, auctions, guilds, press) ---------- */
.row-line { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.row-line:last-child { border-bottom: none; }

.quest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.quest { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); }
.quest.done { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(61, 220, 132, .25) inset; }
.quest.claimed { opacity: .6; }
.quest-icon { font-size: 1.6rem; width: 2.2rem; text-align: center; }
.quest-bar { height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; margin: .35rem 0 .2rem; }
.quest-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.badge-card { display: flex; flex-direction: column; gap: .25rem; align-items: center; text-align: center; padding: .9rem .7rem; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 1px solid var(--line); filter: grayscale(.85); opacity: .7; }
.badge-card.unlocked { filter: none; opacity: 1; border-color: rgba(255, 213, 79, .5); box-shadow: 0 0 18px rgba(255, 213, 79, .12); }
.badge-icon { font-size: 2.2rem; }
.badge-card .quest-bar { width: 100%; }

.bracket { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .4rem; }
.bracket-round { display: flex; flex-direction: column; justify-content: space-around; gap: .6rem; min-width: 190px; }
.bracket-round h3 { font-size: .85rem; color: var(--muted); margin: 0; }
.bracket-match { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .45rem .6rem; font-size: .85rem; }
.bracket-match > div { display: flex; justify-content: space-between; gap: .5rem; opacity: .65; }
.bracket-match > div.win { opacity: 1; font-weight: 700; }

.challenge-card { position: relative; }
.challenge-icon { font-size: 2.4rem; float: right; }
.challenge-facts { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.challenge-facts span { background: var(--panel-2); border-radius: 99px; padding: .15rem .6rem; }

.fantasy-pool { max-height: 520px; overflow-y: auto; }
.bid-input { width: 90px !important; margin-left: 0 !important; }

.guild-tag { display: inline-block; font-size: .7rem; font-weight: 900; letter-spacing: .06em; color: #fff; padding: .1rem .4rem; border-radius: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5); vertical-align: middle; }
.guild-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 4px solid var(--guild); }

.press-card { border-left: 4px solid var(--gold); }
.press-q { font-size: 1.05rem; font-style: italic; margin: .3rem 0 .8rem; }
.press-answers { display: grid; gap: .5rem; }
.press-answers .btn { justify-content: flex-start; text-align: left; white-space: normal; height: auto; padding: .6rem .8rem; }

.fun-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.fun-grid a { display: block; padding: .6rem .7rem; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 600; }
.fun-grid a:hover { border-color: var(--accent); }

.rank-ladder { display: grid; gap: .4rem; }
.rank-tiers { display: flex; flex-wrap: wrap; gap: .4rem; }
.rank-tier { background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: .2rem .7rem; font-size: .85rem; }
.rank-tier small { color: var(--muted); }
.rank-tier.current { border-color: var(--gold); background: rgba(255, 213, 79, .12); font-weight: 700; }
.kit-row { display: flex; gap: .4rem; margin: .4rem 0; }
.kit-row.wrap { flex-wrap: wrap; gap: .5rem; }
.kit-pick { display: flex; flex-direction: column; align-items: center; gap: .15rem; width: 92px; padding: .35rem; border: 1px solid var(--line-2); border-radius: 10px; text-align: center; cursor: pointer; position: relative; }
.kit-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kit-pick.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.event-reward .row-line { display: flex; gap: .75rem; align-items: center; }

/* ---------- v6: tactics centre, assistant coach, live outlook ---------- */
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.style-card { display: flex; flex-direction: column; gap: .3rem; text-align: left; padding: .8rem; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); cursor: pointer; font: inherit; }
.style-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.dial { display: grid; gap: .2rem; margin-bottom: .6rem; font-size: .9rem; }
.dial-row { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; gap: .4rem; }
.dial-row small { color: var(--muted); text-align: center; }
.effect-list { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .3rem; }
.effect-list li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: .2rem; }
.tradeoffs { padding-left: 1.1rem; display: grid; gap: .2rem; }

.assistant-card { border: 1px solid rgba(255, 213, 79, .45); background: rgba(255, 213, 79, .07); border-radius: var(--radius-sm); padding: .7rem .9rem; margin-bottom: .8rem; }
.assistant-head { display: flex; align-items: center; gap: .4rem; }
.assistant-title { font-weight: 700; margin: .35rem 0; }
.assistant-card ul { margin: .2rem 0 .5rem; padding-left: 1.2rem; }
.outlook { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .8rem; }
.outlook > div { display: flex; flex-direction: column; background: var(--panel-2); border-radius: var(--radius-sm); padding: .5rem .6rem; }
.outlook strong { font-size: 1.2rem; }
@media (max-width: 600px) { .outlook { grid-template-columns: 1fr; } }

/* ---------- v7: four-layer attributes, secret potential ---------- */
.pc-potential { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: .6rem 0; padding: .5rem .7rem; border-radius: var(--radius-sm); background: rgba(255, 213, 79, .08); }
.pc-pot b { color: var(--gold); letter-spacing: .02em; }
.pc-layers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .4rem 1rem; }

/* ---------- v8: live auctions, offers ---------- */
.live-auction.running { border-color: rgba(239, 83, 80, .6); box-shadow: 0 0 24px rgba(239, 83, 80, .15); }
.la-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.la-head h2 { margin: .1rem 0; }
.la-clock { font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.la-clock.hot { color: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.la-price { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin: .8rem 0; }
.la-price strong { font-size: 2rem; color: var(--gold); }
.la-feed { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .25rem; }
.la-feed li { display: grid; grid-template-columns: 1fr auto 70px; gap: .6rem; padding: .3rem .5rem; border-radius: 8px; background: var(--panel-2); }
.la-feed li.mine { outline: 1px solid var(--accent); }
.offer-form { margin-top: .8rem; padding: .7rem; border-radius: var(--radius-sm); background: var(--panel-2); }
.offer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.offer { padding: .6rem .7rem; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); }
.pc-clauses { margin: .2rem 0 .6rem; padding-left: 1.1rem; }

/* ---------- v9: academy ---------- */
.academy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.academy-card { display: flex; flex-direction: column; gap: .35rem; padding: .8rem; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); }
.level-dots { display: flex; gap: .3rem; }
.level-dots span { width: 18px; height: 8px; border-radius: 4px; background: var(--panel-3); }
.level-dots span.on { background: var(--accent); }

/* ---- v10: dressing room, staff, hall of fame, career story, data hub ---- */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.chips .chip { cursor: pointer; font: inherit; font-size: .85rem; }
.chips .chip.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
tr.highlight td { background: color-mix(in srgb, var(--gold) 8%, transparent); }
.hof { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.hof-card { margin: 0; }
.hof-card summary { cursor: pointer; }
.pc-story { margin: .6rem 0; }
.pc-story summary { cursor: pointer; font-weight: 600; }
.shot-map { width: 100%; max-width: 520px; background: #1f6b35; border-radius: var(--radius-sm); }
.zone-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.zone-bars div { padding: .5rem; border-radius: var(--radius-sm); background: var(--panel-2); text-align: center; }
.insight { padding: .5rem .7rem; border-left: 3px solid var(--gold); background: var(--panel-2); border-radius: var(--radius-sm); margin-bottom: .4rem; }
.facility-row { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.facility-row:last-child { border-bottom: 0; }
.level-row.inline { display: inline-flex; vertical-align: middle; margin-left: .3rem; }
.sponsor-talk { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.sponsor-talk select { font-size: .8rem; margin: 0; }
.quest-bar.big { height: 12px; margin: .5rem 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.topup-paused { text-align: center; padding: 2rem 1.2rem; }
.topup-paused .paused-icon { font-size: 3rem; }
.topup-paused p { max-width: 560px; margin: .6rem auto 1rem; }
.paused-box { border-color: var(--gold); }
label.check { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.buy-pair { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }

/* ---- v11: public landing, sign-up ---- */
.landing { min-height: 100vh; background: radial-gradient(ellipse at 70% 0%, #1d5c36 0%, #0c2718 45%, #07130c 100%); color: #fff; padding: 0 16px 40px; }
.landing-top { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.landing-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 900; letter-spacing: .04em; text-decoration: none; }
.landing-hero { max-width: 1100px; margin: 10px auto 0; display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; }
.landing-kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #03200e; background: #3ddc84; border-radius: 999px; padding: .35em .9em; }
.landing-copy h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.02; margin: .6rem 0 .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.landing-copy h1 span { background: linear-gradient(180deg, #fff6c4, #ffd54f 45%, #d49a14); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-sub { font-size: 1.1rem; color: #d6eadd; max-width: 520px; }
.landing .landing-cta { display: inline-block; font-size: 1.25rem; font-weight: 900; padding: .9em 1.6em; border-radius: 999px; margin: 1.1rem 0 .6rem;
  background: linear-gradient(180deg, #ffe680, #ffc928); color: #03200e; box-shadow: 0 10px 30px rgba(255, 201, 40, .35); text-decoration: none; }
.landing-free { font-size: .98rem; color: #e6f5ea; margin-bottom: .4rem; }
.landing-proof { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .9rem; color: #cfe8d6; margin-bottom: .4rem; }
/* Pulses with transform/opacity only (composited, no repaint). */
.dot-live { position: relative; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; vertical-align: middle; }
.dot-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(61,220,132,.7); animation: dotpulse 1.6s infinite; }
@keyframes dotpulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(3); opacity: 0; } }
.landing-visual { position: relative; }
.landing-pitch { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.landing-pitch .pl { animation: drift 6s ease-in-out infinite alternate; animation-delay: var(--delay); }
.landing-pitch .pl circle { stroke: #fff; stroke-width: 2; }
.landing-pitch .pl.h circle { fill: #c62828; } .landing-pitch .pl.a circle { fill: #1565c0; }
.landing-pitch .pl text { fill: #fff; font-size: 10px; font-weight: 800; text-anchor: middle; font-family: 'Be Vietnam Pro', sans-serif; }
@keyframes drift { 0% { transform: translate(0, 0); } 50% { transform: translate(var(--dx), 6px); } 100% { transform: translate(calc(var(--dx) * .4), -8px); } }
.landing-pitch .ball { fill: #fff; stroke: #111; stroke-width: 1.5; animation: ballrun 7s linear infinite; will-change: transform; }
@keyframes ballrun { 0% { transform: translate(300px, 190px); } 10.82% { transform: translate(190px, 120px); } 19.64% { transform: translate(270px, 190px); } 28.02% { transform: translate(255px, 290px); } 41.12% { transform: translate(410px, 260px); } 56.22% { transform: translate(345px, 90px); } 72.55% { transform: translate(520px, 180px); } 77.19% { transform: translate(575px, 190px); } 100.0% { transform: translate(300px, 190px); } }
.landing-pitch .goal-flash { opacity: 0; animation: goal 7s linear infinite; }
.landing-pitch .goal-flash rect { fill: rgba(7,19,12,.85); stroke: #ffd54f; stroke-width: 2; }
.landing-pitch .goal-flash text { fill: #ffd54f; font-size: 30px; font-weight: 900; text-anchor: middle; font-family: 'Be Vietnam Pro', sans-serif; }
@keyframes goal { 0%, 83% { opacity: 0; } 86%, 96% { opacity: 1; } 100% { opacity: 0; } }
.landing-coach { position: absolute; right: -30px; bottom: -30px; width: auto; height: 105%; max-height: 420px; pointer-events: none; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.landing-reasons { max-width: 1100px; margin: 50px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reason { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 20px; }
.reason .r-ico { font-size: 2rem; }
.reason h3 { margin: .4rem 0; }
.reason p { color: #cfe3d6; margin: 0; }
.landing-bottom { max-width: 1100px; margin: 30px auto 0; text-align: center; }
.landing a:not(.btn) { color: #ffd54f; }
@media (max-width: 800px) {
  .landing-hero { grid-template-columns: 1fr; }
  .landing-visual { order: 1; }          /* the call to action first: ad visitors on phones see it without scrolling */
  .landing-coach { height: 70%; right: -6px; bottom: -14px; }
  .landing-reasons { grid-template-columns: 1fr; }
  .landing .landing-cta { display: block; text-align: center; }
}
.password-field { display: flex; gap: .4rem; align-items: center; }
.password-field input { flex: 1; }
.external-logins { display: grid; gap: .5rem; margin: .6rem 0; }
.external-logins form { margin: 0; }
.btn.external { width: 100%; justify-content: center; font-weight: 800; padding: .7em 1em; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.btn.external.facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.ext-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 900; margin-right: .4rem; background: #4285f4; color: #fff; font-size: .8rem; }
.btn.external.facebook .ext-icon { background: #fff; color: #1877f2; }
.or-line { display: flex; align-items: center; gap: .6rem; color: var(--muted, #8aa); font-size: .85rem; margin: .4rem 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.15); }
.invite-link { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.invite-link input { flex: 1; min-width: 220px; }
.password-field .btn { flex: none; width: auto; margin: 0; white-space: nowrap; }

/* ---- v12: newspaper & social feed ---- */
.masthead { text-align: center; border-bottom: 3px double var(--line-2, rgba(255,255,255,.25)); padding: .4rem 0 .8rem; margin-bottom: 1rem; }
.masthead-title { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 900; letter-spacing: .08em; font-family: Georgia, 'Times New Roman', serif; }
.masthead-sub { color: var(--muted); font-size: .9rem; }
.paper { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; align-items: start; }
.paper-main { min-width: 0; }
.lead-story { padding: 1.2rem; border-radius: 16px; background: linear-gradient(135deg, rgba(255,213,79,.12), rgba(61,220,132,.06)); border: 1px solid rgba(255,213,79,.35); margin-bottom: 1rem; }
.lead-story h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.5rem, 3.6vw, 2.2rem); line-height: 1.2; margin: .3rem 0 .5rem; }
.kind { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold, #ffd54f); }
.stories { columns: 2 300px; column-gap: 1rem; }
.story { break-inside: avoid; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.story h3 { font-family: Georgia, 'Times New Roman', serif; margin: .2rem 0 .3rem; font-size: 1.05rem; line-height: 1.3; }
.story.imp-4 h3, .story.imp-5 h3 { font-size: 1.25rem; }
.story p { margin: 0 0 .3rem; color: var(--muted); font-size: .9rem; }
.story.mine, .lead-story.mine { box-shadow: inset 3px 0 0 var(--accent, #3ddc84); padding-left: .7rem; }
.paper-side { position: sticky; top: 1rem; }
.social-feed { display: grid; gap: .6rem; }
.post { display: flex; gap: .6rem; padding: .6rem; border-radius: 12px; background: var(--panel-2, rgba(255,255,255,.04)); }
.post.mine { border: 1px solid rgba(61,220,132,.35); }
.post-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 1.1rem; }
.post-body { min-width: 0; }
.post-text { margin: .15rem 0; overflow-wrap: anywhere; }
.home-lead { padding: .6rem .8rem; border-radius: 12px; background: rgba(255,213,79,.1); border: 1px solid rgba(255,213,79,.3); margin-bottom: .5rem; }
.home-paper h3 { margin: .8rem 0 .4rem; }
.landing-news { max-width: 1100px; margin: 36px auto 0; padding: 16px 20px; border-radius: 18px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,213,79,.3); }
.landing-news-title { font-weight: 900; color: #ffd54f; margin-bottom: .5rem; }
.landing-news-item { padding: .35rem 0; border-top: 1px solid rgba(255,255,255,.08); color: #e6f5ea; }
@media (max-width: 800px) { .paper { grid-template-columns: 1fr; } .paper-side { position: static; } }
.press-answer { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; text-align: left; }
.press-hints { font-size: .78rem; opacity: .85; }

/* ---- v13: hall of fame, trophy room, manager profile ---- */
.stars { color: #ffd54f; letter-spacing: .05em; white-space: nowrap; }
.row-item { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.trophy-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.trophy-head h1 { margin: 0; }
.motto { font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: #ffd54f; font-size: 1.1rem; }
.trophy-room { perspective: 900px; padding: 1.2rem 1rem 1.6rem; margin-bottom: 1rem; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,213,79,.18), transparent 60%), linear-gradient(180deg, #2b1d10, #140d07); border: 1px solid rgba(255,213,79,.25); }
.shelf { margin-bottom: 1.4rem; transform: rotateX(8deg); transform-origin: bottom; }
.shelf-title { color: #ffe9a8; font-weight: 800; margin-bottom: .4rem; }
.shelf-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; min-height: 80px; padding: 0 .4rem; }
.shelf-board { height: 12px; margin-top: -2px; border-radius: 3px; background: linear-gradient(180deg, #8a5a2b, #4a2e14); box-shadow: 0 10px 18px rgba(0,0,0,.6); }
.cup { display: flex; flex-direction: column; align-items: center; transition: transform .2s; }
.cup:hover { transform: translateY(-6px) scale(1.06); }
.cup-body { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 6px 8px rgba(0,0,0,.6)); }
.cup.big .cup-body { font-size: 3.4rem; }
.cup.silver .cup-body { filter: grayscale(1) brightness(1.5) drop-shadow(0 6px 8px rgba(0,0,0,.6)); }
.cup.bronze .cup-body { filter: sepia(1) saturate(2) hue-rotate(-20deg) drop-shadow(0 6px 8px rgba(0,0,0,.6)); }
.cup-plate { font-size: .65rem; font-weight: 800; color: #2b1d10; background: linear-gradient(180deg, #f3d27a, #b8862b); border-radius: 3px; padding: 1px 6px; margin-top: 2px; }
.manager-top { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.manager-top h1 { margin: 0; }
.manager-avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; background: rgba(255,255,255,.08); border: 2px solid #ffd54f; }
.manager-level { font-size: 1.05rem; }
.center { text-align: center; }

/* ---- v14: momentum, presets, opponent analysis ---- */
.momentum { margin: .6rem 0; }
.insights { margin: .5rem 0; padding: .4rem .6rem; border: 1px solid var(--line-2); border-radius: 10px; }
.insights summary { cursor: pointer; font-weight: 600; }
.insights ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.insights li { margin: .15rem 0; }
.momentum-text { font-weight: 800; margin-bottom: .3rem; }
.momentum-bar { position: relative; height: 12px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.momentum-bar .mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.5); }
.momentum-bar .us { position: absolute; left: 50%; top: 0; bottom: 0; background: linear-gradient(90deg, #3ddc84, #ffd54f); transition: width .6s; }
.momentum-bar .them { position: absolute; right: 50%; top: 0; bottom: 0; background: linear-gradient(270deg, #ff8a80, #c62828); transition: width .6s; }
.zone-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.zone-map div { border-radius: 10px; padding: .6rem; text-align: center; background: rgba(255,255,255,.05); }
.zone-map div.hot { background: rgba(255,138,128,.2); border: 1px solid rgba(255,138,128,.5); }
.zone-map div.weak { background: rgba(61,220,132,.15); border: 1px solid rgba(61,220,132,.45); }
.idea { display: flex; gap: .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.idea:last-child { border-bottom: 0; }
.idea .grow { flex: 1; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.preset { padding: .7rem; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }

/* ---- v15: player mind ---- */
.mind-panel { margin: .6rem 0; }
.mind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .4rem; margin-bottom: .4rem; }
.mind-grid div { display: flex; flex-direction: column; background: rgba(255,255,255,.04); border-radius: 8px; padding: .35rem .5rem; }

/* v16 — highlights page */
.highlights { max-width: 760px; margin: 0 auto; padding: 16px; display: grid; gap: 14px; }
.hl-score { text-align: center; }
.hl-banner { font-weight: 800; font-size: 1.05rem; padding: .35rem .7rem; margin-bottom: .5rem; border-radius: 10px; background: rgba(255,255,255,.06); text-align: center; }
.hl-banner.live-stage { margin: 0 0 .5rem; }
.hl-final .hl-banner, .hl-banner.hl-final { background: linear-gradient(90deg, rgba(212,175,55,.25), rgba(212,175,55,.08)); border: 1px solid rgba(212,175,55,.5); }
.hl-derby .hl-banner, .hl-banner.hl-derby { background: linear-gradient(90deg, rgba(229,57,53,.25), rgba(229,57,53,.08)); border: 1px solid rgba(229,57,53,.45); }
.hl-knockout .hl-banner, .hl-banner.hl-knockout { border: 1px solid var(--line-2); }
.hl-reel em { display: block; }
.hl-teams { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-weight: 600; margin: 8px 0; }
.hl-teams strong { font-size: 2.2rem; }
.hl-reel { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hl-reel li { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2, rgba(255,255,255,.05)); }
.hl-reel li.home { border-left: 4px solid #22c55e; }
.hl-reel li.away { border-left: 4px solid #3b82f6; }
.hl-min { font-weight: 700; min-width: 2.6em; }
.hl-share { justify-content: center; flex-wrap: wrap; }

/* v17 — hub tabs: pages of the same menu group */
.hub-tabs { display: flex; gap: .35rem; overflow-x: auto; margin: 0 0 1rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); scrollbar-width: thin; }
.hub-tabs a { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; padding: .4rem .8rem; border-radius: 999px; color: var(--muted); background: var(--panel-2); font-size: .9rem; }
.hub-tabs a:hover { text-decoration: none; color: var(--text); }
.hub-tabs a.active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-weight: 700; }
.hub-tabs .nav-badge { position: static; margin-left: .2rem; }

/* v18 — phones: wide tables become cards, page tabs become a grid of big buttons */
@media (max-width: 699px) {
    main select, main input, main textarea { max-width: 100%; }
    main .form-grid, main .form-grid label { min-width: 0; }
    main .form-grid { grid-template-columns: 1fr; }
    main svg { max-width: 100%; height: auto; }
    main img { max-width: 100%; }

    table.table.stacked, table.table.stacked tbody { display: block; width: 100%; }
    table.table.stacked thead { display: none; }
    table.table.stacked tr { display: block; margin: 0 0 .6rem; padding: .45rem .7rem; border: 1px solid var(--line, rgba(255,255,255,.1)); border-radius: 12px; background: var(--panel-2); }
    table.table.stacked tr.highlight { border-color: var(--accent); }
    table.table.stacked td { display: block; padding: .35rem 0; border: 0; text-align: right; min-height: 0; white-space: normal; overflow-wrap: anywhere; }
    table.table.stacked td::after { content: ""; display: block; clear: both; }
    table.table.stacked td + td { border-top: 1px dashed var(--line, rgba(255,255,255,.08)); }
    table.table.stacked td::before { content: attr(data-label); float: left; color: var(--muted); font-size: .78rem; text-align: left; max-width: 45%; margin-right: .8rem; padding-top: .1rem; }
    table.table.stacked td[data-label=""]::before { content: none; }
    table.table.stacked td:first-child { font-weight: 600; }
    table.table.stacked td.nowrap, table.table.stacked td.admin-actions { white-space: normal; }
    table.table.stacked td .btn { margin: .15rem 0 .15rem .3rem; }

    .hub-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; overflow: visible; border-bottom: 0; padding-bottom: 0; }
    .hub-tabs a { flex-direction: column; justify-content: center; gap: .15rem; min-height: 56px; padding: .4rem .3rem; border-radius: 12px; font-size: .78rem;
                  white-space: normal; text-align: center; line-height: 1.15; border: 1px solid var(--line, rgba(255,255,255,.08)); }
    .hub-tabs a > span:first-child { font-size: 1.25rem; }
    .hub-tabs a.active { border-color: var(--accent); }
    .hub-tabs .nav-badge { position: absolute; margin: 0; transform: translate(1.4rem, -1.3rem); }
    .hub-tabs a { position: relative; }
}

/* ---- v19: tactics room, stories ---- */
.rest-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: .6rem 0 .3rem; }
.rest-bar span { height: 14px; border-radius: 4px; }
.rest-bar .back { background: #1e88e5; }
.rest-bar .front { background: #e53935; }
.story h2 { margin: .2rem 0 .4rem; }
.desk { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 12px; }
.desk .card { margin: 0; }
.desk-tasks, .desk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.desk-tasks a { display: block; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); }
.fit-panel { display: grid; gap: 6px; padding: 6px 0; }
.fit-row { display: grid; grid-template-columns: 170px 1fr 36px; gap: 8px; align-items: center; }
.fit-row .fit-why { grid-column: 1 / -1; margin-top: -4px; }
@media (max-width: 700px) { .fit-row { grid-template-columns: 1fr 36px; } .fit-row .quest-bar { grid-column: 1 / -1; grid-row: 2; } }
.deadline-head.hot { border-color: #e53935; box-shadow: 0 0 0 1px rgba(229,57,53,.5) inset; }
.deadline-clock { font-size: 1.15rem; }
.ticker-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 520px; overflow-y: auto; }
.ticker-list li { padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.04); }
.ticker-list .tick-distress { border-left: 3px solid #e53935; }
.ticker-list .tick-chain { border-left: 3px solid #ffb300; }
.ticker-list .tick-need { border-left: 3px solid #1e88e5; }
.identity-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }

/* ---- v20: cups ---- */
.draw-ceremony summary { cursor: pointer; }
.draw-pots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 8px; }
.draw-pot h4 { margin: 0 0 6px; }
.draw-ball { padding: 6px 8px; margin-bottom: 6px; border-radius: 10px; background: rgba(255,255,255,.05); opacity: 0; animation: draw-in .5s ease forwards; }
.draw-ball.me { outline: 2px solid var(--accent); }
@keyframes draw-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .draw-ball { animation: none; opacity: 1; } }
.zone-playoff { box-shadow: inset 3px 0 0 #ffb300; }

/* ---------- Cúp Thế Giới TIS ---------- */
.wc-hero { background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(11,29,74,.25)); border-color: rgba(212,175,55,.45); }
.wc-title { display: flex; gap: .9rem; align-items: center; }
.wc-trophy { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 2px 6px rgba(212,175,55,.5)); }
.wc-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; margin-top: .6rem; }
.wc-group { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .6rem; }
.wc-group h3 { margin: 0 0 .3rem; font-size: .95rem; }
.wc-hidden { visibility: hidden; }
.wc-bracket { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.wc-round h3 { font-size: .95rem; margin: 0 0 .4rem; }
.wc-fixture { padding: .15rem 0; border-bottom: 1px dashed var(--line); }
.wc-predict { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.wc-away { text-align: right; }
.wc-match { border-color: rgba(212,175,55,.45); }


/* ---------- Language picker ---------- */
.lang-picker select { width: 100%; }
.lang-picker details { position: relative; }
.lang-picker summary { cursor: pointer; list-style: none; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; white-space: nowrap; }
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 50; display: grid; min-width: 180px; padding: .3rem;
    background: var(--panel, #13241a); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.lang-menu a { padding: .35rem .6rem; border-radius: 6px; color: inherit; text-decoration: none; }
.lang-menu a:hover, .lang-menu a.on { background: rgba(255,255,255,.08); }
.landing-top-actions { display: flex; align-items: center; gap: .5rem; }
.auth-lang { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.sidebar .lang-picker { padding: 0 .75rem .5rem; }

/* ---------- Squad registration ---------- */
.reg-summary { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0 0 .8rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }

/* Quick help: a short guide for the page, folded by default. */
.quick-help { margin: 0 0 12px; padding: 6px 12px; border: 1px dashed var(--border, rgba(255,255,255,.18)); border-radius: 10px; font-size: .9rem; }
.quick-help summary { cursor: pointer; font-weight: 600; opacity: .85; }
.quick-help p { margin: 6px 0; line-height: 1.5; }
.quick-help a { font-size: .85rem; }

/* Retention & support (round 1) */
.welcome-back { border-left: 4px solid var(--accent); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
ul.plain { list-style: none; padding-left: 0; margin: .4rem 0; }
ul.plain li { margin: .25rem 0; }
.journey-cta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; text-decoration: none; }
.pre-line { white-space: pre-line; }
.admin-reply { border-left: 3px solid var(--accent); }
.ticket { margin: .5rem 0; }
.ticket textarea, .card textarea { width: 100%; }
.qr-box { background: #fff; display: inline-block; padding: .5rem; border-radius: 8px; }
.qr-box svg { width: 200px; height: 200px; display: block; }

/* Matchday (round 2) */
.small-bar { display: inline-block; width: 70px; height: 6px; vertical-align: middle; }
.draw-stage h2 { margin-bottom: .3rem; }
.draw-countdown { font-size: 1.3rem; font-weight: 700; }
.draw-list { padding-left: 1.4rem; }
.draw-item { padding: .45rem .6rem; margin: .3rem 0; border-radius: 8px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.draw-item.mine { border-left: 4px solid var(--accent); font-weight: 600; }
.draw-item.fresh { animation: draw-pop .6s ease-out; }
@keyframes draw-pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pill.on { border-color: var(--accent); }

/* AI portraits (tools/portraits) */
.avatar.face { position: relative; display: inline-block; border-radius: 50%; overflow: hidden; flex: none; background: #dfe3e6; vertical-align: middle; }
.avatar.face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.face .face-kit { position: absolute; inset: 0; mix-blend-mode: multiply; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.avatar.face .face-no { position: absolute; left: 30%; bottom: 6%; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.avatar.face.vip { box-shadow: 0 0 0 3px #d4af37; }

/* Shareable player card */
.pc-share { margin: .6rem 0; }
.pc-share summary { cursor: pointer; font-weight: 600; }
.share-card { width: 260px; margin: .6rem auto; padding: 14px 14px 10px; border-radius: 18px; color: #fff; text-align: center; position: relative;
    background: linear-gradient(145deg, var(--c1), #0b1016); border: 4px solid var(--c2); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.share-card .sc-top { position: absolute; left: 14px; top: 12px; display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.share-card .sc-ovr { font-size: 2.3rem; font-weight: 900; }
.share-card .sc-pos { font-weight: 800; }
.share-card .sc-flag { font-size: 1.4rem; margin-top: 2px; }
.share-card .sc-photo { margin: 4px 0 4px 40px; }
.share-card .sc-photo .avatar { border: 3px solid var(--c2); border-radius: 50%; }
.share-card .sc-name { font-weight: 900; font-size: 1.15rem; text-transform: uppercase; border-bottom: 2px solid var(--c2); padding-bottom: 4px; margin: 4px 10px 8px; }
.share-card .sc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; text-align: left; padding: 0 12px; }
.share-card .sc-stats b { font-size: 1.1rem; display: inline-block; min-width: 1.8em; }
.share-card .sc-stats span { opacity: .85; font-size: .82rem; }
.share-card .sc-club { margin-top: 8px; font-weight: 700; }
.share-card .sc-brand { font-size: .7rem; opacity: .6; }

/* Match maps */
.match-maps .map-pitch { width: 100%; max-width: 760px; display: block; margin: .5rem auto; border-radius: 8px; }
.match-maps .section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.pc-story { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin: .4rem 0; }
.pc-story ul { flex-basis: 100%; margin: .2rem 0; }

/* Manager faces and stadium photos */
.face-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.face-pick { padding: 0; border: 3px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.face-pick img { width: 64px; height: 64px; border-radius: 50%; display: block; object-fit: cover; }
.face-pick.on { border-color: var(--accent); }
.manager-avatar.face-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.stadium-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: .5rem; }

/* Exit links above the match centre, so they are reachable without scrolling past the pitch. */
.match-back { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .75rem; }

/* Deep tools (2026-09-30): rotation grid, charts, partnership lines, lineup presets, live quick changes, telestrator. */
.rotation td, .rotation th { white-space: nowrap; }
.rot-cell { font-weight: 700; border-radius: 6px; }
.rot-cell.good { background: rgba(74, 222, 128, .16); }
.rot-cell.mid { background: rgba(250, 204, 21, .18); }
.rot-cell.low { background: rgba(248, 113, 113, .22); }
.rot-cell.rest { background: rgba(96, 165, 250, .2); }
.forecast-chart, .value-chart { width: 100%; max-width: 520px; height: auto; display: block; margin: .4rem 0; color: var(--muted, #9ca3af); }
.pair-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.dnd-pitch .slot { z-index: 1; }
.presets summary { cursor: pointer; font-weight: 700; }
.table.compact td, .table.compact th { padding: .25rem .4rem; }
.quick-alerts { display: grid; gap: .4rem; margin: .5rem 0; }
.quick-alert { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: space-between; padding: .4rem .6rem; border-radius: 10px; background: rgba(250, 204, 21, .12); border: 1px solid rgba(250, 204, 21, .35); font-size: .85rem; }
.telestrator-bar { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .4rem; }
.telestrator-bar .swatch { font-size: 1.1rem; line-height: 1; padding: .2rem .5rem; }
.telestrator-bar .swatch.active, .telestrator-bar .active { outline: 2px solid var(--accent); }
.small-bar { display: inline-block; width: 60px; vertical-align: middle; }
.youth-plans { display: grid; gap: .6rem; }
.row-flex { display: flex; gap: .8rem; align-items: center; }

/* Empty bench seats with a + to fill them. */
.bench-empty { cursor: pointer; display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem; border: 1px dashed var(--line); border-radius: 10px; margin-top: .3rem; }
.slot-add { width: 2rem; height: 2rem; border-radius: 50%; border: 2px dashed var(--accent); background: transparent; color: var(--accent); font-size: 1.2rem; font-weight: 800; cursor: pointer; line-height: 1; }
.slot-add:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.bench-picker { margin-top: .5rem; padding: .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.bench-picker .player-row { cursor: pointer; }
.pc-number { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .4rem 0; }
.pc-number .num-input { width: 4.5rem; margin-left: .3rem; }
.clauses { margin: .5rem 0; }
.clauses summary { cursor: pointer; font-weight: 700; }

/* Deep tools 2 (2026-10-01): pre-match panel, tour, academy curricula, transfer plan. */
.prematch-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; }
.prematch-row .right { text-align: right; }
.prematch-row .big { font-size: 1.6rem; font-weight: 900; }
.form-dots { display: flex; gap: .2rem; margin-top: .2rem; }
.prematch-row .right .form-dots { justify-content: flex-end; }
.form-dots .dot { width: .75rem; height: .75rem; border-radius: 50%; display: inline-block; background: #9ca3af; }
.form-dots .dot.win { background: #22c55e; }
.form-dots .dot.loss { background: #ef4444; }
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.curriculum-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .3rem 0; }
.plan-list li { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.plan-list input { width: 9rem; }

/* World tools (2026-10-02): month calendar, team of the week. */
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.month-head { text-align: center; font-weight: 800; font-size: .8rem; color: var(--muted); }
.month-cell { min-height: 4.5rem; border: 1px solid var(--line); border-radius: 8px; padding: .25rem; font-size: .72rem; overflow: hidden; }
.month-cell.empty { border: none; }
.month-cell.today { outline: 2px solid var(--accent); }
.month-date { font-weight: 800; }
.month-item { display: block; margin-top: .15rem; color: var(--muted); }
.month-item.mine { color: var(--accent); font-weight: 700; }
.stars-pitch { display: grid; gap: .6rem; padding: .6rem; border-radius: 14px; background: repeating-linear-gradient(180deg, #1f7a40 0 12%, #1b6f3a 12% 24%); }
.stars-line { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.star-card { display: flex; flex-direction: column; align-items: center; gap: .15rem; background: rgba(0,0,0,.35); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: .4rem .5rem; min-width: 6.5rem; cursor: pointer; }
.star-card .muted { color: rgba(255,255,255,.75); }

/* Live & challenge (2026-10-02): draft cards, watch room, scout comparison. */
.draft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .4rem; }
.draft-card { display: flex; align-items: center; gap: .4rem; padding: .4rem .5rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: inherit; cursor: pointer; text-align: left; }
.draft-card.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.draft-card .ovr { margin-left: auto; }
.watch-feed { max-height: 10rem; overflow-y: auto; }
.compare-row { display: grid; grid-template-columns: 6rem 3rem 1fr 3rem; gap: .5rem; align-items: center; margin: .25rem 0; }

/* People tools (2026-10-02). */
.grade { display: inline-block; min-width: 1.8rem; text-align: center; font-weight: 900; border-radius: 8px; padding: .1rem .3rem; background: var(--panel-2); }
.grade-A { background: #16a34a; color: #fff; } .grade-B { background: #65a30d; color: #fff; } .grade-C { background: #ca8a04; color: #fff; }
.grade-D { background: #ea580c; color: #fff; } .grade-E { background: #dc2626; color: #fff; }
.meeting-advice { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); }

/* Card album */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin: .6rem 0; }
.album-card { display: flex; flex-direction: column; gap: .2rem; padding: .55rem .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); min-width: 0; }
.album-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-card.rare { border-color: #4f8cff; }
.album-card.epic { border-color: #a35cff; background: linear-gradient(160deg, rgba(163, 92, 255, .14), var(--panel-2)); }
.album-card.legend { border-color: var(--gold); background: linear-gradient(160deg, rgba(255, 200, 60, .18), var(--panel-2)); }
.album-card.missing { opacity: .5; border-style: dashed; align-items: center; justify-content: center; }

/* Crest and kit designer */
.crest-designer { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: .5rem 0 1rem; }
.crest-designer .crest-big { flex: 0 0 auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.crest-designer .form-grid { flex: 1 1 240px; }
.kit-views { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.kit-views svg { filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); max-width: 100%; height: auto; }
.crest { overflow: visible; }

/* Load sparkline and depth chart */
.spark { display: inline-flex; align-items: flex-end; gap: 1px; height: 22px; min-width: 90px; }
.spark i { display: block; width: 3px; background: var(--accent-2); border-radius: 1px; min-height: 1px; }
.spark i.hi { background: var(--warn); }
.depth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.depth-card h3 { margin: 0 0 .3rem; font-size: 1rem; }
.depth-card.gap { border-color: var(--danger); }

/* Tactics whiteboard */
.tboard { display: grid; gap: .6rem; max-width: 560px; }
.tboard-tools { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.tboard-pitch { width: 100%; aspect-ratio: 72 / 109; border-radius: 10px; overflow: hidden; touch-action: none; user-select: none; }
.tboard-svg { width: 100%; height: 100%; display: block; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--accent); }
details.report { border-top: 1px solid var(--line); padding: .5rem 0; }
details.report summary { cursor: pointer; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; margin-top: .4rem; }

/* Zalo sign-in and the sign-up form */
.btn.external.zalo { background: #0068ff; color: #fff; border-color: #0068ff; }
.btn.external.zalo .ext-icon { background: #fff; color: #0068ff; }
.btn.external { min-height: 48px; }
.consent { margin-top: .4rem; }
.auth-form input { font-size: 16px; } /* no zoom-in on phones when typing */

/* "Phiên bản thử nghiệm kỹ thuật" label (home and sign-in pages) */
.trial-badge { display: inline-block; margin: .2rem 0 .5rem; padding: .1em .6em; border-radius: 999px; font-size: .68rem; font-weight: 600;
  color: rgba(255, 213, 79, .85); background: rgba(255, 213, 79, .08); border: 1px solid rgba(255, 213, 79, .25); }
.landing .trial-badge { display: table; }
/* landing: new leagues line; keep the header on one row on small phones */
.landing-new { color: #fff6c4; }
.landing-flags { letter-spacing: .12em; }
@media (max-width: 400px) { .landing-brand span { display: none; } }

/* Clickable player / club names (PlayerLink, TeamLink). */
.name-link { color: inherit; font-weight: inherit; border-bottom: 1px dotted currentColor; cursor: pointer; }
.name-link:hover { color: var(--accent); text-decoration: none; }

/* Trophy lift (owner, 2026-10-28). */
.trophy-lift { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(0,0,0,.72); padding: 16px; }
.trophy-lift .lift-card { position: relative; max-width: 440px; width: 100%; text-align: center; padding: 24px 20px; border-radius: 18px;
  background: linear-gradient(160deg, var(--club, #1e88e5), #0b1016 75%); color: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.trophy-lift .lift-cup { animation: lift-up 1.2s ease-out both; }
.trophy-lift h2 { margin: .4rem 0; }
@keyframes lift-up { from { transform: translateY(40px) scale(.7); opacity: 0; } 60% { transform: translateY(-12px) scale(1.05); opacity: 1; } to { transform: none; } }
.trophy-lift .confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.trophy-lift .confetti i { position: absolute; top: -12px; left: calc(var(--i) * 2.5%); width: 8px; height: 14px;
  background: hsl(calc(var(--i) * 37), 85%, 60%); animation: confetti-fall calc(2.5s + (var(--i) * 0.07s)) linear infinite; animation-delay: calc(var(--i) * -0.13s); }
@keyframes confetti-fall { to { transform: translateY(110vh) rotate(720deg); } }
