/* CDL predictions — visual direction v2 (approved by Abdullah 2026-10-29). */
@font-face { font-family: "Changa"; font-weight: 400; font-display: swap; src: url(fonts/changa-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Changa"; font-weight: 600; font-display: swap; src: url(fonts/changa-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Changa"; font-weight: 800; font-display: swap; src: url(fonts/changa-arabic-800-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Changa"; font-weight: 400; font-display: swap; src: url(fonts/changa-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Changa"; font-weight: 600; font-display: swap; src: url(fonts/changa-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Changa"; font-weight: 800; font-display: swap; src: url(fonts/changa-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Saira"; font-weight: 800; font-style: italic; font-display: swap; src: url(fonts/saira-latin-800-italic.woff2) format("woff2"); }
@font-face { font-family: "Saira"; font-weight: 900; font-style: italic; font-display: swap; src: url(fonts/saira-latin-900-italic.woff2) format("woff2"); }

:root {
  --a: #2cf29a; --b: #2cf29a; --t: #2cf29a;
  --pitch: #03130c;
  --panel: #0a1d15;
  --edge: #183a2b;
  --well: #0e261c;
  --signal: #2cf29a;
  --chalk: #eef5f1;
  --steel: #8fa99a;
  --siren: #ff5a3c;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--chalk); font: 400 16px/1.55 "Changa", system-ui, sans-serif; }
.lat { font-family: "Saira", sans-serif; font-style: italic; font-weight: 900; letter-spacing: .01em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.top .mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.top .mark img { height: 28px; }
.top .mark span { font-weight: 800; font-size: 1.05rem; }
.top .me { text-decoration: none; font-weight: 600; font-size: .95rem; display: flex; gap: 8px; align-items: center; }
.top .me b { font: 900 italic .95rem "Saira"; color: var(--signal); }

body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; width: 100%; max-width: 560px; margin: 0 auto; padding: 0 14px 24px; }

.hero { position: relative; margin: 6px 0 8px; padding: 22px 16px 20px; border: 1px solid var(--edge); border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 50%, color-mix(in srgb, var(--a) 38%, transparent), transparent 60%),
    radial-gradient(120% 90% at 0% 50%, color-mix(in srgb, var(--b) 38%, transparent), transparent 60%),
    var(--panel); }
.hero .label { margin: 0; text-align: center; color: var(--steel); font-weight: 600; font-size: .95rem; }
.face { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 12px; }
.face .team { display: grid; justify-items: center; gap: 6px; }
.face .team img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(0,0,0,.45)); }
.face .team .lat { font-size: 1.15rem; }
.clock { direction: ltr; font: 900 italic 2.6rem/1 "Saira"; font-variant-numeric: tabular-nums; text-align: center; }
.clock small, .clock .when { display: block; font: 600 normal .8rem "Changa"; color: var(--steel); margin-top: 6px; }
html[dir="rtl"] .clock small, html[dir="rtl"] .clock .when { direction: rtl; }
.clock .when { font-size: 1rem; color: var(--chalk); }

.day h2 { margin: 26px 2px 10px; font-size: 1rem; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; }
.day h2 span { color: var(--steel); font-weight: 600; font-size: .9rem; }

.match { border: 1px solid var(--edge); border-radius: 16px; background: var(--panel); margin-bottom: 12px; overflow: hidden; }
.match .row { display: grid; grid-template-columns: 1fr 92px 1fr; align-items: center; padding: 16px 10px 14px; }
.pick { display: grid; justify-items: center; gap: 6px; padding: 8px 4px 10px; border-radius: 12px; border: 1px solid transparent; background: none; color: inherit; font: inherit; }
button.pick { cursor: pointer; }
.pick img { width: 56px; height: 56px; object-fit: contain; }
.pick .crest { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--well); font: 900 italic .8rem "Saira"; }
.pick .lat { font-size: 1.05rem; }
.pick.on { border-color: var(--t); background: color-mix(in srgb, var(--t) 22%, transparent); }
.has-pick .pick:not(.on) img { filter: grayscale(1); opacity: .4; }
.has-pick .pick:not(.on) .lat { color: var(--steel); }
.mid { text-align: center; display: grid; gap: 2px; }
.mid .time { font-weight: 800; font-size: 1.1rem; }
.mid .bo { color: var(--steel); font: 800 italic .8rem "Saira"; }
.mid .score { direction: ltr; font: 900 italic 1.7rem/1 "Saira"; }
.status { display: flex; justify-content: center; gap: 6px; font-size: .85rem; color: var(--steel); padding: 0 12px 12px; margin-top: -4px; text-align: center; }
.status .open { color: var(--signal); }
.status .locked { color: var(--siren); }

.details { border-top: 1px solid var(--edge); padding: 12px 14px 14px; display: grid; gap: 12px; }
.details h3 { margin: 0 0 6px; font-size: .85rem; color: var(--steel); font-weight: 600; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg button { padding: 8px 0; border-radius: 10px; border: 1px solid var(--edge); background: var(--well); color: var(--chalk); font: 900 italic 1.05rem "Saira"; direction: ltr; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--chalk); color: var(--pitch); border-color: var(--chalk); }

.split { padding: 0 14px 14px; }
.split .bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--well); }
.split .bar i { display: block; background: var(--t); }
.split .legend { display: flex; justify-content: space-between; font-size: .85rem; color: var(--steel); margin-top: 6px; }
.split .legend b { color: var(--chalk); font: 900 italic .95rem "Saira"; }
.result { padding: 10px 14px 12px; border-top: 1px solid var(--edge); font-size: .9rem; color: var(--steel); display: grid; gap: 4px; }
.result p { margin: 0; display: flex; justify-content: space-between; gap: 10px; }
.result b { color: var(--chalk); }
.result .pts { font: 900 italic 1rem "Saira"; color: var(--signal); direction: ltr; }
.result .pts.zero { color: var(--steel); }

.empty { color: var(--steel); text-align: center; padding: 40px 10px; }

