@import url('/vendor/lilita/index.css');

/* ---------- Tokens ---------------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --font: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;          /* chart / inset surface (palette validated against this) */               /* outlines */

  --radius: 12px;
  --outline: 3px solid var(--ink);
  --drop: 0 5px 0 var(--t-shadow-drop);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }
/* The scrollbar space is always reserved, so a short page ("Loading…") doesn't shift the whole app sideways while pages change */
html { scrollbar-gutter: stable; }

body {
  font-family: var(--font);
  color: var(--text);
  letter-spacing: 0.02em;
  background:
    repeating-linear-gradient(135deg, var(--t-glow-3) 0 22px, transparent 22px 44px),
    radial-gradient(ellipse at 50% -10%, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%) fixed;
  background-color: var(--bg-bottom);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button, input, select, textarea { font-family: inherit; letter-spacing: inherit; }

/* Game text: chunky white with dark outline + drop shadow */
.stroke {
  text-shadow:
    -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px 1.5px 0 var(--ink),
    0 3px 0 var(--ink);
}
.stroke-sm { text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink), 0 2px 0 var(--ink); }

/* ---------- Layout ---------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 20px;
  background: linear-gradient(var(--t-layout-topbar-bg), var(--t-layout-topbar-bg-2));
  border-bottom: var(--outline);
  box-shadow: 0 4px 0 var(--t-shade-35);
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 26px; white-space: nowrap; }
.logo .skull {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--gold); border: var(--outline); box-shadow: 0 3px 0 var(--ink); transform: rotate(-6deg);
}
.logo span.accent { color: var(--gold); }
.topbar .spacer { flex: 1; }

.account-switch { display: flex; align-items: center; gap: 8px; }
.account-switch .acc-menu { min-width: 190px; }
/* The account menu (v1.28.0, accmenu.js): the button looks like the inputs; the list like the name search's. */
.acc-menu { position: relative; max-width: 280px; }
.acc-btn { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 10px 0 12px; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer;
  background: var(--t-buttons-input-bg); border: var(--outline); border-radius: 9px; box-shadow: inset 0 3px 0 var(--t-shade-15); }
.acc-btn:focus-visible { outline: none; box-shadow: inset 0 3px 0 var(--t-shade-15), 0 0 0 3px var(--gold); }
.acc-btn:disabled { cursor: default; }
.acc-cur { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.acc-cur-text, .acc-row-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-arrow { flex: none; width: 0; height: 0; border: 6px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.acc-btn:disabled .acc-arrow { display: none; }
.acc-drop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; min-width: 100%; width: max-content; max-width: min(360px, calc(100vw - 24px));
  max-height: min(460px, 70vh); overflow-y: auto; overscroll-behavior: contain;
  background: var(--t-accmenu-drop-bg); border: var(--outline); border-radius: 12px; box-shadow: var(--drop); }
.acc-drop.to-left { right: auto; left: 0; }
.acc-drop[hidden] { display: none; }
.acc-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 6px 12px; font: inherit; font-size: 15px; color: var(--t-white); text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--t-accmenu-row-line); }
.acc-row:hover, .acc-row:focus-visible { outline: none; background: var(--t-accmenu-row-hover-bg); }
.acc-row[aria-selected="true"] { background: var(--t-accmenu-row-on-bg); }
.acc-group { border-top: 2px solid var(--ink); }
.acc-group:first-child { border-top: 0; }
.acc-group-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; font-size: 15px; }
.acc-group-bookmark .acc-group-h { color: var(--t-accmenu-group-bookmarks-h); }
.acc-group-recent .acc-group-h { color: var(--t-accmenu-group-recent-h); }
/* The list icons (listicons.js): the bookmark of Overview's button and the eye in a circular arrow, with the dark outline */
.li-ico { flex: none; width: 20px; height: 20px; overflow: visible; stroke-linejoin: round; }
.li-fill, .li-eye { stroke: var(--ink); stroke-width: 2; }
.li-bookmark .li-fill { fill: var(--t-acclist-bookmark-ico); }
.li-recent .li-fill { fill: var(--t-acclist-recent-ico); stroke-width: 1.6; }
.li-arc-out { fill: none; stroke: var(--ink); stroke-width: 5.6; stroke-linecap: round; }
.li-arc { fill: none; stroke: var(--t-acclist-recent-ico); stroke-width: 2.4; stroke-linecap: round; }
.li-eye { fill: var(--t-white); stroke-width: 1.6; }
.li-pupil { fill: var(--ink); }
.li-badge { display: inline-grid; place-items: center; flex: none; } /* beside a title: the icon alone, a bit bigger */
.li-badge .li-ico { width: 24px; height: 24px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 36px; padding: 0; }
.icon-btn .gear-ico { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 0 1px var(--ink)) drop-shadow(0 2px 0 var(--ink)); }

/* Settings box */
.set-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 70px 16px 16px; background: var(--t-layout-set-overlay-bg); overflow-y: auto; }
.set-box { position: relative; display: grid; gap: 14px; width: min(560px, 100%); padding: 18px 20px 16px; background: linear-gradient(180deg, var(--t-layout-set-box-bg), var(--panel-2)); border: var(--outline); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); }
.set-head { display: flex; align-items: center; gap: 10px; font-size: 28px; line-height: 1; }
.set-ico { width: 34px; height: 34px; object-fit: contain; }
.set-sec { display: grid; gap: 8px; padding: 12px; background: var(--t-layout-set-sec-bg); border: 2px solid var(--ink); border-radius: 12px; }
.set-sec h3 { margin: 0; font-size: 18px; font-weight: normal; color: var(--gold); }
.set-sec p { margin: 0; }
/* Theme picker (Settings): one button per theme, wrapping; the picked one in gold. */
.set-themes { display: flex; flex-wrap: wrap; gap: 8px; }
.set-themes button {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; font-size: 15px; cursor: pointer;
  color: var(--t-layout-set-themes-button-color); background: var(--t-layout-set-themes-button-bg);
  border: var(--outline); border-radius: 10px; box-shadow: 0 3px 0 var(--ink);
}
.set-themes button small { font-size: 12px; color: var(--t-layout-set-themes-small-color); }
.set-themes button.on { background: var(--t-layout-set-themes-on-bg); color: var(--ink); }
.set-themes button.on small { color: var(--ink); }
.set-toggle { display: flex; align-items: center; gap: 12px; padding: 6px 4px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.set-toggle .sw { flex: none; position: relative; width: 44px; height: 24px; border: var(--outline); border-radius: 14px; background: var(--t-layout-set-toggle-sw-bg); box-shadow: inset 0 2px 0 var(--t-shade-35); transition: background .15s; }
.set-toggle .sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--t-layout-set-toggle-sw-after-bg); border: 2px solid var(--ink); transition: transform .15s, background .15s; }
.set-toggle.on .sw { background: var(--t-layout-set-toggle-on-sw-bg); }
.set-toggle.on .sw::after { transform: translateX(20px); background: var(--t-white); }
.set-txt { display: grid; gap: 2px; }
.set-txt b { font-weight: normal; font-size: 16px; }
.m-scroll { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.m-scroll input[type=range] { flex: 1; padding: 0; height: 8px; accent-color: var(--gold); box-shadow: none; background: transparent; border: 0; }
.m-scroll input[type=range]:disabled { opacity: .35; }
.boost-line { display: inline-flex; align-items: center; gap: 5px; }
.boost-ico { width: 16px; height: 16px; object-fit: contain; filter: url(#outline); }
.boost-on { color: var(--gold); font-weight: normal; }

.tabs {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 20px 0;
  max-width: 1400px; margin: 0 auto;
}
.tab {
  padding: 9px 18px 8px; font-size: 17px;
  background: var(--panel-2); color: var(--text-2);
  border: var(--outline); border-radius: 10px;
  box-shadow: 0 4px 0 var(--ink);
  transform: skew(-6deg);
  transition: transform .08s, background .15s;
}
.tab > span { display: inline-block; transform: skew(6deg); }
.tab:hover { background: var(--t-layout-tab-hover-bg); color: var(--t-white); }
.tab.active { background: var(--gold); color: var(--ink); text-shadow: none; }
.tab:active { transform: skew(-6deg) translateY(3px); box-shadow: 0 1px 0 var(--ink); }

main { max-width: 1400px; margin: 0 auto; padding: 18px 20px 60px; }

.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 1100px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  main { padding: 14px 16px 50px; }
  .tabs { padding: 12px 16px 0; }
  .topbar { padding: 10px 16px; }
  .logo { font-size: 21px; }
  /* Longer button words (Atualizar, Iniciar sesión) take the room from the account menu, not from the gutter. */
  .account-switch { min-width: 0; max-width: 100%; flex: 1 1 auto; }
  .account-switch .acc-menu { min-width: 0; flex: 0 1 auto; }
  .account-switch .btn { flex: none; }
}
.mt { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- Panels ---------------------------------------------------------------------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--t-panels-panel-bg) 0%, var(--panel) 40%, var(--panel-2) 100%);
  border: var(--outline);
  border-radius: var(--radius);
  box-shadow: inset 0 3px 0 var(--panel-hi), var(--drop);
  padding: 16px;
  min-width: 0;
}
.panel.dark { background: linear-gradient(180deg, var(--t-panels-panel-dark-bg), var(--t-panels-panel-dark-bg-2)); }
.panel-title {
  display: inline-flex; align-items: center; gap: 8px;
  margin: -30px 0 12px -6px; padding: 6px 16px 5px;
  font-size: 19px; color: var(--t-white);
  background: linear-gradient(var(--t-panels-panel-title-bg), var(--t-panels-panel-title-bg-2));
  border: var(--outline); border-radius: 9px;
  box-shadow: 0 3px 0 var(--ink);
  transform: skew(-7deg);
}
.panel-title > * { transform: skew(7deg); }
.panel-title .t { transform: skew(7deg); }
/* A long title (another language) never grows the panel: it shrinks, then slides (public/js/fit.js). */
.panel-title { max-width: calc(100% - 4px); }
.panel-title .t.fit { min-width: 0; }
/* Icon in front of a panel's name (iconTitle), a little taller than the label like in-game. Inline and
   centered on the text, so titles with and without an icon sit at the same height. */
.pt-ico { position: relative; display: inline-block; vertical-align: middle; width: 30px; height: 30px; margin: -7px 6px -7px -7px; }
/* Out of flow, so an icon with text in it (EXP level, calendar day) can't move the title's baseline */
.panel-title .pt-ico > * { position: absolute; left: 0; top: 0; }
/* Beside the name's box (not in it, see iconTitle): the title's 8px gap already spaces it */
.panel-title > .pt-ico { flex: none; margin-right: -2px; }
.pt-ico > .ico-pair, .pt-ico > .ico-period, .pt-ico > .ico-cal, .pt-ico > .ico-duo { zoom: .625; }
/* EXP star (the game's blue star) with the level on its dark disc */
.panel-title .pt-ico > .xp-star { width: 100%; height: 100%; }
.xp-star img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 0 var(--t-shade-35)); }
.xp-star b { position: absolute; left: 49.5%; top: 48.6%; transform: translate(-50%, -50%); font-weight: normal; font-size: 10px; line-height: 1; }
.panel-title .pt-ico > .streak-flame { left: 2px; }
/* Icons that fill their whole square (e.g. the round gold coin) read bigger: drawn at 80 % */
.panel-title .pt-ico > .ico-sm { left: 10%; top: 10%; width: 80%; height: 80%; }
.pt-ico > .nofame-ico { filter: grayscale(1) brightness(.85) drop-shadow(0 2px 0 var(--t-shade-35)); }
.panel.has-title { margin-top: 18px; padding-top: 14px; }
.panel-sub { margin: -4px 0 12px; color: var(--text-2); font-size: 14px; }
.panel-head { display: flow-root; } /* same line box as a plain title, so the content below lines up with sibling panels */
.panel-aside { float: right; margin-left: 12px; padding-top: 1px; color: var(--text-2); font-size: 14px; line-height: 17px; text-align: right; }

.inset {
  background: var(--surface);
  border: var(--outline);
  border-radius: 10px;
  box-shadow: inset 0 4px 0 var(--t-shade-35);
  padding: 12px;
}

/* ---------- Buttons & inputs ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px 8px; font-size: 17px; cursor: pointer;
  color: var(--t-white);
  background: linear-gradient(var(--t-buttons-btn-bg), var(--gold) 50%, var(--t-buttons-btn-bg-2));
  border: var(--outline); border-radius: 11px;
  box-shadow: inset 0 2px 0 var(--t-glow-45), 0 4px 0 var(--ink);
  transition: transform .06s;
  /* The game's outlined letters (same as .stroke-sm), so white text reads on the green, blue and gold fills */
  text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink), 0 2px 0 var(--ink);
}
/* Icons inside a button get the same dark rim and drop */
.btn > :is(svg, img) { filter: drop-shadow(0 0 1px var(--ink)) drop-shadow(0 2px 0 var(--ink)); }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 var(--t-glow-45), 0 1px 0 var(--ink); }
.btn.green { background: linear-gradient(var(--t-buttons-btn-green-bg), var(--green) 50%, var(--t-buttons-btn-green-bg-2)); }
.btn.blue { background: linear-gradient(var(--t-buttons-btn-blue-bg), var(--t-buttons-btn-blue-bg-2) 50%, var(--t-buttons-btn-blue-bg-3)); }
.btn.red { background: linear-gradient(var(--t-buttons-btn-red-bg), var(--red) 50%, var(--t-buttons-btn-red-bg-2)); }
.btn.small { padding: 6px 12px 5px; font-size: 14px; border-radius: 9px; }
.btn:disabled { filter: grayscale(0.8); cursor: wait; }

input, select, textarea {
  font-size: 16px; color: var(--ink);
  background: var(--t-buttons-input-bg); border: var(--outline); border-radius: 9px;
  padding: 8px 12px; outline: none;
  box-shadow: inset 0 3px 0 var(--t-shade-15);
}
input:focus, select:focus, textarea:focus { background: var(--t-white); box-shadow: inset 0 3px 0 var(--t-shade-15), 0 0 0 3px var(--gold); }
label.field, div.field { display: grid; gap: 4px; font-size: 14px; color: var(--text-2); }

.seg { display: inline-flex; border: var(--outline); border-radius: 10px; overflow: hidden; box-shadow: 0 3px 0 var(--ink); }
.seg button {
  border: 0; border-right: 2px solid var(--ink); padding: 6px 12px 5px; font-size: 14px; cursor: pointer;
  background: var(--panel-2); color: var(--text-2);
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--gold); color: var(--ink); }

/* ---------- Badges & icons -------------------------------------------------------------- */
.trophy-ico { height: 1.05em; width: auto; aspect-ratio: 137 / 106; object-fit: contain; display: inline-block; vertical-align: -0.16em; }
/* Chips share the power badge's height (30px); bigger icons may stick out of the frame. */
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 1px 11px 0; font-size: 14px; white-space: nowrap;
  background: var(--t-badges-chip-bg); border: 2px solid var(--ink); border-radius: 999px;
}
/* Win streak chip: the flame sits over the chip's left end, taller than the chip */
.chip.has-flame { padding-left: 34px; }
/* Brawler classes: filter buttons (Brawlers tab) and the tag on the brawler page */
.class-ico { width: 20px; height: 20px; object-fit: contain; flex: none; }
.class-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.class-filter button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 1px 11px 0; cursor: pointer;
  font-size: 14px; color: var(--text-2); background: var(--panel-2);
  border: 2px solid var(--ink); border-radius: 9px; box-shadow: 0 3px 0 var(--ink);
}
.class-filter button:hover { color: var(--t-white); filter: brightness(1.1); }
.class-filter button.on { background: var(--gold); color: var(--ink); }
.class-tag {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 1px 9px 0; font-size: 14px;
  background: var(--t-badges-class-tag-bg); border: 2px solid var(--ink); border-radius: 8px;
}
.chip.has-flame .streak-flame { position: absolute; left: -9px; top: 50%; transform: translateY(-54%); }
.power-badge {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; font-size: 15px;
  background: radial-gradient(circle at 50% 35%, var(--t-badges-power-badge-bg), var(--t-badges-power-badge-bg-2) 70%);
  border: 2.5px solid var(--ink); border-radius: 50%;
  box-shadow: 0 2px 0 var(--ink);
}
.power-badge.sm { width: 22px; height: 22px; font-size: 12px; border-width: 2px; box-shadow: 0 1px 0 var(--ink); }
.power-badge.max { background: radial-gradient(circle at 50% 35%, var(--t-badges-power-badge-max-bg), var(--t-badges-power-badge-max-bg-2) 70%); }
/* Power 11 with a hypercharge: the hypercharge drop with the level on it (rainbow rim with every Buffy) */
.hc-badge { --s: 30px; position: relative; display: inline-grid; place-items: center; width: var(--s); height: calc(var(--s) * 1.18); }
.hc-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hc-badge b { position: relative; font-weight: normal; font-size: calc(var(--s) * .5); line-height: 1; margin-top: 22%; }
.hc-badge.buffed svg { filter: drop-shadow(0 0 3px var(--t-badges-hc-badge-buffed-svg-filter)); }
.result-pill { padding: 2px 9px 1px; border-radius: 7px; border: 2px solid var(--ink); font-size: 13px; color: var(--ink); }
.result-pill.victory { background: var(--victory); }
.result-pill.defeat { background: var(--defeat); color: var(--t-white); }
.result-pill.draw { background: var(--draw); }

