/* MCWARS site, 2026-10 look: near-black flat panels, pixel type on the stats pages, chunky pressable buttons,
   gold / silver / bronze podium, magenta pink accent (the crystal). The store uses the same panels with Chakra Petch. */

:root {
  --bg: #08070a;
  --panel: #131116;
  --card: #0e0c11;
  --chip: #1b181f;
  --line: #2a2530;
  --fg: #f8f3f7;
  --muted: #958c9a;
  --dim: #6d6572;
  --accent: #ff3ea0;
  --accent-hi: #ff62b4;
  --accent-dark: #a0175e;
  --accent-text: #ff7cc4;
  --accent-soft: #2a0c1d;
  --violet: #b24bff;
  --gold: #f6b91d;
  --silver: #c9ced8;
  --bronze: #cd7f32;
  --blurple: #5865f2;
  --blurple-dark: #3640b5;
  --sale: #ff3ea0;
  --font-pixel: "Tiny5", "Chakra Petch", monospace;
  --font-ui: "Chakra Petch", system-ui, sans-serif;
  color-scheme: dark;
}
.theme-halloween { --sale: #ff7a1a; }

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-pixel);
  font-size: 16px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}
/* the pixel font has one weight: never let the browser smear a fake bold; "bold" = a 1px shadow of the same colour */
body:not(.store-mode) { font-synthesis: none; font-variant-ligatures: none; font-size: 17px; }
.pod-name, .pod-val, .row .name, .tile b, .wchip span, .rankpill, .mgame .gt, .nav-link.active, .sorts button[aria-pressed="true"], .btn3d span, .ip-mini b, .empty b { text-shadow: 1px 0 0 currentColor; letter-spacing: 1px; }
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------- loading screen ----------------
   JS fades it out as soon as the data is in; the CSS animation removes it at 1.5 s even if the JS never runs. */
#splash {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 16px;
  transition: opacity .35s ease, visibility .35s;
  animation: splashAuto .35s ease 1.5s forwards;
}
#splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashAuto { to { opacity: 0; visibility: hidden; } }
#splash .splash-word { width: min(560px, 86vw); height: auto; }
#splash .splash-msg { font-family: var(--font-pixel); font-size: 24px; letter-spacing: 3px; color: var(--fg); text-shadow: 1px 0 0 currentColor; }
#splash .dots { display: inline-block; width: 2.2em; text-align: left; }
#splash .dots::after { content: ""; animation: dots 1.2s steps(4, end) infinite; }
#splash .splash-track { width: min(330px, 62vw); height: 10px; background: var(--panel); border-radius: 99px; overflow: hidden; }
#splash .splash-track i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; animation: splashFill 1.4s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }
@keyframes splashFill { from { width: 4%; } to { width: 100%; } }
@media (max-width: 560px) { #splash .splash-msg { font-size: 18px; letter-spacing: 2px; } }

/* ---------------- page frame ---------------- */
.site { max-width: 1240px; margin: 0 auto; padding: 22px 16px 56px; display: flex; flex-direction: column; gap: 22px; }

.topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  padding: 2px 0 18px; border-bottom: 1px solid var(--line);
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
  color: var(--muted); text-decoration: none; font-size: 16px; letter-spacing: .5px; white-space: nowrap;
  padding: 8px 12px; border-radius: 10px; transition: background .15s, color .15s, text-shadow .15s;
}
.nav-link:hover { color: var(--fg); text-shadow: 0 0 8px rgba(255, 255, 255, .55); }
.nav-link.active { background: var(--fg); color: var(--bg); text-shadow: none; }
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-crystal { width: 48px; height: 48px; filter: drop-shadow(0 0 14px rgba(255, 62, 160, .35)); }
.logo { width: auto; height: 44px; }
.logo-link:hover .logo, .logo-link:hover .logo-crystal { filter: brightness(1.12) drop-shadow(0 0 14px rgba(255, 62, 160, .45)); }
.top-actions { justify-self: end; display: flex; gap: 10px; }

/* chunky pressable buttons: a solid lip under the face that squashes on click */
.btn3d, .b3d {
  --face: var(--accent); --lip: var(--accent-dark); --ink: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--face); color: var(--ink); border: 0; border-radius: 10px; cursor: pointer; text-decoration: none;
  padding: 9px 18px; letter-spacing: .5px; margin-bottom: 6px;
  box-shadow: 0 6px 0 var(--lip), inset 0 2px 0 rgba(255, 255, 255, .38);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.btn3d:hover, .b3d:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 8px 0 var(--lip), inset 0 2px 0 rgba(255, 255, 255, .38); color: var(--ink); }