.tabs { position: fixed; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(3,19,12,.96);
  border-top: 1px solid var(--edge); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { text-align: center; padding: 12px 2px; font-size: .92rem; text-decoration: none; color: var(--steel); font-weight: 600; }
.tabs a[aria-current="page"] { color: var(--chalk); box-shadow: inset 0 3px 0 var(--signal); }


@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Bar widths as classes (CSP forbids inline styles). */
.w-0 { width: 0%; }
.w-1 { width: 1%; }
.w-2 { width: 2%; }
.w-3 { width: 3%; }
.w-4 { width: 4%; }
.w-5 { width: 5%; }
.w-6 { width: 6%; }
.w-7 { width: 7%; }
.w-8 { width: 8%; }
.w-9 { width: 9%; }
.w-10 { width: 10%; }
.w-11 { width: 11%; }
.w-12 { width: 12%; }
.w-13 { width: 13%; }
.w-14 { width: 14%; }
.w-15 { width: 15%; }
.w-16 { width: 16%; }
.w-17 { width: 17%; }
.w-18 { width: 18%; }
.w-19 { width: 19%; }
.w-20 { width: 20%; }
.w-21 { width: 21%; }
.w-22 { width: 22%; }
.w-23 { width: 23%; }
.w-24 { width: 24%; }
.w-25 { width: 25%; }
.w-26 { width: 26%; }
.w-27 { width: 27%; }
.w-28 { width: 28%; }
.w-29 { width: 29%; }
.w-30 { width: 30%; }
.w-31 { width: 31%; }
.w-32 { width: 32%; }
.w-33 { width: 33%; }
.w-34 { width: 34%; }
.w-35 { width: 35%; }
.w-36 { width: 36%; }
.w-37 { width: 37%; }
.w-38 { width: 38%; }
.w-39 { width: 39%; }
.w-40 { width: 40%; }
.w-41 { width: 41%; }
.w-42 { width: 42%; }
.w-43 { width: 43%; }
.w-44 { width: 44%; }
.w-45 { width: 45%; }
.w-46 { width: 46%; }
.w-47 { width: 47%; }
.w-48 { width: 48%; }
.w-49 { width: 49%; }
.w-50 { width: 50%; }
.w-51 { width: 51%; }
.w-52 { width: 52%; }
.w-53 { width: 53%; }
.w-54 { width: 54%; }
.w-55 { width: 55%; }
.w-56 { width: 56%; }
.w-57 { width: 57%; }
.w-58 { width: 58%; }
.w-59 { width: 59%; }
.w-60 { width: 60%; }
.w-61 { width: 61%; }
.w-62 { width: 62%; }
.w-63 { width: 63%; }
.w-64 { width: 64%; }
.w-65 { width: 65%; }
.w-66 { width: 66%; }
.w-67 { width: 67%; }
.w-68 { width: 68%; }
.w-69 { width: 69%; }
.w-70 { width: 70%; }
.w-71 { width: 71%; }
.w-72 { width: 72%; }
.w-73 { width: 73%; }
.w-74 { width: 74%; }
.w-75 { width: 75%; }
.w-76 { width: 76%; }
.w-77 { width: 77%; }
.w-78 { width: 78%; }
.w-79 { width: 79%; }
.w-80 { width: 80%; }
.w-81 { width: 81%; }
.w-82 { width: 82%; }
.w-83 { width: 83%; }
.w-84 { width: 84%; }
.w-85 { width: 85%; }
.w-86 { width: 86%; }
.w-87 { width: 87%; }
.w-88 { width: 88%; }
.w-89 { width: 89%; }
.w-90 { width: 90%; }
.w-91 { width: 91%; }
.w-92 { width: 92%; }
.w-93 { width: 93%; }
.w-94 { width: 94%; }
.w-95 { width: 95%; }
.w-96 { width: 96%; }
.w-97 { width: 97%; }
.w-98 { width: 98%; }
.w-99 { width: 99%; }
.w-100 { width: 100%; }

/* Header account */
.top .me { gap: 10px; }
.top .me span { color: var(--steel); font-size: .9rem; }
.top .me form { margin: 0; }
.link { background: none; border: 0; padding: 0; color: var(--steel); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; }

/* Buttons */
.button { display: inline-block; padding: 11px 26px; border-radius: 999px; background: var(--signal); color: var(--pitch); border: 0;
  font: 800 1rem "Changa", sans-serif; text-decoration: none; text-align: center; cursor: pointer; }
.button.ghost { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 1.5px var(--edge); }
.button.wide { display: block; width: 100%; }

/* Landing */
.intro { padding: 34px 4px 10px; }
.intro h1 { font-size: 1.9rem; line-height: 1.35; margin: 0 0 12px; }
.intro p { color: var(--steel); margin: 0 0 22px; max-width: 34em; }
.intro .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rules { margin-top: 26px; border: 1px solid var(--edge); border-radius: 16px; background: var(--panel); padding: 16px 18px; }
.rules h2 { margin: 0 0 10px; font-size: 1rem; }
.rules ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rules li { display: flex; gap: 12px; align-items: baseline; }
.rules li b { color: var(--signal); font-size: 1.15rem; min-width: 2.2em; direction: ltr; text-align: start; }
.rules .note { margin: 12px 0 0; color: var(--steel); font-size: .9rem; }

/* Forms */
.panel { border: 1px solid var(--edge); border-radius: 16px; background: var(--panel); padding: 20px 18px; }
.auth { margin-top: 18px; }
.auth h1 { font-size: 1.4rem; margin: 0 0 14px; }
.auth .lead { margin: 0 0 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--edge); background: var(--well);
  color: var(--chalk); font: 400 1rem "Changa", sans-serif; }
.field input[dir="ltr"] { text-align: left; }
.field input:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; }
.field.has-error input { border-color: var(--siren); }
.hint { color: var(--steel); font-size: .85rem; margin: 6px 0 0; }
.error { color: var(--siren); font-size: .9rem; margin: 6px 0 0; }
.auth > .error { margin: 0 0 14px; }
.switch { text-align: center; color: var(--steel); margin: 14px 0 0; font-size: .95rem; }
.switch a { color: var(--chalk); }
.hint.spaced { margin: 0 0 14px; }

/* Pick form (no JS needed) */
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pick.choose { cursor: pointer; }
.pick.choose:has(input:checked) { border-color: var(--t); background: color-mix(in srgb, var(--t) 22%, transparent); }
.pick.choose:has(input:focus-visible) { outline: 3px solid var(--signal); outline-offset: 2px; }
.pickform:has(.pick input:checked) .pick:not(:has(input:checked)) img { filter: grayscale(1); opacity: .4; }
.pickform:has(.pick input:checked) .pick:not(:has(input:checked)) .lat { color: var(--steel); }
.pickform .details { display: none; }
.pickform:has(.pick input:checked) .details { display: grid; }
.pickform .mvp { display: none; }
.pickform:has(input[name="winner"][value="a"]:checked) .mvp-a,
.pickform:has(input[name="winner"][value="b"]:checked) .mvp-b { display: block; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 6px; font-size: .85rem; color: var(--steel); font-weight: 600; }
.seg label { position: relative; display: block; }
.seg label span { display: block; text-align: center; padding: 8px 0; border-radius: 10px; border: 1px solid var(--edge); background: var(--well);
  color: var(--chalk); font: 900 italic 1.05rem "Saira"; direction: ltr; cursor: pointer; }
.seg.players label span { font: 800 italic .95rem "Saira"; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 4px; }
.seg label:has(input:checked) span { background: var(--chalk); color: var(--pitch); border-color: var(--chalk); }
.seg label:has(input:focus-visible) span { outline: 3px solid var(--signal); outline-offset: 2px; }
.save { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.save .hint { margin: 0; }
.save .hint b { color: var(--chalk); }
.pick-error { text-align: center; margin: 0 12px 12px; }
.share { margin: 4px 0 8px; }
.share .hint { text-align: center; }

/* Leaderboard */
.tabsbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 14px 0 10px; }
.tabsbar a { text-align: center; padding: 9px 4px; border-radius: 12px; border: 1px solid var(--edge); background: var(--panel);
  text-decoration: none; font-weight: 600; color: var(--steel); }
