/* ---------- shell ---------- */
.app { max-width: var(--max); margin: 0 auto; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: calc(var(--s-3) + env(safe-area-inset-top)) var(--page-x) var(--s-3); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 -1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 30px; height: auto; filter: drop-shadow(0 2px 8px rgba(196, 167, 65, .35)); }
.brand b { display: block; font-size: 15px; font-weight: 900; white-space: nowrap; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-size: 11px; color: var(--text-3); }
.tools { display: flex; gap: var(--s-2); }
.ib { width: 44px; height: 44px; border-radius: var(--r-btn); display: grid; place-items: center; color: var(--text-2); background: rgba(255, 255, 255, .03); box-shadow: var(--edge); }
main { padding: var(--s-3) var(--page-x) 0; }

/* ---------- bottom nav ---------- */
/* A floating capsule: the current page shows its name in a gold pill, the others their icon only
   (their names stay for screen readers). */
.nav { position: fixed; bottom: calc(14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 2px;
  padding: 6px; border-radius: var(--r-pill); background: rgba(23, 21, 26, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 18px 40px -12px #000; max-width: calc(100% - 24px); }
.nav a { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; height: 48px; padding: 0 12px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 700; color: var(--text-2); transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.nav a .ic { width: 22px; height: 22px; }
.nav a[aria-current="page"] { padding: 0 18px; background: var(--gold-btn); color: var(--on-gold); }
.nav a:not([aria-current="page"]) .nl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- headings ---------- */
.screen-title { font-size: var(--fs-screen); font-weight: 900; line-height: 1.3; margin: var(--s-2) 0 var(--s-1); }
.sec { margin-top: var(--s-6); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-3); }
.sec-h h2 { font-size: var(--fs-section); font-weight: 900; }
.sec-h a, .sec-h span { font-size: var(--fs-label); font-weight: 700; color: var(--gold-500); }

/* ---------- hero (one per screen) ---------- */
.hero { position: relative; overflow: hidden; display: block; border-radius: var(--r-hero); padding: var(--s-4) var(--s-4) var(--s-5);
  background: var(--maroon-grad), var(--surface-1); box-shadow: var(--edge-strong), var(--drop); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(196, 167, 65, .25) 0 1px, transparent 1px 11px);
  -webkit-mask: linear-gradient(transparent, #000); mask: linear-gradient(transparent, #000); }
.hero > * { position: relative; z-index: 1; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; }
.eyebrow { font-size: var(--fs-label); font-weight: 700; color: var(--gold-500); }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: var(--s-3); }
.vs .side { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); font-size: 14px; font-weight: 700; text-align: center; }
.vs .mid { text-align: center; min-width: 120px; }
.score-big { font-size: 60px; line-height: 1; text-shadow: 0 0 30px rgba(196, 167, 65, .35); }
.score-big .dash { color: var(--text-3); margin: 0 6px; }
.minute { color: var(--gold-300); font-weight: 700; font-size: 13px; margin-top: 6px; }
.kick { color: var(--gold-300); font-size: 34px; line-height: 1; }
.scorers { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); font-size: var(--fs-label); color: var(--text-2); }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-label); font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .05); color: var(--text-2); }
.pill.live { color: #FFB3B3; background: rgba(255, 77, 79, .14); }
.pill.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 79, .55); } 100% { box-shadow: 0 0 0 8px rgba(255, 77, 79, 0); } }

/* ---------- match card ---------- */
.mc { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-2); padding: 10px var(--s-3); margin-bottom: var(--s-2);
  border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); }
.mc .t { display: flex; align-items: center; gap: var(--s-2); font-size: 13px; font-weight: 700; min-width: 0; }
.mc .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc .t.away { flex-direction: row-reverse; }
.mc .c { text-align: center; min-width: 76px; }
.mc .c .num { font-size: 22px; }
.mc .c .num.time { font-size: 18px; color: var(--gold-300); }
.mc .c small { display: block; font-size: 11px; color: var(--text-3); }
.mc .lose { color: var(--text-2); }

/* ---------- vote ---------- */
.vote { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.vp { flex: none; width: 108px; padding: 10px var(--s-2); border-radius: var(--r-card); text-align: center; background: var(--surface-1); box-shadow: var(--edge);
  transition: box-shadow var(--dur-2) var(--ease-out); }
.vp[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--gold-500), var(--glow); }
.vp b { display: block; font-size: var(--fs-label); line-height: 1.4; }
.vp small { font-size: 11px; color: var(--text-3); }
.avatar { width: 52px; height: 52px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3);
  background: radial-gradient(circle at 50% 30%, #2A2A2E, #121214); box-shadow: var(--edge-strong); }
.avatar .ic { width: 30px; height: 30px; }
.bar { height: 4px; border-radius: 4px; margin-top: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold-grad); transition: width var(--dur-4) var(--ease-emph); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-btn);
  font-weight: 900; background: var(--gold-btn); color: var(--on-gold); }
.btn.ghost { background: transparent; color: var(--gold-300); box-shadow: var(--edge-strong); }
.press { transition: transform var(--dur-1) var(--ease-out); }
.press:active { transform: scale(.97); }

/* ---------- empty state & skeleton ---------- */
.empty { text-align: center; padding: var(--s-10) var(--s-6); border-radius: var(--r-hero); background: var(--surface-1); box-shadow: var(--edge); }
.empty .ic { width: 44px; height: 44px; margin: 0 auto var(--s-3); color: var(--gold-500); }
.empty h3 { font-size: var(--fs-section); font-weight: 900; margin-bottom: var(--s-1); }
.empty p { color: var(--text-2); }
.sk { border-radius: var(--r-card); background: linear-gradient(90deg, var(--surface-1) 0%, var(--surface-2) 50%, var(--surface-1) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- list entrance ---------- */
.enter > * { animation: rise var(--dur-3) var(--ease-out) both; }
.enter > *:nth-child(2) { animation-delay: calc(var(--stagger) * 1); }
.enter > *:nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
.enter > *:nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
.enter > *:nth-child(5) { animation-delay: calc(var(--stagger) * 4); }
.enter > *:nth-child(n+6) { animation-delay: calc(var(--stagger) * 5); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); opacity: 0; z-index: 90;
  padding: 10px var(--s-4); border-radius: var(--r-btn); background: var(--gold-btn); color: var(--on-gold); font-weight: 900; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); max-width: 90%; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: var(--s-4) 0 var(--s-2); }
.tab { flex: none; min-height: 36px; padding: 0 var(--s-4); border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--text-2);
  background: rgba(255, 255, 255, .04); box-shadow: var(--edge); transition: color var(--dur-2), background var(--dur-2); }
.tab[aria-selected="true"] { background: var(--gold-btn); color: var(--on-gold); box-shadow: none; }

/* ---------- match page ---------- */
.bar-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); font-size: 13px; font-weight: 700; color: var(--text-2); }
.bar-row .ib .ic { color: var(--gold-300); }
.timeline { list-style: none; position: relative; padding: var(--s-2) 0; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line-strong); }
.ev { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; margin-bottom: var(--s-3); position: relative; }
.ev-min { justify-self: center; z-index: 1; font-size: var(--fs-label); font-weight: 700; color: var(--gold-300); background: var(--surface-2); padding: 3px 9px; border-radius: var(--r-pill); box-shadow: var(--edge-strong); }
.ev-body { display: flex; align-items: center; gap: var(--s-2); font-size: 13px; padding: 6px var(--s-2); border-radius: var(--r-btn); }
.ev.away .ev-body { flex-direction: row-reverse; text-align: left; }
.ev-body b { display: block; font-size: 13px; line-height: 1.35; }
.ev-body small { display: block; font-size: 11px; color: var(--text-3); }
.ev-body.flash { box-shadow: inset 0 0 0 1px var(--gold-500), 0 0 30px rgba(196, 167, 65, .3); background: linear-gradient(90deg, rgba(196, 167, 65, .12), transparent); animation: flash var(--dur-4) var(--ease-emph) 2; }
@keyframes flash { 50% { box-shadow: inset 0 0 0 1px var(--gold-300), 0 0 44px rgba(196, 167, 65, .55); } }
.ic.gold { color: var(--gold-300); } .ic.mute { color: var(--draw); } .ev-ic { width: 20px; height: 20px; }
.card-ic { width: 12px; height: 16px; border-radius: 2px; flex: none; } .card-ic.yellow { background: var(--yellow-card); } .card-ic.red { background: var(--red-card); }
.ev-mark { position: relative; z-index: 1; text-align: center; font-size: var(--fs-label); color: var(--text-3); margin: var(--s-2) auto var(--s-3); width: fit-content; padding: 2px 10px; background: var(--bg-0); border-radius: var(--r-pill); }

.pitch { position: relative; border-radius: var(--r-card); padding: var(--s-4) var(--s-2); display: flex; flex-direction: column; gap: var(--s-4);
  background: repeating-linear-gradient(180deg, #0f2a18 0 44px, #0d2515 44px 88px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14), var(--drop); }
.pitch .mid-line { height: 0; border-top: 1px solid rgba(255, 255, 255, .22); margin: 0 -8px; position: relative; }
.pitch .mid-line::after { content: ""; position: absolute; left: 50%; top: -28px; width: 56px; height: 56px; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); }
.half { display: flex; flex-direction: column; gap: var(--s-4); }
.prow { display: flex; justify-content: space-around; }
.pp { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; text-align: center; }
.pp .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: var(--text-1);
  background: var(--c); box-shadow: inset 0 0 0 2px var(--gold-500), 0 4px 10px rgba(0, 0, 0, .5); }
.pp .dot.gk { background: var(--text-1); color: var(--on-gold); }
.pitch-head { display: flex; align-items: center; gap: var(--s-2); font-weight: 700; font-size: 13px; margin: var(--s-3) 0 var(--s-2); }

