/* Page styles carried over from the previous design, rebuilt on the new tokens and components. */
@layer components {
/* ============================================================ LEADERBOARDS == */
.lbh-live { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
.lbh-feature { padding: 20px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; background: linear-gradient(160deg, #3a1622 0%, var(--s1) 60%); }
.lbh-feature-top { display: flex; align-items: center; gap: 12px; }
.lbh-feature-top b { display: block; font: 800 1.9rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; font-stretch: 78%; }
.lbh-feature-top small { color: var(--ink-3); font-size: .78rem; }
.lbh-ic { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--s3); color: var(--ink-2); transition: background .2s, color .2s; }
.lbh-ic .i { font-size: 21px; }
.lbh-feature .lbh-ic { background: var(--acc); color: #fff; }
.lbh-go { margin-left: auto; color: var(--ink-4); transition: color .2s, transform .25s var(--ease); }
a:hover > .lbh-go, a:hover .lbh-feature-top .lbh-go { color: #fff; transform: translateX(3px); }
.lbh-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; }
.lbh-pod {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 14px; border-radius: var(--r);
  background: #ffffff08; text-align: center; min-width: 0;
}
.lbh-pod.is-1 { padding-top: 24px; background: linear-gradient(180deg, #e9aa1326, #ffffff05); animation-delay: .1s; }
.lbh-pod.is-3 { animation-delay: .2s; }
.lbh-pod-name { max-width: 100%; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbh-pod-score { font: 700 1.2rem var(--f-display); font-variant-numeric: tabular-nums; font-stretch: 78%; }
.lbh-pod-score small { color: var(--ink-3); font: 600 .7rem var(--f-ui); }
.lbh-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.lbh-mode { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--s1); transition: background .2s; }
.lbh-mode:hover { background: var(--s2); }
.lbh-mode:hover .lbh-ic { background: var(--acc); color: #fff; }
.lbh-mode-name { font: 700 1.1rem var(--f-display); text-transform: uppercase; letter-spacing: .02em; font-stretch: 78%; }
.lbh-archive { overflow: hidden; }
.lbh-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px 18px; background: var(--row); }
.lbh-row:nth-child(even) { background: var(--row-alt); }
.lbh-season { display: flex; flex-direction: column; }
.lbh-season b { font: 800 1.35rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; transition: color .15s; font-stretch: 78%; }
.lbh-season:hover b { color: var(--acc-hi); }
.lbh-season small { color: var(--ink-3); font-size: .72rem; }
.lbh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lbh-chip { height: 28px; }
@media (max-width: 1020px) { .lbh-live { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .lbh-modes { grid-template-columns: minmax(0, 1fr); }
  .lbh-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* =================================================================== MOVERS == */
.mv-page > * + * { margin-top: 22px; }
.mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.mv-card .mv-ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 17px; }
.mv-card .panel-t > .mv-ic { display: grid; }
.mv-card.is-up .mv-ic { color: var(--up); background: var(--up-a12); }
.mv-card.is-down .mv-ic { color: var(--down); background: var(--down-a12); }
.mv-ranks { white-space: nowrap; }
.mv-ranks .i { font-size: 16px; color: var(--ink-4); margin: 0 2px; }
.mv-ranks b { color: var(--ink); }
.mv-move { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-xs); border: 1px solid; font: 700 1rem/1 var(--f-display); font-variant-numeric: tabular-nums; font-stretch: 78%; }
.mv-move.up { color: var(--up); background: var(--up-a12); border-color: #3ddc8455; }
.mv-move.down { color: var(--down); background: var(--down-a12); border-color: #ff526355; }
.mv-sd { display: block; font-size: .72rem; line-height: 1.1; font-weight: 600; }
td .score { font: 700 1.1rem var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; font-stretch: 78%; }
.mv-league { display: flex; align-items: center; gap: 2px; }
.mv-league .i { font-size: 14px; color: var(--ink-4); }
.mv-league b { color: var(--up); font-weight: 700; }
.mv-card.is-down .mv-league b { color: var(--down); }
.mv-datenav { display: flex; align-items: center; gap: 0; border-radius: var(--r-sm); background: #121217e6; border: 1px solid var(--line-3); overflow: hidden; }
.mv-nav-btn { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink-2); transition: background .15s, color .15s; }
.mv-nav-btn:hover { background: var(--acc); color: #fff; }
.mv-nav-btn.is-disabled { opacity: .25; pointer-events: none; }
.mv-date { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; height: 40px; font-weight: 700; white-space: nowrap; border-inline: 1px solid var(--line-2); }
.mv-date .i { font-size: 18px; color: var(--ink-3); }
.kpi.tone-up .kpi-v { color: var(--up); }
.kpi.tone-down .kpi-v { color: var(--down); }
#moversRoot.is-loading .mv-page { opacity: .5; transition: opacity .2s; }
@media (max-width: 1020px) { .mv-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .mv-datenav { width: 100%; justify-content: space-between; } }

/* ==================================================================== CLUBS == */
.club.club-big { height: 26px; line-height: 26px; padding: 0 10px; font-size: .9rem; }
.club-note { margin-top: 14px; max-width: 90ch; }
.bar-cell .bar-track { width: 90px; }

/* ===================================================================== CLUB == */
.club-banner::after {
  background:
    radial-gradient(460px 240px at 80px 60%, hsl(var(--club-h) 80% 55% / .2), transparent 70%),
    linear-gradient(90deg, var(--bg) 0%, #0e0e12b0 50%, #0e0e1266 100%);
}
.club-crest {
  position: relative; width: 104px; height: 116px; flex-shrink: 0; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 14%, 100% 64%, 50% 100%, 0 64%, 0 14%);
  background: linear-gradient(160deg, hsl(var(--club-h) 70% 52%), hsl(calc(var(--club-h) + 40) 70% 30%));
  animation: emblemIn .7s var(--ease) both;
}
.club-crest::after { content: ''; position: absolute; inset: 3px; clip-path: inherit; background: linear-gradient(160deg, #ffffff22, transparent 50%); }
.club-crest span { position: relative; z-index: 1; font: 700 1.7rem/1 var(--f-display); letter-spacing: .04em; color: #fff; text-shadow: 0 2px 10px #0006; max-width: 90px; overflow: hidden; text-overflow: ellipsis; font-stretch: 78%; }
.club-page .club-note { margin: 10px 0 20px; }
.member-chip .s-av { width: 28px; height: 28px; font-size: .85rem; background: hsl(var(--club-h, 340) 40% 22%); color: hsl(var(--club-h, 340) 80% 80%); }
.m-name { display: flex; align-items: baseline; min-width: 0; font-weight: 600; color: var(--ink-2); }
.member-chip:hover .pn-name { color: #fff; }
@media (max-width: 720px) { .club-crest { width: 76px; height: 86px; } .club-crest span { font-size: 1.2rem; } }

/* ================================================================== SEASONS == */
.sa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sa-card { display: flex; flex-direction: column; gap: 16px; padding: 20px; overflow: hidden; box-shadow: inset 4px 0 0 var(--tier, var(--s4)); }
.sa-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, color-mix(in srgb, var(--tier, #ffffff) 14%, transparent), transparent 60%); }
.sa-card.is-live { grid-column: span 2; box-shadow: inset 4px 0 0 var(--acc); }
.sa-top { display: flex; align-items: center; justify-content: space-between; position: relative; }
.sa-name { font: 800 2rem/.95 var(--f-display); text-transform: uppercase; letter-spacing: .01em; font-stretch: 78%; }
.sa-card.is-live .sa-name { font-size: 2.8rem; }
.sa-champ { display: flex; align-items: center; gap: 14px; position: relative; }
.sa-champ-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.sa-champ-n { font-weight: 700; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.sa-card:hover .sa-champ-n { color: var(--acc-hi); }
.sa-champ-s { color: var(--ink-3); font-size: .78rem; font-variant-numeric: tabular-nums; }
.sa-stats { display: flex; gap: 0; margin-top: auto; padding-top: 4px; position: relative; }
.sa-stats span { flex: 1; display: flex; flex-direction: column; color: var(--ink-2); font-size: .8rem; font-weight: 500; }
.sa-stats b { font: 700 1.3rem var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; font-stretch: 78%; }

.season-nav { display: flex; gap: 8px; }
.season-page > * + * { margin-top: 22px; }
.champion-card {
  display: flex; align-items: center; gap: 22px; padding: 22px 24px; overflow: hidden;
  background: linear-gradient(100deg, color-mix(in srgb, var(--tier, #e9aa13) 18%, var(--s1)), var(--s1) 55%);
}
.ch-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ch-name { display: flex; font: 800 2.8rem/.95 var(--f-display); font-stretch: 78%; }
.ch-name .pn-tag { font: 600 .9rem var(--f-ui); align-self: flex-end; margin: 0 0 4px 2px; }
.ch-sub { color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ch-go { margin-left: auto; color: var(--ink-4); transition: color .2s, transform .25s var(--ease); }
.champion-card:hover .ch-go { color: #fff; transform: translateX(3px); }
.season-split { grid-template-columns: minmax(0, 1fr) 380px; }
.mode-card { overflow: hidden; }
.mc-head { display: flex; align-items: center; gap: 8px; padding: 0 18px; height: 46px; background: var(--band); }
.mc-head b { font: 700 1.05rem var(--f-display); text-transform: uppercase; letter-spacing: .03em; font-stretch: 78%; }
.mc-head .meta { margin-left: auto; }
.mc-head .i { font-size: 18px; color: var(--ink-4); transition: color .15s, transform .2s var(--ease); }
.mc-head:hover .i { color: #fff; transform: translateX(2px); }
.mode-card .li { min-height: 44px; }
.mode-card .li-value { font-size: 1rem; }
.mode-card .li-value small { font: 500 .7rem var(--f-ui); }
@media (max-width: 1020px) {
  .sa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .sa-grid { grid-template-columns: minmax(0, 1fr); }
  .sa-card.is-live { grid-column: auto; }
  .champion-card { flex-wrap: wrap; gap: 14px; }
  .ch-name { font-size: 1.8rem; }
}

/* ================================================================== BADGES == */
/* One colour per tier; emblems are images (public/assets/badges). */
.tier-legendary { --bd: var(--gold); --bd-bg: #ffc82e1f; }
.tier-epic { --bd: #c08cff; --bd-bg: #c08cff1f; }
.tier-rare { --bd: #6cb6ff; --bd-bg: #6cb6ff1c; }
.tier-common { --bd: var(--ink-2); --bd-bg: #ffffff0f; }

/* profile head: the best few beside the name, tracker-style */
.pf-nameline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.pf-badges {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 10px;
  background: #0e0e12cc; box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(6px);
}
.pf-badge { position: relative; display: block; width: 40px; height: 40px; padding: 0; border-radius: 7px; transition: transform .18s var(--ease), background .18s; }
.pf-badge img { display: block; width: 40px; height: 40px; filter: drop-shadow(0 2px 4px #000a); }
.pf-badge:hover, .pf-badge:focus-visible { transform: translateY(-2px) scale(1.08); background: #ffffff0d; outline: none; z-index: 2; }
.pf-badge.tier-legendary img { filter: drop-shadow(0 0 6px #ffc82e70) drop-shadow(0 2px 4px #000a); }
.pf-badge-more { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 7px; background: #ffffff0f; color: var(--ink-2); font: 700 1.05rem var(--f-display); transition: background .15s, color .15s; font-stretch: 78%; }
.pf-badge-more:hover { background: #ffffff1f; color: #fff; }

/* badge card (shared by /badges and the profile tab) */
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.bdg {
  position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px 14px 14px;
  border-radius: var(--r-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--bd) 9%, var(--s1)), var(--s1) 55%);
  box-shadow: inset 3px 0 0 var(--bd); transition: transform .2s var(--ease), background .2s;
}
.bdg:hover { transform: translateY(-2px); }
.bdg.is-flash { animation: bdgFlash 1.6s var(--ease) 2; }
@keyframes bdgFlash { 50% { box-shadow: inset 3px 0 0 var(--bd), 0 0 0 2px var(--bd); } }
.bdg-art { position: relative; width: 76px; height: 76px; }
.bdg-art img { display: block; width: 76px; height: 76px; filter: drop-shadow(0 4px 8px #000b); }
.bdg.tier-legendary:not(.is-locked) .bdg-art img { filter: drop-shadow(0 0 10px #ffc82e55) drop-shadow(0 4px 8px #000b); }
.bdg-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bdg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bdg-name { font: 700 1.2rem/1.1 var(--f-display); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); font-stretch: 78%; }
.bdg-tier { flex-shrink: 0; color: var(--bd); font: 700 .7rem var(--f-display); letter-spacing: .12em; text-transform: uppercase; font-stretch: 78%; }
.bdg-desc { color: var(--ink-2); font-size: .82rem; line-height: 1.45; }
.bdg-how { color: var(--ink-4); font-size: .74rem; line-height: 1.4; }
.bdg-rarity { display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding-top: 6px; color: var(--ink-3); font-size: .74rem; }
.bdg-rarity b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bdg-rarity em { font-style: normal; font-weight: 700; color: var(--rc, var(--ink-2)); }
.bdg-bar { height: 4px; border-radius: 4px; background: #ffffff12; overflow: hidden; }
.bdg-bar i { display: block; height: 100%; border-radius: inherit; background: var(--rc, var(--ink-3)); }
.r-mythic { --rc: #ff5ad1; }
.r-ultra-rare { --rc: var(--gold); }
.r-very-rare { --rc: #c08cff; }
.r-rare { --rc: #6cb6ff; }
.r-uncommon { --rc: #3ddc84; }
.r-common { --rc: var(--ink-3); }
.bdg.is-locked { background: var(--s1); box-shadow: inset 3px 0 0 var(--s4); }
.bdg.is-locked .bdg-art img { filter: grayscale(1) brightness(.45) contrast(.9); }
.bdg.is-locked .bdg-name { color: var(--ink-3); }
.bdg.is-locked .bdg-tier { color: var(--ink-4); }
.bdg-lock { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--s3); color: var(--ink-2); font-size: 15px !important; box-shadow: 0 0 0 3px var(--s1); }

/* tier counters */
.bdg-tierchip { display: inline-flex; align-items: baseline; gap: 4px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--bd-bg); color: var(--bd); font-size: .78rem; font-weight: 700; line-height: 26px; }
.bdg-tierchip b { font: 800 1rem var(--f-display); font-stretch: 78%; }
.bdg-tiers { display: flex; flex-wrap: wrap; gap: 6px; }

/* profile: the badge panel (TF.openModal, cls bdg-drawer). Desktop: a drawer
   sliding in from the right. Phones keep the shared bottom sheet. */
@media (min-width: 721px) {
  .tf-modal.bdg-drawer { place-items: stretch end; padding: 0; }
  .tf-modal.bdg-drawer .tf-modal-panel {
    width: min(600px, 100vw); height: 100vh; max-height: 100vh; border-radius: var(--r-lg) 0 0 var(--r-lg);
    animation: drawerIn .34s var(--ease);
  }
  .tf-modal.bdg-drawer .tf-modal-body { flex: 1; }
}
@keyframes drawerIn { from { transform: translateX(100%); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .tf-modal.bdg-drawer .tf-modal-panel { animation: none; } }

/* badge panel: the trophy case */
.bdc-spot {
  position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 20px; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(420px 220px at 66px 50%, color-mix(in srgb, var(--bd) 26%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--bd) 12%, var(--s2)), var(--s2) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bd) 30%, transparent);
  animation: rise .3s var(--ease);
}
.bdc-spot.is-locked { background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); }
.bdc-spot-art img { display: block; width: 132px; height: 132px; filter: drop-shadow(0 8px 18px #000c) drop-shadow(0 0 22px color-mix(in srgb, var(--bd) 45%, transparent)); }
.bdc-spot.is-locked .bdc-spot-art img { filter: grayscale(1) brightness(.5) drop-shadow(0 8px 18px #000c); }
.bdc-spot-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bdc-spot-tags { display: flex; align-items: center; gap: 8px; }
.bdc-status { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--up-a12); color: var(--up); font-size: .75rem; font-weight: 700; }
.bdc-status .i { font-size: 15px; }
.bdc-spot.is-locked .bdc-status { background: #ffffff10; color: var(--ink-3); }
.bdc-tier { color: var(--bd); font: 700 .78rem var(--f-display); letter-spacing: .12em; text-transform: uppercase; font-stretch: 78%; }
.bdc-spot.is-locked .bdc-tier { color: var(--ink-3); }
.bdc-spot-name { font: 800 2rem/1 var(--f-display); text-transform: uppercase; color: var(--ink); font-stretch: 78%; }
.bdc-spot-desc { color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.bdc-spot-how { color: var(--ink-4); font-size: .78rem; }
.bdc-spot .bdg-rarity { margin-top: 4px; padding-top: 0; }

.bdc-progress { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--s2); }
.bdc-ring {
  --p: 0; flex-shrink: 0; width: 76px; height: 76px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--s2) 78%, transparent 80% 100%), conic-gradient(var(--acc) calc(var(--p) * 1%), #ffffff14 0);
}
.bdc-ring b { font: 800 1.5rem/1 var(--f-display); color: var(--ink); font-stretch: 78%; }
.bdc-ring small { color: var(--ink-3); font-size: .7rem; font-weight: 600; }
.bdc-progress-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bdc-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bdc-progress-head b { font: 700 1.05rem var(--f-display); text-transform: uppercase; letter-spacing: .03em; font-stretch: 78%; }
.bdc-progress-head a { display: inline-flex; align-items: center; color: var(--ink-3); font-size: .78rem; font-weight: 600; }
.bdc-progress-head a:hover { color: #fff; }
.bdc-progress-head a .i { font-size: 16px; }
.bdc-filter { display: flex; width: 100%; margin: 16px 0 6px; }
.bdc-filter button { flex: 1 1 0; }
.bdc-filter small { margin-left: 4px; opacity: .65; font-size: .78em; }

.bdc-group { margin-top: 16px; }
.bdc-group-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.bdc-group-head b { font: 700 1rem var(--f-display); letter-spacing: .06em; text-transform: uppercase; font-stretch: 78%; }
.bdc-group-head span { color: var(--ink-3); font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bdc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bdc-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; border-radius: var(--r);
  background: var(--s2); color: var(--ink-2); transition: background .15s, transform .15s var(--ease), box-shadow .15s;
}
.bdc-tile:hover { background: var(--s3); transform: translateY(-2px); }
.bdc-tile.is-on { background: color-mix(in srgb, var(--bd) 16%, var(--s2)); box-shadow: inset 0 0 0 2px var(--bd); color: #fff; }
.bdc-tile img { width: 58px; height: 58px; filter: drop-shadow(0 3px 6px #000a); }
.bdc-tile.is-locked img { filter: grayscale(1) brightness(.42); }
.bdc-tile.is-locked { color: var(--ink-4); }
.bdc-tile.is-locked.is-on { box-shadow: inset 0 0 0 2px var(--ink-3); background: var(--s3); color: var(--ink-2); }
.bdc-tile-name { font-size: .7rem; font-weight: 600; line-height: 1.2; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bdc-lock { position: absolute; top: 44px; left: 50%; margin-left: 14px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--s4); color: var(--ink-2); font-size: 12px !important; }
.bdc-count { position: absolute; top: 6px; right: 6px; padding: 0 5px; border-radius: 8px; background: var(--bd); color: #111; font: 800 .7rem/16px var(--f-display); font-stretch: 78%; }

@media (max-width: 720px) {
  .bdc-spot { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .bdc-spot-art img { width: 88px; height: 88px; }
  .bdc-spot-name { font-size: 1.5rem; }
  .bdc-tiles { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .bdc-tile img { width: 50px; height: 50px; }
  .bdc-lock { top: 38px; margin-left: 12px; }
}

/* /badges page */
.bdg-page > * + * { margin-top: 22px; }
.bdg-toolbar { display: flex; align-items: center; gap: 12px; padding: 12px; }
.bdg-toolbar .lfg-modes { flex: 1; min-width: 0; }
.bdg-n { margin-left: 6px; opacity: .6; font-size: .8em; }
.bdg-sort { width: 190px; }
.bdg-group + .bdg-group { margin-top: 28px; }
.bdg-group .sec-head { margin-top: 0; }


@media (max-width: 900px) {
  .bdg-toolbar { flex-direction: column; align-items: stretch; }
  .bdg-toolbar .lfg-modes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .bdg-sort { width: auto; }
}
@media (max-width: 720px) {
      .bdg-grid { grid-template-columns: minmax(0, 1fr); }
  .bdg { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .bdg-art, .bdg-art img { width: 60px; height: 60px; }
  .pf-badge, .pf-badge img { width: 34px; height: 34px; }
  .pf-badge-more { min-width: 34px; height: 34px; }
}

/* ============================================================= HALL OF FAME == */
.hof-page > * + * { margin-top: 26px; }
.hof-intro { margin-bottom: 16px; }
.hof-intro p { margin-top: 6px; max-width: 80ch; color: var(--ink-2); font-size: .9rem; line-height: 1.55; }

/* podium: #1 in the middle and taller on wide screens, in order on phones */
.hof-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin-bottom: 16px; }
.hof-pod {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 18px 18px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tier, #e9aa13) 20%, var(--s1)), var(--s1) 70%);
  box-shadow: inset 0 3px 0 var(--tier, var(--ink-4));
}
.hof-pod.is-1 { order: 2; padding-top: 30px; box-shadow: inset 0 3px 0 var(--gold); }
.hof-pod.is-2 { order: 1; }
.hof-pod.is-3 { order: 3; }
.hof-pod > .pos { position: absolute; top: 12px; left: 12px; }
.hof-pod-name { display: flex; max-width: 100%; justify-content: center; font: 800 1.7rem/1 var(--f-display); font-stretch: 78%; }
.hof-pod.is-1 .hof-pod-name { font-size: 2.2rem; }
.hof-pod-name .pn-tag { font: 600 .8rem var(--f-ui); align-self: flex-end; margin: 0 0 3px 2px; }
.hof-pod-sub { color: var(--ink-3); font-size: .78rem; }
.hof-pod-sub b { color: var(--ink-2); }
.hof-pod-big { display: flex; flex-direction: column; align-items: center; margin-top: 2px; }
.hof-pod-big b { font: 800 2rem/1 var(--f-display); font-variant-numeric: tabular-nums; font-stretch: 78%; }
.hof-pod.is-1 .hof-pod-big b { font-size: 2.5rem; color: var(--gold); }
.hof-pod-big small { color: var(--ink-3); font: 600 .7rem var(--f-ui); letter-spacing: .06em; text-transform: uppercase; }
.hof-pod-club { position: absolute; top: 12px; right: 12px; }

/* table */
.hof-table-card .panel-h { flex-wrap: wrap; }
.hof-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hof-name .club { height: 18px; line-height: 18px; font-size: .72rem; padding: 0 7px; }
.hof-table .pc-sub b { color: var(--ink-2); }
.hof-table td.score small { font-size: .8rem; color: var(--ink-3); }
.hof-noicon { width: 32px; height: 32px; flex-shrink: 0; }
.hof-bd { width: 26px; height: 26px; display: inline-grid; place-items: center; flex-shrink: 0; color: var(--bd); transition: transform .15s var(--ease); }
.hof-bd img { display: block; width: 26px; height: 26px; filter: drop-shadow(0 1px 2px #0009); }
.hof-bd:hover { transform: scale(1.12); }
.hof-name { gap: 6px; }
.hof-bd[data-tip]::after { white-space: nowrap; }
.hof-best { white-space: nowrap; }
.hof-rk { font: 700 1.05rem var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink); font-stretch: 78%; }
.hof-rk.is-1 { color: var(--gold); }
.hof-rk.is-2 { color: #d9dee6; }
.hof-rk.is-3 { color: #e39a5f; }
.hof-table td.score .hof-rk { font-size: 1.3rem; }
.hof-in { margin-left: 6px; color: var(--ink-3); font: 700 .8rem var(--f-display); letter-spacing: .05em; font-stretch: 78%; }

/* career strip: one cell per Ranked season */
.hof-strip { display: flex; gap: 3px; }
.hof-strip i, .hof-legend i { display: block; width: 12px; height: 18px; border-radius: 2px; background: #ffffff0f; transform: skewX(-12deg); }
.hof-strip i.is-t10, .hof-legend i.is-t10 { background: var(--gold); }
.hof-strip i.is-t100, .hof-legend i.is-t100 { background: var(--acc); }
.hof-strip i.is-t1000, .hof-legend i.is-t1000 { background: color-mix(in srgb, var(--acc) 45%, var(--s3)); }
.hof-strip i.is-ranked, .hof-legend i.is-ranked { background: var(--s4); }
.hof-strip i[data-tip]::after { bottom: calc(100% + 8px); }
.hof-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-3); font-size: .75rem; font-weight: 600; }
.hof-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hof-legend i { width: 9px; height: 12px; }

/* method */
.hof-method-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: start; }
.hof-method-body p { color: var(--ink-2); font-size: .88rem; line-height: 1.6; }
.hof-method-body p + p { margin-top: 10px; }
.hof-method-body p b { color: var(--ink); }
.hof-method-body .hof-note { color: var(--ink-3); font-size: .8rem; }
.hof-points { border-radius: var(--r); overflow: hidden; }
.hof-points td { height: 38px; }

@media (max-width: 1020px) {
  .hof-method-body { grid-template-columns: minmax(0, 1fr); }
  .hof-points { max-width: 320px; }
}
@media (max-width: 720px) {
  .hof-podium { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hof-pod, .hof-pod.is-1 { order: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 2px 14px; padding: 14px 16px; text-align: left; }
  .hof-pod > .pos { position: static; grid-row: 1 / 3; }
  .hof-pod .emblem { display: none; }
  .hof-pod-name, .hof-pod.is-1 .hof-pod-name { justify-content: flex-start; font-size: 1.4rem; }
  .hof-pod-sub { grid-column: 2; grid-row: 2; }
  .hof-pod-big { grid-column: 3; grid-row: 1 / 3; align-items: flex-end; }
  .hof-pod-big b, .hof-pod.is-1 .hof-pod-big b { font-size: 1.6rem; }
  .hof-pod-big small { max-width: 10ch; text-align: right; }
  .hof-pod-club { display: none; }
  .hof-legend { display: none; }
  .hof-table .pc-sub { white-space: normal; }
}

/* ====================================================================== LFG == */
.lfg-h-sub { align-self: flex-end; margin-bottom: 6px; color: var(--ink-3); font: 700 1rem var(--f-display); letter-spacing: .12em; text-transform: uppercase; font-stretch: 78%; }
.lfg-banner .phead-sub b { color: var(--ink); }
.lfg-page > * + * { margin-top: 20px; }
.lfg-kpis .kpi-l > .i { display: inline-block; font-size: 16px; color: var(--acc-hi); }
.lfg-split { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
.lfg-main > * + * { margin-top: 14px; }

/* toolbar: mode pills, one row of dropdowns + Mic + sort, active chips */
.lfg-toolbar { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.lfg-modes-wrap { position: relative; }
.lfg-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.lfg-mode {
  flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--s2); color: var(--ink-2);
  font: 600 12.5px var(--f-ui); letter-spacing: .01em; white-space: nowrap; transition: background .15s, color .15s; }
.lfg-mode:hover { background: var(--s3); color: #fff; }
.lfg-mode[aria-pressed="true"] { background: var(--acc); color: #fff; }
.lfg-row { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.lfg-drops { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 8px; }
.lfg-f { min-width: 0; }
.lfg-f .sel-btn, .lfg-sort .sel-btn { height: 38px; font-size: .84rem; }
.lfg-f.is-set .sel-btn { border-color: var(--acc); background: var(--acc-a08); color: #fff; }
.lfg-sort { flex: 0 0 auto; width: 170px; }
.lfg-sort .sel-btn { height: 34px; background: transparent; border-color: transparent; color: var(--ink-2); font-size: .8rem; }
.lfg-sort .sel-btn:hover { border-color: var(--line-3); }
.lfg-mic {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 38px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-3); background: #121217; color: var(--ink-3); font-size: .84rem; font-weight: 600; white-space: nowrap; transition: border-color .15s, background .15s, color .15s;
}
.lfg-mic .i { font-size: 17px; }
.lfg-mic:hover { border-color: #ffffff40; color: var(--ink); }
.lfg-mic.is-on { border-color: var(--up); background: var(--up-a12); color: var(--up); }
.lfg-mic-wide { width: 100%; height: 40px; }
.lfg-sheet-btn { display: none; height: 38px; gap: 6px; }
.lfg-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: #fff; font-size: .7rem; font-weight: 700; }
.lfg-badge[hidden] { display: none; }
.lfg-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lfg-active:empty { display: none; }
.lfg-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 6px 0 11px; border-radius: 14px; background: var(--acc-a16); color: #fff; font-size: .8rem; font-weight: 600; transition: background .15s; }
.lfg-chip small { color: var(--acc-hi); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.lfg-chip .i { font-size: 15px; color: var(--acc-hi); }
.lfg-chip:hover { background: var(--acc-a30); }
.lfg-clear { color: var(--ink-3); font-size: .8rem; font-weight: 600; padding: 0 6px; }
.lfg-clear:hover { color: #fff; text-decoration: underline; }
.lfg-sheet { display: flex; flex-direction: column; gap: 14px; }
.lfg-sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lfg-sheet .lfg-f.is-set .sel-btn { border-color: var(--line-3); background: #121217; }
@media (max-width: 900px) {
  .lfg-drops { display: none; }
  .lfg-sheet-btn { display: inline-flex; flex: 1; justify-content: center; }
  .lfg-modes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); }
  .lfg-modes::-webkit-scrollbar { display: none; }
}

.lfg-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-3); font-size: .82rem; padding: 0 0 0 4px; margin-top: 10px !important; }
.lfg-list-head b { color: var(--ink); }
.lfg-list { display: flex; flex-direction: column; gap: 14px; }
.lfg-more:empty { display: none; }

/* card: the player on the left, the listing on the right */
.lfg-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); overflow: hidden; }
.lfg-player {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 14px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tier, var(--s3)) 22%, var(--s2)), var(--s1) 85%);
  box-shadow: inset 0 3px 0 var(--tier, var(--s4)); transition: background .2s;
}
.lfg-player:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--tier, var(--s3)) 30%, var(--s2)), var(--s2) 85%); }
.lfg-player .emblem { margin-bottom: 4px; }
.lfg-noemb { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 50%; background: var(--s3); color: var(--ink-3); }
.lfg-noemb .i { font-size: 30px; }
.lfg-name { display: flex; max-width: 100%; justify-content: center; font: 800 1.4rem/1.05 var(--f-display); font-stretch: 78%; }
.lfg-name .pn-tag { font: 600 .74rem var(--f-ui); align-self: flex-end; margin: 0 0 2px 2px; }
.lfg-player:hover .pn-name { color: var(--acc-hi); }
.lfg-league { color: var(--tier, var(--ink)); font: 700 .95rem var(--f-display); letter-spacing: .05em; text-transform: uppercase; font-stretch: 78%; }
.lfg-rs { color: var(--ink-3); font-size: .8rem; }
.lfg-rs b { color: var(--ink); font: 700 1.15rem var(--f-display); font-variant-numeric: tabular-nums; font-stretch: 78%; }
.lfg-pos { color: var(--ink-3); font-size: .72rem; }
.lfg-unranked { color: var(--ink-3); font-size: .78rem; font-style: italic; }
.lfg-player-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.lfg-player-tags:empty { display: none; }
.lfg-hof { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: var(--r-xs); background: var(--gold-a12); color: var(--gold); font: 700 .85rem/22px var(--f-display); letter-spacing: .04em; font-stretch: 78%; }
.lfg-hof .i { font-size: 14px; }

.lfg-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 18px; }
.lfg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lfg-kind { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: var(--r-xs); background: var(--acc-a16); color: var(--acc-hi); font: 700 .9rem var(--f-display); letter-spacing: .05em; text-transform: uppercase; font-stretch: 78%; }
.lfg-kind .i { font-size: 17px; }
.kind-team .lfg-kind { background: #4aa8ff24; color: #8cc8ff; }
.kind-club .lfg-kind { background: var(--gold-a12); color: var(--gold); }
.lfg-time { color: var(--ink-3); font-size: .78rem; white-space: nowrap; }
.lfg-msg { color: var(--ink); font-size: .95rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.lfg-wants { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; border-radius: var(--r); background: var(--s2); }
.lfg-wants-label { color: var(--ink-3); font: 700 .78rem var(--f-display); letter-spacing: .08em; text-transform: uppercase; margin-right: 2px; font-stretch: 78%; }
.lfg-want { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: .85rem; }
.lfg-want + .lfg-want::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); margin-right: 3px; }
.lfg-want b { color: var(--ink); }
.lfg-class { display: inline-block; padding: 1px 7px; border-radius: var(--r-xs); font-size: .75rem; font-weight: 700; margin-left: 3px; }
.lfg-class.is-light { background: #4aa8ff24; color: #8cc8ff; }
.lfg-class.is-medium { background: #3ddc841f; color: var(--up); }
.lfg-class.is-heavy { background: #ff7a3d24; color: #ffa070; }
.lfg-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.lfg-facts dt { color: var(--ink-4); font: 700 .72rem var(--f-display); letter-spacing: .08em; text-transform: uppercase; font-stretch: 78%; }
.lfg-facts dd { display: flex; align-items: center; gap: 5px; margin: 2px 0 0; color: var(--ink-2); font-size: .84rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lfg-facts dd .i { font-size: 15px; color: var(--ink-3); }
.lfg-facts dd svg { width: 14px; height: 14px; flex-shrink: 0; }
.lfg-yes { color: var(--up); }
.lfg-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.lfg-foot-end { display: flex; gap: 4px; margin-left: auto; }

/* empty board */
.lfg-empty { padding: 28px 22px 22px; }
.lfg-empty-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.lfg-empty-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--acc-a16); color: var(--acc-hi); font-size: 28px; }
.lfg-empty h3 { font: 700 1.4rem var(--f-display); text-transform: uppercase; font-stretch: 78%; }
.lfg-empty p { max-width: 52ch; color: var(--ink-3); font-size: .88rem; line-height: 1.5; }
.lfg-starts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.lfg-start { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: var(--r-md); background: var(--s2); text-align: left; transition: background .15s, transform .2s var(--ease); }
.lfg-start:hover { background: var(--s3); transform: translateY(-2px); }
.lfg-start > .i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r); margin-bottom: 6px; background: var(--acc-a16); color: var(--acc-hi); font-size: 20px; }
.lfg-start.kind-team > .i { background: #4aa8ff24; color: #8cc8ff; }
.lfg-start.kind-club > .i { background: var(--gold-a12); color: var(--gold); }
.lfg-start b { font: 700 1.05rem var(--f-display); text-transform: uppercase; letter-spacing: .03em; font-stretch: 78%; }
.lfg-start small { color: var(--ink-3); font-size: .78rem; line-height: 1.4; }

/* sidebar */
.lfg-side { position: sticky; top: calc(var(--nav-h) + 16px); }
.lfg-side > * + * { margin-top: 14px; }
.lfg-me-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 18px; }
.lfg-me-cta p { color: var(--ink-2); font-size: .85rem; line-height: 1.5; }
.lfg-me-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--s3); color: var(--ink-2); font-size: 26px; }
.lfg-me-cta .lfg-small { font-size: .75rem; color: var(--ink-3); }
.lfg-linkbtn { color: var(--acc-hi); font-weight: 600; text-decoration: underline; }
.lfg-me-player { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(90deg, color-mix(in srgb, var(--tier, var(--s3)) 18%, var(--s1)), var(--s1) 80%); box-shadow: inset 3px 0 0 var(--tier, var(--s4)); }
.lfg-me-player > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.lfg-me-player b { display: flex; font: 800 1.2rem/1.1 var(--f-display); font-stretch: 78%; }
.lfg-me-player small { color: var(--ink-3); font-size: .74rem; }
.lfg-mine-item { flex-wrap: wrap; }
.lfg-mine-item.is-ended { opacity: .55; }
.lfg-mine-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--acc-a16); color: var(--acc-hi); flex-shrink: 0; }
.lfg-mine-ic.kind-team { background: #4aa8ff24; color: #8cc8ff; }
.lfg-mine-ic.kind-club { background: var(--gold-a12); color: var(--gold); }
.lfg-mine-ic .i { font-size: 17px; }
.lfg-mine-acts { display: flex; gap: 4px; width: 100%; padding-left: 42px; }
.lfg-steps { list-style: none; padding: 8px 18px 4px; }
.lfg-steps li { display: flex; gap: 12px; padding: 10px 0; }
.lfg-steps li + li { border-top: 1px solid var(--line); }
.lfg-step-n { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--acc); color: #fff; font: 800 .95rem var(--f-display); font-stretch: 78%; }
.lfg-steps b { font-size: .88rem; }
.lfg-steps p { color: var(--ink-3); font-size: .8rem; line-height: 1.45; margin-top: 2px; }
.lfg-safety { display: flex; gap: 8px; margin: 4px 18px 16px; padding: 10px 12px; border-radius: var(--r); background: var(--s2); color: var(--ink-3); font-size: .76rem; line-height: 1.45; }
.lfg-safety .i { font-size: 17px; color: var(--ink-3); }

/* form */
.lfg-modal .tf-modal-panel { width: min(660px, 100%); }
.lfg-form { display: flex; flex-direction: column; gap: 16px; }
.lfg-form-who { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--s2); box-shadow: inset 3px 0 0 var(--tier, var(--s4)); font-size: .85rem; color: var(--ink-2); }
.lfg-form-who b { display: inline-flex; color: var(--ink); }
.lfg-fs { border: 0; margin: 0; padding: 14px; border-radius: var(--r-md); background: #ffffff05; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; }
.lfg-fs legend { float: left; width: 100%; margin-bottom: 2px; color: var(--ink); font: 700 1rem var(--f-display); letter-spacing: .06em; text-transform: uppercase; font-stretch: 78%; }
.lfg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lfg-grid[hidden] { display: none; }
.lfg-kindseg, .lfg-days { display: flex; width: 100%; }
.lfg-kindseg button, .lfg-days button { flex: 1 1 0; }
.lfg-kindseg button[aria-pressed="true"], .lfg-days button[aria-pressed="true"] { background: var(--acc); color: #fff; }
.lfg-kindseg button:disabled { cursor: default; }
.lfg-kindseg button:disabled:not([aria-pressed="true"]) { opacity: .4; }
.lfg-club-note { margin: -6px 0 0; color: var(--ink-3); font-size: .8rem; }
.lfg-club-note b { color: var(--gold); }
.lfg-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.lfg-toggle { position: relative; cursor: pointer; }
.lfg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.lfg-toggle > span { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-3); color: var(--ink-2); font-weight: 600; font-size: .85rem; transition: background .15s, border-color .15s, color .15s; }
.lfg-toggle > span .i { font-size: 16px; }
.lfg-toggle input:checked + span { background: var(--acc-a16); border-color: var(--acc); color: #fff; }
.lfg-toggle input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
textarea.input.lfg-text { font-family: var(--f-ui); font-size: .875rem; min-height: 96px; }
.field small { font-weight: 500; color: var(--ink-4); }
.field.is-invalid .input, .field.is-invalid .sel-btn { border-color: var(--down); }
.lfg-err { padding: 10px 12px; border-radius: var(--r-sm); background: var(--down-a12); color: #ff8e99; font-size: .85rem; }
.lfg-form-foot { display: flex; justify-content: flex-end; gap: 8px; }
.lfg-radios { display: flex; flex-direction: column; gap: 6px; }
.lfg-radio { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--s2); cursor: pointer; font-size: .875rem; }
.lfg-radio input { accent-color: var(--acc); }
.lfg-modal-msg p { color: var(--ink-2); margin-bottom: 14px; line-height: 1.5; }

.lfg-flash {
  position: fixed; left: 50%; bottom: 24px; z-index: 4000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: var(--r); background: #2a2a33; color: #fff; font-weight: 600; font-size: .875rem; box-shadow: var(--shadow-pop);
  transition: opacity .2s, transform .25s var(--ease);
}
.lfg-flash.is-on { opacity: 1; transform: translate(-50%, 0); }
.lfg-flash.is-err { background: #5a1d26; }

@media (max-width: 1100px) {
  .lfg-split { grid-template-columns: minmax(0, 1fr); }
  .lfg-side { position: static; order: -1; }
  .lfg-rules { display: none; }
}
@media (max-width: 860px) {
  .lfg-kpis { --n: 2 !important; }
  .lfg-card { grid-template-columns: minmax(0, 1fr); }
  .lfg-player { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 0 12px; padding: 14px 16px; text-align: left; box-shadow: inset 4px 0 0 var(--tier, var(--s4)); background: linear-gradient(90deg, color-mix(in srgb, var(--tier, var(--s3)) 20%, var(--s2)), var(--s1) 80%); }
  .lfg-player .emblem, .lfg-noemb { grid-row: 1 / 3; width: 46px !important; height: 46px !important; margin: 0; }
  .lfg-name { justify-content: flex-start; font-size: 1.3rem; }
  .lfg-league { grid-column: 2; grid-row: 2; font-size: .85rem; }
  .lfg-rs { grid-column: 3; grid-row: 1; text-align: right; }
  .lfg-pos { grid-column: 3; grid-row: 2; text-align: right; }
  .lfg-unranked { grid-column: 2; grid-row: 2; }
  .lfg-player-tags { grid-column: 2 / 4; justify-content: flex-start; margin-top: 8px; }
  .lfg-starts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .lfg-h-sub { display: none; }
  .lfg-body { padding: 14px; }
  .lfg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lfg-foot > .btn-primary { flex: 1 1 100%; justify-content: center; }
  .lfg-grid { grid-template-columns: minmax(0, 1fr); }
  .lfg-fs { padding: 12px; }
  .phead-row #lfgPost { width: 100%; justify-content: center; }
}

/* ==================================================================== RANKS == */
.ranks-page > * + * { margin-top: 22px; }
.rk-strip { display: flex; height: 16px; border-radius: 4px; overflow: hidden; gap: 2px; }
.rk-seg { background: var(--tier); min-width: 4px; transform-origin: left; animation: none; transition: filter .15s; }
.rk-seg:hover { filter: brightness(1.25); }
.rk-seg[data-tip]::after { bottom: calc(100% + 10px); }
.rk-strip-keys { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.rk-strip-keys span { display: inline-flex; align-items: center; gap: 6px; }
.rk-strip-keys b { font-variant-numeric: tabular-nums; }
#ranksTiers { display: flex; flex-direction: column; gap: 14px; }
.rk-tier { display: grid; grid-template-columns: 230px minmax(0, 1fr); overflow: hidden; }
.rk-tier-head { display: flex; align-items: center; gap: 14px; padding: 18px; background: linear-gradient(90deg, color-mix(in srgb, var(--tier) 22%, var(--s1)), var(--s1)); box-shadow: inset 4px 0 0 var(--tier); }
.rk-tier-head h2 { font: 800 1.7rem/1 var(--f-display); text-transform: uppercase; color: var(--tier); font-stretch: 78%; }
.rk-tier-head b { color: var(--ink); }
.rk-divs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--bg); }
.rk-tier:first-child .rk-divs { grid-template-columns: minmax(0, 1fr); }
.rk-div { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 16px; background: var(--row); }
.rk-div img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 8px #0008); }
.rk-div.is-empty img { opacity: .45; filter: grayscale(.6); }
.rk-div-main { display: flex; flex-direction: column; min-width: 0; }
.rk-div-main b { font-weight: 700; }
.rk-div-main span { font-size: .72rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rk-div-count { display: flex; flex-direction: column; align-items: flex-end; }
.rk-div-count b { font: 700 1.3rem var(--f-display); font-variant-numeric: tabular-nums; font-stretch: 78%; }
.rk-div-count span { font-size: .72rem; color: var(--ink-3); }
.rk-meter { grid-column: 1 / -1; height: 4px; }
@media (max-width: 1020px) {
  .rk-tier { grid-template-columns: minmax(0, 1fr); }
  .rk-divs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) { .rk-divs { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================== PLAYERS == */
.dir-search { margin-top: 22px; max-width: 760px; }
.gs-filter-toggle {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-xs);
  color: var(--ink-2); background: #2a2a33; transition: color .15s, background .15s;
}
.gs-filter-toggle:hover, .gs-filter-toggle[aria-expanded="true"] { color: #fff; background: #363640; }
.gs-filter-toggle.has-filters { color: #fff; background: var(--acc-a30); }
.gs-filter-count {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--acc); color: #fff; font-size: .6rem; font-weight: 700; display: grid; place-items: center;
}
.dir-filters .input, .gs-input, .dir-filters .sel-btn { height: 38px; }
input.input[type="number"] { -moz-appearance: textfield; }
input.input[type="number"]::-webkit-inner-spin-button { opacity: .4; }
.pc > .s-av { width: 32px; height: 32px; font-size: .9rem; }
@media (max-width: 720px) { .dir-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =================================================================== SEARCH == */
.gs-hero { text-align: left; }
.gs-searchwrap { position: relative; max-width: 760px; margin-top: 22px; }
.gs-searchwrap .omni { margin-top: 0; max-width: none; }
.gs-tabs { margin-top: 20px; }
.gs-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: var(--z-pop); width: min(520px, 100%);
  border-radius: var(--r-lg); background: #1f1f27; box-shadow: var(--shadow-pop); overflow: hidden;
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; visibility: hidden;
  transition: opacity .16s, transform .2s var(--ease), visibility 0s .2s;
}
.gs-pop.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.gs-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 48px; background: var(--band); }
.gs-pop-title { display: flex; align-items: center; gap: 8px; font: 700 1.05rem var(--f-display); text-transform: uppercase; letter-spacing: .03em; font-stretch: 78%; }
.gs-pop-title .i { font-size: 18px; color: var(--ink-3); }
.gs-pop-head-actions { display: flex; gap: 4px; }
.gs-pop-reset, .gs-pop-close { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: var(--r-xs); color: var(--ink-2); font-size: .75rem; font-weight: 700; }
.gs-pop-reset:hover, .gs-pop-close:hover { background: var(--s4); color: #fff; }
.gs-pop-reset .i, .gs-pop-close .i { font-size: 16px; }
.gs-pop-close { display: none; }
.gs-pop-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.gs-pop-foot { display: none; }
.gs-frow { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gs-flabel { font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.gs-frow-split { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.gs-fnote { display: flex; gap: 10px; color: var(--ink-2); font-size: .8125rem; line-height: 1.5; }
.gs-fnote .i { color: var(--ink-3); }
.gs-leagues, .gs-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-lg {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--r-sm); background: #121217; border: 1px solid var(--line-3);
  transition: border-color .15s, background .15s, transform .15s var(--ease);
}
.gs-lg:hover { transform: translateY(-1px); border-color: #ffffff4d; }
.gs-lg.is-on { border-color: var(--hex, var(--acc)); background: color-mix(in srgb, var(--hex, var(--acc)) 18%, transparent); }
.gs-lg .rank-ic { width: 30px; height: 30px; }
.gs-lg-any { width: auto; padding: 0 12px; font-weight: 700; font-size: .78rem; color: var(--ink-2); }
.gs-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-sm);
  background: #121217; border: 1px solid var(--line-3); color: var(--ink-2); font-size: .78rem; font-weight: 700;
  transition: border-color .15s, background .15s, color .15s;
}
.gs-pill .i { font-size: 16px; }
.gs-pill svg { width: 14px; height: 14px; }
.gs-pill:hover { color: #fff; border-color: #ffffff4d; }
.gs-pill.is-on { color: #fff; border-color: var(--accent, var(--acc)); background: color-mix(in srgb, var(--accent, var(--acc)) 20%, transparent); }
.gs-pill-accent .i { color: var(--accent); }
.gs-scope { display: flex; align-items: center; gap: 8px; padding: 0 18px; height: 42px; background: var(--band); color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.gs-scope .i { font-size: 16px; }
.gs-scope b { color: var(--ink); margin-left: auto; font-variant-numeric: tabular-nums; }
.gs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 16px; }
.gs-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r);
  background: var(--s3); transition: background .15s;
}
.gs-card:hover { background: var(--s4); }
.gs-card-tag { font: 700 1.6rem/1 var(--f-display); letter-spacing: .04em; font-stretch: 78%; }
.gs-card-meta { display: flex; gap: 12px; color: var(--ink-3); font-size: .78rem; }
.gs-card-meta span { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.gs-card-meta .i { font-size: 15px; }
.gs-card-go { position: absolute; top: 14px; right: 14px; font-size: 20px; color: var(--ink-4); transition: color .15s, transform .2s var(--ease); }
.gs-card:hover .gs-card-go { color: #fff; transform: translateX(2px); }
.gs-feed { display: flex; flex-direction: column; }
.gs-ev { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 18px; background: var(--row); }
.gs-ev:nth-child(even) { background: var(--row-alt); }
.gs-ev-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.gs-ev-ic .i { font-size: 18px; }
.gs-ev-title { font: 700 .85rem var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-stretch: 78%; }
.gs-ev-text { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; color: var(--ink-2); }
.gs-ev-player { font-weight: 700; color: var(--ink); }
.gs-ev-player:hover { color: var(--acc-hi); }
.gs-old { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.gs-arrow { font-size: 16px; color: var(--ink-4); }
.gs-ev-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: .72rem; color: var(--ink-3); }
.gs-ev-league { display: inline-flex; align-items: center; gap: 4px; }
.gs-ev-time { font-size: .72rem; color: var(--ink-4); white-space: nowrap; }
.gs-tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gs-tip { padding: 20px; }
.gs-tip .i { font-size: 24px; color: var(--acc); margin-bottom: 12px; }
.gs-tip b { display: block; margin-bottom: 4px; font: 700 1.1rem var(--f-display); text-transform: uppercase; letter-spacing: .02em; font-stretch: 78%; }
.gs-tip p { color: var(--ink-3); font-size: .8125rem; line-height: 1.55; }
.gs-section .gs-scope { border-top: 0; }
@media (max-width: 1020px) { .gs-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .gs-pop { position: fixed; inset: 0; width: auto; border-radius: 0; display: flex; flex-direction: column; }
  .gs-pop-close { display: inline-flex; }
  .gs-pop-body { flex: 1; overflow-y: auto; }
  .gs-pop-foot { display: block; padding: 12px 14px; border-top: 1px solid var(--line); }
  .gs-pop-done { width: 100%; }
  .gs-frow-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gs-frow-split > :first-child { grid-column: 1 / -1; }
  .gs-tips { grid-template-columns: minmax(0, 1fr); }
  .gs-filters-open { overflow: hidden; }
}

/* ================================================================== COMPARE == */
.cmp-form { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.cmp-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.cmp-field label { font: 700 .9rem var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-stretch: 78%; }
.cmp-field.is-a label { color: var(--acc-hi); }
.cmp-field.is-b label { color: var(--info); }
.cmp-field .input { height: 46px; background: #121217e6; }
.cmp-field.is-a .input:focus { border-color: var(--acc); }
.cmp-field.is-b .input:focus { border-color: var(--info); box-shadow: 0 0 0 3px #4aa8ff29; }
.cmp-vs {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; position: relative; overflow: hidden;
  background: #2a2a33; font: 700 1.05rem var(--f-display); font-stretch: 78%; }
.cmp-vs .i { position: absolute; font-size: 20px; opacity: 0; transform: rotate(-90deg); transition: opacity .2s, transform .3s var(--ease); }
.cmp-vs span:first-child { transition: opacity .2s; }
.cmp-vs:hover span:first-child { opacity: 0; }
.cmp-vs:hover .i { opacity: 1; transform: none; }
.cmp-heads { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 16px; margin-bottom: 16px; }
.cmp-player { display: flex; align-items: center; gap: 16px; padding: 20px; overflow: hidden; box-shadow: inset 4px 0 0 var(--acc); background: linear-gradient(100deg, #ff3b6b1f, var(--s1) 60%); }
.cmp-player.is-b { flex-direction: row-reverse; text-align: right; box-shadow: inset -4px 0 0 var(--info); background: linear-gradient(260deg, #4aa8ff1f, var(--s1) 60%); }
.cmp-id { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cmp-player.is-b .cmp-id { align-items: flex-end; }
.cmp-id .chip { align-self: flex-start; }
.cmp-player.is-b .cmp-id .chip { align-self: flex-end; }
.cmp-name { display: flex; font: 800 2.3rem/.95 var(--f-display); min-width: 0; font-stretch: 78%; }
.cmp-name .pn-tag { font: 600 .85rem var(--f-ui); align-self: flex-end; margin-bottom: 3px; }
.cmp-sub { color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.cmp-score { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 8px; }
.cmp-score b { font: 700 2.8rem/1 var(--f-display); color: var(--ink-3); font-variant-numeric: tabular-nums; font-stretch: 78%; }
.cmp-score b.is-lead { color: var(--gold); }
.cmp-score span { font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.cmp-table { overflow: hidden; }
.cmp-group { padding: 0 18px; height: 40px; display: grid; place-items: center; background: var(--band); font: 700 .95rem var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-stretch: 78%; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 1.2fr) minmax(0, 1fr); align-items: center; gap: 16px; min-height: 56px; padding: 8px 18px; background: var(--row); }
.cmp-row:nth-child(odd) { background: var(--row-alt); }
.cmp-val { font: 700 1.3rem var(--f-display); font-variant-numeric: tabular-nums; color: var(--ink-2); display: flex; align-items: center; font-stretch: 78%; }
.cmp-val.lose { color: var(--ink-4); }
.cmp-val .league { font: 600 .875rem var(--f-ui); }
.cmp-val.is-b { justify-content: flex-end; }
.cmp-val.win { color: var(--ink); }
.cmp-val.is-a.win::before, .cmp-val.is-b.win::after { content: ''; width: 6px; height: 6px; border-radius: 50%; margin: 0 8px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.cmp-val.is-b.win::after { order: 2; }
.cmp-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cmp-label { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.cmp-bar { display: flex; width: 100%; height: 6px; border-radius: 6px; overflow: hidden; gap: 2px; background: #ffffff0d; }
.cmp-bar i { display: block; height: 100%; transform-origin: center; animation: none; }
.cmp-bar i.a { background: var(--acc); border-radius: 6px 0 0 6px; }
.cmp-bar i.b { background: var(--info); border-radius: 0 6px 6px 0; }
.cmp-bar.is-empty { background: repeating-linear-gradient(90deg, #ffffff0d 0 6px, transparent 6px 10px); }
@media (max-width: 1020px) {
  .cmp-form { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .cmp-form .btn { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .cmp-form { grid-template-columns: minmax(0, 1fr); }
  .cmp-vs { justify-self: center; }
  .cmp-heads { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cmp-score { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: 12px; }
  .cmp-player, .cmp-player.is-b { flex-direction: column; text-align: center; }
  .cmp-player .cmp-id, .cmp-player.is-b .cmp-id { align-items: center; }
  .cmp-name { font-size: 1.4rem; }
  .cmp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; padding: 8px 12px; }
  .cmp-val { font-size: 1.05rem; }
  .cmp-player .pc-plats { display: none; }
}

/* ================================================================== WIDGETS == */
/* The OBS Overlay builder. Desktop: controls on the left, the preview and the
   export sticky on the right so every change is visible. Mobile: player,
   preview, controls, export, one under the other. */
.wb {
  display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  grid-template-areas: "player main" "panel main"; grid-template-rows: auto 1fr;
  gap: 18px 22px; align-items: start;
}
.wb-player { grid-area: player; }
.wb-panel { grid-area: panel; }
.wb-main { grid-area: main; position: sticky; top: 78px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wb-player, .wb-panel, .wb-out, .wb-stagewrap { background: var(--s1); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.wb-player { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; overflow: visible; }
.wb-panel-head { display: flex; align-items: center; padding: 14px 18px 10px; }
.wb-panel-head .wb-l { flex: 1; margin: 0; }
.wb-step {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 6px;
  background: var(--acc-a16); color: var(--acc); font: 700 .75rem/1 var(--f-mono);
}
.wb-l > span:first-child { display: inline-flex; align-items: center; }
.wb-player > .wb-l, .wb-panel-head .wb-l { font-size: .9rem; color: #fff; }
.wb-reset { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--r-xs); color: var(--ink-3); font-size: .75rem; font-weight: 600; transition: color .15s, background .15s; }
.wb-reset .i { font-size: 16px; }
.wb-reset:hover { color: #fff; background: var(--s3); }

.wb-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 0 10px; border-bottom: 1px solid var(--line-2); }
.wb-tab {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 10px;
  color: var(--ink-3); font-weight: 600; font-size: .85rem; white-space: nowrap; transition: color .15s;
}
.wb-tab .i { font-size: 18px; }
.wb-tab:hover { color: #fff; }
.wb-tab.is-on { color: #fff; }
.wb-tab.is-on .i { color: var(--acc); }
.wb-tab.is-on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--acc); animation: tabIn .25s var(--ease); }
.wb-pane, .wb-outpane { display: none; padding: 16px 18px 18px; flex-direction: column; gap: 10px; }
.wb-pane.is-on, .wb-outpane.is-on { display: flex; animation: fadeIn .2s; }
.wb-l { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.wb-pane > .wb-l:first-child, .wb-range:first-child .wb-l { margin-top: 0; }
.wb-sub { font-weight: 500; color: var(--ink-4); font-size: .72rem; }
.wb-v { display: inline-flex; align-items: center; gap: 4px; font: 600 .75rem var(--f-mono); color: #fff; }
.wb-undo { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--ink-3); transition: color .15s, background .15s; }
.wb-undo[hidden] { display: none; }
.wb-undo .i { font-size: 15px; }
.wb-undo:hover { color: #fff; background: var(--s3); }
.wb-hint { color: var(--ink-3); font-size: .78rem; line-height: 1.55; }
.wb-search { position: relative; }
.wb-range { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.wb-range[hidden] { display: none; }

/* Shapes, drawn as tiny wireframes of the widget they produce. */
.wb-shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wb-shape {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px; border-radius: var(--r-sm);
  background: #121217; border: 1px solid var(--line-3); color: var(--ink-2); text-align: left;
  transition: border-color .15s, background .15s, color .15s, transform .15s var(--ease);
}
.wb-shape b { font-size: .82rem; }
.wb-shape small { font-size: .7rem; color: var(--ink-4); }
.wb-shape:hover { border-color: #ffffff40; color: #fff; }
.wb-shape.is-on { border-color: var(--acc); background: var(--acc-a08); color: #fff; box-shadow: inset 0 0 0 1px var(--acc); }
.wb-thumb { display: grid; gap: 3px; width: 100%; height: 44px; margin-bottom: 8px; padding: 6px; border-radius: 6px; background: #1c1c23; align-content: center; }
.wb-thumb i { display: block; border-radius: 2px; background: var(--ink-4); }
.wb-shape.is-on .wb-thumb i:first-child { background: var(--acc); }
.wb-thumb-card { grid-template-columns: 1fr 1fr 1fr; justify-items: center; width: 62%; }
.wb-thumb-card i:first-child { grid-column: 1 / -1; width: 100%; height: 9px; }
.wb-thumb-card i { width: 80%; height: 9px; opacity: .7; }
.wb-thumb-banner { grid-template-columns: 1.4fr 1fr 1fr; align-items: center; }
.wb-thumb-banner i { height: 14px; }
.wb-thumb-banner i + i { opacity: .7; height: 9px; }
.wb-thumb-compact { grid-template-columns: 1.6fr .7fr .7fr; align-items: center; }
.wb-thumb-compact i { height: 7px; }
.wb-thumb-compact i + i { opacity: .7; }

/* Value list: tick + reorder. */
.wb-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wb-stats li { display: flex; align-items: center; gap: 8px; padding: 2px 4px 2px 0; border-radius: var(--r-xs); background: #121217; border: 1px solid var(--line-2); }
.wb-stats label { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: .875rem; }
.wb-stats li:has(input:checked) label { color: #fff; }
.wb-stats input { appearance: none; width: 18px; height: 18px; flex: none; margin: 0; border-radius: 5px; border: 1.5px solid #ffffff4d; display: grid; place-items: center; transition: background .15s, border-color .15s; cursor: pointer; }
.wb-stats input:checked { background: var(--acc); border-color: var(--acc); }
.wb-stats input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.wb-move { display: flex; gap: 2px; }
.wb-move button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--ink-3); transition: color .15s, background .15s; }
.wb-move button .i { font-size: 16px; }
.wb-move button:hover { color: #fff; background: var(--s3); }
.wb-stats li:first-child [data-move="-1"], .wb-stats li:last-child [data-move="1"] { visibility: hidden; }

/* On/off switches. */
.wb-toggles { display: flex; flex-direction: column; gap: 2px; }
.wb-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 2px; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: .875rem; }
.wb-toggle[hidden] { display: none; }
.wb-toggle span { display: flex; align-items: baseline; gap: 8px; }
.wb-toggle small { font-size: .7rem; color: var(--ink-4); }
.wb-toggle.is-muted { opacity: .55; }
.wb-toggle input {
  order: 2; appearance: none; position: relative; flex: none; width: 34px; height: 20px; margin: 0; border-radius: 20px;
  background: var(--s4); cursor: pointer; transition: background .2s;
}
.wb-toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0006; transition: transform .2s var(--ease); }
.wb-toggle input:checked { background: var(--acc); }
.wb-toggle input:checked::after { transform: translateX(14px); }
.wb-toggle:hover { color: #fff; }
.wb-toggle input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.wb-seg { display: flex; width: 100%; }
.wb-seg button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.wb-seg .i { font-size: 17px; }

/* Sliders: the part up to the thumb is filled in the accent. */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--acc) var(--fill), var(--s4) var(--fill)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--s4); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--acc); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; border: 3px solid var(--acc); box-shadow: 0 2px 6px #0008; transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--acc); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
input[type="range"]:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }

.wb-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wb-preset {
  display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 8px; border-radius: var(--r-xs);
  background: #121217; border: 1px solid var(--line-2); color: var(--ink-2); font-size: .75rem; font-weight: 600;
  transition: border-color .15s, color .15s;
}
.wb-preset span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-preset i { position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 2px #0b0b0f, 0 0 0 3px #ffffff26; }
.wb-preset i.is-light { box-shadow: 0 0 0 2px #f1f3f6, 0 0 0 3px #ffffff26; }
.wb-preset:hover { border-color: #ffffff40; color: #fff; }
.wb-preset.is-on { border-color: var(--sw); color: #fff; background: color-mix(in srgb, var(--sw) 10%, #121217); }
.wb-color { display: flex; gap: 8px; }
.wb-color[hidden] { display: none; }
.wb-color input[type="color"] { width: 46px; height: 40px; flex: none; padding: 3px; border-radius: var(--r-sm); background: #121217; border: 1px solid var(--line-3); cursor: pointer; }
.wb-color .input { font-family: var(--f-mono); text-transform: lowercase; }
.input.is-bad { border-color: #ff5a5a; }

/* Preview. */
.wb-stagewrap { display: flex; flex-direction: column; }
.wb-preview-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line-2); }
.wb-preview-head .panel-t { margin-right: auto; }
.wb-size { font: 600 .72rem var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.wb-size[hidden] { display: none; }
.wb-canvas-toggle button { padding: 0 12px; height: 32px; font-size: .78rem; }
.wb-stage { position: relative; min-height: 380px; display: grid; place-items: center; padding: 40px 28px; overflow: hidden; transition: background .25s; }
.wb-stage[data-canvas="game"] { background: linear-gradient(#0006, #0006), url('/assets/items/36/monaco-default-afternoon-363ac878.webp') center / cover; }
.wb-stage[data-canvas="dark"] { background: radial-gradient(circle at 50% 40%, #1b1b22, var(--bg)); }
.wb-stage[data-canvas="light"] { background: #e9eaee; }
.wb-stage[data-canvas="checker"] { background: repeating-conic-gradient(#2a2a31 0 25%, #1d1d23 0 50%) 0 0 / 20px 20px; }
.wb-stage.is-loading::after { content: ''; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #ffffff30; border-top-color: var(--acc); animation: spin .8s linear infinite; position: absolute; }
.wb-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 28px; border-radius: var(--r-lg); background: #0b0b0fcc; backdrop-filter: blur(6px); color: var(--ink-3); text-align: center; font-size: .85rem; }
.wb-empty[hidden] { display: none; }
.wb-empty .i { font-size: 30px; color: var(--acc); margin-bottom: 4px; }
.wb-empty b { color: #fff; font-size: 1rem; }
.wb-frame { position: relative; }
.wb-frame iframe { border: 0; display: block; transform-origin: 0 0; background: transparent; color-scheme: normal; }
.wb-frame iframe.is-pending { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; }

/* Export. */
.wb-out .wb-panel-head { padding-bottom: 6px; }
.wb-tabs-sm .wb-tab { font-size: .8rem; }
.wb-copyline { display: flex; gap: 8px; }
.wb-copyline .input { flex: 1; min-width: 0; font: 500 .8rem var(--f-mono); }
.wb-copyline .btn-ghost { padding-inline: 10px; }
.wb-out textarea { min-height: 92px; font: 500 .78rem/1.5 var(--f-mono); resize: vertical; }
.wb-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wb-outpane .btn { align-self: flex-start; }
.wb-outpane .btn.is-done { background: #2bb673; border-color: #2bb673; }
.wb-steps { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: .82rem; line-height: 1.5; }
.wb-steps li::marker { color: var(--acc); font-weight: 700; }
.wb-steps b { color: #fff; }
.wb-dim { font-family: var(--f-mono); font-size: .78rem; padding: 1px 6px; border-radius: 5px; background: var(--s3); }
.wb-foot { max-width: 100ch; margin-top: 18px; }
.is-disabled { opacity: .4; pointer-events: none; }
button:disabled.btn { opacity: .45; cursor: not-allowed; }

@media (max-width: 1020px) {
  .wb { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
  .wb-player, .wb-panel, .wb-main { grid-area: auto; }
  .wb-main { display: contents; }
  .wb-player { order: 1; }
  .wb-stagewrap { order: 2; }
  .wb-panel { order: 3; }
  .wb-out { order: 4; }
}
@media (max-width: 720px) {
  .wb-stage { min-height: 240px; padding: 24px 12px; }
  .wb-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-tab { gap: 5px; padding: 0 6px; font-size: .8rem; }
  .wb-tabs-sm .wb-tab .i { display: none; }
}

/* ==================================================================== PROSE == */
.prose { padding: 28px 32px; color: var(--ink-2); font-size: .9375rem; line-height: 1.75; }
.prose-narrow { max-width: 860px; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 30px; font: 700 1.5rem var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); scroll-margin-top: calc(var(--bar-h) + 20px); font-stretch: 78%; }
.prose a { color: var(--acc-hi); text-decoration: underline; text-decoration-color: var(--acc-a30); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose-dl { display: grid; gap: 0; border-radius: var(--r); overflow: hidden; }
.prose-dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 12px 16px; background: var(--row); }
.prose-dl > div:nth-child(even) { background: var(--row-alt); }
.prose-dl dt { font-weight: 700; color: var(--ink); }
.prose-dl dd { line-height: 1.6; }
.prose-toc { display: flex; flex-direction: column; padding: 8px; }
.prose-toc a { padding: 9px 10px; border-radius: var(--r-xs); color: var(--ink-2); font-weight: 600; transition: background .12s, color .12s; }
.prose-toc a:hover { background: var(--s3); color: #fff; }
.prose-split { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 720px) { .prose { padding: 20px; } .prose-dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ====================================================================== 404 == */
.nf { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - var(--bar-h) - var(--net-h) - 180px); display: grid; align-items: center; }
.nf-art { position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 70% 50%, #ff3b6b26, transparent 70%); }
.nf-inner { padding-block: 64px; }
.nf-code { display: block; font: 800 clamp(7rem, 20vw, 13rem)/.8 var(--f-display); color: transparent; -webkit-text-stroke: 2px var(--acc); opacity: .9; animation: rise .6s var(--ease) both; font-stretch: 78%; }
.nf h1 { margin-top: 18px; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.nf p { margin-top: 10px; max-width: 52ch; color: var(--ink-2); font-size: 1rem; }
.nf-actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Declared last: .panel sets position:relative and would otherwise win. */
.sticky { position: sticky; }
@media (max-width: 1020px) {
  .prose-split { grid-template-columns: minmax(0, 1fr); }
  .prose-split > aside { display: none; }
}
@media (max-width: 720px) {
  .panel-h { flex-wrap: wrap; }
  .panel-t { flex-wrap: wrap; row-gap: 2px; }
  .lb-table-card .panel-h .lb-search, .panel-h > .lb-search { flex: 1 1 100%; }
}
/* Banners that host a dropdown (search filters, item search) must not clip it
   and must paint above the content that follows. */
.search-banner, .it-banner { overflow: visible; z-index: 5; }
.search-banner::before, .it-banner::before { transform: none; }

/* Server-rendered summaries (first paint / crawlers) before the page script
   replaces them. */

/* Floating panels promoted to the top layer: drop the browser's popover
   defaults and size them from the anchor, not from the viewport. */
.search-pop[popover], .sel-menu[popover] { border: 0; color: inherit; overflow-x: hidden; }
.search-pop[popover]::backdrop, .sel-menu[popover]::backdrop { display: none; }
.sel-menu.tf-floating { right: auto; bottom: auto; }
.sel-opt span { white-space: nowrap; }
.search-pop.tf-floating { right: auto; bottom: auto; }
.search-item:focus, .search-item:focus-visible { outline: none; }

/* Home: the side column runs the full height of the two cards beside it. */

/* In the bar the account shows as avatar + bell only; the name is in its menu. */
.nav-right .arzb-name, .nav-right .arzb-caret { display: none; }
.nav-right .arzb-av { padding: 0 3px; height: 32px; border-radius: 50%; border: 0; background: transparent; }
.nav-right .arzb-av img, .nav-right .arzb-fb { border-radius: 50%; }
.nav-right .arzb-ic { width: 32px; height: 32px; border: 0; background: transparent; border-radius: 50%; }
.nav-right .arzb-ic:hover, .nav-right .arzb-av:hover { background: #ffffff12; }
.nav-right .arzb-signin { height: 30px; border-radius: var(--r-xs); padding: 0 12px; }

/* A dropdown that sits near the right edge must not widen the page. */
html, body { overflow-x: clip; }

/* ============================================================= FRAME SHOP == */
/* /frames — Premium profile frames (public/js/frames.js). A preview is the
   player page's contestant card with the frame on a canvas 1.5× its size. */
.r-legendary { --rc: #ffc82e; }
.r-epic { --rc: #b77bff; }
.r-rare { --rc: #4aa8ff; }
.r-common { --rc: #aab4c6; }

.fs-title { font: 900 clamp(2.4rem, 5vw, 3.6rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; gap: 14px !important; font-stretch: 78%; }
.fs-hl {
  display: inline-block; padding: 2px 16px 0 12px; color: #1a1200;
  background: linear-gradient(135deg, #ffe9a3, var(--gold) 55%, #e0a312);
  clip-path: var(--cut-shape-2); box-shadow: 0 0 40px #ffc82e33;
}
.fs-gold {
  background: linear-gradient(135deg, #ffe08a, var(--gold) 50%, #e0a312); color: #1a1200; font-weight: 800;
  border-radius: 0; clip-path: var(--cut-shape-2); padding-right: 20px;
}
.fs-gold:hover { filter: brightness(1.08); color: #1a1200; }
.fs-pro-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 99px;
  background: var(--gold-a12); border: 1px solid #ffc82e55; color: var(--gold); font-weight: 700;
}
.fs-pro-pill .i { font-size: 19px; }

/* The card + frame preview at any size: --s is the card's side. */
.fs-av { --s: 92px; position: relative; width: calc(var(--s) * 1.5); height: calc(var(--s) * 1.5); flex-shrink: 0; }
.fs-av-lg { --s: 128px; }
.fs-av-xl { --s: 136px; }
.fs-card-av {
  position: absolute; inset: 16.667%; overflow: hidden;
  clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
  background: radial-gradient(circle at 50% 30%, #3a3a48, #15151b 75%);
}
.fs-pic { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-sil { position: absolute; left: 14%; bottom: -4%; width: 72%; fill: #ffffff26; }
.fs-art { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 4px 10px #0009); pointer-events: none; }

/* Event reward banner */
.fs-event {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 8px 28px; margin-bottom: 28px; padding: 14px 28px 14px 18px; border-radius: var(--r-lg);
  background: linear-gradient(100deg, #2b1747 0%, #1a2a1a 60%, #14141a 100%); border: 1px solid #9dff5c33;
}
.fs-event::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--stripes);
  opacity: .5;
}
.fs-event::after {
  content: ''; position: absolute; left: -60px; top: -80px; width: 340px; height: 340px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, #7dff5c40, transparent 65%);
}
.fs-kicker { font: 800 .78rem var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: #9dff5c; font-stretch: 78%; }
.fs-event h2 { margin-top: 4px; font: 900 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--f-display); text-transform: uppercase; font-stretch: 78%; }
.fs-event h2 span { color: #9dff5c; }
.fs-event-sub { margin-top: 8px; color: var(--ink-2); max-width: 60ch; line-height: 1.55; }
.fs-timer { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #0e0e1299; color: #fff; font-weight: 700; font-size: .85rem; }
.fs-timer .i { font-size: 17px; color: #9dff5c; }
.fs-event-act .btn { min-width: 190px; justify-content: center; }

/* Layout */
.fs-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.fs-side { position: sticky; top: calc(var(--bar-h) + 16px); display: grid; gap: 22px; }
.fs-me { padding: 18px 18px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.fs-me-label { align-self: stretch; text-align: left; font: 800 .74rem var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-stretch: 78%; }
.fs-me-stage { margin: 2px 0 4px; display: grid; place-items: center; }
.fs-me-name { font: 800 1.35rem/1.1 var(--f-display); text-transform: uppercase; display: flex; align-items: baseline; gap: 8px; font-stretch: 78%; }
.fs-me-name span { font: 700 .72rem var(--f-ui); color: var(--ink-3); text-transform: none; }
.fs-who { margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; color: var(--acc-hi); font-weight: 700; font-size: .85rem; }
.fs-who .i { font-size: 16px; }
.fs-me h3 { margin-top: 16px; font-size: 1rem; }
.fs-me-p { margin: 6px 0 14px; color: var(--ink-3); font-size: .86rem; line-height: 1.5; }
.fs-me .btn { width: 100%; justify-content: center; }
.fs-count { margin-top: 2px; color: var(--ink-3); font-size: .82rem; }
.fs-count b { color: var(--gold); font-size: 1rem; }
.fs-faq h3 { font: 800 .9rem var(--f-display); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; font-stretch: 78%; }
.fs-q { border-bottom: 1px solid var(--line-2); }
.fs-q summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 0; font-weight: 600; font-size: .88rem; color: var(--ink-2);
}
.fs-q summary::-webkit-details-marker { display: none; }
.fs-q summary .i { color: var(--ink-3); transition: transform .2s var(--ease); }
.fs-q[open] summary .i { transform: rotate(180deg); }
.fs-q summary:hover { color: #fff; }
.fs-q p { padding: 0 0 14px; color: var(--ink-3); font-size: .84rem; line-height: 1.55; }

.fs-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.fs-total { color: var(--ink-3); font-weight: 600; font-size: .9rem; }
.fs-filter [aria-selected="true"][class*="r-"] { background: var(--rc); color: #111; }
.fs-series { margin-top: 18px; }
.fs-series header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fs-series h2 { font: 900 1.5rem var(--f-display); text-transform: uppercase; font-stretch: 78%; }
.fs-series header p { color: var(--ink-3); font-size: .88rem; }
.fs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 14px; }

/* One frame */
.fs-item {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden;
  background: var(--s1); border: 1px solid var(--line-2); transition: border-color .15s, transform .2s var(--ease), box-shadow .2s;
}
.fs-item:hover, .fs-item.is-preview { border-color: color-mix(in srgb, var(--rc) 55%, transparent); }
.fs-item:hover { transform: translateY(-2px); box-shadow: 0 10px 28px #0007; }
.fs-item.is-on { border-color: var(--up); box-shadow: 0 0 0 1px var(--up), 0 0 26px #3ddc8422; }
.fs-item.is-target { animation: fsTarget 1.6s var(--ease) 2; }
@keyframes fsTarget { 50% { box-shadow: 0 0 0 3px var(--rc); } }
.fs-stage {
  position: relative; display: grid; place-items: center; padding: 10px 0 0; cursor: pointer;
  background: radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%), var(--stripes), #17171d;
}
.fs-stage:focus-visible { outline: 2px solid var(--rc); outline-offset: -2px; }
.fs-rar {
  position: absolute; left: 0; top: 10px; z-index: 1; padding: 2px 10px 2px 8px; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  background: var(--rc); color: #111; font: 900 .7rem/1.4 var(--f-display); letter-spacing: .08em; text-transform: uppercase; font-stretch: 78%; }
.fs-tags { margin-left: auto; display: flex; gap: 4px; }
.fs-own, .fs-ltd { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 7px; border-radius: 99px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.fs-own { background: #3ddc8422; color: var(--up); }
.fs-own .i { font-size: 13px; }
.fs-ltd { background: #9dff5c1f; color: #9dff5c; }
.fs-info { padding: 10px 14px 0; flex: 1; }
.fs-name { font: 900 1.35rem/1.05 var(--f-display); text-transform: uppercase; font-stretch: 78%; }
.fs-variant { margin-top: 3px; display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: .8rem; font-weight: 600; }
.fs-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--rc); transform: rotate(45deg); }
.fs-desc { margin-top: 8px; color: var(--ink-3); font-size: .8rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fs-act { padding: 12px 14px 14px; }
.fs-btn { width: 100%; justify-content: center; }
.fs-btn[disabled] { opacity: .55; cursor: not-allowed; }
.fs-btn.is-busy { opacity: .6; pointer-events: none; }
.fs-on { background: #3ddc841f; color: var(--up); border: 1px solid #3ddc8455; }
.fs-on .fs-on-h { display: none; }
.fs-on:hover { background: #ff526322; color: var(--down); border-color: #ff526366; }
.fs-on:hover .fs-on-l { display: none; }
.fs-on:hover .fs-on-h { display: inline; }
.fs-note { margin-top: 30px; display: flex; align-items: center; gap: 6px; color: var(--ink-4); }
.fs-note .i { font-size: 16px; }

.fs-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-modal); translate: -50% 0; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: var(--r); background: #2a2a33; border: 1px solid var(--line-3); color: #fff; font-weight: 600;
  box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.fs-toast.is-in { opacity: 1; transform: none; }
.fs-toast.is-error { border-color: #ff526388; }

@media (max-width: 900px) {
  .fs-layout { grid-template-columns: minmax(0, 1fr); }
  /* Status card, then the frames, then the FAQ. */
  .fs-side { display: contents; }
  .fs-me { order: 1; }
  .fs-main { order: 2; }
  .fs-faq { order: 3; }
  .fs-event { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 8px 16px 20px; }
  .fs-event-sub { margin-inline: auto; }
  .fs-event-act { width: 100%; }
  .fs-event-act .btn { width: 100%; }
}
@media (max-width: 520px) {
  .fs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fs-av { --s: 76px; }
  .fs-av-lg, .fs-av-xl { --s: 112px; }
  .fs-info { padding: 8px 10px 0; }
  .fs-name { font-size: 1.1rem; }
  .fs-desc { display: none; }
  .fs-act { padding: 10px; }
  .fs-btn { font-size: .78rem; padding: 0 8px; }
  .fs-rar { font-size: .62rem; }
  .fs-tags .fs-ltd { display: none; }
}

/* ================================================================ WRAPPED == */
/* /wrapped — Season Wrapped (public/js/wrapped.js): a 9:16 story, one slide at a time. */
.wr-landing { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 80px; text-align: center; }
.wr-landing::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 380px at 50% 0%, #ff3b6b33, transparent 70%), radial-gradient(600px 400px at 85% 90%, #5ec8f722, transparent 70%), var(--stripes);
}
.wr-kicker, .wr-s-kicker { font: 800 .8rem var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--acc-hi); font-stretch: 78%; }
.wr-title { margin-top: 10px; font: 900 clamp(2.8rem, 7vw, 5.2rem)/.92 var(--f-display); text-transform: uppercase; font-stretch: 78%; }
.wr-title span { display: inline-block; padding: 0 14px; background: linear-gradient(135deg, #ff6a8e, var(--acc) 55%, #b5174a); clip-path: var(--cut-shape-2); }
.wr-lead { margin: 18px auto 0; max-width: 56ch; color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; }
.wr-find {
  position: relative; display: flex; align-items: center; gap: 10px; max-width: 620px; margin: 30px auto 0; padding: 6px 6px 6px 16px;
  border-radius: var(--r); background: #1d1d25; border: 1px solid var(--line-3); box-shadow: 0 20px 50px -20px #000;
}
.wr-find > .i { color: var(--ink-3); }
.wr-find input { flex: 1; min-width: 0; height: 44px; background: none; border: 0; outline: none; font-size: 1rem; color: #fff; }
.wr-find .btn { height: 44px; white-space: nowrap; }
.wr-find .search-pop { text-align: left; }
.wr-note { margin-top: 12px; color: var(--ink-3); }
.wr-peek { display: flex; justify-content: center; gap: 14px; margin-top: 44px; flex-wrap: wrap; }
.wr-peek-card {
  display: grid; gap: 2px; min-width: 170px; padding: 16px 18px; border-radius: var(--r-lg); text-align: left;
  background: linear-gradient(160deg, #24242e, #16161c); border: 1px solid var(--line-2); animation: wrFloat 5s ease-in-out infinite;
}
.wr-peek-card b { font: 900 1.9rem/1 var(--f-display); font-stretch: 78%; }
.wr-peek-card span { color: var(--ink-3); font-size: .8rem; }
.wr-peek-card.is-a b { color: var(--up); }
.wr-peek-card.is-b { animation-delay: -1.6s; } .wr-peek-card.is-b b { color: var(--acc-hi); }
.wr-peek-card.is-c { animation-delay: -3.2s; } .wr-peek-card.is-c b { color: #5ec8f7; }
@keyframes wrFloat { 50% { transform: translateY(-8px) rotate(-.6deg); } }

.wr-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50vh; color: var(--ink-2); font-weight: 600; }
.wr-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #ffffff22; border-top-color: var(--acc); animation: wrSpin .8s linear infinite; }
@keyframes wrSpin { to { transform: rotate(360deg); } }
.wr-none { padding: 28px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.wr-none .icon { font-size: 40px; color: var(--ink-3); }
.wr-none p { max-width: 60ch; color: var(--ink-3); }
.wr-none-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.wr-stage {
  --tc: var(--acc);
  position: relative; isolation: isolate; display: grid; justify-items: center; gap: 14px; padding: 18px 16px 34px;
  min-height: calc(100dvh - var(--bar-h));
}
.wr-stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 50% 30%, color-mix(in srgb, var(--tc) 30%, transparent), transparent 70%), var(--stripes), #0b0b0f;
}
.wr-top { display: flex; align-items: center; gap: 10px; width: min(440px, 100%); }
.wr-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #ffffff12; color: #fff; flex-shrink: 0; }
.wr-back:hover { background: #ffffff22; }
.wr-seasons { display: flex; gap: 6px; flex-wrap: wrap; }
.wr-chip { height: 32px; padding: 0 12px; border-radius: 99px; background: #ffffff10; color: var(--ink-2); font-weight: 700; font-size: .78rem; }
.wr-chip.is-on { background: var(--tc, var(--acc)); color: #111; }
.wr-none .wr-chip.is-on { background: var(--acc); color: #fff; }

.wr-phone {
  position: relative; width: min(440px, 100%); aspect-ratio: 9 / 16; max-height: calc(100dvh - var(--bar-h) - 130px);
  border-radius: 22px; overflow: hidden; outline: none; user-select: none; touch-action: manipulation;
  background: linear-gradient(170deg, color-mix(in srgb, var(--tc) 26%, #17171e), #0d0d12 55%);
  box-shadow: 0 30px 80px -20px #000, 0 0 0 1px #ffffff14;
}
@supports not (aspect-ratio: 1) { .wr-phone { height: 760px; } }
.wr-phone::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--stripes); opacity: .7; }
.wr-bars { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 5; display: flex; gap: 4px; }
.wr-bars i { flex: 1; height: 3px; border-radius: 3px; background: #ffffff33; overflow: hidden; }
.wr-bars b { display: block; height: 100%; width: 0; background: #fff; }
.wr-bars i.is-done b { width: 100%; }
.wr-bars i.is-on b { animation: wrBar 6.5s linear forwards; }
.wr-stage.is-last .wr-bars i.is-on b { animation: none; width: 100%; }
.wr-phone.is-paused .wr-bars i.is-on b { animation-play-state: paused; }
@keyframes wrBar { to { width: 100%; } }
.wr-tap { position: absolute; top: 40px; bottom: 60px; z-index: 3; width: 34%; background: none; border: 0; cursor: pointer; }
.wr-tap.is-prev { left: 0; } .wr-tap.is-next { right: 0; width: 66%; }
.wr-stage.is-last .wr-tap.is-next { display: none; }
.wr-brand { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 4; display: flex; justify-content: center; align-items: center; gap: 6px; color: #ffffffb3; font-size: .75rem; font-weight: 700; pointer-events: none; }

.wr-slide {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 52px 28px 50px;
  opacity: 0; transform: translateX(24px) scale(.98); transition: opacity .45s var(--ease), transform .55s var(--ease); pointer-events: none;
}
.wr-slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wr-slide.is-on > * { animation: wrIn .7s var(--ease) both; }
.wr-slide.is-on > :nth-child(2) { animation-delay: .12s; }
.wr-slide.is-on > :nth-child(3) { animation-delay: .3s; }
.wr-slide.is-on > :nth-child(4) { animation-delay: .5s; }
.wr-slide.is-on > :nth-child(5) { animation-delay: .75s; }
.wr-slide.is-on > :nth-child(6) { animation-delay: 1s; }
@keyframes wrIn { from { opacity: 0; transform: translateY(16px); } }
.wr-s-name { font: 900 clamp(2.6rem, 11vw, 3.6rem)/.9 var(--f-display); overflow-wrap: anywhere; font-stretch: 78%; }
.wr-s-name small { margin-left: 6px; font: 600 .38em var(--f-ui); color: #ffffff99; }
.wr-s-big { font: 900 clamp(2rem, 9vw, 2.8rem)/.98 var(--f-display); text-transform: uppercase; font-stretch: 78%; }
.wr-s-text { color: #e8e8ee; font-size: 1.02rem; line-height: 1.5; }
.wr-s-text b { color: #fff; }
.wr-s-text.muted { color: var(--ink-3); }
.wr-s-figure { font: 900 clamp(3rem, 15vw, 4.4rem)/.95 var(--f-display); font-variant-numeric: tabular-nums; font-stretch: 78%; }
.wr-s-figure small { margin-left: 6px; font-size: .36em; color: #ffffff99; }
.wr-s-figure.is-up { color: var(--up); }
.is-tc { color: color-mix(in srgb, var(--tc) 85%, #fff); }
.wr-s-mega { font: 900 clamp(5rem, 28vw, 8rem)/.85 var(--f-display); letter-spacing: -.02em; font-stretch: 78%; }
.wr-s-persona { font: 900 clamp(2.8rem, 13vw, 4rem)/.9 var(--f-display); text-transform: uppercase; text-shadow: 0 0 40px color-mix(in srgb, var(--tc) 50%, transparent); font-stretch: 78%; }
.wr-s-chip { align-self: flex-start; margin-top: 8px; padding: 6px 12px; border-radius: 99px; font-weight: 800; }
.wr-s-chip.is-up { background: #3ddc8422; color: var(--up); } .wr-s-chip.is-down { background: #ff526322; color: var(--down); }
.wr-s-hint { margin-top: 24px; display: flex; align-items: center; gap: 6px; color: #ffffffa6; font-size: .85rem; animation: wrPulse 2s ease-in-out infinite !important; }
@keyframes wrPulse { 50% { opacity: .45; } }
.wr-spark { width: 100%; height: 180px; overflow: visible; }
.wr-spark-line { fill: none; stroke: var(--c); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.wr-slide.is-on .wr-spark-line { animation: wrDraw 2s var(--ease) .3s forwards; }
.wr-spark-area { opacity: 0; }
.wr-slide.is-on .wr-spark-area { animation: chartFade .8s ease 1.6s forwards; }
.wr-spark-peak { fill: #fff; stroke: var(--c); stroke-width: 3; vector-effect: non-scaling-stroke; opacity: 0; }
.wr-slide.is-on .wr-spark-peak { animation: chartFade .4s ease 2.1s forwards; }
@keyframes wrDraw { to { stroke-dashoffset: 0; } }
@keyframes chartFade { to { opacity: 1; } }
.wr-tiers { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 10px; }
.wr-tiers li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: #ffffff0d; border-left: 3px solid var(--tc); }
.wr-slide.is-on .wr-tiers li { animation: wrIn .5s var(--ease) both; }
.wr-tiers li:nth-child(2) { animation-delay: .35s !important; } .wr-tiers li:nth-child(3) { animation-delay: .6s !important; }
.wr-tiers li:nth-child(4) { animation-delay: .85s !important; } .wr-tiers li:nth-child(5) { animation-delay: 1.1s !important; } .wr-tiers li:nth-child(6) { animation-delay: 1.35s !important; }
.wr-tiers img { width: 52px; height: 52px; object-fit: contain; }
.wr-tiers b { font: 900 1.5rem var(--f-display); text-transform: uppercase; font-stretch: 78%; }
.wr-tiers span { color: var(--ink-3); font-size: .85rem; }
.wr-hours { display: flex; align-items: flex-end; gap: 3px; height: 110px; margin-top: 10px; }
.wr-hours i { flex: 1; height: max(3px, var(--h)); border-radius: 3px 3px 0 0; background: #ffffff38; transform-origin: bottom; }
.wr-hours i.is-top { background: var(--tc); }
.wr-slide.is-on .wr-hours i { animation: wrGrow .8s var(--ease) both; }
@keyframes wrGrow { from { transform: scaleY(0); } }
.wr-hours-axis { display: flex; justify-content: space-between; color: var(--ink-3); font-size: .7rem; }
.wr-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 64px; margin-top: 8px; }
.wr-days div { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 4px; }
.wr-days i { align-self: end; width: 70%; height: max(3px, var(--h)); border-radius: 4px; background: color-mix(in srgb, var(--tc) 70%, transparent); }
.wr-days span { color: var(--ink-3); font-size: .7rem; font-weight: 700; }
.wr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wr-grid div { display: grid; gap: 2px; padding: 16px 14px; border-radius: 14px; background: #ffffff0d; }
.wr-grid b { font: 900 2.3rem/1 var(--f-display); font-stretch: 78%; }
.wr-grid span { color: var(--ink-3); font-size: .8rem; }
.wr-slide.is-share { justify-content: flex-start; gap: 12px; padding-top: 44px; }
.wr-share-img { display: block; width: auto; max-width: 100%; height: calc(100% - 120px); margin: 0 auto; object-fit: contain; border-radius: 12px; box-shadow: 0 14px 40px #000a; background: #15151b; }
.wr-share-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; position: relative; z-index: 4; }
.wr-share-btns .btn { height: 40px; padding: 0 8px; justify-content: center; font-size: .8rem; }
.wr-nav { display: flex; justify-content: space-between; width: min(440px, 100%); }
@media (max-width: 520px) {
  .wr-landing { padding: 40px 0 56px; }
  .wr-find { flex-wrap: wrap; padding: 6px; }
  .wr-find input { flex: 1 1 100%; padding-left: 8px; }
  .wr-find > .i { display: none; }
  .wr-find .btn { flex: 1; justify-content: center; }
  .wr-stage { padding: 10px 10px 20px; gap: 10px; }
  .wr-phone { max-height: calc(100dvh - var(--bar-h) - 110px); }
}
@media (prefers-reduced-motion: reduce) {
  .wr-slide, .wr-slide.is-on > *, .wr-peek-card { animation: none !important; transition: none; }
  .wr-spark-line { stroke-dashoffset: 0; } .wr-spark-area, .wr-spark-peak { opacity: 1; }
}

/* =============================================================== LOADOUTS == */
/* /loadouts — loadout builder and community builds (public/js/loadouts.js). */
.lo-hero { position: relative; isolation: isolate; padding: 30px 0 0; border-bottom: 1px solid var(--line); }
.lo-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 300px at 15% 0%, color-mix(in srgb, var(--cc) 22%, transparent), transparent 70%), var(--stripes); }
.lo-title { font: 900 clamp(2.4rem, 5vw, 3.6rem)/1 var(--f-display); text-transform: uppercase; font-stretch: 78%; }
.lo-title span { display: inline-block; padding: 0 12px; color: #0e0e12; background: var(--cc); clip-path: var(--cut-shape-2); }
.lo-lead { margin-top: 10px; max-width: 72ch; color: var(--ink-2); line-height: 1.55; }
.lo-views { display: flex; gap: 4px; margin-top: 20px; }
.lo-view { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; font: 800 1.05rem var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); border-bottom: 3px solid transparent; font-stretch: 78%; }
.lo-view .i { font-size: 19px; }
.lo-view.is-on { color: #fff; border-color: var(--cc, var(--acc)); }
.lo-view:hover { color: #fff; }
.lo-classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.lo-class {
  display: grid; gap: 2px; padding: 14px 16px; text-align: left; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line-2);
  border-left: 4px solid var(--cc); transition: background .15s, transform .15s var(--ease);
}
.lo-class b { font: 900 1.6rem/1 var(--f-display); text-transform: uppercase; font-stretch: 78%; }
.lo-class span { color: var(--ink-3); font-size: .8rem; }
.lo-class:hover { background: var(--s2); }
.lo-class.is-on { background: color-mix(in srgb, var(--cc) 16%, var(--s1)); border-color: color-mix(in srgb, var(--cc) 60%, transparent); }
.lo-class.is-on b { color: var(--cc); }
.lo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.lo-sec + .lo-sec { margin-top: 26px; }
.lo-sec header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.lo-sec h2 { display: flex; align-items: center; gap: 10px; font: 900 1.4rem var(--f-display); text-transform: uppercase; font-stretch: 78%; }
.lo-sec h2 i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--cc); color: #0e0e12; font: 800 .95rem var(--f-display); font-style: normal; font-stretch: 78%; }
.lo-sec h2 small { color: var(--ink-3); font: 700 .85rem var(--f-ui); }
.lo-cats { display: flex; gap: 4px; flex-wrap: wrap; }
.lo-cat { height: 28px; padding: 0 10px; border-radius: 99px; background: var(--s2); color: var(--ink-3); font-size: .76rem; font-weight: 700; }
.lo-cat.is-on { background: var(--cc); color: #0e0e12; }
.lo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lo-grid.is-spec { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.lo-tile {
  position: relative; display: grid; gap: 2px; padding: 10px 10px 12px; text-align: left; border-radius: var(--r); background: var(--s1);
  border: 1px solid var(--line-2); transition: border-color .15s, background .15s, transform .15s var(--ease);
}
.lo-tile:hover { border-color: color-mix(in srgb, var(--cc) 50%, transparent); transform: translateY(-1px); }
.lo-tile.is-on { background: color-mix(in srgb, var(--cc) 14%, var(--s1)); border-color: var(--cc); box-shadow: 0 0 0 1px var(--cc); }
.lo-tile-art { display: grid; place-items: center; height: 64px; margin-bottom: 4px; }
.lo-tile-art img { max-width: 100%; max-height: 64px; object-fit: contain; }
.lo-tile b { font: 800 1.02rem/1.1 var(--f-display); text-transform: uppercase; font-stretch: 78%; }
.lo-tile small { color: var(--ink-3); font-size: .74rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lo-facts { color: var(--ink-2); font-size: .72rem; font-variant-numeric: tabular-nums; }
.lo-order { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--cc); color: #0e0e12; font: 800 .8rem var(--f-display); font-style: normal; font-stretch: 78%; }
.lo-side { position: sticky; top: calc(var(--bar-h) + 16px); display: grid; gap: 14px; }
.lo-sum { padding: 16px; border-top: 3px solid var(--cc); }
.lo-sum-k { font: 800 .76rem var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--cc); font-stretch: 78%; }
.lo-sum h3 { font: 900 1.6rem/1.05 var(--f-display); text-transform: uppercase; margin: 2px 0 10px; font-stretch: 78%; }
.lo-slot { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-sm); background: var(--s2); }
.lo-slot + .lo-slot { margin-top: 6px; }
.lo-slot-l { grid-column: 2; font: 700 .64rem var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lo-slot-art { grid-row: 1 / span 2; grid-column: 1; display: grid; place-items: center; height: 40px; }
.lo-slot-art img { max-width: 72px; max-height: 40px; object-fit: contain; }
.lo-slot b { grid-column: 2; font-size: .9rem; }
.lo-slot.is-empty { background: transparent; border: 1px dashed var(--line-3); }
.lo-slot.is-empty .lo-slot-l, .lo-slot.is-empty b { grid-column: 1 / -1; }
.lo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.lo-stats div { display: grid; padding: 8px 6px; border-radius: var(--r-sm); background: var(--s2); text-align: center; }
.lo-stats b { font: 900 1.3rem/1 var(--f-display); font-stretch: 78%; }
.lo-stats span { color: var(--ink-3); font-size: .64rem; }
.lo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.lo-actions .btn { justify-content: center; }
.lo-actions .is-disabled { opacity: .5; pointer-events: none; }
.lo-publish { width: 100%; justify-content: center; margin-top: 6px; background: var(--cc); color: #0e0e12; font-weight: 800; clip-path: var(--cut-shape-2); border-radius: 0; }
.lo-publish:hover { filter: brightness(1.1); }
.lo-publish[disabled], .lo-actions [disabled] { opacity: .45; cursor: not-allowed; }
.lo-reset { display: block; margin: 10px auto 0; color: var(--ink-3); font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.lo-meta { padding: 14px 16px; }
.lo-meta h3 { font: 800 .85rem var(--f-display); letter-spacing: .1em; text-transform: uppercase; font-stretch: 78%; }
.lo-small { color: var(--ink-3); font-size: .8rem; line-height: 1.5; margin: 4px 0 8px; }
.lo-meta-row { display: grid; grid-template-columns: 62px 1fr; gap: 4px 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.lo-meta-row > span { color: var(--ink-3); font-size: .72rem; font-weight: 700; text-transform: uppercase; grid-row: span 3; }
.lo-meta-row em { display: flex; align-items: center; gap: 6px; font-style: normal; font-size: .8rem; }
.lo-meta-row img { width: 40px; height: 22px; object-fit: contain; }

.lo-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lo-sel select { height: 34px; padding: 0 30px 0 10px; border-radius: var(--r-sm); background: var(--s1); border: 1px solid var(--line-2); color: #fff; }
.lo-new { margin-left: auto; }
.lo-count { margin: 12px 0 8px; color: var(--ink-3); font-size: .85rem; }
.lo-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.lo-loading { color: var(--ink-3); padding: 20px; }
.lo-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--s1); border: 1px solid var(--line-2); border-top: 3px solid var(--cc); }
.lo-card header { display: flex; justify-content: space-between; gap: 8px; }
.lo-card-cls { font: 900 .9rem var(--f-display); text-transform: uppercase; color: var(--cc); font-stretch: 78%; }
.lo-card-mode { color: var(--ink-3); font-size: .74rem; font-weight: 700; }
.lo-card h3 { font: 900 1.35rem/1.1 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; font-stretch: 78%; }
.lo-card-weapon { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--s2); }
.lo-card-weapon img { width: 120px; height: 52px; object-fit: contain; }
.lo-card-weapon b { font: 800 1.15rem var(--f-display); text-transform: uppercase; font-stretch: 78%; }
.lo-card-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lo-card-row span { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: var(--r-sm); background: var(--s2); text-align: center; }
.lo-card-row img { width: 46px; height: 30px; object-fit: contain; }
.lo-card-row small { font-size: .66rem; color: var(--ink-2); line-height: 1.2; }
.lo-card-notes { color: var(--ink-2); font-size: .84rem; line-height: 1.45; white-space: pre-line; }
.lo-card footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.lo-author { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lo-author span { display: grid; min-width: 0; }
.lo-author b { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lo-author small { color: var(--ink-3); font-size: .72rem; }
.lo-author:hover b { color: var(--acc-hi); }
.lo-card-btns { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lo-vote { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 99px; background: var(--s2); color: var(--ink-2); font-weight: 800; font-size: .8rem; }
.lo-vote .i { font-size: 16px; }
.lo-vote.is-on { background: color-mix(in srgb, var(--cc) 25%, var(--s2)); color: var(--cc); }
.lo-vote:hover:not([disabled]) { color: #fff; }
.lo-vote[disabled] { opacity: .6; cursor: default; }
.lo-empty { grid-column: 1 / -1; padding: 30px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.lo-empty .i { font-size: 40px; color: var(--ink-3); }
.lo-empty p { color: var(--ink-3); }
.lo-more { display: flex; justify-content: center; margin-top: 16px; }
.lo-modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; background: #000a; backdrop-filter: blur(4px); }
.lo-modal-panel { position: relative; width: min(480px, 100%); padding: 22px; border-radius: var(--r-lg); background: #1d1d25; border: 1px solid var(--line-3); box-shadow: var(--shadow-pop); }
.lo-modal-panel h3 { font: 900 1.5rem var(--f-display); text-transform: uppercase; margin-bottom: 12px; padding-right: 30px; font-stretch: 78%; }
.lo-modal-x { position: absolute; top: 14px; right: 14px; color: var(--ink-3); }
.lo-modal form { display: grid; gap: 12px; }
.lo-modal label { display: grid; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.lo-modal label small { color: var(--ink-3); font-weight: 500; }
.lo-modal input, .lo-modal select, .lo-modal textarea { width: 100%; padding: 10px 12px; border-radius: var(--r-sm); background: var(--s1); border: 1px solid var(--line-3); color: #fff; font: inherit; font-weight: 500; }
.lo-modal textarea { resize: vertical; }
.lo-err { color: var(--down); font-size: .84rem; }
@media (max-width: 1020px) {
  .lo-layout { grid-template-columns: minmax(0, 1fr); }
  .lo-side { position: static; order: -1; }
}
@media (max-width: 600px) {
  .lo-classes { gap: 6px; }
  .lo-class { padding: 10px; }
  .lo-class b { font-size: 1.2rem; }
  .lo-class span { font-size: .68rem; }
  .lo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lo-grid.is-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lo-board { grid-template-columns: minmax(0, 1fr); }
  .lo-new { margin-left: 0; }
}

/* ---- banned players (/banned) ------------------------------------------- */
.bn-head { min-width: 0; }
.bn-field { min-width: 170px; }
.bn-tools { flex-wrap: wrap; gap: 12px; }
.bn-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bn-filters select { min-width: 190px; }
.bn-card { margin-top: 18px; }
.bn-table td { vertical-align: middle; }
.bn-name.is-struck .pn-name, .bn-title-name.is-struck { text-decoration: line-through; text-decoration-color: var(--down); text-decoration-thickness: 2px; }
.bn-dot { margin: 0 5px; color: var(--ink-4); }
.bn-table .pc-sub .club { height: 18px; line-height: 18px; font-size: .72rem; padding: 0 7px; }
.bn-margin { color: var(--down); font-weight: 700; font-variant-numeric: tabular-nums; }
.bn-reason-cell { display: flex; flex-direction: column; min-width: 0; }
.bn-reason { font-weight: 600; color: var(--ink-2); font-size: .82rem; }
.bn-date { display: block; font-weight: 600; white-space: nowrap; }
.bn-approx { color: var(--ink-3); margin-right: 3px; }
.bn-col-status { width: 1%; white-space: nowrap; }
.bn-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px; border-radius: 0; clip-path: var(--lean);
  font: 700 .72rem/1 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; vertical-align: middle;
}
.bn-pill .i { font-size: 15px; }
.bn-pill.is-banned { background: var(--down-a12); color: var(--down); box-shadow: inset 0 0 0 1px #ff526355; }
.bn-pill.is-review { background: var(--gold-a12); color: var(--gold); box-shadow: inset 0 0 0 1px #ffc82e55; }
.bn-pill.is-returned { background: var(--up-a12); color: var(--up); box-shadow: inset 0 0 0 1px #3ddc8455; }
.phead h1 .bn-pill { font-size: .78rem; height: 28px; }

.bn-method { margin-top: 18px; }
.bn-method-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; padding: 18px; }
.bn-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 9px; color: var(--ink-2); font-size: .86rem; line-height: 1.55; }
.bn-steps b { color: var(--ink); }
.bn-policy { display: grid; gap: 10px; align-content: start; padding: 16px; background: var(--s2); border-radius: var(--r-md, 10px); }
.bn-policy-title { font: 700 .85rem var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-stretch: 78%; }
.bn-policy-item { display: grid; gap: 2px; font-size: .8rem; color: var(--ink-3); }
.bn-policy-item b { color: var(--ink); font-size: .84rem; }
.bn-policy .btn { justify-self: start; margin-top: 4px; }

.bn-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.bn-id .rank-ic { width: 64px; height: 64px; flex-shrink: 0; }
.bn-title-tag { color: var(--ink-4); font-weight: 600; font-size: .6em; align-self: flex-end; margin: 0 6px 6px -6px; }
.bn-id .phead-meta .chip svg { width: 13px; height: 13px; }
.bn-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bn-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; margin-top: 18px; align-items: start; }
.bn-side { display: grid; gap: 18px; min-width: 0; }
.bn-dl { margin: 0; padding: 6px 18px 12px; }
.bn-dl-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.bn-dl-row:last-child { border-bottom: 0; }
.bn-dl dt { color: var(--ink-3); font-weight: 600; }
.bn-dl dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.bn-dl dd a { color: var(--acc-hi); }
.bn-chart { min-height: 240px; }
.bn-linked { display: grid; padding: 4px 8px; }
.bn-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-sm); }
.bn-link-row:hover { background: var(--row-hover); }
.bn-link-row .i { color: var(--ink-4); font-size: 20px; }
.bn-on { color: var(--up); font-weight: 600; }
.bn-linked-note { padding: 0 18px 16px; }
.bn-disclaimer { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; color: var(--ink-3); font-size: .82rem; line-height: 1.55; }
.bn-disclaimer .i { color: var(--info); font-size: 20px; }
.bn-disclaimer p { margin: 0; }

@media (max-width: 1100px) {
  .col-hide-md { display: none; }
  .bn-detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .bn-method-grid { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .bn-filters, .bn-filters .lb-search, .bn-filters select { width: 100%; }
  .bn-dl-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .bn-id { gap: 12px; }
  .bn-id .rank-ic { width: 48px; height: 48px; }
  .bn-pill { padding: 0 8px 0 6px; font-size: .66rem; }
  .bn-table .bn-col-status .bn-pill { padding: 0 6px; }
  .bn-table .bn-col-status .bn-pill .i { display: none; }
}
.bn-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 18px; background: var(--gold-a12); color: var(--ink-2); font-size: .82rem; line-height: 1.5; }
.bn-note .i { color: var(--gold); font-size: 18px; }
.bn-note[hidden] { display: none; }
@media (min-width: 721px) { .bn-filters { flex-wrap: nowrap; } .bn-filters .lb-search { width: 300px; } }
@media (max-width: 720px) {
  .bn-table td:first-child { min-width: 170px; }
  .bn-table .pc-main { min-width: 0; }
}
/* banned: overview + list refinements */
.bn-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.bn-spot-list { display: grid; padding: 6px 8px 10px; }
.bn-spot-item { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-sm); }
.bn-spot-item:hover { background: var(--row-hover); }
.bn-spot-item .rank-ic { width: 40px; height: 40px; }
.bn-spot-pos { font: 700 1.1rem var(--f-display); color: var(--ink-4); text-align: center; font-stretch: 78%; }
.bn-spot-main { display: flex; flex-direction: column; min-width: 0; }
.bn-spot-main .pc-name { font-size: 1rem; }
.bn-spot-rank { display: flex; flex-direction: column; align-items: flex-end; }
.bn-spot-rank b { font: 700 1.35rem/1 var(--f-display); color: var(--down); font-stretch: 78%; }
.bn-spot-rank span { font-size: .72rem; color: var(--ink-3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.bn-daily .panel-b { padding: 8px 12px 4px; }
.bn-name-line { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.bn-flag { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px; border-radius: var(--r-xs); background: #ffffff0d; color: var(--ink-3); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; flex-shrink: 0; }
.bn-flag .i { font-size: 12px; }
.bn-flag.is-reason { background: var(--down-a12); color: var(--down); }
.bn-table .bn-margin { display: block; color: var(--down); }
@media (max-width: 1100px) { .bn-overview { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .bn-spot-item { grid-template-columns: 16px 32px minmax(0, 1fr) auto; gap: 10px; } .bn-spot-item .rank-ic { width: 32px; height: 32px; } }
}
@layer components { .rk-meter { --m: var(--tier); } .rk-div .meter { height: 4px; } }
@layer components { .lfg-f .sel, .lfg-sort .sel { width: 100%; } }
@layer components {
  @media (max-width: 560px) {
    .wb-tab { font-size: 12px; gap: 5px; padding-inline: 4px; }
    .wb-tab .i { display: none; }
    .wb-stagewrap .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  }
}
@layer components { @media (max-width: 560px) { .wb-preview-head { flex-wrap: wrap; gap: 8px; } } }
@layer components { @media (max-width: 560px) { .wb-tabs .wb-tab { white-space: normal; text-align: center; line-height: 1.2; font-size: 11.5px; } } }

/* Player names site-wide: normal case and size, as on the player profile
   (.page-player .ph-name), never the uppercase display headline. */
.bn-id h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: clamp(22px, 2.1vw, 30px); font-weight: 800; font-stretch: 100%; text-transform: none; transform: none; letter-spacing: -.01em; line-height: 1.1; }
.bn-id h1 { align-items: baseline; }
.bn-id h1 .bn-pill { align-self: center; }
.bn-id h1 .bn-title-tag { align-self: baseline; margin: 0 4px 0 -6px; font: 500 max(13px, .52em)/1 var(--f-mono); color: var(--ink-3); }
.bn-id h1 .bn-pill { font-size: .72rem; height: 26px; letter-spacing: .04em; }
.page-player .stinger-text b { text-transform: none; font-stretch: 100%; transform: none; }