.tabsbar a[aria-current="page"] { color: var(--pitch); background: var(--chalk); border-color: var(--chalk); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.chips a { padding: 5px 14px; border-radius: 999px; border: 1px solid var(--edge); text-decoration: none; color: var(--steel); font-size: .9rem; }
.chips a[aria-current="true"] { color: var(--chalk); border-color: var(--signal); }
.board { list-style: none; margin: 0; padding: 0; border: 1px solid var(--edge); border-radius: 16px; background: var(--panel); overflow: hidden; }
.board li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--edge); }
.board li:first-child { border-top: 0; }
.board .rank { font: 900 italic 1.1rem "Saira"; color: var(--steel); text-align: center; direction: ltr; }
.board li.top .rank { color: var(--signal); }
.board .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.board .who a { color: inherit; text-decoration: none; }
.board .who-pic { display: flex; flex: none; }
.board .line a.lat:hover, .board .line a.x:hover { text-decoration: underline; text-underline-offset: 3px; }
.board .who .avatar { width: 36px; height: 36px; }
.board .name { min-width: 0; display: grid; }
.board .line { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }
.board .line .lat { font: 900 italic 1.02rem "Saira"; overflow: hidden; text-overflow: ellipsis; }
.board .line .x { font: 500 .74rem "Saira"; color: var(--steel); overflow: hidden; text-overflow: ellipsis; }
.board .sub { display: block; font: 400 .76rem "Changa"; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .pts { font: 900 italic 1.2rem "Saira"; direction: ltr; }
.board li.me { background: color-mix(in srgb, var(--signal) 12%, transparent); }
.board li.gap { padding: 4px; color: var(--steel); text-align: center; display: block; }
.leaguelist { display: grid; gap: 8px; margin-bottom: 16px; }
.leaguelist a { display: flex; justify-content: space-between; padding: 14px; border-radius: 14px; border: 1px solid var(--edge);
  background: var(--panel); text-decoration: none; font-weight: 600; }
.leaguelist a span { color: var(--steel); font-weight: 400; }
.invite { display: flex; gap: 8px; align-items: center; margin: 10px 0 16px; }
.invite input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--edge); background: var(--well);
  color: var(--chalk); font: 400 .85rem "Changa"; direction: ltr; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--edge); background: var(--well); color: var(--chalk); font: inherit; }
.danger { color: var(--siren); }
.panel-title { margin: 0 0 10px; font-size: 1rem; }
.league-title { font-size: 1.4rem; margin: 6px 0 2px; }
.leave { text-align: center; margin-top: 18px; }
.board .sub span { display: inline-block; margin-inline-end: 12px; }

/* Footer: always at the end of the page (Abdullah 2026-10-29) */
footer.site { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 14px 26px; border-top: 1px solid var(--edge); color: var(--steel); font-size: .85rem; }
footer.site.with-tabs { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
footer.site a { display: inline-flex; align-items: center; gap: 8px; color: var(--steel); text-decoration: none; border-radius: 8px; }
footer.site a:hover { color: var(--chalk); }
footer.site .sponsor img { height: 36px; }
footer.site .social span { font: 600 .95rem "Changa"; }
.demo-tag { display: inline-block; margin: 4px auto 0; padding: 0 8px; border-radius: 999px; font-size: .7rem; color: #ffd166; border: 1px solid #ffd16655; }
.share-page h1 { font-size: 1.3rem; margin: 14px 0 12px; }
.share-preview { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--edge); }
.share-actions { display: grid; gap: 8px; margin-top: 14px; }
[hidden] { display: none !important; }
/* My picks */
.page-title { font-size: 1.4rem; margin: 14px 0 12px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 18px; }
.stats div { border: 1px solid var(--edge); border-radius: 12px; background: var(--panel); padding: 10px 4px; text-align: center; display: grid; gap: 2px; }
.stats b { font-size: 1.35rem; }
.stats span { font-size: .72rem; color: var(--steel); }
.stats .has-tip { position: relative; cursor: help; }
.tip-label::after { content: "?"; display: inline-grid; place-items: center; width: 13px; height: 13px; margin-inline-start: 4px; border-radius: 50%;
  border: 1px solid var(--steel); font: 700 .58rem/1 "Saira"; vertical-align: 1px; }
.stats .tip { position: absolute; z-index: 5; top: calc(100% + 8px); inset-inline-end: 0; width: 220px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--edge); background: #06140e; box-shadow: 0 8px 24px #0009; font-style: normal; font-size: .8rem; line-height: 1.7;
  color: #e8f3ee; text-align: start; opacity: 0; visibility: hidden; transition: opacity .15s; pointer-events: none; }
.stats .tip b { font-size: .85rem; color: var(--signal); }
.stats .has-tip:hover .tip, .stats .has-tip:focus .tip, .stats .has-tip:focus-within .tip { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .stats .tip { transition: none; } }
.mine-day h2 { margin-top: 22px; }
.mine-day h2 b { color: var(--signal); font: 900 italic 1rem "Saira"; }
.mine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mine { border: 1px solid var(--edge); border-radius: 14px; background: var(--panel); overflow: hidden; }
.mine-row { display: grid; grid-template-columns: 1fr 84px 1fr; align-items: center; padding: 10px 8px 6px; }
.mine .side { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: 10px; border: 1px solid transparent; }
.mine .side:last-child { flex-direction: row-reverse; }
.mine .side img, .mine .side .crest { width: 34px; height: 34px; flex: none; object-fit: contain; }
.mine .side .crest { display: grid; place-items: center; border-radius: 50%; background: var(--well); font: 900 italic .62rem "Saira"; }
.mine .side .lat { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine .side.on { border-color: var(--t); background: color-mix(in srgb, var(--t) 20%, transparent); }
.mine .side:not(.on) img { filter: grayscale(1); opacity: .45; }
.mine .side:not(.on) .lat { color: var(--steel); }
.mine .mid .time { font-size: .92rem; line-height: 1.3; }
.mine .mid .score { font-size: 1.35rem; }
.mine-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px 10px;
  border-top: 1px solid var(--edge); font-size: .86rem; color: var(--steel); }
.mine-pick { min-width: 0; }
.mine-pick b { color: var(--chalk); }
.mine-pick i { font-style: normal; margin: 0 6px; }
.mine-foot .pts { font: 900 italic 1.1rem "Saira"; color: var(--signal); }
.mine-foot .pts.zero { color: var(--steel); }
.mine-foot .edit { flex: none; color: var(--signal); font-weight: 700; text-decoration: none; padding: 2px 12px; border: 1px solid color-mix(in srgb, var(--signal) 45%, transparent); border-radius: 999px; }
.mine-foot .locked { color: var(--siren); font-weight: 700; }
.mine-note { margin: -4px 14px 10px; font-size: .8rem; }
.result-line .locked { color: var(--siren); }
/* Account, rules, beta */
.panel + .panel { margin-top: 12px; }
.kv { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0; color: var(--steel); }
.kv b { color: var(--chalk); overflow-wrap: anywhere; }
.ok { color: var(--signal); margin: 0 0 12px; }
.danger-zone { border-color: color-mix(in srgb, var(--siren) 45%, var(--edge)); }
.danger-button { background: var(--siren); color: #fff; }
.prose p { margin: 0 0 10px; color: var(--chalk); line-height: 1.8; }
.prose .panel-title { margin-top: 6px; }
.rules-list { margin: 0 0 10px; padding-inline-start: 0; list-style: none; display: grid; gap: 6px; }
.rules-list b { color: var(--signal); display: inline-block; min-width: 2.4em; direction: ltr; text-align: start; }
.small-link { font-size: .8rem; text-decoration: underline !important; }
.beta-banner { margin: 0; padding: 6px 14px; text-align: center; font-size: .82rem; color: #ffd166; background: #ffd16614; border-bottom: 1px solid #ffd16633; }
.top .me a { text-decoration: none; }

/* Player pictures */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; background: var(--well);
  border: 1px solid var(--edge); }
.avatar.blank { font: 900 italic 1rem "Saira"; color: var(--steel); }
.avatar.big { width: 88px; height: 88px; font-size: 2rem; }
/* Profile */
.profile-head { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; }
.profile-head h1 { margin: 0; font: 900 italic 1.5rem "Saira"; overflow-wrap: anywhere; }
.profile-head .x { color: var(--steel); font: 500 .9rem "Saira"; text-decoration: none; }
.profile-head .x:hover { color: var(--chalk); }
.profile-note { color: var(--steel); font-size: .85rem; margin: 18px 0 0; }
/* Account: picture + X */
.picture-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.picture-row .avatar { width: 72px; height: 72px; font-size: 1.6rem; }
.file-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; min-width: 0; }
.file-pick label { cursor: pointer; flex: none; }
.file-pick input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 3px; }
.file-name { color: var(--steel); font-size: .88rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; }
.x-field { display: flex; align-items: stretch; direction: ltr; border: 1px solid var(--edge); border-radius: 10px; background: var(--well); overflow: hidden; }
.x-field span { display: grid; place-items: center; padding: 0 10px; color: var(--steel); border-inline-end: 1px solid var(--edge); font: 600 1rem "Saira"; }
.x-field input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; background: none; color: var(--chalk); font: inherit; }
.x-field:focus-within { outline: 3px solid var(--signal); outline-offset: 2px; }
.x-field input:focus-visible { outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 14px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--signal); flex: none; }
.field-label { display: block; font-weight: 600; margin-bottom: 6px; }
.spaced-top { margin-top: 8px; }
.spaced-error { margin: 0 0 12px; }
.picture-row .hint { margin: 0; }
.top .me-link { display: flex; align-items: center; gap: 8px; }
.top .me-link .avatar { width: 32px; height: 32px; font-size: .85rem; }
.board .line .x { display: inline-flex; align-items: center; gap: 3px; }
.x-icon { flex: none; }
.profile-head .x { display: inline-flex; align-items: center; gap: 5px; }
.next-week { text-align: center; margin: 22px 0 6px; }
/* Beta: demo admin page */
.demo-day { font-size: 1rem; margin: 22px 2px 10px; }
.demo-match { margin-bottom: 10px; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.demo-head b { font-size: 1.05rem; }
.demo-head b span { font: 600 .85rem "Changa"; color: var(--steel); }
.demo-head .hint { margin: 0; }
.demo-form { display: grid; gap: 6px; }
.demo-form select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--edge); background: var(--well);
  color: var(--chalk); font: inherit; margin-bottom: 6px; }