/* ---------- standings ---------- */
.table-card { border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); padding: 2px 10px; }
.standings { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.standings th { font-size: 11px; font-weight: 700; color: var(--text-3); padding: 8px 2px; text-align: center; }
.standings td { padding: 9px 2px; text-align: center; border-top: 1px solid var(--line); }
.standings .tn { text-align: right; }
.standings td.tn a { display: flex; align-items: center; gap: var(--s-2); font-weight: 700; white-space: nowrap; }
.standings .rk { color: var(--text-3); width: 18px; }
.standings tr.q td:first-child { box-shadow: inset -3px 0 var(--win); }
.standings .pts { font-size: 16px; color: var(--gold-300); }
.standings .gd { font-weight: 700; color: var(--text-2); }
.form { display: flex; gap: 3px; justify-content: center; direction: ltr; }
.form i { width: 8px; height: 8px; border-radius: 50%; }
.form .W { background: var(--win); } .form .D { background: var(--draw); } .form .L { background: var(--loss); }

/* ---------- leaders ---------- */
.leader-hero { margin-top: var(--s-2); }
.lh-body { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.avatar.big { width: 64px; height: 64px; margin: 0; } .avatar.big .ic { width: 38px; height: 38px; }
.lh-name { flex: 1; min-width: 0; } .lh-name b { display: block; font-size: 18px; font-weight: 900; }
.lh-name span { display: flex; align-items: center; gap: 6px; font-size: var(--fs-label); color: var(--text-2); }
.lh-val { text-align: center; } .lh-val .num { font-size: var(--fs-stat); line-height: 1; color: var(--gold-300); text-shadow: 0 0 24px rgba(196, 167, 65, .4); }
.lh-val small { display: block; font-size: 11px; color: var(--text-3); }
.leaders { list-style: none; margin-top: var(--s-3); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); padding: 0 var(--s-3); }
.leaders li > a { display: flex; flex: 1; align-items: center; gap: var(--s-3); padding: 10px 0; border-top: 1px solid var(--line); }
.leaders li:first-child > a { border-top: 0; }
.leaders .rk { width: 20px; color: var(--text-3); font-size: var(--fs-label); text-align: center; }
.leaders .nm { flex: 1; min-width: 0; } .leaders .nm b { display: block; font-size: 14px; } .leaders .nm small { font-size: var(--fs-label); color: var(--text-3); }
.leaders .v { font-size: 18px; color: var(--gold-300); min-width: 28px; text-align: center; }

/* ---------- matches ---------- */
.rounds { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; margin-top: var(--s-3); padding: 2px; }
.round { flex: 1; min-width: 72px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); color: var(--text-2); transition: box-shadow var(--dur-2), color var(--dur-2); }
.round b { font-size: 22px; line-height: 1; }
.round small { font-size: 11px; font-weight: 700; color: var(--text-3); }
.round[aria-selected="true"] { color: var(--gold-300); box-shadow: inset 0 0 0 1.5px var(--gold-500), var(--glow); background: var(--maroon-grad), var(--surface-1); }
.round[aria-selected="true"] small { color: var(--gold-500); }
.chips { margin-top: var(--s-3); }
.slot { margin-top: var(--s-4); }
.slot-h { font-size: 13px; font-weight: 700; color: var(--text-3); margin-bottom: var(--s-2); }
.slot-h.live-h { color: #FFB3B3; }
.chips .tab { padding: 0 var(--s-3); }

/* ---------- team logo ---------- */
.badge { width: var(--s); height: var(--s); flex: none; display: grid; place-items: center; }
.badge img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .5)); }
.badge svg { filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .5)); }

/* ---------- FUT player card ---------- */
.fut { --w: 150px; position: relative; overflow: hidden; display: flex; flex-direction: column; width: var(--w); aspect-ratio: 300 / 430; padding: 12px 12px 10px;
  border-radius: 20px; color: var(--fg); background: var(--bgc); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 14px 30px rgba(0, 0, 0, .55);
  transition: transform var(--dur-3) var(--ease-out); flex: none; }
.fut.big { --w: 260px; padding: 20px 18px 16px; border-radius: 26px; }
.fut.bronze { --fg: #E7B98A; --bgc: linear-gradient(160deg, #6B4423, #3B2414 55%, #1A0F08); }
.fut.silver { --fg: #E9EEF2; --bgc: linear-gradient(160deg, #9AA3AD, #4B5259 55%, #1D2125); }
.fut.gold { --fg: #1A1406; --bgc: linear-gradient(160deg, #F0D98A, #C4A741 40%, #5C4D16 85%); }
.fut.wael { --fg: #F0D98A; --bgc: radial-gradient(120% 80% at 100% 0%, #5A0E12 0%, #3A0709 45%, #0C0C0E 85%);
  box-shadow: inset 0 0 0 2px var(--gold-500), 0 0 40px rgba(196, 167, 65, .35), 0 20px 40px rgba(0, 0, 0, .6); }
.fut.wael::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(196, 167, 65, .28) 0 1px, transparent 1px 11px); -webkit-mask: linear-gradient(transparent, #000); mask: linear-gradient(transparent, #000); }
.fut > * { position: relative; z-index: 1; }
.fut-sheen { position: absolute !important; inset: 0; z-index: 2 !important; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) var(--sx, 45%), transparent 60%); }
.fut.big .fut-sheen { animation: sheen 2.4s var(--ease-out) .3s both; }
@keyframes sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.fut.big { animation: reveal var(--dur-4) var(--ease-emph) both; }
@keyframes reveal { from { transform: perspective(800px) rotateY(-70deg) scale(.9); opacity: 0; } }
.fut-top { display: flex; justify-content: space-between; align-items: flex-start; }
.fut-rt { display: block; font-size: 34px; line-height: 1; }
.fut.big .fut-rt { font-size: 58px; }
.fut-pos { display: block; font-size: 11px; font-weight: 900; } .fut.big .fut-pos { font-size: 15px; }
.fut-crest { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fut-sil { flex: 1; display: grid; place-items: center; opacity: .55; }
.fut-sil .ic { width: 70%; height: auto; aspect-ratio: 1; }
.fut-name { text-align: center; font-weight: 900; font-size: 14px; line-height: 1.3; }
.fut.big .fut-name { font-size: 22px; }
.fut-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 6px; margin-top: 6px; text-align: center; font-size: 10px; font-weight: 700; }
.fut.big .fut-stats { font-size: 12px; gap: 6px 10px; margin-top: 10px; }
.fut-stats b { display: block; font-size: 15px; line-height: 1.1; } .fut.big .fut-stats b { font-size: 20px; }
.fut-tier { position: absolute !important; top: 10px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 900; opacity: .7; }
.card-stage { display: grid; place-items: center; padding: var(--s-2) 0 var(--s-3); perspective: 900px; }

/* ---------- radar ---------- */
.radar-card { display: grid; place-items: center; border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); padding: var(--s-3); }
.radar .rg { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.radar .rs { fill: rgba(196, 167, 65, .25); stroke: var(--gold-300); stroke-width: 2; stroke-linejoin: round; }
.radar text { font-family: var(--font); font-size: 12px; font-weight: 700; fill: var(--text-2); }
.radar .rv { fill: var(--gold-300); font-weight: 900; }

/* ---------- player matches & mates ---------- */
.pm-list { border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); padding: 0 var(--s-3); }
.pm { display: flex; align-items: center; gap: var(--s-2); padding: 10px 0; border-top: 1px solid var(--line); }
.pm:first-child { border-top: 0; }
.pm-r { width: 52px; font-size: var(--fs-label); color: var(--text-3); font-weight: 700; }
.pm-s { font-size: 15px; min-width: 44px; text-align: center; }
.pm-marks { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
.mk { display: inline-flex; align-items: center; gap: 2px; color: var(--gold-300); } .mk-ic { width: 16px; height: 16px; }
.mk.as { color: var(--text-2); } .pm-none { color: var(--text-3); }
.mates { display: flex; gap: var(--s-3); overflow-x: auto; scrollbar-width: none; padding: 4px 2px 12px; margin: 0 calc(var(--page-x) * -1); padding-inline: var(--page-x); }
.bar-row span { display: inline-flex; align-items: center; gap: 6px; }
a.pl { color: inherit; } a.pl:active { color: var(--gold-300); }
.fut { aspect-ratio: 300 / 470; }
.fut.big { aspect-ratio: auto; min-height: 420px; }
.fut-sil .ic { width: 56%; }
.fut.big .fut-sil .ic { width: 62%; }

/* ---------- bottom sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0); transition: background var(--dur-3) var(--ease-out); }
.sheet-wrap.on { background: rgba(0, 0, 0, .65); }
.sheet { width: 100%; max-width: var(--max); max-height: 86dvh; overflow-y: auto; padding: 10px var(--page-x) calc(24px + env(safe-area-inset-bottom));
  border-radius: var(--r-hero) var(--r-hero) 0 0; background: var(--surface-1); box-shadow: inset 0 1px 0 var(--line-strong), 0 -20px 40px rgba(0, 0, 0, .5);
  transform: translateY(100%); transition: transform var(--dur-3) var(--ease-emph); }
.sheet-wrap.on .sheet { transform: none; }
.grab { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto var(--s-3); }
.sheet-h { font-size: var(--fs-section); font-weight: 900; }
.sheet-p { color: var(--text-2); font-size: 13px; margin: var(--s-1) 0 var(--s-4); }
.btn.w { width: 100%; margin-top: var(--s-4); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.tg { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s-3) var(--s-1); border-radius: var(--r-card); background: var(--surface-2); box-shadow: var(--edge); font-size: 12px; font-weight: 700; }
.tg.on { box-shadow: inset 0 0 0 1.5px var(--gold-500), var(--glow); }
.sheet-acts { display: flex; gap: var(--s-2); margin-bottom: var(--s-3); } .sheet-acts .btn { flex: 1; }
.plist { display: flex; flex-direction: column; }
.pl-row { display: flex; align-items: center; gap: var(--s-3); padding: 10px 0; border-top: 1px solid var(--line); text-align: right; }
.pl-row:disabled { opacity: .35; }
.pl-row .nm { flex: 1; } .pl-row .nm b { display: block; font-size: 14px; } .pl-row .nm small { font-size: 11px; color: var(--text-3); }
.pl-row .pr { min-width: 34px; padding: 2px 8px; border-radius: var(--r-pill); background: rgba(196, 167, 65, .14); color: var(--gold-300); font-size: 13px; }

/* ---------- my team ---------- */
.team-head { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); border-radius: var(--r-hero); background: var(--maroon-grad), var(--surface-1); box-shadow: var(--edge-strong), var(--drop); }
.th-info { flex: 1; min-width: 0; } .th-info h1 { font-size: 24px; font-weight: 900; line-height: 1.2; }
.th-info p { color: var(--text-2); font-size: 13px; } .th-info p b { color: var(--gold-300); }
.form.lg { justify-content: flex-start; margin-top: 6px; } .form.lg i { width: 10px; height: 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: var(--s-2); margin-top: var(--s-3); }
.kpi { text-align: center; padding: var(--s-3) var(--s-1); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); }
.kpi b { display: block; font-size: 26px; line-height: 1.1; color: var(--gold-300); } .kpi b.neg { color: var(--loss); }
.kpi small { font-size: 11px; color: var(--text-3); font-weight: 700; }
.roster { border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); padding: var(--s-1) var(--s-3) var(--s-2); }
.roster h3 { font-size: 11px; color: var(--gold-500); font-weight: 700; margin: var(--s-3) 0 var(--s-1); }
.ro { display: flex; align-items: center; gap: var(--s-3); padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ro-n { width: 26px; color: var(--text-3); font-size: 13px; text-align: center; } .ro b { flex: 1; font-weight: 700; }
.ro-st { display: inline-flex; align-items: center; gap: 2px; color: var(--gold-300); font-size: 12px; }
.ro-rt { min-width: 34px; text-align: center; padding: 2px 6px; border-radius: 8px; font-size: 13px; }
.ro-rt.bronze, .fs-rt.bronze { background: #3B2414; color: #E7B98A; } .ro-rt.silver, .fs-rt.silver { background: #4B5259; color: #E9EEF2; }
.ro-rt.gold, .fs-rt.gold { background: var(--gold-500); color: var(--on-gold); } .ro-rt.wael, .fs-rt.wael { background: var(--maroon-900); color: var(--gold-300); box-shadow: inset 0 0 0 1px var(--gold-500); }
.standings tr.fav td { background: rgba(196, 167, 65, .08); }

/* ---------- fantasy ---------- */
.fan-total { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s-2); padding: var(--s-3) var(--s-4); border-radius: var(--r-card);
  background: var(--maroon-grad), var(--surface-1); box-shadow: var(--edge-strong); font-weight: 700; color: var(--text-2); }
.fan-total b { font-size: 34px; color: var(--gold-300); line-height: 1; }
.rules { display: flex; gap: var(--s-2); margin: var(--s-2) 0 var(--s-3); font-size: 12px; color: var(--text-2); }
.rules span { padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .04); box-shadow: var(--edge); }
.rules b { color: var(--gold-300); margin-inline-end: 4px; }
.pred { display: grid; grid-template-columns: 1fr auto 14px auto 1fr; align-items: center; gap: var(--s-2); padding: var(--s-3); margin-bottom: var(--s-2); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); }
.pred.exact { box-shadow: inset 0 0 0 1.5px var(--gold-500), var(--glow); }
.pt { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; text-align: center; }
.step { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.step button { width: 34px; height: 30px; border-radius: 10px; background: var(--surface-2); box-shadow: var(--edge); color: var(--gold-300); font-size: 18px; font-weight: 900; line-height: 1; }
.step b { font-size: 28px; line-height: 1.1; min-width: 34px; text-align: center; }
.pv { font-size: 28px; min-width: 34px; text-align: center; }
.vs-dot { text-align: center; color: var(--text-3); font-weight: 900; }
.pred-foot { grid-column: 1 / -1; text-align: center; font-size: 11px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: var(--s-2); }
.gain { color: var(--win); }
.fpitch { margin-top: var(--s-3); padding: var(--s-4) var(--s-2); display: flex; flex-direction: column; gap: var(--s-3); border-radius: var(--r-card);
  background: repeating-linear-gradient(180deg, #0f2a18 0 52px, #0d2515 52px 104px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14), var(--drop); }
.frow { display: flex; justify-content: space-evenly; }
.fs { position: relative; width: 92px; min-height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px;
  border-radius: 14px; background: rgba(8, 8, 10, .65); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 12px; }
.fs b { font-size: 12px; } .fs small { font-size: 10px; color: var(--gold-300); }
.fs-rt { font-size: 12px; padding: 0 6px; border-radius: 6px; }
.empty-slot { border: 1.5px dashed rgba(240, 217, 138, .35); box-shadow: none; color: var(--text-3); }
.fs-plus { font-size: 28px; line-height: 1; color: var(--gold-300); }
.cap { position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; background: var(--gold-btn); color: var(--on-gold); }
.hint { font-size: 12px; color: var(--text-3); margin-top: var(--s-3); line-height: 1.6; }
.leaders li.me > a { background: rgba(196, 167, 65, .08); margin: 0 calc(var(--s-3) * -1); padding-inline: var(--s-3); }
.avatar.sm { width: 34px; height: 34px; margin: 0; } .avatar.sm .ic { width: 20px; height: 20px; }
.calm .enter > *, .calm .fut.big, .calm .fut-sheen { animation: none !important; }

/* ---------- recorder ---------- */
.inp { width: 100%; min-height: 48px; padding: 0 var(--s-4); border-radius: var(--r-btn); background: var(--surface-2); box-shadow: var(--edge-strong); color: var(--text-1); margin-top: var(--s-4); text-align: center; }
.rec-login { width: 100%; }
.rec-board { text-align: center; padding: var(--s-4); }
.rec-score { font-size: 64px; line-height: 1; } .rec-score .dash { color: var(--text-3); margin: 0 10px; }
.rec-clock { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-2); }
.rec-clock b { font-size: 30px; color: var(--gold-300); direction: ltr; min-width: 70px; }
.rec-clock button { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); box-shadow: var(--edge-strong); font-size: 22px; font-weight: 900; color: var(--gold-300); }
.rec-ctl { display: flex; gap: var(--s-2); margin-top: var(--s-3); } .rec-ctl .btn { flex: 1; }
.rec-sides { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-4); }
.rec-side { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); padding: var(--s-3); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); }
.rec-side > b { font-size: 14px; }
.rb { width: 100%; min-height: 56px; border-radius: 14px; font-weight: 900; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.rb:disabled { opacity: .3; }
.rb.goal { min-height: 72px; font-size: 20px; background: var(--gold-btn); color: var(--on-gold); }
.rb-row { display: flex; gap: 6px; width: 100%; } .rb-row .rb { flex: 1; }
.rb.yel { background: var(--yellow-card); color: #1A1406; } .rb.redc { background: var(--red-card); color: #fff; }
.rb.sub { background: var(--surface-2); box-shadow: var(--edge-strong); color: var(--text-1); }
.rec-log { border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); padding: 0 var(--s-3); }
.rl { display: flex; align-items: center; gap: var(--s-2); padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rl:first-child { border-top: 0; } .rl-m { color: var(--gold-300); min-width: 34px; } .rl small { color: var(--text-3); margin-inline-start: auto; }
.rl-x { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-size: 18px; }
.undo { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 65; width: min(92%, 480px);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 12px var(--s-4); border-radius: var(--r-card); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--edge-strong), var(--drop); font-weight: 700; }
.undo button { color: var(--gold-300); font-weight: 900; }
.undo i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold-500); transform-origin: left; animation: drain 5s linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }

