/* Civ Bowl playoffs (includes/hockey_playoffs_ui.php) */

:root {
    --hkp-gold: #f2c14e;
    --hkp-gold-soft: rgba(242, 193, 78, .16);
    --hkp-edge: rgba(255, 255, 255, .08);
    --hkp-card: #141922;
    --hkp-card-2: #1a202b;
    --hkp-win: #2bd38a;
    --hkp-live: #f0605c;
}

/* ─── Hero ────────────────────────────────────────────────────────── */
.hkp-hero {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
    padding: 1.3rem 1.4rem; margin-bottom: 1.4rem; border-radius: var(--radius-lg);
    background:
        radial-gradient(500px 220px at 0% 0%, rgba(242,193,78,.18), transparent 65%),
        radial-gradient(600px 260px at 100% 100%, rgba(80,130,255,.14), transparent 60%),
        var(--bg-card);
    border: 1px solid rgba(242,193,78,.25);
}
.hkp-hero-trophy { width: 64px; height: 64px; flex-shrink: 0; filter: drop-shadow(0 6px 18px rgba(242,193,78,.45)); }
.hkp-hero-text { flex: 1; min-width: 220px; }
.hkp-hero h1 { margin: .1rem 0 .2rem; font-size: 1.7rem; letter-spacing: -.01em; }
.hkp-hero p { margin: 0; color: var(--text-secondary); font-weight: 600; }
.hkp-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--hkp-gold); }
.hkp-progress { height: 6px; margin-top: .7rem; max-width: 360px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.hkp-progress span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, #b8862b, var(--hkp-gold)); box-shadow: 0 0 12px rgba(242,193,78,.6); }
.hkp-champ { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .7rem 1.2rem; border-radius: var(--radius-lg); background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 30%, transparent), transparent); border: 1px solid color-mix(in srgb, var(--tc) 50%, transparent); }
.hkp-champ-crest { width: 54px; height: 54px; object-fit: contain; }
.hkp-champ span { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hkp-gold); }
.hkp-champ strong { font-size: 1.05rem; }
.hkp-head-note { color: var(--text-muted); font-size: .76rem; }
.hkp-rules { color: var(--text-muted); font-size: .74rem; margin-top: 1.4rem; max-width: 760px; }

/* ─── Bracket ─────────────────────────────────────────────────────── */
.hkp-bracket { position: relative; overflow-x: auto; padding: .4rem .2rem 1rem; }
.hkp-round-tabs { display: none; }
.hkp-cols { position: relative; display: flex; gap: 40px; width: 100%; min-width: max-content; align-items: stretch; justify-content: space-between; }
.hkp-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.hkp-lines path { fill: none; stroke: #2c3442; stroke-width: 2; transition: stroke .2s, opacity .2s; }
.hkp-lines path.is-won { stroke: var(--lc); stroke-width: 2.5; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--lc) 60%, transparent)); }
.hkp-col { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1 1 0; min-width: 220px; max-width: 320px; }
.hkp-col h4 { margin: 0 0 .7rem; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); text-align: center; }
.hkp-col h4 small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .06em; color: var(--text-muted); text-transform: none; }
.hkp-col-body { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 1rem; }
.hkp-col.is-final-col { min-width: 250px; max-width: 340px; }
.hkp-col.is-final-col h4 { color: var(--hkp-gold); }