.demo-form .button { margin-top: 4px; }
.demo-live-form { margin-top: 8px; }
.demo-done { margin: 0; color: var(--steel); }
.demo-done b { color: var(--chalk); }
.demo-live { margin: 0 0 8px; }
/* Live update banner (only when a form is half filled) */
.live-banner { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; padding: 10px 14px; background: #0b2a1d; border-bottom: 1px solid var(--signal); font-size: .92rem; }
.live-banner[hidden] { display: none; }
.live-banner .button { padding: 6px 16px; }
/* Rounds (several matches at once, e.g. online events) */
.round-title { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 2px 8px; font-size: .95rem; color: var(--signal); }
.round-title span { color: var(--steel); font-weight: 500; font-size: .85rem; }
/* Bracket path */
.b-head { margin: 14px 0 10px; }
.b-head h1 { margin: 2px 0 4px; font: 900 italic 1.3rem "Saira"; }
.b-kicker { margin: 0; color: var(--signal); font-weight: 700; font-size: .9rem; }
.b-rules { margin-bottom: 14px; }
.b-rules summary { cursor: pointer; font-weight: 700; }
.b-rules ul { margin: 10px 0 0; padding-inline-start: 18px; color: var(--steel); font-size: .9rem; line-height: 1.9; }
.b-section { font-size: 1.05rem; margin: 22px 2px 8px; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.b-group h3 { margin: 0 0 8px; font-size: .95rem; }
.b-group ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.b-group li { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 0; }
.b-group li:not(:has(button)) { padding: 6px 8px; border: 1px solid transparent; }
.b-group li.on:not(:has(button)) { border-color: var(--signal); }
.b-group li.hit:not(:has(button)) { background: color-mix(in srgb, var(--signal) 14%, transparent); }
.b-group li.miss:not(:has(button)) { border-color: var(--siren); }
.b-group em, .b-pick em { margin-inline-start: auto; font: 900 italic .9rem "Saira"; color: var(--pitch); background: var(--signal);
  border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; }
.b-pick { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--edge);
  background: var(--well); color: var(--chalk); font: inherit; cursor: pointer; text-align: start; min-height: 44px; }
.b-pick:disabled { cursor: default; opacity: .55; }
.b-group li.on .b-pick, .b-pick.on { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 16%, var(--well)); }
.b-logo { width: 26px; height: 26px; object-fit: contain; flex: none; }
.b-logo.blank { display: inline-grid; place-items: center; border-radius: 50%; background: var(--edge); font: 900 italic .62rem "Saira"; color: var(--steel); }
.b-match { border: 1px solid var(--edge); border-radius: 14px; background: var(--panel); padding: 10px; margin-bottom: 8px; }
.b-match.hit { border-color: var(--signal); }
.b-match.miss { border-color: color-mix(in srgb, var(--siren) 60%, var(--edge)); }
.b-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.b-teams > span:not(.b-vs) { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid transparent; }
.b-teams > span.on { border-color: var(--signal); }
.b-vs { color: var(--steel); font-size: .8rem; }
.b-score { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.b-score button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--edge); background: var(--well); color: var(--chalk);
  font: 800 italic .9rem "Saira"; cursor: pointer; direction: ltr; }