/* ---------- install ---------- */
.install { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-card);
  background: linear-gradient(90deg, rgba(196, 167, 65, .14), rgba(196, 167, 65, .04)); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; }
.install div { flex: 1; } .install b { display: block; font-size: 14px; } .install small { font-size: 12px; color: var(--text-2); }
.install-x { width: 32px; height: 32px; border-radius: 50%; color: var(--text-3); font-size: 18px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-2); }
.steps li { display: flex; align-items: center; gap: var(--s-3); font-size: 15px; }
.steps .num { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold-btn); color: var(--on-gold); }
.steps .ic { display: inline-block; vertical-align: middle; width: 20px; height: 20px; }
.search-inp { margin: var(--s-2) 0 var(--s-2); text-align: right; }
.vote-m { display: inline-flex; gap: 4px; }
.mates { padding-block: 20px 28px; margin-block: -16px -12px; }
.round b.stage { font-size: 13px; line-height: 1.3; }

/* ---------- seasons ---------- */
.season-banner { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); padding: 10px var(--s-3); border-radius: var(--r-card);
  background: rgba(196, 167, 65, .1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.season-banner div { flex: 1; } .season-banner b { display: block; font-size: 14px; } .season-banner small { font-size: 11px; color: var(--text-2); }
.btn.sm { min-height: 36px; padding: 0 var(--s-3); font-size: 12px; }
.seasons { display: flex; flex-direction: column; gap: var(--s-2); }
.season { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-card); background: var(--surface-2); box-shadow: var(--edge); text-align: right; }
.season.on { box-shadow: inset 0 0 0 1.5px var(--gold-500), var(--glow); }
.season-t b { display: block; font-size: 20px; } .season-t small { font-size: 11px; color: var(--text-3); font-weight: 700; }
.season-c { display: flex; align-items: center; gap: var(--s-2); } .season-c small { display: block; font-size: 11px; color: var(--gold-500); } .season-c b { font-size: 14px; }
.champ { margin-bottom: var(--s-4); }
.champ-b { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-3); }
.champ-b b { display: block; font-size: 26px; font-weight: 900; color: var(--gold-300); } .champ-b small { display: block; font-size: 13px; color: var(--text-2); }
.champ-row { width: 100%; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); margin-bottom: var(--s-2); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); text-align: right; }
.cr-season { min-width: 78px; } .cr-season b { display: block; font-size: 15px; color: var(--gold-300); } .cr-season small { font-size: 10px; color: var(--text-3); }
.cr-info { flex: 1; } .cr-info b { display: block; font-size: 16px; } .cr-info small { display: block; font-size: 12px; color: var(--text-2); }
.round { min-width: 60px; }
.scorers span { flex: 1; min-width: 0; }
.scorers span:last-child { text-align: left; }

/* ---------- display font: headings, scores, numbers ---------- */
.screen-title, .sec-h h2, .brand b, .hero .side, .num, .th-info h1, .fut-name, .champ-b b, .lh-name b, .sheet-h,
.tab, .round b, .kpi b, .rec-score, .fan-total b, .season-t b, .cr-info b, .cr-season b, .tagline, .team-head h1 { font-family: var(--font-display); }
.standings tr.q3 td:first-child { box-shadow: inset -3px 0 var(--yellow-card); }
.standings .gfa { font-weight: 700; color: var(--text-2); white-space: nowrap; } .standings th { white-space: nowrap; }

/* ---------- admin ---------- */
.adm-top { display: flex; align-items: center; justify-content: space-between; }
.adm-acts { display: flex; gap: var(--s-2); margin: var(--s-2) 0; } .adm-acts .btn { flex: 1; }
.adm-list { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-3); }
.adm-row { width: 100%; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); text-align: right; }
.adm-row.off { opacity: .45; }
.adm-row .nm { flex: 1; min-width: 0; } .adm-row .nm b { display: block; font-size: 15px; } .adm-row .nm small { font-size: 12px; color: var(--text-3); }
.adm-row .chev { color: var(--text-3); width: 18px; height: 18px; }
.adm-row .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
button.adm-row:has(.adm-m) { flex-direction: column; align-items: stretch; gap: 6px; }
.adm-m { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-2); font-weight: 700; font-size: 13px; }
.adm-m span { display: flex; align-items: center; gap: 6px; } .adm-m span:last-child { justify-content: flex-end; }
.adm-m b { color: var(--gold-300); font-size: 15px; }
.adm-row small { font-size: 11px; color: var(--text-3); text-align: center; }
.adm-h { font-size: 12px; color: var(--gold-500); font-weight: 700; margin: var(--s-3) 0 var(--s-1); }
.adm-form { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-3); }
.fld { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; } .fld > span { font-size: 12px; font-weight: 700; color: var(--text-2); }
.fld .inp { margin-top: 0; text-align: right; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-500) 50%), linear-gradient(135deg, var(--gold-500) 50%, transparent 50%);
  background-position: 14px 50%, 19px 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type=date].inp { direction: ltr; text-align: right; color-scheme: dark; }