/* ---------- Stat tiles ------------------------------------------------------------------ */
.stat {
  background: var(--surface); border: var(--outline); border-radius: 11px;
  box-shadow: inset 0 3px 0 var(--t-shade-35);
  padding: 10px 14px 12px; min-width: 0;
}
.stat .label { font-size: 13px; color: var(--text-3); text-transform: uppercase; }
/* Fixed line heights: a label or line shrunk to fit (fit.js) keeps the tile the same height as its neighbours. */
.stat .label { height: 15px; line-height: 15px; }
.stat .delta { height: 17px; line-height: 17px; }
.stat .value { font-size: 28px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .delta { font-size: 14px; }
.delta.up { color: var(--victory); }
.delta.down { color: var(--defeat); }
.delta.flat { color: var(--text-3); }

/* ---------- Progress bars (records-style) ----------------------------------------------- */
.bar {
  position: relative; height: 30px;
  background: var(--t-bars-bar-bg); border: var(--outline); border-radius: 9px;
  box-shadow: inset 0 3px 0 var(--t-shade-40);
  overflow: hidden;
}
.bar .fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(var(--t-bars-bar-fill-bg) 0 45%, var(--t-bars-bar-fill-bg-2) 46% 100%);
  border-right: 3px solid var(--ink);
}
.bar.green .fill { background: linear-gradient(var(--t-bars-bar-green-fill-bg) 0 45%, var(--t-bars-bar-green-fill-bg-2) 46% 100%); }
.bar.purple .fill { background: linear-gradient(var(--t-bars-bar-purple-fill-bg) 0 45%, var(--t-bars-bar-purple-fill-bg-2) 46% 100%); }
.bar.blue .fill { background: linear-gradient(var(--t-bars-bar-blue-fill-bg) 0 45%, var(--t-bars-bar-blue-fill-bg-2) 46% 100%); }
/* Game item colors (Collection) */
.bar.brawlers .fill { background: linear-gradient(var(--t-bars-bar-brawlers-fill-bg) 0 45%, var(--t-bars-bar-brawlers-fill-bg-2) 46% 100%); }
.bar.pp .fill { background: linear-gradient(var(--t-bars-bar-pp-fill-bg) 0 45%, var(--t-bars-bar-pp-fill-bg-2) 46% 100%); }
.bar.gadget .fill { background: linear-gradient(var(--t-bars-bar-gadget-fill-bg) 0 45%, var(--t-bars-bar-gadget-fill-bg-2) 46% 100%); }
.bar.sp .fill { background: linear-gradient(var(--t-bars-bar-sp-fill-bg) 0 45%, var(--t-bars-bar-sp-fill-bg-2) 46% 100%); }
.bar.hc .fill { background: linear-gradient(var(--t-bars-bar-hc-fill-bg) 0 45%, var(--t-bars-bar-hc-fill-bg-2) 46% 100%); }
.bar.gear .fill { background: linear-gradient(var(--t-bars-bar-gear-fill-bg) 0 45%, var(--t-bars-bar-gear-fill-bg-2) 46% 100%); }
.bar.coins .fill { background: linear-gradient(var(--t-bars-bar-coins-fill-bg) 0 45%, var(--t-bars-bar-coins-fill-bg-2) 46% 100%); }
/* Prestige levels, in the rank colors */
.bar.rank-p1 .fill { background: linear-gradient(var(--t-bars-bar-rank-p1-fill-bg) 0 45%, var(--t-bars-bar-rank-p1-fill-bg-2) 46% 100%); }
.bar.rank-p2 .fill { background: linear-gradient(var(--t-bars-bar-rank-p2-fill-bg) 0 45%, var(--t-bars-bar-rank-p2-fill-bg-2) 46% 100%); }
.bar.rank-p3 .fill { background: linear-gradient(var(--t-bars-bar-rank-p3-fill-bg) 0 45%, var(--t-bars-bar-rank-p3-fill-bg-2) 46% 100%); }
/* Buffies: holographic like their Bling versions, with a sliding shine and twinkles */
.bar.buffy .fill { overflow: hidden; background: linear-gradient(90deg, var(--t-bars-bar-buffy-fill-bg), var(--t-bars-bar-buffy-fill-bg-2) 35%, var(--t-bars-bar-buffy-fill-bg-3) 65%, var(--t-bars-bar-buffy-fill-bg-4)); }
.bar.buffy .fill::after {
  content: '✦ ✧ ✦'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 11px; letter-spacing: 6px; color: var(--t-white); text-shadow: 0 0 4px var(--t-white); animation: twinkle 1.6s ease-in-out infinite;
}
/* The holographic shine (Buffies bar, Chroma tag): a light band 2.2× the width of its box, sliding
   across from right to left in 3.2 s. A layer moved with transform, so the compositor plays it. */
.bar.buffy .fill::before, .so-chroma::before {
  content: ''; position: absolute; left: 0; top: 0; width: 220%; height: 100%; pointer-events: none;
  background: linear-gradient(105deg, transparent 0 40%, var(--t-glow-70) 48%, transparent 56% 100%);
  animation: holo-shine 3.2s linear infinite;
}
@keyframes holo-shine { from { transform: translateX(-87.2727%); } to { transform: translateX(32.7273%); } }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.coll-label { display: inline-flex; align-items: center; gap: 6px; }
.coll-ico { width: 22px; height: 22px; object-fit: contain; flex: none; }
.bar .txt { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; }
.bar .bar-label { display: inline-flex; align-items: center; gap: 5px; }
.bar .bar-ico { width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 1px 0 var(--ink)); }
.bar.thin { height: 18px; border-width: 2px; border-radius: 7px; }
.bar.thin .txt { font-size: 12px; }

/* ---------- Profile header -------------------------------------------------------------- */
.profile { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile .avatar {
  width: 92px; height: 92px; border-radius: 16px; border: 4px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink); background: var(--surface); object-fit: cover;
}
.profile .name { font-size: 36px; line-height: 1; }
.profile .rarity-tag { font-size: 14px; padding: 3px 9px 2px; }
/* Brawler page of a brawler the account doesn't have (as on the locked / unreleased cards) */
.profile .avatar.locked { filter: grayscale(1) brightness(.6) contrast(.9); }
.profile .avatar.unreleased { filter: brightness(0) opacity(.75); background: transparent; }
.profile .tag { color: var(--text-2); font-size: 16px; margin-top: 4px; }
.hero-trophies { margin-left: auto; text-align: right; }
.hero-trophies .num { font-size: 54px; line-height: 1; color: var(--gold); }
.hero-trophies .sub { color: var(--text-2); }
@media (max-width: 760px) { .hero-trophies { margin-left: 0; text-align: left; } .hero-trophies .num { font-size: 44px; } }

/* ---------- Brawler cards --------------------------------------------------------------- */
.brawler-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bcard {
  position: relative; display: block;
  background: var(--t-bcards-bcard-bg);
  border: var(--outline); border-radius: 12px; box-shadow: 0 5px 0 var(--ink);
  overflow: hidden; transition: transform .1s;
}
.bcard:hover { transform: translateY(-3px) rotate(-0.6deg); }
.bcard.locked { filter: grayscale(1) brightness(0.6); }
/* Wide Fan Kit portrait (transparent, so the card's rarity color shows behind it), cropped to the square */
.bcard .portrait { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 25%; }
.bcard .top { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; justify-content: space-between; align-items: flex-start; }
.bcard .troph { font-size: 17px; background: var(--t-bcards-bcard-troph-bg); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 7px 1px; }
.bcard .nameplate {
  padding: 6px 8px 5px; background: var(--ink); font-size: 16px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bcard .meta { display: flex; justify-content: space-between; padding: 0 8px 7px; background: var(--ink); font-size: 12px; color: var(--text-2); }
.bcard .streak { position: absolute; right: 6px; bottom: 70px; font-size: 13px; background: var(--orange); color: var(--ink); border: 2px solid var(--ink); border-radius: 7px; padding: 1px 6px 0; }
.bcard .rank-stack { display: grid; justify-items: center; gap: 3px; }
/* The level ball and the Hypercharge drop share one 30px slot: the drop is centered on where the ball would be and may overlap the Prestige badge */
.pw-slot { position: relative; display: block; width: 30px; height: 30px; }
.pw-slot > .hc-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.rshield { --s: 30px; position: relative; display: inline-grid; place-items: center; width: var(--s); height: calc(var(--s) * 1.18); }
.rshield img { position: absolute; object-fit: contain; }
.rshield span { position: relative; font-size: calc(var(--s) * .52); line-height: 1; margin-top: -2px; }
.bcard .meta-bar { padding: 0 8px 5px; background: var(--ink); }

/* ---------- Tables ---------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
/* Accounts › Tracked accounts: more than 5 cards scroll, 5 in view (the height is measured in accounts.js). */
.acc-list { display: grid; gap: 10px; }
.acc-list.scroll { overflow-y: auto; padding-right: 6px; }
table.game { width: 100%; border-collapse: separate; border-spacing: 0 5px; font-size: 15px; }
table.game th { text-align: left; font-weight: normal; color: var(--text-3); font-size: 13px; padding: 0 10px; text-transform: uppercase; white-space: nowrap; }
table.game td { background: var(--t-tables-table-game-td-bg); padding: 7px 10px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); white-space: nowrap; }
table.game td:first-child { border-left: 2px solid var(--ink); border-radius: 8px 0 0 8px; }
table.game td:last-child { border-right: 2px solid var(--ink); border-radius: 0 8px 8px 0; }
table.game td.num, table.game th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.game tr.clickable { cursor: pointer; }
table.game tr.clickable:hover td { background: var(--t-glow-8); }
.mini-img { width: 30px; height: 30px; object-fit: contain; display: inline-block; vertical-align: middle; }

/* ---------- Charts ---------------------------------------------------------------------- */
.chart-box { position: relative; height: 280px; }
.chart-box.tall { height: 360px; }
.chart-box.short { height: 200px; }
.chart-box.short.tight { height: 158px; }

.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.chart-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ink); vertical-align: -2px; margin-right: 5px; }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--text-3); text-align: center; padding: 20px; }
/* Subtitle with a toggle (e.g. DETAILED) at its right end */
.sub-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sub-row .seg { flex: none; margin: -9px 0; } /* the button does not make the row taller than plain text, so charts line up with sibling panels */
/* Strip at the top of a chart box (title on the left, optional toggle on the right); same height with or without the toggle */
.inset-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; margin: -2px 0 6px 2px; font-size: 14px; color: var(--text-2); }
.inset-head .seg { flex: none; }
.table-toggle { margin-top: 8px; }
.table-toggle summary { cursor: pointer; color: var(--text-3); font-size: 13px; }

.heatmap { display: grid; grid-template-columns: 38px repeat(24, minmax(0, 1fr)); gap: 3px; font-size: 11px; }
.heatmap .cell { aspect-ratio: 1 / 1; border-radius: 4px; background: var(--t-charts-heatmap-cell-bg); position: relative; }
.heatmap .cell:hover { outline: 2px solid var(--gold); }
.heatmap .lbl { color: var(--text-3); display: grid; align-items: center; }
.heatmap .hlbl { color: var(--text-3); text-align: center; }
.heat-legend { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.heat-legend .cell { width: 16px; height: 16px; border-radius: 4px; background: var(--t-charts-heat-legend-cell-bg); }
.heat-legend span:first-child { margin-right: 4px; }
.heat-legend span:last-child { margin-left: 4px; }

/* ---------- Items (gadgets/star powers/gears) ------------------------------------------- */
.items { display: flex; flex-wrap: wrap; gap: 10px; }
.item {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px;
  background: var(--t-items-item-bg); border: 2px solid var(--ink); border-radius: 10px; font-size: 14px;
}
.item img { width: 34px; height: 34px; object-fit: contain; }
.item.missing { opacity: 0.45; filter: grayscale(1); }
.item.none img { filter: brightness(0) opacity(.8); } /* the empty icon as a silhouette: nothing to unlock yet */
.item .hc { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, var(--t-items-item-hc-bg), var(--t-items-item-hc-bg-2)); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 16px; }

/* ---------- Battles list ---------------------------------------------------------------- */
.battle {
  display: grid; grid-template-columns: 6px 52px minmax(0, 1fr) 150px 230px; gap: 12px; align-items: center; cursor: pointer;
  background: var(--t-battles-battle-bg); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 12px 8px 0; overflow: hidden;
}
.battle + .battle { margin-top: 8px; }
.battle .stripe { align-self: stretch; margin: -8px 0; }
.battle.victory .stripe { background: var(--victory); }
.battle.defeat .stripe { background: var(--defeat); }
.battle.draw .stripe { background: var(--draw); }
.battle .mode-ico { width: 44px; height: 44px; object-fit: contain; }
.battle .teams { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.battle .team { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--t-shade-25); }
.battle .team.mine { outline: 2px solid var(--gold); }
/* Duo and Solo Showdown (5+ boxes): everyone on one line, like the other modes */
.battle .teams.one-row { flex-wrap: nowrap; gap: 8px; }
@media (max-width: 560px) { .battle .teams.one-row { flex-wrap: wrap; } }
.bd-pwrap { position: relative; flex: none; line-height: 0; }
.lvl-corner { position: absolute; top: -7px; right: -8px; z-index: 1; line-height: 0; pointer-events: none; }
.lvl-corner.hc { top: -10px; right: -9px; }
.power-badge.xs { width: 20px; height: 20px; font-size: 12px; border-width: 2px; box-shadow: none; color: var(--t-white); font-weight: normal; text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink); }
.power-badge.sm { color: var(--t-white); }
.battle .team img { width: 26px; height: 26px; object-fit: contain; }
.battle .tc { font-size: 18px; text-align: right; }
/* Star Player sits left of the result */
.battle .tc-top { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
/* "STAR PLAYER" as in-game: yellow → orange from top to bottom with the dark outline, a light band
   sliding across like the Brawl Pass name, and the Legendary tag's sparkles. */
.star-player { position: relative; display: inline-block; font-size: 15px; color: var(--t-battles-star-player-text); white-space: nowrap; }
.star-player::after {
  content: attr(data-text); content: attr(data-text) / '';
  position: absolute; left: 0; top: 0; pointer-events: none; text-shadow: none; white-space: nowrap; color: transparent;
  background: linear-gradient(180deg, var(--t-battles-star-player-after-bg) 0%, var(--t-battles-star-player-after-bg-2) 42%, var(--t-battles-star-player-after-bg-3) 100%);
  -webkit-background-clip: text; background-clip: text;
}
/* The light band: a strip of bands (one per 6em) inside a layer masked to the letters (textshine.js),
   sliding one band per 2.4 s */
.star-player .tm::before {
  background: linear-gradient(100deg, transparent 35%, var(--t-glow-75) 50%, transparent 65%) 0 0 / 6em 100% repeat-x;
  --tm-tile: 6em; animation: tm-slide 2.4s linear infinite;
}
/* Six sparkles around the words, each lit ~0.8 s of a 5.1 s cycle and 0.85 s apart: about one at a time
   (order and start are shuffled per badge in battles.js) */
.star-player .sp, .sparkly .sp {
  position: absolute; width: 7px; height: 7px; pointer-events: none; background: var(--t-battles-star-player-sp-bg);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 2px var(--t-battles-star-player-sp-filter)); transform: scale(0); animation: star-sparkle 5.1s ease-in-out infinite;
}
.star-player .sp.s0, .sparkly .sp.s0 { top: -5px; left: 6%; }
.star-player .sp.s1, .sparkly .sp.s1 { bottom: -4px; left: 62%; animation-delay: .5s; }
.star-player .sp.s2, .sparkly .sp.s2 { top: 22%; right: -6px; animation-delay: 1s; }
.star-player .sp.s3, .sparkly .sp.s3 { bottom: -5px; left: 18%; animation-delay: 1.5s; }
.star-player .sp.s4, .sparkly .sp.s4 { top: -6px; left: 48%; animation-delay: 2s; }
.star-player .sp.s5, .sparkly .sp.s5 { top: 30%; left: -6px; animation-delay: 2.5s; }
@keyframes star-sparkle {
  0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
  6% { transform: scale(1) rotate(30deg); opacity: 1; }
  16%, 99% { transform: scale(0) rotate(60deg); opacity: 0; }
}
/* Star Player tile (Battles): the gold label at the tile's label size, sparkles around the number */
.stat .label .star-player { font-size: inherit; letter-spacing: inherit; }
.sparkly { position: relative; display: inline-block; }
@media (prefers-reduced-motion: reduce) { .star-player .sp, .sparkly .sp, .tm::before { animation: none; } }
/* A heading row inside a table (e.g. "Special modes" in Wins per mode) */
table.game tr.table-break td { background: none; border: 0; padding: 14px 4px 4px; color: var(--text-2); font-size: 14px; }

/* ---------- Banners & toasts ------------------------------------------------------------ */
.banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 16px;
  background: linear-gradient(var(--t-banners-banner-bg), var(--t-banners-banner-bg-2)); border: var(--outline); border-radius: 12px; box-shadow: var(--drop);
}
.banner.error { background: linear-gradient(var(--t-banners-banner-error-bg), var(--t-banners-banner-error-bg-2)); }
.banner .grow { flex: 1; min-width: 200px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  padding: 10px 20px; background: var(--ink); border: 3px solid var(--gold); border-radius: 12px; font-size: 16px;
  animation: pop .2s ease-out;
}
@keyframes pop { from { transform: translate(-50%, 20px); opacity: 0; } }

.loading { display: grid; place-items: center; min-height: 40vh; font-size: 26px; color: var(--text-2); }
.spin.sm { width: 18px; height: 18px; border-width: 3px; margin: 0; flex: none; }
.spin { display: inline-block; width: 34px; height: 34px; border: 5px solid var(--ink); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid var(--ink); }
.status-dot.ok { background: var(--victory); }
.status-dot.err { background: var(--defeat); }


.event-card { overflow: hidden; padding: 0; }
.event-card .head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--t-shade-30); border-bottom: 3px solid var(--ink); }
.event-card .head img { width: 30px; height: 30px; }
.event-card .map { width: 100%; height: 170px; object-fit: contain; background: var(--surface); }
.map-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.map-zoom:hover .map { filter: brightness(1.12); }
.map-zoom:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

/* Map zoom: the map big over a dark backdrop */
.lightbox {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px;
  background: var(--t-banners-lightbox-bg); animation: lb-in .15s ease-out;
}
.lightbox-card {
  margin: 0; display: grid; gap: 10px; max-width: min(96vw, 900px); padding: 12px;
  background: linear-gradient(180deg, var(--t-banners-lightbox-card-bg), var(--panel-2)); border: var(--outline); border-radius: var(--radius); box-shadow: var(--drop);
}
.lightbox-card figcaption { font-size: 18px; }
.lightbox-title { gap: 8px; }
.lightbox-title img, .lightbox-mode { width: 28px; height: 28px; object-fit: contain; }
.lightbox-none { margin: 0; padding: 24px 12px; text-align: center; }
.lightbox-map {
  width: auto; max-width: 100%; max-height: calc(100vh - 120px); margin: 0 auto; cursor: zoom-out;
  background: var(--surface); border: var(--outline); border-radius: 10px; image-rendering: auto;
}
@keyframes lb-in { from { opacity: 0; } }
.event-card .foot { padding: 8px 10px; font-size: 14px; color: var(--text-2); }

/* ---------- Rank badges (Wood → Gold → Prestige) ---------------------------------------- */
.rbadge {
  --s: 56px;
  position: relative; display: inline-block; flex: none; isolation: isolate;
  width: var(--s); height: calc(var(--s) * 1.18);
}
.rbadge .shield { position: absolute; object-fit: contain; }
/* Every rank's shield at one size: the hexagon matches Prestige 1's. The P2/P3 files are wider
   (wings, P3 also a crown) around a hexagon of the same pixel size, so their image is drawn larger
   and the wings stick out of the badge box, as in the game. */