.b-score button.on { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 16%, var(--well)); }
.b-line { margin: 8px 2px 0; font-size: .88rem; color: var(--steel); }
.b-line b { color: var(--chalk); }
.b-pts { margin-inline-start: 8px; font: 900 italic 1rem "Saira"; color: var(--signal); }
.b-save { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 14px; background: #06140ee8; }
.b-total.stats { grid-template-columns: repeat(4, 1fr); }
.waiting .b-teams { opacity: .7; }
.b-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 4px; padding: 14px 16px;
  border-radius: 16px; border: 1px solid var(--signal); background: linear-gradient(120deg, color-mix(in srgb, var(--signal) 18%, var(--panel)), var(--panel));
  text-decoration: none; color: inherit; }
.b-banner b { display: block; font-size: 1rem; }
.b-banner span { color: var(--steel); font-size: .85rem; }
.b-banner .button { flex: none; padding: 8px 16px; }
.b-match .b-score button.on { color: var(--chalk); }
.b-save .button { white-space: nowrap; flex: none; }
.b-save .hint { margin: 0; min-width: 0; }
/* Match of the week (double points) */
.x2 { display: inline-block; margin: 4px auto 0; padding: 0 8px; border-radius: 999px; font: 900 italic .78rem "Saira";
  color: var(--pitch); background: #ffd166; }
.x2-note { margin: 0 0 6px; text-align: center; font-weight: 800; color: #ffd166; font-size: .9rem; }
.save-status { font-size: .88rem; color: var(--signal); font-weight: 700; }
.save-status.bad { color: var(--siren); }
.x-pill { display: inline-flex; margin-top: 6px; padding: 4px 12px; border: 1px solid var(--edge); border-radius: 999px; color: var(--chalk) !important; }
.x-pill:hover { border-color: var(--chalk); }

/* ---------- Desktop (Abdullah 2026-11-01: the PC layout looked like a stretched phone) ---------- */
.topnav, .home-side { display: none; }
@media (min-width: 1024px) {
  .top { position: sticky; top: 0; z-index: 30; padding: 12px max(24px, calc((100vw - 1240px) / 2));
    background: rgba(3, 19, 12, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--edge); gap: 24px; }
  .topnav { display: flex; gap: 4px; margin-inline-end: auto; }
  .topnav a { padding: 8px 14px; border-radius: 10px; color: var(--steel); text-decoration: none; font-weight: 700; }
  .topnav a:hover { color: var(--chalk); background: var(--panel); }
  .topnav a[aria-current="page"] { color: var(--chalk); background: var(--panel); box-shadow: inset 0 -2px 0 var(--signal); }
  .tabs { display: none; }
  footer.site.with-tabs { padding-bottom: 26px; }
  .beta-banner { text-align: center; }

  main { max-width: 1240px; padding: 0 24px 40px; }
  main.narrow { max-width: 760px; }

  /* home: matches + sidebar */
  .home { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
  .home-side { display: grid; gap: 14px; position: sticky; top: 84px; margin-top: 14px; }
  .side-card { margin: 0; }
  .side-points { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; }
  .side-points b { font-size: 2.4rem; color: var(--signal); }
  .side-points span { color: var(--steel); }
  .side-match { margin: 0 0 4px; font-size: 1.05rem; }
  .side-board { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
  .side-board li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; }
  .side-board li.me { background: color-mix(in srgb, var(--signal) 12%, transparent); }
  .side-board .rank { color: var(--steel); text-align: center; }
  .side-board a { display: flex; align-items: center; gap: 8px; min-width: 0; color: inherit; text-decoration: none; }
  .side-board a .lat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-board .avatar { width: 28px; height: 28px; font-size: .75rem; }
  .link-more { color: var(--signal); text-decoration: none; font-weight: 700; font-size: .9rem; }
  .hero { margin-top: 14px; padding: 28px 32px; }

  /* match days: two cards per row */
  .round-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .round-block > .round-title, .round-block > .share { grid-column: 1 / -1; }
  .round-block > .match { margin-bottom: 0; }
  .share { max-width: 460px; margin-inline: auto; width: 100%; }

  /* my picks / profile: two columns of picks */
  .mine-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { max-width: 760px; }
  .profile-head, .page-title { margin-top: 22px; }

  /* leaderboards: a readable width */
  .tabsbar, .chips, .board, .leaguelist, .league-title, .invite, main > .hint, main > .panel, .leave, main > .empty { max-width: 860px; margin-inline: auto; }

  .b-save { bottom: 16px; max-width: 760px; margin-inline: auto; }
}
.b-banner span.button { color: var(--pitch); }
.x2 { direction: ltr; unicode-bidi: isolate; }

/* Bracket tree (Abdullah 2026-11-01): one column per round, lines from each pair of matches to
   the match they feed. Scrolls sideways on small screens. */
.tree { display: flex; gap: 30px; overflow-x: auto; padding: 4px 2px 16px; scrollbar-width: thin; }
.tree-col { display: flex; flex-direction: column; flex: 1 0 196px; min-width: 196px; max-width: 280px; }
.tree-col > h3 { margin: 0 0 10px; text-align: center; font-size: .85rem; color: var(--signal); }
.tree-games { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 16px; }
.pair { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 16px; }
.tree .tree-match { position: relative; margin: 0; padding: 8px; display: grid; gap: 6px; }
.tree .tree-match .b-pick { min-height: 38px; padding: 6px 8px; font-size: .92rem; }
.tree .tree-match .b-logo { width: 22px; height: 22px; }
.tree .b-src { color: var(--steel); font-size: .78rem; font-style: normal; }
.tree .b-score { margin: 0; gap: 4px; }
.tree .b-score button { min-height: 32px; font-size: .82rem; padding: 0; }
.tree .b-line { margin: 0; font-size: .78rem; }
/* connectors (RTL: inline-end is the left side, towards the next round) */
.tree-col:not(:last-child) .tree-match::after { content: ""; position: absolute; top: 50%; inset-inline-end: -16px; width: 16px;
  border-top: 2px solid var(--edge); }
.tree-col:not(:first-child) .tree-match::before { content: ""; position: absolute; top: 50%; inset-inline-start: -15px; width: 15px;
  border-top: 2px solid var(--edge); }
.pair::after { content: ""; position: absolute; inset-inline-end: -16px; top: 25%; bottom: 25%; border-inline-start: 2px solid var(--edge); }
.tree .tree-match.hit::after, .tree .tree-match.hit::before { border-color: var(--signal); }
.tree-hint { margin: -4px 2px 8px; font-size: .8rem; }
@media (min-width: 1024px) { .tree-hint { display: none; } }
.upset-tag { display: inline-block; margin: 4px auto 0; padding: 0 8px; border-radius: 999px; font-size: .72rem; font-weight: 800;
  color: var(--pitch); background: #ff8fab; }
/* Notifications bell */
.top .bell { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--steel); }
.top .bell:hover, .top .bell.has { color: var(--chalk); }
.top .bell b { position: absolute; top: 1px; inset-inline-end: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center; background: var(--siren); color: #fff; font-size: .68rem; font-style: normal; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { border: 1px solid var(--edge); border-radius: 14px; background: var(--panel); padding: 12px 14px; display: grid; gap: 6px; }
.notes li.unread { border-color: var(--signal); }
.notes .when { color: var(--steel); font-size: .78rem; }
.notes .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notes .actions form { margin: 0; }
.notes .actions .button { padding: 7px 16px; }

/* 1v1 duels */
.duel-form h2 { margin: 0 0 14px; }
.duel-form .scope { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.duel-form .scope label span { font: 700 .95rem "Changa", sans-serif; direction: inherit; padding: 10px 0; }
html[dir="rtl"] .duel-form .scope label span { direction: rtl; }
.combo { position: relative; }
.combo-box { position: relative; }
.combo-box svg { position: absolute; top: 50%; inset-inline-end: 12px; transform: translateY(-50%); color: var(--steel); pointer-events: none; }
.combo-box input { padding-inline-start: 38px; font-size: 1.05rem; }
.combo-box input::placeholder { color: var(--steel); opacity: .8; font-family: "Changa", sans-serif; }
html[dir="rtl"] .combo-box input::placeholder { text-align: right; }
.combo-list { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--panel); border: 1px solid var(--signal); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.45); max-height: 300px; overflow-y: auto; }
.combo-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; direction: ltr; justify-content: flex-end; }
.combo-list li .avatar { width: 30px; height: 30px; font-size: .8rem; }
.combo-list li b { font: 800 italic 1rem "Saira"; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: color-mix(in srgb, var(--signal) 14%, transparent); }
.combo-list .none { color: var(--steel); cursor: default; justify-content: flex-start; }
html[dir="rtl"] .combo-list .none { direction: rtl; }
.duel-record { grid-template-columns: repeat(3, 1fr); }
.duel-btn { margin-top: 8px; display: inline-block; }
.button.small { padding: 7px 16px; font-size: .9rem; }
.duels { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.duel { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--edge); border-radius: 14px; background: var(--panel); padding: 12px 14px; }
.duel .who { display: grid; gap: 2px; }
.duel .who a { font-weight: 700; color: var(--chalk); }
.duel .who span, .duel small { color: var(--steel); font-size: .8rem; }
.duel .state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.duel .state form { margin: 0; }
.duel.won { border-color: var(--signal); }
.duel.lost, .duel.declined, .duel.expired, .duel.cancelled { opacity: .75; }

/* achievements */
.badges { margin-top: 26px; }
.badges h2 small { color: var(--steel); font-size: .8rem; font-weight: 400; }
.badges ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.badge { border: 1px solid var(--edge); border-radius: 14px; background: var(--panel); padding: 12px 10px; text-align: center; display: grid; gap: 4px; }
.badge .icon { font-size: 1.6rem; line-height: 1.2; }
.badge b { font-size: .92rem; }
.badge small { color: var(--steel); font-size: .74rem; line-height: 1.4; }
.badge.off { opacity: .4; filter: grayscale(1); }
.duel-line { color: var(--steel); margin: 0 0 14px; }
.week-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px;
  padding: 14px 16px; border: 1px solid var(--signal); border-radius: 14px; background: var(--panel); color: var(--chalk); text-decoration: none; }
.week-card span { color: var(--steel); font-size: .85rem; }

/* Home extras (Abdullah 2026-11-01): sponsor + Prestige games on the right edge, our own games
   in the summary column. Class names avoid "ad"/"sponsor" so ad blockers do not hide them. */
.home-extra { display: grid; gap: 12px; margin-top: 22px; align-content: start; }
.kg-card { display: grid; gap: 6px; border: 1px solid var(--edge); border-radius: 16px; background: var(--panel);
  padding: 12px; color: var(--chalk); text-decoration: none; text-align: center; }
.kg-card:hover, .kg-card:focus-visible { border-color: var(--signal); }
.kg-card img { width: 100%; height: auto; border-radius: 12px; display: block; }
.kg-card b { font-size: 1rem; line-height: 1.5; }
.kg-tag { font-size: .72rem; color: var(--steel); text-align: start; }
.kg-code { font-size: .85rem; }
.kg-cta { color: var(--signal); font-weight: 700; font-size: .85rem; }
.prestige { border: 1px solid var(--edge); border-radius: 16px; background: var(--panel); padding: 12px; display: grid; gap: 8px; }
.prestige-head { display: grid; gap: 2px; text-decoration: none; color: var(--chalk); }
.prestige-head b { font-size: 1.15rem; color: #e8c46a; }
.prestige-head span { color: var(--steel); font-size: .8rem; }
.prestige ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.prestige li a, .more-here a { display: grid; gap: 1px; padding: 7px 8px; border-radius: 10px; text-decoration: none; color: var(--chalk); }
.prestige li a:hover, .more-here a:hover { background: color-mix(in srgb, var(--signal) 9%, transparent); }
.prestige li b, .more-here a b { font-size: .9rem; }
.prestige li span, .more-here a span { color: var(--steel); font-size: .76rem; }
.prestige-all { color: #c6ff1a; font-weight: 700; font-size: .85rem; text-decoration: none; text-align: center; padding-top: 4px; }
.more-here { display: grid; gap: 2px; }
.more-here a { border-inline-start: 2px solid var(--signal); }
@media (max-width: 1023px) {
  .home-extra { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
  .more-here { margin-top: 14px; }
}
@media (min-width: 1024px) {
  .home { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main side" "main extra"; }
  .home-main { grid-area: main; } .home-side { grid-area: side; position: static; } .home-extra { grid-area: extra; margin-top: 0; }
}
@media (min-width: 1440px) {
  .top { padding-inline: max(24px, calc((100vw - 1560px) / 2)); }
  main.wide { max-width: 1560px; }
  /* RTL: sponsor and Prestige on the right edge, matches in the middle, the summary on the left */
  .home { grid-template-columns: 260px minmax(0, 1fr) 300px; grid-template-areas: "extra main side"; }
  .home-extra { margin-top: 14px; }
}

/* Duel cups */
.cup-list { margin-top: 18px; }
.cup-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; }
.cup-head h1 { margin: 0; }
.crumb { margin: 0 0 4px; font-size: .85rem; } .crumb a { color: var(--steel); }
.champion { margin: 0; padding: 8px 14px; border-radius: 12px; border: 1px solid #e8c46a; color: #e8c46a; font-weight: 700; }
.champion a { color: inherit; }
.cup-setup { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 20px; }
.cup-setup h2 { margin: 0 0 12px; font-size: 1.1rem; }
.cup-members { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.cup-members li { display: flex; align-items: center; gap: 10px; }
.cup-members .avatar { width: 30px; height: 30px; font-size: .8rem; }
.cup-members a { color: var(--chalk); font-weight: 800; text-decoration: none; }
.cup-members form { margin: 0 auto 0 0; }
.cup-members .tag { font-size: .72rem; color: var(--signal); }
.cup-section h2 { font-size: 1.05rem; color: var(--signal); margin: 18px 0 8px; }
.cup-tree { display: flex; gap: 22px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; }
.cup-col { display: flex; flex-direction: column; flex: 0 0 210px; }
.cup-col h3 { margin: 0 0 8px; text-align: center; font-size: .82rem; color: var(--steel); }
.cup-games { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.cup-match { border: 1px solid var(--edge); border-radius: 12px; background: var(--panel); padding: 6px; display: grid; gap: 4px; }
.cup-match.mine { border-color: var(--signal); }
.cup-match.bye { opacity: .55; }
.cup-side { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; min-height: 34px; }
.cup-side .avatar { width: 24px; height: 24px; font-size: .7rem; }
.cup-side .lat { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cup-side b { margin-inline-start: auto; }
.cup-side.won { background: color-mix(in srgb, var(--signal) 14%, transparent); }
.cup-side.lost { opacity: .5; }
.cup-side .muted { color: var(--steel); font-size: .78rem; }
.cup-match .when { margin: 0; text-align: center; font-size: .74rem; color: var(--signal); }

/* Notifications drop-down */
.bell-wrap { position: relative; display: inline-flex; }
.bell-panel { position: absolute; top: calc(100% + 8px); inset-inline-end: -8px; z-index: 50; width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 520px); overflow-y: auto; background: var(--pitch); border: 1px solid var(--edge); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55); padding: 10px; text-align: start; }
.bell-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; }
.bell-panel-head a { color: var(--signal); font-size: .85rem; text-decoration: none; }
.bell-panel .notes li { padding: 10px 12px; font-size: .9rem; }
.bell-panel .notes p { margin: 0; }
.bell-panel .empty { margin: 8px 4px; }
.bell-loading { color: var(--steel); margin: 8px; }
@media (max-width: 1023px) { .bell-panel { position: fixed; top: 60px; inset-inline: 12px; width: auto; } }
.notes p a { color: var(--signal); font-weight: 700; text-decoration: none; white-space: nowrap; }
.cup-match { position: relative; }
.cup-no { position: absolute; top: -8px; inset-inline-start: 8px; padding: 0 6px; border-radius: 6px; background: var(--pitch); color: var(--steel); font-size: .68rem; }
@media (max-width: 440px) {
  .top .mark span { white-space: nowrap; }
  .top .me > span:not(.bell-wrap) { display: none; }   /* points are on the page itself */
  .top .me-link b { display: none; }
}
.prestige-head { justify-items: center; text-align: center; gap: 6px; padding: 4px 0 6px; border-bottom: 1px solid var(--edge); }
.prestige-head img { width: 170px; max-width: 80%; height: auto; display: block; filter: drop-shadow(0 4px 14px rgba(190, 255, 20, .12)); }
.partner-slot { display: grid; gap: 6px; justify-items: center; text-align: center; min-height: 190px; align-content: center;
  border: 2px dashed var(--edge); border-radius: 16px; padding: 16px 12px; color: var(--chalk); text-decoration: none;
  background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--signal) 4%, transparent) 12px 24px); }
.partner-slot:hover, .partner-slot:focus-visible { border-color: var(--signal); }
.partner-slot b { font-size: 1.15rem; }
.partner-slot > span:not(.kg-tag):not(.kg-cta) { color: var(--steel); font-size: .82rem; }

/* Points + match of the week between the bracket banner and the matches (2026-11-01) */
.quick-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0 4px; }
.quick-card { padding: 12px 16px; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; }
.quick-card .panel-title { margin: 0; font-size: 1rem; }
.quick-card .side-points, .quick-card .x2-chip { grid-row: 1 / span 2; grid-column: 2; }
.quick-card > :not(.panel-title):not(.side-points) { grid-column: 1; }
.quick-card .side-points { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; }
.quick-card .side-points b { font-size: 2rem; color: var(--signal); line-height: 1.1; }
.quick-card .side-points span { color: var(--steel); }
.quick-card .side-match { margin: 0 0 4px; font-size: 1.05rem; }
.quick-card .hint { margin: 0; }
/* Prestige: one game at a time */
.prestige-head img { width: 130px; }
.prestige-one li a { padding: 10px 8px; text-align: center; justify-items: center; }
.prestige-one li a b { font-size: 1rem; }
.prestige-one li { animation: pfade .5s ease; }
@keyframes pfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .prestige-one li { animation: none; } }
.b-actions { display: flex; gap: 8px; flex: none; }
.b-actions .button { white-space: nowrap; }
.b-actions .button.armed { border-color: var(--siren); color: var(--siren); }
/* Official CDL standings (mock 2026-11-01) */
.mock-pill { font-size: .7rem; padding: 2px 8px; border-radius: 999px; border: 1px dashed #e8c46a; color: #e8c46a; white-space: nowrap; }
.cdl-box-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cdl-box-head .panel-title { margin: 0; }
.cdl-mini { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 2px; }
.cdl-mini li { display: grid; grid-template-columns: 20px 22px 1fr auto 36px; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; font-size: .88rem; }
.cdl-mini li:nth-child(odd) { background: color-mix(in srgb, var(--chalk) 3%, transparent); }
.cdl-mini .rank { color: var(--steel); text-align: center; }
.cdl-mini img { width: 22px; height: 22px; object-fit: contain; }
.cdl-mini .wl { color: var(--steel); font-size: .8rem; }
.cdl-mini b { text-align: end; }
.cdl-mini li.q .rank { color: var(--signal); }
.cdl-mini li.cut, .cdl-table tr.cut { border-bottom: 1px dashed var(--signal); border-radius: 0; }
.standings-page { max-width: 900px; margin: 0 auto; }
.standings-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin: 20px 0 14px; }
.standings-head h1 { margin: 0 0 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: 16px; background: var(--panel); }
.cdl-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cdl-table th, .cdl-table td { padding: 10px 12px; text-align: center; white-space: nowrap; }
.cdl-table thead th { font-size: .78rem; color: var(--steel); font-weight: 600; border-bottom: 1px solid var(--edge); }
.cdl-table tbody th { text-align: start; font-weight: 800; }
.cdl-table tbody tr { border-bottom: 1px solid color-mix(in srgb, var(--edge) 60%, transparent); box-shadow: inset -3px 0 0 transparent; }
.cdl-table tbody tr.q { box-shadow: inset -3px 0 0 var(--t); }
.cdl-table tbody tr:hover { background: color-mix(in srgb, var(--t) 8%, transparent); }
.cdl-table .team { display: inline-flex; align-items: center; gap: 10px; }
.cdl-table .team img { width: 34px; height: 34px; object-fit: contain; }
.cdl-table .rank { color: var(--steel); width: 40px; }
.cdl-table .pts { color: var(--signal); font-size: 1.1rem; }
.cdl-table .up { color: var(--signal); } .cdl-table .down { color: var(--siren); }
.legend { color: var(--steel); font-size: .82rem; display: flex; align-items: center; gap: 8px; }
.legend .dot { width: 18px; border-top: 2px dashed var(--signal); display: inline-block; }
.cdl-box-sub { margin: 2px 0 0; font-size: .78rem; }

