/* HFA 2.0 — sports app visual layer. Loaded last so legacy modules can migrate by composition. */
:root{
 --hfa-bg:#f3f6f9;--hfa-surface:#fff;--hfa-surface-elevated:#f8fafc;
 --hfa-text:#102033;--hfa-text-secondary:#65758a;--hfa-border:#dfe6ee;
 --hfa-primary:#0b6bcb;--hfa-success:#16805d;--hfa-warning:#b7791f;--hfa-danger:#cf4141;
 --hfa-navy:#081b2f;--hfa-navy-elevated:#102943;
 --radius-sm:10px;--radius-md:14px;--radius-lg:18px;
 --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;
 --bg:var(--hfa-bg);--panel:var(--hfa-surface);--panel-2:var(--hfa-surface-elevated);--panel-tint:var(--hfa-surface-elevated);
 --text:var(--hfa-text);--muted:var(--hfa-text-secondary);--muted-2:#485b71;--text-soft:#7f8ea1;
 --line:var(--hfa-border);--line-soft:#edf1f5;--line-strong:#cfd8e3;
 --accent:var(--hfa-primary);--accent2:#07549f;--ok:var(--hfa-success);--warning:var(--hfa-warning);--danger:var(--hfa-danger);
 --navy:var(--hfa-navy);--navy-2:var(--hfa-navy-elevated);
 --radius:var(--radius-lg);--radius-small:var(--radius-sm);--radius-medium:var(--radius-md);--radius-large:var(--radius-lg);
 --shadow:0 12px 32px rgba(17,38,62,.06);--shadow-sm:0 4px 14px rgba(17,38,62,.045);--shadow-md:0 14px 38px rgba(17,38,62,.1);
 --topbar-bg:rgba(255,255,255,.92);--input-bg:var(--hfa-surface);--shell-sidebar:236px
}
:root[data-theme="dark"]{
 --hfa-bg:#07111e;--hfa-surface:#0f1c2b;--hfa-surface-elevated:#172638;
 --hfa-text:#eef4fb;--hfa-text-secondary:#93a3b7;--hfa-border:#26384b;
 --hfa-primary:#58a1ee;--hfa-success:#45c995;--hfa-warning:#e2ae58;--hfa-danger:#ed746d;
 --hfa-navy:#061422;--hfa-navy-elevated:#10283f;
 --muted-2:#b4c0cf;--text-soft:#7f90a5;--line-soft:#1c2b3c;--line-strong:#354a60;
 --accent2:#80bbf5;--shadow:0 14px 36px rgba(0,0,0,.25);--shadow-sm:0 4px 14px rgba(0,0,0,.18);--shadow-md:0 16px 42px rgba(0,0,0,.34);
 --topbar-bg:rgba(15,28,43,.92);--input-bg:#0b1725
}