.rbadge .shield, .rshield img { left: var(--sh-x, 0); top: var(--sh-y, 0); width: var(--sh-w, 100%); height: var(--sh-h, 100%); }
.rb-p2 { --sh-x: -12.6%; --sh-w: 125.2%; }
.rb-p3 { --sh-x: -18.7%; --sh-y: -9.4%; --sh-w: 137.4%; --sh-h: 107.5%; }
.profile > .rbadge { margin: 0 14px; }
.rbadge .face {
  position: absolute; left: 50%; top: 47%; width: 78%; height: 66%;
  transform: translate(-50%, -50%); object-fit: contain;
}
/* Wood–Gold: the neon line art becomes an embossed silhouette on the metal shield */
.rbadge.tier .face:not(.fallback):not(.pinface) { filter: grayscale(1) invert(1) contrast(1.3); mix-blend-mode: multiply; opacity: .6; }
.rbadge.rb-wood .face:not(.fallback):not(.pinface) { opacity: .5; }
/* Prestige: recolored neon per level (P1 purple, P2 pink, P3+ gold) */
.rbadge.prestige .face:not(.fallback):not(.pinface) { filter: hue-rotate(var(--hue)) saturate(var(--sat)) brightness(var(--bri)); }
.rbadge.rb-p1 { --hue: 42deg; --sat: 1.35; --bri: 1.05; }
.rbadge.rb-p2 { --hue: 100deg; --sat: 1.6; --bri: 1.1; }
.rbadge.rb-p3 { --hue: 188deg; --sat: 1.9; --bri: 1.25; }
/* Brawlers without a Fan Kit neon face (face pin, or portrait as a last resort): the #face-lines SVG
   filter (rank.js) turns their outlines into neon-style line art, then the same treatment as the
   real neon faces applies — embossed on Wood–Gold, recolored neon on Prestige. */
.rbadge .face.pinface, .rbadge .face.fallback { width: calc(70% * var(--fsc, 1)); height: calc(60% * var(--fsc, 1)); }
.rbadge.tier .face.pinface, .rbadge.tier .face.fallback {
  filter: url(#face-lines) grayscale(1) invert(1) contrast(1.3); mix-blend-mode: multiply; opacity: .65;
}
.rbadge.prestige .face.pinface, .rbadge.prestige .face.fallback {
  filter: url(#face-lines) hue-rotate(var(--hue)) saturate(var(--sat)) brightness(var(--bri));
}
.rbadge .pnum {
  position: absolute; left: 50%; bottom: -6%; transform: translateX(-50%);
  font-size: calc(var(--s) * .3); line-height: 1; color: var(--t-white);
}
/* Glitch every 5 s (0.4 s long): the face jumps right with red/cyan shadows (92%), then left and a bit
   down (94%), then up with the shadows swapped (96%). The face and two copies that already carry those
   shadows (rank.js) are stacked in a strip (each a face tall, 10% apart) inside a window where the face
   goes; the strip moves to show and shift each one: one transform animation per badge (compositor).
   Strip: 3.2 face heights, so one face height = 31.25% of it, a slot = 34.375%, 1% of a face = 0.3125%. */
.rbadge .rface {
  position: absolute; left: 50%; top: 47%; width: 78%; height: 66%; transform: translate(-50%, -50%);
  clip-path: inset(0 -25%);
}
.rbadge .rface:has(.pinface), .rbadge .rface:has(.fallback) { width: calc(70% * var(--fsc, 1)); height: calc(60% * var(--fsc, 1)); }
.rbadge .rface > i { position: absolute; left: 0; top: 0; width: 100%; height: 320%; animation: face-glitch 5s step-end infinite; }
.rbadge .rface > i > .face { left: 0; top: 0; width: 100%; height: 31.25%; transform: none; }
.rbadge .rface > i > .face.glitch-a { top: 34.375%; }
.rbadge .rface > i > .face.glitch-b { top: 68.75%; }
@keyframes face-glitch {
  0%, 91%, 100% { transform: none; }
  92% { transform: translate(4%, -34.375%); }
  94% { transform: translate(-3%, -34.0625%); }
  96% { transform: translate(0, -69.0625%); }
}
.rbadge.prestige .face.glitch-a:not(.fallback):not(.pinface) { filter: hue-rotate(var(--hue)) saturate(var(--sat)) brightness(var(--bri)) drop-shadow(2px 0 var(--t-rank-rbadge-prestige-face-glitch-a-not-not-filter)) drop-shadow(-2px 0 var(--t-rank-rbadge-prestige-face-glitch-a-not-not-filter-2)); }
.rbadge.prestige .face.glitch-b:not(.fallback):not(.pinface) { filter: hue-rotate(var(--hue)) saturate(var(--sat)) brightness(var(--bri)) drop-shadow(-2px 0 var(--t-rank-rbadge-prestige-face-glitch-b-not-not-filter)) drop-shadow(2px 0 var(--t-rank-rbadge-prestige-face-glitch-b-not-not-filter-2)); }
/* Faces redrawn from pins glitch too, keeping their line-art filter */
.rbadge.prestige .face.glitch-a.pinface, .rbadge.prestige .face.glitch-a.fallback { filter: url(#face-lines) hue-rotate(var(--hue)) saturate(var(--sat)) brightness(var(--bri)) drop-shadow(2px 0 var(--t-rank-rbadge-prestige-face-glitch-a-pinface-filter)) drop-shadow(-2px 0 var(--t-rank-rbadge-prestige-face-glitch-a-pinface-filter-2)); }
.rbadge.prestige .face.glitch-b.pinface, .rbadge.prestige .face.glitch-b.fallback { filter: url(#face-lines) hue-rotate(var(--hue)) saturate(var(--sat)) brightness(var(--bri)) drop-shadow(-2px 0 var(--t-rank-rbadge-prestige-face-glitch-b-pinface-filter)) drop-shadow(2px 0 var(--t-rank-rbadge-prestige-face-glitch-b-pinface-filter-2)); }

.chip-ico { width: 24px; height: 24px; object-fit: contain; display: inline-block; vertical-align: middle; margin: -4px 2px -4px -4px; }
.tag .chip-ico { width: 20px; height: 20px; margin: -3px 4px -3px 0; }
.xp-hex { position: relative; display: inline-grid; place-items: center; width: 34px; height: 30px; margin: -6px 4px -6px -6px; }
.xp-hex img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.xp-hex b { position: relative; font-weight: normal; font-size: 12px; }
.ptrophy { width: 1.15em; height: 1.15em; object-fit: contain; display: inline-block; vertical-align: -0.2em; }

/* ---------- Rank-themed bars ------------------------------------------------------------ */
.rt-wood { --c1: var(--t-rankbars-rt-wood-v-c1); --c2: var(--t-rankbars-rt-wood-v-c2); --glow: none; }
.rt-bronze { --c1: var(--t-rankbars-rt-bronze-v-c1); --c2: var(--t-rankbars-rt-bronze-v-c2); --glow: none; }
.rt-silver { --c1: var(--t-rankbars-rt-silver-v-c1); --c2: var(--t-rankbars-rt-silver-v-c2); --glow: none; }
.rt-gold { --c1: var(--t-rankbars-rt-gold-v-c1); --c2: var(--t-rankbars-rt-gold-v-c2); --glow: none; }
.rt-p1 { --c1: var(--t-rankbars-rt-p1-v-c1); --c2: var(--t-rankbars-rt-p1-v-c2); --glow: var(--t-rankbars-rt-p1-v-glow); }
.rt-p2 { --c1: var(--t-rankbars-rt-p2-v-c1); --c2: var(--t-rankbars-rt-p2-v-c2); --glow: var(--t-rankbars-rt-p2-v-glow); }
.rt-p3 { --c1: var(--t-rankbars-rt-p3-v-c1); --c2: var(--t-rankbars-rt-p3-v-c2); --glow: var(--t-rankbars-rt-p3-v-glow); }

.rankbars { display: grid; gap: 6px; }
.rb-row {
  display: grid; grid-template-columns: 40px 88px minmax(0, 1fr) 128px; gap: 10px; align-items: center;
  padding: 2px 4px; border-radius: 8px;
}
.rb-row:hover { background: var(--t-glow-6); }
.rb-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-track {
  position: relative; height: 20px; border-radius: 6px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(var(--tick) - 2px), var(--t-glow-14) calc(var(--tick) - 2px) var(--tick)),
    var(--t-rankbars-rb-track-bg-2);
  border: 2px solid var(--ink);
}
.rb-fill {
  position: absolute; inset: 0 auto 0 0; border-right: 2px solid var(--ink);
  background: linear-gradient(var(--c1) 0 45%, var(--c2) 46% 100%);
}
.rb-fill[class*="rt-p"] {
  background: linear-gradient(90deg, var(--t-shade-55), var(--t-shade-25)), linear-gradient(var(--c1) 0 45%, var(--c2) 46% 100%);
  box-shadow: inset 0 0 0 2px var(--glow), inset 0 0 10px var(--glow), 0 0 8px var(--glow);
}
/* Glitch every 4.2 s: a slice of the bar jumps right in another hue (89–91%), another slice jumps left
   in the opposite hue (91–93%), then a middle slice jumps left (95–97%). The three slices sit ready
   (cut, shifted and recolored) in a strip four bars tall whose first slot is empty; the strip moves
   to show one slot at a time (transform, compositor) instead of animating clip-path and filter. */
.rbar-glitch { position: absolute; inset: 0; pointer-events: none; clip-path: inset(0 -12px); }
.rbar-glitch > i { position: absolute; left: 0; right: 0; top: 0; height: 400%; animation: rb-glitch 4.2s step-end infinite; }
.rbar-glitch > i > i {
  position: absolute; left: 0; right: 0; height: 25%;
  background: linear-gradient(90deg, var(--t-shade-55), var(--t-shade-25)), linear-gradient(var(--c1) 0 45%, var(--c2) 46% 100%);
}
.rbar-glitch > i > i:nth-child(1) { top: 25%; opacity: .9; clip-path: inset(10% 0 55% 0); transform: translateX(6px); filter: hue-rotate(60deg); }
.rbar-glitch > i > i:nth-child(2) { top: 50%; opacity: .9; clip-path: inset(60% 0 8% 0); transform: translateX(-5px); filter: hue-rotate(-60deg); }
.rbar-glitch > i > i:nth-child(3) { top: 75%; opacity: .8; clip-path: inset(35% 0 35% 0); transform: translateX(-8px); }
@keyframes rb-glitch {
  0%, 88%, 93%, 94%, 97%, 100% { transform: none; }
  89% { transform: translateY(-25%); }
  91% { transform: translateY(-50%); }
  95% { transform: translateY(-75%); }
}
.rb-val { display: grid; justify-items: end; line-height: 1.1; font-size: 13px; }
.rb-val .v { font-size: 15px; }
.rb-val .vp { color: var(--text-2); white-space: nowrap; }
.rb-axis { display: grid; grid-template-columns: 40px 88px minmax(0, 1fr) 128px; gap: 10px; padding: 0 4px; }
.rb-ticks { position: relative; height: 16px; }
.rb-ticks i { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--text-3); }
@media (max-width: 760px) {
  .rb-row, .rb-axis { grid-template-columns: 36px 64px minmax(0, 1fr) 92px; gap: 6px; }
}

.tierbar { position: relative; height: 7px; background: var(--t-rankbars-tierbar-bg); border-radius: 4px; overflow: hidden; border: 1.5px solid var(--t-black); }
.tierbar i { display: block; height: 100%; background: linear-gradient(var(--c1), var(--c2)); }
.tierbar[class*="rt-p"] i { box-shadow: 0 0 6px var(--glow); }
/* Marks at 250 / 500 / 750 trophies, drawn over the fill */
.tierbar::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--t-shade-55) calc(25% - 1px) 25%);
}

/* ---------- Brawlidex ------------------------------------------------------------------- */
.brawlidex { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 14px 28px; justify-items: center; }
.brawlidex a { display: block; transition: transform .1s; }
.brawlidex a:hover { transform: translateY(-3px) scale(1.06); }

/* ---------- Win streak flame (as in-game): 2–5 drop, 6–10 flame with core, 11+ big core ---------- */
/* 8 shapes per stage measured from the game, one after another in a loop (measured cycles 0.43–0.45 s,
   like the game's frame-by-frame flicker; all stages use 0.44 s so the flames change frame together). They come pre-drawn in a sprite sheet (8 frames
   in a row per stage, each covering x 5–95 and y −9.5–110.5 of the flame's 100 × 110 box): the window
   below shows one frame and the sheet slides one frame at a time (transform + steps, no repaint). */
.streak-flame {
  --fs: 34px; --dur: .44s;
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--fs); height: calc(var(--fs) * 1.1); vertical-align: middle;
}
.streak-flame svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.streak-flame .f-sprite {
  position: absolute; left: calc(var(--fs) * .05); top: calc(var(--fs) * -.095);
  width: calc(var(--fs) * .9); height: calc(var(--fs) * 1.2); overflow: hidden; pointer-events: none;
}
.streak-flame .f-sprite::before {
  content: ''; position: absolute; left: 0; top: 0; width: 800%; height: 100%;
  background: url('/img/streak-flames.png') 0 var(--row, 0%) / 100% 300% no-repeat;
  animation: flame-frames var(--dur) steps(8) infinite;
}
.streak-flame.t2 { --row: 50%; }
.streak-flame.t3 { --row: 100%; }
@keyframes flame-frames { to { transform: translateX(-100%); } }
.streak-flame b {
  position: relative; margin-top: 30%; font-weight: normal; line-height: 1;
  font-size: calc(var(--fs) * .46); letter-spacing: -0.03em; transform: skewX(-9deg);
}
.streak-flame.two b { font-size: calc(var(--fs) * .38); }
/* Stage 1: yellow number with a dark outline */
.streak-flame.t1 b {
  color: var(--t-flame-streak-flame-t1-b-text);
  text-shadow: -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px 1.5px 0 var(--ink), 0 2px 0 var(--ink);
}
/* Stages 2–3: white number with a dark red outline. It also shakes, like the game (measured: up and
   down in turn, sideways at random), a bit softer: smaller, and gliding between spots instead of hopping. */
.streak-flame.t2 b, .streak-flame.t3 b {
  color: var(--t-white);
  text-shadow: -1.5px -1.5px 0 var(--t-flame-streak-flame-t2-b-text-shadow), 1.5px -1.5px 0 var(--t-flame-streak-flame-t2-b-text-shadow-2), -1.5px 1.5px 0 var(--t-flame-streak-flame-t2-b-text-shadow-3), 1.5px 1.5px 0 var(--t-flame-streak-flame-t2-b-text-shadow-4), 0 2.5px 0 var(--t-flame-streak-flame-t2-b-text-shadow-5);
  animation: streak-shake .72s ease-in-out infinite;
}
@keyframes streak-shake {
  0%, 100% { translate: calc(var(--fs) * 0.0030) calc(var(--fs) * -0.0072); }
  11.1% { translate: calc(var(--fs) * -0.0084) calc(var(--fs) * 0.0072); }
  22.2% { translate: calc(var(--fs) * 0.0060) calc(var(--fs) * -0.0072); }
  33.3% { translate: calc(var(--fs) * 0.0012) calc(var(--fs) * 0.0072); }
  44.4% { translate: calc(var(--fs) * -0.0060) calc(var(--fs) * -0.0060); }
  55.6% { translate: calc(var(--fs) * 0.0096) calc(var(--fs) * 0.0060); }
  66.7% { translate: calc(var(--fs) * -0.0024) calc(var(--fs) * -0.0072); }
  77.8% { translate: calc(var(--fs) * -0.0096) calc(var(--fs) * 0.0072); }
  88.9% { translate: calc(var(--fs) * 0.0036) calc(var(--fs) * -0.0048); }
}
/* Twinkles: every 1.6 s a burst of three stars (left edge, low right, high right), 0.2 s apart,
   each popping in, turning a little and shrinking away in ~0.3 s */
.streak-flame .f-star {
  fill: var(--t-flame-streak-flame-f-star-fill); stroke-width: 1.8; transform-box: fill-box; transform-origin: center;
  transform: scale(0); animation: flame-twinkle 1.6s ease-out infinite;
}
.streak-flame .f-star.s1 { animation-delay: .2s; }
.streak-flame .f-star.s2 { animation-delay: .4s; }
@keyframes flame-twinkle {
  0% { transform: scale(0) rotate(0deg); }
  6% { transform: scale(1.2) rotate(15deg); }
  12% { transform: scale(1) rotate(30deg); }
  19%, 100% { transform: scale(0) rotate(45deg); }
}
.bcard .streak-flame { position: absolute; right: 6px; bottom: 64px; }