.fld-row { display: flex; gap: var(--s-2); }
.colors { display: flex; gap: var(--s-2); } .colors input { width: 48px; height: 44px; border-radius: 10px; border: 0; background: none; padding: 0; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); } .chk input { width: 18px; height: 18px; accent-color: var(--gold-500); }
.img-fld { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-card); background: var(--surface-2); box-shadow: var(--edge); }
.img-prev { width: 72px; height: 72px; flex: none; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: repeating-conic-gradient(#1a1a1d 0 25%, #242428 0 50%) 0 0 / 16px 16px; color: var(--text-3); }
.img-prev img { width: 100%; height: 100%; object-fit: contain; } .img-prev .ic { width: 36px; height: 36px; }
.img-fld b { display: block; font-size: 14px; } .img-fld small { display: block; font-size: 11px; color: var(--text-3); }
.img-acts { display: flex; gap: 6px; margin-top: 6px; } .img-acts label { cursor: pointer; }
.btn.danger { color: var(--loss); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .5); } .btn.danger-bg { background: var(--loss); color: #fff; }
.hint.warn { color: var(--amber, #e3a63b); }
.key-box { margin: var(--s-3) 0; padding: var(--s-4); border-radius: var(--r-card); background: var(--surface-2); box-shadow: var(--edge-strong); text-align: center; font-size: 30px; letter-spacing: 2px; color: var(--gold-300); }
.staff { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin: var(--s-8) 0 var(--s-2); font-size: 12px; color: var(--text-3); }
.staff a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.fut-ph { width: 78%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.fut-sil:has(.fut-ph) { opacity: 1; }

/* ---------- media centre ---------- */
.adm-sub { font-size: 13px; color: var(--text-3); margin-top: -6px; }
.adm-note { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.cmd { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.cmd .inp { margin: 0; text-align: right; flex: 1; }
.cmd .btn { flex: none; padding: 0 var(--s-5, 20px); }
.ex .tab { font-size: 12px; min-height: 30px; color: var(--text-3); }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: var(--r-pill); background: var(--surface-2); box-shadow: var(--edge); margin-top: var(--s-2); }
.seg button { flex: 1; min-height: 34px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--gold-btn); color: var(--on-gold); }
.poster-wrap { margin-top: var(--s-3); display: grid; place-items: center; padding: var(--s-3); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); }
.poster { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 10px; background: #08080A; }
textarea.inp { min-height: 96px; padding: var(--s-3) var(--s-4); resize: vertical; line-height: 1.6; text-align: right; }
.img-fld .ph { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-1); color: var(--text-3); }
.img-fld .ph .ic { width: 22px; height: 22px; }

/* ---------- captain ---------- */
.cap-team { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); font-size: 18px; }
.cap-match { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3); padding: var(--s-3); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); }
.cap-match > div { flex: 1; min-width: 0; } .cap-match b { display: block; font-size: 15px; } .cap-match small { font-size: 12px; color: var(--text-3); }
.pill.ok { color: #9BE3B4; background: rgba(46, 160, 90, .16); }
.cap-count { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-3) 0 var(--s-2); font-size: 13px; color: var(--text-2); }
.cap-count b { color: var(--gold-300); font-size: 15px; } .cap-count .warn { color: #E3A63B; font-weight: 700; margin-inline-start: auto; }
.cap-pitch { min-height: 120px; justify-content: center; }
.cap-empty { text-align: center; font-size: 13px; color: var(--text-3); }
.pp .dot { position: relative; }
.cap-c { position: absolute; top: -6px; inset-inline-start: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-500); color: var(--on-gold); font-size: 10px; font-style: normal; font-weight: 900; display: grid; place-items: center; }
.cap-row { display: flex; align-items: center; gap: var(--s-2); padding: 10px var(--s-3); border-radius: 14px; background: var(--surface-1); box-shadow: var(--edge); }
.cap-row.xi { box-shadow: inset 0 0 0 1.5px var(--gold-500); } .cap-row.sub { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.cap-row b { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-num { width: 24px; text-align: center; color: var(--text-3); font-weight: 900; }
.cap-btns { display: flex; gap: 4px; flex: none; }
.cap-btns button { min-height: 32px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; color: var(--text-2); background: rgba(255, 255, 255, .05); }
.cap-btns button[aria-pressed="true"] { background: var(--gold-btn); color: var(--on-gold); }
.cap-btns .cap-arm { width: 32px; padding: 0; font-weight: 900; } .cap-btns .cap-arm:disabled { opacity: .3; }
.lu-note { font-size: 12px; color: var(--text-3); text-align: center; margin: var(--s-2) 0; }
.lu-subs { font-size: 12px; color: var(--text-2); line-height: 1.8; margin-top: var(--s-2); }

/* ---------- match video ---------- */
.vid { margin-top: var(--s-3); }
.vid-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: #000; box-shadow: var(--edge-strong); }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-link { display: block; text-align: center; font-size: 12px; color: var(--text-3); margin-top: 6px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- before the season starts ---------- */
.soon { padding: var(--s-5, 20px); }
.soon h2 { font-family: "YPL Display", "YPL Sans", sans-serif; font-size: 30px; margin: 6px 0; color: var(--gold-300); }
.soon p { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.soon-teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.soon-teams a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s-3) 4px; border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); font-size: 12px; text-align: center; }

/* ---------- notifications ---------- */
.nt-opts { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-3); }
.nt-opt { text-align: right; padding: var(--s-3) var(--s-4); border-radius: var(--r-card); background: var(--surface-2); box-shadow: var(--edge); }
.nt-opt b { display: block; font-size: 15px; } .nt-opt small { font-size: 12px; color: var(--text-3); }
.nt-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--gold-500); } .nt-opt:disabled { opacity: .45; }
.nt-row { display: flex; align-items: center; gap: var(--s-3); width: 100%; margin-top: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); text-align: right; }
.nt-row .ic { width: 22px; height: 22px; color: var(--gold-300); } .nt-row div { flex: 1; } .nt-row b { display: block; font-size: 14px; } .nt-row small { font-size: 12px; color: var(--text-3); }
.nt-row.on small { color: var(--gold-300); }
.sheet-h:has(.ic) { display: flex; align-items: center; gap: 8px; } .sheet-h .ic { width: 22px; height: 22px; }

/* sheet close button; toasts stay visible above an open sheet */
.sheet { position: relative; }
.sheet-x { position: absolute; top: 10px; left: 12px; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--text-2); background: rgba(255, 255, 255, .06); z-index: 2; }
body:has(.sheet-wrap.on) .toast { bottom: auto; top: calc(16px + env(safe-area-inset-top)); }

/* ---------- before the match ---------- */
.pr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-2); }
.pr-o { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s-3) 6px; border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); font-size: 13px; }
.pr-o[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--gold-500), var(--glow); }
.pr-o:disabled { opacity: 1; }
.pr-x { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .06); font-weight: 900; color: var(--text-2); }
.pr-bar { width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.pr-bar i { display: block; height: 100%; background: var(--gold-btn); border-radius: 6px; transition: width var(--dur-3) var(--ease-out); }
.pr-o small { font-size: 12px; color: var(--gold-300); font-weight: 900; }
.pm-card { border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); padding: var(--s-2) var(--s-3); }
.pm-row { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) 0; } .pm-row + .pm-row { border-top: 1px solid var(--line); }
.pm-row > b { flex: 1; font-size: 14px; } .pm-row .form.lg { margin: 0; } .pm-row small { font-size: 11px; color: var(--text-3); min-width: 62px; text-align: left; }
.pm-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.pm-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--s-2) 0; } .pm-stat b { font-size: 26px; font-family: "YPL Display", "YPL Sans", sans-serif; color: var(--gold-300); } .pm-stat small { font-size: 11px; color: var(--text-3); text-align: center; }
.pm-key { display: flex; gap: var(--s-2); padding: var(--s-2) 0; } .pm-key > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pm-key a b { display: block; font-size: 13px; } .pm-key small { font-size: 11px; color: var(--text-3); }

/* ---------- suspensions ---------- */
.pill.red-pill { color: #FFB3B3; background: rgba(229, 72, 77, .16); white-space: nowrap; }
.cap-row.banned { opacity: .7; } .cap-row.banned b { text-decoration: line-through; text-decoration-color: rgba(229, 72, 77, .6); }
.ban { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-card); background: rgba(229, 72, 77, .1); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .35); }
.ban b { display: block; font-size: 14px; } .ban small { font-size: 12px; color: var(--text-2); }

/* ---------- match night board ---------- */
.tick { display: flex; align-items: center; gap: var(--s-3); padding: 10px var(--s-3); border-radius: var(--r-card); background: var(--gold-btn); color: var(--on-gold); }
.tick .ic { width: 24px; height: 24px; flex: none; } .tick > div { flex: 1; min-width: 0; }
.tick b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tick small { font-size: 12px; font-weight: 700; opacity: .75; }
.tick-ago { font-size: 12px; font-weight: 900; flex: none; }
.lbs { display: flex; flex-direction: column; gap: var(--s-2); }
.lb { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s-2); min-height: 68px; padding: var(--s-2) var(--s-3); border-radius: var(--r-card);
  background: linear-gradient(90deg, var(--surface-1), rgba(90, 14, 18, .55)); box-shadow: var(--edge); }