/* Phones: sponsor, Prestige and the open slot sit between match days, each on its own (2026-11-01) */
.m-extra { margin: 6px 0 22px; }
.m-extra .kg-card { max-width: 420px; margin-inline: auto; }
.m-extra .kg-card img { max-width: 300px; margin-inline: auto; }
.m-extra .prestige, .m-extra .partner-slot { max-width: 420px; margin-inline: auto; }
@media (max-width: 1023px) { .home-extra { display: none; } }
@media (min-width: 1024px) { .m-extra { display: none; } }
/* Official standings: a tab of the leaderboard on every screen; the home box links to it */
.cdl-table .short { display: none; }
@media (max-width: 600px) {
  .cdl-table { min-width: 0; }
  .cdl-table .full, .cdl-table .wide-only { display: none; }
  .cdl-table .short { display: inline; }
  .cdl-table th, .cdl-table td { padding: 10px 8px; }
  .cdl-table .team img { width: 28px; height: 28px; }
}
/* League rank under each team on match cards */
.lg-rank { display: block; margin-top: 2px; font: 700 .7rem "Saira", sans-serif; color: var(--steel); letter-spacing: .02em; direction: ltr; }
.pick.on .lg-rank, .pick.choose:has(input:checked) .lg-rank { color: var(--chalk); opacity: .85; }
.streak { display: inline-flex; align-items: center; gap: 2px; padding: 0 7px; border-radius: 999px; font-size: .78rem;
  background: color-mix(in srgb, #ff8a3d 18%, transparent); color: #ffb37a; white-space: nowrap; }
.streak b { font-size: .8rem; }
.cup-format { margin-top: 4px; } .format-hint { margin: -6px 0 14px; }

/* Language switch (2026-11-01) */
.top .lang-switch { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--edge);
  color: var(--steel); font: 800 .8rem "Saira", "Changa", sans-serif; text-decoration: none; margin-inline-start: auto; }
.top .lang-switch:hover { color: var(--chalk); border-color: var(--signal); }
@media (min-width: 1024px) { .top .lang-switch { margin-inline-start: 0; } }
.format-hint { margin: 8px 0 14px; }

/* ---------- Background: speed streaks (Abdullah 2026-11-01, moving since 2026-11-02): slanted light
   bands like the CDL Arabic bolt drift sideways and a soft light sweeps across now and then. Gradients
   only, on fixed layers moved with transform (GPU), so scrolling and the page itself never repaint. */
body { background: #020a06; position: relative; isolation: isolate; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 50% at 85% 8%, rgba(44, 242, 154, .15), transparent 70%),
    radial-gradient(45% 45% at 10% 95%, rgba(44, 242, 154, .10), transparent 70%),
    linear-gradient(180deg, #04170f 0%, #020a06 100%);
  animation: bg-breathe 14s ease-in-out infinite alternate; }
/* one tile = one screen width, two tiles side by side; sliding by one tile loops without a seam */
body::after { content: ""; position: fixed; top: 0; left: 0; width: 200vw; height: 100%; z-index: -1; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 30%, rgba(200, 255, 220, .06) 33%, transparent 36%) 0 0 / 200vw 100% no-repeat,
    linear-gradient(115deg, transparent 0 17%, rgba(44, 242, 154, .13) 17% 18.2%, transparent 18.2% 23%, rgba(44, 242, 154, .08) 23% 23.7%, transparent 23.7% 26%, rgba(140, 255, 60, .05) 26% 26.4%, transparent 26.4% 71%, rgba(44, 242, 154, .09) 71% 72.4%, transparent 72.4% 77%, rgba(140, 255, 60, .06) 77% 77.6%, transparent 77.6%) 0 0 / 100vw 100% repeat-x;
  will-change: transform; animation: bg-drift 60s linear infinite; }
@keyframes bg-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-100vw, 0, 0); } }
@keyframes bg-breathe { from { opacity: .75; } to { opacity: 1; } }
/* Runs for everyone, also with reduced motion (Abdullah 2026-11-02): slow and soft, no flashing. */