/* ---------- Records ----------------------------------------------------------------------- */
.record-level { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 280px; max-width: 620px; }
.record-ico { width: 64px; height: 74px; object-fit: contain; filter: drop-shadow(0 3px 0 var(--t-shade-35)); }
.record-ico.next { width: 54px; height: 62px; opacity: .9; }
.level-road { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.level-road .lvl { position: relative; z-index: 1; }
/* Progress bar behind the icons: dark rail with the colored fill clipped to the points earned */
.lvl-rail { position: absolute; left: 0; right: 0; top: 24px; height: 12px; z-index: 0; border: var(--outline); border-radius: 7px; background: var(--t-records-lvl-rail-bg); overflow: hidden; }
.lvl-rail > i { position: absolute; inset: 0; box-shadow: inset 0 3px 0 var(--t-glow-28), inset 0 -3px 0 var(--t-shade-22); }
@media (max-width: 760px) { .lvl-rail { display: none; } }
.level-road .lvl { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; font-size: 13px; cursor: default; }
/* Only the height sets the icon's size (VII–XII are wider but not bigger); levels not reached yet are 15% smaller */
.level-road .lvl > img { width: auto; height: 48px; max-width: none; object-fit: contain; }
.level-road .lvl.locked > img { transform: scale(.85); }
.level-road .lvl .pts { display: inline-flex; align-items: center; }
.level-road .lvl .pts { font-size: 11px; color: var(--text-2); }
.level-road .lvl.locked > img { filter: grayscale(1) brightness(.5); } /* solid, not see-through */
.level-road .lvl.locked { color: var(--text-3); }
@media (max-width: 760px) { .level-road { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- Total prestige emblem ------------------------------------------------------- */
.prestige-emblem { position: relative; display: inline-grid; place-items: center; width: 74px; height: 62px; }
.prestige-emblem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.prestige-emblem span { position: relative; font-size: 22px; margin-top: -2px; }

/* Profile header version, animated like the game's "TOTAL PRESTIGE": the rainbow neon outline
   travels around the emblem, the label flickers like a neon sign, a light line glows below. */
/* Overview: prestige to the left of the trophy count */
.hero-trophies.with-prestige { display: flex; align-items: center; justify-content: flex-end; gap: 26px; flex-wrap: wrap; }
.hero-prestige { align-items: center; gap: 16px; flex-wrap: nowrap; }
@media (max-width: 760px) { .hero-trophies.with-prestige { justify-content: flex-start; gap: 18px; } }
/* Phones, Overview (v1.28.0, the owner's request): Total Prestige and the trophies go beside the profile icon,
   where there was empty room, and the name, tag and chips run below at full width. */
@media (max-width: 760px) {
  .profile:has(> .hero-trophies.with-prestige) { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 14px; }
  .profile:has(> .hero-trophies.with-prestige) > .avatar { grid-column: 1; grid-row: 1; }
  .profile:has(> .hero-trophies.with-prestige) > .hero-trophies { grid-column: 2; grid-row: 1; flex-wrap: nowrap; gap: 10px; min-width: 0; }
  .profile:has(> .hero-trophies.with-prestige) > div:not(.hero-trophies) { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .profile:has(> .hero-trophies.with-prestige) > .avatar { width: 72px; height: 72px; border-radius: 13px; }
  .profile:has(> .hero-trophies.with-prestige) .total-prestige { zoom: .72; } /* the emblem and its label, smaller as a whole */
  .profile:has(> .hero-trophies.with-prestige) .hero-main { min-width: 0; }
  .profile:has(> .hero-trophies.with-prestige) .hero-main .num { font-size: 27px; white-space: nowrap; }
  .profile:has(> .hero-trophies.with-prestige) .hero-main .num .trophy-ico { width: 1.1em; height: auto; vertical-align: -.1em; } /* shrinks with the number (fit.js) */
  .profile:has(> .hero-trophies.with-prestige) .hero-main .num + .stroke { font-size: 16px !important; }
  .profile:has(> .hero-trophies.with-prestige) .hero-main .sub { font-size: 12px; }
  /* The tag beside the name (the line under it keeps the club and the year), and the bookmark in the card's top-right corner. */
  .profile:has(> .hero-trophies.with-prestige) .name-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
  .profile:has(> .hero-trophies.with-prestige) .name-tag { display: inline; color: var(--text-2); font-size: 16px; }
  .profile:has(> .hero-trophies.with-prestige) .tag > .tag-id, .profile:has(> .hero-trophies.with-prestige) .tag > .tag-sep { display: none; }
  .profile:has(> .hero-trophies.with-prestige) .tag:not(:has(> :not(.tag-id))) { display: none; } /* nothing left under the name */
  .profile:has(> .hero-trophies.with-prestige) { position: static; }
  .profile:has(> .hero-trophies.with-prestige) > .hero-trophies { padding-right: 32px; }
  .profile:has(> .hero-trophies.with-prestige) .bm-btn { position: absolute; top: 8px; right: 8px; width: 34px; height: 32px; }
}
.name-tag { display: none; }
/* Narrow phones (360 px or less): a smaller icon and emblem, so a 6-digit trophy count still fits beside them. */
@media (max-width: 360px) {
  /* the header's Refresh as an arrow icon (its word stays for screen readers), so the account menu keeps room for a name */
  .account-switch #collect-btn { width: 36px; padding: 0; font-size: 0; display: grid; place-items: center; }
  .account-switch #collect-btn::before { content: ''; width: 18px; height: 18px; background: var(--t-white);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11a8 8 0 1 0-2.3 5.7' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M21.5 4.5v7h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11a8 8 0 1 0-2.3 5.7' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M21.5 4.5v7h-7z'/%3E%3C/svg%3E") center / contain no-repeat; }
  .profile:has(> .hero-trophies.with-prestige) { column-gap: 10px; }
  .profile:has(> .hero-trophies.with-prestige) > .avatar { width: 60px; height: 60px; border-radius: 11px; border-width: 3px; }
  .profile:has(> .hero-trophies.with-prestige) .total-prestige { zoom: .6; }
  .profile:has(> .hero-trophies.with-prestige) > .hero-trophies { gap: 6px; }
}
.total-prestige { display: inline-grid; justify-items: center; cursor: default; }
.prestige-emblem.neon { width: 92px; height: 78px; }
.prestige-emblem.neon span { font-size: 26px; }
/* The rainbow turns around the emblem's center: a square of the gradient, bigger than the emblem,
   rotated (transform, compositor) under the outline-shaped mask */
.prestige-emblem .pe-neon {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  /* Only the emblem's outline: its own shape, minus the blue middle */
  -webkit-mask: url('/img/fk/icon_total_prestige?w=160') center / contain no-repeat, radial-gradient(ellipse 33% 36% at 50% 53%, transparent 97%, var(--t-black) 100%);
  -webkit-mask-composite: source-in;
  mask: url('/img/fk/icon_total_prestige?w=160') center / contain no-repeat, radial-gradient(ellipse 33% 36% at 50% 53%, transparent 97%, var(--t-black) 100%);
  mask-composite: intersect;
  mix-blend-mode: color; opacity: .9;
}
.prestige-emblem .pe-neon::before {
  content: ''; position: absolute; left: 50%; top: 52%; width: 150%; aspect-ratio: 1;
  background: conic-gradient(var(--t-prestige-prestige-emblem-pe-neon-before-bg), var(--t-prestige-prestige-emblem-pe-neon-before-bg-2), var(--t-prestige-prestige-emblem-pe-neon-before-bg-3), var(--t-prestige-prestige-emblem-pe-neon-before-bg-4), var(--t-prestige-prestige-emblem-pe-neon-before-bg-5));
  animation: pe-spin 4.4s linear infinite;
}
@keyframes pe-spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.tp-label { position: relative; display: grid; justify-items: center; line-height: .95; margin-top: -8px; padding-bottom: 6px; }
.tp-label b { font-weight: normal; font-size: 13px; letter-spacing: .04em; }
.tp-label em {
  position: relative; isolation: isolate;
  font-style: normal; display: block; transform: skewX(-10deg); font-size: 18px; letter-spacing: .02em;
}
.tp-label::after {
  content: ''; position: absolute; left: -16px; right: -16px; bottom: 0; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--t-prestige-tp-label-after-bg) 28%, var(--t-white) 50%, var(--t-prestige-tp-label-after-bg-3) 72%, transparent);
  box-shadow: 0 0 8px var(--t-prestige-tp-label-after-shadow); animation: pe-line 2.2s ease-in-out infinite;
}
@keyframes pe-line { 0%, 100% { opacity: .55; transform: scaleX(.85); } 50% { opacity: 1; transform: scaleX(1); } }

/* "Efeito prestígio versão 1" (v1.4.0): a blue neon word that now and then flickers to magenta and
   purple. Kept for reuse; the Overview header uses version 2 below. */
.prestige-fx-v1 {
  color: var(--t-prestige-prestige-fx-v1-text); -webkit-text-stroke: 1px var(--t-prestige-prestige-fx-v1--webkit-text-stroke); text-shadow: 0 0 6px var(--t-prestige-prestige-fx-v1-text-shadow);
  animation: pe-flicker 4.4s step-end infinite;
}
@keyframes pe-flicker {
  0% { color: var(--t-prestige-kf-pe-flicker-0-text); text-shadow: 0 0 6px var(--t-prestige-kf-pe-flicker-0-text-shadow); }
  47% { color: var(--t-prestige-kf-pe-flicker-47-text); text-shadow: 0 0 10px var(--t-prestige-kf-pe-flicker-47-text-shadow); }
  51% { color: var(--t-prestige-kf-pe-flicker-51-text); text-shadow: 0 0 6px var(--t-prestige-kf-pe-flicker-51-text-shadow); }
  79% { color: var(--t-prestige-kf-pe-flicker-79-text); text-shadow: 0 0 10px var(--t-prestige-kf-pe-flicker-79-text-shadow); }
  82% { color: var(--t-prestige-kf-pe-flicker-82-text); text-shadow: 0 0 6px var(--t-prestige-kf-pe-flicker-82-text-shadow); }
}

/* "Efeito prestígio versão 2" (v1.6.0), copied from the game's TOTAL PRESTIGE banner. Every 0.92 s:
   dark navy word with a thin light outline → light speed streaks behind it → the letters fill with
   magenta from the left, with a little pop → a solid white block sweeps right to left over the
   letters while the magenta fades → back to rest. Markup (prestigeWord in overview.js): the word, then
   a magenta copy and a white copy, each inside windows that only reveal part of it.
   The windows reveal by sliding (transform) instead of animating clip-path: a box that clips its content
   moves to put its edge where the reveal ends, and the content inside moves back the same amount, so the
   word stays put and only the edge travels. The white band has two moving edges, so two nested boxes. */
.prestige-fx-v2 {
  color: var(--t-prestige-prestige-fx-v2-text); -webkit-text-stroke: 1px var(--t-prestige-prestige-fx-v2--webkit-text-stroke);
  filter: drop-shadow(0 1.5px 0 var(--t-prestige-prestige-fx-v2-filter));
  animation: pfx2-pop .92s linear infinite;
}
.pfx-m, .pfx-w, .pfx-m *, .pfx-w * { position: absolute; pointer-events: none; }
.pfx-m, .pfx-w, .pfx-w > span { overflow: hidden; }
.pfx-m > span, .pfx-w > span, .pfx-w > span > span { inset: 0; }
/* Magenta: fills the letters from the left (24–29%), then fades out */
.pfx-m { inset: 0; animation: pfx2-m1 .92s linear infinite; }
.pfx-m > span {
  white-space: nowrap; animation: pfx2-m2 .92s linear infinite;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--t-prestige-pfx-m-span-bg), var(--t-prestige-pfx-m-span-bg-2) 28%, var(--t-prestige-pfx-m-span-bg-3) 65%, var(--t-prestige-pfx-m-span-bg-4));
}
@keyframes pfx2-m1 {
  0%, 24% { transform: translateX(-100%); opacity: 1; }
  29% { transform: none; opacity: 1; }
  36% { opacity: .55; }
  43%, 100% { transform: none; opacity: 0; }
}
@keyframes pfx2-m2 { 0%, 24% { transform: translateX(100%); } 29%, 100% { transform: none; } }
/* White: a band sweeping right to left. The windows reach 20% above/below and 5% left/right of the
   word (room for the thick white outline), so the word sits inside at 5%/20% of the window, and the
   moves are in window widths (1.1 × the word). */
.pfx-w { left: -5%; right: -5%; top: -20%; bottom: -20%; animation: pfx2-w1 .92s linear infinite; }
.pfx-w > span { animation: pfx2-w2 .92s linear infinite; }
.pfx-w > span > span { animation: pfx2-w3 .92s linear infinite; }
.pfx-w > span > span > span {
  left: 4.5455%; width: 90.909%; top: 14.2857%; height: 71.4286%; white-space: nowrap;
  color: var(--t-white); -webkit-text-stroke: 3px var(--t-white);
}
@keyframes pfx2-w1 { 0%, 31% { transform: translateX(95.4545%); } 34% { transform: translateX(60.9091%); } 43% { transform: translateX(31.8182%); } 51%, 100% { transform: none; } }
@keyframes pfx2-w2 { 0%, 31% { transform: translateX(-95.4545%); } 34% { transform: translateX(-60.9091%); } 43% { transform: translateX(-69.0909%); } 51% { transform: translateX(-66.3636%); } 55%, 100% { transform: translateX(-95.4545%); } }
@keyframes pfx2-w3 { 0%, 34% { transform: none; } 43% { transform: translateX(37.2727%); } 51% { transform: translateX(66.3636%); } 55%, 100% { transform: translateX(95.4545%); } }
.pfx-streaks {
  position: absolute; left: -45%; right: -45%; top: 6%; bottom: 6%; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(180deg, var(--t-prestige-pfx-streaks-bg) 0 2px, transparent 2px 5px);
  -webkit-mask: linear-gradient(90deg, transparent, var(--t-black) 25%, var(--t-black) 75%, transparent);
  mask: linear-gradient(90deg, transparent, var(--t-black) 25%, var(--t-black) 75%, transparent);
  opacity: 0; animation: pfx2-streaks .92s linear infinite;
}
@keyframes pfx2-pop {
  0%, 24% { transform: skewX(-10deg) scale(1); }
  29% { transform: skewX(-10deg) scale(1.1); }
  40%, 100% { transform: skewX(-10deg) scale(1); }
}
@keyframes pfx2-streaks {
  0%, 19% { opacity: 0; transform: scaleX(.6); }
  24% { opacity: 1; transform: scaleX(1); }
  50% { opacity: .8; }
  62%, 100% { opacity: 0; transform: scaleX(1.1); }
}

/* ---------- Brawl Pass name (as in-game) ---------------------------------------------------- */
/* Two tones of the chosen color repeat along the name and slide left → right (full cycle ≈ 1.9 s).
   The name keeps its dark outline (text-shadow). On top, a layer masked to the letters (textshine.js)
   holds the gradient and slides it (transform); until the mask is ready, a still gradient copy from
   data-text stands in. */
.bp-name { position: relative; display: inline-block; }
.bp-name::after {
  content: attr(data-text); content: attr(data-text) / '';
  position: absolute; inset: 0; pointer-events: none; text-shadow: none; white-space: nowrap;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  /* One cycle of the name's gradient (it ends on its first color) per 3.8em tile, repeated: sliding by one tile is seamless */
  background: var(--bp-grad) 0 0 / 3.8em 100% repeat-x;
  -webkit-background-clip: text; background-clip: text;
}
.bp-name.tm-ready::after { display: none; }
.bp-name .tm::before { background: var(--bp-grad) 0 0 / 3.8em 100% repeat-x; --tm-tile: 3.8em; animation: tm-slide 1.9s linear infinite; }

/* Layer masked to a label's letters (textshine.js) with a strip one tile longer than the label that
   slides by one tile per cycle: seamless, and only a transform. */
.tm {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none;
  -webkit-mask: 0 0 / 100% 100% no-repeat; mask: 0 0 / 100% 100% no-repeat;
}
.tm::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--tm-tile) * -1); right: 0; }
@keyframes tm-slide { to { transform: translateX(var(--tm-tile)); } }

/* ---------- Ranked seasons (Overview) ------------------------------------------------------ */
.season-road { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.season-card {
  display: grid; gap: 6px; padding: 10px 12px;
  background: var(--surface); border: var(--outline); border-radius: 11px; box-shadow: inset 0 3px 0 var(--t-shade-35);
}
.season-card.current { outline: 2px solid var(--gold); }
.season-rank { display: flex; align-items: center; gap: 10px; }
.season-ico { width: 46px; height: 46px; object-fit: contain; flex: none; }

/* ---------- Stat tiles with a game icon --------------------------------------------------- */
.stat.has-ico { display: flex; align-items: center; gap: 12px; }
.stat-ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; }
.stat-body { min-width: 0; flex: 1; }
.gico { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 0 var(--t-shade-35)); }
.stat .note { font-size: 12px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-ico { width: 16px; height: 16px; object-fit: contain; display: inline-block; vertical-align: -3px; margin: 0 3px; }
.ico-pair { position: relative; display: block; width: 48px; height: 48px; }
/* Trophy with "7d" / "30d" over its lower left, like the "VS" of the 3v3 icon */
.ico-period { position: relative; display: block; width: 48px; height: 48px; }
.ico-period .period-tag { position: absolute; left: -4px; bottom: 1px; width: 40px; height: 20px; overflow: visible; }
/* Calendar with the day printed on its white page (centered on the page, measured on the icon; the page is tilted a little) */
.ico-cal { position: relative; display: block; width: 48px; height: 48px; }
.cal-day {
  position: absolute; left: 45.5%; top: 60.5%; transform: translate(-50%, -50%) rotate(7deg);
  font-weight: normal; font-size: 17px; line-height: 1; letter-spacing: -.02em; color: var(--t-stat-icons-cal-day-text);
}
.ico-pair > svg { position: absolute; left: 0; top: 2px; width: 34px; height: 30px; }
.ico-pair > img { position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; }
/* VS, the Ranked emblem (top right) and the Showdown skull (bottom right) in a diagonal */
.ico-pair.trio > svg { width: 30px; height: 26px; top: 1px; }
.ico-pair.trio > img.rk { top: 0; right: 0; bottom: auto; width: 24px; height: 20px; }
/* Long tables (clamp.js): only the first rows, fading out above a "Show more" button */
.table-wrap.clamped { -webkit-mask-image: linear-gradient(to bottom, var(--t-black) calc(100% - 110px), transparent); mask-image: linear-gradient(to bottom, var(--t-black) calc(100% - 110px), transparent); }
tr.clamp-hide { display: none; }
/* Card grids drawn a few rows at a time (clamp.js lazyGrid): the cards of the last row fade out */
.lazy-fade > .fade-row { -webkit-mask-image: linear-gradient(to bottom, var(--t-black), transparent); mask-image: linear-gradient(to bottom, var(--t-black), transparent); }
/* Small Hide / Unhide button at the right end of a section title */
.section-title .sec-toggle { margin-left: auto; align-self: center; font: inherit; font-size: 13px; color: var(--text-2); background: var(--t-stat-icons-section-title-sec-toggle-bg);
  border: 2px solid var(--ink); border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.section-title .sec-toggle:hover { color: var(--t-white); }
.clamp-more { margin-top: 4px; }
/* Two icons side by side before a panel name */
.pt-ico + .pt-ico { margin-left: -4px; }
/* Two images, one over the lower right of the other (e.g. ranked + trophy) */
.ico-duo { position: relative; display: block; width: 48px; height: 48px; }
.ico-duo > img:first-child { position: absolute; left: 0; top: 0; width: 34px; height: 34px; }
.ico-duo > img:last-child { position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; }
.chip-ico.pts { width: 18px; height: 18px; margin: -3px 0 -3px 2px; }
.lvl-pts { width: 12px; height: 12px; object-fit: contain; display: inline-block; vertical-align: -2px; margin-right: 2px; }
.chip.nofame { cursor: help; }
.chip.nofame .chip-ico { filter: grayscale(1) brightness(.85); }

/* ---------- Record Level bars in each level's icon color ---------------------------------- */
.bar.rec .fill { background: linear-gradient(var(--r1) 0 45%, var(--r2) 46% 100%); }
.bar.rec-0 { --r1: var(--t-recordbars-bar-rec-0-v-r1); --r2: var(--t-recordbars-bar-rec-0-v-r2); }
.bar.rec-1 { --r1: var(--t-recordbars-bar-rec-1-v-r1); --r2: var(--t-recordbars-bar-rec-1-v-r2); }
.bar.rec-2 { --r1: var(--t-recordbars-bar-rec-2-v-r1); --r2: var(--t-recordbars-bar-rec-2-v-r2); }
.bar.rec-3 { --r1: var(--t-recordbars-bar-rec-3-v-r1); --r2: var(--t-recordbars-bar-rec-3-v-r2); }
.bar.rec-4 { --r1: var(--t-recordbars-bar-rec-4-v-r1); --r2: var(--t-recordbars-bar-rec-4-v-r2); }
.bar.rec-5 { --r1: var(--t-recordbars-bar-rec-5-v-r1); --r2: var(--t-recordbars-bar-rec-5-v-r2); }
.bar.rec-6 { --r1: var(--t-recordbars-bar-rec-6-v-r1); --r2: var(--t-recordbars-bar-rec-6-v-r2); }
.bar.rec-7 { --r1: var(--t-recordbars-bar-rec-7-v-r1); --r2: var(--t-recordbars-bar-rec-7-v-r2); }
.bar.rec-8 { --r1: var(--t-recordbars-bar-rec-8-v-r1); --r2: var(--t-recordbars-bar-rec-8-v-r2); }
.bar.rec-9 { --r1: var(--t-recordbars-bar-rec-9-v-r1); --r2: var(--t-recordbars-bar-rec-9-v-r2); }
.bar.rec-10 { --r1: var(--t-recordbars-bar-rec-10-v-r1); --r2: var(--t-recordbars-bar-rec-10-v-r2); }
.bar.rec-11 { --r1: var(--t-recordbars-bar-rec-11-v-r1); --r2: var(--t-recordbars-bar-rec-11-v-r2); }
.bar.rec-12 .fill { background: linear-gradient(90deg, var(--t-recordbars-bar-rec-12-fill-bg), var(--t-recordbars-bar-rec-12-fill-bg-2), var(--t-recordbars-bar-rec-12-fill-bg-3), var(--t-recordbars-bar-rec-12-fill-bg-4), var(--t-recordbars-bar-rec-12-fill-bg-5)); }

/* ---------- Brawlers not unlocked / not released yet ------------------------------------- */
.section-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 26px 0 12px; font-size: 22px; }
.section-title .muted { font-size: 14px; }
.bcard.locked { filter: none; background: var(--t-locked-bcard-locked-bg); }
.bcard.locked .portrait { filter: grayscale(1) brightness(.6) contrast(.9); }
.bcard.unreleased { background: var(--t-locked-bcard-unreleased-bg); }
.bcard.unreleased .portrait { filter: brightness(0) opacity(.75); }
.rarity-tag {
  font-size: 12px; padding: 2px 7px 1px; border: 2px solid var(--ink); border-radius: 7px;
  color: var(--ink); background: var(--rc, var(--t-skins-rc-fallback)); white-space: nowrap;
}
.soon-tag { font-size: 13px; padding: 2px 8px 1px; border: 2px solid var(--c-soon-tag-border); border-radius: 7px; background: var(--c-soon-tag-bg); color: var(--c-soon-tag-text); }
/* Legendary: subtle 4-point sparkles on the border, one at a time (top left, right edge, bottom right) */
.rarity-tag.legendary { position: relative; }
.rarity-tag .sp {
  position: absolute; width: 7px; height: 7px; pointer-events: none; background: var(--t-locked-rarity-tag-sp-bg);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 2px var(--t-locked-rarity-tag-sp-filter)); transform: scale(0); animation: legend-sparkle 3.6s ease-in-out infinite;
}
.rarity-tag .sp.s0 { top: -4px; left: 10%; }
.rarity-tag .sp.s1 { top: 30%; right: -4px; animation-delay: 1.2s; }
.rarity-tag .sp.s2 { bottom: -4px; right: 26%; animation-delay: 2.4s; }
@keyframes legend-sparkle {
  0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
  7% { transform: scale(1) rotate(30deg); opacity: 1; }
  15%, 99% { transform: scale(0) rotate(60deg); opacity: 0; }
}
/* Ultra: pixel mosaic with the game's color wave (colors and timing in icons.js). The squares are
   pixels of a tiny strip that slides one square per step (transform + steps); the second strip,
   with the other half of the lighter checker squares, shows on odd steps. 2.13 s per wave. */