.hkp-match {
    position: relative; border-radius: 12px; padding: .35rem; background: linear-gradient(180deg, var(--hkp-card-2), var(--hkp-card));
    border: 1px solid var(--hkp-edge); box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .15s ease, border-color .2s, box-shadow .2s;
}
.hkp-match:hover { transform: translateY(-2px); border-color: rgba(124,170,255,.35); }
.hkp-match.is-bye { padding: .3rem .35rem .45rem; background: transparent; border-style: dashed; box-shadow: none; }
.hkp-match.is-live { border-color: rgba(240,96,92,.6); box-shadow: 0 0 0 1px rgba(240,96,92,.25), 0 8px 30px rgba(240,96,92,.18); }
.hkp-match.is-final {
    padding: .5rem; border-color: rgba(242,193,78,.45);
    background: radial-gradient(300px 120px at 50% 0%, rgba(242,193,78,.16), transparent 70%), linear-gradient(180deg, var(--hkp-card-2), var(--hkp-card));
    box-shadow: 0 0 0 1px rgba(242,193,78,.12), 0 14px 40px rgba(242,193,78,.12);
}
.hkp-open { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hkp-match a:not(.hkp-open) { position: relative; z-index: 2; }
.hkp-final-head { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .1rem 0 .4rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hkp-gold); }
.hkp-final-head .hkp-trophy { width: 22px; height: 22px; }