html{background:var(--hfa-bg)}
body{background:var(--hfa-bg);color:var(--hfa-text);font-size:15px;letter-spacing:-.005em}
.app{grid-template-columns:var(--shell-sidebar,236px) minmax(0,1fr)}
.sidebar{background:var(--hfa-navy);border-right:1px solid rgba(255,255,255,.07);padding:16px 12px 12px}
.brand{min-height:60px;margin:0 0 8px;padding:4px 8px 14px;border-bottom:1px solid rgba(255,255,255,.09)}
.brandmark{width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:rgba(255,255,255,.06);box-shadow:none}
.brand h1{font-size:13px;line-height:1.25}
.nav-section{padding-top:14px;color:#71869d}
.nav button{border-radius:10px;color:#b9c8d8;font-size:13px}
.nav button.active{background:rgba(38,130,219,.16);box-shadow:inset 3px 0 0 var(--hfa-primary)}
.nav button.active .ico{background:var(--hfa-primary);box-shadow:none}
.topbar{height:64px;padding-inline:28px;border-bottom:1px solid var(--hfa-border);box-shadow:none}
.top-title h2{font-size:18px}
.content{max-width:1440px;padding:28px 32px 48px}
.card{border:1px solid var(--hfa-border);border-radius:var(--radius-lg);background:var(--hfa-surface);box-shadow:none}
.card:hover{box-shadow:none}
.btn{min-height:42px;border-color:var(--hfa-border);border-radius:12px;background:var(--hfa-surface);font-weight:750;box-shadow:none}
.btn:hover{border-color:color-mix(in srgb,var(--hfa-primary) 34%,var(--hfa-border));box-shadow:none}
.btn.primary{border-color:var(--hfa-primary);background:var(--hfa-primary);box-shadow:none}
.btn.primary:hover{box-shadow:0 8px 18px color-mix(in srgb,var(--hfa-primary) 22%,transparent);transform:none}
.btn.small{min-height:36px;padding:7px 10px}
.badge{padding:4px 8px;font-size:10px;letter-spacing:.01em}
.pagehead{margin-bottom:24px}.pagehead h2{font-size:clamp(27px,2.2vw,34px);letter-spacing:-.035em}.pagehead p{color:var(--hfa-text-secondary)}
.page-kicker{display:block;margin-bottom:6px;color:var(--hfa-primary);font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.section-title>div>span,.section-title>span,.kicker{letter-spacing:.08em}
.table-wrap{box-shadow:none}

/* Home: sports first, one clear hierarchy. */
.home-layout{grid-template-columns:minmax(0,1fr) minmax(200px,220px);gap:24px}
.home-layout--no-rail{grid-template-columns:minmax(0,1fr)}
.home-main{min-width:0}
.home-hero{min-height:112px;padding:20px 24px;border:0;border-radius:var(--radius-lg);background:linear-gradient(118deg,var(--hfa-navy),#0b467b);box-shadow:none}
.home-hero-brand{gap:14px}.home-hero-logo{width:62px;height:62px}.home-hero-kicker{display:block;margin-bottom:5px;color:#8fc7fb;font-size:9px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.home-hero-brand h2{font-size:clamp(24px,2.4vw,34px);letter-spacing:-.035em}.home-hero-short{display:none}.home-hero-context{color:#c4d8eb}.home-hero-season{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.09)}
.home-block{margin-top:20px}.card.home-block{padding:20px}
.home-quick-stats{display:none!important}
.match-spotlight{gap:16px;margin-top:20px}
.spotlight-card{position:relative;min-width:0;padding:18px 20px;gap:13px;border-color:var(--hfa-border);border-radius:var(--radius-lg);background:var(--hfa-surface);box-shadow:none;overflow:hidden}
.spotlight-card--next:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--hfa-primary)}
.spotlight-eyebrow{color:var(--hfa-primary);font-size:10px;letter-spacing:.09em}
.spotlight-teams{gap:12px}.spotlight-team{gap:7px;font-size:13px}.spotlight-team .team-logo{width:50px;height:50px}.spotlight-score{font-size:32px}.spotlight-meta{min-height:18px}
.spotlight-card .btn{min-height:36px;padding-inline:0;border:0;background:transparent;color:var(--hfa-primary)}
.home-standings-leaders{gap:16px;margin-top:20px}.home-standings-leaders>.home-block{margin-top:0}
.home-standings-leaders .card{box-shadow:none}
.home-competitions{padding-bottom:16px!important}.competitions-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.competition-tile{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;min-height:84px;padding:12px;border:1px solid var(--line-soft);border-radius:14px;background:var(--hfa-surface-elevated);color:var(--hfa-text);text-align:left;overflow:hidden}
.competition-tile:hover{border-color:var(--hfa-border)}
.competition-tile-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--hfa-navy);color:#fff;font-size:10px;font-weight:900}
.competition-tile>span:nth-child(2){display:grid;min-width:0}.competition-tile small{color:var(--hfa-primary);font-size:9px;font-style:normal;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.competition-tile strong{overflow:hidden;margin:2px 0;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.competition-tile em{color:var(--muted);font-size:10px;font-style:normal}
.competition-tile>i{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--line-soft)}.competition-tile>i:after{content:"";display:block;width:var(--progress);height:100%;background:var(--hfa-primary)}.competition-tile>b{color:var(--muted);font-size:20px}
.home-news{margin-top:20px;border-color:var(--hfa-border);box-shadow:none}
.home-ad-slot .promo-card{border-radius:var(--radius-lg);box-shadow:none}

/* Competition catalogue. */
.competition-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.competition-catalog-card{display:grid;gap:20px;min-width:0;padding:22px}
.competition-catalog-top{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:start;gap:14px;min-width:0}
.competition-catalog-mark{display:grid;place-items:center;width:56px;height:56px;overflow:hidden;border-radius:16px;background:var(--hfa-navy);color:#fff;font-size:13px;font-weight:900}.competition-catalog-mark img{width:100%;height:100%;padding:7px;background:var(--hfa-surface);object-fit:contain}
.competition-catalog-top>div{min-width:0}.competition-catalog-kicker{color:var(--hfa-primary);font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.competition-catalog-card h3{margin:4px 0 3px;font-size:19px;letter-spacing:-.02em}.competition-catalog-card p{margin:0;color:var(--muted);font-size:12px}
.competition-catalog-status{padding:5px 8px;border-radius:999px;background:var(--gray-bg);color:var(--gray-ink);font-size:10px;font-weight:800}.competition-catalog-status.is-active{background:var(--ok-bg);color:var(--ok-ink)}
.competition-catalog-progress{position:relative;display:flex;align-items:center;gap:18px;padding-bottom:12px;color:var(--muted);font-size:11px}.competition-catalog-progress span{white-space:nowrap}.competition-catalog-progress b{color:var(--text)}.competition-catalog-progress i{position:absolute;left:0;right:0;bottom:0;height:4px;border-radius:99px;background:var(--line-soft);overflow:hidden}.competition-catalog-progress i:after{content:"";display:block;width:var(--progress);height:100%;border-radius:inherit;background:var(--hfa-primary)}
.competition-catalog-card .card-actions{margin-top:auto}.competition-catalog-card .competition-public-action{padding-inline:14px;text-decoration:none}

/* Player profile: compact identity and progressive disclosure. */
.player-profile-pagehead{margin-bottom:12px}.player-profile-pagehead .btn:first-child{border:0;padding-left:0;background:transparent;color:var(--muted)}
.player-profile-hero{grid-template-columns:auto minmax(0,1fr) minmax(330px,auto);gap:22px;min-height:174px;padding:24px 26px;border-radius:var(--radius-lg);background:linear-gradient(118deg,var(--hfa-navy),#0b477c);box-shadow:none}
.player-profile-avatar .player-avatar{width:106px;height:118px;border:3px solid rgba(255,255,255,.18);border-radius:18px}
.player-profile-overline{display:block;margin-bottom:6px;color:#89c1f5;font-size:9px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.player-profile-name h2{font-size:clamp(26px,2.5vw,36px);letter-spacing:-.035em}.player-profile-country{display:flex;align-items:center;gap:10px;margin-top:7px;color:var(--on-navy-muted);font-size:12px}.player-profile-country>span+span{padding-left:10px;border-left:1px solid rgba(255,255,255,.18)}
.player-profile-team{margin-top:13px}.player-profile-team .team-identity{font-size:13px}
.player-profile-performance{display:grid;grid-template-columns:repeat(3,minmax(86px,1fr));align-self:center;gap:8px;margin:0}.player-profile-performance>div{display:grid;align-content:center;min-width:0;min-height:92px;padding:12px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(255,255,255,.07);text-align:center}.player-profile-performance>div>span{margin-bottom:7px;font-size:9px}.player-profile-performance strong{font-size:24px}.player-profile-performance .category-badge{justify-self:center}
.player-profile-tabs{position:relative;gap:22px;margin:12px 0 0;border-bottom-color:var(--hfa-border)}.player-profile-tabs button{min-height:50px;padding:10px 1px;border-bottom-width:3px;font-size:12px}.player-profile-tabs button.active{color:var(--hfa-text)}
.profile-filters-disclosure{margin:12px 0 18px;border:1px solid var(--hfa-border);border-radius:14px;background:var(--hfa-surface)}.profile-filters-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;padding:10px 14px;color:var(--hfa-text);font-size:12px;font-weight:800;cursor:pointer;list-style:none}.profile-filters-disclosure>summary::-webkit-details-marker{display:none}.profile-filters-disclosure>summary:after{content:"⌄";color:var(--muted);font-size:16px}.profile-filters-disclosure[open]>summary:after{transform:rotate(180deg)}.profile-filters-disclosure>summary small{margin-left:auto;color:var(--muted);font-size:10px;font-weight:650}.profile-filters-disclosure>div{padding:0 14px 14px;border-top:1px solid var(--line-soft)}
.profile-scope{margin-top:14px}.player-profile-filters{margin-top:8px}.player-profile-filters select{min-height:44px;border-color:var(--hfa-border);border-radius:12px}
.player-profile-grid{gap:16px}.player-profile-overview{grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr)}.player-profile-grid .section{padding:20px}.player-profile-grid h3,.player-profile-tab-panel h3{margin:2px 0 0}
.player-profile-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}.player-profile-stats>div{padding:16px 12px;border-color:var(--hfa-border);border-radius:14px}.player-profile-stats span{font-size:9px}.player-profile-stats strong{font-size:23px}
.player-match-row{grid-template-columns:minmax(0,1fr) auto auto}.player-match-row strong{min-width:0}.player-match-chips span{border-radius:8px}
.profile-details{margin-top:16px;overflow:hidden}.profile-details>summary,.competition-awards-disclosure>summary{display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:12px 18px;font-weight:800;cursor:pointer;list-style:none}.profile-details>summary::-webkit-details-marker,.competition-awards-disclosure>summary::-webkit-details-marker{display:none}.profile-details-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:20px;border-top:1px solid var(--line-soft)}.profile-details-content>section{min-width:0}.profile-details-content .card{border:0;background:transparent}.profile-details-content .section{padding:0}.profile-details-content .card+.card{margin-top:14px}

/* Competition hub. */
.competition-parent-back{border:0;padding-left:0;background:transparent;color:var(--muted)}
.competition-detail-hero{min-height:132px;padding:22px 24px;border:0;border-radius:var(--radius-lg);background:linear-gradient(118deg,var(--hfa-navy),#0b477c);box-shadow:none}
.competition-detail-hero:after{display:none}.competition-detail-mark{flex-basis:68px;width:68px;height:68px;border-radius:18px}.competition-detail-identity{gap:16px}.competition-detail-identity h1{font-size:clamp(25px,2.7vw,36px)}.competition-detail-subtitle{margin:6px 0 0;color:var(--on-navy-muted);font-size:12px}.competition-detail-status{display:inline-flex;margin-top:10px;color:#7be0b3;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.competition-detail-tabs{position:relative;gap:24px;margin:8px 0 20px;padding:0;border:0;border-bottom:1px solid var(--hfa-border);border-radius:0;background:transparent}.competition-detail-tabs button{min-height:50px;padding:10px 1px;border-bottom:3px solid transparent;border-radius:0}.competition-detail-tabs button.active{border-color:var(--hfa-primary);background:transparent;box-shadow:none;color:var(--hfa-text)}
.competition-progress-card{display:grid;grid-template-columns:minmax(180px,auto) minmax(180px,1fr) auto;align-items:center;gap:18px;margin-bottom:16px;padding:16px 18px}.competition-progress-card>div:first-child{display:grid;gap:3px}.competition-progress-card span{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em}.competition-progress-card strong{font-size:15px}.competition-progress-card>b{font-size:18px}.competition-progress-track{height:6px;border-radius:99px;background:var(--line-soft);overflow:hidden}.competition-progress-track i{display:block;width:var(--progress);height:100%;border-radius:inherit;background:var(--hfa-primary)}
.competition-summary-metrics{display:none}.competition-rounds-grid{gap:16px}.competition-rounds-grid--priority{margin-bottom:16px}.competition-round-panel,.competition-standings-preview,.competition-leaders,.competition-form{border-color:var(--hfa-border);box-shadow:none}.competition-round-panel{padding:18px}.competition-round-panel>header{margin-bottom:12px}.competition-match-card{border-color:var(--hfa-border);box-shadow:none}.competition-match-card:hover{box-shadow:none;transform:none}.competition-match-meta{background:transparent}.competition-match-teams{padding:5px 10px}.competition-match-teams>div{min-height:39px}
.competition-leaders article{border:0;border-bottom:1px solid var(--line-soft);border-radius:0;background:transparent}.competition-leaders article:last-child{border-bottom:0}.competition-form article{border-color:var(--line-soft)}
.competition-awards-disclosure{margin-top:16px}.competition-awards-disclosure>div{padding:18px;border-top:1px solid var(--line-soft)}

/* Bracket: connected tree on desktop, explicit rounds on mobile. */
.bracket-mobile-nav{display:none}.bracket-champion{display:flex;align-items:center;gap:12px;margin:16px 22px 0;padding:12px 14px;border:1px solid var(--accent-soft-line);border-radius:14px;background:var(--accent-soft-bg)}.bracket-champion>span{color:var(--accent-ink);font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.bracket-champion .team-identity{flex:1;font-weight:850}.bracket-champion>b{color:var(--gold);font-size:20px}
.cup-bracket-section{border-color:var(--hfa-border)}.cup-bracket-head{background:var(--hfa-surface)}.cup-bracket-scroll{background:linear-gradient(90deg,color-mix(in srgb,var(--hfa-border) 38%,transparent) 1px,transparent 1px),linear-gradient(color-mix(in srgb,var(--hfa-border) 38%,transparent) 1px,transparent 1px),var(--hfa-surface-elevated);background-size:24px 24px}.bracket-match{box-shadow:none}

/* More sheet groups. */
.mobile-sheet-group{display:grid}.mobile-sheet-group+.mobile-sheet-group{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
.mobile-sheet-group-label{padding:7px 8px 4px;color:var(--muted);font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.mobile-sheet nav .mobile-sheet-group button:last-child{border-bottom:0}

@media(max-width:1099px){
 .home-layout{grid-template-columns:minmax(0,1fr)}.home-ad-rail{display:grid;grid-template-columns:minmax(0,1fr)}.competition-catalog{grid-template-columns:1fr}
 .player-profile-hero{grid-template-columns:auto minmax(0,1fr)}.player-profile-performance{grid-column:1/-1;width:100%}
}
@media(min-width:761px) and (max-width:1099px){:root{--shell-sidebar:78px}.sidebar .nav button{font-size:0}.sidebar .nav .ico{font-size:13px}}

@media(max-width:760px){
 :root{--mobile-nav-height:66px;--mobile-nav-total:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom))}
 body{font-size:14px}.content{padding:12px 14px calc(var(--mobile-nav-total) + 24px)}
 .topbar{height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 14px 0}.topbar-leading,.top-actions{height:58px}.mobile-brand img{width:32px;height:32px}.mobile-brand strong{font-size:15px}.top-title h2{font-size:15px}
 body[data-page="dashboard"] .top-actions #seasonBadge.mobile-season-chip{display:inline-flex!important;max-width:104px;min-height:30px;border:0;background:transparent;color:var(--muted)}
 body:not([data-page="dashboard"]) .top-actions #seasonBadge{display:none!important}
 .mobile-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));height:var(--mobile-nav-total);padding:4px 4px env(safe-area-inset-bottom);background:color-mix(in srgb,var(--hfa-surface) 96%,transparent);box-shadow:0 -8px 26px rgba(6,22,38,.08)}
 .mobile-bottom-nav button{position:relative;min-height:58px;border-radius:10px;background:transparent!important;font-size:9px;font-weight:750}.mobile-bottom-nav button svg{width:21px;height:21px}.mobile-bottom-nav button.active{color:var(--hfa-primary)}.mobile-bottom-nav button.active svg{filter:drop-shadow(0 2px 5px color-mix(in srgb,var(--hfa-primary) 30%,transparent))}.mobile-bottom-nav button.active:before{content:"";position:absolute;top:1px;width:18px;height:3px;border-radius:99px;background:var(--hfa-primary)}
 .mobile-sheet{padding-inline:14px;border-radius:22px 22px 0 0}.mobile-sheet header{padding-inline:4px}.mobile-sheet h2{font-size:21px}.mobile-sheet nav{padding-top:4px}.mobile-sheet nav button{min-height:52px;padding-inline:8px}
 .pagehead{margin-bottom:18px}.pagehead h2{font-size:26px}.pagehead p{font-size:12px}.page-kicker{margin-bottom:4px}
 .card{border-radius:var(--radius-md)}.section{padding:16px}.btn,.btn.small{min-height:44px}

 /* Mobile Home */
 body[data-page="dashboard"] .content{padding-top:10px}.home-layout{gap:16px}.home-hero{min-height:92px;padding:14px 16px;border-radius:16px}.home-hero-brand{gap:11px}.home-hero-logo{width:48px;height:48px}.home-hero-kicker{font-size:8px}.home-hero-brand h2{font-size:24px}.home-hero-full{display:none}.home-hero-short{display:inline}.home-hero-context{max-width:220px;margin-top:2px;font-size:11px}.home-hero-season{display:none}
 .home-block{margin-top:16px}.card.home-block{padding:16px}.match-spotlight{grid-template-columns:1fr;gap:12px;margin-top:16px}.spotlight-card{padding:15px 16px;gap:10px}.spotlight-card--next{min-height:214px}.spotlight-teams{gap:8px}.spotlight-team{font-size:12px}.spotlight-team .team-logo{width:48px;height:48px}.spotlight-score{font-size:30px}.spotlight-vs-date{max-width:100px;font-size:10px}.spotlight-meta{font-size:11px}.spotlight-card .btn{align-self:stretch;justify-content:space-between;text-align:left}
 .home-competitions{padding-bottom:12px!important}.competitions-grid{grid-template-columns:1fr}.competition-tile{min-height:76px}.home-standings-leaders{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:16px}.leaders-grid{grid-template-columns:1fr}.home-news{padding:16px}.home-ad-rail{grid-template-columns:1fr}.home-ad-slot{max-width:420px;margin-inline:auto}
 .mini-standings{overflow:hidden}.mini-standings .table{width:100%;table-layout:auto}.mini-standings .table th,.mini-standings .table td{padding:8px 5px}.mini-standings .team-identity-name{max-width:116px}

 /* Mobile competition catalogue */
 .competitions-pagehead{align-items:flex-start}.competitions-pagehead .actions{display:flex}.competition-catalog{gap:12px}.competition-catalog-card{gap:16px;padding:17px 16px}.competition-catalog-top{grid-template-columns:50px minmax(0,1fr);gap:12px}.competition-catalog-mark{width:50px;height:50px;border-radius:14px}.competition-catalog-status{grid-column:2;justify-self:start}.competition-catalog-card h3{font-size:18px}.competition-catalog-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px}.competition-catalog-progress span:last-of-type{grid-column:1/-1}.competition-catalog-card .card-actions{display:flex}.competition-catalog-card .competition-public-action{flex:1}.competition-admin-actions>summary{min-width:44px}

 /* Mobile player profile */
 .player-profile-pagehead{display:none}.player-profile-hero{grid-template-columns:76px minmax(0,1fr);gap:14px;min-height:0;margin-inline:-14px;padding:18px 16px 16px;border-radius:0;background:linear-gradient(125deg,var(--hfa-navy),#0c4779);text-align:left}.player-profile-avatar .player-avatar{width:76px;height:86px;margin:0;border-width:2px;border-radius:15px}.player-profile-main{min-width:0}.player-profile-overline{font-size:8px}.player-profile-name{justify-content:flex-start;gap:6px}.player-profile-name h2{max-width:100%;overflow:hidden;font-size:24px;text-overflow:ellipsis;white-space:nowrap}.player-profile-country{margin-top:4px}.player-profile-team{margin-top:9px}.player-profile-team .team-identity{justify-content:flex-start}.player-profile-team .team-logo{width:25px;height:25px}.player-profile-performance{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.player-profile-performance>div{min-height:70px;padding:9px 5px;border-radius:12px}.player-profile-performance>div>span{margin-bottom:4px;font-size:8px}.player-profile-performance strong{font-size:21px}.player-profile-performance small{display:none}.player-profile-performance .category-badge{font-size:15px}
 .player-profile-performance .category-badge{padding:0;background:transparent;color:#fff;font-size:21px}.player-profile-tabs{position:sticky;z-index:7;top:calc(58px + env(safe-area-inset-top));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0 -14px;padding:0 14px;background:var(--hfa-bg)}.player-profile-tabs button{min-width:0;padding-inline:2px;font-size:10px}.profile-filters-disclosure{margin:12px 0}.profile-filters-disclosure>summary{align-items:flex-start;flex-direction:column;gap:2px;padding-right:38px}.profile-filters-disclosure>summary:after{position:absolute;right:28px}.profile-filters-disclosure>summary small{max-width:100%;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-scope{width:100%}.player-profile-filters{display:grid}.player-profile-filters label{min-width:0}.player-profile-overview{grid-template-columns:1fr}.player-profile-grid .section{padding:16px}.player-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.player-profile-stats>div{padding:14px 8px}.player-match-row{grid-template-columns:minmax(0,1fr) auto}.player-match-chips{grid-column:1/-1;justify-content:flex-start}.profile-details-content{grid-template-columns:1fr;padding:16px}.profile-details-content>section+section{padding-top:16px;border-top:1px solid var(--line-soft)}

 /* Mobile competition hub and standings */
 .competition-parent-back{display:none}.competition-detail-hero{min-height:0;margin-inline:-14px;padding:16px;border-radius:0}.competition-detail-identity{display:flex;align-items:center;gap:12px}.competition-detail-mark{flex-basis:54px;width:54px;height:54px;border-radius:15px}.competition-detail-identity h1{font-size:24px}.competition-detail-identity .kicker{font-size:8px}.competition-detail-subtitle{font-size:10px}.competition-detail-status{margin-top:7px;font-size:8px}.competition-detail-actions{grid-column:1/-1}
 .competition-detail-tabs{position:sticky;top:calc(58px + env(safe-area-inset-top));gap:22px;margin:0 -14px 14px;padding:0 14px;background:var(--hfa-bg)}.competition-detail-tabs button{min-height:50px;padding-inline:0}.competition-progress-card{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px}.competition-progress-track{grid-column:1/-1;grid-row:2}.competition-progress-card>b{grid-column:2;grid-row:1}.competition-rounds-grid{grid-template-columns:1fr}.competition-rounds-grid--priority{display:flex;flex-direction:column}.competition-rounds-grid--priority>.competition-round-panel:first-child{order:-1}.competition-round-panel{padding:15px}.competition-overview-grid{grid-template-columns:1fr}.competition-standings-preview,.competition-leaders,.competition-form{padding:15px}
 #page-competition-detail[data-competition-panel="standings"] .table,#page-competition-detail[data-competition-panel="groups"] .table,.competition-standings-preview .table{min-width:0;width:100%}
 #page-competition-detail[data-competition-panel="standings"] .table th:nth-child(n),#page-competition-detail[data-competition-panel="standings"] .table td:nth-child(n),#page-competition-detail[data-competition-panel="groups"] .table th:nth-child(n),#page-competition-detail[data-competition-panel="groups"] .table td:nth-child(n),.competition-standings-preview .table th:nth-child(n),.competition-standings-preview .table td:nth-child(n){display:none}
 #page-competition-detail[data-competition-panel="standings"] .table :is(th,td):nth-child(1),#page-competition-detail[data-competition-panel="standings"] .table :is(th,td):nth-child(2),#page-competition-detail[data-competition-panel="standings"] .table :is(th,td):nth-child(3),#page-competition-detail[data-competition-panel="standings"] .table :is(th,td):nth-child(9),#page-competition-detail[data-competition-panel="standings"] .table :is(th,td):nth-child(10),#page-competition-detail[data-competition-panel="groups"] .table :is(th,td):nth-child(1),#page-competition-detail[data-competition-panel="groups"] .table :is(th,td):nth-child(2),#page-competition-detail[data-competition-panel="groups"] .table :is(th,td):nth-child(3),#page-competition-detail[data-competition-panel="groups"] .table :is(th,td):nth-child(9),#page-competition-detail[data-competition-panel="groups"] .table :is(th,td):nth-child(10),.competition-standings-preview .table :is(th,td):nth-child(1),.competition-standings-preview .table :is(th,td):nth-child(2),.competition-standings-preview .table :is(th,td):nth-child(3),.competition-standings-preview .table :is(th,td):nth-child(9),.competition-standings-preview .table :is(th,td):nth-child(10){display:table-cell}
 #page-competition-detail .table th,#page-competition-detail .table td{padding:10px 5px;font-size:11px}.competition-standings-preview .team-identity-name{max-width:112px}

 /* A dedicated round view, not the desktop tree reduced. */
 .cup-bracket-section{margin-inline:-2px;border-radius:16px}.cup-bracket-head{padding:16px;border-bottom:0}.cup-bracket-head h3{font-size:18px}.cup-bracket-hint{display:none}.bracket-champion{margin:0 14px 14px}.bracket-mobile-nav{display:flex;gap:5px;padding:0 14px 14px;overflow-x:auto}.bracket-mobile-nav button{flex:1 0 auto;min-height:40px;padding:7px 12px;border:1px solid var(--hfa-border);border-radius:10px;background:var(--hfa-surface);color:var(--muted);font-size:10px;font-weight:800}.bracket-mobile-nav button.active{border-color:var(--accent-soft-line);background:var(--accent-soft-bg);color:var(--accent-ink)}
 .cup-bracket-scroll{max-width:none;padding:0 14px 18px;overflow:visible;background:var(--hfa-surface)}.bracket{display:block;width:100%;min-width:0;margin:0;padding:0}.bracket:before{display:none}.bracket-round{display:none;width:100%;min-width:0}.bracket-round.is-mobile-active{display:block}.bracket-round>header{height:auto;margin:0 0 10px;padding:10px 2px}.bracket-round-grid{display:grid;height:auto!important;grid-template-rows:none!important;gap:12px}.bracket-tie{display:block;grid-row:auto!important}.bracket-tie:before,.bracket-tie:after,.bracket-match:after{display:none!important}.bracket-match{border-radius:14px}.bracket-team{min-height:48px}.bracket-match footer{min-height:30px}.bracket-tie+.bracket-tie:before{display:none}.bracket-round.is-final-round .bracket-match{border-color:var(--accent-soft-line)}
 .competition-stat-cards{grid-template-columns:1fr 1fr}.competition-stat-cards article{padding:13px}.competition-stat-cards article>strong{font-size:18px}
}

@media(max-width:430px){
 .content{padding-inline:12px}.home-hero,.player-profile-hero,.competition-detail-hero{margin-inline:-12px}.home-hero{margin-inline:0}.competition-detail-tabs,.player-profile-tabs{margin-inline:-12px;padding-inline:12px}
 .spotlight-card{padding-inline:14px}.spotlight-team span{max-width:108px}.competition-catalog-progress{font-size:10px}.competition-catalog-top{grid-template-columns:46px minmax(0,1fr)}.competition-catalog-mark{width:46px;height:46px}.competition-catalog-status{grid-column:1/-1}
 .player-profile-name h2{font-size:22px}.player-profile-performance strong{font-size:20px}.player-profile-tabs button{font-size:9px}.competition-detail-tabs{gap:18px}.competition-detail-tabs button{font-size:10px}
}

@media(max-width:390px){
 .content{padding-inline:10px}.home-hero,.player-profile-hero,.competition-detail-hero{margin-inline:-10px}.home-hero{margin-inline:0}.competition-detail-tabs,.player-profile-tabs{margin-inline:-10px;padding-inline:10px}.mobile-bottom-nav{padding-inline:2px}.mobile-bottom-nav button{font-size:8px}.mobile-bottom-nav button span{max-width:68px}.spotlight-team span{max-width:96px}.competition-tile{grid-template-columns:38px minmax(0,1fr) auto}.competition-tile-mark{width:38px;height:38px}
}

@media(min-width:1280px){.home-hero{padding-inline:28px}.competition-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1440px){.content{padding-inline:38px}.match-spotlight{gap:18px}}
@media(prefers-reduced-motion:reduce){.competition-tile>i:after,.competition-catalog-progress i:after,.competition-progress-track i{transition:none}}