.rarity-tag.ultra { position: relative; overflow: hidden; background: var(--t-locked-rarity-tag-ultra-bg); color: var(--t-white); }
.rarity-tag.ultra b {
  position: relative; font-weight: normal;
  text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink);
}
.ultra-mosaic { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.ultra-mosaic i {
  position: absolute; left: 0; top: 0; width: var(--um-w); height: 100%;
  background: 0 0 / 100% 100% no-repeat; image-rendering: pixelated;
  animation: ultra-slide 2.13s steps(26) infinite;
}
.ultra-mosaic i.odd { animation: ultra-slide 2.13s steps(26) infinite, ultra-odd calc(2.13s / 13) step-end infinite; }
@keyframes ultra-slide { from { transform: translateX(var(--um-x)); } to { transform: none; } }
@keyframes ultra-odd { 0% { opacity: 0; } 50% { opacity: 1; } }
/* Small icon + name above a chart (e.g. Coins, Power Points) */
.chart-head { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); margin: 0 0 6px 2px; }
/* Wide Fan Kit portraits (newest brawlers) fill the square card instead of leaving a gap */
.bcard .portrait.wide { object-fit: cover; object-position: 50% 15%; }

/* Footer (v1.23.0): the site's name and contact, two columns of links, then the Supercell notice and the credits */
.site-footer { margin-top: 20px; background: var(--t-footer-bg); border-top: 2px solid var(--t-footer-line); font-family: 'Trebuchet MS', sans-serif; font-size: 14px; color: var(--text-3); letter-spacing: 0; }
.ft-top, .ft-bottom { max-width: 1400px; margin: 0 auto; padding: 26px 20px; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(140px, 1fr)); gap: 24px 40px; }
.ft-brand p { margin: 8px 0 10px; max-width: 420px; line-height: 1.5; }
.ft-logo { font-family: 'Lilita One', sans-serif; font-size: 22px; color: var(--t-white); text-decoration: none; letter-spacing: .5px; }
.ft-mail { padding: 0; border: 0; background: none; cursor: pointer; color: var(--text-2); font-family: ui-monospace, monospace; font-size: 13px; }
.ft-col { display: grid; align-content: start; gap: 8px; }
.ft-h { margin: 0 0 4px; font-family: 'Lilita One', sans-serif; font-size: 16px; font-weight: normal; color: var(--t-footer-head); letter-spacing: .5px; }
.ft-col a { color: var(--text-2); text-decoration: none; width: fit-content; }
.ft-col a:hover, .ft-mail:hover { color: var(--t-white); text-decoration: underline; }
.ft-bottom { padding-top: 16px; border-top: 1px solid var(--t-footer-line); font-size: 12px; }
.ft-bottom p { margin: 0 0 6px; }
.ft-bottom a { color: var(--text-2); text-decoration: underline; }
@media (max-width: 700px) { .ft-top { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
/* Privacy Policy and Terms of Use (pages/legal.js): plain reading text */
.legal { max-width: 820px; margin: 0 auto; }
.legal h3 { margin: 18px 0 6px; font-size: 18px; font-weight: normal; }
.legal p, .legal li { line-height: 1.7; font-size: 16px; color: var(--text-2); font-family: Nunito, 'Segoe UI', system-ui, sans-serif; letter-spacing: 0; }
.legal b { font-weight: 800; color: var(--t-white); }
.legal ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.legal a { color: var(--t-white); text-decoration: underline; }
.contact-mail { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.contact-mail code { font-size: 17px; color: var(--t-white); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rbar-glitch, .pfx-m, .pfx-w { display: none; }
  .bp-name::after { animation: none; }
}

/* Game icon at the start of a banner (e.g. the clock in the balance reminder) */
.banner .grow:has(.banner-ico) { display: flex; align-items: center; gap: 10px; }
.banner:has(.banner-ico) { min-height: 64px; } /* the reminder banners (with or without a button) all have the same height */
.banner-sad { flex: none; width: 52px; height: 52px; margin: -6px 0; object-fit: contain; filter: grayscale(1) brightness(.95) opacity(.7); }
.banner-ico { flex: none; width: 26px; height: 26px; object-fit: contain; display: block;
  /* Even, crisp dark outline (SVG filter #outline in index.html), in the game's style */
  filter: url(#outline); }

/* Ranked icon: the league sticker (Fan Kit) with the level numeral below it, as on the game's icons */
.rank-ico { position: relative; display: inline-block; container-type: size; }
.rank-ico .rank-art { display: block; width: 100%; height: 84%; object-fit: contain; }
.rank-ico .rank-num {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 38cqh; line-height: .9; letter-spacing: .02em;
  /* Dark outline, thicker at the bottom (the game's 3D edge); no white border around the numeral */
  color: var(--rk); -webkit-text-stroke: .12em var(--t-locked-rank-ico-rank-num--webkit-text-stroke); paint-order: stroke fill;
  text-shadow: 0 .07em 0 var(--t-locked-rank-ico-rank-num-text-shadow), .03em .08em 0 var(--t-locked-rank-ico-rank-num-text-shadow-2), -.03em .08em 0 var(--t-locked-rank-ico-rank-num-text-shadow-3);
  pointer-events: none;
}
/* Too small to read (inline notes): only the sticker */
@container (max-height: 18px) { .rank-num { display: none; } }
/* Ranked Elo card (Overview): bigger rank icons */
.stat-ico:has(.rank-big) { width: 60px; height: 60px; }
.note-ico.rank-note { width: 22px; height: 22px; vertical-align: -6px; }

/* ---------- Skins (v1.11.0) ------------------------------------------------------------- */
/* Summary: the collection card. Total + catalog progress + rarity shelf + values on top, then one tile per
   rarity and per special collection with an owned / in-game meter in its color. */
.sum-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 14px 16px; background: var(--t-skins-sum-hero-bg); border: 2px solid var(--ink); border-radius: 12px; box-shadow: inset 0 3px 0 var(--t-glow-6); }
.sum-main { display: flex; align-items: center; gap: 14px; }
.sum-main-ico { width: 78px; height: 78px; object-fit: contain; filter: drop-shadow(0 4px 0 var(--t-shade-35)); }
.sum-big { font-size: 52px; line-height: .95; color: var(--gold); }
.sum-cap { font-size: 16px; color: var(--text-2); }
.sum-progress { display: grid; gap: 7px; min-width: 0; }
.sum-values { display: grid; gap: 8px; }
.sum-value { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px; background: var(--t-shade-28); border: 2px solid var(--ink); border-radius: 10px; }
.sum-value-ico { width: 34px; height: 34px; object-fit: contain; flex: none; }
.sum-value-n { font-size: 20px; line-height: 1; }
.sum-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.sum-sub { margin: 16px 0 8px; font-size: 14px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.sum-sub-row { margin-top: 4px; }
.sum-cell { display: grid; gap: 4px; padding: 8px 10px 10px; background: var(--t-skins-sum-cell-bg); border: 2px solid var(--ink); border-radius: 10px; }
/* Bars in the color of a rarity or collection, in the same two-tone style as the Progress bars */
.bar.rc .fill { background: linear-gradient(color-mix(in srgb, var(--rc) 55%, var(--t-white)) 0 45%, var(--rc) 46% 100%); }
.bar.shelf { display: flex; box-shadow: inset 0 3px 0 var(--t-shade-40); }
.bar.shelf { height: 34px; }
.bar.shelf i { min-width: 3px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(color-mix(in srgb, var(--rc) 55%, var(--t-white)) 0 45%, var(--rc) 46% 100%); border-right: 2px solid var(--ink); }
.bar.shelf i:last-child { border-right: 0; }
.bar.shelf i b { font-weight: normal; font-size: 13px; white-space: nowrap; }
/* Rarities heading with the Oddities Shop toggle on its right */
.sum-sub-row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.odd-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 3px 6px; font: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; cursor: pointer;
  color: var(--text-2); background: var(--t-skins-odd-toggle-bg); border: 2px solid var(--ink); border-radius: 999px; transition: background .12s, color .12s; }
.odd-toggle:hover { color: var(--t-white); }
.odd-toggle.on { color: var(--ink); background: linear-gradient(var(--t-skins-odd-toggle-on-bg), var(--gold) 50%, var(--t-skins-odd-toggle-on-bg-2)); }
.odd-ico { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 0 var(--ink)); }
@media (max-width: 980px) { .sum-hero { grid-template-columns: minmax(0, 1fr); } .sum-values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sum-values { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .sum-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .sum-tiles { grid-template-columns: minmax(0, 1fr); } }

/* Recently unlocked: small cards with the skin and its brawler */
.recent-skins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .recent-skins { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .recent-skins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .recent-skins { grid-template-columns: minmax(0, 1fr); } }
.rs-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; font-size: 17px; cursor: pointer; background: var(--t-skins-rs-item-bg); border: 2px solid var(--ink); border-left: 6px solid var(--rc); border-radius: 10px; }
.rs-item:hover { filter: brightness(1.1); }
.rs-art { width: 66px; height: 92px; object-fit: contain; flex: none; }
.rs-text { min-width: 0; }
.rs-sub { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--text-2); margin: 2px 0; }
.rs-pin { width: 22px; height: 22px; object-fit: contain; }

/* Equipped skins: 4 per row. The wide portrait on its rarity's color reaches the card's edges; the skin,
   see-through, on the right, showing most of its body. */
.eq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .eq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .eq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .eq-grid { grid-template-columns: minmax(0, 1fr); } }
.eq-card { position: relative; display: flex; align-items: flex-end; height: 132px; overflow: hidden; padding: 0 10px 10px 152px; background: var(--t-skins-eq-card-bg); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.eq-card:hover { filter: brightness(1.1); }
.eq-pbox { position: absolute; left: 0; top: 0; bottom: 0; width: 144px; overflow: hidden; border-right: 3px solid var(--ink); background: var(--bg); }
.eq-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.eq-skin { position: absolute; right: 4px; top: 6px; height: 112%; width: auto; max-width: 52%; object-fit: contain; object-position: right top; opacity: .52; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, var(--t-black) 55%, transparent 98%); mask-image: linear-gradient(to bottom, var(--t-black) 55%, transparent 98%); }
.eq-text { position: relative; min-width: 0; }
.eq-name { font-size: 17px; }
.eq-text .sk { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Collection filters */
.sk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sk-filters .search-box { flex: 1 1 220px; min-width: 0; }
.sk-filters .search-box input { flex: 1; width: 100%; min-width: 0; }
.sk-filters select { flex: 0 1 200px; min-width: 0; }
.sk-adv-btn.on { background: linear-gradient(var(--t-skins-sk-adv-btn-on-bg), var(--gold) 50%, var(--t-skins-sk-adv-btn-on-bg-2)); }
.sk-adv-btn b { font-weight: normal; }
.sk-rarities .class-ico { width: 22px; height: 22px; }
.sk-adv { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; align-items: end; margin-bottom: 12px; }
.sk-adv[hidden] { display: none; }
.sk-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); height: 42px; cursor: pointer; }
.sk-check input { width: 18px; height: 18px; padding: 0; }
.sk-count { margin-bottom: 10px; min-height: 30px; }
.price-ico { width: 20px; height: 20px; object-fit: contain; display: inline-block; vertical-align: -4px; margin-right: 2px; }

/* Skin cards (collection and brawler page) */
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.skin-tile { display: flex; flex-direction: column; gap: 6px; padding: 7px; cursor: pointer; background: var(--t-skins-skin-tile-bg); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); transition: transform .08s; }
.skin-tile:hover { transform: translateY(-3px); }
.skin-tile:focus-visible { outline: 3px solid var(--gold); }
.st-art { position: relative; aspect-ratio: 1 / 1.05; border-radius: 9px; border: 2px solid var(--ink); background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--rc) 45%, var(--t-skins-st-art-bg)) 0%, var(--t-skins-st-art-bg-2) 70%); box-shadow: inset 0 -5px 0 color-mix(in srgb, var(--rc) 75%, var(--t-black)); overflow: hidden; }
.st-art > img { width: 100%; height: 100%; object-fit: contain; padding: 8px 8px 10px; filter: drop-shadow(0 4px 2px var(--t-shade-35)); }
.skin-tile.missing .st-art > img { filter: grayscale(1) brightness(.55); }
.st-eq { position: absolute; left: 5px; top: 5px; font-size: 11px; padding: 2px 6px 1px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; -webkit-text-stroke: 0; text-shadow: none; }
.st-name { font-size: 14px; line-height: 1.15; min-height: 2.3em; }
/* Unlock date under the name (collection sorted by "Recently unlocked") */
.st-date { margin-top: -5px; font-size: 11px; color: var(--text-3); }
.st-name:has(+ .st-date) { min-height: 0; }
/* "Date unknown": skins unlocked before tracking began */
.sk-break { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 10px 0 2px; font-size: 18px; font-weight: normal; }
.sk-break::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: var(--t-glow-14); }
.st-pins { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.pin-btn { display: inline-flex; padding: 0; border: 0; background: none; cursor: default; }
button.pin-btn { cursor: pointer; transition: transform .08s; }
button.pin-btn:hover { transform: scale(1.18); }
.skin-pin { width: 26px; height: 26px; object-fit: contain; }

/* Skin detail overlay, like the game's skin screen */
.skin-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--t-skins-skin-overlay-bg); }
/* Opening: the dim fades in and the box pops up; changing skin: the art slides in from the arrow's side and the texts fade in */
@keyframes so-fade { from { opacity: 0; } }
@keyframes so-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes so-art-next { from { opacity: 0; transform: translateX(46px) scale(.94); } }
@keyframes so-art-prev { from { opacity: 0; transform: translateX(-46px) scale(.94); } }
@keyframes so-art-open { from { opacity: 0; transform: scale(.9); } }
@keyframes so-info-in { from { opacity: 0; transform: translateX(10px); } }
.skin-overlay { animation: so-fade .18s ease-out; }
.skin-overlay .so-box { animation: so-pop .24s cubic-bezier(.2, .8, .3, 1); }
.so-art { animation: so-art-open .26s cubic-bezier(.2, .8, .3, 1) both; }
.so-box[data-dir="1"] .so-art { animation-name: so-art-next; }
.so-box[data-dir="-1"] .so-art { animation-name: so-art-prev; }
.so-box[data-dir="1"] .so-info > *, .so-box[data-dir="-1"] .so-info > * { animation: so-info-in .22s ease-out both; }
@media (prefers-reduced-motion: reduce) { .skin-overlay, .skin-overlay .so-box, .so-art, .so-info > * { animation: none !important; } }
.so-box { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); width: min(980px, 100%); height: min(580px, calc(100vh - 32px)); overflow: auto; /* always the same size, whatever the skin's shape */ border: var(--outline); border-radius: 16px; box-shadow: 0 6px 0 var(--ink);
  background: radial-gradient(circle at 34% 46%, var(--t-skins-so-box-bg) 0%, var(--t-skins-so-box-bg-2) 30%, var(--t-skins-so-box-bg-3) 65%, var(--t-skins-so-box-bg-4) 100%); }