.btn3d:active, .b3d:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--lip), inset 0 2px 0 rgba(255, 255, 255, .38); }
.btn3d svg, .b3d svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn3d.discord, .b3d.blurple { --face: var(--blurple); --lip: var(--blurple-dark); }
.b3d.dark { --face: #221e26; --lip: #000; --ink: var(--fg); box-shadow: 0 6px 0 #000, inset 0 2px 0 rgba(255, 255, 255, .07); }
.b3d[disabled] { opacity: .55; cursor: wait; transform: none; }

.search {
  display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 12px; padding: 0 16px; cursor: text;
}
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--fg); background: transparent; border: 0; padding: 14px 0; }
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search kbd { font: inherit; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }

/* ---------------- shared bits ---------------- */
.board { display: flex; flex-direction: column; gap: 20px; }
.phead { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.phead .eyebrow { color: var(--accent-text); font-size: 15px; letter-spacing: 4px; text-shadow: 2px 2px 0 #4a0f2f; }
.phead h1 { margin: 0; font-size: 46px; line-height: 1; letter-spacing: 3px; text-transform: uppercase; text-shadow: 3px 3px 0 #3a3640; }
.phead p { margin: 0; color: var(--muted); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); padding: 34px 16px; background: var(--panel); border-radius: 16px; }
.empty b { color: var(--fg); font-size: 18px; font-weight: 600; }
.more { align-self: center; font-size: 16px; letter-spacing: 1px; color: var(--fg); background: var(--panel); border: 0; border-radius: 12px; padding: 10px 22px; cursor: pointer; }
.more:hover { background: var(--accent); color: #fff; }
.plink { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; font: inherit; color: inherit; }
.plink:hover { text-decoration: underline; text-underline-offset: 4px; }
.badge { display: block; height: 22px; width: auto; image-rendering: pixelated; }

@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .pop > * { animation: pop .24s ease-out backwards; animation-delay: calc(min(var(--i, 0), 24) * 22ms); }
}

/* ---------------- podium ---------------- */
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 12px; align-items: end; max-width: 900px; width: 100%; margin: 0 auto; }
.pod {
  --tone: var(--silver); position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0;
  background: var(--card); border: 2px solid var(--tone); border-radius: 18px; padding: 16px 0 0; overflow: hidden;
  background-image: radial-gradient(90% 60% at 50% 70%, color-mix(in srgb, var(--tone) 14%, transparent), transparent 70%);
}
.pod.p1 { --tone: var(--gold); }
.pod.p3 { --tone: var(--bronze); }
.pod > :not(.pod-base) { max-width: 100%; padding-inline: 10px; }
.pod .crown { position: absolute; top: 10px; right: 12px; width: 30px; height: 24px; fill: var(--gold); filter: drop-shadow(0 2px 6px rgba(246, 185, 29, .5)); padding: 0; }
.pod-name { color: var(--tone); font-size: 17px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.pod-tier { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pod-tier .badge { height: 22px; }
.pod-skin { height: 150px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.pod.p1 .pod-skin { height: 196px; }
.pod-skin img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
.pod-val { font-size: 26px; font-weight: 700; line-height: 1; margin-top: 4px; }
.pod-lbl { color: var(--muted); font-size: 14px; letter-spacing: 2px; }
.pod-stats { display: flex; gap: 14px; color: var(--muted); font-size: 14px; }
.pod-stats b { color: var(--fg); font-weight: 600; }
.pod-base {
  align-self: stretch; width: 100%; margin-top: 8px; text-align: center; line-height: 1;
  background: var(--tone); color: var(--bg); font-size: 46px; font-weight: 700; padding: 12px 0;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35);
}
.pod.p1 .pod-base { font-size: 62px; padding: 18px 0; }
.pod.p3 .pod-base { font-size: 40px; padding: 8px 0; }

/* sort pills */
.sorts { align-self: center; display: flex; gap: 4px; background: var(--panel); border-radius: 12px; padding: 4px; }
.sorts button { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 8px 18px; cursor: pointer; letter-spacing: 1px; transition: background .15s, color .15s, text-shadow .15s; }
.sorts button:hover { color: var(--accent-text); text-shadow: 0 0 6px rgba(255, 62, 160, .9), 0 0 14px rgba(255, 62, 160, .5); }
.sorts button[aria-pressed="true"] { background: var(--accent); color: #fff; text-shadow: none; }

/* ---------------- rows ---------------- */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 14px; background: var(--panel); border-radius: 16px; padding: 8px 14px; transition: background .15s; }
.row:hover { background: var(--chip); }
.row .pos { width: 40px; flex: none; text-align: center; color: var(--accent-text); font-weight: 600; }
.row.top10 .pos { color: var(--fg); }
.row .skin { flex: none; width: 54px; height: 60px; display: flex; align-items: flex-end; justify-content: center; }
.row .skin img { max-height: 100%; object-fit: contain; }
.row .name { flex: 1; min-width: 0; font-size: 22px; font-weight: 500; overflow-wrap: anywhere; line-height: 1.15; }
.chips { display: flex; gap: 8px; flex: none; }
.chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 62px; padding: 6px 10px; border-radius: 10px; background: var(--bg); }
.row:hover .chip:not(.elo) { background: var(--panel); }
.chip span { font-size: 12px; letter-spacing: 1.5px; color: var(--muted); }
.chip b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip.on b { color: var(--accent-text); }
.chip.elo { background: var(--accent); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3); }
.chip.elo span { color: #fff; opacity: .75; }
.chip.elo b { color: #fff; }
.chip.tier-chip .badge { height: 20px; }
.chip.tier-chip.none b { color: var(--dim); }

/* ranked */
.ranked-row { border-left: 4px solid var(--rc, var(--line)); padding-left: 10px; }
.ranked-row.w1 { background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 12%, var(--panel)), var(--panel) 50%); }
.ranked-badge { width: 52px; height: 52px; object-fit: contain; image-rendering: pixelated; flex: none; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .5)); }
.ranked-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ranked-main .name { flex: none; font-size: 21px; }
.ranked-tier { color: var(--rc, var(--accent-text)); font-size: 14px; letter-spacing: 1px; }
.bar { height: 8px; max-width: 380px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--rc, var(--accent)); border-radius: 99px; }
.ranked-sub { color: var(--muted); font-size: 13px; }