.lb.mine { box-shadow: inset 0 0 0 1.5px var(--gold-500); }
.lb-p { display: flex; flex-direction: column; align-items: center; border-inline-end: 1px solid var(--line-strong); padding-inline-end: var(--s-2); }
.lb-p b { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--gold-300); } .lb-p small { font-size: 12px; color: var(--text-3); }
.lb-t { display: flex; align-items: center; gap: var(--s-2); min-width: 0; font-size: 14px; font-weight: 700; } .lb-t.away { justify-content: flex-end; }
.lb-t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-s { display: flex; flex-direction: column; align-items: center; } .lb-s .num { direction: ltr; font-family: var(--font-display); font-size: 32px; line-height: 1.05; }
.lb-s .dash { margin: 0 6px; opacity: .4; } .lb-s small { font-size: 12px; font-weight: 700; color: #FFB3B3; }
@keyframes goal-flash { 0% { box-shadow: inset 0 0 0 2px var(--gold-300), 0 0 0 0 rgba(240, 217, 138, .7); background: rgba(196, 167, 65, .35); } 100% { box-shadow: inset 0 0 0 1.5px var(--gold-500), 0 0 0 18px rgba(240, 217, 138, 0); } }
.lb.goal { animation: goal-flash 1.6s var(--ease-out) 2; }
.nx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.nx-c { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--s-3) 4px; border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); text-align: center; }
.nx-c > div { display: flex; gap: 4px; margin-bottom: 4px; } .nx-c b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .nx-c small { font-size: 12px; color: var(--gold-300); font-weight: 700; margin-top: 2px; }
.lt { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); }
.lt-r, .lt-k { display: grid; grid-template-columns: 20px 12px 22px minmax(0, 1fr) 30px 40px 34px; align-items: center; gap: 6px; padding: 0 var(--s-2); }
.lt-r { min-height: 44px; border-radius: 12px; font-size: 14px; } .lt-r.mine { background: rgba(196, 167, 65, .12); box-shadow: inset 0 0 0 1px var(--line-strong); }
.lt-k { order: -1; font-size: 12px; color: var(--text-3); padding-block: 4px; } .lt-k span:nth-child(n+5), .lt-c, .lt-pts { text-align: center; }
.lt-n { color: var(--text-2); } .lt-c { color: var(--text-2); } .lt-pts { font-family: var(--font-display); font-size: 17px; }
.lt-r b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-mv.up::before { content: "▲"; color: var(--win); font-size: 10px; } .lt-mv.down::before { content: "▼"; color: var(--loss); font-size: 10px; }
.lt-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--live); margin-inline-start: 6px; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .lb.goal { animation: none; } }

/* ---------- standings: four columns ---------- */
.st { border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); padding: 4px 6px 6px; }
.st-k, .st-r { display: grid; grid-template-columns: 22px minmax(0, 1fr) 34px 40px 52px 36px; align-items: center; gap: 6px; padding: 0 var(--s-2); text-align: center; width: 100%; }
.st-k { font-size: 12px; color: var(--text-3); padding-block: 8px; } .st-k span:nth-child(2) { text-align: right; }
.st-r { min-height: 48px; border-radius: 12px; font-size: 14px; color: var(--text-2); border-top: 1px solid var(--line); border-radius: 0; }
.st-r.fav { background: rgba(196, 167, 65, .1); border-radius: 12px; } .st-r[aria-expanded="true"] { background: rgba(255, 255, 255, .04); }
.st-n { color: var(--text-3); box-shadow: inset -3px 0 transparent; } .st-r.q .st-n { box-shadow: 6px 0 0 -3px var(--win); } .st-r.q3 .st-n { box-shadow: 6px 0 0 -3px var(--yellow-card); }
.st-t { display: flex; align-items: center; gap: var(--s-2); min-width: 0; color: var(--text-1); } .st-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-gd { font-weight: 700; } .st-pts { font-family: var(--font-display); font-size: 18px; color: var(--gold-300); }
.st-r .form i { width: 10px; height: 10px; }
.st-x { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: var(--s-2) var(--s-2) var(--s-3); font-size: 12px; color: var(--text-3); text-align: center; }
.st-x b { display: block; font-size: 17px; color: var(--text-1); } .st-x a { grid-column: 1 / -1; margin-top: 6px; min-height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--gold-300); font-weight: 700; font-size: 13px; }
.st-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline: 8px 4px; vertical-align: middle; } .st-legend i.q { background: var(--win); } .st-legend i.q3 { background: var(--yellow-card); }

/* ---------- predictions game ---------- */
.pk { margin-bottom: var(--s-3); padding: var(--s-3); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); }
.pk-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); margin-bottom: var(--s-2); } .pk-h a { color: var(--gold-300); font-weight: 700; padding: 6px 0; }
.pk-o { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: var(--s-2) 4px; border-radius: 14px; background: var(--surface-2); box-shadow: var(--edge); font-size: 13px; }
.pk-o b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .pk-o small { font-size: 12px; color: var(--gold-300); font-weight: 900; }
.pk-o[aria-pressed="true"] { background: rgba(196, 167, 65, .14); box-shadow: inset 0 0 0 1.5px var(--gold-500); }
.pk-list { display: flex; flex-direction: column; gap: var(--s-2); }
.pk-r { display: flex; align-items: center; gap: var(--s-2); min-height: 56px; padding: var(--s-2) var(--s-3); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); }
.pk-r bdi { font-family: var(--font-display); font-size: 18px; } .pk-r > div { flex: 1; min-width: 0; margin-inline-start: var(--s-2); } .pk-r b { display: block; font-size: 13px; } .pk-r small { font-size: 12px; color: var(--text-3); }
.pk-v { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; } .pk-v .ic { width: 16px; height: 16px; }
.pk-v.ok { background: rgba(61, 214, 140, .18); color: var(--win); } .pk-v.no { background: rgba(229, 72, 77, .16); color: var(--loss); }

/* ---------- media centre: preview first ---------- */
.poster { max-height: 46vh; }
.md-acts { display: flex; gap: var(--s-2); align-items: center; margin-top: var(--s-2); } .md-acts .seg { flex: 1; margin: 0; } .md-acts .btn { flex: none; min-height: 44px; } .md-acts .seg button { min-height: 40px; }
.md-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); } .md-kinds .tab { min-height: 44px; justify-content: center; }
.md-ex { display: flex; flex-direction: column; gap: 6px; } .md-ex button { min-height: 44px; padding: 0 var(--s-3); border-radius: 12px; background: var(--surface-1); box-shadow: var(--edge); text-align: right; font-size: 13px; color: var(--text-2); }
.staff a { padding: 12px 16px; }
.total-card { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4); border-radius: var(--r-card); background: var(--maroon-grad), var(--surface-1); box-shadow: var(--edge); }
.total-card span { display: block; font-size: 15px; font-weight: 700; } .total-card small { font-size: 12px; color: var(--text-3); }
.total-card b { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--gold-300); }

/* ---------- league sign-up ---------- */
.jn-card { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); margin-bottom: var(--s-4); border-radius: var(--r-hero); background: radial-gradient(120% 140% at 100% 0%, #5A0E12 0%, #2a0a0c 55%, var(--surface-1) 100%); box-shadow: inset 0 0 0 1px var(--line-strong), var(--glow); }
.jn-card > div { flex: 1; min-width: 0; } .jn-card b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--gold-300); line-height: 1.3; } .jn-card small { font-size: 13px; color: var(--text-2); }
.jn-card .btn { flex: none; min-height: 44px; padding: 0 16px; }
.jn-choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: var(--s-4) 0; }
.jn-c { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: var(--s-5, 20px) var(--s-3); border-radius: var(--r-card); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.jn-c .ic { width: 40px; height: 40px; color: var(--gold-300); } .jn-c b { font-family: var(--font-display); font-size: 22px; } .jn-c small { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.jn-back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-size: 14px; color: var(--text-2); } .jn-back .ic { width: 16px; height: 16px; }
.jn-form fieldset { border: 0; padding: 0; margin: 0; } .jn-form legend { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; padding: 0; }
.fld-hint { display: block; font-size: 12px; color: var(--text-3); margin-top: 6px; }
.jn-pos { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); } .jn-yn { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.jn-pos label, .jn-yn label { position: relative; display: block; }
.jn-pos input, .jn-yn input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.jn-pos span, .jn-yn span { display: grid; place-items: center; min-height: 48px; border-radius: 14px; background: var(--surface-2); box-shadow: var(--edge); font-size: 14px; font-weight: 700; color: var(--text-2); }
.jn-pos input:checked + span, .jn-yn input:checked + span { background: rgba(196, 167, 65, .14); box-shadow: inset 0 0 0 1.5px var(--gold-500); color: var(--gold-300); }
.jn-pos input:focus-visible + span, .jn-yn input:focus-visible + span { outline: 2px solid var(--gold-300); outline-offset: 2px; }
/* The bot trap: invisible and out of reach, without pushing the page sideways (left: -9999px widened the RTL page). */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.jn-ok > .ic { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: rgba(61, 214, 140, .16); color: var(--win); }
.jn-ok-acts { display: flex; gap: var(--s-2); justify-content: center; margin-top: var(--s-4); flex-wrap: wrap; }
.pf { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: var(--s-5, 20px) var(--s-4) var(--s-4); border-radius: var(--r-hero);
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--tc, #5A0E12) 80%, transparent) 0%, #17151A 70%); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pf-ph { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--gold-500), var(--glow); background: #0d0d10; }
.pf-in { display: grid; place-items: center; font-family: var(--font-display); font-size: 46px; color: var(--gold-300); }
.pf h1 { margin: 8px 0 0; font-family: var(--font-display); font-size: 30px; line-height: 1.2; }
.pf-tags { display: flex; gap: 6px; } .pf-tags span { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 13px; font-weight: 700; color: var(--text-2); }
.pf-team { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(0, 0, 0, .25); }
.pf-wait { margin: 6px 0 0; font-size: 13px; color: var(--gold-300); }
.pf-bio { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); line-height: 1.8; font-size: 14px; }
.mb-badge { font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 999px; background: rgba(196, 167, 65, .16); color: var(--gold-300); white-space: nowrap; }
.mb-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: var(--s-2) 0; }
.mb-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); }
.mb-head b { font-family: var(--font-display); font-size: 28px; color: var(--gold-300); line-height: 1; } .mb-head small { display: block; font-size: 12px; color: var(--text-3); }
.noms { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); margin-bottom: var(--s-2); }
.nom { display: grid; grid-template-columns: 22px minmax(0, 1fr) 80px 28px; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-2); font-size: 14px; }
.nom b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nom-r { color: var(--text-3); } .nom-c { font-family: var(--font-display); font-size: 18px; color: var(--gold-300); text-align: center; }
.nom-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; } .nom-bar i { display: block; height: 100%; background: var(--gold-btn); border-radius: 6px; }