.so-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 24px 24px 64px; }
.so-stage::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 52px; height: 26px; border-radius: 50%; background: var(--t-skins-so-stage-after-bg); z-index: 0; }
.so-art { position: relative; z-index: 1; max-width: 100%; max-height: 420px; width: auto; object-fit: contain; filter: drop-shadow(0 6px 4px var(--t-shade-30)); }
.so-own { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 22px; }
.so-nav { position: absolute; top: 45%; width: 42px; height: 42px; font-size: 30px; line-height: 1; color: var(--t-white); cursor: pointer; background: linear-gradient(var(--t-skins-so-nav-bg), var(--t-skins-so-nav-bg-2) 50%, var(--t-skins-so-nav-bg-3)); border: var(--outline); border-radius: 50%; box-shadow: 0 3px 0 var(--ink); z-index: 2; }
.so-nav.prev { left: 12px; }
.so-nav.next { right: 12px; }
.so-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 30px 24px 24px; background: var(--t-skins-so-info-bg); border-left: 3px solid var(--ink); }
.so-name { font-size: 34px; line-height: 1; padding-right: 36px; }
.so-brawler { font-size: 19px; color: var(--t-skins-so-brawler-text); }
.so-rows { display: grid; gap: 6px; width: 100%; margin-top: 8px; }
.so-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px 6px; font-size: 15px; background: var(--t-shade-25); border-radius: 8px; }
.so-row span { color: var(--text-2); }
.so-row b { font-weight: normal; text-align: right; }
.so-part { margin-top: 10px; font-size: 16px; color: var(--t-skins-so-part-text); }
.so-pins { display: flex; flex-wrap: wrap; gap: 8px; }
.so-pins .skin-pin { width: 46px; height: 46px; }
.so-close { position: absolute; right: 10px; top: 10px; z-index: 3; width: 36px; height: 36px; font-size: 18px; color: var(--t-white); cursor: pointer; background: linear-gradient(var(--t-skins-so-close-bg), var(--red) 50%, var(--t-skins-so-close-bg-2)); border: var(--outline); border-radius: 10px; box-shadow: 0 3px 0 var(--ink); }
@media (max-width: 720px) {
  .so-box { grid-template-columns: minmax(0, 1fr); grid-template-rows: 340px auto; height: min(760px, calc(100vh - 32px)); }
  .so-stage { min-height: 0; }
  .so-art { max-height: 280px; }
  .so-info { border-left: 0; border-top: 3px solid var(--ink); }
}

/* Brawler page header with the equipped skin, coming out of the top of the box by the trophies. The skin sits in a
   fixed stage (centered 345px from the right, feet on the bottom edge): a wide skin (Tick, Darryl) shrinks to fit
   the stage's width instead of drifting towards the middle. */
.brawler-hero > .profile { position: relative; z-index: 1; }
/* Same header height on every brawler's page (owned, locked, arriving soon) */
.brawler-hero { min-height: 169px; }
/* One fixed height for every brawler (with or without badge, bar or timer): the content is centered in it, nothing inside sets the header's size */
@media (min-width: 761px) {
  .brawler-hero { height: 178px; box-sizing: border-box; display: flex; align-items: center; }
  .brawler-hero > .profile { width: 100%; }
}
/* The level badge sits in a slot as big as the Hypercharge drop, so brawlers without Hypercharge keep the same header height and layout */
.hero-lvl-row { min-height: 36px; }
.lvl-slot { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 36px; flex: none; }
.hero-skin-box { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; }
.hero-skin { position: absolute; bottom: 0; right: 165px; width: 360px; height: 138%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 6px 3px var(--t-shade-40)); }
@media (max-width: 760px) {
  .brawler-hero.has-skin .hero-skin { right: 6px; width: 45%; height: 110%; opacity: .35; }
}

/* Skin names in capitals, like in the game */
.skin-name { text-transform: uppercase; }

/* Pin box: what a pin is, its name, and a Filter button where the page can filter */
.pin-pop { position: fixed; z-index: 1100; display: grid; justify-items: center; gap: 6px; min-width: 130px; max-width: 240px; padding: 8px 12px 10px; text-align: center;
  background: linear-gradient(180deg, var(--t-skins-pin-pop-bg), var(--panel-2)); border: var(--outline); border-radius: 11px; box-shadow: 0 4px 0 var(--ink); }
.pp-kind { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.pp-row { display: flex; align-items: center; gap: 8px; }
.pp-row > img, .pp-row > svg { width: 30px; height: 30px; object-fit: contain; flex: none; }
.pp-name { font-size: 15px; line-height: 1.1; }
.pp-filter { padding: 4px 16px 3px; }

/* Overlay rarity: bigger, "Epic Skin"; "Chroma" beside it */
.so-rarity { font-size: 16px; padding: 4px 11px 3px; border-radius: 8px; }
.so-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.so-chroma { position: relative; overflow: hidden; padding-right: 26px; isolation: isolate;
  background: linear-gradient(90deg, var(--t-skins-so-chroma-bg), var(--t-skins-so-chroma-bg-2) 35%, var(--t-skins-so-chroma-bg-3) 65%, var(--t-skins-so-chroma-bg-4)); }
.so-chroma::before { z-index: -1; }
.so-chroma::after { content: '✦'; position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--t-white); text-shadow: 0 0 4px var(--t-white); animation: twinkle 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .so-chroma::before, .so-chroma::after { animation: none; } }

/* Bottom left of the skin screen: what it requires, then what the Oddities Shop says (requirement on top) */
.so-notes { display: grid; gap: 4px; margin-top: auto; padding-top: 14px; }
.so-note { margin: 0; font-size: 14px; line-height: 1.25; color: var(--text-2); }
.so-note.requires { color: var(--t-skins-so-note-requires-text); }
.so-note b { font-weight: normal; }

/* Advanced filters: an icon in front of each label; Brawler rarity as a list of the rarity tags */
.f-lab { display: inline-flex; align-items: center; gap: 6px; }
.f-ico { width: 20px; height: 20px; object-fit: contain; flex: none; }
.sk-check .f-ico { margin-right: -2px; }
.tag-select { position: relative; }
.ts-btn, .ts-list button { display: flex; align-items: center; width: 100%; min-height: 42px; padding: 6px 12px; cursor: pointer; font-size: 16px; color: var(--ink); text-align: left;
  background: var(--t-skins-ts-btn-bg); border: var(--outline); border-radius: 9px; box-shadow: inset 0 3px 0 var(--t-shade-15); }
.ts-btn::after { content: "▾"; margin-left: auto; padding-left: 8px; }
.ts-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; display: grid; gap: 4px; padding: 6px; background: var(--panel-2); border: var(--outline); border-radius: 10px; box-shadow: 0 4px 0 var(--ink); }
.ts-list[hidden] { display: none; }
.ts-list button { min-height: 34px; border-width: 2px; box-shadow: none; }
.ts-list button:hover { background: var(--t-white); }
.ts-any { color: var(--ink); }
.tag-select .rarity-tag { font-size: 13px; }

/* Brawler cards on their rarity's color (owned); Ultra's background runs through its color wave */
.bcard.rbg { background: var(--bg); }
.ultra-bg { background: var(--t-skins-ultra-bg-bg) !important; isolation: isolate; }
.ultra-mosaic.ultra-fill { z-index: -1; }
@media (prefers-reduced-motion: reduce) { .ultra-mosaic i { display: none; } }

/* Search box with a ✕ to clear it */
.search-box { position: relative; display: inline-flex; }
.search-box input { padding-right: 40px; }
.search-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; padding: 0; font-size: 14px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; color: var(--t-white); background: var(--t-skins-search-x-bg); border: 2px solid var(--ink); border-radius: 6px; }
.search-x:hover { background: var(--red); }
/* The ✕ only shows while there is text */
.search-box input:placeholder-shown + .search-x { display: none; }

/* Progress → Closest brawlers to max: what's missing as icons; coins and PP in pastel */
.miss-row { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.miss { display: inline-flex; align-items: center; gap: 2px; }
.miss .coll-ico { width: 22px; height: 22px; }
.miss b { font-weight: normal; font-size: 13px; color: var(--text-2); }
.th-ico { display: inline-flex; align-items: center; gap: 5px; justify-content: flex-end; }
.th-ico .coll-ico { width: 18px; height: 18px; }
.coin-txt { color: var(--t-skins-coin-txt-text); }
.pp-txt { color: var(--t-skins-pp-txt-text); }

/* Progress → Closest brawlers to max: sort + aligned columns */
.cl-controls { gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.th-ico.left { justify-content: flex-start; }
.miss.empty { width: 22px; height: 22px; }
table.closest.aligned td .miss-row { flex-wrap: nowrap; }

/* Brawler page items: hypercharge, star powers and gadgets in three rows; the Buffies' icons in a column on the right */
.items-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: stretch; }
.buffy-col { display: grid; grid-auto-rows: 1fr; gap: 10px; align-items: center; padding-left: 14px; border-left: 2px solid var(--t-glow-8); }
.buffy-ico img, .buffy-ico .hc { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 0 var(--t-shade-35)); }
.buffy-ico.missing { opacity: .45; filter: grayscale(1); }

/* Default skin tag on its card */
.st-def { position: absolute; right: 5px; top: 5px; font-size: 11px; padding: 2px 6px 1px; background: var(--t-skins-st-def-bg); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; }

/* Skins: "unlock order not known yet" */
.sk-notice { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 10px 14px; background: var(--t-skins-sk-notice-bg); border: 2px dashed var(--t-glow-18); border-radius: 12px; }
.sk-notice[hidden] { display: none; }
.sk-notice-pin { width: 64px; height: 64px; object-fit: contain; flex: none; filter: grayscale(1) brightness(.95) opacity(.7); }

/* Brawler page: back button on the left, previous / next brawler on the right */
.brawler-nav { flex-wrap: wrap; gap: 8px; }
.brawler-arrow { display: inline-flex; align-items: center; gap: 6px; max-width: 190px; }
.brawler-arrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .brawler-arrow span { display: none; } }

/* Early Access and unreleased brawlers (v1.13.0): the padlock, the outlined clock and the time until the
   brawler comes out for everyone, like the game's "Brawlers coming soon" cards and brawler screen */
.soon-timer { display: inline-flex; align-items: center; gap: 4px; }
.soon-timer b { font-weight: normal; font-size: 16px; color: var(--t-white); white-space: nowrap; }
.soon-lock { width: 26px; height: 33px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 0 var(--t-shade-35)); }
.soon-clock { height: 24px; flex: none; }
/* The official clock: face + hand (the hand turns with --hand; pivot at the middle of the face) */
.clock-ico { position: relative; display: inline-block; aspect-ratio: 153 / 164; line-height: 0; }
.clock-ico .face { display: block; width: 100%; height: 100%; }
.clock-ico .hand { position: absolute; left: 40.1%; top: 37.2%; width: 37.25%; transform-origin: 26.5% 49.3%; transform: rotate(var(--hand, -90deg)); }
/* The hand ticks round clockwise, stopping at 0 / 90 / 180 / 270 degrees (from the reference recording): a short swing, then a pause, a full turn every 4 s, one tick per second */
.clock-ico .hand { animation: clock-tick 4s infinite; }
@keyframes clock-tick {
  0%, 16% { transform: rotate(0deg); animation-timing-function: ease-in-out; }
  25%, 41% { transform: rotate(90deg); animation-timing-function: ease-in-out; }
  50%, 66% { transform: rotate(180deg); animation-timing-function: ease-in-out; }
  75%, 91% { transform: rotate(270deg); animation-timing-function: ease-in-out; }
  100% { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) { .clock-ico .hand { animation: none; } }
/* The official clock replaces the old time icon (TIME_ICON) in banners, stats and the boost line */
.clock-ico.banner-ico { width: auto; height: 34px; flex: none; filter: none; }
.clock-ico.boost-ico { width: auto; height: 16px; filter: none; }
.clock-ico.gico, .clock-ico.gico.outlined { width: auto; height: 100%; filter: none; } /* no black outline on the clock */
.stat-ico .clock-ico.gico { height: 42px; }
.soon-timer.on-card { position: absolute; left: 6px; bottom: 64px; z-index: 1; padding: 2px 8px 2px 4px; background: var(--t-skins-soon-timer-on-card-bg); border: 2px solid var(--ink); border-radius: 9px; }
.soon-timer.on-card:not(:has(b)) { padding: 2px; }
.arrive-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.arrive-row .arrive-box { margin-top: 0; }
.soon-timer.hero-timer { flex-direction: column; gap: 2px; }
.soon-timer.hero-timer .soon-clock { height: 38px; }
.soon-timer.hero-timer b { font-size: 16px; line-height: 1; color: var(--t-skins-soon-timer-hero-timer-b-text); }
.arrive-box { display: inline-flex; align-items: center; gap: 14px; margin-top: 10px; padding: 8px 10px 8px 18px; background: var(--t-skins-arrive-box-bg); border: 2px solid var(--ink); border-radius: 10px; font-size: 17px; }
.arrive-lock { width: 34px; height: 43px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 0 var(--t-shade-35)); }

/* Game icons with the even dark outline of the banner icons (e.g. Avg battle duration's clock) */
.gico.outlined { filter: url(#outline); }

/* Progress → Closest brawlers to max: fixed columns, so Power, Coins and PP don't move with "Aligned columns" */
table.closest { table-layout: fixed; width: 100%; min-width: 720px; }
/* Long tables (Closest brawlers to max, some "Show as table" views): the whole list scrolls inside its box, about 12 rows in view, header on top */
.scroll-table { max-height: min(600px, 70vh); overflow-y: auto; padding-top: 0; }
.scroll-table table.game thead th { position: sticky; top: 0; z-index: 1; padding-top: 10px; padding-bottom: 4px; background: var(--surface); }
table.closest .cl-name { width: 190px; }
table.closest .cl-power { width: 70px; }
table.closest .cl-coins { width: 110px; }
table.closest .cl-pp { width: 100px; }
table.closest .cl-hc { width: 64px; }
table.closest .cl-sp, table.closest .cl-gadget { width: 112px; }
table.closest .cl-buffy { width: 104px; }
table.closest td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Performance (v1.13.0): cards and panels far from the window (js/offscreen.js) pause their animations, and
   the cards of the long grids skip layout and painting while off screen (the browser keeps their size). */
.offscreen, .offscreen *, .offscreen *::before, .offscreen *::after { animation-play-state: paused !important; }
/* Looping sparkles, light bands and flames far from the window stop instead of pausing (v1.26.0): a paused moving
   animation still keeps its own layer (Battles on a phone: 96 → 48 layers). They start over from the first frame
   before they come into view. */
.offscreen .sp, .offscreen .tm::before, .offscreen .f-sprite::before { animation: none !important; }
/* Layers (v1.26.0): the browser can't tell where a moving (transform) animation will be, so it treats everything
   painted after one as possibly covered by it and gives it its own layer. The streak flame and clock of the stat
   cards made the whole battle list (358×14,700 px on a phone) and an Overview panel into one huge layer each.
   Painting these animated boxes on top (z-index) leaves nothing painted after them: same look, the page stays
   one layer. (z-index 1: under the sticky table headers and the pop-up buttons.) */
.stat-ico { position: relative; }
.stat-ico, .prestige-emblem, .tp-label, .star-player, .sparkly { z-index: 1; }
.skin-tile, .bcard, .eq-card { content-visibility: auto; contain-intrinsic-size: auto 240px; }
.eq-card { contain-intrinsic-size: auto 132px; }
/* Light animations (js/motion.js: chosen on Accounts, or automatic on phones): the win streak numbers stay
   still, and the Prestige glitch and sweeps stop (faces, rank bars, TOTAL PRESTIGE show their resting look). */
.anim-light .streak-flame b, .anim-light .rface > i, .anim-light .rbar-glitch > i,
.anim-light .prestige-fx-v2, .anim-light .pfx-streaks { animation: none; }
.anim-light .pfx-m, .anim-light .pfx-w { display: none; }

/* Progress → Where the coins go: the power points chart under the coins one, bars at the same spacing */
.chart-box.cost-pp { height: 118px; }
/* Progress → Collection: its bars spread evenly over the panel, so they end level with "Where the coins go" */
.coll-panel { display: flex; flex-direction: column; }
.coll-panel > .coll-fill { flex: 1; gap: 12px; align-content: space-between; }

/* Progress → balance history: rows the collector wrote after an upgrade was bought */
.auto-tag { display: inline-block; margin-left: 6px; padding: 1px 6px 0; font-size: 11px; color: var(--ink); background: var(--t-skins-auto-tag-bg); border: 2px solid var(--ink); border-radius: 6px; vertical-align: 1px; cursor: help; }

/* Overview → Trophies: a key with a sample of each kind of line (gold, red, dashed) */
.line-keys { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.line-keys > span { display: inline-flex; align-items: center; gap: 6px; }
.lk { display: inline-block; width: 26px; height: 0; border-top: 4px solid var(--t-skins-lk-border-top); border-radius: 2px; }
.lk.lost { border-top-color: var(--t-skins-lk-lost-border-top-color); }
.lk.dashed { border-top-style: dashed; }
/* Brawler pin after a name in a stat's note (e.g. "highest with Kenji") */
.note-ico.note-pin { width: 22px; height: 22px; vertical-align: -6px; margin-left: 4px; }

/* Skins summary → Rarities with "Oddities Shop" on: rarities the shop never sells go dim; the others
   glide to the shop's numbers and get a yellow frame */
#sum-rarities .sum-cell { transition: opacity .15s, filter .15s, border-color .15s, box-shadow .15s; }
#sum-rarities .bar .fill { transition: width .32s cubic-bezier(.2, .7, .3, 1); }
#sum-rarities .sum-cell.odd-out { opacity: .45; filter: grayscale(.85); }
#sum-rarities .sum-cell.odd-in { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold), 0 0 10px var(--t-skins-sum-rarities-sum-cell-odd-in-shadow); }
.bar.shelf i { font-style: normal; }

/* Equipped skins, 5 per row (test toggle): a narrower portrait so the names still fit */
@media (min-width: 1101px) {
  .recent-skins.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .recent-skins.five .rs-item { gap: 8px; font-size: 15px; }
  .recent-skins.five .rs-art { width: 54px; height: 80px; }
  .eq-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .eq-grid.five .eq-card { padding-left: 120px; }
  .eq-grid.five .eq-pbox { width: 112px; }
  .eq-grid.five .eq-portrait { object-position: 10% 25%; } /* the narrower box shows more of the left side */
}

/* Panel titles: the icon's middle sat 2.2 px under the middle of the capitals (measured on every titled
   panel); lifted onto it */
.panel-title .pt-ico { top: -2px; }
/* Progress → Collection is a flex column (its bars fill the panel): the title keeps its own width, and
   sits as low as the other titles (theirs ride on a line of text, 18 px lower than a flex item would) */
.coll-panel > .panel-title { align-self: flex-start; margin-top: -12px; }

/* Brawler ‹ › flips: a quick cross-fade between the two pages (app.js, View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

/* ---------- Brawler page: Remaining upgrades ---------- */
.up-list { display: grid; gap: 5px; }
.up-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px auto; align-items: center; gap: 10px; padding: 7px 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--t-brawlerpage-up-row-bg); font-size: 15px; }
.up-row .up-left { text-align: right; font-variant-numeric: tabular-nums; }
.up-cost { display: inline-flex; align-items: center; justify-content: flex-end; gap: 14px; text-align: right; }
.up-amt { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.up-row.done { border-color: var(--green-dark); background: var(--t-brawlerpage-up-row-done-bg); color: var(--t-brawlerpage-up-row-done-text); }
.up-row.up-total { margin-top: 4px; }
.up-row.none .up-cost { opacity: .7; font-size: 13px; }

/* Progress → Closest brawlers to max, "Show every item": the ones the account has are grayed out, coins and PP say they are still needed */
.miss.none { filter: grayscale(1); opacity: .38; }
.need { font-size: 11px; color: var(--text-3); margin-left: 3px; -webkit-text-stroke: 0; text-shadow: none; }
table.closest.all-items { min-width: 840px; }
table.closest.all-items .cl-coins { width: 170px; }
table.closest.all-items .cl-pp { width: 150px; }

/* Battles: best streak flame with the brawler's pin under it, battle type tag in the log */
.flame-pin { position: relative; display: block; line-height: 0; }
.flame-pin .skin-pin { position: absolute; right: -10px; bottom: -6px; width: 32px; height: 32px; margin: 0; filter: drop-shadow(0 2px 0 var(--t-shade-35)); }
.type-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 5px; border: 2px solid var(--ink); border-radius: 12px; background: var(--t-brawlerpage-type-tag-bg); font-size: 13px; }
.type-tag img { width: 18px; height: 18px; object-fit: contain; }

/* Skins: "Skin value" box over the three values, the rarity shelf fills only the collection's share, price by the name */
.sum-values-head { justify-self: stretch; text-align: center; padding: 3px 12px; font-size: 14px; background: var(--t-shade-40); border: 2px solid var(--ink); border-radius: 8px; }
.bar.shelf .shelf-fill { display: flex; height: 100%; flex: none; overflow: hidden; border-right: 2px solid var(--ink); }
.so-price { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; margin: 2px 0 4px; }
.so-price .price-ico { width: 22px; height: 22px; }

/* Brawler page: bigger back / previous / next buttons, with the neighbour's pin */
.brawler-nav .btn { font-size: 16px; padding: 7px 14px 6px; border-radius: 11px; }
.brawler-arrow { gap: 10px; max-width: 280px; }
.brawler-arrow .ba-pin { width: 34px; height: 34px; margin: -6px 0; object-fit: contain; flex: none; }
.brawler-arrow .ba-arrow { font-size: 24px; line-height: 1; }

/* Battles: type column in the log, info / map buttons, win and loss icons in tables, battle detail box */
.battle:hover { filter: brightness(1.08); }
.bt-type { justify-self: center; margin-right: 70px; }
@media (max-width: 760px) {
  .battle { grid-template-columns: 6px 44px minmax(0, 1fr) auto; }
  .bt-type { grid-column: 3; grid-row: 2; justify-self: start; margin-right: 0; }
}
.info-btn { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 1px 2px 0 0; /* nudged so the slanted "i" sits in the circle's middle */ font: inherit; font-size: 13px; font-style: italic; line-height: 1; cursor: pointer;
  color: var(--text); background: var(--t-buttons-btn-blue-bg-2); border: 2px solid var(--ink); border-radius: 50%; }
.info-btn:hover { filter: brightness(1.2); }
.map-cell { display: flex; align-items: center; gap: 10px; }
.map-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; padding: 0; vertical-align: middle; cursor: pointer;
  background: var(--t-buttons-btn-blue-bg-2); border: 2px solid var(--ink); border-radius: 8px; }
