/* MCWARS stats pages, premium pass (2026-11-02).
   Deep near-black, glassy layered surfaces with thin light borders, rounded corners, one hot pink used with restraint.
   Type: Manrope for UI/body, Sora for headings and big numbers. Sentence case; only tiny labels use spaced caps.
   The animated background (aurora + crystal dust) and the scroll reveals / count-ups live in fx.js. The store is store.css. */

:root {
  --ink: #07060a;
  --s1: rgba(255, 255, 255, .035);
  --s2: rgba(255, 255, 255, .06);
  --s3: rgba(255, 255, 255, .09);
  --panel: linear-gradient(180deg, rgba(24, 19, 30, .78), rgba(14, 11, 18, .74));
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --txt: #f5f0f7;
  --mut: #b0a8bb;
  --dim: #7a7286;
  --pink: #ff3ea0;
  --pink-2: #ff7cc2;
  --pink-soft: rgba(255, 62, 160, .12);
  --pink-line: rgba(255, 62, 160, .32);
  --violet: #8b5cf6;
  --ice: #93e4ee;
  --green: #3ddc84;
  --disp: "Sora", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r-lg: 22px;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -28px rgba(0, 0, 0, .85);
}

* { box-sizing: border-box; }
html { background: var(--ink); overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: transparent; }
body:not(.store-mode) {
  color: var(--txt);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.num { font-variant-numeric: tabular-nums; }
body:not(.store-mode) .muted { color: var(--dim); }
img { max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:where(body:not(.store-mode)) a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--pink-2); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(255, 62, 160, .35); color: #fff; }

/* ---------------- background layers (canvases are made by fx.js) ---------------- */
.bg-aurora, .bg-dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; pointer-events: none; }
.bg-aurora { opacity: .9; transition: opacity .6s linear; }
.bg-dust { z-index: -1; }
body::before {
  /* soft grid that fades out away from the top */
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 85%);
}
body::after {
  /* a whisper of film grain and a vignette so the gradients never band */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .5; mix-blend-mode: overlay;
}

/* ---------------- shared bits ---------------- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.art { object-fit: contain; }
.lbl { color: var(--dim); font-size: 11.5px; font-weight: 700; line-height: 1.2; letter-spacing: .11em; text-transform: uppercase; }
.fine { color: var(--dim); font-size: 13px; margin: 0; text-align: center; }
.head { display: block; flex: none; image-rendering: pixelated; background: var(--s3); border-radius: 7px; }
.badge { display: block; width: auto; height: 22px; image-rendering: pixelated; flex: none; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; padding: 6px 14px 6px 11px; border-radius: 999px;
  color: #ffc4e2; background: rgba(255, 62, 160, .08); border: 1px solid rgba(255, 62, 160, .22);
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.grad {
  background: linear-gradient(100deg, #ff9bd0 0%, #ff3ea0 45%, #b27dff 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------------- frame ---------------- */
.site { max-width: 1280px; margin: 0 auto; padding: 0 24px 40px; display: flex; flex-direction: column; gap: 28px; }
#view { display: flex; flex-direction: column; gap: 24px; min-height: 60vh; }
body.store-mode #view { display: block; gap: 0; }
body.store-mode .site { max-width: none; padding: 0; gap: 0; }

.topbar {
  position: sticky; top: 12px; z-index: 30; margin-top: 12px; display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 12px 0 16px; border-radius: 20px;
  background: rgba(13, 10, 17, .62); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 40px -18px rgba(0, 0, 0, .8);
}
.top-fade {
  /* made by fx.js: once scrolled, a soft fade at the top of the screen so content doesn't peek out above the floating bar */
  position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 29; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(rgba(7, 6, 10, .95) 20%, rgba(7, 6, 10, 0));
}
body.scrolled .top-fade { opacity: 1; }
.logo-link { display: flex; align-items: center; gap: 8px; flex: none; }
.logo-crystal { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgba(255, 62, 160, .45)); transition: transform .5s var(--ease); }
.logo-link:hover .logo-crystal { transform: rotate(-10deg) scale(1.06); }
.logo { height: 24px; width: auto; }
.nav { display: flex; gap: 2px; flex: none; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; color: var(--mut);
  font-size: 14px; font-weight: 600; letter-spacing: -.005em; transition: color .2s, background-color .2s;
}
.nav-link .ic { width: 16px; height: 16px; opacity: .8; }
.nav-link:hover { color: var(--txt); background: rgba(255, 255, 255, .045); }
.nav-link.active { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.nav-link.active .ic { color: var(--pink-2); opacity: 1; }
.search {
  position: relative; flex: 1; min-width: 120px; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px 0 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.search::after {
  content: "/"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; flex: none;
  border: 1px solid var(--line-2); color: var(--dim); font-size: 11px; font-weight: 700;
}
.search:focus-within { border-color: rgba(255, 62, 160, .5); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(255, 62, 160, .12); }
.search:focus-within::after { opacity: 0; }
.search > svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--txt); font: 500 14px var(--body); }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { display: none; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); min-width: 260px; padding: 6px; z-index: 40; border-radius: 16px;
  background: rgba(20, 16, 25, .97); border: 1px solid var(--line-2); box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .8);
  animation: popIn .2s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.sg { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-size: 14px; border-radius: 10px; }