.hkp-side { --tc: #3a4452; display: grid; grid-template-columns: 22px 26px minmax(0, 1fr) auto; align-items: center; gap: .45rem; padding: .38rem .45rem; border-radius: 8px; position: relative; transition: background .15s, opacity .2s; }
.hkp-side + .hkp-side { margin-top: 2px; }
.hkp-side::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--tc); opacity: .8; }
.hkp-side.is-tbd::before { opacity: .15; }
.hkp-side.is-win { background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 22%, transparent), transparent 80%); }
.hkp-side.is-win .hkp-name { color: #fff; }
.hkp-side.is-lose { opacity: .45; }
.hkp-side.is-lose .hkp-name { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.hkp-seed { font: 800 .64rem/1 'Inter', sans-serif; color: var(--text-muted); text-align: center; background: rgba(255,255,255,.05); border-radius: 5px; padding: .22rem 0; }
.hkp-seed:empty { background: transparent; }
.hkp-crest { width: 26px; height: 26px; object-fit: contain; }
.hkp-crest.is-text, .hkp-crest.is-empty { display: inline-grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.05); font: 700 .55rem/1 'Inter', sans-serif; color: var(--text-muted); }
.hkp-name { min-width: 0; font-weight: 700; font-size: .84rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.hkp-name:hover { color: #fff; }
.hkp-name.is-tbd { color: var(--text-muted); font-weight: 600; }
.hkp-name small { display: block; font-size: .64rem; font-weight: 600; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }
.hkp-wins { font: 800 1.15rem/1 'Oswald', 'Inter', sans-serif; min-width: 1ch; text-align: right; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.hkp-side.is-win .hkp-wins { color: var(--hkp-win); }
.hkp-cands { display: none; }
.hkp-side.is-tbd:has(.hkp-cands) { grid-template-columns: 22px auto minmax(0, 1fr) auto; }
.hkp-side.is-tbd .hkp-cands { display: inline-flex; }
.hkp-cand { margin-left: -6px; border-radius: 50%; background: var(--hkp-card); box-shadow: 0 0 0 2px var(--hkp-card); }
.hkp-cand:first-child { margin-left: 0; }
.hkp-cand-crest { width: 20px; height: 20px; object-fit: contain; display: block; }
.hkp-cand-crest.is-text { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.08); font: 700 .45rem/1 'Inter', sans-serif; color: var(--text-muted); }
.hkp-byeline { font-size: .68rem; color: var(--text-muted); padding: 0 .5rem 0 2.1rem; }

.hkp-pips { display: flex; gap: 4px; margin: .4rem .2rem .1rem; }
.hkp-pip {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .25rem; min-width: 0; padding: .22rem .2rem; border-radius: 6px;
    font: 700 .66rem/1.1 'Inter', sans-serif; color: var(--text-muted); text-decoration: none; background: rgba(255,255,255,.04); border: 1px solid transparent; white-space: nowrap;
}
.hkp-pip b { font-weight: 800; color: var(--text-muted); opacity: .8; }
.hkp-pip i { font-style: normal; font-size: .56rem; color: var(--hkp-gold); }
.hkp-pip.is-done { --pc: #3a4452; color: var(--text); background: color-mix(in srgb, var(--pc) 22%, transparent); border-color: color-mix(in srgb, var(--pc) 40%, transparent); }
.hkp-pip.is-skip { opacity: .35; }
.hkp-pip.is-live { color: #fff; background: rgba(240,96,92,.25); border-color: rgba(240,96,92,.6); animation: hkp-blink 1.4s ease-in-out infinite; }
@keyframes hkp-blink { 50% { background: rgba(240,96,92,.08); } }
.hkp-meta { font-size: .64rem; color: var(--text-muted); padding: .25rem .45rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hkp-live-dot { color: var(--hkp-live); font-weight: 800; }
.hkp-live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .3rem; border-radius: 50%; background: var(--hkp-live); vertical-align: 1px; animation: hkp-blink 1.4s infinite; box-shadow: 0 0 8px var(--hkp-live); }

/* Path highlight: hover a team and everything else dims */
.hkp-bracket.is-tracing .hkp-side[data-team], .hkp-bracket.is-tracing .hkp-cand { opacity: .25; }
.hkp-bracket.is-tracing .hkp-side.is-traced, .hkp-bracket.is-tracing .hkp-cand.is-traced { opacity: 1; }
.hkp-bracket.is-tracing .hkp-side.is-traced { background: color-mix(in srgb, var(--tc) 20%, transparent); }
.hkp-bracket.is-tracing .hkp-lines path { opacity: .25; }
.hkp-bracket.is-tracing .hkp-lines path.is-traced { opacity: 1; stroke: var(--trace, #fff); stroke-width: 3; }

/* Compact (home card) */
.hkp-bracket.is-compact .hkp-cols { gap: 34px; }
.hkp-bracket.is-compact .hkp-col { min-width: 210px; }
.hkp-bracket.is-compact .hkp-col.is-final-col { min-width: 230px; }
.hkp-bracket.is-compact .hkp-meta { display: none; }
.hkp-bracket.is-compact .hkp-col h4 small { display: none; }

/* ─── Seed grid ───────────────────────────────────────────────────── */
.hkp-grid-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--hkp-edge); background: var(--bg-card); }
.hkp-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .82rem; }
.hkp-grid th { padding: .55rem .3rem; font-size: .72rem; font-weight: 800; color: var(--text-secondary); text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.hkp-grid th small { display: block; font-size: .58rem; font-weight: 600; color: var(--text-muted); }
.hkp-grid td { padding: .3rem; border-bottom: 1px solid rgba(255,255,255,.03); }
.hkp-grid-team { text-align: left !important; padding-left: .8rem !important; white-space: nowrap; }
td.hkp-grid-team { display: grid; grid-template-columns: 24px auto; column-gap: .5rem; align-items: center; }
td.hkp-grid-team .hkp-crest { width: 24px; height: 24px; grid-row: span 2; }
td.hkp-grid-team a { color: var(--text); font-weight: 700; text-decoration: none; }
td.hkp-grid-team small { color: var(--text-muted); font-size: .66rem; }
.hkp-grid-gap td { padding: 0; height: 8px; background: rgba(255,255,255,.015); }
.hkp-cell { position: relative; width: 44px; height: 34px; text-align: center; }
.hkp-cell::before { content: ""; position: absolute; inset: 5px 4px; border-radius: 7px; background: rgba(255,255,255,.025); }
.hkp-cell.is-on::before { background: color-mix(in srgb, var(--tc) 32%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); }
.hkp-cell.is-lock::before { background: var(--tc); box-shadow: 0 0 14px color-mix(in srgb, var(--tc) 70%, transparent); }
.hkp-cell.is-out::before { background: rgba(240,96,92,.1); border: 1px dashed rgba(240,96,92,.35); }
.hkp-cell span { position: relative; color: rgba(240,96,92,.75); font-weight: 800; font-size: .7rem; }
.hkp-cell i { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.35); vertical-align: middle; }
.hkp-grid tr:hover td { background: rgba(255,255,255,.02); }
.hkp-grid-status { text-align: right !important; padding-right: .8rem !important; }
.hkp-badge { display: inline-block; padding: .2rem .5rem; border-radius: 999px; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.hkp-badge.is-locked { color: #1b1b1b; background: var(--hkp-gold); }
.hkp-badge.is-in { color: var(--hkp-win); background: rgba(43,211,138,.12); border: 1px solid rgba(43,211,138,.35); }
.hkp-badge.is-alive { color: #9cc0ff; background: rgba(90,140,255,.12); border: 1px solid rgba(90,140,255,.3); }
.hkp-badge.is-out { color: var(--text-muted); background: rgba(255,255,255,.04); }
.hkp-grid-key { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .6rem; font-size: .7rem; color: var(--text-muted); }
.hkp-grid-key i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: .35rem; vertical-align: -2px; }
.hkp-grid-key .k-on { background: rgba(90,140,255,.35); border: 1px solid rgba(90,140,255,.6); }
.hkp-grid-key .k-lock { background: var(--hkp-gold); }
.hkp-grid-key .k-now { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.hkp-elim { margin-top: .4rem; font-size: .72rem; color: var(--text-muted); }

/* ─── Key games ───────────────────────────────────────────────────── */
.hkp-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .6rem; }
.hkp-key { display: flex; flex-direction: column; gap: .35rem; padding: .7rem .8rem; border-radius: 12px; text-decoration: none; color: var(--text); background: var(--bg-card); border: 1px solid var(--hkp-edge); transition: border-color .2s, transform .15s; }
.hkp-key:hover { border-color: rgba(242,193,78,.4); transform: translateY(-1px); }
.hkp-key-when { font-size: .66rem; color: var(--text-muted); font-weight: 600; }
.hkp-key-teams { display: flex; align-items: center; gap: .4rem; font-size: .84rem; min-width: 0; }
.hkp-key-teams b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hkp-key-teams i { font-style: normal; color: var(--text-muted); font-size: .7rem; }
.hkp-key-teams .hkp-crest { width: 22px; height: 22px; }
.hkp-key-what { font-size: .7rem; font-weight: 700; color: var(--hkp-gold); }

/* ─── Home card ───────────────────────────────────────────────────── */
.hkp-home { position: relative; overflow: hidden; padding: 1.1rem 1.1rem .8rem; border-radius: var(--radius-lg); border: 1px solid rgba(242,193,78,.28); background: var(--bg-card); }
.hkp-home-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 240px at 10% -10%, rgba(242,193,78,.16), transparent 60%), radial-gradient(700px 300px at 100% 120%, rgba(80,130,255,.12), transparent 60%); }
.hkp-home > * { position: relative; }
.hkp-home-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.hkp-home-head > div { flex: 1; min-width: 200px; }
.hkp-home-head h2 { margin: .05rem 0; font-size: 1.35rem; }
.hkp-home-head p { margin: 0; color: var(--text-secondary); font-size: .84rem; font-weight: 600; }
.hkp-home-trophy { width: 46px; height: 46px; filter: drop-shadow(0 4px 12px rgba(242,193,78,.45)); }
.hkp-home .hkp-progress { margin: .7rem 0 .4rem; max-width: none; }
.hkp-home .hkp-bracket { margin-top: .5rem; }
.hkp-sub { margin: .6rem 0 .5rem; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); }

/* ─── Civ Bowl hero / series header ──────────────────────────────── */
.hkp-cb { position: relative; padding: 1.1rem; border-radius: var(--radius-lg); text-align: center;
    background: linear-gradient(110deg, color-mix(in srgb, var(--ca) 24%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--cb) 24%, transparent)), radial-gradient(400px 160px at 50% 0%, rgba(242,193,78,.18), transparent 70%), var(--bg-card);
    border: 1px solid rgba(242,193,78,.3); }
.hkp-cb-top { display: flex; flex-direction: column; align-items: center; gap: .2rem; margin-bottom: .6rem; }
.hkp-cb-trophy { width: 54px; height: 54px; filter: drop-shadow(0 6px 18px rgba(242,193,78,.5)); }
.hkp-cb-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.hkp-cb-team { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-decoration: none; color: var(--text); }
.hkp-cb-team strong { font-size: 1.05rem; }
.hkp-cb-team.is-lose { opacity: .45; }
.hkp-cb-team.is-win strong { color: #fff; }
.hkp-cb-crest { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
.hkp-cb-crest.is-text { display: grid; place-items: center; border-radius: 16px; background: rgba(255,255,255,.06); font: 800 1rem/1 'Inter', sans-serif; }
.hkp-cb-seed { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.hkp-cb-score { display: flex; align-items: baseline; justify-content: center; gap: .5rem; flex-wrap: wrap; font-family: 'Orbitron', 'Oswald', monospace; }
.hkp-cb-score b { font-size: 2.6rem; font-weight: 900; text-shadow: 0 0 20px rgba(242,193,78,.35); }
.hkp-cb-score i { font-style: normal; color: var(--text-muted); font-size: 1.6rem; }
.hkp-cb-score small { flex-basis: 100%; font-family: 'Inter', sans-serif; font-size: .66rem; color: var(--text-muted); }
.hkp-cb .hkp-pips { max-width: 420px; margin: .9rem auto .3rem; }
.hkp-cb-meta { font-size: .76rem; color: var(--text-secondary); margin-top: .3rem; }
.hkp-cb-links { display: flex; gap: .5rem; justify-content: center; margin-top: .8rem; flex-wrap: wrap; }
.hkp-countdown { display: flex; justify-content: center; gap: .5rem; margin-top: .7rem; }
.hkp-countdown span { min-width: 58px; padding: .4rem .3rem; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--hkp-edge); }
.hkp-countdown b { display: block; font: 900 1.3rem/1 'Orbitron', monospace; color: #fff; }
.hkp-countdown small { font-size: .6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

.hkp-back { display: inline-block; margin-bottom: .8rem; color: var(--text-muted); font-size: .82rem; text-decoration: none; }
.hkp-back:hover { color: var(--text); }
.hkp-series-hero { margin-bottom: 1.3rem; }
.hkp-games { display: flex; flex-direction: column; gap: .5rem; }
.hkp-game { display: grid; grid-template-columns: 70px 1fr auto 1fr minmax(0, 160px); align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 12px; text-decoration: none; color: var(--text); background: var(--bg-card); border: 1px solid var(--hkp-edge); }
.hkp-game:hover { border-color: rgba(124,170,255,.35); }
.hkp-game.is-cancelled { opacity: .45; }
.hkp-game-no { font-size: .7rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.hkp-game-team { display: flex; align-items: center; gap: .45rem; font-weight: 600; min-width: 0; }
.hkp-game-team.is-away { justify-content: flex-end; }
.hkp-game-team.is-win { font-weight: 800; color: #fff; }
.hkp-game-team .hkp-crest { width: 24px; height: 24px; }
.hkp-game-score { font: 800 1.05rem/1 'Oswald', 'Inter', sans-serif; text-align: center; white-space: nowrap; }
.hkp-game-score i { font-style: normal; font-size: .62rem; color: var(--hkp-gold); }
.hkp-game-note { font-size: .7rem; color: var(--text-muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hkp-leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem; }
.hkp-leader { --tc: #3a4452; display: grid; grid-template-columns: 20px 32px 1fr auto; align-items: center; gap: .55rem; padding: .55rem .7rem; border-radius: 12px; text-decoration: none; color: var(--text); background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 14%, transparent), transparent 70%), var(--bg-card); border: 1px solid var(--hkp-edge); }
.hkp-leader img { width: 32px; height: 32px; border-radius: 6px; image-rendering: pixelated; }
.hkp-leader-rank { font-weight: 800; color: var(--text-muted); font-size: .8rem; text-align: center; }
.hkp-leader-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hkp-leader-name small, .hkp-leader-stat small { display: block; font-size: .66rem; color: var(--text-muted); font-weight: 600; }
.hkp-leader-stat { text-align: right; font-size: .72rem; color: var(--text-muted); }
.hkp-leader-stat b { font-size: 1.05rem; color: var(--text); }

/* ─── Fixture banner ───────────────────────────────────── */
.hkp-fx-banner { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .55rem .9rem; margin-bottom: 1rem; border-radius: 12px; text-decoration: none; color: var(--text); font-size: .85rem;
    background: linear-gradient(90deg, rgba(242,193,78,.16), rgba(242,193,78,.03)); border: 1px solid rgba(242,193,78,.3); }
.hkp-fx-trophy { width: 22px; height: 22px; }
.hkp-fx-series { padding: .15rem .5rem; border-radius: 999px; background: rgba(0,0,0,.25); font-weight: 700; font-size: .78rem; }
.hkp-fx-go { margin-left: auto; color: var(--hkp-gold); font-weight: 700; font-size: .78rem; }

/* ─── Phone: one round at a time ──────────────────────────────────── */
@media (max-width: 760px) {
    .hkp-round-tabs { display: flex; gap: 4px; padding: 3px; margin-bottom: .8rem; border-radius: 999px; background: var(--bg-elevated); border: 1px solid var(--border); }
    .hkp-round-tabs button { flex: 1; border: 0; background: transparent; color: var(--text-muted); font: 700 .74rem 'Inter', sans-serif; padding: .45rem .3rem; border-radius: 999px; cursor: pointer; }
    .hkp-round-tabs button.is-on { color: #1b1b1b; background: var(--hkp-gold); }
    .hkp-bracket { overflow: visible; }
    .hkp-cols { display: block; min-width: 0; }
    .hkp-lines { display: none; }
    .hkp-col, .hkp-col.is-final-col, .hkp-bracket.is-compact .hkp-col, .hkp-bracket.is-compact .hkp-col.is-final-col { display: none; width: auto; }
    .hkp-col.is-on { display: flex; }
    .hkp-col h4 { display: none; }
    .hkp-col-body { gap: .6rem; }
    .hkp-hero h1 { font-size: 1.35rem; }
    .hkp-hero-trophy { width: 46px; height: 46px; }
    .hkp-cb-teams { gap: .4rem; }
    .hkp-cb-crest { width: 52px; height: 52px; }
    .hkp-cb-team strong { font-size: .86rem; }
    .hkp-cb-score b { font-size: 2rem; }
    .hkp-game { grid-template-columns: 1fr auto 1fr; }
    .hkp-game-no, .hkp-game-note { grid-column: 1 / -1; text-align: left; }
    .hkp-game-team { font-size: .8rem; }
    .hkp-grid { font-size: .76rem; }
    .hkp-cell { width: 25px; height: 30px; }
    .hkp-cell::before { inset: 4px 2px; border-radius: 5px; }
    .hkp-grid th { padding: .45rem .1rem; font-size: .64rem; }
    .hkp-grid th small { display: none; }
    .hkp-grid-team { padding-left: .5rem !important; }
    td.hkp-grid-team { grid-template-columns: 20px auto; column-gap: .35rem; }
    td.hkp-grid-team .hkp-crest { width: 20px; height: 20px; }
    td.hkp-grid-team a { display: block; max-width: 92px; overflow: hidden; text-overflow: ellipsis; font-size: .74rem; }
    td.hkp-grid-team small { display: none; }
    .hkp-grid-status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hkp-pip.is-live, .hkp-live-dot::before { animation: none; }
    .hkp-match, .hkp-key { transition: none; }
}