.map-btn:hover { filter: brightness(1.2); }
.map-btn .map-ico { width: 16px; height: 16px; object-fit: contain; }
.tbl-ico { display: inline-block; width: 18px; height: 18px; margin-right: 5px; vertical-align: -4px; object-fit: contain; }
.bd-overlay { align-items: flex-start; }
.bd-box { position: relative; width: min(94vw, 1000px); margin: 0 auto 30px; padding: 16px; background: var(--panel); border: var(--outline); border-radius: var(--radius); box-shadow: var(--drop); cursor: default; }
.bd-close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.bd-close, .pb-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0 0 2px; line-height: 1; }
.bd-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-right: 44px; font-size: 22px; }
.bd-head .mini-img { width: 32px; height: 32px; }
.bd-map-name { font-size: 16px; color: var(--text-2); }
.bd-top { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 14px; margin-top: 12px; align-items: start; }
@media (max-width: 640px) { .bd-top { grid-template-columns: minmax(0, 1fr); } }
.bd-map img { width: 100%; border-radius: 10px; border: 2px solid var(--ink); background: var(--surface); }
.bd-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.bd-teams.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .bd-teams.five { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.bd-pname .nw { white-space: nowrap; }
.bd-teams.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .bd-teams.two { grid-template-columns: minmax(0, 1fr); } }
.bd-team { padding: 8px; background: var(--t-shade-35); /* one fill for every box; only the border color tells the sides apart */ border: 2px solid var(--ink); border-radius: 10px; }
.bd-team.ally { border-color: var(--t-battles-team-ally-border); }
.bd-team.enemy { border-color: var(--t-battles-team-enemy-border); }
.bd-tlabel { margin-bottom: 4px; color: var(--text-2); }
.bd-player { display: flex; align-items: center; gap: 8px; height: 52px; box-sizing: border-box; padding: 4px 2px; border-radius: 8px; }
/* Every team box has the same parts at the same heights: a one-line label, then rows of one size (long names shrink, see fit.js) */
.bd-team { display: flex; flex-direction: column; min-width: 0; }
.bd-tlabel { height: 22px; line-height: 22px; }
.fit { display: block; white-space: nowrap; overflow: hidden; min-width: 0; }
/* Too long even at the smallest size: the text slides back and forth, pausing at each end (fit.js sets --mq-d / --mq-t). */
.fit-scroll > .fit-in { display: inline-block; animation: fit-mq var(--mq-t, 6s) ease-in-out infinite alternate; }
@keyframes fit-mq { 0%, 18% { transform: translateX(0); } 82%, 100% { transform: translateX(var(--mq-d, 0)); } }
@media (prefers-reduced-motion: reduce) { .fit-scroll > .fit-in { animation: none; } .fit-scroll { text-overflow: ellipsis; } }
.bd-nameline .fit { display: block; flex: 0 1 auto; }
/* In a narrow box the player tag gives way first (it shrinks to an ellipsis), then the name's font gets smaller */
.bd-nameline > .bd-ptag { flex: 0 100 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-nameline > .bd-you { flex: none; }
.bd-sub { line-height: 1.25; }
.bd-info .so-row { height: 36px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.so-row .hc-badge { color: var(--t-white); } /* the row's label color made the Hypercharge number bluish */
.bd-lvslot { position: relative; display: inline-block; width: 22px; height: 22px; flex: none; } /* as big as the plain level ball; the Hypercharge drop may spill out of it */
.bd-lvslot > .hc-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.bd-brow { flex: none; }
.bd-info .so-row b { display: flex; align-items: center; justify-content: flex-end; line-height: 1; } /* the value sits on the row's middle line, not on a text baseline */
.bd-brow { line-height: 1; }
.bd-player.me { background: var(--t-glow-8); }
.bd-pimg { width: 40px; height: 40px; flex: none; border-radius: 8px; border: 2px solid var(--ink); object-fit: cover; background: var(--surface); }
.bd-pname { min-width: 0; flex: 1; }
.bd-pname .trophy-ico { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.bd-nameline { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 0 6px; min-width: 0; }
.game td .bd-ptag { margin-left: 8px; }
.bd-ptag { font-size: 11px; color: var(--text-3); opacity: .8; }
.bd-pname .star-player, .so-row .star-player { font-size: inherit; }
.player-link { padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer; }
.player-link:hover, .player-link:focus-visible { text-decoration: underline; }
.bd-brow { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.bd-rowimg { width: 30px; height: 30px; flex: none; margin: -5px 0; object-fit: contain; }
.tbl-ico.sm { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.clock-ico.tbl-ico { width: auto; height: 18px; }
.mate-name { font-size: 16px; }
.pb-overlay { z-index: 1100; }
.pb-box { position: relative; width: min(94vw, 460px); margin: 0 auto 30px; padding: 16px; background: var(--panel); border: var(--outline); border-radius: var(--radius); box-shadow: var(--drop); cursor: default; }
.pb-close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.pb-head { display: flex; align-items: center; gap: 12px; padding-right: 0; margin: 40px 0 10px; }
.back-btn { font-size: 20px; padding: 10px 22px 9px; border-radius: 12px; }
.pb-more { position: absolute; top: 10px; right: 52px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-top: 0; padding-bottom: 0; text-decoration: none; color: var(--text); }
.pb-more .pb-more-ico { width: 16px; height: 16px; object-fit: contain; }
.pb-rank { display: inline-flex; align-items: center; gap: 6px; }
.pb-rank .pb-rico { width: 22px; height: 22px; }
.pb-head .avatar { width: 56px; height: 56px; flex: none; border-radius: 12px; border: 2px solid var(--ink); object-fit: cover; }
.pb-label { display: inline-flex; align-items: center; gap: 8px; }
.pb-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; font-style: normal; }
.pb-ic > svg, .pb-ic > img, .pb-ic > .rank-ico { width: 24px; height: 24px; }
.pb-ic .xp-hex { margin: 0; width: 26px; height: 24px; }
.pb-top { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-br { display: grid; justify-items: center; gap: 2px; }
.pb-pin { width: 44px; height: 44px; object-fit: contain; }
.bd-you { font-size: 11px; padding: 0 6px; color: var(--ink); background: var(--gold); border-radius: 6px; }

/* The period switch (24H / 7D / 30D / 90D / ALL) follows the screen while the page scrolls, like the Colors editor */
.range-sticky h2 { font-weight: normal; letter-spacing: .03em; } /* Lilita One has one weight: the browser's bold made the title blurry */
.range-sticky { position: sticky; top: 64px; z-index: 14; padding: 8px 14px; background: var(--panel-2); border: var(--outline); border-radius: 12px; box-shadow: var(--drop); }

/* ---------- Main menu (Home / Profile / Races), Home, blog, Races ------------------ */
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 7px; padding: 6px 12px 5px; font-size: 17px;
  color: var(--t-nav-link-color); border: 2px solid transparent; border-radius: 10px; transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--t-nav-link-hover-bg); color: var(--t-nav-link-hover-color); }
.nav-link.active { background: var(--t-nav-link-active-bg); color: var(--t-nav-link-active-color); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); text-shadow: none; }
.nav-ico { display: grid; place-items: center; width: 24px; height: 24px; flex: none; }
.nav-ico img, .nav-ico svg { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 0 var(--t-shade-40)); }
/* Home and Races hide the Profile tabs and the account controls (pages added by extensions keep them). */
body:is([data-area="home"], [data-area="races"], [data-area="login"], [data-area="email"], [data-area="reset"], [data-area="me"], [data-area="privacy"], [data-area="terms"], [data-area="about"], [data-area="contact"]) :is(.profile-tabs, .acc-only) { display: none; }
/* Phones (v1.28.0, the owner's request): Home / Profile / Races is a bar fixed at the bottom of the screen, within
   reach of the thumb, and the header is one row: the logo's skull and the account controls beside it. */
@media (max-width: 760px) {
  .main-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around; gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: linear-gradient(var(--t-nav-bottom-bg), var(--t-nav-bottom-bg-2)); border-top: var(--outline); box-shadow: 0 -4px 0 var(--t-shade-35); }
  .nav-link { flex-direction: column; gap: 2px; min-width: 84px; font-size: 14px; padding: 5px 10px 4px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .topbar { flex-wrap: nowrap; gap: 10px; }
  .topbar .spacer { display: none; }
  /* Where the account controls show, the skull alone stands for the logo; elsewhere the name has room. */
  body:not(:is([data-area="home"], [data-area="races"], [data-area="login"], [data-area="email"], [data-area="reset"], [data-area="me"], [data-area="privacy"], [data-area="terms"], [data-area="about"], [data-area="contact"])) .logo > span:not(.skull) { display: none; }
  .logo .skull { width: 36px; height: 36px; }
  .account-switch { margin-left: auto; flex: 1 1 auto; gap: 6px; }
  .account-switch .acc-menu { flex: 1 1 0; }
  .account-switch .btn.small { padding: 6px 8px 5px; font-size: 13px; }
  .account-switch .icon-btn { width: 36px; }
  .acc-cur .li-ico { display: none; } /* more of the name in the closed menu; the open list still shows the groups */
}

.track-banner { background: linear-gradient(var(--t-home-track-banner-bg), var(--t-home-track-banner-bg-2)); }

.home-hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; padding: 28px 0 8px; text-align: center; } /* one column no wider than the page (phones: v1.28.0) */
.home-logo { margin: 0; font-size: clamp(44px, 9vw, 92px); line-height: 1; font-weight: normal; letter-spacing: .01em; transform: rotate(-2deg); }
.home-logo .accent { color: var(--t-home-logo-accent); }
.home-subname { margin: -4px 0 4px; color: var(--t-home-tagline); font-size: 15px; font-style: italic; opacity: .85; }
.home-search {
  display: flex; align-items: center; width: min(560px, 100%); padding: 4px 4px 4px 14px; gap: 8px;
  background: var(--t-home-search-bg); border: var(--outline); border-radius: 14px; box-shadow: 0 4px 0 var(--ink);
}
.home-hash { font-size: 24px; color: var(--t-home-search-hash); }
.home-search input { flex: 1; min-width: 0; font-size: 19px; text-transform: none; background: transparent; border: 0; box-shadow: none; color: var(--t-home-search-text); padding: 8px 4px; }
.home-search input::placeholder { text-transform: none; color: var(--t-home-search-placeholder); }
.home-hash svg { width: 22px; height: 22px; display: block; }
.home-search input:focus { outline: none; }
.home-search:focus-within { box-shadow: 0 4px 0 var(--ink), 0 0 0 3px var(--t-home-search-focus); }
.home-err { margin: 0; color: var(--t-home-err); max-width: 560px; }
.home-help { max-width: 560px; color: var(--t-home-help); }
.home-help summary { cursor: pointer; text-decoration: underline; }
.home-help p { margin: 8px 0 0; }
.home-lists { display: grid; gap: 14px; width: min(760px, 100%); text-align: left; }
.home-lists:empty { display: none; }
.home-list { display: grid; gap: 8px; padding: 12px 14px 14px; background: var(--t-home-list-bg); border: var(--outline); border-radius: 14px; box-shadow: var(--drop); }
.home-list-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; font-weight: normal; }
.home-list.recent .home-list-h { color: var(--t-home-list-recent-h); }
.home-list.tracked .home-list-h { color: var(--t-home-list-tracked-h); }
.home-list.bookmarks .home-list-h { color: var(--t-home-list-bookmarks-h); }
/* Overview › Bookmark: an icon; beside the profile box when the window has room next to the page (main is 1400 px), else with the badges */
.bm-btn .bm-ico { width: 22px; height: 22px; fill: var(--t-overview-bookmark-off); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.bm-btn.on .bm-ico { fill: var(--t-overview-bookmark-on); }
@media (min-width: 1520px) {
  .profile .bm-btn { position: absolute; top: 0; left: calc(100% + 14px); width: 48px; height: 48px; }
  .profile .bm-btn .bm-ico { width: 28px; height: 28px; }
}
/* Bookmarked and Recently viewed: two per row, so the name and the trophies sit closer and the row is tighter */
.home-bm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.home-bm-grid .home-acc-open { gap: 6px; padding: 0 8px; }
.home-bm-grid .home-acc-txt > .fit { font-size: 15px; }
.home-bm-grid .home-acc-tr { font-size: 14px; gap: 2px; }
.home-bm-grid .home-acc-x { width: 32px; }
@media (max-width: 560px) { .home-bm-grid { grid-template-columns: minmax(0, 1fr); } }
.home-acc { display: flex; align-items: stretch; gap: 6px; }
.home-acc-open {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: var(--t-home-acc-bg); border: 2px solid var(--ink); border-radius: 10px; transition: background .15s;
}
.home-acc-open:hover { background: var(--t-home-acc-hover-bg); }
.home-acc-open:disabled { opacity: .6; cursor: progress; }
.home-acc-ico { width: 40px; height: 40px; flex: none; border-radius: 8px; object-fit: cover; border: 2px solid var(--ink); }
.home-acc-txt { display: grid; min-width: 0; flex: 1; }
.home-acc-txt > .fit { white-space: nowrap; overflow: hidden; font-size: 17px; }
.home-acc-tag { font-size: 13px; color: var(--t-home-acc-tag); }
.home-acc-tr { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--t-home-acc-trophies); }
.home-acc-tr .trophy-ico { width: 22px; height: 18px; object-fit: contain; }
.home-acc-x { width: 40px; flex: none; font-size: 16px; color: var(--t-home-acc-x); background: var(--t-home-acc-bg); border: 2px solid var(--ink); border-radius: 10px; cursor: pointer; }
.home-acc-x:hover { background: var(--t-home-acc-x-hover-bg); color: var(--t-white); }
.home-tagline { max-width: 680px; margin: 6px 0 0; color: var(--t-home-tagline); }

.home-sec { display: grid; gap: 12px; margin-top: 34px; }
.home-sec-h { margin: 0; font-size: 28px; font-weight: normal; color: var(--t-home-sec-h); }
.home-rivals {
  display: flex; align-items: center; gap: 20px; padding: 16px 22px; min-height: 120px;
  background: linear-gradient(120deg, var(--t-home-rivals-bg), var(--t-home-rivals-bg-2)); border: var(--outline); border-radius: 16px; box-shadow: var(--drop);
  transition: transform .12s;
}
.home-rivals:hover { transform: translateY(-2px); }
.home-rivals-ico { width: 96px; height: 96px; object-fit: contain; flex: none; filter: drop-shadow(0 3px 0 var(--t-shade-40)); }
.home-rivals-txt { display: grid; gap: 4px; color: var(--t-home-rivals-text); }

