/* Leagoo design tokens. Palette and type taken from the user's reference shot (2026-11-20).
   Light-first. Dark mode = navy-based variant. */

:root {
  /* brand */
  --navy-900: #0f1d4a;   /* headers, active pill, primary buttons */
  --navy-700: #1b2b5e;
  --navy-100: #e7eaf4;
  --plum-900: #3b0a45;   /* hero / live cards */
  --plum-700: #571663;
  --pink-500: #e8175d;   /* live, highlights, big numbers */
  --pink-600: #d6114f;   /* filled buttons with white text (5.2:1, AA) */
  --pink-100: #fde3ec;
  --on-pink: var(--plum-900); /* text on pink-100 */
  --wait-bg: #fff3dc; --wait-fg: #b97a00; --ok-bg: #e3f5ec;
  --glass: rgba(255, 255, 255, .94);
  --home-500: #e63946;   /* comparison bar: you / home */
  --away-300: #7bafd4;   /* comparison bar: opponent / away */
  --gold-400: #f5b83d;   /* trophies */
  --green-500: #1fa463;  /* confirmed / win */
  --green-700: #13804b;  /* filled green with white text (5:1, AA) */

  /* neutrals */
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f6;
  --line: #eceef2;
  --text: #1a1d33;
  --muted: #646a82;     /* 5.4:1 on white, AA for small text */
  --on-dark: #ffffff;
  --on-dark-muted: #c9c3d6;

  /* semantic */
  --primary: var(--navy-900);
  --on-primary: #ffffff;
  --accent: var(--pink-500);
  --hero: var(--plum-900);
  --success: var(--green-500);
  --warning: var(--gold-400);
  --danger: var(--home-500);

  /* type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px; --fs-score: 40px; --fs-hero: 56px;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-black: 800;

  /* shape */
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-pill: 999px;
  --notch: 22px;          /* cut-corner size on hero cards */
  --shadow-card: 0 2px 10px rgba(15, 29, 74, .06);
  --shadow-float: 0 10px 30px rgba(15, 29, 74, .18);

  /* spacing (4pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1130; --surface: #131b3f; --surface-2: #1a2350; --line: #232d5c;
    --text: #eef0fa; --muted: #98a0c3; --primary: #ffffff; --on-primary: var(--navy-900);
    --pink-100: #4a1838; --on-pink: #ffd3e2; --navy-100: #2a3566; --wait-bg: #3d3112; --wait-fg: #f5c766; --ok-bg: #123d2c; --glass: rgba(19, 27, 63, .94);
  }
}
:root[data-theme="dark"] {
  --bg: #0a1130; --surface: #131b3f; --surface-2: #1a2350; --line: #232d5c;
  --text: #eef0fa; --muted: #98a0c3; --primary: #ffffff; --on-primary: var(--navy-900);
    --pink-100: #4a1838; --on-pink: #ffd3e2; --navy-100: #2a3566; --wait-bg: #3d3112; --wait-fg: #f5c766; --ok-bg: #123d2c; --glass: rgba(19, 27, 63, .94);
}

/* signature shape: cut corners top-right + bottom-left */
.notched {
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}

/* match card: soft rounded (chosen 2026-11-20). Other hero cards keep .notched */
.match-card { border-radius: 24px; background: var(--hero); color: var(--on-dark); }

/* Leagoo app styles: built on tokens.css (design/DECISIONS.md) */
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); }
body { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; }
@media (min-width: 520px) { html { background: #e3e6ec; } body { box-shadow: 0 0 40px rgba(15,29,74,.12); } }
a { color: inherit; }
.status { display: none; }
.err { background: var(--pink-100); color: var(--on-pink); border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 14px; margin: 10px 0; }
.empty { text-align: center; padding: 26px 16px; color: var(--muted); }
.empty .ms { font-size: 44px; color: var(--navy-100); display: block; margin: 0 auto 8px; }
.avatar img, .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.head .appbar { padding-top: 14px; }
.appbar:first-child { padding-top: 14px; }
form { margin: 0; }
/* Leagoo prototype: built on ../design/tokens.css */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

.screen { min-height: 100dvh; padding-bottom: 110px; }
.screen.full { padding-bottom: 24px; }
.pad { padding: 0 18px; }

/* icons */
.ms { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1; display: inline-block; vertical-align: middle; font-feature-settings: "liga"; -webkit-font-feature-settings: "liga"; font-variation-settings: "FILL" 1, "wght" 500; }
.ms.sm { font-size: 18px; } .ms.lg { font-size: 28px; }

/* status + app bars */
.status { height: 46px; display: flex; justify-content: space-between; align-items: center; padding: 4px 28px 0; font-weight: 700; font-size: 14px; }
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 18px 12px; }
.appbar .title { font-weight: 700; font-size: 20px; flex: 1; text-align: center; }
.appbar .title.left { text-align: left; font-size: 24px; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-card); color: var(--text); border: 0; cursor: pointer; flex: none; }
.iconbtn.navy { background: var(--primary); color: var(--on-primary); }
.iconbtn.ghost { background: transparent; box-shadow: none; color: inherit; }
.head { background: var(--navy-900); color: #fff; }
.head .status { color: #fff; }
.head.tall { padding-bottom: 72px; }
.head .sub { text-align: center; color: var(--on-dark-muted); font-size: 13px; margin-top: -8px; padding-bottom: 14px; }

/* sections */
.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 10px; }
.sec b { font-size: 19px; font-weight: 700; }
.sec a, .sec span { font-size: 13px; color: var(--muted); font-weight: 600; text-decoration: none; cursor: pointer; }
.mute { color: var(--muted); font-size: 13px; } .small { font-size: 12px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; } .grow { flex: 1; min-width: 0; }

/* chips */
.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text); font-weight: 800; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--primary); color: var(--on-primary); }

