/* MFCL public website design system.
   Ported from the MRL NA website's visual language (dark surfaces, green accent,
   Inter typography, card/table/pill primitives) and rebuilt as plain CSS classes
   because the MFCL server sends a strict Content-Security-Policy with no inline
   styles. Business rules never live here. */

:root {
  color-scheme: dark;
  --bg: #111111;
  --surface: #1a1a1a;
  --surface2: #222222;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --accent: #41DB90;
  --accent-dim: rgba(65,219,145,0.12);
  --accent-ink: #0d1712;
  --text: #e8e8e8;
  --text-dim: #888;
  --text-muted: #555;
  --nav-bg: #161616;
  --win: #41DB90;
  --loss: #f87171;
  --draw: #a0a0a0;
  --blue: #60a5fa;
  --gold: #f0b429;
  --amber: #f59e0b;
  --purple: #a78bfa;
  --discord: #5865F2;
  --radius: 8px;
  --nav-height: 50px;
  --ticker-height: 36px;
  --tab-bar-height: 62px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-y: scroll; -webkit-text-size-adjust: 100%; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.45;
}
body { display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page-fade-in { animation: pageFadeIn .22s ease forwards; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ── Layout ─────────────────────────────────────────────── */
#page-body { flex: 1 0 auto; }
.container { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }
.container.wide { max-width: 1200px; }
.container.xwide { max-width: 1400px; }
.container.narrow { max-width: 920px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.lg { gap: 24px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.bold { font-weight: 700; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-16 { margin-bottom: 16px; }

/* ── Site header / navigation ─────────────────────────── */
.site-header { background: var(--nav-bg); border-bottom: 1px solid var(--border2); position: sticky; top: 0; z-index: 1000; }
.site-nav { display: flex; align-items: center; max-width: 1400px; margin: 0 auto; height: var(--nav-height); padding: 0 20px; gap: 6px; min-width: 0; }
.site-logo { width: 104px; height: 42px; margin-right: 14px; flex-shrink: 0; display: flex; align-items: center; }
.site-logo img { width: 104px; height: 42px; object-fit: contain; }
.site-wordmark { font-weight: 900; letter-spacing: .04em; font-size: 15px; margin-right: 10px; color: #fff; display: none; }
.nav-desktop, .nav-tablet { list-style: none; display: none; gap: 1px; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; align-items: center; }
.nav-link { color: #ccc; font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; padding: 5px 9px; border-radius: 5px; display: block; white-space: nowrap; transition: color .15s, background .15s; background: transparent; border: 0; }
.nav-link:hover { color: #e8e8e8; background: rgba(255,255,255,0.06); }
.nav-link.active, .nav-link[aria-current="page"] { color: var(--accent); font-weight: 700; background: rgba(65,219,145,0.12); }
.nav-more { position: relative; }
.nav-more-menu { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); width: 420px; max-width: calc(100vw - 40px); background: linear-gradient(145deg, #242424 0%, #1b1b1b 100%); box-shadow: 0 18px 48px rgba(0,0,0,0.62); border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); z-index: 1001; padding: 14px; }
.nav-more-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 4px 12px; }
.nav-more-head strong { display: flex; align-items: center; gap: 7px; color: #eee; font-size: 13px; font-weight: 800; }
.nav-more-head strong span { color: var(--accent); }
.nav-more-head small { display: block; margin-top: 3px; color: #777; font-size: 10px; }
.nav-more-tag { color: var(--accent); background: rgba(65,219,145,0.09); border: 1px solid rgba(65,219,145,0.2); border-radius: 999px; padding: 4px 8px; font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
.nav-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.nav-more-group { min-width: 0; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07); border-radius: 9px; padding: 7px; }
.nav-more-group h4 { display: flex; align-items: center; gap: 7px; padding: 5px 7px 7px; color: #888; font-size: 9px; font-weight: 850; letter-spacing: 1.25px; text-transform: uppercase; }
.nav-more-link { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 7px; color: #c6c6c6; font-size: 12px; font-weight: 550; transition: color .15s, background .15s, transform .15s; }
.nav-more-link:hover { color: #f2f2f2; background: rgba(255,255,255,0.065); transform: translateX(2px); }
.nav-more-link.active { color: var(--accent); font-weight: 750; background: rgba(65,219,145,0.11); }
.nav-more-link .icon { width: 27px; height: 27px; border-radius: 6px; background: rgba(255,255,255,0.055); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.nav-account { flex-shrink: 0; position: relative; min-width: 0; display: none; }
.nav-account.mobile { margin-left: auto; flex-shrink: 1; }
.account-skeleton { width: 90px; height: 34px; border-radius: 6px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.account-button { display: flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; overflow: hidden; background: rgba(255,255,255,0.06); border: 1px solid var(--border2); border-radius: 6px; padding: 5px 10px 5px 6px; color: var(--text); transition: background .15s; }
.account-button:hover, .account-button[aria-expanded="true"] { background: rgba(255,255,255,0.1); }
.account-button.round { border-radius: 20px; padding: 4px 10px 4px 4px; max-width: min(145px, 42vw); }
.account-button .name { font-size: 12px; font-weight: 600; min-width: 0; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-button svg { opacity: .5; transition: transform .15s; }
.account-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.account-role { font-size: 9px; background: var(--accent); color: #111; border-radius: 3px; padding: 1px 5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.account-role.staff { background: var(--amber); }
.account-role.pending { background: var(--amber); }
.avatar { border-radius: 50%; background: var(--discord); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex-shrink: 0; object-fit: cover; overflow: hidden; }
.avatar.neutral { background: var(--surface2); color: var(--text-dim); }
.discord-button { background: rgba(88,101,242,0.9); color: #fff; padding: 7px 14px; border-radius: 4px; font-weight: 700; font-size: 11px; letter-spacing: .3px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; border: 0; }
.discord-button:hover { background: var(--discord); }
.discord-button.large { padding: 12px 24px; font-size: 15px; border-radius: 8px; gap: 10px; width: 100%; justify-content: center; }
.account-menu { position: absolute; top: calc(100% + 6px); right: 0; background: #1e1e1e; min-width: 210px; box-shadow: 0 8px 32px rgba(0,0,0,0.6); border-radius: 8px; border: 1px solid rgba(255,255,255,0.13); overflow: hidden; z-index: 1001; }
.account-menu-head { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 10px; }
.account-menu-head strong { font-size: 13px; font-weight: 700; display: block; }
.account-menu-head small { font-size: 10px; color: var(--text-dim); text-transform: capitalize; }
.account-menu a, .account-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 11px 14px; font-size: 13px; color: #ccc; border-bottom: 1px solid rgba(255,255,255,0.06); background: transparent; border-left: 0; border-right: 0; border-top: 0; text-align: left; transition: background .1s; }
.account-menu a:hover, .account-menu button:hover { background: rgba(255,255,255,0.06); }
.account-menu a.accent { color: var(--accent); }
.account-menu a.staff { color: var(--amber); }
.account-menu button.danger { color: var(--loss); border-bottom: 0; }
.nav-mobile-bottom { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--nav-bg); border-top: 1px solid var(--border2); height: var(--tab-bar-height); padding-bottom: env(safe-area-inset-bottom, 0); }
.nav-mobile-bottom a, .nav-mobile-bottom button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #606060; background: none; border: 0; padding-bottom: 2px; }
.nav-mobile-bottom span { font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.nav-mobile-bottom .active { color: var(--accent); }
.nav-mobile-bottom .active span { font-weight: 700; }
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1001; }
.drawer-overlay.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1002; width: min(280px, 88vw); background: #1c1c1c; border-left: 1px solid var(--border2); overflow-y: auto; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s cubic-bezier(.4,0,.2,1); }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border2); flex-shrink: 0; }
.drawer-head .brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.drawer-head .brand img { width: 104px; height: 42px; object-fit: contain; }
.drawer-head span.label { font-size: 13px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
.drawer-close { background: none; border: 0; color: #888; padding: 6px; display: flex; }
.drawer-body { flex: 1; padding: 8px 0 80px; }
.drawer-section h4 { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: #4a4a4a; padding: 10px 18px 4px; }
.drawer-link { display: flex; align-items: center; gap: 11px; padding: 11px 18px; color: #c0c0c0; font-size: 14px; border-left: 3px solid transparent; transition: all .12s; background: none; border-top: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.drawer-link:hover { background: rgba(255,255,255,0.05); border-left-color: rgba(255,255,255,0.15); }
.drawer-link.active { color: var(--accent); font-weight: 700; background: rgba(65,219,145,0.07); border-left-color: var(--accent); }
.drawer-link .icon { width: 20px; text-align: center; }
.drawer-link.danger { color: var(--loss); }
.drawer-identity { display: flex; align-items: center; gap: 14px; padding: 20px 18px; border-bottom: 1px solid var(--border); }
.drawer-identity strong { font-size: 16px; font-weight: 800; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-identity small { font-size: 11px; color: var(--text-dim); text-transform: capitalize; }
@media (min-width: 1200px) { .nav-desktop, .nav-account.wide { display: flex; } .nav-account.wide { max-width: 235px; } }
@media (min-width: 769px) and (max-width: 1199px) { .nav-tablet, .nav-account.wide { display: flex; } .nav-tablet .nav-link { padding: 5px 7px; font-size: 11px; } .nav-account.wide { max-width: 165px; } .account-role { display: none; } }
@media (max-width: 768px) {
  .site-nav { padding: 0 12px; gap: 8px; }
  .site-logo { margin-right: 0; }
  .nav-account.mobile, .nav-mobile-bottom { display: flex; }
  #page-body { padding-bottom: var(--tab-bar-height); }
  .site-footer { margin-bottom: 0; }
}

/* ── Activity ticker ────────────────────────────────────── */
.ticker-wrap { width: 100%; background: #090909; border-bottom: 1px solid rgba(65,219,144,0.14); height: var(--ticker-height); display: flex; overflow: hidden; z-index: 40; }
.ticker-wrap[hidden] { display: none; }
.ticker-label { padding: 0 16px 0 18px; font-size: 10px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); border-right: 1px solid rgba(65,219,144,0.2); height: 100%; display: flex; align-items: center; gap: 7px; background: #090909; z-index: 2; flex-shrink: 0; }
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: tickerPulse 1.6s ease-in-out infinite; }
@keyframes tickerPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.65); } }
.ticker-track-wrap { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center; }
.ticker-track-wrap::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 80px; background: linear-gradient(to right, transparent, #090909); pointer-events: none; }
.ticker-track { display: flex; width: max-content; animation: tickerScroll var(--ticker-duration, 40s) linear infinite; }
.ticker-track-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(calc(-1 * var(--ticker-loop, 50%)),0,0); } }
.ticker-group { display: flex; }
.ticker-item { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.48); white-space: nowrap; position: relative; }
.ticker-item::after { content: ''; position: absolute; right: -1px; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.ticker-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--dot, rgba(255,255,255,0.18)); flex-shrink: 0; }
.ticker-item a, a.ticker-item { color: rgba(255,255,255,0.48); }
a.ticker-item:hover { color: rgba(255,255,255,0.92); }
.ticker-item .icon { font-size: 13px; }
@media (max-width: 768px) { .ticker-wrap { height: 34px; } .ticker-label { padding: 0 12px 0 14px; font-size: 9px; letter-spacing: 1.6px; } .ticker-item { padding: 0 10px; font-size: 11px; gap: 5px; } .ticker-track-wrap::after { width: 56px; } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-dot { animation: none; } }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { margin-top: 60px; padding: 32px 20px 24px; text-align: center; font-size: 12px; color: #444; border-top: 1px solid rgba(255,255,255,0.05); }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.site-footer nav a { color: var(--text-muted); }
.site-footer nav a:hover { color: var(--text-dim); }
.site-footer .logo { display: block; width: 132px; height: 54px; object-fit: contain; margin: 0 auto 20px; }

/* ── Page primitives ────────────────────────────────────── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-header-copy { min-width: 0; }
.page-title { color: var(--text); font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.page-description { max-width: 720px; margin-top: 5px; color: var(--text-dim); font-size: 12px; line-height: 1.5; }
.page-meta { margin-top: 5px; color: var(--text-dim); font-size: 12px; font-weight: 500; line-height: 1.45; }
.page-controls { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.breadcrumb { margin-bottom: 16px; font-size: 12px; color: var(--text-dim); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .current { color: var(--text); }
.back-link { font-size: 13px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; opacity: .8; }
.back-link:hover { opacity: 1; color: var(--text); }
.select { min-height: 34px; padding: 7px 34px 7px 12px; border: 1px solid var(--border2); border-radius: 7px; background: var(--surface2); color: var(--text); font-size: 13px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.select:hover { border-color: rgba(255,255,255,0.24); }
.filter-shell { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.filter-primary { display: flex; flex: 1 1 220px; min-width: 180px; }
.filter-details { display: contents; }
.filter-summary { display: none; }
.filter-content { display: flex; flex: 0 1 auto; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-control { min-height: 36px; min-width: 140px; padding: 7px 12px; border: 1px solid var(--border2); border-radius: 7px; background: var(--surface2); color: var(--text); font-size: 13px; }
input.filter-control { width: 100%; min-width: 180px; }
select.filter-control { padding-right: 32px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.filter-control:hover { border-color: rgba(255,255,255,0.24); }
.filter-count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent-dim); color: var(--accent); font-size: 11px; align-items: center; justify-content: center; }
.filter-chevron { margin-left: auto; color: var(--text-dim); font-size: 16px; transition: transform .15s ease; }
.showing-line { margin: -6px 0 18px; font-size: 11px; color: var(--text-dim); line-height: 1.5; }
.showing-line b { color: var(--text); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.pill-button { padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; cursor: pointer; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: #666; transition: all .15s; }
.pill-button:hover { color: #aaa; }
.pill-button.active { border-color: var(--pill, var(--accent)); background: color-mix(in srgb, var(--pill, var(--accent)) 12%, transparent); color: var(--pill, var(--accent)); }
.pill-button.solid.active { background: var(--accent); color: #000; border-color: var(--accent); }
.sort-label { font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: .4px; margin-right: 2px; }
.pill-button.subtle.active { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); color: var(--text); }
.info-note { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 10px 12px; border: 1px solid rgba(65,219,144,0.2); border-radius: 8px; background: rgba(65,219,144,0.055); color: var(--text-dim); font-size: 11px; line-height: 1.5; }
.info-note .icon { flex: 0 0 auto; color: var(--accent); font-size: 13px; font-weight: 800; line-height: 1.35; }
.info-note strong { color: var(--text); font-weight: 700; }
.info-note.amber { border-color: rgba(245,158,11,0.22); background: rgba(245,158,11,0.06); }
.info-note.amber .icon { color: var(--amber); }
.info-note.red { border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.08); color: var(--loss); }
.info-note.red .icon { color: var(--loss); }
.empty-state { display: flex; min-height: 260px; padding: 44px 24px; border: 1px dashed var(--border2); border-radius: 12px; background: radial-gradient(circle at 50% 0%, rgba(65,219,144,0.07), transparent 58%), var(--surface); text-align: center; align-items: center; justify-content: center; }
.empty-state.compact { min-height: 160px; padding: 28px 18px; }
.empty-content { max-width: 480px; }
.empty-icon { display: inline-flex; width: 42px; height: 42px; margin-bottom: 14px; border: 1px solid rgba(65,219,144,0.22); border-radius: 50%; background: var(--accent-dim); color: var(--accent); font-size: 19px; align-items: center; justify-content: center; }
.empty-icon.error { border-color: rgba(248,113,113,0.28); background: rgba(248,113,113,0.1); color: var(--loss); }
.empty-title { color: var(--text); font-size: 16px; font-weight: 800; line-height: 1.3; }
.empty-description { margin-top: 7px; color: var(--text-dim); font-size: 13px; line-height: 1.55; }
.empty-actions { display: flex; margin-top: 18px; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; }
.action, .button { display: inline-flex; min-height: 36px; padding: 8px 15px; border: 1px solid rgba(65,219,144,0.35); border-radius: 8px; background: var(--accent-dim); color: var(--accent); font-size: 12px; font-weight: 750; line-height: 1; align-items: center; justify-content: center; gap: 6px; transition: border-color .15s ease, background .15s ease, transform .15s ease; cursor: pointer; white-space: nowrap; }
.action:hover, .button:hover { border-color: rgba(65,219,144,0.65); background: rgba(65,219,144,0.18); transform: translateY(-1px); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: rgba(65,219,144,0.45); }
.button.primary:hover { background: #55e39d; }
.button.secondary { border-color: var(--border2); background: var(--surface2); color: var(--text); }
.button.secondary:hover { border-color: rgba(255,255,255,0.3); background: #2a2a2a; }
.button.danger { border-color: rgba(231,76,60,0.35); background: rgba(231,76,60,0.12); color: #e74c3c; }
.button.danger:hover { background: rgba(231,76,60,0.2); border-color: rgba(231,76,60,0.6); }
.button.ghost { border-color: transparent; background: transparent; color: var(--text-dim); }
.button.ghost:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.button.large { min-height: 44px; padding: 0 20px; font-size: 12px; font-weight: 850; letter-spacing: .5px; text-transform: uppercase; border-radius: 6px; }
.button.block { width: 100%; }
.button:disabled, .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.loading-state { min-height: 420px; padding: 28px 0; }
.skeleton { border-radius: 6px; background: linear-gradient(90deg, var(--surface2) 25%, rgba(255,255,255,0.075) 50%, var(--surface2) 75%); background-size: 200% 100%; animation: skeletonShimmer 1.5s ease-in-out infinite; }
.skeleton-title { width: min(240px, 58%); height: 26px; }
.skeleton-subtitle { width: min(460px, 84%); height: 13px; margin-top: 10px; }
.skeleton-grid { display: grid; margin-top: 30px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.skeleton-card { min-height: 190px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.skeleton-line { width: 58%; height: 15px; }
.skeleton-line-short { width: 38%; height: 10px; margin-top: 9px; }
.skeleton-block { width: 100%; height: 92px; margin-top: 28px; }
@keyframes skeletonShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.error-state { display: flex; min-height: min(540px, 70vh); padding: 44px 24px; text-align: center; align-items: center; justify-content: center; }
.notice { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; background: var(--surface); font-size: 13px; }
.notice.success { background: rgba(65,219,145,0.1); border-color: rgba(65,219,145,0.3); color: var(--accent); font-weight: 600; }
.notice.error { background: rgba(231,76,60,0.1); border-color: rgba(231,76,60,0.3); color: #e74c3c; font-weight: 600; }
.notice.warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: var(--amber); }
.notice:empty { display: none; }

/* ── Cards, tables, pills ───────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.hoverable { transition: border-color .15s, background .15s, transform .15s; }
.card.hoverable:hover { border-color: var(--border2); background: var(--surface2); }
.card-link { display: block; color: inherit; }
.card-link:hover { border-color: rgba(65,219,145,0.4); }
.section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); border-left: 3px solid var(--accent); padding-left: 10px; margin-bottom: 16px; }
.section-label.gold { color: var(--gold); border-color: var(--gold); }
.section-label.blue { color: var(--blue); border-color: var(--blue); }
.section-label.amber { color: var(--amber); border-color: var(--amber); }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-header .section-label { margin-bottom: 0; }
.section-link { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-dim); }
.section-link:hover { color: var(--accent); }
.section-eyebrow { color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: 1.8px; text-transform: uppercase; }
.section-heading { margin: 8px 0 8px; color: #fff; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.5px; }
.section-intro { margin: 0 0 20px; color: #858585; line-height: 1.55; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.panel-head h2, .panel-head h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--text); }
.panel-head .meta { margin-left: auto; font-size: 11px; color: var(--text-muted); }
.panel-body { padding: 14px 16px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { padding: 8px 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); border-bottom: 1px solid var(--border); white-space: nowrap; text-align: center; background: var(--surface2); }
.table th.left, .table td.left { text-align: left; }
.table th.right, .table td.right { text-align: right; }
.table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text); text-align: center; vertical-align: middle; }
.table tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }
.table tbody tr:hover td { background: var(--surface2); }
.table tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.table th.sorted { color: var(--accent); }
.table td.rank { color: var(--text-dim); font-size: 11px; }
.table td.strong { font-weight: 700; }
.table .total-row td { background: var(--surface2); font-weight: 700; }
.table .total-row td:first-child { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
.win { color: var(--win); } .loss { color: var(--loss); } .draw { color: var(--draw); }
.gold { color: var(--gold); } .blue { color: var(--blue); } .amber { color: var(--amber); } .purple { color: var(--purple); } .accent { color: var(--accent); }
.pos { color: var(--win); } .neg { color: var(--loss); }
.result-chip { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; font-size: 11px; font-weight: 800; }
.result-chip.W { background: rgba(65,219,144,0.2); color: var(--win); }
.result-chip.L { background: rgba(248,113,113,0.2); color: var(--loss); }
.result-chip.D { background: rgba(160,160,160,0.2); color: var(--draw); }
.form-row { display: flex; gap: 3px; justify-content: center; }
.form-square { width: 18px; height: 18px; border-radius: 3px; font-size: 9px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; }
.form-square.W { background: rgba(65,219,144,0.15); color: var(--win); border-color: rgba(65,219,144,0.3); }
.form-square.L { background: rgba(248,113,113,0.15); color: var(--loss); border-color: rgba(248,113,113,0.3); }
.form-square.D { background: rgba(136,136,136,0.15); color: #888; border-color: rgba(136,136,136,0.3); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 8px; white-space: nowrap; color: var(--pill, var(--accent)); background: color-mix(in srgb, var(--pill, var(--accent)) 10%, transparent); border: 1px solid color-mix(in srgb, var(--pill, var(--accent)) 25%, transparent); }
.pill.tag { border-radius: 4px; padding: 1px 5px; font-size: 10px; }
.pill.neutral { --pill: #9a9a9a; }
.pill.gold { --pill: #f0b429; }
.pill.blue { --pill: #60a5fa; }
.pill.amber { --pill: #f59e0b; }
.pill.red { --pill: #f87171; }
.pill.purple { --pill: #a78bfa; }
.pill.slate { --pill: #94a3b8; }
.pill.live { --pill: #ff4444; }
.status-badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-badge.complete { background: rgba(65,219,144,0.12); color: var(--win); }
.status-badge.live { background: rgba(255,68,68,0.12); color: #ff4444; }
.status-badge.scheduled { background: rgba(255,255,255,0.06); color: #888; }
.status-badge.review { background: rgba(245,158,11,0.12); color: var(--amber); }
.status-badge.cancelled { background: rgba(248,113,113,0.1); color: var(--loss); }
.forfeit-tag { margin-left: 5px; font-size: 9px; font-weight: 700; color: var(--loss); background: rgba(248,113,113,0.1); padding: 1px 6px; border-radius: 8px; }
.team-logo { object-fit: contain; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.team-logo.fallback { border-radius: 50%; background: rgba(65,219,144,0.12); border: 1px solid rgba(65,219,144,0.2); color: var(--accent); font-weight: 800; }
.team-logo.lost { opacity: .4; }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs.attached { border-top: 0; border-radius: 0 0 var(--radius) var(--radius); margin-bottom: 12px; }
.tab { padding: 11px 20px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--text-dim); border-bottom: 2px solid transparent; transition: color .15s; background: none; border-top: 0; border-left: 0; border-right: 0; scroll-snap-align: start; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab .mobile-label { display: none; }
.tab-panel[hidden] { display: none; }
.stat-guide { border-top: 1px solid var(--border); }
.stat-guide summary { padding: 8px 12px; color: var(--text-dim); font-size: 10px; font-weight: 700; text-align: center; cursor: pointer; list-style-position: inside; }
.stat-guide div { padding: 0 16px 12px; font-size: 10px; line-height: 1.65; text-align: center; color: var(--text-dim); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 13px; }
.kv dt { color: var(--text-dim); }
.kv dd { overflow-wrap: anywhere; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.pagination .page-btn { padding: 8px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; border: 1px solid var(--border2); background: var(--surface2); color: var(--text); cursor: pointer; }
.pagination .page-btn:disabled { background: var(--surface); color: #555; cursor: default; }
.pagination .page-status { font-size: 13px; color: var(--text-dim); font-weight: 600; min-width: 90px; text-align: center; }
.pagination .goto { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.pagination .goto span { font-size: 12px; color: var(--text-muted); }
.pagination .goto input { width: 52px; padding: 7px 8px; border-radius: 6px; font-size: 13px; background: var(--surface2); color: var(--text); border: 1px solid var(--border2); text-align: center; }
.pagination .goto button { padding: 7px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--accent); color: #000; border: none; cursor: pointer; }

/* ── Modal & toast ──────────────────────────────────────── */
dialog.modal { border: 1px solid rgba(255,255,255,0.13); border-radius: 14px; background: #161b22; color: var(--text); padding: 0; width: 95%; max-width: 480px; max-height: 90vh; overflow: auto; box-shadow: 0 24px 64px rgba(0,0,0,0.6); }
dialog.modal::backdrop { background: rgba(0,0,0,0.78); backdrop-filter: blur(3px); }
dialog.modal.danger { border-color: rgba(239,68,68,0.4); box-shadow: 0 0 40px rgba(239,68,68,0.15), 0 24px 64px rgba(0,0,0,0.6); }
.modal-head { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head h3 { font-size: 16px; font-weight: 700; color: #fff; }
.modal-close { background: none; border: 0; color: #888; font-size: 20px; line-height: 1; padding: 2px 6px; }
.modal-body { padding: 16px 24px; font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.modal-body label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); margin: 12px 0 6px; }
.modal-body input, .modal-body textarea, .modal-body select { width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; color: #fff; font-size: 13px; padding: 9px 12px; }
.modal-body textarea { min-height: 68px; resize: vertical; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 0 24px 20px; }
.copy-box { font: 13px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; padding: 12px; background: rgba(65,219,145,0.06); border: 1px solid rgba(65,219,145,0.25); border-radius: 8px; color: var(--text); user-select: all; }
#toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 600; max-width: 360px; background: #0a2a18; border: 1px solid rgba(65,219,144,0.31); color: var(--accent); box-shadow: 0 4px 24px rgba(0,0,0,0.5); display: none; }
#toast.error { background: #3a0f0f; border-color: rgba(239,68,68,0.31); color: #ef4444; }
#toast.show { display: block; }
@media (max-width: 768px) { #toast { left: 16px; right: 16px; bottom: calc(var(--tab-bar-height) + 12px); max-width: none; } }

/* ── Homepage ───────────────────────────────────────────── */
.home { display: flex; flex-direction: column; gap: 20px; }
.hero { position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgba(65,219,145,0.22); border-radius: 12px; background: radial-gradient(circle at 83% 30%, rgba(65,219,145,0.11), transparent 34%), linear-gradient(145deg, #171717, #0d0d0d); box-shadow: 0 22px 60px rgba(0,0,0,0.25); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, #000, transparent 75%); }
.hero-copy { padding: clamp(32px, 4.4vw, 60px); }
.hero h1 { margin: 12px 0 14px; max-width: 760px; color: #fff; font-size: clamp(36px, 5vw, 62px); line-height: .98; letter-spacing: -2.5px; font-weight: 900; }
.hero p { max-width: 650px; margin: 0 0 26px; color: #b6b6b6; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-tertiary { display: inline-block; margin-top: 18px; color: #d0d0d0; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.social-proof { margin-top: 20px; color: #7e7e7e; font-size: 11px; font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; gap: 6px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 4px rgba(46,204,113,0.1); }
.status-panel { margin: 18px; padding: 22px; border: 1px solid rgba(65,219,145,0.2); border-top: 2px solid var(--accent); border-radius: 9px; background: rgba(8,8,8,0.74); align-self: center; display: flex; flex-direction: column; justify-content: center; }
.status-panel h2 { margin: 7px 0 19px; color: #fff; font-size: 25px; font-weight: 800; }
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); padding: 13px 0; border-top: 1px solid #292929; border-bottom: 1px solid #292929; gap: 8px; }
.mini-metrics strong { display: block; color: #fff; font-size: 20px; }
.mini-metrics span { color: #777; font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.countdown { margin-top: 20px; }
.countdown-title { color: #bbb; font-size: 12px; }
.clock { margin: 9px 0 8px; display: flex; gap: 14px; }
.clock-unit { min-width: 42px; }
.clock-unit strong { display: block; color: var(--accent); font-size: 27px; font-variant-numeric: tabular-nums; }
.clock-unit span { display: block; color: #696969; font-size: 8px; letter-spacing: 1px; }
.date-text { color: #909090; font-size: 11px; line-height: 1.5; }
.status-link { margin-top: 14px; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; display: inline-block; }
.stats-strip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-strip-item { display: flex; gap: 12px; padding: 14px 20px; border-right: 1px solid var(--border); align-items: center; }
.stats-strip-item:last-child { border-right: 0; }
.stats-strip-item svg { width: 20px; height: 20px; stroke: var(--accent); flex-shrink: 0; }
.stats-strip-item strong { font-size: 20px; font-weight: 800; display: block; line-height: 1.1; }
.stats-strip-item span { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); margin-top: 2px; display: block; }
.journey { display: grid; grid-template-columns: repeat(5, 1fr); }
.stage { position: relative; padding: 24px 14px 0 0; border-top: 2px solid #333; }
.stage::before { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; left: 0; top: -7px; background: #333; border: 2px solid #111; }
.stage[data-state="active"] { border-color: #2ecc71; }
.stage[data-state="active"]::before { background: #2ecc71; box-shadow: 0 0 0 4px rgba(46,204,113,0.12); }
.stage[data-state="complete"] { border-color: #777; }
.stage[data-state="complete"]::before { background: #888; }
.stage strong { display: block; color: #d8d8d8; font-size: 12px; }
.stage[data-state="active"] strong { color: #54df90; }
.stage span { display: block; margin-top: 5px; color: #666; font-size: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: stretch; }
.two-col > .card { display: flex; flex-direction: column; }
.two-col .games-grid { flex: 1; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.score-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; display: block; transition: border-color .15s, transform .15s; }
.score-card:hover { border-color: rgba(65,219,145,0.4); transform: translateY(-3px); }
.score-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.score-card .date { font-size: 11px; color: #888; text-transform: uppercase; }
.score-card .team-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }
.score-card .team-row + .team-row { border-top: 1px solid rgba(65,219,145,0.15); }
.score-card .team-name { font-size: 14px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; min-width: 0; }
.score-card .score { font-size: 20px; font-weight: 800; color: #555; flex-shrink: 0; }
.score-card .score.winner { color: var(--accent); }
.score-card .score.draw { color: #ccc; }
.score-card .foot { margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }
.score-card .foot small { font-size: 10px; color: #666; font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.footer-link { display: block; margin-top: 18px; text-align: center; padding: 9px 0; border-radius: 6px; border: 1px solid var(--border2); color: var(--text-dim); font-size: 12px; font-weight: 600; transition: border-color .15s, color .15s; }
.footer-link:hover { border-color: var(--accent); color: var(--accent); }
.standing-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; align-items: center; }
.standing-row:last-child { border-bottom: 0; }
.standing-row .rank { font-size: 11px; font-weight: 700; color: var(--text-dim); }
.standing-row .rank.first { color: var(--accent); }
.standing-row .name { font-weight: 600; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.standing-row .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standing-row .record { font-variant-numeric: tabular-nums; font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--border); }
.step { background: #141414; padding: 28px; }
.step-num { color: var(--accent); font-size: 12px; font-weight: 900; }
.step h3 { margin: 8px 0; color: #fff; font-size: 18px; }
.step p { min-height: 44px; margin: 0; color: #888; font-size: 13px; line-height: 1.55; }
.step a { display: inline-block; margin-top: 18px; color: #ddd; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.leaders-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.leaders-col { background: var(--surface2); border: 1px solid var(--border2); border-radius: 8px; padding: 14px; }
.leaders-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 8px; letter-spacing: .5px; }
.leaders-col .lrow { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; }
.leaders-col .lrow .rk { font-size: 13px; font-weight: 700; color: var(--accent); width: 16px; }
.leaders-col .lrow .nm { flex: 1; min-width: 0; }
.leaders-col .lrow .nm a { font-weight: 600; }
.leaders-col .lrow .nm small { display: block; font-size: 10px; color: var(--text-dim); }
.leaders-col .lrow .val { font-size: 15px; font-weight: 700; color: var(--accent); }
.leaders-col .lrow .val small { font-size: 10px; color: var(--text-dim); font-weight: 500; margin-left: 2px; }
.announcement { padding: 11px 16px; border: 1px solid rgba(255,190,50,0.35); border-radius: 8px; background: rgba(255,190,50,0.08); display: flex; gap: 12px; align-items: center; justify-content: center; font-size: 13px; }
.announcement a { color: var(--accent); font-weight: 800; }

/* ── Standings ──────────────────────────────────────────── */
.standings-table { min-width: 640px; table-layout: fixed; }
.standings-table .team-cell { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.standings-table .team-cell .tag { color: var(--text-dim); font-size: 11px; font-weight: 400; flex-shrink: 0; }
.standings-table .team-cell span.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Schedule ───────────────────────────────────────────── */
.week-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.week-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.week-head .title-row { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; min-width: 0; }
.week-head .title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.week-head .meta-row { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; flex-wrap: wrap; }
.week-head .date { font-size: 12px; color: var(--text-dim); }
.week-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.fixture-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 14px; color: inherit; transition: border-color .15s, background .15s; }
.fixture-card:hover { border-color: rgba(65,219,145,0.35); background: #262626; }
.fixture-card .side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fixture-card .side.away { justify-content: flex-end; text-align: right; }
.fixture-card .side .team-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixture-card .side .team-name.won { font-weight: 800; }
.fixture-card .side .team-name.lost { color: var(--text-dim); }
.fixture-card .middle { text-align: center; min-width: 88px; }
.fixture-card .score-line { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 18px; font-weight: 900; }
.fixture-card .score-line .dash { color: #444; font-size: 12px; }
.fixture-card .score-line .h.won { color: var(--win); } .fixture-card .score-line .a.won { color: var(--blue); }
.fixture-card .score-line .lostscore { color: var(--text-dim); }
.fixture-card .score-line .drawscore { color: #ccc; }
.fixture-card .kick { font-size: 11px; color: var(--blue); font-weight: 700; background: rgba(96,165,250,0.12); border-radius: 4px; padding: 2px 6px; display: inline-block; }
.fixture-card .vs { font-size: 11px; color: var(--accent); font-weight: 600; background: rgba(65,219,144,0.08); border-radius: 4px; padding: 2px 6px; display: inline-block; }
.fixture-card .sub { font-size: 10px; color: #555; margin-top: 3px; font-weight: 500; }
.fixture-card .sub.final { color: var(--text-dim); font-weight: 700; letter-spacing: 1px; }
.fixture-list { display: flex; flex-direction: column; gap: 8px; }
.fixture-group-title { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; padding-left: 2px; }
.show-more { margin-top: 8px; width: 100%; padding: 10px 14px; border-radius: 7px; border: 1px solid var(--border2); background: var(--surface2); color: var(--text-dim); font-size: 12px; font-weight: 700; }
.show-more:hover { color: var(--text); }

/* ── Teams list ─────────────────────────────────────────── */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; transition: border-color .15s, transform .15s; }
.team-card:hover { border-color: rgba(65,219,145,0.4); transform: translateY(-2px); }
.team-card.leader { border-color: rgba(255,215,0,0.4); }
.team-card .crown { position: absolute; top: 8px; right: 10px; font-size: 18px; }
.team-card .rank-badge { position: absolute; top: 10px; left: 12px; font-size: 11px; font-weight: 800; color: var(--text-dim); }
.team-card .name { font-weight: 700; font-size: 14px; color: var(--text); text-align: center; }
.team-card .tag { font-size: 11px; color: var(--text-dim); margin-top: 2px; text-align: center; }
.team-card .record { display: flex; gap: 12px; font-size: 12px; align-items: center; }
.team-card .record .pct { color: var(--text-muted); font-weight: 500; }
.team-card .status { font-size: 11px; color: var(--text-muted); font-style: italic; }
.team-card .captain { font-size: 11px; color: var(--text-dim); text-align: center; border-top: 1px solid var(--border); padding-top: 8px; width: 100%; }
.team-card .captain small { color: #888; font-size: 10px; letter-spacing: .4px; font-weight: 600; display: block; }
.team-card .captain div { color: var(--text); font-weight: 500; margin-top: 2px; }
.team-card .roster-count { font-size: 11px; color: var(--text-dim); }

/* ── Team detail ────────────────────────────────────────── */
.team-header-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; padding: 24px 24px 0; }
.team-header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; }
.team-header-left { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.team-header-left .team-logo { width: 64px; height: 64px; font-size: 28px; }
.team-header-info { min-width: 0; padding-top: 2px; }
.team-header-info h1 { font-size: 24px; font-weight: 800; line-height: 1.2; display: inline; }
.team-header-info .name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.team-header-info .tag { font-size: 12px; color: var(--text-dim); font-weight: 600; opacity: .7; }
.badge-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.staff-row { display: flex; gap: 4px 12px; flex-wrap: wrap; font-size: 11px; color: var(--text-dim); }
.staff-row span { opacity: .55; }
.staff-row a { font-weight: 600; color: var(--text-dim); border-bottom: 1px dashed rgba(255,255,255,0.15); }
.staff-row a:hover { color: var(--text); }
.team-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ring { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; border: 5px solid rgba(65,219,145,0.2); width: 84px; height: 84px; position: relative; }
.ring strong { font-size: 22px; font-weight: 900; letter-spacing: -.5px; color: #fff; line-height: 1; }
.ring span { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-top: 2px; }
.ring.points { border-color: var(--accent); box-shadow: 0 0 12px rgba(65,219,145,0.25); }
.ring.small { width: 60px; height: 60px; border-width: 4px; }
.ring.small strong { font-size: 15px; }
.ring.small span { font-size: 7px; }
.ring.gf { border-color: rgba(245,158,11,0.6); } .ring.ga { border-color: rgba(96,165,250,0.6); }
.stat-bar { display: flex; flex-wrap: wrap; border-top: 1px solid var(--border); }
.stat-bar .cell { flex: 1 1 100px; padding: 14px 12px; text-align: center; }
.stat-bar .cell + .cell { border-left: 1px solid var(--border); }
.stat-bar .value { font-size: 18px; font-weight: 800; line-height: 1; }
.stat-bar .value .sep { color: var(--text-dim); font-size: 14px; margin: 0 3px; }
.stat-bar .label { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; }
.form-strip { padding: 10px 16px 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.form-strip .label { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .8px; }
.season-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; margin: 4px 0 20px; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.season-bar p { font-size: 10px; color: var(--text-dim); line-height: 1.4; }
.season-bar form, .season-bar .picker { display: flex; align-items: center; gap: 8px; }
.season-bar label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
.quick-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.quick-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.quick-stat .v { font-size: 22px; font-weight: 800; line-height: 1.2; }
.quick-stat .v.md { font-size: 14px; }
.quick-stat .l { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; }
.quick-stat .s { font-size: 11px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-scorers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scorer-card { background: var(--bg); border: 1px solid var(--border); border-top: 3px solid var(--medal, var(--gold)); border-radius: 6px; padding: 14px 16px; display: block; }
.scorer-card .top { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; min-width: 0; }
.scorer-card .top .name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorer-card .top .pos { font-size: 10px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; margin-top: 1px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.mini-grid .v { font-size: 14px; font-weight: 800; }
.mini-grid .v.hl { color: var(--accent); }
.mini-grid .l { font-size: 9px; color: var(--text-dim); text-transform: uppercase; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.roster-card { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 16px; display: block; height: 100%; transition: border-color .15s, background .15s; }
.roster-card:hover { border-color: var(--border2); background: var(--surface2); }
.roster-card .top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.roster-card .top .avatar { width: 44px; height: 44px; font-size: 17px; border: 2px solid rgba(65,219,145,0.25); }
.roster-card .name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-card .badges { display: flex; gap: 6px; margin-top: 3px; flex-wrap: wrap; align-items: center; }
.roster-card .platform { font-size: 10px; color: var(--text-dim); font-weight: 500; }
.roster-card .gp-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 11px; font-weight: 600; color: var(--text-dim); }
.roster-card .gp-row b { font-size: 13px; font-weight: 800; color: var(--text); }
.roster-card .mini-grid { border-top: 1px solid var(--border); padding-top: 10px; gap: 8px 4px; }
.roster-card .mini-grid .v { font-size: 15px; }
.rival-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.rival-card { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; display: block; transition: border-color .15s, background .15s; }
.rival-card:hover { border-color: var(--border2); background: var(--surface2); }
.rival-card .name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 7px; }
.rival-card .line { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; color: var(--text-dim); }
.rival-card .line .pct { font-size: 14px; font-weight: 800; }
.bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--bar, var(--accent)); width: var(--w, 0%); }
.transaction-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.transaction-item .body { flex: 1; min-width: 0; }
.transaction-item .headline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.transaction-item .headline a { font-weight: 700; font-size: 14px; }
.transaction-item .route { font-size: 12px; color: var(--text-dim); margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.transaction-item .route a.from { color: var(--blue); } .transaction-item .route a.to { color: var(--accent); }
.transaction-item .when { text-align: right; flex-shrink: 0; font-size: 11px; color: var(--text-muted); }
.transaction-item .when div + div { margin-top: 2px; font-size: 10px; }
.transactions-list { display: flex; flex-direction: column; gap: 8px; }

/* ── Players list ───────────────────────────────────────── */
.players-table { min-width: 720px; table-layout: fixed; }
.players-table .player-cell { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; }
.players-table .player-cell .avatar { width: 32px; height: 32px; font-size: 13px; }
.players-table .player-cell .who { min-width: 0; }
.players-table .player-cell .line { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 2px; }
.players-table .player-cell .line a { font-weight: 600; }
.players-table .player-cell .team { font-size: 11px; color: var(--text-dim); }
.players-table .player-cell .team a { color: var(--text-dim); }
.players-table .player-cell .team i { font-style: italic; color: var(--text-muted); }
.player-cards { display: none; flex-direction: column; gap: 8px; }
.player-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.player-card .top { display: flex; align-items: center; gap: 10px; }
.player-card .top .avatar { width: 38px; height: 38px; font-size: 14px; }
.player-card .who { flex: 1; min-width: 0; }
.player-card .who .line { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 3px; }
.player-card .who .line a { font-weight: 700; font-size: 14px; }
.player-card .who .team { font-size: 11px; color: var(--text-dim); }
.player-card .rating { text-align: center; flex-shrink: 0; }
.player-card .rating strong { font-size: 18px; font-weight: 800; display: block; line-height: 1; }
.player-card .rating span { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; display: block; margin-top: 2px; }
.player-card .summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; text-align: center; }
.player-card .summary .l { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.player-card .summary .v { font-weight: 700; font-size: 14px; }
.mobile-sort { display: none; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 12px; }
.mobile-sort select { min-height: 40px; }
.mobile-sort button { min-height: 40px; padding: 8px 12px; border-radius: 7px; font-size: 12px; font-weight: 700; border: 1px solid var(--border2); background: var(--surface); color: var(--text); white-space: nowrap; }

/* ── Player profile ─────────────────────────────────────── */
.player-header-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px 0; margin-bottom: 20px; }
.player-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; }
.player-hero-left { display: flex; gap: 14px; min-width: 0; }
.player-hero-left .avatar { width: 90px; height: 90px; font-size: 34px; font-weight: 800; border: 3px solid rgba(65,219,145,0.6); }
.player-hero-info { min-width: 0; padding-top: 2px; display: flex; flex-direction: column; }
.player-hero-info h1 { font-size: 24px; font-weight: 800; line-height: 1.15; margin-bottom: 7px; }
.player-team-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.player-team-row small { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .55px; }
.player-team-row a { font-size: 12px; font-weight: 700; color: var(--accent); }
.player-team-row .fa { font-size: 12px; color: #777; }
.player-hero-right { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.ovr-circle { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 36% 28%, rgba(255,255,255,0.14), transparent 34%), linear-gradient(145deg, #1d2a22, #111); box-shadow: 0 0 0 4px rgba(255,255,255,0.035), 0 10px 28px rgba(65,219,145,0.22), inset 0 0 20px rgba(0,0,0,0.36); }
.ovr-circle strong { font-size: 27px; font-weight: 950; letter-spacing: -.04em; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.5); line-height: 1; }
.ovr-circle span { margin-top: 5px; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; color: #9fe7c2; }
.ovr-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 104px; }
.ovr-wrap small { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--text-dim); white-space: nowrap; }
.player-stat-grid { border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); }
.player-stat-grid .cell { padding: 12px 8px; text-align: center; border-right: 1px solid var(--border); }
.player-stat-grid .cell:last-child { border-right: 0; }
.player-stat-grid .v { font-size: 17px; font-weight: 800; line-height: 1; }
.player-stat-grid .l { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .7px; margin-top: 3px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.toggle-group { margin-left: auto; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 5px; padding: 2px; display: inline-flex; }
.toggle-group button { padding: 3px 10px; border: 0; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; background: transparent; color: #888; }
.toggle-group button.active { background: rgba(65,219,145,0.2); color: var(--accent); }
.highs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.high-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px; padding: 12px 10px; text-align: center; display: block; }
.high-card:hover { border-color: var(--border2); }
.high-card .e { font-size: 18px; }
.high-card .l { font-size: 9px; text-transform: uppercase; letter-spacing: .7px; color: var(--text-muted); margin: 6px 0; }
.high-card .v { font-size: 22px; font-weight: 800; color: var(--accent); }
.high-card .g { font-size: 10px; color: var(--text-muted); margin-top: 4px; display: block; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics-grid .cell { padding: 14px 12px; text-align: center; border-right: 1px solid var(--border); }
.metrics-grid .cell:last-child { border-right: 0; }
.metrics-grid .v { font-size: 22px; font-weight: 800; }
.metrics-grid .l { font-size: 10px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .6px; margin-top: 5px; }
.metrics-grid .s { font-size: 9px; color: var(--text-muted); }
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 16px; width: 2px; background: rgba(65,219,145,0.2); }
.timeline-entry { position: relative; padding-bottom: 16px; }
.timeline-entry::before { content: ''; position: absolute; left: -16px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.timeline-entry small { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; display: block; }
.timeline-entry a, .timeline-entry b { font-size: 13px; font-weight: 700; }
.timeline-entry .fa { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.chip { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; background: var(--surface2); color: var(--text-dim); border: 1px solid var(--border); }
.chip.active { background: var(--accent); color: #000; border-color: var(--accent); }
.row-link { position: relative; }
.row-link a.cover { position: absolute; inset: 0; z-index: 0; }
.row-link td > * { position: relative; z-index: 1; }

/* ── Game page ──────────────────────────────────────────── */
.prev-next { display: flex; justify-content: space-between; align-items: stretch; gap: 8px; margin-bottom: 12px; }
.prev-next a { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text-dim); max-width: 46%; overflow: hidden; }
.prev-next a.next { text-align: right; flex-direction: row-reverse; }
.prev-next a small { display: block; font-size: 10px; opacity: .6; margin-bottom: 1px; }
.prev-next a span { font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scoreboard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.scoreboard.playoff { border-color: rgba(240,180,41,0.31); }
.scoreboard-meta { background: var(--surface2); border-bottom: 1px solid var(--border); padding: 10px 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 11px; color: var(--text-dim); }
.scoreboard-meta .date { margin-left: auto; }
.scoreboard-grid { padding: 28px 24px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.scoreboard-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; min-width: 0; }
.scoreboard-side.away { align-items: flex-start; }
.scoreboard-side .team-logo { width: 72px; height: 72px; font-size: 30px; }
.scoreboard-side .team-name { font-size: 20px; font-weight: 800; line-height: 1.2; text-align: right; }
.scoreboard-side.away .team-name { text-align: left; }
.scoreboard-side .team-name.lost { color: var(--text-dim); }
.scoreboard-side .record { font-size: 11px; color: var(--text-dim); font-weight: 600; display: flex; flex-direction: column; gap: 3px; }
.scoreboard-side .record small { font-size: 9px; opacity: .65; }
.scoreboard-side .record .rank { font-size: 10px; font-weight: 500; }
.winner-badge { font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(65,219,144,0.12); padding: 4px 14px; border-radius: 10px; border: 1px solid rgba(65,219,144,0.3); }
.winner-badge.draw { color: #ccc; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }
.score-center { padding: 0 32px; text-align: center; }
.score-center .scores { display: flex; align-items: center; gap: 16px; justify-content: center; }
.score-center .score { font-size: 64px; font-weight: 900; line-height: 1; color: var(--loss); text-shadow: 0 0 30px rgba(248,113,113,0.2); }
.score-center .score.won { color: var(--win); text-shadow: 0 0 30px rgba(65,219,144,0.3); }
.score-center .score.draw { color: #ccc; text-shadow: none; }
.score-center .dash { font-size: 32px; font-weight: 300; color: var(--border2); }
.score-center .final { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; margin-top: 8px; }
.score-center .vs { font-size: 22px; font-weight: 700; letter-spacing: 2px; color: var(--text-dim); }
.score-center .status { font-size: 11px; margin-top: 6px; color: var(--text-dim); }
.h2h-strip { border-top: 1px solid var(--border); padding: 8px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.h2h-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.h2h-row .label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.h2h-row .n { font-size: 11px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-row .w { font-size: 16px; font-weight: 900; }
.h2h-strip .last { font-size: 11px; color: var(--text-dim); display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.h2h-strip .last b { color: var(--text); }
.forfeit-notice { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.3); border-radius: 8px; padding: 10px 16px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; font-size: 12px; }
.forfeit-notice b { color: var(--loss); font-weight: 700; }
.comparison-head { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; gap: 8px; margin-bottom: 18px; }
.comparison-head .t { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; min-width: 0; }
.comparison-head .t.away { justify-content: flex-end; }
.comparison-head .t .team-logo { width: 24px; height: 24px; font-size: 10px; }
.stat-compare { margin-bottom: 14px; }
.stat-compare .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.stat-compare .top .v { font-size: 15px; font-weight: 800; min-width: 40px; color: var(--text-dim); }
.stat-compare .top .v.lead { color: var(--text); }
.stat-compare .top .v.away { text-align: right; }
.stat-compare .top .l { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.stat-compare .track { display: flex; height: 4px; border-radius: 2px; overflow: hidden; background: var(--border); }
.stat-compare .track .h { background: var(--accent); border-radius: 2px 0 0 2px; width: var(--w, 50%); transition: width .3s; }
.stat-compare .track .a { background: rgba(65,219,145,0.25); border-radius: 0 2px 2px 0; flex: 1; }
.box-team { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.box-team .team-logo { width: 20px; height: 20px; font-size: 9px; }
.box-table { min-width: 640px; table-layout: fixed; }
.box-table th.left { text-align: left; }
.box-table td.left { text-align: left; }
.box-table .player-cell { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.box-table .player-cell .avatar { width: 28px; height: 28px; font-size: 11px; border: 2px solid rgba(65,219,145,0.2); }
.box-table .player-cell .n { font-weight: 600; }
.box-table .player-cell .sub { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; font-size: 9px; align-items: center; }
.box-table .player-cell .sub .p { font-weight: 700; color: var(--accent); text-transform: uppercase; }
.box-table .player-cell .sub .mom { color: var(--gold); }
.box-table .player-cell .mobile-only { display: none; }
.box-table td.best { color: var(--accent); font-weight: 800; }
.box-table td.zero { color: var(--text-dim); }
.box-table tr.mom td { background: rgba(65,219,145,0.03); }
.cs-yes { font-size: 11px; font-weight: 700; color: var(--win); background: rgba(65,219,144,0.12); padding: 2px 8px; border-radius: 8px; }
.cs-no { font-size: 11px; font-weight: 700; color: var(--loss); background: rgba(248,113,113,0.1); padding: 2px 8px; border-radius: 8px; }
.stars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.star-card { background: var(--surface2); border-radius: 8px; padding: 14px; border: 1px solid var(--border); }
.star-card.winner { border-color: rgba(65,219,145,0.25); }
.star-card .label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 8px; }
.star-card .label.dim { color: var(--text-dim); }
.star-card .who { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.star-card .who .avatar { width: 36px; height: 36px; font-size: 14px; border: 2px solid rgba(240,180,41,0.5); }
.star-card .who .n { font-size: 13px; font-weight: 700; }
.star-card .who .p { font-size: 9px; color: var(--accent); text-transform: uppercase; }
.star-card .grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.star-card .grid div { background: var(--surface); border-radius: 4px; padding: 5px 0; text-align: center; }
.star-card .grid b { font-size: 15px; font-weight: 800; display: block; color: var(--text-dim); }
.star-card .grid b.hl { color: var(--accent); }
.star-card .grid span { font-size: 8px; font-weight: 700; text-transform: uppercase; color: var(--text-dim); }
.star-card .rating { font-size: 11px; color: var(--text-dim); text-align: right; margin-top: 8px; }

/* ── Leaders ────────────────────────────────────────────── */
.season-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 20px 6px; margin: 0 -20px 14px; }
.season-pills::-webkit-scrollbar { display: none; }
.season-pill { padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.03); color: var(--text-dim); }
.season-pill.active { border-color: var(--accent); background: rgba(65,219,145,0.12); color: var(--accent); }
.tab-line { display: flex; border-bottom: 2px solid var(--border); margin: 20px 0 24px; }
.tab-line button { padding: 9px 22px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.tab-line button.active { color: var(--accent); border-bottom-color: var(--accent); }
.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.leader-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-width: 240px; overflow: hidden; }
.leader-card .head { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.leader-card .head .e { font-size: 15px; }
.leader-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--border); }
.leader-row:first-of-type { background: rgba(65,219,145,0.03); }
.leader-row:last-child { border-bottom: 0; }
.leader-row .rk { font-size: 11px; color: var(--text-muted); width: 16px; text-align: center; }
.leader-row.first .rk { font-weight: 700; color: var(--text-dim); }
.leader-row .avatar { width: 28px; height: 28px; font-size: 11px; }
.leader-row .who { flex: 1; min-width: 0; }
.leader-row .who a { font-size: 13px; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-row.first .who a { font-weight: 700; }
.leader-row .who small { font-size: 10px; color: var(--text-muted); }
.leader-row .val { min-width: 36px; text-align: right; font-weight: 800; font-size: 15px; }
.leader-row.first .val { font-size: 18px; color: var(--accent); }
.leader-card .toggle { width: 100%; background: transparent; border: 0; padding: 8px; font-size: 11px; font-weight: 700; color: var(--accent); opacity: .7; }
.stat-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; }
.stat-card .head { padding: 14px 16px 10px; border-bottom: 1px solid var(--border2); }
.stat-card .head h3 { font-size: 13px; font-weight: 700; color: var(--accent); }
.stat-card .head p { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.stat-card .table th { background: rgba(255,255,255,0.04); }
.stat-card .table td { font-size: 12px; padding: 6px 10px; }
.stat-card .table td.rank.g1 { color: #FFD700; font-weight: 800; } .stat-card .table td.rank.g2 { color: #C0C0C0; font-weight: 800; } .stat-card .table td.rank.g3 { color: #CD7F32; font-weight: 800; }
.stat-card .table td.hl { color: var(--accent); font-weight: 700; }
.stat-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── Free agents ────────────────────────────────────────── */
.fa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.fa-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: block; }
.fa-card:hover { border-color: rgba(65,219,145,0.4); }
.fa-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fa-card .top .avatar { width: 44px; height: 44px; font-size: 17px; }
.fa-card .name { font-size: 14px; font-weight: 700; }
.fa-card .meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.fa-card .since { font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 8px; }

/* ── Auth & account pages ───────────────────────────────── */
.auth-wrap { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 16px; padding: 48px 40px; text-align: center; max-width: 420px; width: 100%; }
.auth-card.wide { max-width: 520px; text-align: left; padding: 40px; }
.auth-card .logo { width: 64px; height: 64px; margin: 0 auto 20px; }
.auth-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.auth-card p.lead { color: var(--text-dim); font-size: 14px; line-height: 1.6; margin-bottom: 28px; }
.auth-card .fine { margin-top: 20px; font-size: 12px; color: var(--text-muted); }
.auth-card .alt { margin-top: 14px; }
.identity-box { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding: 14px 16px; background: var(--surface2); border-radius: 10px; border: 1px solid var(--border); }
.identity-box .avatar { width: 44px; height: 44px; font-size: 18px; }
.identity-box strong { font-size: 14px; font-weight: 700; display: block; }
.identity-box small { font-size: 11px; color: var(--text-dim); }
.identity-box .verified { margin-left: auto; font-size: 11px; color: var(--accent); font-weight: 600; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.profile-cell { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.profile-cell small { display: block; font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.profile-cell strong { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }

/* Account workflows and request history */
#account { display: grid; gap: 20px; }
#account > .player-header-card { margin-bottom: 0; }
.account-workflow { display: grid; gap: 14px; padding: 24px; }
.account-workflow > .section-label { margin-bottom: 0; }
.account-workflow p { line-height: 1.65; max-width: 70ch; }
.account-workflow form { gap: 18px; margin-top: 4px; }
.account-workflow .field { display: grid; gap: 8px; margin-bottom: 0; font-size: 12px; font-weight: 600; }
.account-workflow .field input, .account-workflow .field select, .account-workflow .field textarea { font-weight: 400; }
.account-workflow input[type="color"] { height: 44px; padding: 6px; cursor: pointer; }
.account-workflow input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.account-workflow input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.account-workflow form > .button { align-self: flex-start; }
.account-workflow form > [role=status]:empty { display: none; }
.account-notice { display: grid; gap: 8px; padding: 16px 18px; }
.account-notice strong { line-height: 1.5; }
.account-history-section { margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--border2); }
.account-history-section h3 { margin-bottom: 14px; font-size: 15px; font-weight: 650; }
.account-history { display: grid; gap: 10px; list-style: none; }
.account-request-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface2); }
.account-request-copy { display: grid; gap: 5px; min-width: 0; }
.account-request-kind { color: var(--text-dim); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.account-request-copy strong { font-size: 14px; overflow-wrap: anywhere; }
.account-request-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0; }
.account-request-meta time { color: var(--text-dim); font-size: 11px; }
@media (max-width: 600px) {
  .account-workflow { padding: 18px; }
  .account-request-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .account-request-meta { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
}
.signup-label, form legend { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); }
.signup-label { display: block; margin-bottom: 6px; }
#signup-form input[type=text], #signup-form input[type=search], #timezone-select, .field input, .field select, .field textarea { width: 100%; font: inherit; border: 1px solid var(--border2); border-radius: 8px; color: var(--text); background: var(--surface2); padding: 10px 12px; font-size: 14px; }
#signup-form fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
#signup-form legend { margin-bottom: 8px; }
.signup-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.signup-choice { position: relative; cursor: pointer; }
.signup-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.signup-choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 10px 8px; border: 1px solid var(--border2); border-radius: 8px; background: var(--surface2); font-size: 13px; transition: all .15s; }
.signup-choice input:checked + span { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); font-weight: 700; }
.signup-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.signup-help { font-size: 11px; color: var(--text-muted); margin: 6px 0; line-height: 1.5; }
.nickname-preview { padding: 8px 12px; background: var(--surface2); border-radius: 8px; overflow-wrap: anywhere; font-size: 12px; color: var(--text-dim); border: 1px solid var(--border); }
.nickname-preview strong { color: var(--text); }
.timezone-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timezone-summary span { overflow-wrap: anywhere; font-size: 13px; }
#timezone-picker { margin-top: 10px; }
#timezone-select { margin-top: 8px; }
.nav-button { font: inherit; color: var(--accent); background: transparent; border: 1px solid var(--border2); border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 12px; font-weight: 600; }
.nav-button:disabled { opacity: .6; cursor: wait; }
.signup-error { color: var(--loss); overflow-wrap: anywhere; font-size: 13px; margin-top: 12px; }
.signup-error:empty { display: none; }
.signup-submit { width: 100%; margin-top: 20px; min-height: 48px; font-size: 15px; font-weight: 800; }
.signup-context { margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); margin-bottom: 6px; }
.field .help { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Team management (captain dashboard) ───────────────── */
.mgmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mgmt-tile { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.mgmt-tile .v { font-size: 22px; font-weight: 800; }
.mgmt-tile .l { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; }
.team-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.team-picker button { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border2); background: var(--surface2); color: var(--text); font-size: 13px; font-weight: 600; }
.team-picker button.active { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.roster-table td.actions { text-align: right; }
.action-list { display: flex; flex-wrap: wrap; gap: 8px; }
.entitlement-line { font-size: 12px; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.entitlement-line b { color: var(--text); }

/* ── Not found ──────────────────────────────────────────── */
.not-found { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 70vh; gap: 16px; padding: 40px 20px; text-align: center; }
.not-found .code { font-size: 80px; font-weight: 900; color: var(--accent); line-height: 1; letter-spacing: -4px; }
.not-found h1 { font-size: 22px; font-weight: 700; color: #fff; }
.not-found p { color: var(--text-dim); font-size: 14px; max-width: 360px; line-height: 1.6; }

/* ── About ──────────────────────────────────────────────── */
.prose { max-width: 760px; }
.prose h2 { font-size: 18px; font-weight: 800; margin: 28px 0 10px; color: #fff; }
.prose p, .prose li { color: #b0b0b0; font-size: 14px; line-height: 1.65; }
.prose ul { padding-left: 20px; margin: 8px 0; }
.path-strip { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 32px; padding: 14px; border: 1px solid rgba(46,204,113,0.25); border-radius: 8px; background: rgba(46,204,113,0.05); }
.path-strip span { color: #d9d9d9; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.path-strip i { color: #2ecc71; font-style: normal; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1400px) { .site-footer { margin-bottom: 0; } }
@media (max-width: 1200px) { .stat-rows { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .stat-rows { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .status-panel { margin: 0 16px 16px; padding: 17px 19px; }
  .status-panel h2 { margin: 5px 0 12px; font-size: 21px; }
  .journey { overflow-x: auto; grid-template-columns: repeat(5, minmax(128px, 1fr)); padding-top: 4px; }
  .overview-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-strip-item:nth-child(2n) { border-right: 0; }
  .stats-strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .player-header-card { padding: 12px 12px 0; }
  .player-hero-top { flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 10px; }
  .player-hero-left .avatar { width: 78px; height: 78px; font-size: 30px; }
  .player-hero-info h1 { font-size: 21px; }
  .player-hero-right { width: 100%; display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 10px; padding: 10px 0 8px; border-top: 1px solid var(--border); }
  .ovr-circle { width: 86px; height: 86px; } .ovr-circle strong { font-size: 24px; }
  .player-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .player-stat-grid .cell { padding: 10px 6px; border-bottom: 1px solid var(--border); }
  .highs-grid { grid-template-columns: repeat(3, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid .cell:nth-child(2) { border-right: 0; }
  .metrics-grid .cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .table.hide-mobile-cols .m-hide { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 16px 12px 48px; }
  .page-header { align-items: stretch; flex-direction: column; gap: 12px; }
  .page-controls { width: 100%; align-items: stretch; flex-direction: column; }
  .select { width: 100%; }
  .filter-shell { align-items: stretch; flex-direction: column; gap: 8px; }
  .filter-primary { flex: none; width: 100%; min-width: 0; }
  .filter-details { display: block; }
  .filter-summary { display: flex; width: 100%; min-height: 36px; padding: 8px 11px; border: 1px solid var(--border2); border-radius: 7px; background: var(--surface2); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; align-items: center; gap: 8px; }
  .filter-summary[aria-expanded="true"] .filter-chevron { transform: rotate(180deg); }
  .filter-content { display: none; width: 100%; padding-top: 8px; flex-direction: column; align-items: stretch; }
  .filter-content.open { display: flex; }
  .filter-control, input.filter-control { width: 100%; min-width: 0; }
  .empty-state { min-height: 230px; padding: 36px 18px; }
  .skeleton-grid { grid-template-columns: 1fr; }
  .skeleton-card:nth-child(n+3) { display: none; }
  .empty-actions { flex-direction: column; align-items: stretch; }
  .hero-copy { padding: 28px 20px 20px; }
  .hero h1 { max-width: 430px; font-size: clamp(34px, 11vw, 46px); letter-spacing: -1.5px; }
  .hero p { margin-bottom: 20px; font-size: 14px; }
  .hero-actions { display: grid; } .hero-actions .button { width: 100%; }
  .status-panel { margin: 0 10px 10px; }
  .clock-unit strong { font-size: 22px; }
  .games-grid > .score-card:nth-child(n+5) { display: none; }
  .team-header-card { padding: 14px 14px 0; }
  .team-header-top { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .team-header-left { flex-direction: column; align-items: center; }
  .team-header-info .name-row, .badge-row, .staff-row { justify-content: center; }
  .team-header-right { width: 100%; justify-content: center; padding: 12px 0; border-top: 1px solid var(--border); }
  .stat-bar .value { font-size: 15px; } .stat-bar .cell { padding: 10px 8px; }
  .quick-stats { grid-template-columns: 1fr 1fr; }
  .top-scorers { grid-template-columns: 1fr; }
  .tab { padding: 11px 14px; font-size: 12px; }
  .tab .desktop-label { display: none; } .tab .mobile-label { display: inline; }
  .season-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .season-bar form, .season-bar .picker { width: 100%; justify-content: space-between; }
  .players-table-wrap { display: none; }
  .player-cards { display: flex; }
  .mobile-sort { display: grid; }
  .stars-grid { grid-template-columns: 1fr; }
  .scoreboard-grid { padding: 18px 10px 14px; }
  .score-center { padding: 0 8px; }
  .score-center .score { font-size: 42px; }
  .scoreboard-side .team-logo { width: 48px; height: 48px; font-size: 20px; }
  .scoreboard-side .team-name { font-size: 14px; }
  .comparison-head { grid-template-columns: 1fr 60px 1fr; }
  .box-table { min-width: 0; width: 100%; }
  .box-table th.m-hide, .box-table td.m-hide { display: none; }
  .box-table th, .box-table td { padding-left: 4px; padding-right: 4px; }
  .box-table .player-cell .mobile-only { display: inline; }
  .prev-next a { flex: 1; max-width: none; padding: 8px 9px; }
  .prev-next a span { white-space: normal; line-height: 1.3; }
  .fixture-card { grid-template-columns: 1fr auto 1fr; padding: 10px 10px; }
  .fixture-card .side .team-name { font-size: 12px; white-space: normal; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .week-head { align-items: stretch; gap: 10px; padding: 14px; }
  .week-head .title-row, .week-head .meta-row { flex-basis: 100%; width: 100%; }
  .transaction-item { flex-wrap: wrap; }
  .transaction-item .when { text-align: left; width: 100%; padding-left: 44px; }
  .auth-card { padding: 32px 22px; }
  .auth-card.wide { padding: 24px 18px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .signup-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standings-table th:nth-child(n+10), .standings-table td:nth-child(n+10) { display: none; }
  .table.hide-mobile-cols .m-hide { display: none; }
  .stat-bar .cell.streak { flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--border); }
  .stats-strip-item { flex-direction: column; align-items: flex-start; gap: 5px; padding: 12px 10px; }
  .mgmt-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) { .highs-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .page-fade-in, .skeleton, .ring { animation: none; }
  .action, .button, .card.hoverable, .score-card, .team-card, .nav-more-link, .filter-chevron, .drawer { transition: none; }
  .action:hover, .button:hover, .score-card:hover, .team-card:hover { transform: none; }
}
/* Captain application, permissions and roster workflows share the site form controls. */
#dashboard form select { display: block; width: 100%; min-height: 42px; margin-top: 6px; padding: 10px 12px; color: inherit; background: #222; border: 1px solid #3d3d3d; border-radius: 8px; }
#dashboard form select[multiple] { min-height: 120px; }
#dashboard input[type="color"] { min-height: 44px; padding: 5px; }
#dashboard form > label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; }
#dashboard input[type="checkbox"] { flex: 0 0 auto; accent-color: #34d399; }

/* Account navigation lives below identity, with clear destinations and consistent spacing. */
.account-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.account-action { display:flex;align-items:center;gap:14px;padding:18px 20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);text-decoration:none;transition:border-color .15s,background .15s; }
.account-action:hover,.account-action:focus-visible { border-color:#41db90;background:rgba(65,219,144,.06); }
.account-action.prominent { border-color:rgba(65,219,144,.4);background:rgba(65,219,144,.06); }
.account-action-icon { display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.04);font-size:21px;flex-shrink:0; }
.account-action-copy { display:grid;gap:6px;min-width:0; }.account-action-copy strong { font-size:14px; }.account-action-copy>span { font-size:12px;color:var(--text-dim);line-height:1.5; }.account-action-arrow { margin-left:auto;color:var(--text-dim); }
@media(max-width:640px) { .account-actions { grid-template-columns:1fr; }.account-action { padding:16px; } }

/* Season overview */
.hero .status-panel { padding: 26px; border: 1px solid #303c34; border-radius: 16px; background: linear-gradient(155deg, #18241d, #111713 55%, #101210); box-shadow: 0 12px 32px #0003; }
.season-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 27px; }
.season-card-top .section-eyebrow { color: #b6c6bb; }
.season-phase-badge { padding: 5px 9px; border: 1px solid #3c5143; border-radius: 20px; color: #b7d5c0; font-size: 10px; white-space: nowrap; }
.season-card-heading { display: flex; gap: 13px; align-items: center; }
.season-card-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid #3b5646; border-radius: 13px; background: #22372a; color: #7be5a0; }
.season-card-kicker { font-size: 9px; letter-spacing: 1.7px; color: #82988a; font-weight: 700; }
.hero .status-panel h2 { margin: 5px 0 0; font-size: clamp(21px, 2vw, 26px); letter-spacing: -.6px; line-height: 1.15; }
.hero .status-panel .season-card-description { margin: 18px 0 20px; font-size: 13px; line-height: 1.65; color: #9baa9f; }
.status-panel .mini-metrics { padding: 17px 0; border-color: #2a362e; gap: 14px; }
.status-panel .mini-metrics strong { font-size: 25px; font-weight: 750; letter-spacing: -.7px; }
.status-panel .mini-metrics span { color: #9aa99f; font-size: 9px; }
.season-access { display: grid; gap: 13px; margin: 22px 0; }
.season-access-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #b5c0b9; font-size: 12px; }
.season-access-state { display: inline-flex; align-items: center; gap: 7px; color: #8d9891; font-size: 11px; }
.season-access-state[data-open="true"] { color: #7be5a0; }
.season-access-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.season-card-link { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #2a362e; padding-top: 17px; color: #dcece1; font-size: 12px; font-weight: 650; }
.season-card-link:hover { color: #7be5a0; }
.season-card-link span { font-size: 18px; }
@media (max-width: 600px) {
  .hero .status-panel { padding: 22px; margin: 4px 14px 14px; }
  .season-card-top { margin-bottom: 21px; }
}

.account-workflow .field-hint { font-size: 12px; color: #9ba69f; line-height: 1.5; font-weight: 400; }
.account-workflow .character-count { justify-self: end; font-size: 11px; color: #8c978f; font-weight: 400; font-variant-numeric: tabular-nums; }

.club-logo-preview { width: 96px; height: 96px; object-fit: contain; padding: 8px; border: 1px solid var(--border2); border-radius: 12px; background: var(--surface2); }

/* Captain contracts: readable requirements and consistent control spacing. */
.contract-requirements {
  color: #bfdbfe;
  background: #142a46;
  border: 1px solid #3b82f6;
  border-left: 4px solid #60a5fa;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
.contract-offers { display: flex; flex-direction: column; gap: 18px; }
.contract-offers > p { margin: 0; }
.contract-offers > .section-label { margin-bottom: 0; }
.contract-search { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.contract-search > input {
  flex: 1 1 240px; min-width: 0; min-height: 44px;
  font: inherit; color: var(--text); background: var(--surface2);
  border: 1px solid var(--border2); border-radius: 8px; padding: 10px 12px;
}
.contract-search > input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.contract-results { display: flex; flex-direction: column; gap: 10px; }
.contract-player, .contract-history-row {
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border2);
  border-radius: 8px;
}
.contract-player label { margin: 0; min-width: 0; flex: 1; }
.contract-player input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; }
.contract-selection:empty, .contract-results:empty { display: none; }
.contract-link { padding: 16px; border: 1px solid var(--border2); border-radius: 8px; gap: 10px; min-width: 0; }
.contract-link > a { overflow-wrap: anywhere; }
.contract-offers .row { gap: 12px; }
.contract-offers > .button { align-self: flex-start; }
@media (max-width: 560px) {
  .contract-search > input, .contract-search > .button { flex-basis: 100%; }
  .contract-player > .button, .contract-history-row > .button { width: 100%; }
  .contract-offers > .button { width: 100%; }
}

/* My Account: club-branded contract offers and section shortcuts. */
.account-section-nav { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.account-section-nav a { display:flex; align-items:center; gap:8px; padding:10px 16px; border:1px solid var(--border2); border-radius:8px; color:var(--text); background:var(--surface); font-size:12px; font-weight:600; }
.account-section-nav a:hover, .account-section-nav .has-offers { border-color:var(--accent); background:var(--accent-dim); }
.account-section-nav a span { background:var(--accent); color:var(--accent-ink); border-radius:20px; padding:2px 7px; font-size:11px; }
#account-contract-offers, #account-profile, #account-free-agency { scroll-margin-top:100px; }
.account-contracts { display:grid; gap:18px; }
.account-contracts-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.account-contracts-heading h2 { font-size:22px; margin:4px 0 0; }
.account-contracts > p { margin:0; }
.offer-count { color:var(--accent); background:var(--accent-dim); border:1px solid rgba(65,219,145,.3); padding:6px 10px; border-radius:20px; font-size:11px; font-weight:700; white-space:nowrap; }
.account-offer { position:relative; overflow:hidden; background:var(--surface2); border:1px solid var(--border2); border-top:3px solid var(--accent); border-radius:12px; padding:24px; display:grid; gap:20px; }
.account-offer-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.account-offer-brand { display:flex; align-items:center; gap:18px; min-width:0; }
.account-offer-logo { width:72px; height:72px; object-fit:contain; background:rgba(0,0,0,.2); border:1px solid var(--border2); border-radius:12px; padding:8px; flex-shrink:0; }
.account-offer-season { color:#8de5b8; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; }
.account-offer-brand h3 { font-size:24px; line-height:1.2; margin:5px 0 6px; overflow-wrap:anywhere; }
.account-offer-tag { display:inline-block; color:#c4d6cd; background:rgba(255,255,255,.08); border-radius:4px; padding:3px 7px; font-size:10px; font-weight:700; letter-spacing:1px; }
.account-offer-status { color:#fde68a; background:rgba(245,158,11,.1); border:1px solid rgba(245,158,11,.25); border-radius:20px; padding:6px 10px; font-size:10px; font-weight:600; white-space:nowrap; }
.account-offer-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:0; padding:16px 0; border-top:1px solid var(--border2); border-bottom:1px solid var(--border2); }
.account-offer-facts dt { color:#a8b6ae; font-size:11px; margin-bottom:6px; }
.account-offer-facts dd { color:var(--text); font-size:13px; font-weight:600; margin:0; overflow-wrap:anywhere; }
.account-offer-explanation { color:#c3d1c9; font-size:12px; line-height:1.65; margin:0; }
.account-offer-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.account-offer-team-link { margin-left:auto; color:#8de5b8; font-size:12px; font-weight:600; }
.offer-response:empty { display:none; }
.offer-response { color:#fca5a5; font-size:12px; margin:0; }
.account-contract-empty { padding:24px; border:1px dashed var(--border2); border-radius:10px; background:var(--surface2); }
@media(max-width:600px) {
 .account-offer { padding:18px; gap:16px; }
 .account-offer-header { flex-direction:column; }
 .account-offer-brand h3 { font-size:22px; }
 .account-offer-facts { grid-template-columns:1fr 1fr; }
 .account-offer-actions .button { flex:1 1 130px; }
 .account-offer-team-link { margin-left:0; flex-basis:100%; padding-top:4px; }
 .account-section-nav a { padding:10px 12px; }
}

/* Temporary team recruitment. */
.recruitment { border-top:3px solid var(--green,#41db90); }
.recruitment-form { margin:20px 0; }
.recruitment-form fieldset { border:1px solid #34363d; border-radius:10px; padding:16px; }
.recruitment-form legend { padding:0 8px; font-weight:600; }
.recruitment-dates { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.recruitment-history { border-top:1px solid #34363d; padding:20px 0; }
.recruitment-history summary { cursor:pointer; font-weight:600; margin-bottom:16px; line-height:1.6; }
.recruitment-history > .table-wrap { margin-top:16px; }
.tryout-card { margin:24px 0; padding:28px; }
.tryout-card img { object-fit:contain; border-radius:12px; }
@media(max-width:700px) { .recruitment-dates { grid-template-columns:1fr; } .tryout-card { padding:20px; } }
@media(max-width:700px) {
 .recruitment-signups thead { display:none; }
 .recruitment-signups,.recruitment-signups tbody { display:block; width:100%; min-width:0; }
 .recruitment-signups tr { display:grid; grid-template-columns:1fr 1fr; padding:12px 0; border-bottom:1px solid #34363d; }
 .recruitment-signups td { display:block; padding:8px; text-align:left; white-space:normal; }
 .recruitment-signups td:first-child,.recruitment-signups td:last-child { grid-column:1 / -1; }
 .recruitment-signups td:before { display:block; font-size:10px; color:#999; text-transform:uppercase; margin-bottom:4px; }
 .recruitment-signups td:nth-child(2):before { content:'Position'; }
 .recruitment-signups td:nth-child(3):before { content:'Platform'; }
 .recruitment-signups td:nth-child(4):before { content:'Signed up'; }
}

/* Current club and roster identity. */
.account-team-link { display:flex; align-items:center; gap:14px; padding:16px; margin:10px 0 18px; border:1px solid var(--border2); border-radius:12px; background:var(--surface2); color:var(--text); text-decoration:none; }
.account-team-link img { width:48px; height:48px; object-fit:contain; border-radius:9px; }
.account-team-link > span:not(.account-team-arrow) { display:grid; gap:4px; min-width:0; }
.account-team-link strong { font-size:16px; }
.account-team-link small { color:var(--text-muted); }
.account-team-arrow { margin-left:auto; color:var(--accent); font-size:12px; white-space:nowrap; }
.roster-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:12px; }
.roster-player { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:15px; border:1px solid var(--border); border-radius:12px; background:var(--surface2); }
.roster-player-main { display:flex; align-items:center; gap:12px; min-width:0; color:var(--text); text-decoration:none; }
.roster-player-main:hover strong { color:var(--accent); }
.roster-player-info { display:grid; gap:4px; min-width:0; }
.roster-player-info strong { font-size:15px; overflow-wrap:anywhere; }
.roster-player-meta { font-size:11px; color:var(--text-muted); line-height:1.5; }
.roster-player-tags { grid-column:1 / -1; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.roster-player > .button,.roster-staff-note { grid-column:1 / -1; justify-self:start; }
.roster-staff-note { color:var(--text-muted); font-size:11px; line-height:1.5; }
@media(max-width:700px){ .roster-cards { grid-template-columns:1fr; } .account-team-link { flex-wrap:wrap; } }
/* Player tryout detail and account activity. */
.tryout-page { max-width:1080px; }
.tryout-back { display:inline-flex; margin:12px 0 20px; color:var(--text-muted); font-size:13px; }
.tryout-card { margin:0 0 36px; padding:32px; border:1px solid var(--border2); }
.tryout-heading { display:flex; align-items:center; gap:20px; padding-bottom:28px; border-bottom:1px solid var(--border); }
.tryout-logo { flex-shrink:0; background:var(--surface2); padding:8px; }
.tryout-team-copy { flex:1; min-width:0; }
.tryout-heading h1 { margin:6px 0 8px; font-size:32px; line-height:1.15; }
.tryout-status,.activity-status { display:inline-flex; padding:6px 10px; border-radius:6px; background:var(--surface2); color:var(--text-dim); font-size:12px; line-height:1.5; }
.tryout-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:36px; padding-top:28px; }
.tryout-details h2,.tryout-join h2 { margin:0 0 12px; font-size:21px; }
.tryout-description { color:var(--text-dim); line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.tryout-details h3 { font-size:13px; margin:24px 0 12px; }
.tryout-positions { display:flex; flex-wrap:wrap; gap:8px; }
.tryout-positions span { padding:7px 11px; border:1px solid var(--border2); border-radius:6px; font-size:13px; }
.tryout-facts { display:grid; gap:18px; margin:28px 0 0; }
.tryout-facts dt { color:var(--text-muted); font-size:12px; margin-bottom:5px; }
.tryout-facts dd { margin:0; font-size:14px; }
.tryout-join { background:var(--surface2); border:1px solid var(--border); border-radius:12px; padding:24px; align-self:start; }
.tryout-join .button { width:100%; margin-top:12px; }
.tryout-fineprint { font-size:12px; color:var(--text-muted); line-height:1.7; margin:20px 0 12px; }
.tryout-confirmation p { font-size:14px; color:var(--text-dim); line-height:1.7; }
.tryout-confirmation h2 { margin-top:12px; }
.tryout-alert { font-size:13px; line-height:1.7; color:var(--text-dim); padding-top:14px; }
.tryout-account-link { font-size:13px; }
.account-activity { margin:20px 0; scroll-margin-top:100px; }
.activity-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.activity-heading h2 { margin:6px 0; }
.activity-count { font-size:12px; color:var(--text-muted); white-space:nowrap; }
.activity-list { list-style:none; padding:0; margin:16px 0 0; }
.activity-item { display:flex; align-items:center; gap:14px; padding:18px 0; border-top:1px solid var(--border); }
.activity-item img { object-fit:contain; border-radius:8px; flex-shrink:0; }
.activity-icon { display:grid; place-items:center; height:44px; width:44px; flex-shrink:0; background:var(--surface2); border-radius:8px; }
.activity-copy { flex:1; min-width:0; }
.activity-copy a { font-weight:600; font-size:14px; }
.activity-copy p { color:var(--text-muted); font-size:12px; margin:6px 0 0; line-height:1.7; overflow-wrap:anywhere; }
.activity-empty { padding:18px 0 4px; color:var(--text-muted); font-size:14px; }
.activity-history { margin-top:16px; }
.activity-history summary { cursor:pointer; color:var(--text-muted); font-size:13px; }
#account-change-requests { scroll-margin-top:100px; }
@media(max-width:700px) {
 .tryout-card { padding:20px; }
 .tryout-heading { display:grid; grid-template-columns:64px minmax(0,1fr); gap:14px; padding-bottom:20px; }
 .tryout-heading h1 { font-size:26px; }
 .tryout-logo { width:64px; height:64px; }
 .tryout-status { grid-column:2; justify-self:start; margin:0; }
 .tryout-layout { grid-template-columns:1fr; gap:24px; padding-top:24px; }
 .tryout-join { padding:20px; }
 .activity-item { flex-wrap:wrap; }
 .activity-status { margin-left:58px; }
 .activity-copy { flex-basis:calc(100% - 58px); }
}