.home-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.home-note {
  display: grid; align-content: start; gap: 6px; padding: 14px 16px; min-height: 150px;
  background: var(--t-home-note-bg); border: var(--outline); border-radius: 14px; box-shadow: var(--drop); transition: background .15s, transform .12s;
}
.home-note:hover { background: var(--t-home-note-hover-bg); transform: translateY(-2px); }
.home-note-top { display: flex; align-items: center; gap: 8px; }
.home-note-v { display: inline-block; padding: 1px 8px; font-size: 14px; color: var(--t-home-note-v-text); background: var(--t-home-note-v-bg); border: 2px solid var(--ink); border-radius: 7px; }
.home-note-d { font-size: 13px; color: var(--t-home-note-date); }
.home-note-t { font-size: 20px; line-height: 1.15; }
.home-note-s { font-size: 14px; color: var(--t-home-note-summary); }
.home-note-more { margin-top: auto; font-size: 14px; color: var(--t-home-note-more); }
/* Blog pages: "‹ Previous 1 2 3 Next ›", the current page bigger and in its own color */
.home-pager { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 6px; margin-top: 6px; }
.home-pager-b { min-width: 34px; padding: 4px 8px; font-size: 19px; color: var(--t-home-pager-text); background: none; border: 0; border-radius: 8px; cursor: pointer; text-shadow: inherit; }
.home-pager-b:hover { color: var(--t-home-pager-hover); }
.home-pager-b.on { font-size: 26px; color: var(--t-home-pager-on); cursor: default; }
.home-pager-b.step { padding: 4px 12px; }

/* Blog post: styled after the official Supercell blog (game font for headings, plain sans-serif body). */
.post { max-width: 900px; margin: 0 auto; display: grid; gap: 14px; padding: 22px 30px 30px; background: linear-gradient(180deg, var(--t-post-bg), var(--t-post-bg-2)); }
.post-back { justify-self: start; font-size: 20px; padding: 10px 22px; }
.post-head { display: grid; gap: 10px; justify-items: start; margin-top: 6px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.post-cat { color: var(--t-post-cat); }
.post-date { color: var(--t-post-date); }
.post-title { margin: 0; font-size: clamp(32px, 6vw, 52px); font-weight: normal; line-height: 1.05; text-transform: uppercase; color: var(--t-post-title);
  text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink), 0 4px 0 var(--ink); }
.post-sum { margin: 0; font-size: 19px; color: var(--t-post-summary); font-family: Nunito, 'Segoe UI', system-ui, sans-serif; letter-spacing: 0; }
.post-body { line-height: 1.8; font-size: 19px; color: var(--t-post-text); font-family: Nunito, 'Segoe UI', system-ui, sans-serif; letter-spacing: 0; }
.post-body h2 { margin: 30px 0 8px; font-size: 26px; font-family: var(--font); letter-spacing: .01em; line-height: 1.2; font-weight: normal; color: var(--t-post-h2); text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink), 0 2px 0 var(--ink); }
.post-body h3 { margin: 22px 0 4px; font-size: 21px; font-family: var(--font); letter-spacing: .01em; line-height: 1.3; font-weight: normal; color: var(--t-post-h3); }
.post-body p { margin: 0 0 18px; }
.post-body ul { margin: 0 0 18px; padding-left: 24px; display: grid; gap: 8px; }
.post-body strong { color: var(--t-post-strong); font-weight: 700; }
.post-body code { padding: 0 5px; border-radius: 5px; background: var(--t-post-code-bg); font-size: 14px; }
.post-body a { color: var(--t-post-link); text-decoration: underline; }
.post-nav { display: flex; justify-content: space-between; gap: 10px; }

.soon-page { display: grid; justify-items: center; gap: 12px; padding: 40px 16px 30px; text-align: center; }
.soon-page-ico { width: min(320px, 70vw); height: auto; object-fit: contain; filter: drop-shadow(0 6px 0 var(--t-shade-40)); animation: soon-bob 3.2s ease-in-out infinite; }
@keyframes soon-bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .soon-page-ico { animation: none; } }
.soon-page-title { margin: 0; font-size: clamp(40px, 8vw, 72px); font-weight: normal; color: var(--t-soon-page-title); }
.soon-page-sub { margin: 0 0 6px; max-width: 560px; font-size: 18px; color: var(--t-soon-page-sub); }

/* ---- Login (v1.23.0): Log in / Create account, account settings, the tag check (verify.js) ---------------- */
.user-btn { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.auth-wrap { display: grid; gap: 16px; max-width: 560px; margin: 0 auto; }
.auth-wrap.two { max-width: none; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .auth-wrap.two { grid-template-columns: 1fr; } .auth-wrap.two > .auth-panel:last-child { order: -1; } } /* phones: Log in first */
.auth-form { display: grid; gap: 12px; }
.auth-form[hidden] { display: none; }
.auth-form .field input { width: 100%; }
.auth-form .field b { font-size: 18px; color: var(--t-white); }
.auth-form p { margin: 0; }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; padding: 0; box-shadow: none; accent-color: var(--gold); }
.auth-method { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 6px 12px 10px; border: 2px solid var(--panel-2); border-radius: 10px; }
.auth-method legend { padding: 0 4px; color: var(--text-2); }
.auth-err { color: var(--red); font-weight: 700; }
.auth-help summary, .auth-danger summary { cursor: pointer; color: var(--text-2); }
.auth-help { color: var(--text-3); }
.auth-google { text-decoration: none; }
/* v1.28.0: easier to read (the owner has astigmatism): bigger text, the light text color instead of the dim one,
   errors in a box, Log in / Create account as tabs and the ways back in as cards. Colors from the theme only. */
.auth-panel { font-size: 16px; line-height: 1.55; }
/* The running text in the reading face of the Blog and legal pages; titles, tabs and buttons keep the game's. */
.auth-lead, .auth-note, .auth-err, .auth-back, .auth-way-text span, .auth-panel label.field, .auth-panel .check, .auth-panel input,
.auth-panel .small, .auth-help, .auth-method legend { font-family: Nunito, 'Segoe UI', system-ui, sans-serif; letter-spacing: 0; }
.auth-panel label.field, .auth-back a { font-weight: 700; }
.auth-panel .small { font-size: 15px; }
.auth-panel .muted, .auth-panel .auth-help { color: var(--text-2); }
.auth-panel label.field, .auth-panel .check { font-size: 16px; }
.auth-panel input { font-size: 16px; }
.auth-lead { color: var(--text-2); }
.auth-back { margin: 4px 0 0; font-size: 16px; }
.auth-back a { color: var(--t-white); }
.auth-err { font-size: 16px; padding: 8px 12px; color: var(--t-white); border: 2px solid var(--red); border-radius: 10px; background: var(--panel-2); }
.auth-err[hidden] { display: none; }
.auth-note { margin: 0 0 12px; padding: 10px 14px; border: 2px solid var(--gold); border-radius: 10px; background: var(--panel-2); color: var(--t-white); }
.auth-tabs { display: flex; border: var(--outline); border-radius: 12px; overflow: hidden; box-shadow: 0 3px 0 var(--ink); }
.auth-tabs a { flex: 1; padding: 10px 12px 9px; text-align: center; font-size: 18px; text-decoration: none; background: var(--panel-2); color: var(--text-2); }
.auth-tabs a + a { border-left: 2px solid var(--ink); }
.auth-tabs a.on { background: var(--gold); color: var(--ink); }
.auth-ways { display: grid; gap: 10px; margin-bottom: 8px; }
.auth-way { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--panel-2); color: inherit; text-decoration: none; box-shadow: 0 3px 0 var(--ink); }
.auth-way:hover, .auth-way:focus-visible { outline: 3px solid var(--gold); }
.auth-way-ico { flex: none; width: 48px; height: 48px; object-fit: contain; }
.auth-way-text { display: grid; gap: 2px; }
.auth-way-text b { font-size: 19px; font-weight: normal; color: var(--t-white); }
.auth-way-text span { color: var(--text-2); }
.auth-g { display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--t-white); color: var(--ink); font: 800 28px/1 Nunito, 'Segoe UI', system-ui, sans-serif; }
.grow-input { flex: 1; min-width: 180px; }
.pill-ok { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--green-dark); color: var(--t-white); }
.home-login { margin: 6px 0 0; color: var(--text-2); }
.acc-open { color: inherit; text-decoration: none; }
.vf-box { display: grid; gap: 10px; padding: 12px 14px; background: var(--panel-2); border: var(--outline); border-radius: 12px; }
.vf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 18px; }
.vf-lead { margin: 0; }
.vf-steps { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14px; display: grid; gap: 2px; }
.vf-target { display: flex; align-items: center; gap: 12px; padding: 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--panel); }
.vf-icon { width: 72px; height: 72px; border: 2px solid var(--ink); border-radius: 8px; }
.vf-color { flex-direction: column; align-items: flex-start; }
.vf-name { font-size: 30px; line-height: 1.1; }
.vf-bp button { font-size: 13px; }
.vf-note { min-height: 1.2em; margin: 0; color: var(--gold); font-weight: 700; }
.vf-btns { justify-content: flex-end; }

/* ---- Skeleton (v1.23.0): the outline of the Overview while an account opens (app.js skeleton) ---------------- */
.sk-wrap { display: grid; gap: 0; }
.sk-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-size: 18px; color: var(--text-2); }
.sk { border-radius: 10px; background: linear-gradient(90deg, var(--t-skeleton-bg) 25%, var(--t-skeleton-shine) 50%, var(--t-skeleton-bg) 75%); background-size: 200% 100%; animation: sk-shine 1.4s linear infinite; }
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.anim-light .sk { animation: none; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.sk-profile { display: flex; align-items: center; gap: 18px; }
.sk-avatar { width: 96px; height: 96px; flex: none; border-radius: 14px; }
.sk-lines { display: grid; gap: 10px; flex: 1; }
.sk-line { height: 18px; }
.sk-line.w25 { width: 25%; } .sk-line.w40 { width: 40%; height: 30px; } .sk-line.w60 { width: 60%; }
.sk-num { width: 180px; height: 56px; flex: none; }
.sk-stat { height: 92px; }
.sk-chart { height: 280px; }
@media (max-width: 700px) { .sk-num { display: none; } .sk-avatar { width: 72px; height: 72px; } }

/* ---- Name search (v1.23.0, search.js): the list under the Home box and the header box -------------------- */
.ns-wrap { position: relative; }
#patch-notes { scroll-margin-top: 80px; } /* opened from a link (data-to): its title below the sticky header */
.ns-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; text-align: left;
  background: var(--t-search-drop-bg); border: var(--outline); border-radius: 12px; box-shadow: var(--drop); overflow: hidden; }
.ns-head { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 13px; color: var(--text-3); border-bottom: 2px solid var(--ink); }
.ns-list { max-height: min(420px, 60vh); overflow-y: auto; overscroll-behavior: contain; }
.ns-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 6px 12px; font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--t-search-row-line); }
.ns-row:hover, .ns-row.on { background: var(--t-search-row-hover-bg); }
.ns-ico { width: 38px; height: 38px; flex: none; border-radius: 8px; border: 2px solid var(--ink); object-fit: cover; }
.ns-hash { display: grid; place-items: center; font-size: 20px; color: var(--gold); }
.ns-who { display: grid; min-width: 0; flex: 1; }
.ns-name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-tag { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-tr { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--t-home-acc-trophies); font-size: 14px; }
.ns-tr .trophy-ico { width: 20px; height: 16px; object-fit: contain; }
.ns-go { color: var(--text-3); font-size: 20px; }
.ns-note { margin: 0; padding: 12px 14px; font-size: 15px; line-height: 1.45; color: var(--text-2); font-family: Nunito, 'Segoe UI', system-ui, sans-serif; letter-spacing: 0; }
.ns-note b { color: var(--t-white); font-weight: 800; }
/* the header's box: left of the account menu; not on Home (it has the big one) nor on small screens */
.top-search { display: flex; align-items: center; gap: 6px; width: 230px; height: 36px; padding: 0 10px; background: var(--t-buttons-input-bg); border: var(--outline); border-radius: 9px; }
.top-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; box-shadow: none; background: transparent; font-size: 15px; }
.top-search input:focus { box-shadow: none; background: transparent; }
.top-search:focus-within { box-shadow: 0 0 0 3px var(--gold); }
.top-search-ico { color: var(--ink); line-height: 0; }
.top-search-ico svg { width: 18px; height: 18px; }
.top-search .ns-drop { width: 360px; left: auto; right: 0; }
body[data-area="home"] .top-search { display: none; }
@media (max-width: 900px) { .top-search { display: none; } }

/* Robot check (public/js/human.js): the widget works out of sight; the box shows only when Cloudflare asks a click. */
.hu-hidden { opacity: 0; pointer-events: none; }
.hu-box { width: min(380px, 100%); }
.hu-widget { display: flex; justify-content: center; min-height: 65px; }

/* Feedback (public/js/feedback.js): a round button fixed in the bottom-right corner, and its box. */
.fb-btn { position: fixed; right: 16px; bottom: 16px; z-index: 900; width: 52px; height: 52px; padding: 0; border-radius: 50%; }
.fb-btn .fb-ico { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 1px 0 var(--t-shade-40)); }
.fb-box { width: min(480px, 100%); }
.fb-box textarea { width: 100%; resize: vertical; min-height: 110px; font-size: 15px; line-height: 1.35; }
.fb-count { justify-self: end; }
.fb-thanks { margin: 0; font-size: 20px; color: var(--gold); }
@media (max-width: 760px) { .fb-btn { right: 10px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 46px; height: 46px; } .fb-btn .fb-ico { width: 28px; height: 28px; } } /* above the bottom menu */

/* Brawler page › Skin changes (v1.27.0): a timeline. The "Now" tag marks the skin worn today, which also gets a
   gold outline; the earlier ones are grayed out (their colors come back on hover). */
.chg-now { display: inline-block; vertical-align: middle; font-size: 11px; line-height: 1; padding: 3px 6px 2px; background: var(--t-brawlerpage-chg-now-bg); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; -webkit-text-stroke: 0; text-shadow: none; }
.chg-line { display: flex; align-items: flex-start; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.chg-step { flex: none; width: 118px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; cursor: pointer; }
.chg-step:not(.current) { filter: grayscale(1) brightness(.75); transition: filter .15s; }
.chg-step:hover { filter: none; }
.chg-step.current:hover .chg-art { filter: brightness(1.12); }
/* The skin stays inside its box (tall ones, like Gus's balloon, used to spill out: a grid row grew with the image),
   but may cover the rarity stripe at the bottom, which is drawn inside the box for that. */
.chg-art { position: relative; width: 104px; height: 120px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: var(--t-brawlerpage-chg-step-bg); border: 2px solid var(--ink); border-radius: 12px; }
.chg-art::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--rc); }
.chg-art img { position: relative; z-index: 1; width: 92%; height: calc(100% - 4px); object-fit: contain; object-position: center bottom; }
.chg-now-wrap { position: relative; }
.chg-step .chg-now { position: absolute; left: 50%; top: -8px; transform: translateX(-50%); z-index: 2; }
.chg-step.current .chg-art { box-shadow: 0 0 0 2px var(--t-brawlerpage-chg-current-border); }
.chg-name { font-size: 14px; line-height: 1.1; }
.chg-date { font-size: 12px; color: var(--text-2); }
.chg-arrow { flex: none; align-self: center; margin-top: -40px; width: 14px; height: 14px; border-top: 4px solid var(--t-brawlerpage-chg-arrow); border-right: 4px solid var(--t-brawlerpage-chg-arrow); transform: rotate(45deg); }

/* Tables of charts ("Show as table"): the same icon as on the chart's axis before each name (v1.27.0) */
.tbl-name { display: inline-flex; align-items: center; gap: 7px; }
.tbl-pin { width: 24px; height: 24px; object-fit: contain; flex: none; }

/* Progress › Recent upgrades (v1.27.0): 5 cards per row, like Skins › Equipped skins (portrait on its rarity's
   color on the left), with the change on the right: two level balls with an arrow, or the new item. */
.up-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .up-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .up-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .up-grid { grid-template-columns: minmax(0, 1fr); } }
.up-card { position: relative; display: flex; align-items: center; height: 90px; overflow: hidden; padding: 6px 8px 6px 92px; color: inherit; text-decoration: none; background: var(--t-bars-up-card-bg); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.up-card:hover { filter: brightness(1.1); }
.up-pbox { position: absolute; left: 0; top: 0; bottom: 0; width: 84px; overflow: hidden; border-right: 3px solid var(--ink); background: var(--bg); }
.up-portrait { width: 100%; height: 100%; object-fit: cover; object-position: 15% 25%; }
.up-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.up-name { font-size: 15px; line-height: 1.1; }
.up-lv { display: flex; align-items: center; gap: 6px; min-width: 0; }
.power-badge.up-ball { width: 34px; height: 34px; font-size: 17px; flex: none; }
.up-arrow { flex: none; width: 10px; height: 10px; margin: 0 3px 0 0; border-top: 4px solid var(--t-bars-up-arrow); border-right: 4px solid var(--t-bars-up-arrow); transform: rotate(45deg); }
.up-item { width: 34px; height: 34px; object-fit: contain; flex: none; }
/* Several new items of one brawler: overlapping like a pile of coins, the newest on the left and on top */
.up-stack { display: flex; align-items: center; flex: none; }
.up-coin { position: relative; display: flex; filter: drop-shadow(2px 0 1px var(--t-shade-35)); }
.up-coin + .up-coin { margin-left: var(--ov, -18px); }
.up-coin .up-item { width: 32px; height: 32px; }
.up-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.up-label span { font-size: 11px; color: var(--t-bars-up-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-label b { font-weight: normal; font-size: 13px; }
.up-date { font-size: 12px; color: var(--text-2); }

/* Every panel title sticks out of the card's top edge like the titles with an icon always did (asked for every
   title in v1.27.0). Their line box sat 8 px higher because the icon box has no text baseline; aligned to the top
   of the line instead, titles with and without an icon sit at the same height AND push the content down the same
   amount, so side-by-side charts line up (Battles per day / Trophies won per day were 8 px apart). */
.panel-title { vertical-align: top; margin-top: -20px; }
.coll-panel > .panel-title, .wins-mode-panel > .panel-title { margin-top: -20px; }

/* Battles › Wins per mode (v1.27.0): the list scrolls inside its panel, which takes the height of Wins per brawler
   beside it (the list itself doesn't make the row taller: flex-basis 0). Stacked on a phone: a normal scroll box. */
.wins-mode-panel { display: flex; flex-direction: column; }
.wins-mode-panel > .panel-title { align-self: flex-start; }
.wins-mode-scroll { flex: 1 1 0; min-height: 160px; overflow-y: auto; padding-right: 6px; }
@media (max-width: 760px) { .wins-mode-scroll { flex: none; max-height: min(600px, 70vh); } }

/* Section titles (v1.27.0): the box that shrinks / slides a long title cut off its black outline (a text-shadow
   1–2 px outside the letters) on tall and low letters and at both ends. A little room inside, given back with a
   negative margin, so the outline shows whole and nothing moves. */
.panel-title .t.fit { padding: 3px 4px 4px; margin: -3px -4px -4px; }