.sg b { font-weight: 600; }
.sg:hover, .sg.on { background: rgba(255, 255, 255, .06); }
.sg-t { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--mut); font-size: 13px; }
.sg-t .badge { height: 18px; }
.sg-note { padding: 10px; color: var(--mut); font-size: 13.5px; }
.top-actions { display: flex; gap: 8px; flex: none; }
.tbtn {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 700; transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s, border-color .25s;
}
.tbtn svg { width: 17px; height: 17px; fill: currentColor; }
.tbtn.discord { background: rgba(88, 101, 242, .14); border: 1px solid rgba(88, 101, 242, .38); color: #cfd3ff; }
.tbtn.discord:hover { background: #5865f2; border-color: #5865f2; color: #fff; box-shadow: 0 10px 24px -10px rgba(88, 101, 242, .8); transform: translateY(-1px); }
.tbtn.store {
  background: linear-gradient(135deg, #ff5cb0, #ff2f95); color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 22px -10px rgba(255, 62, 160, .8);
}
.tbtn.store:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 30px -10px rgba(255, 62, 160, .95); }
.tbtn:active { transform: translateY(0) scale(.98); }

/* ---------------- buttons, tags, states ---------------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px;
  cursor: pointer; border-radius: 999px; font-family: var(--body); font-weight: 700; font-size: 14.5px; letter-spacing: -.005em; border: 0;
  transition: transform .3s var(--ease), box-shadow .3s, background-color .25s, border-color .25s, color .25s;
}
.btn.line { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--txt); }
.btn.line:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); transform: translateY(-1px); }
.btn.pink {
  background: linear-gradient(135deg, #ff5cb0, #ff2f95); color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 28px -12px rgba(255, 62, 160, .85);
}
.btn.pink:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 18px 36px -12px rgba(255, 62, 160, .95); }
.btn:active, .join:active { transform: translateY(0) scale(.985); }
/* sheen that sweeps across on hover */
.btn.pink::after, .tbtn.store::after, .join::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent); transform: skewX(-18deg); transition: left .7s var(--ease);
}
.btn.pink:hover::after, .tbtn.store:hover::after, .join:hover::after { left: 120%; }
.more { align-self: center; margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; white-space: nowrap; line-height: 1;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line); color: var(--mut); font-size: 12.5px; font-weight: 600;
}
.tag .ic { width: 13px; height: 13px; }
.tag .raw { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.tag.strong { color: #ffc4e2; background: rgba(255, 62, 160, .1); border-color: rgba(255, 62, 160, .26); }
.pchip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; position: relative; z-index: 1; transition: color .2s; }
.pchip .head { border-radius: 6px; }
.pchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchip:hover span { color: var(--pink-2); }

.state {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 56px 24px; color: var(--mut);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.state b { color: var(--txt); font-family: var(--disp); font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.state > span { max-width: 520px; }
.state .btn { margin-top: 10px; }
.ic-state { width: 54px; height: 54px; padding: 13px; color: var(--pink-2); stroke-width: 1.6; border-radius: 16px; background: var(--pink-soft); border: 1px solid var(--pink-line); }

.skel { background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .04); border-radius: 14px; position: relative; overflow: hidden; min-height: 54px; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent); animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skel-list { display: flex; flex-direction: column; gap: 8px; }
.tall-rows .skel { min-height: 76px; }
.skel.tall { min-height: 220px; border-radius: var(--r-lg); }
.stats-skel { min-height: 96px; border-radius: var(--r); }

.phead { display: flex; flex-direction: column; gap: 14px; padding-top: 40px; }
.phead h1 { margin: 0; font-family: var(--disp); font-weight: 600; font-size: 54px; line-height: 1.04; letter-spacing: -.035em; }
.phead p { margin: 0; color: var(--mut); max-width: 640px; font-size: 16.5px; line-height: 1.6; }
.back {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 28px; height: 36px; padding: 0 16px 0 11px;
  border-radius: 999px; color: var(--mut); font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: color .2s, background-color .2s, transform .3s var(--ease);
}
.back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.back:hover { color: var(--txt); background: rgba(255, 255, 255, .07); }
.back:hover svg { transform: translateX(-2px); }

/* ---------------- surfaces ---------------- */
.panel, .ltable, .rtable, .glist, .stat, .top-card, .gm-hero, .pl-hero {
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* ---------------- hero ---------------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; min-height: 500px; padding: 48px 0 12px; }
.hero-copy { position: relative; z-index: 1; padding: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-copy h1 { margin: 0; font-family: var(--disp); font-weight: 600; font-size: clamp(46px, 5.6vw, 78px); line-height: 1.02; letter-spacing: -.042em; }
.hero-copy p { margin: 0; color: var(--mut); max-width: 500px; font-size: 17.5px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; align-items: center; }
.hero-actions .btn { min-height: 60px; padding: 0 26px; font-size: 15px; }
.join {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 7px 7px 7px 24px; min-height: 60px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #ff5cb0 0%, #ff3ea0 50%, #f02a8e 100%); color: #fff; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 40px -14px rgba(255, 62, 160, .9);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.join:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 22px 50px -14px rgba(255, 62, 160, 1); }
.join-txt { display: flex; flex-direction: column; justify-content: center; gap: 1px; text-align: left; }
.join .lbl { color: rgba(255, 255, 255, .78); font-size: 10.5px; }
.join b { font-family: var(--disp); font-weight: 600; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.join-do {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 46px; min-width: 104px; padding: 0 18px; border-radius: 999px;
  background: rgba(22, 3, 14, .32); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 13.5px; font-weight: 700; transition: background-color .2s;
}
.join:hover .join-do { background: rgba(22, 3, 14, .45); }
.join-do svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.join.done .join-do { background: rgba(255, 255, 255, .95); color: #c0176d; }
.online { display: flex; align-items: center; gap: 9px; color: var(--mut); min-height: 24px; font-size: 14px; }
.online i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 10px rgba(61, 220, 132, .7); }
.online i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.online b { color: var(--txt); font-weight: 700; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-art > * { grid-area: 1 / 1; }
.hero-glow {
  width: min(520px, 110%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 62, 160, .42) 0%, rgba(214, 60, 220, .18) 35%, rgba(139, 92, 246, .06) 55%, transparent 70%);
}
.hero-orbit { position: relative; width: min(430px, 92%); aspect-ratio: 1; }
.hero-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); animation: spin 26s linear infinite; }
.hero-orbit i::before {
  /* the travelling highlight on each ring */
  content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1px;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(255, 124, 194, .9) 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.hero-orbit i::after { content: ""; position: absolute; top: 50%; right: -3px; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #ffd0e8; box-shadow: 0 0 12px 2px rgba(255, 62, 160, .9); }
.hero-orbit i:nth-child(2) { inset: 13%; animation-duration: 38s; animation-direction: reverse; border-color: rgba(255, 255, 255, .05); }
.hero-orbit i:nth-child(2)::before { background: conic-gradient(from 180deg, transparent 0 70%, rgba(147, 228, 238, .7) 86%, transparent 96%); }
.hero-orbit i:nth-child(2)::after { background: #e6fbff; box-shadow: 0 0 12px 2px rgba(147, 228, 238, .8); right: auto; left: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-float { position: relative; z-index: 1; width: min(310px, 66%); animation: float 8s ease-in-out infinite; will-change: transform; }
.hero-float img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(255, 62, 160, .45)) drop-shadow(0 0 2px rgba(255, 255, 255, .2)); }
.hero-shadow {
  align-self: end; margin-bottom: 18px; width: min(220px, 50%); height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 62, 160, .45), rgba(255, 62, 160, 0)); animation: shadow 8s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(-14px) rotate(-2deg); } 50% { transform: translateY(10px) rotate(2deg); } }
@keyframes shadow { 0%, 100% { transform: scale(.78); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }

/* ---------------- stat tiles ---------------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat {
  position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; padding: 20px; min-width: 0; border-radius: var(--r);
  transition: transform .4s var(--ease), border-color .3s;
}
.stat::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(120% 100% at 0% 0%, rgba(255, 62, 160, .12), transparent 60%);
}
.stat:hover { transform: translateY(-3px); border-color: var(--line-2); }
.stat:hover::before { opacity: 1; }
.stat > .ic {
  width: 40px; height: 40px; padding: 10px; border-radius: 12px; color: var(--pink-2); stroke-width: 1.8;
  background: var(--pink-soft); border: 1px solid rgba(255, 62, 160, .2);
}
.stat > div { position: relative; display: flex; flex-direction: column; gap: 7px; min-width: 0; padding-top: 1px; }
.stat .val {
  font-family: var(--disp); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: -.03em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.stat small { color: var(--dim); font-size: 12.5px; line-height: 1.2; }

/* ---------------- home ---------------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 16px; }
.home-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sec-title { margin: 0; font-family: var(--disp); font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.rail { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }

.panel { padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; border-radius: var(--r-lg); }
.panel h2 {
  margin: 0; font-family: var(--disp); font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -.02em;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
}
.panel h2 small { font-family: var(--body); font-weight: 500; color: var(--dim); font-size: 13px; letter-spacing: 0; }
.panel h3 { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--pink-2); }
.sub-link { margin-left: auto; font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--pink-2); letter-spacing: 0; display: inline-flex; align-items: center; gap: 4px; }
.sub-link::after { content: "\2192"; transition: transform .3s var(--ease); }
.sub-link:hover::after { transform: translateX(3px); }

.tops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.top-card {
  position: relative; display: flex; min-height: 216px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.top-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 80% at 85% 105%, rgba(255, 62, 160, .2), transparent 62%), radial-gradient(60% 50% at 0% 0%, rgba(139, 92, 246, .08), transparent 70%);
  transition: opacity .4s;
}
.top-card:hover { transform: translateY(-4px); border-color: rgba(255, 62, 160, .32); box-shadow: 0 30px 60px -30px rgba(255, 62, 160, .55), var(--shadow); }
.top-card.t1 { border-color: rgba(255, 62, 160, .38); box-shadow: 0 0 0 1px rgba(255, 62, 160, .08), 0 30px 70px -34px rgba(255, 62, 160, .8), var(--shadow); }
.top-card.t1::before {
  background: radial-gradient(100% 90% at 85% 105%, rgba(255, 62, 160, .42), transparent 62%), radial-gradient(70% 60% at 0% 0%, rgba(255, 124, 194, .12), transparent 70%),
    linear-gradient(180deg, rgba(255, 62, 160, .06), transparent);
}
.top-card.t1::after {
  /* gradient hairline border on the leader */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(140deg, rgba(255, 140, 200, .95), rgba(255, 62, 160, .2) 40%, transparent 65%, rgba(139, 92, 246, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.top-rank {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px;
  font-family: var(--disp); font-weight: 600; font-size: 14px; line-height: 1; color: var(--txt); background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2);
}
.top-rank .ic { width: 14px; height: 14px; color: var(--mut); }
.t1 .top-rank { background: linear-gradient(135deg, #ff5cb0, #ff2f95); border-color: rgba(255, 255, 255, .2); color: #fff; box-shadow: 0 6px 16px -6px rgba(255, 62, 160, .9); }
.t1 .top-rank .ic { color: #fff; }
.top-body { position: absolute; right: 2px; bottom: -12px; width: 44%; height: 90%; display: flex; align-items: flex-end; justify-content: flex-end; }
.top-body img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); transition: transform .5s var(--ease); transform-origin: bottom center; }
.top-card:hover .top-body img { transform: translateY(-4px) scale(1.04); }
.top-info { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 7px; padding: 56px 8px 18px 18px; width: 64%; margin-top: auto; }
.top-name { font-size: 16px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.top-tier { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mut); line-height: 1; }
.top-elo { display: flex; align-items: baseline; gap: 6px; font-family: var(--disp); line-height: 1; margin-top: 2px; }
.top-elo b { font-size: 34px; font-weight: 600; letter-spacing: -.035em; }
.t1 .top-elo b { background: linear-gradient(180deg, #fff 30%, #ffc4e2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.top-elo span { font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--dim); }
.top-more { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; line-height: 1.3; color: var(--dim); }
.top-more b { color: var(--mut); font-weight: 700; }

.ltable { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; }
.lhead, .lrow { display: grid; grid-template-columns: 44px minmax(150px, 1fr) 92px 84px 62px 64px 56px 64px 62px; align-items: center; padding: 0 16px 0 10px; column-gap: 6px; }
.lhead { min-height: 46px; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .025); border-bottom: 1px solid var(--line); }
.lhead button { background: none; border: 0; padding: 8px 0; cursor: pointer; color: inherit; text-align: right; font: inherit; letter-spacing: inherit; text-transform: inherit; transition: color .2s; }
.lhead button:hover { color: var(--txt); }
.lhead button.on { color: var(--pink-2); }
.lhead button.on::after { content: " \2193"; }
.lrow { position: relative; min-height: 58px; border-top: 1px solid rgba(255, 255, 255, .045); transition: background-color .25s; }
.lhead + .lrow { border-top: 0; }
.lrow::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--pink); opacity: 0; transform: scaleY(.4); transition: opacity .25s, transform .35s var(--ease); }
.lrow:hover { background: rgba(255, 255, 255, .035); }
.lrow:hover::before { opacity: 1; transform: none; }
.lrow .c { text-align: right; font-size: 14px; font-weight: 500; color: var(--mut); }
.lrow .c.on { color: var(--txt); font-weight: 700; }
.lrow .c-pos { text-align: center; color: var(--dim); font-weight: 600; font-size: 13.5px; }
.lrow.podium .c-pos { color: var(--pink-2); font-weight: 800; }
.lhead .c-pos, .lhead .c-name, .lhead .c-tier { text-align: left; }
.lhead .c-pos { text-align: center; }
.lrow .c-name { display: flex; align-items: center; gap: 11px; min-width: 0; text-align: left; }
.lrow .c-name .head { border-radius: 8px; }
.lrow .c-name b { color: var(--txt); font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.lrow:hover .c-name b { color: #fff; }
.lrow .c-tier { display: flex; align-items: center; gap: 6px; text-align: left; font-size: 13px; font-weight: 600; line-height: 1; }
.lrow .c-elo { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--txt); font-weight: 700; }
.mini { display: block; width: 48px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mini u { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ff3ea0, #ff8ccb); }
.sort-phone { display: none; }

.latest { display: flex; flex-direction: column; gap: 14px; }
.latest:hover .latest-top b { color: var(--pink-2); }
.latest-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.latest-top b { font-family: var(--disp); font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; transition: color .2s; }
.latest-top span { color: var(--dim); font-size: 12.5px; }
.latest-win { display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.latest-p { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.latest-p .head { border-radius: 6px; }
.latest-p b { font-weight: 600; }
.latest-nums { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--dim); font-size: 13px; }
.latest-nums b { color: var(--txt); font-weight: 700; }
.recs { display: flex; flex-direction: column; }
.rec { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .05); }
.rec:first-child { border-top: 0; padding-top: 0; }
.rec:last-child { padding-bottom: 0; }
.rec .ic { color: var(--pink-2); width: 32px; height: 32px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.rec-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; color: var(--mut); line-height: 1.3; font-size: 13.5px; }
.rec-l small { color: var(--txt); font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec b { font-family: var(--disp); font-size: 16px; font-weight: 600; white-space: nowrap; letter-spacing: -.02em; }
a.rec .rec-l { transition: color .2s; }
a.rec:hover .rec-l { color: var(--txt); }
.recs.plain .rec { padding: 10px 0; }

/* ---------------- ranked ---------------- */
.ranked-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.ladder-panel { justify-content: space-between; }
.ladder { flex: 1; display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 4px; }
.lstep { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ls-bar { position: relative; width: 100%; height: auto; min-height: 160px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; background: rgba(255, 255, 255, .03); border-radius: 8px; overflow: hidden; }
.ls-bar i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #ff8ccb, #ff3ea0 55%, rgba(255, 62, 160, .55)); box-shadow: 0 0 18px rgba(255, 62, 160, .35); transform-origin: bottom; }
.rv.in .ls-bar i { animation: growY 1.1s var(--ease) both; animation-delay: calc(var(--rv-delay, 0ms) + 150ms); }
@keyframes growY { from { transform: scaleY(0); } }
.ls-bar span { font-size: 11px; font-weight: 700; color: var(--txt); line-height: 1; padding-bottom: 5px; }
.lstep .badge { height: 24px; max-width: 100%; object-fit: contain; }
.lstep.none .badge { opacity: .4; }
.lstep b { font-size: 11px; letter-spacing: -.02em; font-weight: 700; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 100%; }
.lstep small { font-size: 10.5px; color: var(--dim); line-height: 1; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.rule { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .05); font-size: 13.5px; color: var(--mut); line-height: 1.3; align-items: baseline; }
.rule b { color: var(--txt); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.ranked-top .fine { text-align: left; }

.rtable { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; }
.rhead, .rrow { display: grid; grid-template-columns: 44px 62px minmax(0, 1fr) 76px 110px 110px; gap: 8px; }
.rhead { padding: 15px 18px 13px 8px; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1; background: rgba(255, 255, 255, .025); border-bottom: 1px solid var(--line); }
.rhead .r { text-align: right; }
.rrow { position: relative; align-items: center; padding: 12px 18px 12px 8px; border-top: 1px solid rgba(255, 255, 255, .045); transition: background-color .25s; }
.rhead + .rrow { border-top: 0; }
.rrow::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--pink); opacity: 0; transition: opacity .25s; }
.rrow:hover { background: rgba(255, 255, 255, .035); }
.rrow:hover::before { opacity: 1; }
.rrow .c-pos { text-align: center; color: var(--dim); font-weight: 600; font-size: 13.5px; }
.rrow.podium .c-pos { color: var(--pink-2); font-weight: 800; }
.badge.big { height: 44px; }
.rr-main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rr-name { display: flex; align-items: center; gap: 9px; }
.rr-name .head { border-radius: 6px; }
.rr-name b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-bar, .pl-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .07); max-width: 460px; overflow: hidden; }
.rr-bar i, .pl-bar i { display: block; height: 100%; border-radius: 99px; background: var(--tc, var(--pink)); box-shadow: 0 0 12px var(--tc, var(--pink)); transform-origin: left; }
.rv.in .pl-bar i { animation: growX 1.3s var(--ease) both; animation-delay: calc(var(--rv-delay, 0ms) + 200ms); }
@keyframes growX { from { transform: scaleX(0); } }
.rr-sub { display: flex; gap: 14px; color: var(--dim); font-size: 12.5px; line-height: 1.2; }
.rr-sub span:first-child { color: var(--mut); font-weight: 600; }
.rr-col { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; color: var(--mut); line-height: 1; }
.rr-col b { color: var(--txt); font-size: 14px; font-weight: 600; }
.rr-col span { font-size: 13px; white-space: nowrap; }
.rr-elo { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; font-family: var(--disp); line-height: 1; }
.rr-elo b { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.rr-elo span { font-family: var(--body); color: var(--dim); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ---------------- games ---------------- */
.chart-panel { padding-bottom: 18px; }
.dchart { display: flex; align-items: stretch; height: 140px; gap: 6px; border-bottom: 1px solid var(--line-2); padding-top: 26px; }
.dcol { position: relative; flex: 1; display: flex; align-items: flex-end; min-width: 0; border-radius: 8px 8px 0 0; transition: background-color .2s; }
.dcol i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #ff8ccb, #ff3ea0 60%, rgba(255, 62, 160, .45)); transform-origin: bottom; transition: filter .2s; }
.rv.in .dcol i { animation: growY 1s var(--ease) both; animation-delay: calc(var(--rv-delay, 0ms) + 150ms); }
.dcol:hover { background: rgba(255, 255, 255, .035); }
.dcol:hover i { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 62, 160, .6)); }
.dcol[data-tip]:hover::after, .dcol[data-tip]:focus::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% - 20px); transform: translateX(-50%); z-index: 5; white-space: nowrap;
  background: rgba(24, 19, 30, .97); color: var(--txt); border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; line-height: 1.2;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .8);
}
.daxis { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; line-height: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.chips { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.chips button {
  height: 34px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer; background: none; color: var(--mut);
  font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; transition: color .2s, background-color .2s, box-shadow .2s;
}
.chips button:hover { color: var(--txt); background: rgba(255, 255, 255, .05); }
.chips button[aria-pressed="true"] { color: #fff; background: rgba(255, 62, 160, .18); box-shadow: inset 0 0 0 1px rgba(255, 62, 160, .4); }
.filter-text {
  margin-left: auto; height: 44px; width: 220px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  color: var(--txt); font: 500 14px var(--body); outline: 0; transition: border-color .2s, box-shadow .2s;
}
.filter-text:focus { border-color: rgba(255, 62, 160, .5); box-shadow: 0 0 0 4px rgba(255, 62, 160, .12); }
.filter-text::placeholder { color: var(--dim); }

.glist { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; }
.ghead, .grow { display: grid; grid-template-columns: 124px 280px minmax(0, 1fr) 64px 56px 76px; }
.ghead { gap: 12px; padding: 15px 20px 13px; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1; background: rgba(255, 255, 255, .025); border-bottom: 1px solid var(--line); }
.ghead .r { text-align: right; }
.grow { position: relative; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, .045); transition: background-color .25s; }
.ghead + .grow { border-top: 0; }
.grow:hover { background: rgba(255, 255, 255, .035); }
.grow.latest { background: linear-gradient(90deg, rgba(255, 62, 160, .08), transparent 45%); box-shadow: inset 2px 0 0 var(--pink); }
.grow-link { position: absolute; inset: 0; z-index: 0; }
.g-id { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.g-id b { font-family: var(--disp); font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.g-id span { color: var(--dim); font-size: 12.5px; }
.g-win { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.g-win-list { display: flex; flex-wrap: wrap; gap: 6px 14px; min-width: 0; }
.g-num { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; line-height: 1; }
.g-num b { font-size: 14px; font-weight: 600; white-space: nowrap; }

.gm-hero, .pl-hero { position: relative; display: grid; border-radius: 26px; overflow: hidden; isolation: isolate; }
.gm-hero::before, .pl-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 120% at 100% 0%, rgba(139, 92, 246, .12), transparent 60%), radial-gradient(40% 90% at 0% 100%, rgba(255, 62, 160, .14), transparent 70%);
}
.gm-hero { grid-template-columns: 220px minmax(0, 1fr); min-height: 240px; }
.gm-body, .pl-skin { position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; padding-top: 16px; }
.gm-body::before, .pl-skin::before {
  content: ""; position: absolute; left: 50%; bottom: -30%; width: 150%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 62, 160, .5), rgba(255, 62, 160, .12) 55%, transparent);
}
.gm-body::after, .pl-skin::after { content: ""; position: absolute; top: 18%; bottom: 18%; right: 0; width: 1px; background: linear-gradient(transparent, var(--line-2), transparent); }
.gm-body img, .pl-skin img { position: relative; display: block; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.gm-body img { max-height: 228px; }
.gm-id { padding: 30px 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; min-width: 0; }
.gm-id h1 { margin: 0; font-family: var(--disp); font-weight: 600; font-size: 52px; line-height: 1.02; letter-spacing: -.04em; }
.gm-id p { margin: 0; color: var(--mut); }
.gm-win { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.standings { display: flex; flex-direction: column; }
.st-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .05); align-items: start; }
.st-row:first-child { border-top: 0; padding-top: 0; }
.st-place { display: flex; align-items: center; gap: 6px; height: 26px; color: var(--mut); }
.st-place .ic { width: 15px; height: 15px; color: var(--pink-2); }
.st-place b { font-family: var(--disp); font-size: 15px; font-weight: 600; }
.st-row.first .st-place b { color: var(--pink-2); }
.st-row.first { margin: 0 -12px; padding: 12px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 62, 160, .1), rgba(255, 62, 160, .02)); border-top: 0; }
.st-row.first + .st-row { border-top: 0; }
.st-players { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.st-p { display: grid; grid-template-columns: minmax(0, 1fr) 84px 96px; align-items: center; gap: 8px; }
.st-n { color: var(--dim); font-size: 13px; text-align: right; line-height: 1; white-space: nowrap; }
.st-n b { color: var(--txt); font-weight: 700; }

/* ---------------- player ---------------- */
.pl-hero { grid-template-columns: 260px minmax(0, 1fr); min-height: 300px; }
.pl-skin img { max-height: 290px; }
.pl-id { padding: 30px 34px; display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0; }
.pl-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-rank {
  display: inline-block; padding: 6px 13px; border-radius: 999px; font-family: var(--disp); font-weight: 600; font-size: 14px; line-height: 1.2;
  color: #ffc4e2; background: rgba(255, 62, 160, .1); border: 1px solid rgba(255, 62, 160, .26);
}
.pl-rank small { color: var(--dim); font-family: var(--body); font-weight: 600; font-size: 12.5px; }
.linkish {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer; color: var(--mut); font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: color .2s, background-color .2s;
}
.linkish:hover { color: var(--txt); background: rgba(255, 255, 255, .08); }
.pl-id h1 { margin: 0; font-family: var(--disp); font-weight: 600; font-size: 56px; line-height: 1.05; letter-spacing: -.04em; overflow-wrap: anywhere; }
.pl-tier { display: flex; gap: 18px; align-items: center; max-width: 620px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.badge.huge { height: 68px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.pl-tier-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.pl-elo { display: flex; align-items: baseline; gap: 7px; font-family: var(--disp); line-height: 1; }
.pl-elo b { font-size: 38px; font-weight: 600; letter-spacing: -.04em; }
.pl-elo span { font-family: var(--body); color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pl-bar { height: 7px; max-width: none; }
.pl-next { display: flex; justify-content: space-between; gap: 10px; color: var(--mut); font-size: 13px; line-height: 1.2; }
.pl-unranked { margin: 0; color: var(--mut); }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.pl-side { display: flex; flex-direction: column; gap: 20px; }
.hist { display: flex; flex-direction: column; }
.h-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 50px 54px 86px; align-items: center; gap: 10px; padding: 12px 10px; margin: 0 -10px; border-radius: 14px; border-top: 1px solid rgba(255, 255, 255, .045); transition: background-color .25s; }
.h-row:first-child { border-top: 0; }
.h-row:hover { background: rgba(255, 255, 255, .035); }
.hist:not(.all) .h-row:nth-child(n+11) { display: none; }
.h-row:hover .h-main > b { color: var(--pink-2); }
.h-place { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.h-place b { font-family: var(--disp); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.h-place small { color: var(--dim); font-size: 11.5px; }
.h-row.won .h-place b { color: var(--pink-2); }
.h-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.h-main > b { font-family: var(--disp); font-size: 15px; font-weight: 600; line-height: 1.1; letter-spacing: -.015em; transition: color .2s; }
.h-mates { color: var(--dim); font-size: 12.5px; line-height: 1.3; }
.h-mates .raw { color: var(--mut); }
.h-c { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; line-height: 1; }
.h-c[data-label]::before { content: attr(data-label); color: var(--dim); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.h-c b { font-size: 14px; font-weight: 700; }
.h-when span { color: var(--dim); font-size: 12.5px; text-align: right; }
.mates { display: flex; flex-direction: column; gap: 10px; }
.mate { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--dim); font-size: 12.5px; line-height: 1; }
.mate b { color: var(--txt); font-weight: 700; }
.modes { display: flex; flex-direction: column; }
.m-row { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(6, 72px); align-items: center; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .05); font-size: 14px; }
.m-head { border-top: 0; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding-top: 0; }
.m-name { font-weight: 600; }
.m-c { text-align: right; }
.m-c b { font-weight: 700; }

/* ---------------- footer + toast ---------------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(255, 62, 160, .4)); }
.foot-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.foot-brand b { font-family: var(--disp); font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.foot-brand span { color: var(--dim); font-size: 12.5px; }
.foot-ip {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 9px 20px; border-radius: 16px; cursor: pointer; line-height: 1.2;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); transition: border-color .25s, background-color .25s, transform .3s var(--ease);
}
.foot-ip:hover { border-color: var(--pink-line); background: rgba(255, 62, 160, .06); transform: translateY(-1px); }
.foot-ip span { color: var(--dim); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.foot-ip b { font-family: var(--disp); font-size: 15px; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--mut); font-size: 13.5px; font-weight: 500; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--txt); }
body:not(.store-mode) .site-toast {
  background: rgba(24, 19, 30, .96); color: var(--txt); border: 1px solid var(--pink-line); border-radius: 999px; font-family: var(--body); font-size: 14px; font-weight: 600;
  padding: 11px 20px; line-height: 1.2; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 0 4px rgba(255, 62, 160, .06); letter-spacing: 0;
  animation: toastIn .35s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
body.store-mode .topbar, body.store-mode .footer { display: none !important; }

/* ---------------- motion (fx.js adds .rv / .in / .rv-done) ---------------- */
.rv { opacity: 0; }
.rv.in { animation: rvIn .9s var(--ease) var(--rv-delay, 0ms) both; }
@keyframes rvIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------------- smaller screens ---------------- */
@media (max-width: 1160px) {
  .home-grid, .pl-grid { grid-template-columns: minmax(0, 1fr); }
  .rail, .pl-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ranked-top { grid-template-columns: minmax(0, 1fr); }
  .nav-link .ic { display: none; }
  .nav-link { padding: 0 12px; }
  .ghead, .grow { grid-template-columns: 110px 170px minmax(0, 1fr) 64px 56px 76px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats.four, .stats.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .search::after { display: none; }
}
@media (max-width: 860px) {
  .site { padding: 0 14px 30px; gap: 22px; }
  #view { gap: 18px; }
  .topbar { position: relative; top: 0; flex-wrap: wrap; height: auto; gap: 10px; padding: 12px; margin-top: 10px; border-radius: 20px; }
  .top-fade { display: none; }
  .logo-link { flex: 1; }
  .logo-crystal { width: 32px; height: 32px; }
  .logo { height: 21px; }
  .nav { order: 4; width: 100%; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
  .nav-link { flex: 1; justify-content: center; height: 34px; padding: 0 4px; font-size: 12.5px; }
  .search { order: 3; flex: 1 1 100%; height: 42px; }
  .tbtn { height: 38px; padding: 0 13px; font-size: 13px; }
  .rail { top: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 4px 0 0; row-gap: 22px; }
  .hero-copy { padding: 0; gap: 18px; }
  .hero-copy h1 { font-size: clamp(38px, 10.5vw, 52px); }
  .hero-copy p { font-size: 15.5px; }
  .hero-art { order: -1; min-height: 0; height: 270px; }
  .hero-glow { width: 330px; }
  .hero-orbit { width: 260px; }
  .hero-float { width: 168px; }
  .hero-shadow { width: 130px; margin-bottom: 4px; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .join { width: 100%; }
  .join-txt { flex: 1; }
  .hero-actions .btn { width: 100%; min-height: 52px; }
  .stats, .stats.four, .stats.three, .stats.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat { display: block; padding: 15px 15px 16px; border-radius: 16px; }
  .stat > .ic { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; padding: 7px; border-radius: 9px; }
  .stat > div { padding-right: 34px; gap: 8px; }
  .stat .val { font-size: 24px; }
  .phead { padding-top: 22px; gap: 12px; }
  .phead h1 { font-size: 40px; }
  .phead p { font-size: 15px; }
  .rail, .pl-side { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 18px; border-radius: 20px; }
  .sec-title { font-size: 26px; }

  .tops { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .top-card { min-height: 150px; }
  .top-info { padding: 50px 8px 16px 16px; }
  .top-body { width: 36%; height: 112%; }
  .top-elo b { font-size: 30px; }

  .sort-phone { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
  .sort-phone button { flex: 1; min-height: 34px; border: 0; border-radius: 999px; background: none; color: var(--mut); font-size: 12.5px; font-weight: 600; padding: 0 2px; cursor: pointer; line-height: 1; transition: color .2s, background-color .2s; }
  .sort-phone button[aria-pressed="true"] { color: #fff; background: rgba(255, 62, 160, .18); box-shadow: inset 0 0 0 1px rgba(255, 62, 160, .4); }
  .lhead { display: none; }
  .lrow { grid-template-columns: 26px repeat(5, minmax(0, 1fr)); grid-template-areas: "pos name name name tier elo" "pos wins kills kd winrate games"; padding: 12px 12px 12px 6px; row-gap: 10px; column-gap: 4px; }
  .lrow:first-of-type, .lhead + .lrow { border-top: 0; }
  .lrow .c-pos { grid-area: pos; align-self: start; padding-top: 8px; }
  .lrow .c-name { grid-area: name; }
  .lrow .c-tier { grid-area: tier; justify-content: flex-end; }
  .lrow .c-elo { grid-area: elo; min-width: 58px; }
  .lrow .c-tier span { display: none; }
  .lrow .c-wins { grid-area: wins; } .lrow .c-kills { grid-area: kills; } .lrow .c-kd { grid-area: kd; } .lrow .c-winrate { grid-area: winrate; } .lrow .c-games { grid-area: games; }
  .lrow .c-wins, .lrow .c-kills, .lrow .c-kd, .lrow .c-winrate, .lrow .c-games { display: flex; flex-direction: column; gap: 4px; text-align: left; line-height: 1; font-size: 13px; }
  .lrow .c[data-label]:not(.c-elo)::before { content: attr(data-label); color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .lrow .c-elo .num { font-size: 15px; }
  .ladder { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 6px; }
  .ls-bar { min-height: 64px; flex: none; height: 64px; }

  .rhead { display: none; }
  .rrow:first-of-type, .rhead + .rrow { border-top: 0; }
  .rrow { grid-template-columns: 26px 42px minmax(0, 1fr) auto; grid-template-areas: "pos badge main elo" "pos badge main games"; padding: 12px 12px 12px 4px; row-gap: 3px; }
  .rrow .c-pos { grid-area: pos; }
  .rr-badge { grid-area: badge; }
  .badge.big { height: 34px; }
  .rr-main { grid-area: main; }
  .rr-elo { grid-area: elo; }
  .rr-elo b { font-size: 21px; }
  .rr-col:not(.rr-last) { grid-area: games; flex-direction: row; gap: 4px; justify-content: flex-end; align-items: baseline; }
  .rr-col:not(.rr-last)::before { content: "games"; color: var(--dim); font-size: 12px; }
  .rr-last { display: none; }
  .rr-sub { flex-direction: column; gap: 3px; }

  .chips { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: 1; padding: 0 10px; }
  .filter-text { width: 100%; margin: 0; }
  .ghead { display: none; }
  .grow:first-of-type, .ghead + .grow { border-top: 0; }
  .grow { grid-template-columns: minmax(0, 1fr) repeat(3, auto); grid-template-areas: "id num1 num2 num3" "tags tags tags tags" "win win win win"; column-gap: 16px; row-gap: 10px; padding: 14px 16px; }
  .g-id { grid-area: id; }
  .grow .tags { grid-area: tags; }
  .grow > .g-num:nth-child(5) { grid-area: num1; }
  .grow > .g-num:nth-child(6) { grid-area: num2; }
  .grow > .g-num:nth-child(7) { grid-area: num3; }
  .g-num::before { content: attr(data-label); color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .grow .g-win { grid-area: win; }
  .h-row .tag:nth-child(3) { display: none; }
  .dchart { height: 110px; gap: 3px; }

  .gm-hero { grid-template-columns: 104px minmax(0, 1fr); min-height: 0; border-radius: 22px; }
  .gm-body img { max-height: 140px; }
  .gm-id { padding: 18px 16px; gap: 9px; }
  .gm-id h1 { font-size: 34px; }
  .st-row { grid-template-columns: 56px minmax(0, 1fr); }
  .st-p { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }

  .pl-hero { grid-template-columns: 108px minmax(0, 1fr); min-height: 0; border-radius: 22px; }
  .pl-skin { padding-top: 12px; }
  .pl-skin img { max-height: 176px; }
  .pl-id { padding: 16px 14px; gap: 9px; }
  .pl-id h1 { font-size: 30px; }
  .pl-tier { gap: 10px; padding: 0; background: none; border: 0; }
  .badge.huge { height: 40px; }
  .pl-elo b { font-size: 26px; }
  .pl-next { flex-direction: column; gap: 3px; font-size: 12.5px; }
  .pl-rank { font-size: 12.5px; padding: 4px 10px; }
  .linkish { height: 28px; padding: 0 11px; font-size: 12px; }
  .h-row { grid-template-columns: 44px minmax(0, 1fr) auto auto; }
  .h-when { display: none; }
  .m-row { grid-template-columns: minmax(0, 1fr) repeat(3, 46px); gap: 6px 4px; font-size: 13px; }
  .m-row .m-c:nth-child(4), .m-row .m-c:nth-child(6), .m-row .m-c:nth-child(5) { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skel::after, .hero-float, .hero-shadow, .hero-orbit i, .online i::after { animation: none; }
  .rv { opacity: 1; }
  .rv.in, .rv.in .ls-bar i, .rv.in .dcol i, .rv.in .pl-bar i { animation: none; }
  .btn, .tbtn, .join, .stat, .top-card, .top-body img { transition: none; }
}
