/* FTA hub (Ranked, CWL, War, Scout). Self-contained; CSP style-src 'self'. */
@font-face { font-family: "Lilita One"; font-weight: 400; font-display: swap; src: url("/fonts/lilita-one-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400 600; font-display: swap; src: url("/fonts/source-sans-3-latin.woff2") format("woff2"); }
:root {
  --bg: #0a0a0c; --card: #141317; --card2: #1b1a20; --line: #2a2830; --text: #f2efe9; --mute: #a9a3ad; --dim: #77717c;
  --ember: #ff6a1a; --flame: #ff9a3c; --gold: #ffc533; --win: #3ddc84; --loss: #ff5c5c; --tie: #c9b8ff; --blue: #5aa9ff;
  --r: 16px; --title: "Lilita One", "Source Sans 3", system-ui, sans-serif; --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.hb { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 var(--body);
  background-image: radial-gradient(1200px 420px at 50% -120px, rgba(255,106,26,.22), transparent 70%); background-repeat: no-repeat; min-height: 100vh; }
a { color: var(--flame); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hb-skip { position: absolute; left: -999px; } .hb-skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 6px 10px; border-radius: 8px; z-index: 9; }

/* header + tabs */
.hb-top { position: sticky; top: 0; z-index: 5; background: rgba(10,10,12,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hb-top__in, .hb-tabs ul, .hb-main, .hb-foot { max-width: 60rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.hb-top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 6px; }
.hb-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.hb-brand img { width: 40px; height: 40px; border-radius: 10px; }
.hb-brand b { display: block; font: 22px/1 var(--title); letter-spacing: .3px; }
.hb-brand small { display: block; color: var(--dim); font-size: 12px; margin-top: 3px; }
.hb-discord { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: #5865f2; color: #fff; font-weight: 600; text-decoration: none; font-size: 15px; }
.hb-discord:hover { filter: brightness(1.1); }
.hb-tabs ul { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding-top: 4px; padding-bottom: 10px; margin-top: 0; margin-bottom: 0; }
.hb-tabs a { display: block; text-align: center; padding: 9px 0; border-radius: 12px; color: var(--mute); text-decoration: none; font: 17px/1 var(--title); letter-spacing: .4px; background: var(--card); border: 1px solid var(--line); }
.hb-tabs a[aria-current="page"] { color: #1a0d04; background: linear-gradient(180deg, var(--gold), var(--ember)); border-color: transparent; }
.hb-tabs a:hover:not([aria-current]) { color: var(--text); border-color: #3a3640; }

.hb-main { padding-top: 22px; padding-bottom: 32px; }
.hb-loading { color: var(--mute); }
.hb-foot { color: var(--dim); font-size: 13px; padding-bottom: 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hb-foot p { margin: 0; }

/* page heading */
.pg-h { margin: 0 0 18px; }
.pg-h h1 { font: 34px/1.05 var(--title); margin: 0; letter-spacing: .3px; }
.pg-h p { margin: 6px 0 0; color: var(--mute); }
.pg-h .live { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,106,26,.16); color: var(--flame); margin-left: 6px; vertical-align: 3px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 22px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 12px; min-width: 0; }
.tile b { display: block; font: 34px/1 var(--title); color: var(--gold); }
.tile span { display: block; color: var(--mute); font-size: 14px; margin-top: 6px; line-height: 1.25; }
.tile.good b { color: var(--win); } .tile.bad b { color: var(--loss); }

/* sections */
.sec { margin: 0 0 26px; }
.sec > h2 { font: 24px/1.1 var(--title); margin: 0 0 4px; letter-spacing: .3px; }
.sec > .sub { color: var(--mute); margin: 0 0 12px; font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.note { color: var(--dim); font-size: 13.5px; margin: 10px 2px 0; }
.empty { background: var(--card); border: 1px dashed #3a3640; border-radius: var(--r); padding: 22px 18px; text-align: center; color: var(--mute); }
.empty b { display: block; color: var(--text); font: 22px/1.1 var(--title); margin-bottom: 6px; }

/* ranked tiers */
.tier { margin-bottom: 14px; }
.tier__h { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 16px; background: var(--card2); border-bottom: 1px solid var(--line); }
.tier__h h3 { margin: 0; font: 19px/1 var(--title); color: var(--flame); letter-spacing: .3px; }
.tier__h span { color: var(--dim); font-size: 13px; }
.row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.tier .row:first-of-type { border-top: 0; }
.pos { text-align: center; }
.pos b { display: block; font: 26px/1 var(--title); }
.pos small { color: var(--dim); font-size: 12px; }
.pos.p1 b { color: var(--gold); } .pos.p10 b { color: var(--flame); }
.who { min-width: 0; }
.who .n { font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.who .m { color: var(--mute); font-size: 13.5px; margin-top: 2px; }
.pts { text-align: right; }
.pts b { display: block; font: 24px/1 var(--title); }
.pts small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 3px; white-space: nowrap; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; background: #2a2830; color: var(--mute); }
.tag.alt { background: rgba(90,169,255,.15); color: var(--blue); }
.tag.lead { background: rgba(255,197,51,.16); color: var(--gold); }
.tag.ret { background: rgba(61,220,132,.14); color: var(--win); }
.bar { height: 6px; background: #26242b; border-radius: 6px; margin-top: 7px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--gold)); border-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.chip small { color: var(--dim); margin-left: 4px; }

/* podium + longevity */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.pod { background: linear-gradient(180deg, rgba(255,106,26,.16), var(--card) 60%); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-align: center; min-width: 0; }
.pod b { display: block; font: 30px/1 var(--title); color: var(--gold); }
.pod .n { display: block; font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod small { display: block; color: var(--mute); font-size: 13px; }
.lrow { grid-template-columns: 40px 1fr auto; }
.lrow .pos b { font-size: 20px; }
details.more summary { cursor: pointer; list-style: none; padding: 12px 16px; color: var(--flame); font-weight: 600; border-top: 1px solid var(--line); }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { color: var(--mute); }

/* rounds strip */
.rounds { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 22px; }
.rd { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; text-align: center; min-width: 0; }
.rd small { display: block; color: var(--dim); font-size: 12px; }
.rd b { display: block; font: 18px/1.1 var(--title); margin: 4px 0 2px; }
.rd span { display: block; color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd.win { border-color: rgba(61,220,132,.55); } .rd.win b { color: var(--win); }
.rd.loss { border-color: rgba(255,92,92,.55); } .rd.loss b { color: var(--loss); }
.rd.live { border-color: var(--ember); } .rd.live b { color: var(--flame); }
.rd.tbd { opacity: .45; }

/* big matchup */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 18px 16px; }
.vs .side { min-width: 0; }
.vs .side:last-child { text-align: right; }
.vs .side .n { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs .side b { display: block; font: 40px/1 var(--title); }
.vs .side small { color: var(--mute); }
.vs .mid { color: var(--dim); font: 16px var(--title); }
.vs .us b { color: var(--gold); }
.vs-meta { padding: 0 16px 14px; color: var(--mute); font-size: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* tables */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th, .t td { padding: 10px 12px; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
.t thead th { border-top: 0; color: var(--dim); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; background: var(--card2); }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.t tr.us td { background: rgba(255,197,51,.07); } .t tr.us td:first-child { color: var(--gold); font-weight: 600; }
.t td .nm { display: inline-block; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.res { font-weight: 700; } .res.win { color: var(--win); } .res.loss, .res.lose { color: var(--loss); } .res.tie { color: var(--tie); }
.dots { display: inline-flex; gap: 4px; }
.dot { width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; background: #26242b; color: var(--mute); }
.dot.s3 { background: rgba(61,220,132,.2); color: var(--win); } .dot.s2 { background: rgba(255,197,51,.18); color: var(--gold); }
.dot.s1, .dot.s0 { background: rgba(255,92,92,.16); color: var(--loss); } .dot.miss { background: var(--loss); color: #200; }
.dot.pend { border: 1px dashed var(--flame); background: transparent; color: var(--flame); } .dot.prep { background: transparent; border: 1px solid #3a3640; }

/* attention list */
.alert { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: center; }
.alert:first-child { border-top: 0; }
.alert b { color: var(--loss); font: 20px/1 var(--title); }
.okbox { padding: 16px; color: var(--win); font-weight: 600; }

/* scout lineup */
.lu { display: grid; grid-template-columns: 1fr 34px 1fr; }
.lu > div { padding: 9px 12px; border-top: 1px solid var(--line); min-width: 0; }
.lu .hd { background: var(--card2); border-top: 0; font: 16px/1.1 var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu .hd.us { color: var(--gold); } .lu .hd.them { color: var(--flame); text-align: right; }
.lu .sl { text-align: center; color: var(--dim); font-size: 13px; padding-left: 0; padding-right: 0; display: grid; place-items: center; }
.lu .p { display: flex; align-items: center; gap: 8px; }
.lu .p.r { flex-direction: row-reverse; text-align: right; }
.lu .p .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.lu .p .f { display: block; color: var(--dim); font-size: 12px; }
.th { flex: none; width: 38px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: #26242b; color: var(--mute); }
.th.t18 { background: rgba(255,106,26,.22); color: var(--flame); } .th.t17 { background: rgba(255,197,51,.16); color: var(--gold); }
.th.up { outline: 2px solid var(--win); } .th.down { outline: 2px solid var(--loss); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; }
.cmp > div { padding: 14px 16px; min-width: 0; }
.cmp > div + div { border-left: 1px solid var(--line); text-align: right; }
.cmp h3 { margin: 0 0 8px; font: 19px/1.1 var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp .us h3 { color: var(--gold); } .cmp .them h3 { color: var(--flame); }
.cmp dl { margin: 0; display: grid; gap: 4px; }
.cmp dt { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.cmp dd { margin: 0 0 6px; font-weight: 600; }
.banner { background: rgba(90,169,255,.12); border: 1px solid rgba(90,169,255,.4); color: #cfe4ff; border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; font-size: 14.5px; }
.btn { display: inline-block; margin-top: 12px; padding: 9px 16px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.needs { text-align: left; margin: 12px auto 0; max-width: 30rem; color: var(--dim); font-size: 14px; }

@media (min-width: 760px) {
  .pg-h h1 { font-size: 44px; }
  .tiles { gap: 14px; } .tile { padding: 18px; } .tile b { font-size: 44px; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .two > .sec { min-width: 0; }
}
@media (max-width: 560px) {
  .rounds { grid-template-columns: repeat(5, 1fr); }
  .tile b { font-size: 28px; } .tile span { font-size: 13px; }
  .pod b { font-size: 24px; } .pod { padding: 12px 8px; }
  .vs .side b { font-size: 34px; }
  .hb-brand small { display: none; }
  .row { grid-template-columns: 46px 1fr auto; gap: 10px; padding: 11px 12px; }
  .t th, .t td { padding: 9px 10px; }
}
.dot.out { background: transparent; color: #4a4650; }
.needs ul { margin: 6px 0 0; padding-left: 18px; } .needs code { color: var(--mute); font-size: 13px; }

/* folded dashboard bits */
.pts .promo { display: block; margin-top: 3px; font-size: 12.5px; white-space: normal; max-width: 11rem; margin-left: auto; }
.pts .promo.ok { color: var(--win); font-weight: 600; }
.pts .promo.out { color: var(--flame); font-weight: 600; }
.pts .promo.unk { color: var(--dim); font-weight: 600; }
.next-opp { padding: 14px 16px; }
.next-opp__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next-opp__h .n { font-weight: 600; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-opp__m { color: var(--mute); font-size: 14px; margin-top: 6px; line-height: 1.35; }
.trend { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
.trend__c { padding: 12px 10px; text-align: center; border-top: 1px solid var(--line); min-width: 0; }
.trend__c:first-child { border-top: 0; }
.trend__c b { display: block; font: 20px/1 var(--title); color: var(--gold); }
.trend__c small { display: block; color: var(--dim); font-size: 12px; margin-top: 4px; }
.trend__opp { display: block; color: var(--mute); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 560px) {
  .trend { grid-template-columns: repeat(8, 1fr); }
  .trend__c { border-top: 0; border-left: 1px solid var(--line); }
  .trend__c:first-child { border-left: 0; }
}

/* JS-only limit: full HTML remains readable if enhancement fails. */
.top25-hidden { display: none !important; }
.top25-toggle { display: block; margin: 14px auto 24px; cursor: pointer; font: inherit; }

/* CSP-safe widths for the existing point bars. */
.bar .bar-w-4 { width: 4%; }
.bar .bar-w-5 { width: 5%; }
.bar .bar-w-6 { width: 6%; }
.bar .bar-w-7 { width: 7%; }
.bar .bar-w-8 { width: 8%; }
.bar .bar-w-9 { width: 9%; }
.bar .bar-w-10 { width: 10%; }
.bar .bar-w-11 { width: 11%; }
.bar .bar-w-12 { width: 12%; }
.bar .bar-w-13 { width: 13%; }
.bar .bar-w-14 { width: 14%; }
.bar .bar-w-15 { width: 15%; }
.bar .bar-w-16 { width: 16%; }
.bar .bar-w-17 { width: 17%; }
.bar .bar-w-18 { width: 18%; }
.bar .bar-w-19 { width: 19%; }
.bar .bar-w-20 { width: 20%; }
.bar .bar-w-21 { width: 21%; }
.bar .bar-w-22 { width: 22%; }
.bar .bar-w-23 { width: 23%; }
.bar .bar-w-24 { width: 24%; }
.bar .bar-w-25 { width: 25%; }
.bar .bar-w-26 { width: 26%; }
.bar .bar-w-27 { width: 27%; }
.bar .bar-w-28 { width: 28%; }
.bar .bar-w-29 { width: 29%; }
.bar .bar-w-30 { width: 30%; }
.bar .bar-w-31 { width: 31%; }
.bar .bar-w-32 { width: 32%; }
.bar .bar-w-33 { width: 33%; }
.bar .bar-w-34 { width: 34%; }
.bar .bar-w-35 { width: 35%; }
.bar .bar-w-36 { width: 36%; }
.bar .bar-w-37 { width: 37%; }
.bar .bar-w-38 { width: 38%; }
.bar .bar-w-39 { width: 39%; }
.bar .bar-w-40 { width: 40%; }
.bar .bar-w-41 { width: 41%; }
.bar .bar-w-42 { width: 42%; }
.bar .bar-w-43 { width: 43%; }
.bar .bar-w-44 { width: 44%; }
.bar .bar-w-45 { width: 45%; }
.bar .bar-w-46 { width: 46%; }
.bar .bar-w-47 { width: 47%; }
.bar .bar-w-48 { width: 48%; }
.bar .bar-w-49 { width: 49%; }
.bar .bar-w-50 { width: 50%; }
.bar .bar-w-51 { width: 51%; }
.bar .bar-w-52 { width: 52%; }
.bar .bar-w-53 { width: 53%; }
.bar .bar-w-54 { width: 54%; }
.bar .bar-w-55 { width: 55%; }
.bar .bar-w-56 { width: 56%; }
.bar .bar-w-57 { width: 57%; }
.bar .bar-w-58 { width: 58%; }
.bar .bar-w-59 { width: 59%; }
.bar .bar-w-60 { width: 60%; }
.bar .bar-w-61 { width: 61%; }
.bar .bar-w-62 { width: 62%; }
.bar .bar-w-63 { width: 63%; }
.bar .bar-w-64 { width: 64%; }
.bar .bar-w-65 { width: 65%; }
.bar .bar-w-66 { width: 66%; }
.bar .bar-w-67 { width: 67%; }
.bar .bar-w-68 { width: 68%; }
.bar .bar-w-69 { width: 69%; }
.bar .bar-w-70 { width: 70%; }
.bar .bar-w-71 { width: 71%; }
.bar .bar-w-72 { width: 72%; }
.bar .bar-w-73 { width: 73%; }
.bar .bar-w-74 { width: 74%; }
.bar .bar-w-75 { width: 75%; }
.bar .bar-w-76 { width: 76%; }
.bar .bar-w-77 { width: 77%; }
.bar .bar-w-78 { width: 78%; }
.bar .bar-w-79 { width: 79%; }
.bar .bar-w-80 { width: 80%; }
.bar .bar-w-81 { width: 81%; }
.bar .bar-w-82 { width: 82%; }
.bar .bar-w-83 { width: 83%; }
.bar .bar-w-84 { width: 84%; }
.bar .bar-w-85 { width: 85%; }
.bar .bar-w-86 { width: 86%; }
.bar .bar-w-87 { width: 87%; }
.bar .bar-w-88 { width: 88%; }
.bar .bar-w-89 { width: 89%; }
.bar .bar-w-90 { width: 90%; }
.bar .bar-w-91 { width: 91%; }
.bar .bar-w-92 { width: 92%; }
.bar .bar-w-93 { width: 93%; }
.bar .bar-w-94 { width: 94%; }
.bar .bar-w-95 { width: 95%; }
.bar .bar-w-96 { width: 96%; }
.bar .bar-w-97 { width: 97%; }
.bar .bar-w-98 { width: 98%; }
.bar .bar-w-99 { width: 99%; }
.bar .bar-w-100 { width: 100%; }
/* Keep the six-column CWL player table within a phone viewport. */
@media (max-width: 560px) {
  .player-table { table-layout: fixed; }
  .player-table th, .player-table td { padding: 9px 4px; white-space: normal; overflow-wrap: anywhere; }
  .player-table th:first-child { width: 25%; }
  .player-table th:nth-child(2) { width: 8%; }
  .player-table th:nth-child(3) { width: 29%; }
  .player-table td .nm { max-width: 100%; white-space: normal; }
  .player-table .dots { flex-wrap: wrap; gap: 3px; }
  .player-table .dot { width: 21px; height: 21px; }
}