/* ---------- «كن جزء من التغطية» ---------- */
.cvb { margin: var(--s-4) 0; padding: var(--s-4); border-radius: var(--r-hero); background: radial-gradient(120% 120% at 100% 0%, rgba(90, 14, 18, .9) 0%, #1a0c0e 50%, var(--surface-1) 100%); box-shadow: inset 0 0 0 1px var(--line-strong), var(--glow); }
.cvb-h { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.cvb-h h2 { margin: 0; font-family: var(--font-display); font-size: 24px; color: var(--gold-300); } .cvb-h p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.cvb-n { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 6px; border-radius: 14px; background: rgba(0, 0, 0, .3); }
.cvb-n b { font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--gold-300); } .cvb-n small { font-size: 11px; color: var(--text-2); }
.cvb-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-4); }
.cvb-a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; border-radius: 16px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; font-weight: 700; cursor: pointer; text-align: center; }
.cvb-a .ic { width: 30px; height: 30px; color: var(--gold-300); }
.cvb-a:first-child { background: var(--gold-btn); color: var(--on-gold); box-shadow: none; } .cvb-a:first-child .ic { color: var(--on-gold); }
.cvb-note { display: block; margin-top: var(--s-2); font-size: 12px; color: var(--text-3); text-align: center; }
.cv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; border-radius: var(--r-card); overflow: hidden; }
.cv-t { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.cv-t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-ph { display: grid; place-items: center; height: 100%; color: var(--text-3); } .cv-ph .ic { width: 28px; height: 28px; }
.cv-play { position: absolute; inset: 0; margin: auto; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.cv-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.cv-st { position: absolute; bottom: 4px; inset-inline: 4px; padding: 2px 4px; border-radius: 6px; font-size: 10px; font-weight: 900; text-align: center; background: rgba(0, 0, 0, .7); color: var(--text-2); }
.cv-st.approved { color: var(--win); } .cv-st.rejected { color: var(--loss); }
.up-list { display: flex; flex-direction: column; gap: var(--s-2); margin: var(--s-3) 0; }
.up-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: var(--s-2); font-size: 13px; }
.up-row small { font-size: 12px; color: var(--text-3); min-width: 44px; text-align: left; max-width: 140px; } .up-row.fail small { color: var(--loss); } .up-row.done small { color: var(--win); }
.up-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; } .up-bar i { display: block; width: 0; height: 100%; background: var(--gold-btn); transition: width .3s; }
.vw { margin: 0 calc(var(--s-4) * -1); background: #000; } .vw img, .vw video { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #000; }
.vw-by { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-top: var(--s-2); font-size: 13px; color: var(--text-2); }
.vw-by img, .vw-by .ic { width: 32px; height: 32px; border-radius: 50%; }
/* accounts */
.lg-btn { display: flex; justify-content: center; min-height: 48px; margin: var(--s-3) 0; }
.ac-head { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-2) 0 var(--s-3); }
.ac-head h1 { margin: 0; font-family: var(--font-display); font-size: 26px; } .ac-head a { font-size: 13px; color: var(--gold-300); }
.ac-av { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold-500); flex: none; } .ac-in { display: grid; place-items: center; background: var(--surface-2); font-family: var(--font-display); font-size: 34px; color: var(--gold-300); }
.soc-in { display: flex; align-items: center; gap: 6px; } .soc-in bdi { color: var(--text-3); font-weight: 700; } .soc-in .inp { margin: 0; flex: 1; text-align: left; }
.soc { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: var(--s-2); }
.soc-c { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; }
.soc-c b { color: var(--gold-300); font-size: 12px; } .soc-c bdi { color: var(--text-1); }
.cq { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-2); }
.cq-c { border-radius: var(--r-card); overflow: hidden; background: var(--surface-1); box-shadow: var(--edge); }
.cq-c img, .cq-c video { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #000; }
.cq-i { padding: var(--s-2) var(--s-3) 0; } .cq-i b { display: block; font-size: 14px; } .cq-i small { font-size: 12px; color: var(--text-3); }
.cq-a { display: flex; gap: var(--s-2); padding: var(--s-2) var(--s-3) var(--s-3); } .cq-a .btn { flex: 1; min-height: 44px; }
.warn-note { color: #E3A63B; }

/* ---------- people in photos ---------- */
.tp { margin-top: var(--s-3); }
.tp-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-2); } .tp-h b { font-size: 15px; } .tp-h small { font-size: 12px; color: var(--text-3); }
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-2); }
.tp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; background: rgba(196, 167, 65, .14); color: var(--gold-300); font-size: 13px; font-weight: 700; }
.tp-chip span { font-size: 18px; line-height: 1; color: var(--text-2); } .tp-me { background: var(--surface-2); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line-strong); } .tp-me .ic { width: 18px; height: 18px; color: var(--gold-300); }
.tp-q { position: relative; } .tp-q .ic { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.tp-q .inp { margin: 0; padding-inline-start: 38px; }
.tp-res { display: flex; flex-direction: column; margin-top: 4px; max-height: 300px; overflow-y: auto; }
.tp-r { display: flex; align-items: center; gap: var(--s-2); min-height: 52px; padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: start; }
.tp-r span { flex: 1; min-width: 0; } .tp-r b { display: block; font-size: 14px; } .tp-r small { font-size: 12px; color: var(--text-3); }
.tp-plus { width: 18px; height: 18px; color: var(--gold-300); opacity: .7; }
.pp-face { flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.pp-in { display: grid; place-items: center; font-family: var(--font-display); font-size: 14px; color: var(--gold-300); }
.ptag { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--s-2); }
.ptag-l { font-size: 12px; color: var(--text-3); margin-inline-end: 2px; }
.ptag-c { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; font-weight: 700; }
.vw-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-3); } .vw-act .btn { min-height: 44px; }
.vw-link { font-size: 13px; color: var(--gold-300); min-height: 44px; display: inline-flex; align-items: center; }
.cv-tg { position: absolute; top: 4px; inset-inline-start: 4px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-size: 11px; font-weight: 900; color: #fff; }
.cv-tg .ic { width: 12px; height: 12px; }
.cq-c .ptag { padding: 0 var(--s-3); }
.lnk { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.ac-link .lnk { justify-content: center; width: 100%; }
.ac-linked { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; } .ac-linked .ic { width: 18px; height: 18px; color: var(--gold-300); }
/* player tables */
.pl-k { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(var(--s-4) * -1) var(--s-3); padding: 2px var(--s-4); scrollbar-width: none; } .pl-k::-webkit-scrollbar { display: none; }
.pl-c { flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface-2); box-shadow: var(--edge); font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.pl-c[aria-selected="true"] { background: var(--gold-btn); color: var(--on-gold); box-shadow: none; }
.lh-name small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.avatar.big img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
/* profile numbers */
.pf-num { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .pf-num.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pf-num { gap: 1px; border-radius: var(--r-card); overflow: hidden; background: var(--line); box-shadow: var(--edge); }
.pf-num div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 72px; padding: 6px 4px; background: var(--surface-1); text-align: center; }
.pf-num b { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--gold-300); } .pf-num small { font-size: 11px; color: var(--text-2); line-height: 1.3; }
.pf-rk { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); }
.pf-rk a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; background: rgba(196, 167, 65, .12); font-size: 13px; font-weight: 700; color: var(--gold-300); }
.pf-rk .ic { width: 16px; height: 16px; }
.sec-h a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 13px; color: var(--gold-300); } .sec-h a .ic { width: 14px; height: 14px; }