/* ---------------- games ---------------- */
.games { display: flex; flex-direction: column; gap: 10px; }
.gcard {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
  background: var(--panel); border: 2px solid transparent; border-radius: 16px; padding: 14px 18px; cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.gcard:hover { border-color: #3b3540; transform: translateY(-2px); }
.gcard.latest {
  border-color: var(--accent);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 20%, var(--panel)), var(--panel) 55%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 12px 40px -12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.gtag { font-size: 14px; line-height: 1; letter-spacing: 1px; border-radius: 6px; padding: 4px 7px 3px; background: var(--chip); color: var(--fg); }
.gtag.latest { background: var(--accent); color: #fff; }
.gtag.mode { color: var(--accent-text); background: var(--accent-soft); }
.gtag.mode.zonewar { color: #6fd0ff; background: #0d2330; }
.gtag.mode.strikepoint { color: #ffcf5a; background: #2e2208; }
.gtag.region { color: var(--muted); }
.gcard h3 { margin: 10px 0 6px; font-size: 24px; line-height: 1; letter-spacing: 2px; text-transform: uppercase; text-shadow: 2px 2px 0 #3a3640; }
.glink { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; text-shadow: inherit; }
.glink:hover { color: var(--accent-text); }
.when { color: var(--muted); font-size: 15px; }
.when b { color: var(--fg); font-weight: 500; }
.gstats { display: grid; grid-template-columns: repeat(3, minmax(96px, auto)); gap: 6px; }
.gstat { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--bg); border-radius: 10px; padding: 9px 10px 8px; }
.gstat b { font-size: 19px; line-height: 1; font-weight: 600; white-space: nowrap; }
.gstat.dur b { color: var(--accent-text); }
.gstat span, .gwin > span { font-size: 13px; line-height: 1; letter-spacing: 2px; color: var(--muted); }
.gwin { display: flex; flex-direction: column; gap: 6px; min-width: 0; justify-self: end; width: min(100%, 260px); }
.gwin .list { display: grid; grid-template-columns: 1fr; gap: 4px; }
.gwin.many { width: min(100%, 400px); }
.gwin.many .list { grid-template-columns: 1fr 1fr; }
.wchip {
  display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; color: var(--fg);
  background: var(--bg); border: 0; border-radius: 8px; padding: 3px 10px 3px 3px; cursor: pointer; text-align: left;
  transition: background .15s, color .15s;
}
.wchip:hover { background: var(--accent); color: #fff; }
.wchip.none, .wchip.static { cursor: default; color: var(--muted); padding: 7px 10px; }
.wchip.static { padding: 3px 10px 3px 3px; color: var(--fg); }
.wchip.static:hover { background: var(--bg); color: var(--fg); }
.wchip img { width: 24px; height: 24px; border-radius: 6px; image-rendering: pixelated; flex: none; }
.wchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.soon { align-items: flex-start; }

/* ---------------- footer ---------------- */
.footer { display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 18px; }
.ip-mini { display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 9px 16px; cursor: pointer; text-align: left; transition: border-color .15s; }
.ip-mini:hover { border-color: var(--accent); }
.ip-mini svg { width: 18px; height: 18px; fill: var(--accent); }
.ip-mini span { display: flex; flex-direction: column; }
.ip-mini b { font-weight: 600; letter-spacing: 1px; }
.ip-mini small { color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.footer-links { justify-self: end; display: flex; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; border: 2px solid var(--line); border-radius: 8px; padding: 7px 14px; }
.footer-links a:hover { color: var(--fg); border-color: var(--accent); }
.footer-fine { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13px; }

/* ---------------- player / game card ---------------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .78); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.card-pop {
  position: relative; width: 100%; max-width: 640px; margin: auto 0; background: var(--bg); border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: cardIn .2s ease;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }
.pop-close { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 15px; color: var(--fg); background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; cursor: pointer; }
.pop-close:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pop-hero {
  position: relative; display: flex; align-items: flex-end; gap: 20px; padding: 26px 24px 0;
  background: radial-gradient(120% 140% at 0% 100%, color-mix(in srgb, var(--tier) 28%, transparent), transparent 62%), var(--panel);
}
.pop-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tier); }
.hero-skin { width: 130px; height: 170px; display: flex; align-items: flex-end; justify-content: center; flex: none; }
.hero-skin img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .6)); }
.hero-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.hero-id h2 { margin: 0; padding-right: 80px; font-size: 34px; line-height: 1; color: var(--accent-text); overflow-wrap: anywhere; text-shadow: 2px 2px 0 #4a0f2f; }
.pop-hero.game h2 { color: var(--fg); text-transform: uppercase; letter-spacing: 2px; text-shadow: 2px 2px 0 #3a3640; }
.line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.rankpill { background: var(--accent); color: #fff; border-radius: 8px; padding: 4px 10px; font-weight: 600; }
.tierpill { display: inline-flex; align-items: center; gap: 6px; background: var(--chip); border-radius: 8px; padding: 3px 10px 3px 4px; color: var(--fg); }
.tierpill .badge { height: 22px; }
.prog { display: flex; flex-direction: column; gap: 6px; }
.prog .bar { --rc: var(--tier); height: 10px; background: var(--chip); }
.prog .lbl { color: var(--muted); font-size: 14px; }
.won-line { color: var(--gold); overflow-wrap: anywhere; }
.pop-body { display: flex; flex-direction: column; gap: 18px; padding: 20px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--panel); border-radius: 14px; padding: 11px 13px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile span { font-size: 12px; letter-spacing: 1.5px; color: var(--muted); }
.tile b { font-size: 21px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.hl { background: var(--accent); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3); }
.tile.hl span { color: #fff; opacity: .75; }
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec h3 { margin: 0; font-size: 15px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; display: flex; gap: 10px; align-items: baseline; }
.sec h3 small { text-transform: none; color: var(--dim); font-size: 13px; letter-spacing: 0; }
.sec .empty { padding: 18px; }
.mgames, .teams { display: flex; flex-direction: column; gap: 8px; }
.mgame, .team {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  background: var(--panel); border-left: 4px solid var(--tone, var(--line)); border-radius: 14px; padding: 8px 10px 8px 8px;
}
.mgame { cursor: pointer; }
.mgame:hover { background: var(--chip); }
.mgame.w1, .team.w1 { --tone: var(--gold); background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 13%, var(--panel)), var(--panel) 55%); }
.team.w2 { --tone: var(--silver); }
.team.w3 { --tone: var(--bronze); }
.mgame .rk, .team .rk { min-width: 64px; text-align: center; font-size: 16px; font-weight: 700; border-radius: 10px; padding: 9px 6px; background: var(--tone, var(--chip)); color: var(--bg); text-transform: uppercase; }
.mgame:not(.w1) .rk, .team:not(.w1):not(.w2):not(.w3) .rk { color: var(--fg); background: var(--chip); }
.mgame .mid { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mgame .gt { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.mgame .won { font-size: 11px; letter-spacing: 1px; background: var(--gold); color: #111; border-radius: 6px; padding: 3px 7px; }
.mgame .sub { color: var(--muted); font-size: 13px; }
.mgame .nums { display: flex; gap: 6px; }
.mgame .chip { min-width: 56px; padding: 4px 8px; }
.team { grid-template-columns: auto 1fr; align-items: start; }
.team-ps { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-k { color: var(--muted); font-size: 14px; white-space: nowrap; }
.tp-k b { color: var(--fg); }
.win-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.win-grid .wchip { background: var(--panel); padding: 6px 12px 6px 6px; }
.win-grid .wchip img { width: 32px; height: 32px; }

/* ---------------- toasts + seasonal strip ---------------- */
.site-toast, .store-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px);
  background: var(--accent); color: #fff; font-family: var(--font-ui); font-weight: 700; letter-spacing: .5px;
  border-radius: 12px; padding: 12px 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); text-align: center;
}
.store-toast.bad { background: #e2434b; }
.site-sale-strip {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--sale); color: #160a00; text-decoration: none; padding: 8px 16px; font-family: var(--font-ui); font-weight: 600; font-size: 14px;
}
.site-sale-strip svg { width: 18px; height: 18px; fill: currentColor; }
.site-sale-strip b { letter-spacing: 1px; }
.site-sale-strip em { font-style: normal; text-decoration: underline; text-underline-offset: 3px; }
body.store-mode .site-sale-strip { display: none; }

/* ==================================================================================================
   STORE
   ================================================================================================== */
body.store-mode { font-family: var(--font-ui); }
body.store-mode .topbar, body.store-mode .search, body.store-mode .footer { display: none !important; }
body.store-mode .site { max-width: none; padding: 0; gap: 0; }
.shop { min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font-ui); line-height: 1.35; }
.swrap { width: 100%; max-width: 1300px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.muted { color: var(--muted); }

.sale-strip {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center;
  background: var(--sale); color: #170a02; font-weight: 600; font-size: 14px; padding: 8px 16px;
}
.sale-strip svg { width: 18px; height: 18px; fill: currentColor; }
.sale-strip b { letter-spacing: 1px; }
.sale-strip .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

/* header */
.sh-top { background: var(--card); border-bottom: 1px solid #1f1b23; }
.sh-row { display: flex; align-items: center; gap: 24px; padding-block: 30px; flex-wrap: wrap; }
.sh-logo { display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; cursor: pointer; }
.sh-crystal { width: 84px; height: 84px; filter: drop-shadow(0 0 18px rgba(255, 62, 160, .4)); }
.sh-word { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.sh-word img { height: 58px; width: auto; }
.sh-word small { font-weight: 700; font-size: 15px; letter-spacing: 9px; color: var(--muted); padding-left: 6px; }
.sh-logo:hover .sh-crystal { filter: brightness(1.12) drop-shadow(0 0 22px rgba(255, 62, 160, .55)); }
.sh-div { width: 1px; height: 84px; background: var(--line); }
.sh-spacer { flex: 1; }
.ppill {
  display: flex; align-items: center; gap: 16px; flex: 1 1 240px; max-width: 330px;
  background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; color: var(--fg);
  cursor: pointer; text-decoration: none; text-align: left; transition: border-color .15s, transform .15s;
}
.ppill:hover { border-color: var(--accent); color: var(--fg); transform: translateY(-2px); }
.ppill.dc { justify-content: flex-end; }
.ppill.dc:hover { border-color: var(--blurple); }
.ppill-ic { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.ppill-ic svg { width: 26px; height: 26px; fill: currentColor; }
.ppill-ic.pink { background: var(--accent); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 4px 0 var(--accent-dark); }
.ppill-ic.blurple { background: var(--blurple); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 4px 0 var(--blurple-dark); }
.ppill-ic.bare { width: auto; height: auto; color: var(--accent); }
.ppill-ic.bare svg { width: 18px; height: 18px; }
.ppill-tx { display: flex; flex-direction: column; gap: 2px; }
.ppill-tx.right { text-align: right; }
.ppill-tx b { font-size: 19px; letter-spacing: 1px; }
.ppill-tx small { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); }
.ppill-tx small.ok { color: var(--accent-text); }
.ppill.small { flex: none; padding: 9px 16px; gap: 12px; border-radius: 12px; }
.ppill.small .ppill-tx b { font-size: 16px; }

.sh-nav { border-top: 1px solid #1f1b23; }
.sh-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.sh-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sh-tabs::-webkit-scrollbar { display: none; }
.navl {
  flex: none; font-size: 15px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted);
  background: none; border: 0; border-radius: 8px; padding: 10px 14px; min-height: 44px; cursor: pointer;
}
.navl:hover { color: var(--fg); background: #18151b; }
.navl.on { color: var(--accent-text); background: var(--accent-soft); }
.sh-acts { display: flex; align-items: center; gap: 10px; flex: none; }
.uchip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; background: var(--panel); border: 2px solid var(--line);
  border-radius: 10px; padding: 4px 12px 4px 5px; font-weight: 700; font-size: 15px; cursor: pointer;
}
.uchip:hover { border-color: var(--accent); }
.uchip img { width: 30px; height: 30px; border-radius: 6px; image-rendering: pixelated; }
.uchip span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uchip svg { width: 14px; height: 14px; color: var(--muted); fill: currentColor; }
.uchip.login { padding-left: 12px; }
.uchip.login svg { width: 18px; height: 18px; color: var(--fg); }
.cartbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: var(--accent); color: #fff; border: 0;
  border-radius: 10px; padding: 8px 18px; font-weight: 700; font-size: 15px; letter-spacing: .5px; cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3);
}
.cartbtn:hover { background: var(--accent-hi); }
.cartbtn svg { width: 19px; height: 19px; fill: currentColor; }
.cartbtn em { font-style: normal; background: var(--bg); color: var(--accent-text); font-size: 12px; min-width: 20px; height: 20px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* main */
.s-main { flex: 1; display: flex; flex-direction: column; gap: 24px; padding-block: 36px 64px; }
.s-h1 { margin: 0; font-size: 34px; font-weight: 700; font-style: italic; letter-spacing: 1px; }
.s-head { display: flex; flex-direction: column; gap: 8px; }
.cat-desc { max-width: 760px; }
.cat-desc p { margin: 0 0 6px; }
.blk { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 4px 20px #000; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.blk h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.blk p { margin: 0; color: #dcd4da; }
.blk p.muted { color: var(--muted); }
.blk .b3d { align-self: flex-start; }
.grid-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.grid-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.cat {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 140px; text-align: left;
  background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 24px 26px; cursor: pointer;
  box-shadow: 0 4px 20px #000; transition: border-color .15s, transform .15s;
}
.cat:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-tx { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cat-tx b { font-size: 26px; font-style: italic; letter-spacing: 1px; text-transform: uppercase; }
.cat-tx em { font-style: normal; color: var(--accent-text); font-weight: 700; font-size: 14px; letter-spacing: 1px; margin-top: 4px; }
.cat-art { width: 84px; height: 84px; object-fit: contain; flex: none; border-radius: 12px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.cat-art.letter { display: grid; place-items: center; font-size: 42px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); border-radius: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li span:last-child { padding-top: 4px; }
.step { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.act-card h2 { font-size: 18px; }
.act-top { display: flex; align-items: center; gap: 14px; }
.act-top img { border-radius: 10px; image-rendering: pixelated; }
.act-top div { display: flex; flex-direction: column; gap: 2px; }
.act-top b { font-size: 20px; }
.act-top span { color: var(--muted); }
.act-recent { display: flex; flex-wrap: wrap; gap: 8px; }
.act-recent img { border-radius: 8px; image-rendering: pixelated; }

/* seasonal banner */
.event-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 2px solid var(--line); border-radius: 18px; padding: 30px; min-height: 190px; background: #0b0710;
}
.ev-photo { position: absolute; inset: 0; background: url("/halloween-hero.jpg") center 40% / cover no-repeat; opacity: .5; }
.event-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 7, 10, .95) 0%, rgba(8, 7, 10, .7) 50%, rgba(8, 7, 10, .2) 100%); }
.event-banner > :not(.ev-photo) { position: relative; z-index: 2; }
.ev-text { max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
.ev-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--sale); font-weight: 700; letter-spacing: 2px; font-size: 14px; }
.ev-kicker svg { width: 18px; height: 18px; fill: currentColor; }
.ev-text h2 { margin: 0; font-size: 32px; font-style: italic; letter-spacing: .5px; }
.ev-text p { margin: 0; color: #ddd3da; }
.sale-box { display: flex; align-items: center; gap: 18px; background: rgba(8, 7, 10, .8); border: 2px solid var(--sale); border-radius: 16px; padding: 16px 18px; }
.sale-off { display: flex; align-items: center; gap: 8px; color: var(--sale); }
.sale-off b { font-size: 44px; line-height: 1; font-style: italic; }
.sale-off span { font-size: 12px; font-weight: 700; letter-spacing: 1px; line-height: 1.2; }
.sale-timer { display: flex; flex-direction: column; gap: 6px; }
.sale-timer small { color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.cd { display: flex; gap: 6px; }
.cd-box { min-width: 50px; background: var(--panel); border-radius: 8px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; }
.cd-box b { font-size: 22px; font-variant-numeric: tabular-nums; }
.cd-box small { font-size: 10px; }

/* packages */
.grid-pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.pkg {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: var(--panel); border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 4px 20px #000; padding: 26px 20px 18px;
  transition: transform .2s ease, border-color .15s;
}
.pkg:hover { transform: translateY(-3px); border-color: #3d3642; }
.pkg.on-sale { border-color: color-mix(in srgb, var(--sale) 55%, var(--line)); }
.pkg-sale { position: absolute; top: 12px; right: 12px; font-size: 13px; font-weight: 700; background: var(--sale); color: #170a02; border-radius: 7px; padding: 4px 8px; }
.pkg-media { width: 132px; height: 132px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.pkg-media img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); transition: transform .2s; }
.pkg:hover .pkg-media img { transform: scale(1.05) rotate(-2deg); }
.pkg-letter { width: 110px; height: 110px; display: grid; place-items: center; font-size: 52px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); border-radius: 20px; }
.pkg-name { margin: 0; font-size: 24px; font-weight: 700; font-style: italic; letter-spacing: .5px; text-transform: uppercase; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 22px; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.price del { color: var(--dim); font-size: 15px; }
.per { font-size: 14px; font-weight: 600; color: var(--muted); }
.pkg-actions { display: flex; gap: 10px; width: 100%; margin-top: auto; padding-top: 4px; }
.pkg-actions .b3d { flex: 1; font-weight: 700; min-height: 46px; }
.infob {
  flex: none; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 2px solid var(--line); border-radius: 10px; color: var(--muted); cursor: pointer;
}
.infob:hover { border-color: var(--accent); color: var(--accent-text); }
.infob svg { width: 19px; height: 19px; fill: currentColor; }
.b3d { font-family: var(--font-ui); font-size: 16px; font-weight: 700; min-height: 46px; }
.b3d.big { width: 100%; min-height: 52px; font-size: 17px; }

/* drawer (cart) */
.shop-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .72); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(440px, 100%); display: flex; flex-direction: column;
  background: var(--panel); border-left: 2px solid var(--line); box-shadow: -20px 0 60px rgba(0, 0, 0, .6); animation: drawerIn .22s ease;
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 24px; font-style: italic; letter-spacing: 1px; }
.drawer-head h2 svg { width: 22px; height: 22px; fill: var(--accent); }
.x { font-size: 15px; color: var(--muted); background: var(--chip); border: 0; border-radius: 8px; width: 34px; height: 34px; cursor: pointer; flex: none; }
.x:hover { color: #fff; background: var(--accent); }
.cart-lines { flex: 1; overflow-y: auto; padding: 4px 22px; }
.cline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #1f1b23; }
.cline img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.cl-tx { flex: 1; min-width: 0; }
.cl-tx b { font-size: 16px; overflow-wrap: anywhere; }
.cl-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.summary { display: flex; flex-direction: column; gap: 14px; padding: 18px 22px 22px; border-top: 2px solid var(--line); background: var(--card); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; }
.sum-total span { color: var(--muted); font-weight: 600; }
.sum-total b { font-size: 28px; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.deliver { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.deliver small { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--muted); }
.deliver div { display: flex; align-items: center; gap: 10px; }
.deliver img { border-radius: 6px; image-rendering: pixelated; }
.deliver b { font-size: 18px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.coupons { display: flex; flex-wrap: wrap; gap: 6px; }
.coupon { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent-text); border-radius: 8px; padding: 4px 6px 4px 10px; font-weight: 700; font-size: 14px; }
.coupon button { background: none; border: 0; color: inherit; cursor: pointer; }
.field { display: flex; gap: 10px; align-items: flex-start; }
.field .name-in { flex: 1; min-width: 0; }
.field .b3d { flex: none; }
.name-in {
  font: inherit; font-size: 16px; font-weight: 600; color: var(--fg); background: var(--bg); border: 2px solid var(--line);
  border-radius: 10px; padding: 10px 14px; min-height: 46px; width: 100%; outline: none;
}
.name-in:focus { border-color: var(--accent); }
.name-in::placeholder { color: var(--dim); font-weight: 400; }
.hint { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px; color: var(--muted); }
.cart-empty svg { width: 54px; height: 54px; fill: var(--line); }
.cart-empty p { margin: 0; }
.link { font: inherit; font-size: 15px; color: var(--muted); background: none; border: 0; padding: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--fg); }

/* modals */
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 72; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto;
  background: var(--panel); border: 2px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
  padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 16px; animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); } }
.modal-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.modal > .x { position: absolute; top: 14px; right: 14px; }
.modal h2 { margin: 0; font-size: 26px; font-style: italic; letter-spacing: 1px; }
.modal p { margin: 0; }
.login-modal { text-align: center; align-items: stretch; }
.login-logo { width: 72px; height: 72px; align-self: center; filter: drop-shadow(0 0 16px rgba(255, 62, 160, .4)); }
.login-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.modal-head { display: flex; align-items: center; gap: 16px; padding-right: 30px; }
.modal-head img { width: 76px; height: 76px; object-fit: contain; flex: none; }
.modal-head .price { justify-content: flex-start; }
.chat-preview { display: flex; flex-direction: column; gap: 6px; }
.chat-preview small { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--dim); }
.chat-preview div { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-weight: 600; }
.chat-preview img { image-rendering: pixelated; border-radius: 3px; }
.chat-preview i { color: #aaa; font-style: normal; }
.modal-body { color: #dcd4da; overflow-wrap: anywhere; }
.modal-body p { margin: 0 0 8px; }
.modal-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.modal-body img { max-width: 100%; height: auto; }

/* store footer */
.s-foot { background: var(--card); border-top: 1px solid #1f1b23; }
.s-foot .swrap { padding-block: 26px 22px; display: flex; flex-direction: column; gap: 18px; }
.sf-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sf-links { display: flex; flex-wrap: wrap; gap: 10px; }
.fbtn { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; border: 2px solid var(--line); border-radius: 8px; padding: 9px 16px; }
.fbtn:hover { color: var(--fg); border-color: var(--accent); }
.sf-line { border-top: 1px solid #1f1b23; }
.sf-fine { margin: 0; font-size: 13px; color: var(--dim); max-width: 760px; }
.s-foot .infob { width: 44px; height: 44px; }

/* ---------------- smaller screens ---------------- */
@media (max-width: 1100px) {
  .gcard { grid-template-columns: minmax(0, 1fr) auto; }
  .gwin, .gwin.many { grid-column: 1 / -1; justify-self: stretch; width: auto; }
  .gwin .list, .gwin.many .list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr; justify-items: center; row-gap: 14px; }
  .logo-link { order: -1; }
  .top-actions { justify-self: center; }
  .nav { justify-content: center; }
  .sh-div, .sh-spacer { display: none; }
  .sh-row { justify-content: center; padding-block: 22px; gap: 14px; }
  .sh-logo { width: 100%; justify-content: center; }
  .ppill { max-width: none; }
}
@media (max-width: 700px) {
  .gcard { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .gstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gwin .list, .gwin.many .list { grid-template-columns: minmax(0, 1fr); }
  .phead h1 { font-size: 34px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; }
}
@media (max-width: 560px) {
  .site { padding-top: 16px; gap: 18px; }
  .nav-link { padding: 7px 11px; font-size: 15px; }
  .logo { height: 36px; }
  .logo-crystal { width: 40px; height: 40px; }
  .podium { gap: 6px; }
  .pod > :not(.pod-base) { padding-inline: 5px; }
  .pod-name { font-size: 11px; letter-spacing: 0; text-shadow: none; }
  .pod-tier { font-size: 11px; flex-direction: column; gap: 2px; text-align: center; }
  .pod-stats { display: none; }
  .pod-skin { height: 92px; }
  .pod.p1 .pod-skin { height: 118px; }
  .pod-val { font-size: 20px; }
  .pod-lbl { font-size: 12px; }
  .pod .crown { display: none; }
  .pod-base { font-size: 34px; }
  .pod.p1 .pod-base { font-size: 44px; padding: 12px 0; }
  .pod.p3 .pod-base { font-size: 30px; }
  .row { flex-wrap: wrap; row-gap: 8px; padding: 8px 10px; gap: 10px; }
  .row .pos { width: 32px; }
  .row .skin { width: 44px; height: 50px; }
  .row .name { flex-basis: calc(100% - 110px); font-size: 18px; }
  .row .chips { width: 100%; justify-content: flex-end; }
  .chip { min-width: 0; flex: 1; }
  .ranked-row .ranked-badge { width: 40px; height: 40px; }
  .ranked-row .skin { display: none; }
  .ranked-row { flex-wrap: nowrap; }
  .ranked-main { flex: 1 1 0; }
  .ranked-main .name { font-size: 17px; }
  .ranked-row .chips { width: auto; }
  .ranked-row .chip { flex: none; min-width: 62px; }
  .overlay { padding: 12px; }
  .pop-hero { padding: 56px 16px 0; gap: 12px; }
  .hero-skin { width: 86px; height: 120px; }
  .hero-id { padding-bottom: 18px; }
  .hero-id h2 { font-size: 22px; padding-right: 0; }
  .sh-tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .pop-body { padding: 16px 14px 18px; }
  .tile b { font-size: 18px; }
  .mgame { grid-template-columns: auto 1fr; }
  .mgame .nums { grid-column: 1 / -1; }
  .mgame .nums .chip { flex: 1; }
  .team { grid-template-columns: 1fr; }
  .team .rk { justify-self: start; }
  /* store */
  .sh-crystal { width: 56px; height: 56px; }
  .sh-word img { height: 40px; }
  .sh-word small { font-size: 12px; letter-spacing: 6px; }
  .ppill { padding: 10px 12px; gap: 12px; }
  .ppill-ic { width: 44px; height: 44px; border-radius: 12px; }
  .ppill-tx b { font-size: 17px; }
  .sh-nav-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .sh-acts { justify-content: space-between; }
  .uchip { flex: 1; min-width: 0; }
  .navl { padding: 8px 11px; font-size: 14px; }
  .s-main { padding-block: 24px 48px; gap: 20px; }
  .s-h1 { font-size: 28px; }
  .grid-two, .grid-cats { grid-template-columns: 1fr; }
  .cat { min-height: 116px; padding: 20px; }
  .cat-tx b { font-size: 22px; }
  .cat-art { width: 68px; height: 68px; }
  .blk { padding: 22px 20px; }
  .event-banner { padding: 22px 20px; }
  .ev-text h2 { font-size: 26px; }
  .sale-box { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .grid-pkgs { grid-template-columns: 1fr; }
  .modal { padding: 26px 18px 20px; }
  .field { flex-wrap: wrap; }
  .field .b3d { flex: 1 1 100%; }
  .drawer-head, .cart-lines, .summary { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn3d, .b3d, .gcard, .cat, .pkg, .ppill, .card-pop, .drawer, .modal { transition: none; animation: none; }
}