/* cards */
.card { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-card); padding: 14px; margin-bottom: 12px; }
.card.tap { cursor: pointer; }
.card.alert { background: var(--pink-100); box-shadow: none; }
.float { margin: -64px 18px 0; position: relative; }

.match-card { padding: 16px 18px 18px; position: relative; overflow: hidden; cursor: pointer; }
.match-card .wm { position: absolute; right: -36px; top: -30px; font-size: 200px; opacity: .07; }
.match-card .lbl { font-size: 14px; font-weight: 600; line-height: 1.35; }
.match-card .lbl small { display: block; color: var(--on-dark-muted); font-weight: 500; font-size: 13px; }
.notched { background: var(--hero); color: #fff; }

.teams { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; text-align: center; }
.teams .t { width: 31%; font-weight: 600; font-size: 14px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; border: 3px solid rgba(255, 255, 255, .25); }
.avatar.light { background: var(--navy-100); color: var(--navy-900); border-color: var(--surface-2); }
.avatar.xl { width: 84px; height: 84px; font-size: 32px; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; color: var(--text); flex: none; font-size: 15px; }
.score { font-weight: 800; font-size: var(--fs-score); letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.vs { font-weight: 800; font-size: 32px; }

.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 2px 9px; white-space: nowrap; }
.pill.live { border: 1.5px solid var(--pink-500); color: var(--pink-500); background: rgba(232, 23, 93, .12); }
.pill.ok { background: var(--ok-bg); color: var(--green-500); }
.pill.wait { background: var(--wait-bg); color: var(--wait-fg); }
.pill.bad { background: var(--pink-100); color: var(--pink-500); }
.pill.navy { background: var(--surface-2); color: var(--text); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* upcoming row */
.up { display: flex; align-items: center; justify-content: space-between; text-align: center; }
.up .t { width: 32%; font-size: 14px; font-weight: 500; }
.up .t .av { margin: 0 auto 6px; }
.up .mid .d { font-size: 12px; color: var(--muted); }
.up .mid .h { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }

/* list rows */
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.li:last-child { border-bottom: 0; }
.li .t { flex: 1; min-width: 0; font-weight: 600; }
.li .t small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }

/* fixture rows */
.fx { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.fx:last-child { border-bottom: 0; }
.fx .t { flex: 1; font-weight: 500; } .fx .t.r { text-align: right; }
.fx .s { min-width: 56px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.fx .s .vs-s { color: var(--muted); font-weight: 600; font-size: 12px; }

/* tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 14px 0 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 8px 15px; border-radius: 99px; border: 0; background: none; color: var(--text); font: 600 14px var(--font); cursor: pointer; }
.tabs button.on { background: var(--primary); color: var(--on-primary); }

/* table */
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th { font-weight: 600; text-align: center; padding: 8px 3px; border-bottom: 1px solid var(--line); color: var(--text); }
td { padding: 10px 3px; text-align: center; }
th.n, td.n { text-align: left; }
tr.me td { color: var(--pink-600); font-weight: 700; }
tr.q td:first-child { box-shadow: inset 3px 0 var(--green-500); }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 14px; font: 700 15px var(--font); border: 0; cursor: pointer; text-decoration: none; width: 100%; }
.btn.p { background: var(--primary); color: var(--on-primary); }
.btn.pk { background: var(--pink-600); color: #fff; }
.btn.wa { background: #25d366; color: #05210f; }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; width: auto; }
.btn-row { display: flex; gap: 8px; } .btn-row .btn { flex: 1; }

/* comparison bars */
.bar { margin: 14px 0; }
.bar .r { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar .r span:nth-child(2) { color: var(--muted); font-weight: 500; }
.bar .track { display: flex; height: 7px; border-radius: 9px; overflow: hidden; margin-top: 6px; gap: 3px; }
.bar .h { background: var(--home-500); border-radius: 9px; } .bar .a { background: var(--away-300); border-radius: 9px; }

/* toggles */
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.toggle:last-child { border-bottom: 0; }
.sw { width: 48px; height: 28px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: .15s; }
.sw.on { background: var(--pink-500); } .sw.on::after { left: 23px; }

/* ready banner */
.ready { display: flex; align-items: center; gap: 10px; background: var(--pink-100); color: var(--on-pink); border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14px; }

/* forms */
.field { margin: 14px 0; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 500 16px var(--font); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); }
.hint { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: 12px; margin-top: 6px; }

.choice { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); margin: 10px 0; cursor: pointer; box-shadow: var(--shadow-card); border: 2px solid transparent; }
.choice.on { border-color: var(--primary); }
.choice .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--text); flex: none; }
.choice.on .ic { background: var(--primary); color: var(--on-primary); }
.steps { display: flex; gap: 6px; margin: 2px 0 18px; }
.steps i { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.steps i.on { background: var(--pink-500); }
h2.step { font-size: 24px; margin: 0 0 4px; }

/* stats */
.stat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.stat div { background: var(--surface); border-radius: 14px; padding: 12px 4px; box-shadow: var(--shadow-card); font-size: 12px; color: var(--muted); }
.stat b { display: block; font-size: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
.form span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 12px; font-weight: 800; margin-right: 4px; }
.form .W { background: var(--green-500); color: #fff; } .form .D { background: var(--surface-2); color: var(--muted); } .form .L { background: var(--home-500); color: #fff; }

/* rankings leader */
.leader { margin: 4px 18px 14px; padding: 16px 18px; position: relative; height: 156px; overflow: hidden; }
.leader .pos { color: var(--pink-500); font-weight: 800; }
.leader .big { font-size: var(--fs-hero); font-weight: 800; color: var(--pink-500); line-height: 1; position: absolute; bottom: 14px; left: 18px; font-variant-numeric: tabular-nums; }
.leader .face { position: absolute; right: 22px; bottom: 18px; width: 98px; height: 98px; border-radius: 50%; background: var(--plum-700); display: grid; place-items: center; font-size: 40px; font-weight: 800; border: 4px solid rgba(255, 255, 255, .15); }

/* bracket */
.bracket { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0; }
.bracket .col { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; min-width: 160px; }
.bm { background: var(--surface); border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-card); }
.bm div { display: flex; justify-content: space-between; padding: 9px 12px; } .bm div + div { border-top: 1px solid var(--line); }

/* timeline */
.timeline { border-left: 2px solid var(--line); margin: 6px 0 0 8px; padding-left: 16px; }
.timeline div { position: relative; margin: 0 0 12px; font-size: 14px; }
.timeline div::before { content: ""; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); border: 2px solid var(--bg); }
.timeline div.ok::before { background: var(--green-500); }

/* floating pill nav */
.nav { position: fixed; max-width: 448px; margin: 0 auto; left: 16px; right: 16px; bottom: 18px; height: 64px; background: var(--surface); border-radius: 99px; box-shadow: var(--shadow-float); display: flex; align-items: center; justify-content: space-around; padding: 0 8px; z-index: 10; }
.nav button { display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 99px; color: #a3a8bd; font: 700 14px var(--font); border: 0; background: none; cursor: pointer; }
.nav button.on { background: var(--primary); color: var(--on-primary); }

/* sheets, toasts, push */
.sheet-bg { position: fixed; inset: 0; background: rgba(15, 29, 74, .45); z-index: 20; display: flex; align-items: flex-end; }
.sheet { background: var(--surface); width: 100%; border-radius: 26px 26px 0 0; padding: 14px 20px 30px; }
.grab { width: 42px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 14px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 16px; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.stepper .v { font-size: 48px; font-weight: 800; min-width: 54px; text-align: center; font-variant-numeric: tabular-nums; }
.score-pick { display: flex; justify-content: space-around; align-items: flex-start; text-align: center; }
.toast { position: fixed; max-width: 448px; margin: 0 auto; left: 16px; right: 16px; top: 54px; z-index: 30; background: var(--primary); color: var(--on-primary); padding: 13px 16px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow-float); animation: drop .25s; display: flex; gap: 8px; align-items: center; }
.push { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 30; background: var(--glass); backdrop-filter: blur(10px); padding: 12px; border-radius: 18px; box-shadow: var(--shadow-float); animation: drop .25s; cursor: pointer; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }

/* landing */
.landing { background: var(--navy-900); color: #fff; min-height: 100%; padding: 0 20px 30px; }
.landing .hero-logo { text-align: center; padding: 34px 0 6px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border-radius: 14px; padding: 15px; font: 700 15px var(--font); cursor: pointer; border: 0; width: 100%; }
.logo-word { font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.logo-word svg { width: .6em; height: .6em; vertical-align: -.04em; }
.logo-word svg { margin-left: .05em; }
.nav a { display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 99px; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; }
.nav a.on { background: var(--primary); color: var(--on-primary); }
a.btn, a.iconbtn, a.card { text-decoration: none; color: inherit; }
a.btn.p { color: var(--on-primary); } a.btn.pk { color: #fff; }
/* no-JS toggle switch */
.swi { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; flex: none; margin: 0; transition: .15s; }
.swi::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .15s; }
.swi:checked { background: var(--pink-500); } .swi:checked::after { left: 23px; }
.swi:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--pink-500); outline-offset: 2px; }
details.card summary { list-style: none; } details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "expand_more"; font-family: "Material Symbols Rounded"; float: right; font-size: 22px; }
details.card[open] summary::after { content: "expand_less"; }
.btn[disabled] { cursor: not-allowed; }
.landing .card .li .t small { color: var(--muted); }
button.swi.on { background: var(--pink-500); } button.swi.on::after { left: 23px; }
[hidden] { display: none !important; }

/* ---------- right-to-left (Arabic) ---------- */
html[dir="rtl"] { --font: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] .ms.flip { transform: scaleX(-1); }
[dir="rtl"] .sec b, [dir="rtl"] h2.step { letter-spacing: 0; }
/* Scoreboards stay home-left / away-right so "2 : 1" lines up with the teams. */
.teams, .up, .fx, .bar .r, .bar .track, .score-row { direction: ltr; }
.logo-word { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] .appbar .title.left { text-align: right; }
[dir="rtl"] .match-card .wm { right: auto; left: -36px; }
[dir="rtl"] th.n, [dir="rtl"] td.n { text-align: right; }
[dir="rtl"] .form span { margin: 0 0 0 4px; }
[dir="rtl"] .timeline { border-left: 0; border-right: 2px solid var(--line); margin: 6px 8px 0 0; padding: 0 16px 0 0; }
[dir="rtl"] .timeline div::before { left: auto; right: -23px; }
[dir="rtl"] .swi::after { left: auto; right: 3px; }
[dir="rtl"] .swi:checked::after, [dir="rtl"] button.swi.on::after { left: auto; right: 23px; }
[dir="rtl"] details.card summary::after { float: left; }
[dir="rtl"] ul { padding-left: 0 !important; padding-right: 18px !important; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="number"], [dir="rtl"] input[readonly], [dir="rtl"] input[name="username"], [dir="rtl"] input[name="email"] { direction: ltr; text-align: right; }
.ltr { direction: ltr; unicode-bidi: isolate; }
/* language switch */
.langs { display: flex; gap: 8px; }
.langs a { flex: 1; text-align: center; padding: 11px; border-radius: 12px; background: var(--surface-2); color: var(--text); font-weight: 700; text-decoration: none; }
.langs a.on { background: var(--primary); color: var(--on-primary); }
.landing .langs a { background: rgba(255, 255, 255, .1); color: #fff; }
.landing .langs a.on { background: var(--pink-600); color: #fff; }

/* ---------- nav labels: icon-only on phones except the active tab ---------- */
.nav a .lbl { display: none; }
.nav a.nav-logo { display: none; }
.nav a.on .lbl { display: inline; }

/* ---------- landing: chaos -> managed league (phones first) ----------
   Direction: owner's mockup (2026-11-28) on the navy/pink brand. Focal point: the before/after illustration pair.
   Pink is the action + "Leagoo way" colour; the "old way" tag stays neutral so the contrast tells the story. */
body.wide { max-width: none; box-shadow: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp { padding: 0 18px 28px; overflow-x: clip; background: radial-gradient(1200px 600px at 50% -10%, #1d2f6e 0%, var(--navy-900) 60%); }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.lp-menu { display: none; }
.lp-top .langs { margin: 0; gap: 6px; }
.lp-top .langs a { flex: none; padding: 11px 14px; font-size: 14px; }
.lp-hero { text-align: center; padding: 18px 0 40px; }
.lp h1 { font-size: 30px; line-height: 1.3; letter-spacing: -.025em; margin: 0 auto 14px; }
.lp-mark { display: inline; background: var(--pink-600); color: #fff; padding: 0 .22em; border-radius: .28em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lp-sub { color: var(--on-dark-muted); margin: 0 auto 26px; max-width: 36em; }
.lp-story { display: grid; gap: 14px; }
.lp-scene { margin: 0; }
.lp-scene img { display: block; width: 100%; height: auto; border-radius: 22px; aspect-ratio: 4 / 3; object-fit: cover; }
.lp-scene figcaption { margin-top: 10px; }
.lp-scene figcaption p { margin: 6px 0 0; color: var(--on-dark-muted); font-size: 14px; }
.lp-tag { display: inline-block; padding: 6px 14px; border-radius: 99px; font-weight: 800; font-size: 15px; }
.lp-tag-old { background: rgba(255, 255, 255, .12); color: #fff; }
.lp-tag-new { background: var(--pink-600); color: #fff; }
.lp-arrow { width: 70px; height: 36px; margin: 0 auto; transform: rotate(90deg); fill: none; stroke: var(--gold-400); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.lp-feats { list-style: none; margin: 30px 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-feats li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.lp-feats .ms { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 26px; }
.lp-auth { max-width: 420px; margin: 0 auto; }
.lp-ghost { margin-top: 10px; background: rgba(255, 255, 255, .1); color: #fff; }
.lp-note { color: var(--on-dark-muted); margin-top: 12px; }
.lp-note a { color: #fff; }
.lp-dev { margin-top: 10px; display: flex; gap: 6px; }
.lp-dev input { flex: 1; padding: 12px; border-radius: 12px; border: 0; font: inherit; }
.lp h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
.lp h3 { font-size: 15px; margin: 0 0 4px; }
.lp-table-sec { padding: 36px 0; scroll-margin-top: 20px; }
.lp-tcopy p { color: var(--on-dark-muted); margin: 0 0 18px; }
.lp-demo { position: relative; }
.lp-sheet { background: var(--surface); color: var(--text); border-radius: 20px; padding: 14px 12px 6px; overflow-x: auto; }
.lp-sheet-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; }
.lp-sheet-head span { color: var(--muted); font-size: 13px; }
.lp-sheet tr + tr td { border-top: 1px solid var(--line); }
.lp-toast { display: flex; gap: 10px; align-items: center; margin-top: 12px; background: var(--green-700); color: #fff; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.lp-how { padding: 20px 0 36px; scroll-margin-top: 20px; }
.lp-how-intro p { color: var(--on-dark-muted); margin: 0 0 14px; }
.lp-steps { list-style: none; margin: 0; padding: 4px 16px; background: var(--surface); color: var(--text); border-radius: var(--r-lg); }
.lp-steps li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lp-steps li:last-child { border-bottom: 0; }
.lp-steps li > div { flex: 1; }
.lp-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.lp-round { flex: none; width: 74px; font-size: 13px; font-weight: 800; color: var(--muted); }
.lp-steps li:last-child .lp-round { color: var(--pink-600); }
.lp-faq { padding: 10px 0 20px; scroll-margin-top: 20px; }
.lp-faq p { margin: 0 0 18px; color: var(--on-dark-muted); font-size: 14px; line-height: 1.55; }
#features { scroll-margin-top: 20px; }
.lp-kick { text-align: center; padding: 34px 20px; margin: 10px -18px 0; background: #08112e; border-top: 3px solid var(--pink-600); }
.lp-kick h2 { font-size: 32px; }
.lp-kick p { color: var(--on-dark-muted); margin: 0 auto 20px; max-width: 30em; }
.lp-kick .btn { display: inline-flex; width: auto; padding: 15px 28px; }
.lp-foot { text-align: center; color: var(--on-dark-muted); padding-top: 20px; }
.lp-foot a { color: var(--on-dark-muted); }

@media (min-width: 960px) {
  .lp { padding: 0 48px 40px; }
  .lp > * { max-width: 1200px; margin-inline: auto; }
  .lp-top { display: grid; grid-template-columns: 1fr auto 1fr; padding: 26px 0; }
  .lp-top .langs { justify-self: end; }
  .lp-menu { display: flex; gap: 8px; }
  .lp-menu a { color: #fff; text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: 12px; }
  .lp-menu a:hover { background: rgba(255, 255, 255, .08); }
  .lp-hero { padding: 26px 0 72px; }
  .lp h1 { font-size: 68px; line-height: 1.12; letter-spacing: -.035em; margin-bottom: 18px; }
  .lp-mark { display: inline-block; white-space: nowrap; margin-top: 6px; padding: 0 .25em .04em; }
  .lp-sub { font-size: 19px; line-height: 1.5; max-width: 40em; margin-bottom: 40px; }
  .lp-story { grid-template-columns: 1fr 96px 1fr; align-items: center; gap: 8px; text-align: start; }
  .lp-arrow { width: 96px; height: 48px; transform: none; margin-top: -60px; }
  html[dir="rtl"] .lp-arrow { transform: scaleX(-1); }
  .lp-scene img { border-radius: 28px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
  .lp-scene figcaption { margin-top: 16px; }
  .lp-scene figcaption p { font-size: 16px; max-width: 34ch; }
  .lp-feats { grid-template-columns: repeat(4, 1fr); max-width: 860px; margin: 56px auto 40px; }
  .lp-feats li { font-size: 16px; }
  .lp-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; }
  .lp-auth .lp-ghost { margin: 0; }
  .lp-auth .lp-note, .lp-auth .lp-dev, .lp-auth .err { grid-column: 1 / -1; }
  .lp h2 { font-size: 44px; }
  .lp-table-sec { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; padding: 72px 0 104px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .lp-tcopy p { font-size: 18px; max-width: 30ch; }
  .lp-sheet { padding: 22px 22px 12px; border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
  .lp-sheet td { padding: 12px 4px; }
  .lp-toast { position: absolute; inset-inline-start: -40px; bottom: -60px; margin: 0; padding: 14px 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
  .lp-how { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: start; padding: 72px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .lp-how-intro { order: 2; }
  .lp-how-intro p { font-size: 18px; max-width: 26ch; }
  .lp-steps { padding: 6px 28px; border-radius: 24px; }
  .lp-steps li { padding: 20px 0; gap: 24px; }
  .lp-round { width: 96px; font-size: 15px; }
  .lp-steps h3 { font-size: 17px; }
  .lp-steps p { font-size: 15px; }
  .lp-faq { padding: 64px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .lp-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 56px; margin-top: 16px; }
  .lp-faq h3 { font-size: 17px; }
  .lp-faq p { font-size: 15px; max-width: 46ch; }
  .lp-kick { max-width: none; margin: 0 calc(50% - 50vw); padding: 80px 48px; }
  .lp-kick h2 { font-size: 64px; }
  .lp-kick p { font-size: 18px; }
}

/* ---------- app on desktop: sidebar nav + wider column ---------- */
@media (min-width: 1000px) {
  html { background: var(--bg); }
  body { box-shadow: none; }
  body:not(.wide) { max-width: 720px; }
  body.has-nav { max-width: 1000px; padding-inline-start: 240px; }
  .nav { left: max(24px, calc(50vw - 500px)); right: auto; top: 24px; bottom: auto; width: 208px; height: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 12px; border-radius: 24px; max-width: none; margin: 0; }
  html[dir="rtl"] .nav { right: max(24px, calc(50vw - 500px)); left: auto; }
  .nav a { padding: 12px 16px; border-radius: 14px; }
  .nav a .lbl { display: inline; }
  .nav a.nav-logo { display: block; padding: 6px 16px 14px; color: var(--text); }
  .nav a.nav-logo:hover { background: none; }
  .nav a:not(.on):hover { background: var(--surface-2); color: var(--text); }
  .screen { padding-bottom: 40px; }
  .head { border-radius: 0 0 28px 28px; }
}

/* pressed / hover feedback for buttons (cursor and focus are set above) */
.btn:not([disabled]):hover, .gbtn:hover, .langs a:not(.on):hover { filter: brightness(1.08); }
.btn:not([disabled]):active, .gbtn:active { transform: translateY(1px); filter: brightness(.95); }
.btn, .gbtn { cursor: pointer; }

/* ---------- public SEO pages (tool, schedules, guides): light reading pages under a navy bar ---------- */
.sx { background: var(--bg); min-height: 100dvh; }
.sx-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 18px; background: var(--navy-900); color: #fff; }
.sx-logo { color: #fff; text-decoration: none; }
.sx-menu { display: flex; gap: 4px; order: 3; width: 100%; }
.sx-menu a { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 12px; border-radius: 10px; }
.sx-menu a:hover { background: rgba(255, 255, 255, .1); }
.sx-top .langs { gap: 6px; }
.sx-top .langs a { flex: none; padding: 10px 12px; font-size: 13px; background: rgba(255, 255, 255, .1); color: #fff; }
.sx-top .langs a.on { background: var(--pink-600); }
.sx-main { padding: 22px 18px 40px; }
.sx-narrow { max-width: 760px; margin: 0 auto; }
.sx-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.sx-crumbs a { color: var(--muted); }
.sx h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
.sx h2 { font-size: 21px; line-height: 1.25; margin: 30px 0 10px; }
.sx-lead { font-size: 17px; line-height: 1.55; color: var(--text); margin: 0 0 20px; }
.sx-form { display: grid; gap: 10px; padding: 18px; }
.sx-form textarea { width: 100%; box-sizing: border-box; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 15px/1.5 var(--font); resize: vertical; }
.sx-check { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.sx-check input { width: 20px; height: 20px; accent-color: var(--pink-600); }
.sx-facts { color: var(--muted); }
.sx-actions { margin: 14px 0; }
.sx-actions .btn { display: inline-flex; width: auto; padding: 13px 20px; }
.sx-rounds { display: grid; gap: 12px; margin: 16px 0; }
.sx-round { background: var(--surface); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-card); }
.sx-round h3 { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.sx-round ul { list-style: none; margin: 0; padding: 0; }
.sx-round li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.sx-round li:first-child { border-top: 0; }
.sx-round li span:first-child { text-align: end; font-weight: 600; }
.sx-round li span:last-child { font-weight: 600; }
.sx-round li i { font-style: normal; color: var(--muted); font-size: 13px; }
.sx-cta { display: grid; gap: 14px; background: var(--navy-900); color: #fff; border-radius: 20px; padding: 20px; margin: 28px 0; }
.sx-cta p { margin: 4px 0 0; color: var(--on-dark-muted); font-size: 14px; }
.sx-cta .btn { width: auto; justify-self: start; padding: 13px 22px; }
.sx-stats { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sx-stats li { background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-card); }
.sx-stats b { display: block; font-size: 26px; }
.sx-stats span { color: var(--muted); font-size: 13px; }
.sx-note { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; }
.sx-sizes a { display: inline-block; margin: 0 6px 8px 0; padding: 8px 12px; border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-card); }
.sx-prose a, .sx-article a, .sx-related a { color: var(--pink-600); }
.sx-article section p, .sx-article li { font-size: 16px; line-height: 1.65; }
.sx-article ul { padding-inline-start: 22px; }
.sx-article li { margin: 4px 0; }
.sx-tool { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.sx-table { overflow-x: auto; background: var(--surface); border-radius: 14px; padding: 6px 10px; box-shadow: var(--shadow-card); }
.sx-related { display: grid; gap: 8px; }
.sx-related h2 { margin-bottom: 2px; }
.sx-guides { display: grid; gap: 12px; }
.sx-guide-card { display: block; padding: 18px; text-decoration: none; color: var(--text); }
.sx-guide-card h2 { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.sx-guide-card p { margin: 0; color: var(--muted); font-size: 14px; }
.sx-guide-card:hover h2 { color: var(--pink-600); }

/* shared footer (landing + SEO pages) */
.sx-foot { background: #08112e; color: var(--on-dark-muted); padding: 32px 18px 24px; }
.lp .sx-foot { margin: 0 -18px -28px; }
.sx-foot-cols { display: grid; gap: 24px; max-width: 1100px; margin: 0 auto; }
.sx-foot h2 { color: #fff; font-size: 15px; margin: 0 0 10px; }
.sx-foot a { display: block; color: var(--on-dark-muted); text-decoration: none; padding: 5px 0; font-size: 14px; }
.sx-foot a:hover { color: #fff; text-decoration: underline; }
.sx-foot > p { max-width: 1100px; margin: 22px auto 0; }

@media (min-width: 760px) {
  .sx-top { flex-wrap: nowrap; padding: 16px 32px; }
  .sx-menu { order: 0; width: auto; }
  .sx-main { padding: 36px 32px 64px; }
  .sx h1 { font-size: 42px; }
  .sx-rounds { grid-template-columns: 1fr 1fr; }
  .sx-cta { grid-template-columns: 1fr auto; align-items: center; padding: 24px 28px; }
  .sx-stats { grid-template-columns: repeat(4, 1fr); }
  .sx-foot-cols { grid-template-columns: 1fr 1.6fr 1fr; }
  .sx-foot { padding: 48px 32px 28px; }
}
@media (min-width: 960px) {
  .lp .sx-foot { max-width: none; margin: 0 calc(50% - 50vw) -40px; }
}

/* Chat messages drawn over the empty WhatsApp bubbles in the "old way" illustration.
   Real text (translatable) positioned in % of the image; sized with container units so it scales with the picture. */
.lp-pic { position: relative; container-type: inline-size; }
.lp-bubble { position: absolute; direction: ltr; display: flex; align-items: center; color: #fff; font-weight: 700; font-size: 2.3cqw; line-height: 1.15; white-space: nowrap; pointer-events: none; }
html[dir="rtl"] .lp-bubble { direction: rtl; justify-content: flex-start; }
.lp-bubble.b1 { left: 16.5%; top: 14%; width: 15.5%; height: 10%; }
.lp-bubble.b2 { left: 48.5%; top: 9.5%; width: 13.5%; height: 10%; }
.lp-bubble.b3 { left: 79%; top: 13%; width: 13.5%; height: 10%; }

/* ---------- gamification: divisions, rating changes, awards ----------
   Division colours are the badge's only job: they must read at a glance and stay AA in both themes. */
.tier { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 2px 8px; white-space: nowrap; background: var(--tier-bg); color: var(--tier-fg); }
.t-bronze { --tier-bg: #f3e2d3; --tier-fg: #7a4a1d; }
.t-silver { --tier-bg: #e6e9f0; --tier-fg: #3e4663; }
.t-gold { --tier-bg: #fff3d6; --tier-fg: #8a5a00; }
.t-platinum { --tier-bg: #dff3f4; --tier-fg: #0f5a60; }
.t-diamond { --tier-bg: #e5e4ff; --tier-fg: #3b33a8; }
.t-legend { --tier-bg: var(--pink-100); --tier-fg: var(--pink-600); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tier { filter: saturate(.9) brightness(.92); } }
:root[data-theme="dark"] .tier { filter: saturate(.9) brightness(.92); }

.rating-change { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.rc { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: var(--surface-2); font-size: 13px; }
.rc.up b { color: var(--green-700); }
.rc.down b { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rc.up b { color: #3ccf8e; } }
:root[data-theme="dark"] .rc.up b { color: #3ccf8e; }

.tier-row { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.tier-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 10px auto 4px; max-width: 320px; }
.tier-bar i { display: block; height: 100%; background: var(--gold-400); border-radius: 99px; }

.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.trophy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 14px 10px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); text-decoration: none; color: var(--text); }
.trophy .ms { font-size: 30px; }
.a-champion .ms { color: #c88a0a; } .a-golden_boot .ms { color: var(--pink-600); } .a-best_defence .ms { color: var(--navy-700); } .a-fair_play .ms { color: var(--green-700); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .a-best_defence .ms { color: #9fb0ff; } :root:not([data-theme="light"]) .a-fair_play .ms { color: #3ccf8e; } :root:not([data-theme="light"]) .a-champion .ms { color: var(--gold-400); } }
:root[data-theme="dark"] .a-best_defence .ms { color: #9fb0ff; } :root[data-theme="dark"] .a-fair_play .ms { color: #3ccf8e; } :root[data-theme="dark"] .a-champion .ms { color: var(--gold-400); }

.awards-card { margin-top: 12px; }
.awards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.award { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.award .ms { font-size: 26px; }
.award-name { font-weight: 800; font-size: 14px; }
.award-who a { color: var(--pink-600); font-weight: 700; text-decoration: none; }

.rank-tabs { display: flex; gap: 6px; margin: 0; }
.rank-tabs a { padding: 9px 16px; border-radius: 99px; font-weight: 700; font-size: 14px; color: var(--text); text-decoration: none; background: var(--surface); }
.rank-tabs a.on { background: var(--primary); color: var(--on-primary); }
.rank-list { padding: 4px 14px; }
.rank-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 52px; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.rank-row:first-child { border-top: 0; }
.rank-row .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rank-row .who small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.rank-row .pos { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-row b { text-align: end; font-variant-numeric: tabular-nums; }
.rank-row.me .who, .rank-row.me b { color: var(--pink-600); }
.rank-gap { text-align: center; color: var(--muted); padding: 4px 0; }
.tier-list { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }

/* ---------- friend challenges + head to head ---------- */
.ch-card { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 22px 18px; }
.ch-card > .ms { font-size: 40px; color: var(--pink-600); }
.ch-card h1 { font-size: 22px; line-height: 1.25; margin: 0; text-wrap: balance; }
.ch-actions { display: grid; gap: 8px; margin: 12px 0; }
.ch-actions form { margin: 0; }
.ch-rules { margin: 14px 2px 0; line-height: 1.5; }
.ch-new input { min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.ch-row { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.ch-row form { margin: 0; }
.btn.sm { padding: 9px 14px; font-size: 14px; }
.ch-home { display: flex; align-items: center; gap: 12px; margin-top: 4px; text-decoration: none; color: var(--text); }
.ch-home > .ms:first-child { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--pink-100); color: var(--pink-600); flex: none; }
.profile-actions { gap: 8px; margin-top: 14px; }
.profile-actions form { margin: 0; }
.profile-actions .btn { width: 100%; }
.rv-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.rv-side { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.rv-side b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rv-score > div:first-child { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rv-line { text-align: center; font-weight: 700; margin: 12px 0; }

/* Arabic headline: diacritics (ّ ِ) sit above/below the letters and touched the pink highlight. More room between the lines. */
html[dir="rtl"] .lp h1 { line-height: 1.5; }
html[dir="rtl"] .lp-mark { display: inline-block; margin-top: .3em; padding: .05em .3em .12em; }

/* ---------- filling a league: progress toward the minimum (marker) and the maximum ---------- */
.fill-count { font-size: 28px; font-weight: 800; color: var(--pink-600); }
.fill-count span { color: var(--muted); font-size: 18px; }
.fill-ready { color: var(--green-700); font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fill-ready { color: #3ccf8e; } }
:root[data-theme="dark"] .fill-ready { color: #3ccf8e; }
.fill-bar { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); margin: 8px 0 12px; }
.fill-bar i { display: block; height: 100%; border-radius: 99px; background: var(--pink-600); }
.fill-bar s { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: var(--text); opacity: .55; }
.fill-actions { display: grid; gap: 8px; }
.fill.compact .fill-count { font-size: 22px; }
.waiting-league { margin-top: 12px; }

/* ---------- notification reminders ---------- */
.push-nag { position: fixed; left: 16px; right: 16px; bottom: 92px; max-width: 448px; margin: 0 auto; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-radius: 18px; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-float); }
.push-nag > .ms { color: var(--gold-400); font-size: 26px; }
.push-nag .small { color: var(--on-dark-muted); line-height: 1.35; }
.push-nag .btn { width: auto; flex: none; }
.push-nag .nag-x { color: #fff; background: rgba(255, 255, 255, .1); width: 34px; height: 34px; flex: none; }
.screen:has(~ .push-nag:not([hidden])) { padding-bottom: 190px; }
.push-sheet { position: fixed; inset: 0; z-index: 40; background: rgba(8, 17, 46, .6); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.push-sheet[hidden] { display: none; }
.push-sheet-card { width: 100%; max-width: 440px; background: var(--surface); color: var(--text); border-radius: 26px; padding: 26px 20px 18px; text-align: center; display: grid; gap: 10px; animation: sheet-up .25s ease-out; }
.push-sheet-ico .ms { font-size: 44px; color: var(--pink-600); }
.push-sheet-card h2 { margin: 0; font-size: 22px; }
.push-sheet-card p { margin: 0 0 6px; color: var(--muted); line-height: 1.5; }
@keyframes sheet-up { from { transform: translateY(30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .push-sheet-card { animation: none; } }
@media (min-width: 1000px) {
  .push-nag { bottom: 24px; left: auto; right: max(24px, calc(50vw - 500px)); width: 400px; margin: 0; }
  .push-sheet { align-items: center; }
}