/* ---------- rating board ---------- */
.bp { display: flex; flex-direction: column; gap: 6px; padding: var(--s-3); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); font-size: 13px; color: var(--text-2); }
.bp b { color: var(--gold-300); font-size: 16px; } .bp-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; } .bp-bar i { display: block; height: 100%; background: var(--gold-btn); transition: width .4s; }
.brows { display: flex; flex-direction: column; }
.br { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "f n ok" "g g g"; align-items: center; gap: 6px var(--s-2); padding: 10px 0; border-bottom: 1px solid var(--line); }
.br > .pp-face { grid-area: f; } .br-n { grid-area: n; min-width: 0; } .br-n b { display: block; font-size: 14px; } .br-n small { display: block; font-size: 12px; color: var(--text-3); line-height: 1.5; }
.br-ok { grid-area: ok; } .gpick { grid-area: g; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.gpick button { min-height: 44px; border-radius: 12px; background: var(--surface-2); box-shadow: var(--edge); font-family: var(--font-display); font-size: 18px; color: var(--text-2); }
.gpick.captain button[aria-pressed="true"] { background: rgba(196, 167, 65, .18); color: var(--gold-300); box-shadow: inset 0 0 0 1.5px var(--gold-500); }
.gpick.admin button[aria-pressed="true"] { background: var(--gold-btn); color: var(--on-gold); box-shadow: none; }
.gb { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; font-family: var(--font-display); font-size: 17px; font-weight: 900; color: #111; }
.gb.g0 { background: var(--surface-2); color: var(--text-3); box-shadow: var(--edge); }
.gb.gA { background: linear-gradient(135deg, #f2d98a, #c4a741); } .gb.gB { background: #9bd49a; } .gb.gC { background: #9cc3e8; } .gb.gD { background: #e9b77c; } .gb.gE { background: #e59a9a; }
.br-ok.gb { width: 40px; height: 40px; font-size: 20px; }
/* sharing out the teams */
.dsum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: var(--s-3) 0; border-radius: var(--r-card); overflow: hidden; background: var(--line); box-shadow: var(--edge); }
.dsum span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; background: var(--surface-1); font-size: 11px; color: var(--text-2); text-align: center; }
.dsum b { font-family: var(--font-display); font-size: 22px; color: var(--gold-300); }
.dts { display: flex; flex-direction: column; gap: var(--s-3); }
.dt { padding: var(--s-3); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); }
.dt-h { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); } .dt-h > div { flex: 1; min-width: 0; } .dt-h b { display: block; font-size: 15px; } .dt-h small { font-size: 12px; color: var(--text-3); }
.dt-l { display: flex; flex-direction: column; }
.dt-r { display: flex; align-items: center; gap: var(--s-2); min-height: 48px; border-top: 1px solid var(--line); } .dt-r:first-child { border-top: 0; }
.dt-r .gb { width: 28px; height: 28px; font-size: 14px; }
.dt-nm { flex: 1; min-width: 0; } .dt-nm b { display: block; font-size: 14px; } .dt-nm small { font-size: 11px; color: var(--text-3); }
.dt-mv { width: 96px; min-height: 40px; margin: 0; padding: 0 8px; font-size: 12px; }
.dt-add { margin: var(--s-2) 0 0; min-height: 44px; font-size: 13px; color: var(--gold-300); }
.dt .cap-c { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-btn); color: var(--on-gold); font-size: 11px; font-style: normal; vertical-align: middle; }
.dpool { margin: var(--s-2) 0 var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); }
.dpool summary { min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 700; cursor: pointer; }
.ks { display: flex; flex-direction: column; gap: var(--s-3); } .ks-r { padding: var(--s-3); border-radius: var(--r-card); background: var(--surface-2); } .ks-r .key-box { margin: 6px 0; }
/* the goalkeeper's message */
.gk-note { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--s-4); background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.gk-note.on { opacity: 1; }
.gk-card { width: min(420px, 100%); padding: var(--s-5) var(--s-4); border-radius: var(--r-hero); text-align: center; background: radial-gradient(120% 100% at 50% 0%, rgba(90, 14, 18, .95), #160a0c 60%, var(--surface-1)); box-shadow: inset 0 0 0 1px var(--line-strong), var(--glow); transform: scale(.94); transition: transform .3s; }
.gk-note.on .gk-card { transform: none; }
.gk-ic { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto var(--s-3); border-radius: 50%; background: var(--gold-btn); } .gk-ic .ic { width: 40px; height: 40px; color: var(--on-gold); }
.gk-card h2 { margin: 0 0 var(--s-3); font-family: var(--font-display); font-size: 26px; line-height: 1.5; color: var(--gold-300); }
.gk-card p { margin: 0 0 var(--s-3); font-size: 15px; line-height: 1.8; color: var(--text-1); }
.gk-cheer { display: block; margin-bottom: var(--s-4); font-family: var(--font-display); font-size: 30px; color: #fff; }

/* the league emblem at the foot of every page */
.foot-mark { display: flex; justify-content: center; align-items: center; width: 64px; height: 64px; margin: var(--s-8) auto var(--s-2); opacity: .55; transition: opacity .2s; }
.foot-mark:hover, .foot-mark:focus-visible { opacity: .9; } .foot-mark img { width: 34px; height: auto; }
/* the organisers */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-4); }
.door { display: grid; place-items: center; min-height: 112px; padding: var(--s-3); border-radius: var(--r-card); background: var(--surface-1); box-shadow: var(--edge); font-family: var(--font-display); font-size: 20px; color: var(--gold-300); text-align: center; }
/* sign-up: shirt size and who signs a friend up */
.jn-size { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.jn-me { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r-card); background: rgba(196, 167, 65, .1); box-shadow: inset 0 0 0 1px var(--gold-500); }
.jn-me a { flex: 1; min-width: 0; } .jn-me b { display: block; font-size: 15px; } .jn-me small { font-size: 12px; color: var(--gold-300); }
.jn-by > span { display: block; margin-bottom: 6px; }


/* ---------- home: greeting, teams strip, tonight ---------- */
.greet { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-1) 0 var(--s-2); }
.greet small { display: block; font-size: 13px; color: var(--text-2); } .greet b { display: block; font-size: 20px; font-weight: 900; }
.tstrip { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(var(--page-x) * -1) var(--s-3); padding: 6px var(--page-x) 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.tstrip::-webkit-scrollbar { display: none; }
.tstrip a { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 6px; scroll-snap-align: start; }
.tstrip-c { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tstrip small { width: 100%; font-size: 11px; color: var(--text-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.night-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin: var(--s-4) 0 var(--s-3); }
.night-h h1 { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 1.1; } .night-h span { font-size: 13px; color: var(--text-2); white-space: nowrap; }
/* the gold card */
.gc { display: block; padding: 18px 16px 22px; border-radius: 28px; color: var(--on-gold); background: linear-gradient(160deg, #F0D98A 0%, #D9BC5A 45%, #C4A741 100%); box-shadow: 0 24px 50px -22px rgba(196, 167, 65, .6); }
.gc-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); font-size: 15px; }
.gc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--on-gold); color: var(--text-1); font-size: 12px; font-weight: 700; }
.gc-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; } .gc-pill.calm { background: rgba(26, 20, 6, .14); color: var(--on-gold); }
.gc-vs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; margin-top: 16px; }
.gc-t { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; } .gc-t b { font-size: 16px; text-align: center; }
.gc-ring { width: 84px; height: 84px; border-radius: 50%; background: var(--on-gold); display: grid; place-items: center; }
.gc-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; } .gc-mid small { font-size: 13px; font-weight: 700; }
.gc-score { font-family: var(--font-display); font-size: 52px; line-height: 1; direction: ltr; } .gc-dash { margin: 0 6px; opacity: .6; }
.gc-time { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.gc-foot { margin: 8px 6px 0; }
/* tickets: one set per time slot, one ticket per pitch */
.tk-set { margin-top: var(--s-3); border-radius: 26px; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-strong); overflow: hidden; }
.tk { position: relative; display: block; padding: 32px 12px 14px; }
.tk + .tk { border-top: 1px dashed var(--line-strong); }
.tk-tab { position: absolute; top: 0; left: 50%; transform: translateX(-50%); padding: 4px 16px 6px; border-radius: 0 0 14px 14px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--gold-300); white-space: nowrap; }
.tk-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 84px minmax(0, 1fr) 46px; align-items: center; gap: 6px; }
.tk-crest { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-1); display: grid; place-items: center; }
.tk-n { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tk-n.away { text-align: left; }
.tk-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tk-sc { font-family: var(--font-display); font-size: 30px; line-height: 1; direction: ltr; } .tk-dash { margin: 0 4px; opacity: .5; }
.tk-vs { font-family: var(--font-display); font-size: 18px; color: var(--text-2); }
.tk-mid small { font-size: 11px; color: var(--text-3); white-space: nowrap; } .tk-mid small.tk-live { color: var(--live); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.tk-mid small.tk-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.tk-soc { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.gc-foot .tk-soc { border-top: 0; padding-top: 0; margin-top: 4px; }
.tk-dots { display: flex; } .tk-dots i { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface-1); background: var(--maroon-700); }
.tk-dots i:nth-child(2) { background: var(--gold-700); margin-inline-start: -7px; } .tk-dots i:nth-child(3) { background: var(--maroon-900); margin-inline-start: -7px; }
.pb { margin-top: 12px; } .pb-bar { display: flex; gap: 2px; height: 8px; border-radius: 8px; overflow: hidden; }
.pb-bar i { display: block; min-width: 4px; } .pb-bar i:nth-child(1) { background: var(--gold-500); } .pb-bar i:nth-child(2) { background: #6B6560; } .pb-bar i:nth-child(3) { background: var(--maroon-700); }
.pb-k { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--text-2); } .pb-k span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* matches: the Fridays strip and the slot heading */
.fris { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--page-x) * -1); padding: 8px var(--page-x) 10px; scrollbar-width: none; }
.fris::-webkit-scrollbar { display: none; }
.fri { flex: none; min-width: 58px; height: 86px; padding: 0 6px; border-radius: var(--r-pill); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-1); }
.fri small { font-size: 10px; color: var(--text-2); white-space: nowrap; } .fri b.num { font-family: var(--font-display); font-size: 24px; line-height: 1; } .fri b.stage { font-size: 12px; }
.fri[aria-selected="true"] { background: var(--gold-btn); color: var(--on-gold); box-shadow: none; } .fri[aria-selected="true"] small { color: rgba(26, 20, 6, .75); }
.slot-r { display: flex; align-items: center; gap: 10px; margin: var(--s-6) 0 0; }
.slot-r b { font-family: var(--font-display); font-size: 22px; } .slot-r i { flex: 1; height: 1px; background: var(--line-strong); }
.slot-r span { font-size: 12px; font-weight: 700; color: var(--text-2); } .slot-r span.live { color: var(--live); }

/* ---------- fans: profile sheet, score prediction, race, ratings ---------- */
.fp-ph { display: flex; align-items: center; gap: var(--s-3); }
.fp-av { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--gold-500); font-size: 28px; font-weight: 900; color: var(--gold-300); }
.fp-av img { width: 100%; height: 100%; object-fit: cover; } .fp-av.busy { opacity: .5; }
.fp-teams { border: 0; padding: 0; margin: 0; } .fp-teams legend { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; } .fp-teams legend small { color: var(--text-3); font-weight: 400; }
.fp-none { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-1); color: var(--text-3); font-size: 20px; }
.sp-list { display: flex; flex-direction: column; gap: var(--s-3); }
.sp-wrap { padding: 12px; border-radius: 22px; background: var(--surface-1); box-shadow: var(--edge-strong); }
.sp { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 8px; }
.sp-t { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; } .sp-t b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-b { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sp-b b { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--bg-1); box-shadow: var(--edge-strong); font-family: var(--font-display); font-size: 28px; }
.sp-x { width: 44px; height: 32px; border-radius: 10px; background: var(--surface-2); font-size: 20px; font-weight: 700; color: var(--gold-300); }
.sp-x:disabled { opacity: .35; }
.sp-c { font-family: var(--font-display); font-size: 22px; color: var(--text-3); }
.sp-s { grid-column: 1 / -1; text-align: center; font-size: 11px; color: var(--text-3); }
.race-cta { display: flex; flex-direction: column; gap: var(--s-3); padding: 18px; border-radius: 24px; background: radial-gradient(120% 120% at 100% 0, rgba(90, 14, 18, .7), var(--surface-1)); box-shadow: var(--edge-strong); margin-bottom: var(--s-3); }
.race-cta > div { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; } .race-cta .ic { width: 28px; height: 28px; color: var(--gold-300); }
.race-cta b { font-size: 18px; } .race-cta p { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.total-card b small { font-size: 13px; font-family: var(--font-sans); }
.rc { border-radius: 22px; background: var(--surface-1); box-shadow: var(--edge-strong); overflow: hidden; margin-top: var(--s-3); }
.rc-row { display: grid; grid-template-columns: 30px 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; min-height: 56px; }
.rc-row + .rc-row { border-top: 1px solid var(--line); }
.rc-row.me { background: rgba(196, 167, 65, .12); box-shadow: inset 3px 0 0 var(--gold-500); }
.rc-n { font-family: var(--font-display); font-size: 18px; text-align: center; color: var(--text-2); }
.rc-row.top1 .rc-n { color: var(--gold-300); } .rc-row.top2 .rc-n, .rc-row.top3 .rc-n { color: var(--text-1); }
.rc-av { border-radius: 50%; object-fit: cover; background: var(--surface-2); } .rc-in { display: grid; place-items: center; font-weight: 900; color: var(--gold-300); }
.rc-who { min-width: 0; } .rc-who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rc-who b small { color: var(--gold-300); font-weight: 400; }
.rc-who > small { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); }
.rc-p { display: flex; flex-direction: column; align-items: center; font-family: var(--font-display); font-size: 22px; line-height: 1; } .rc-p small { font-family: var(--font-sans); font-size: 10px; color: var(--text-3); margin-top: 2px; }
.rc-gap { text-align: center; color: var(--text-3); padding: 2px; border-top: 1px solid var(--line); }
.pts { min-width: 40px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; text-align: center; white-space: nowrap; }
.pts.x { background: var(--gold-btn); color: var(--on-gold); } .pts.r { background: rgba(196, 167, 65, .16); color: var(--gold-300); } .pts.z { background: var(--surface-2); color: var(--text-3); }
.my-pred { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; font-weight: 700; } .my-pred bdi { font-family: var(--font-display); font-size: 20px; }
.pb-big { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pb-big > div { display: grid; grid-template-columns: 76px 1fr 44px; align-items: center; gap: 8px; font-size: 12px; } .pb-big small { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv .vp .shield, .fv .vp svg { margin: 0 auto 6px; }
.vp:disabled { opacity: 1; }
.rt-team { margin-top: var(--s-3); border-radius: 20px; background: var(--surface-1); box-shadow: var(--edge-strong); overflow: hidden; }
.rt-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface-2); font-size: 14px; }
.rt-row { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 52px; align-items: center; gap: 8px; padding: 8px 14px; min-height: 52px; text-align: start; }
.rt-row + .rt-row { border-top: 1px solid var(--line); }
.rt-pos { font-size: 11px; color: var(--text-3); } .rt-row > b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-f { display: flex; flex-direction: column; align-items: center; } .rt-f b { font-family: var(--font-display); font-size: 18px; color: var(--gold-300); } .rt-f small { font-size: 10px; color: var(--text-3); white-space: nowrap; }
.rt-me { height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--text-2); }
.rt-me.on { background: var(--gold-btn); color: var(--on-gold); font-family: var(--font-display); font-size: 18px; }
.rt-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: var(--s-3) 0; }
.rt-v { height: 56px; border-radius: 16px; background: var(--surface-2); box-shadow: var(--edge); } .rt-v b { font-family: var(--font-display); font-size: 24px; }
.rt-v.on { background: var(--gold-btn); color: var(--on-gold); }
.ac-fan { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: var(--s-3) 0; }
.ac-fan > div, .ac-fan > a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: var(--surface-1); box-shadow: var(--edge-strong); min-width: 0; }
.ac-fan > a { flex-direction: column; align-items: flex-start; gap: 2px; } .ac-fan small { display: block; font-size: 11px; color: var(--text-3); } .ac-fan b { font-size: 14px; }
.ac-fan .btn { grid-column: 1 / -1; }
.fan-avg { display: flex; align-items: center; justify-content: space-between; margin: var(--s-3) 0; padding: 14px 16px; border-radius: 20px; background: var(--surface-1); box-shadow: var(--edge-strong); }
.fan-avg small { display: block; font-size: 12px; color: var(--text-2); } .fan-avg > b { font-family: var(--font-display); font-size: 32px; color: var(--gold-300); } .fan-avg > b small { display: inline; font-size: 14px; color: var(--text-3); }