/* Event group standings (2026-11-02) */
.grp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.grp { border: 1px solid var(--edge); border-radius: 16px; background: var(--panel); padding: 12px; }
.grp h3 { margin: 0 0 8px; font-size: .95rem; display: flex; align-items: center; gap: 6px; }
.grp-done { margin-inline-start: auto; font-size: .7rem; color: var(--signal); font-weight: 600; }
.grp table { width: 100%; border-collapse: collapse; }
.grp th, .grp td { padding: 7px 6px; text-align: center; white-space: nowrap; font-size: .9rem; }
.grp thead th { font-size: .72rem; color: var(--steel); font-weight: 600; border-bottom: 1px solid var(--edge); }
.grp tbody th { text-align: start; }
.grp tbody tr { border-bottom: 1px solid color-mix(in srgb, var(--edge) 60%, transparent); box-shadow: inset -3px 0 0 transparent; }
.grp tbody tr:last-child { border-bottom: 0; }
.grp tbody tr.q { box-shadow: inset -3px 0 0 var(--t); }
[dir="ltr"] .grp tbody tr.q { box-shadow: inset 3px 0 0 var(--t); }
.grp tr.out { opacity: .5; }
.grp .rank { color: var(--steel); width: 22px; }
.grp .team { display: inline-flex; align-items: center; gap: 8px; }
.grp .team img { width: 24px; height: 24px; object-fit: contain; }
.grp-q { color: var(--signal); font-weight: 800; }
.grp .up { color: var(--signal); } .grp .down { color: var(--siren); }
.grp.mini { border: 0; background: none; padding: 0; margin: 10px 0 4px; }
.grp.mini h3 { font-size: .82rem; color: var(--steel); margin-bottom: 2px; }
.grp.mini th, .grp.mini td { padding: 4px; font-size: .84rem; }
.grp.mini .team img { width: 20px; height: 20px; }
/* Soft email verification banner */
.confirm-banner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; margin: 0;
  padding: 8px 14px; background: color-mix(in srgb, var(--signal) 10%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--signal) 35%, transparent);
  font-size: .88rem; text-align: center; }
.confirm-banner .link { color: var(--signal); }

/* Headings in the Thmanyah font (trial 2026-11-03). Its licence forbids hosting the font files, so
   none are served: a device that has the font installed shows it, every other one keeps Changa.
   Try it by installing the font from Thmanyah's official page on your own computer. */
h1, h2, h3, .panel-title { font-family: "Thmanyah Sans", "thmanyah sans", "Thmanyah", "Changa", system-ui, sans-serif; }