.st-box { display: flex; flex-direction: column; gap: 8px; margin: var(--s-3) 0; padding: 14px 16px; border-radius: 18px; background: var(--surface-1); box-shadow: var(--edge-strong); }
.st-h { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; } .st-h span { color: var(--gold-300); font-size: 13px; }
.st-box small { font-size: 12px; color: var(--text-3); line-height: 1.6; } .pr-bar.hot i { background: var(--live); }
.cv-by { position: absolute; inset-inline: 4px; bottom: 4px; display: flex; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .62); font-size: 10px; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: calc(100% - 8px); width: max-content; }
.cv-by img, .cv-by i { width: 16px; height: 16px; border-radius: 50%; flex: none; object-fit: cover; background: var(--surface-2); }

/* ---------- engagement: race header, double, leagues, highlights, likes ---------- */
.race-me { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 24px; background: radial-gradient(120% 140% at 100% 0, rgba(90, 14, 18, .75), var(--surface-1)); box-shadow: var(--edge-strong); margin-bottom: var(--s-3); }
.rm-main small { display: block; font-size: 13px; color: var(--text-2); } .rm-main b { font-family: var(--font-display); font-size: 44px; line-height: 1.1; color: var(--gold-300); }
.rm-main b small { display: inline; font-family: var(--font-sans); font-size: 13px; color: var(--text-2); }
.rm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rm-stats span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.rm-stats b { font-family: var(--font-display); font-size: 22px; } .rm-stats small { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.rm-stats .ic { width: 18px; height: 18px; color: var(--text-3); } .rm-stats .hot .ic, .rm-stats .hot b { color: #FF8A3D; }
.ic.fl { width: 12px; height: 12px; color: #FF8A3D; vertical-align: -1px; }
.sp-bk { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; color: var(--text-2); box-shadow: var(--edge-strong); }
.sp-bk .ic { width: 16px; height: 16px; } .sp-bk.on { background: var(--gold-btn); color: var(--on-gold); box-shadow: none; }
.sp-wrap.bk { box-shadow: inset 0 0 0 1.5px var(--gold-500), var(--glow); }
.bk-hint { display: flex; align-items: center; gap: 6px; color: var(--gold-300); } .bk-hint .ic { width: 16px; height: 16px; }
.bk-t { padding: 1px 8px; border-radius: var(--r-pill); background: var(--gold-btn); color: var(--on-gold); font-size: 10px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-1); box-shadow: var(--edge); margin: var(--s-3) 0 0; }
.seg button { flex: 1; min-height: 40px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--surface-2); color: var(--gold-300); box-shadow: var(--edge-strong); }
.champ-r { display: flex; align-items: center; gap: 12px; margin: var(--s-3) 0; padding: 14px 16px; border-radius: 22px; background: linear-gradient(160deg, rgba(240, 217, 138, .18), rgba(196, 167, 65, .06)); box-shadow: inset 0 0 0 1px rgba(196, 167, 65, .4); }
.champ-r > .ic { width: 30px; height: 30px; color: var(--gold-300); flex: none; } .champ-r > div { flex: 1; min-width: 0; }
.champ-r small { display: block; font-size: 12px; color: var(--text-2); } .champ-r div b { font-size: 16px; } .champ-r > b { font-family: var(--font-display); font-size: 28px; color: var(--gold-300); white-space: nowrap; } .champ-r > b small { display: inline; font-family: var(--font-sans); font-size: 12px; }
.rc-crest { width: 36px; display: grid; place-items: center; }
.prize { display: flex; align-items: center; gap: 6px; } .prize .ic { width: 16px; height: 16px; color: var(--gold-300); flex: none; }
.lg-card { margin-top: var(--s-3); padding: 14px; border-radius: 22px; background: var(--surface-1); box-shadow: var(--edge-strong); }
.lg-card .rc { box-shadow: none; background: transparent; margin-top: 8px; } .lg-card .rc-row { padding-inline: 4px; }
.lg-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .lg-h b { font-size: 16px; } .lg-h small { display: block; font-size: 12px; color: var(--text-3); }
.lg-h bdi { color: var(--gold-300); font-weight: 700; letter-spacing: 1px; }
.lnk.dim { color: var(--text-3); font-size: 12px; }
.lg-form { margin-top: var(--s-3); }
.motm-lead { display: flex; align-items: center; gap: 12px; margin-top: var(--s-3); padding: 14px; border-radius: 22px; background: linear-gradient(160deg, rgba(240, 217, 138, .16), rgba(90, 14, 18, .35)); box-shadow: inset 0 0 0 1px rgba(196, 167, 65, .4); }
.motm-lead > div { flex: 1; min-width: 0; } .motm-lead small { display: block; font-size: 11px; color: var(--text-2); } .motm-lead b { display: block; font-size: 17px; }
.vw-soc { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; }
.vw-like { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface-2); font-weight: 700; font-size: 14px; }
.vw-like .ic { width: 20px; height: 20px; } .vw-like.on { color: #FF5A6E; }
.cv-lk { position: absolute; top: 4px; inset-inline-start: 4px; display: flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .62); font-size: 10px; color: #fff; }
.cv-lk .ic { width: 11px; height: 11px; color: #FF5A6E; }
.mission { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 10px 12px; border-radius: 16px; background: rgba(196, 167, 65, .12); box-shadow: inset 0 0 0 1px rgba(196, 167, 65, .35); }
.mission .ic { width: 22px; height: 22px; color: var(--gold-300); flex: none; } .mission small { display: block; font-size: 11px; color: var(--gold-300); } .mission b { font-size: 14px; }
.mission-f { margin: var(--s-3) 0; }
.potr { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--surface-2); box-shadow: var(--edge-strong); }
.potr > img { width: 100%; height: 100%; object-fit: cover; }
.potr-by { position: absolute; bottom: 12px; inset-inline-end: 12px; display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .65); font-size: 13px; color: #fff; }
.potr-by img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.potr-lk { position: absolute; bottom: 12px; inset-inline-start: 12px; display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; font-weight: 700; }
.potr-lk .ic { width: 16px; height: 16px; color: #FF5A6E; }
.fxi { display: flex; flex-direction: column; gap: 10px; padding: 16px 8px; border-radius: 24px; background: linear-gradient(180deg, rgba(40, 80, 40, .35), rgba(20, 40, 20, .2)), var(--surface-1); box-shadow: var(--edge-strong); }
.fxi-r { display: flex; justify-content: center; gap: 8px; }
.fxi-p { width: 78px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 14px; background: rgba(0, 0, 0, .35); }
.fxi-p b { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fxi-p span { font-family: var(--font-display); font-size: 16px; color: var(--gold-300); }
.phg { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--page-x) * -1); padding: 4px var(--page-x); }
.phg::-webkit-scrollbar { display: none; }
.phg-u { position: relative; flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 18px; background: var(--surface-1); box-shadow: var(--edge); }
.phg-u > img, .phg-in { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; font-weight: 900; color: var(--gold-300); }
.phg-u em { position: absolute; top: 6px; inset-inline-end: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-btn); display: grid; place-items: center; } .phg-u em .ic { width: 14px; height: 14px; color: var(--on-gold); }
.phg-u b { font-size: 12px; } .phg-u small { display: flex; align-items: center; gap: 2px; font-size: 10px; color: var(--text-3); white-space: nowrap; } .phg-u small .ic { width: 10px; height: 10px; color: #FF5A6E; }

/* required fields: a star after the label; a field left empty turns red with its message under it */
.req-note { margin: 0 0 4px; font-size: 12px; color: var(--text-3); } .req-note b { color: var(--live); }
.fld.req > span::after, .fld.req > legend::after { content: ' *'; color: var(--live); font-weight: 900; }
.fld.err .inp, .fld.err .jn-pos label > span, .fld.err .tp-q { box-shadow: inset 0 0 0 1.5px var(--live); }
.fld.err > span, .fld.err > legend { color: var(--live); }
.fld-err { font-size: 12px; font-weight: 700; color: var(--live); }
