/* valorant shop dashboard. Fonts self-hosted (latin + latin-ext subsets). */
   fonts.googleapis.com. Weight/style/source mirror the Google CSS. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/oswald-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/oswald-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/oswald-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/oswald-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/oswald-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/oswald-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/oswald-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/oswald-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   valorant shop: app shell. Near-black surfaces, one red accent, sharp
   corners, Oswald headings, Inter body, JetBrains Mono for numbers.
   ========================================================================== */
:root {
  --bg: #0b0c0f;
  --bg-2: #0e0f13;
  --surface: #131419;
  --surface-2: #181a20;
  --surface-3: #1f2129;
  --line: #24262e;
  --line-2: #30333d;
  --text: #ececf0;
  --text-2: #a7abb6;
  --text-3: #80848f; /* 4.65:1 or better on every surface (WCAG AA for small text) */
  --red: #ff4655;
  --red-2: #ff6370;
  --red-dark: #c62e3c;
  --red-soft: rgba(255, 70, 85, .12);
  --red-line: rgba(255, 70, 85, .35);
  --green: #46d39a;
  --green-soft: rgba(70, 211, 154, .12);
  --amber: #f2b84b;
  --amber-soft: rgba(242, 184, 75, .12);
  --blue: #5aa9ff;
  --blue-soft: rgba(90, 169, 255, .12);
  --night: #8b5cf6;
  --r: 3px;
  --r-lg: 4px;
  --sidebar: 264px;
  --topbar: 56px;
  --foot-h: 64px;
  --bottom-nav: 0px;
  --gap: clamp(14px, 2.2vw, 22px);
  --pad: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 12px 40px -12px rgba(0, 0, 0, .7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
code {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1px 5px;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: var(--red); color: #fff; }
html { scrollbar-color: var(--line-2) var(--bg); scrollbar-width: thin; }
* { scrollbar-color: var(--line-2) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: var(--line-2) padding-box; }
::-webkit-scrollbar-thumb:hover { background: #474b58 padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i.fill { fill: currentColor; }
.i use[href="#i-grip"], .i use[href="#i-more"] { fill: currentColor; stroke: none; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--red);
  border-radius: var(--r);
  background: var(--red);
  color: #fff;
  font: 600 13px/1 var(--font);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  user-select: none;
}
.btn:hover { background: var(--red-2); border-color: var(--red-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn.btn-lg { height: 46px; padding: 0 24px; font-size: 14px; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--line-2); }
.btn-quiet { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn-quiet:hover { background: var(--surface-3); border-color: var(--line-2); }
.btn-danger { background: transparent; border-color: var(--red-line); color: var(--red-2); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); color: #fff; }
.btn .i { font-size: 15px; }
/* Ko-fi donate button: neutral ghost button with a coral heart, so it is easy to
   spot without competing with the red primary actions. */
.btn-kofi { border-color: rgba(255, 94, 91, .4); text-decoration: none; }
.btn-kofi .i { color: #ff5e5b; transition: transform .2s var(--ease); }
.btn-kofi:hover { background: rgba(255, 94, 91, .12); border-color: #ff5e5b; }
.btn-kofi:hover .i { transform: scale(1.18); }
@media (prefers-reduced-motion: reduce) { .btn-kofi:hover .i { transform: none; } }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-ghost.is-busy::after, .btn-quiet.is-busy::after { border-color: var(--line-2); border-top-color: var(--text); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: var(--text-2);
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn .i { font-size: 18px; }
.icon-btn.sm .i { font-size: 15px; }
.icon-btn.danger:hover { color: var(--red-2); background: var(--red-soft); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- inputs ---------- */
.input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--text);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.code-input {
  text-align: center;
  font: 600 22px/1 var(--font-mono);
  letter-spacing: .35em;
  text-transform: uppercase;
  height: 54px;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search > .i { position: absolute; left: 13px; font-size: 16px; color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 38px; }
.form-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--red-line);
  border-radius: var(--r);
  background: var(--red-soft);
  color: #ffd1d5;
  font-size: 13px;
}

/* ---------- switch ---------- */
.switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-3);
  padding: 0;
  transition: background .2s, border-color .2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-2);
  transition: transform .2s var(--ease), background .2s;
}
.switch[aria-checked="true"] { background: var(--red); border-color: var(--red); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: #fff; }
.switch:disabled { opacity: .45; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text-2);
  font: 600 11px/1 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip .i { font-size: 12px; }
.chip.main { border-color: var(--red-line); background: var(--red-soft); color: var(--red-2); }
.chip.shared { border-color: rgba(90, 169, 255, .35); background: var(--blue-soft); color: var(--blue); }
.chip.warn { border-color: rgba(242, 184, 75, .35); background: var(--amber-soft); color: var(--amber); }
.chip.ok { border-color: rgba(70, 211, 154, .35); background: var(--green-soft); color: var(--green); }
.chip.night { border-color: rgba(139, 92, 246, .4); background: rgba(139, 92, 246, .14); color: #b79cff; }

.wallet { display: flex; flex-wrap: wrap; gap: 6px; }
.coin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px 0 7px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  font: 500 12px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.coin img { width: 16px; height: 16px; }
.coin.na { color: var(--text-3); }

/* ---------- skeletons ---------- */
.sk {
  position: relative;
  overflow: hidden;
  background: var(--surface-3);
  border-radius: var(--r);
}
.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 12px; }
.sk-line.w40 { width: 40%; }
.sk-line.w60 { width: 60%; }
.sk-line.w80 { width: 80%; }
.sk-circle { border-radius: 50%; }

/* ==========================================================================
   Splash + landing
   ========================================================================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(16px, 3.4vh, 22px);
  padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
  background: var(--bg);
}
.splash > * { animation: splash-in .5s var(--ease) both; }
.splash > :nth-child(2) { animation-delay: .08s; }
.splash > :nth-child(3) { animation-delay: .16s; }
.splash > :nth-child(4) { animation-delay: .24s; }
@keyframes splash-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* The shop logo, breathing, framed by four sharp corner brackets. */
.splash-mark {
  position: relative;
  width: clamp(76px, 22vw, 96px);
  aspect-ratio: 1;
  margin-bottom: clamp(28px, 4.5vh, 36px);
}
.splash-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  animation: splash-logo 1.9s ease-in-out infinite;
}
@keyframes splash-logo { 0%, 100% { opacity: .72; transform: scale(.97); } 50% { opacity: 1; transform: scale(1); } }
.splash-mark i {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid var(--red);
  opacity: .8;
  animation: splash-brackets 1.9s ease-in-out infinite;
}
.splash-mark i:nth-of-type(1) { top: -18px; left: -18px; border-width: 2px 0 0 2px; }
.splash-mark i:nth-of-type(2) { top: -18px; right: -18px; border-width: 2px 2px 0 0; }
.splash-mark i:nth-of-type(3) { bottom: -18px; left: -18px; border-width: 0 0 2px 2px; }
.splash-mark i:nth-of-type(4) { bottom: -18px; right: -18px; border-width: 0 2px 2px 0; }
@keyframes splash-brackets { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(.88); } }
.splash-brand, .landing-brand, .sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 19px/1 var(--font-head);
  letter-spacing: .03em;
  text-decoration: none;
}
.splash-brand img, .landing-brand img, .sb-brand img { width: 28px; height: 28px; border-radius: var(--r); object-fit: cover; }
.splash-title {
  font: 600 clamp(22px, 6vw, 28px)/1 var(--font-head);
  letter-spacing: .08em;
  text-indent: .08em;
}
.splash-bar {
  position: relative;
  width: min(160px, 48vw);
  height: 2px;
  overflow: hidden;
  background: var(--line);
}
.splash-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  background: var(--red);
  animation: slide 1.1s var(--ease) infinite;
}
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(280%); } }
@media (prefers-reduced-motion: reduce) {
  .splash > * { animation: none; }
  .splash-logo { animation: none; }
  .splash-mark i { animation: none; opacity: .8; }
  .splash-bar span { animation: none; width: 100%; opacity: .5; }
}
.splash-text { min-height: 1.2em; color: var(--text-3); font-size: 12px; letter-spacing: .06em; text-align: center; }

.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  padding: 32px 18px;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(255, 70, 85, .12), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(255, 70, 85, .07), transparent 60%),
    var(--bg);
}
.landing-card {
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  border-radius: var(--r-lg);
  background: rgba(19, 20, 25, .92);
  box-shadow: var(--shadow);
}
.landing-card h1 {
  margin: 22px 0 10px;
  font: 600 clamp(28px, 6vw, 40px)/1.08 var(--font-head);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.landing-lead { margin: 0 0 20px; color: var(--text-2); font-size: 15px; }
.landing-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.landing-points li { display: flex; align-items: center; gap: 10px; color: var(--text); }
.landing-points .i { color: var(--red); font-size: 17px; }
.landing-card .btn { width: 100%; }
.landing-foot { margin: 16px 0 0; color: var(--text-3); font-size: 12.5px; text-align: center; }
.landing-foot a { color: var(--red-2); }
.landing-kofi { margin-top: 6px; }
.landing-kofi a { color: #ff7a77; }
.legal { margin: 0; color: var(--text-3); font-size: 11.5px; }

/* ==========================================================================
   App shell
   ========================================================================== */
.app {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- sidebar ---------- */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  z-index: 40;
}
.sb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar);
  padding: 0 14px 0 18px;
  border-bottom: 1px solid var(--line);
}
.sb-close { display: none; }
.sb-nav { display: grid; gap: 2px; padding: 12px 10px; }
.sb-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r);
  color: var(--text-2);
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.sb-link .i { font-size: 17px; }
.sb-link:hover { background: var(--surface-2); color: var(--text); }
.sb-link.is-active { background: var(--surface-3); color: var(--text); }
.sb-link.is-active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--red);
}
.sb-count {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: var(--r);
  background: var(--surface-3);
  color: var(--text-2);
  font: 600 11px/1.3 var(--font-mono);
  text-align: center;
}
.sb-link.is-active .sb-count { background: var(--line-2); }

.sb-accounts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 6px 22px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font: 600 11px/1 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sb-accounts {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 4px 10px 8px;
  list-style: none;
  scrollbar-width: thin;
}
.sb-acct {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 8px 0 6px;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--text-2);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s, border-color .15s;
}
.sb-acct:hover { background: var(--surface-2); color: var(--text); }
.sb-acct.is-active { background: var(--surface-3); color: var(--text); border-color: var(--line-2); }
.sb-acct .grip {
  display: grid;
  place-items: center;
  width: 16px;
  height: 32px;
  flex: none;
  color: var(--text-3);
  opacity: 0;
  cursor: grab;
  touch-action: none;
  transition: opacity .15s;
}
.sb-acct:hover .grip, .sb-acct:focus-within .grip { opacity: 1; }
.sb-acct .grip .i { font-size: 15px; }
.sb-acct-text { min-width: 0; flex: 1; display: grid; line-height: 1.2; }
.sb-acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13.5px; }
.sb-acct-name .tag { color: var(--text-3); font-weight: 400; }
.sb-acct-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 11.5px; }
.sb-acct .mark { color: var(--red); font-size: 13px; }
.sb-acct .mark.shared { color: var(--blue); }
.sb-acct.is-dragging {
  z-index: 5;
  background: var(--surface-3);
  border-color: var(--red-line);
  box-shadow: var(--shadow);
  cursor: grabbing;
}
.sb-acct.is-dragging .grip { opacity: 1; cursor: grabbing; }
.sb-hint { margin: 0; padding: 0 22px 10px; color: var(--text-3); font-size: 11px; }
.sb-empty { padding: 10px 12px; color: var(--text-3); font-size: 12.5px; }

.sb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border-top: 1px solid var(--line);
}
.sb-user-text { min-width: 0; flex: 1; display: grid; line-height: 1.25; }
.sb-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
.sb-user-sub { color: var(--text-3); font-size: 11px; }
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
  font: 600 13px/1 var(--font);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* rank emblem / account avatar */
.emblem {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--r);
  background: var(--surface-3);
  color: var(--text-2);
  font: 600 12px/1 var(--font-head);
  letter-spacing: .04em;
  overflow: hidden;
}
.emblem img { width: 86%; height: 86%; object-fit: contain; }
.emblem.is-card img { width: 100%; height: 100%; object-fit: cover; }
.emblem.lg { width: 76px; height: 76px; font-size: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.emblem.md { width: 46px; height: 46px; font-size: 15px; }
.emblem.xs { width: 22px; height: 22px; font-size: 9px; background: transparent; }
.emblem.is-loading { background: var(--surface-3); }

/* ---------- main column ---------- */
.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar);
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 15, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.topbar-menu { display: none; margin-left: -8px; }
.topbar-title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 16px/1 var(--font-head);
  letter-spacing: .06em;
}
.topbar-title.is-label { text-transform: uppercase; letter-spacing: .08em; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.view {
  flex: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--pad);
  outline: none;
  animation: view-in .25s var(--ease);
}
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 16px var(--pad) calc(16px + var(--bottom-nav));
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
}
.foot-note { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 0; }
.foot-links > * + *::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  margin: 0 12px;
  vertical-align: -1px;
  background: var(--line-2);
}
.footer a { color: var(--text-2); text-decoration: none; transition: color .15s; }
.footer a:hover { color: var(--red-2); }
.footer b { color: var(--text-2); font-weight: 600; }
.foot-ver { font-family: var(--font-mono); font-size: 11px; }
.foot-ver:empty { display: none; }
@media (max-width: 640px) {
  .footer { flex-direction: column; justify-content: center; gap: 10px; text-align: center; }
  .foot-links { justify-content: center; }
}

/* With the sidebar docked, the account row and the footer share one height so
   their top borders line up along the bottom of the page. */
@media (min-width: 1024px) {
  /* The page heading already says it; the sticky bar repeats it once that has scrolled away. */
  .topbar-title { transition: opacity .15s; }
  .topbar-title.is-quiet { opacity: 0; }
  .sb-user { box-sizing: border-box; height: var(--foot-h); padding-top: 0; padding-bottom: 0; }
  .footer { box-sizing: border-box; min-height: var(--foot-h); align-items: center; align-content: center; padding-top: 0; padding-bottom: 0; }
}

.bottom-nav { display: none; }
.scrim { display: none; }

/* ---------- page header ---------- */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: var(--gap);
}
.page-head h1 {
  margin: 0;
  font: 600 clamp(24px, 3.4vw, 32px)/1.05 var(--font-head);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.page-head p { margin: 6px 0 0; color: var(--text-2); }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.section { margin-top: calc(var(--gap) * 1.6); }
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--text-2);
  font: 600 12px/1 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-title .count { color: var(--text-3); font-family: var(--font-mono); letter-spacing: 0; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.panel-pad { padding: clamp(14px, 2.4vw, 22px); }

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(28px, 6vw, 56px) 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  color: var(--text-2);
  text-align: center;
}
.empty-state .i { font-size: 30px; color: var(--text-3); }
.empty-state h3 { margin: 0; color: var(--text); font: 600 17px/1.2 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
.empty-state p { margin: 0; max-width: 46ch; }
.empty-state .btn { margin-top: 6px; }
.inline-msg { padding: 18px; color: var(--text-2); text-align: center; }

/* ==========================================================================
   Overview
   ========================================================================== */
.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: var(--gap);
}
.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.summary-item > .i { font-size: 20px; color: var(--text-3); }
.summary-item.is-night > .i { color: #a98bff; }
.summary-text { min-width: 0; display: grid; gap: 3px; }
.summary-label { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.summary-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 15px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }

.promo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--gap);
  padding: 14px 16px;
  border: 1px solid var(--red-line);
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, var(--red-soft), transparent 70%), var(--surface);
}
.promo > .i { font-size: 22px; color: var(--red); }
.promo-text { flex: 1; min-width: 0; }
.promo-text b { display: block; }
.promo-text span { color: var(--text-2); font-size: 13px; }
.promo-actions { display: flex; gap: 8px; }

.acct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--gap);
}
.acct-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.acct-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.acct-card.is-main { border-top: 2px solid var(--red); }
.acct-card.is-shared { border-top: 2px solid var(--blue); }
.acct-card-top { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; }
.acct-card-id { min-width: 0; flex: 1; }
.acct-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 17px/1.2 var(--font); }
.acct-card-name .tag { color: var(--text-3); font-weight: 400; }
.acct-card-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.acct-card-rank { display: grid; align-content: start; gap: 6px; padding: 0 16px 14px; min-height: 40px; }
.rank-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rank-name { font: 600 13px/1.2 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.rank-rr { color: var(--text-2); font: 500 12px/1 var(--font-mono); }
.rr-bar { height: 4px; overflow: hidden; border-radius: 2px; background: var(--surface-3); }
.rr-bar > span { display: block; height: 100%; width: 0; background: var(--tier, var(--red)); transition: width .6s var(--ease); }
.acct-card-shop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0 16px;
}
.mini-item {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--tier, var(--line));
  border-radius: var(--r);
  background: var(--bg-2);
  overflow: hidden;
}
.mini-item img { max-width: 88%; max-height: 70%; object-fit: contain; }
.acct-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 12px 16px 14px;
}
.reset { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font: 500 12px/1 var(--font-mono); white-space: nowrap; }
.reset .i { font-size: 13px; color: var(--text-3); }
.acct-card .warn-line {
  display: flex;
  gap: 8px;
  margin: 0 16px 14px;
  padding: 10px 12px;
  border: 1px solid rgba(242, 184, 75, .3);
  border-radius: var(--r);
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12.5px;
}
.acct-card .warn-line .i { margin-top: 2px; }
.acct-card-add {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: transparent;
  color: var(--text-2);
  transition: border-color .2s, color .2s, background .2s;
}
.acct-card-add:hover { border-color: var(--red); color: var(--text); background: var(--red-soft); }
.acct-card-add .i { font-size: 20px; }

/* ==========================================================================
   Account page
   ========================================================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
}
.back-link:hover { color: var(--text); }
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: var(--gap);
}
.hero-id { min-width: 0; flex: 1; }
.hero-name {
  margin: 0;
  overflow-wrap: anywhere;
  font: 600 clamp(26px, 4vw, 38px)/1.05 var(--font-head);
  letter-spacing: .02em;
}
.hero-name .tag { color: var(--text-3); font-weight: 400; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.btn-square { width: 38px; padding: 0; flex: none !important; }
.puuid-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--text-3);
  font: 400 11px/1 var(--font-mono);
}
.puuid-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.puuid-btn:hover { color: var(--text); border-color: var(--line-2); }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--gap);
  padding: 14px 16px;
  border: 1px solid rgba(242, 184, 75, .3);
  border-radius: var(--r-lg);
  background: var(--amber-soft);
  color: var(--text);
}
.notice > .i { margin-top: 2px; color: var(--amber); font-size: 18px; }
.notice-text { flex: 1; }
.notice-text b { display: block; margin-bottom: 2px; }
.notice-text span { color: var(--text-2); font-size: 13px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: var(--gap);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.stat-label { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.stat-body { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; min-height: 52px; }
.stat-body > div { min-width: 0; }
.stat-foot { margin-top: auto; }
.stat-big { font: 600 clamp(17px, 1.6vw, 22px)/1.1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.stat-sub { margin-top: 4px; color: var(--text-3); font: 500 12px/1.2 var(--font-mono); }
.stat .emblem.md { width: 52px; height: 52px; }
.stat-pair { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.stat-num { display: grid; gap: 4px; }
.stat-num b { font: 600 clamp(24px, 2.3vw, 32px)/1 var(--font-head); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.stat-num span { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.wallet-rows { display: grid; gap: 7px; width: 100%; }
.wallet-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wallet-row img { width: 18px; height: 18px; flex: none; }
.wallet-row .wr-code { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.wallet-row .wr-val { margin-left: auto; font: 500 14px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.wallet-row.na .wr-val { color: var(--text-3); }

/* tabs */
.tabs {
  position: sticky;
  top: var(--topbar);
  z-index: 20;
  display: flex;
  gap: 2px;
  margin: 0 calc(var(--pad) * -1) var(--gap);
  padding: 0 var(--pad);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 15, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
/* On phones the tab row scrolls sideways: fade the right edge so it reads as "more". */
@media (max-width: 719px) {
  .tabs {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    padding-right: 36px;
  }
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s;
}
.tab .i { font-size: 16px; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); }
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: var(--red);
}
.tab.is-night.is-active::after { background: var(--night); }
.tab.is-disabled { color: var(--text-3); }
.tab .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--night); box-shadow: 0 0 8px var(--night); }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.panel-head h2 { margin: 0; font: 600 20px/1.1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
.panel-head .reset { font-size: 13px; }
.panel-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- item cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 12px;
}
.grid.acc { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.grid.daily { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .grid.daily { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .2s, transform .2s var(--ease);
}
/* Wide player-card banner: stays inside one column, so rows keep 4 cards. */
.card.is-banner .card-media { padding: 14px 8px; }
.card.is-banner .card-media img { width: 100%; height: auto; }
.card.is-previewable { cursor: pointer; }
.card.is-previewable:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 14px;
  background:
    radial-gradient(120% 90% at 50% 120%, color-mix(in srgb, var(--tier, #8b929c) 22%, transparent), transparent 70%),
    var(--bg-2);
  border-bottom: 2px solid color-mix(in srgb, var(--tier, var(--line)) 70%, transparent);
}
.card-media img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.card-media .fallback { color: var(--text-3); font: 600 22px/1 var(--font-head); }
.card-media .title-text { padding: 0 10px; color: var(--text); font: 600 15px/1.25 var(--font-head); letter-spacing: .06em; text-align: center; }
.card-body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.card-body h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 20px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.card-meta .price { flex: none; }
.price { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/20px var(--font-mono); font-variant-numeric: tabular-nums; }
.price img { width: 16px; height: 16px; }
.price .old { color: var(--text-3); text-decoration: line-through; font-size: 12px; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 7px;
  border-radius: var(--r);
  background: var(--red);
  color: #fff;
  font: 600 11px/1 var(--font-mono);
}
.owned-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px 3px 5px;
  border: 1px solid rgba(70, 211, 154, .4);
  border-radius: var(--r);
  background: rgba(11, 12, 15, .78);
  color: var(--green);
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.owned-tag .i { font-size: 12px; }
.card.is-owned .card-media img { opacity: .72; }
.star-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(11, 12, 15, .7);
  color: var(--text-2);
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.star-btn .i { font-size: 15px; }
.star-btn:hover { color: #f4c150; border-color: rgba(244, 193, 80, .5); }
.star-btn[aria-pressed="true"] { color: #f4c150; border-color: rgba(244, 193, 80, .5); background: rgba(244, 193, 80, .12); }
.star-btn[aria-pressed="true"] .i { fill: currentColor; }
.star-btn:active { transform: scale(.92); }

.grid-sk .card-media { background: var(--bg-2); }

/* ---------- Night Market grid ---------- */
/* Six offers: 6 across, then 3 x 2, then 2 x 3 on phones, then one column. */
.nm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1360px) { .nm-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.nm-grid .card-media { height: auto; aspect-ratio: 1; padding: 10px; }

/* ---------- collection ---------- */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
}
.seg button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.seg button:hover { color: var(--text); }
.seg button.is-active { background: var(--surface-3); color: var(--text); }
.seg button .n { margin-left: 6px; color: var(--text-3); font-family: var(--font-mono); font-weight: 500; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.pill {
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.pill:hover { border-color: var(--line-2); color: var(--text); }
.pill.is-active { border-color: var(--red); background: var(--red-soft); color: var(--text); }
.coll-tools { display: grid; gap: 8px; margin-top: 14px; }
.acct-panel > .seg { display: flex; width: 100%; }
.acct-panel > .seg button { flex: 1 1 0; min-width: max-content; }
.coll-count { color: var(--text-3); font: 500 12px/1 var(--font-mono); }
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 8px;
}
.tiles.square { grid-template-columns: repeat(auto-fill, minmax(min(100%, 112px), 1fr)); }
.tile {
  display: grid;
  grid-template-rows: auto auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.tile-media { display: flex; align-items: center; justify-content: center; height: 78px; padding: 8px; background: var(--bg-2); }
.tiles.square .tile-media { height: auto; aspect-ratio: 1; }
.tile-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tile.is-previewable { position: relative; cursor: pointer; transition: border-color .15s, transform .15s var(--ease); }
.tile.is-previewable:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tiles.titles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.tiles.titles .tile-media { height: 64px; padding: 8px 10px; }
.tile-media .title-text { color: var(--text); font: 600 14px/1.25 var(--font-head); letter-spacing: .06em; text-align: center; overflow-wrap: anywhere; }
.tiles.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.tiles.wide .tile-media { height: 120px; padding: 12px; }
.tile-name { overflow: hidden; padding: 7px 9px; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 12px; }
/* battle pass page: a card per account (tier, the whole pass as a bar, xp), then the pass
   as the game shows it, one chapter at a time, and the chapters as a line of diamonds with
   every account's avatar on it. */
.bp-ends { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -6px 0 20px; color: var(--text-2); font-size: 14px; }
.bp-ends .i { font-size: 16px; color: var(--text-3); }
.bp-count { color: var(--text); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.bp-ends-date { color: var(--text-3); }
.sk-line.w20 { width: 20%; }
.bp-acct-sk { height: 92px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.bp-sk-tier { display: block; width: 44px; height: 30px; }
.bp-acct.is-waiting { opacity: .85; }
.bp-acct.is-waiting .bp-acct-sub .sk-line { margin-top: 4px; }
.bp-sk-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.bp-sk-tile { aspect-ratio: .8; border-radius: 0; }
.bp-sk-nav { height: 44px; margin-top: 4px; }
@media (max-width: 720px) { .bp-sk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bp-sk-tile:nth-child(n+4) { display: none; } }
.bp-art.is-loading { background: var(--surface-3); }
.bp-art.is-loading::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); animation: shimmer 1.3s infinite; }
.bp-art img { transition: opacity .25s var(--ease); }
.bp-art.is-loading img { opacity: 0; }.bp-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* Account cards: avatar, name with Premium or Free, the tier on the right, then the whole
   pass as a bar with a notch between chapters, and the xp to the next tier under it. */
.bp-accts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 10px; }
.bp-acct { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s var(--ease); }
.bp-acct:hover:not(:disabled) { border-color: var(--line-2); }
.bp-acct:disabled { cursor: default; }
.bp-acct .emblem.md { width: 42px; height: 42px; }
.bp-acct-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bp-acct-name b { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bp-acct-name .chip { flex: none; height: 18px; padding: 0 6px; font-size: 10px; }
.bp-acct-tier { display: grid; justify-items: end; gap: 3px; white-space: nowrap; }
.bp-acct-tier small { color: var(--text-3); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bp-acct-tier b { font: 600 24px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.bp-acct-tier i { margin-left: 2px; color: var(--text-3); font-size: 12px; font-style: normal; }
.bp-acct-bar { position: relative; grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 1px; background: var(--surface-3); }
.bp-acct-bar i { position: absolute; inset: 0 auto 0 0; background: var(--red); transition: width .4s var(--ease); }
.bp-acct-bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--chs, 11) - 2px), var(--surface) 0 calc(100% / var(--chs, 11))); }
.bp-acct-sub { grid-column: 1 / -1; margin-top: -4px; overflow: hidden; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.bp-acct.is-error .bp-acct-sub { color: var(--amber); white-space: normal; }
/* On a phone the cards scroll sideways in one row, so the pass stays near the top. */
@media (max-width: 640px) {
  .bp-accts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; overflow-x: auto; scroll-padding: 0 var(--pad); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .bp-acct { scroll-snap-align: start; }
}

/* The pass. A faint blue wash like the game's menu. */
.bp-view { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px clamp(14px, 2.4vw, 28px) 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: radial-gradient(120% 100% at 50% 0%, rgba(90, 140, 210, .09), transparent 70%), var(--bg-2); }
.bp-view-title { display: grid; gap: 5px; }
.bp-view-title b { font: 600 26px/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.bp-view-title span { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* Every page has the same grid (room for the most tiles and free rewards any chapter has),
   so tiles never change size or move. On a narrow screen the row scrolls sideways. */
.bp-stage { container-type: inline-size; overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; scrollbar-width: thin; }
.bp-stage-in { --t: max(94px, calc((100cqw - 12px * var(--s, 7) - 10px) / var(--s, 7))); display: grid; grid-template-rows: auto auto; justify-content: safe center; gap: 8px 12px; }
.bp-col-label { grid-row: 1; color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bp-col-label.is-free { color: var(--green); }
.bp-sep { grid-row: 2; align-self: center; justify-self: center; width: 8px; height: 8px; transform: rotate(45deg); background: var(--text-3); }
.bp-tile.is-previewable { cursor: pointer; }
.bp-tile.is-previewable:hover .bp-art { border-color: var(--text-3); }
.bp-tile { grid-row: 2; display: grid; grid-template-rows: auto auto; min-width: 0; }
.bp-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; padding: 15%; border: 1px solid var(--line-2); background: radial-gradient(90% 90% at 50% 40%, rgba(255, 255, 255, .06), transparent 70%), var(--surface); }
.bp-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.bp-art.is-card { padding: 0; }
.bp-art.is-card img { object-fit: cover; filter: none; }
.bp-art-text { color: var(--text); font: 600 15px/1.25 var(--font-head); letter-spacing: .05em; text-align: center; overflow-wrap: anywhere; }
.bp-tile.is-free .bp-art { border-color: rgba(70, 211, 154, .3); background: radial-gradient(90% 90% at 50% 40%, rgba(70, 211, 154, .09), transparent 70%), var(--surface); }
.bp-amount { position: absolute; top: 6px; right: 7px; color: var(--text); font: 600 14px/1 var(--font-head); letter-spacing: .02em; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
/* Accounts working on this tier, as overlapping avatars in the corner. */
.bp-here { position: absolute; top: 6px; left: 6px; display: flex; align-items: center; }
.bp-here .emblem { width: 24px; height: 24px; margin-right: -7px; border: 2px solid var(--bg-2); border-radius: 50%; background: var(--surface-3); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.bp-here-more { margin-left: 10px; padding: 1px 5px; border-radius: 999px; background: rgba(8, 9, 12, .8); color: var(--text-2); font-size: 10px; font-weight: 600; }
.bp-foot { display: grid; gap: 2px; min-width: 0; padding: 6px 6px 7px; background: var(--surface-3); text-align: center; }
.bp-foot b { color: var(--text); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bp-foot span { overflow: hidden; color: var(--text-3); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bp-tile.is-free .bp-foot b { color: var(--green); }

/* Chapters: a diamond each, spread evenly on one line that runs the whole width (each
   chapter owns an equal stretch with its diamond in the middle). The open chapter is big
   and numbered, the Epilogue is a circle with a star. Above the line, every account is an
   avatar on a stem at the point it has reached; close ones are lifted a row. */
.bp-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: clamp(8px, 2cqw, 18px); }
.bp-arrow { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 5px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.bp-arrow:hover:not(:disabled) { border-color: var(--text-3); background: var(--surface-2); }
.bp-arrow:disabled { opacity: .35; cursor: default; }
.bp-arrow .i { font-size: 16px; }
.bp-track { position: relative; display: flex; padding-top: 32px; }
.bp-track::before { content: ""; position: absolute; left: calc(50% / var(--cnt, 11)); right: calc(50% / var(--cnt, 11)); bottom: 21px; height: 2px; background: var(--line-2); }
.bp-dot { position: relative; z-index: 1; display: grid; flex: 1 1 0; place-items: center; min-width: 0; height: 44px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.bp-dot-mark { display: grid; place-items: center; width: 11px; height: 11px; border: 2px solid var(--text-3); background: var(--bg-2); transform: rotate(45deg); transition: border-color .15s var(--ease); }
.bp-dot:hover .bp-dot-mark { border-color: var(--text); }
.bp-dot.is-on .bp-dot-mark { width: 28px; height: 28px; border-color: var(--text); box-shadow: 0 0 0 4px var(--bg-2); }
.bp-dot-mark > span { transform: rotate(-45deg); font: 600 13px/1 var(--font-head); }
.bp-dot.is-epilogue .bp-dot-mark { width: 22px; height: 22px; border-radius: 50%; transform: none; }
.bp-dot.is-epilogue.is-on .bp-dot-mark { width: 32px; height: 32px; background: var(--text); color: var(--bg); }
.bp-dot.is-epilogue .i { font-size: 11px; }
.bp-dot.is-epilogue.is-on .i { font-size: 14px; }
.bp-mark-group { position: absolute; bottom: 45px; z-index: 2; display: flex; align-items: center; transform: translateX(-50%); }
.bp-mark-group::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 4px; margin-left: -1px; background: var(--text-3); }
.bp-mark + .bp-mark { margin-left: -6px; }
.bp-mark { position: relative; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 2px solid var(--bg-2); border-radius: 50%; background: var(--surface-3); box-shadow: 0 0 0 1px var(--text-3); cursor: pointer; transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.bp-mark:hover { z-index: 3; transform: translateY(-2px); box-shadow: 0 0 0 1px var(--text); }
.bp-mark .emblem { width: 100%; height: 100%; overflow: hidden; border-radius: 50%; font-size: 7px; }
.bp-mark-more { margin-left: 9px; color: var(--text-2); font-size: 10px; font-weight: 600; }
@container (max-width: 520px) {
  .bp-arrow { width: 28px; height: 28px; margin-bottom: 8px; }
  .bp-dot-mark { width: 9px; height: 9px; }
  .bp-dot.is-on .bp-dot-mark { width: 24px; height: 24px; }
  .bp-dot.is-epilogue .bp-dot-mark { width: 18px; height: 18px; }
  .bp-dot.is-epilogue.is-on .bp-dot-mark { width: 26px; height: 26px; }
}

/* loadout page: the weapons grouped in columns as the game groups them, with the player
   card and expressions wheel last. The whole screen keeps one aspect ratio and every size
   inside it is in cqw (a share of the screen's width), so tiles, headings, weapon art and
   buddies all scale together. All five columns are the same height: headings keep their
   size and the weapon tiles in each column share what is left. */
.lo-wrap { container-type: inline-size; --lo-name: clamp(9px, .66cqw, 12px); }
.lo-screen { display: grid; grid-template-columns: repeat(4, minmax(0, 300fr)) minmax(0, 273fr); column-gap: 2%; aspect-ratio: 1633 / 920; }
.lo-col { display: flex; flex-direction: column; gap: .8cqw; min-width: 0; min-height: 0; }
.lo-h { flex: none; margin: 0; color: var(--text-2); font: 600 clamp(12px, 1.05cqw, 17px)/1.2 var(--font-head); letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.lo-col .lo-h:not(:first-child) { margin-top: 1cqw; }
/* Tiles look like the app's skin cards: a glow and bottom edge in the skin's tier colour
   (neutral grey for standard and random skins). */
.lo-gun {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 2px solid color-mix(in srgb, var(--tier, var(--line-2)) 70%, transparent);
  border-radius: var(--r);
  background:
    radial-gradient(110% 95% at 50% 115%, color-mix(in srgb, var(--tier, #8b929c) 20%, transparent), transparent 70%),
    var(--bg-2);
  transition: border-color .15s var(--ease);
}
.lo-gun:hover { border-color: var(--line-2); border-bottom-color: color-mix(in srgb, var(--tier, var(--text-3)) 85%, transparent); }
.lo-gun.sk { border-color: transparent; background: var(--surface-3); }
/* The art is centred in the tile, above the weapon name. Its width is the weapon's share
   of the tile (--gw), so a Classic is small and an Operator long; a tall image is scaled
   down to fit instead. Even the longest ends a tenth short of the right edge and sits
   mid-height, above the buddy hanging in the bottom-right corner: the two never overlap.
   The bottom inset keeps it clear of the weapon name, whatever size the name ends up. */
.lo-gun-art { position: absolute; inset: .5cqw 0 calc(.6cqw + var(--lo-name) + 3px); display: flex; align-items: center; justify-content: center; }
.lo-gun-art img { width: calc(var(--gw, .7) * 100%); max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); transition: transform .2s var(--ease); }
.lo-gun:hover .lo-gun-art img { transform: scale(1.04); }
/* Random favorite: Riot's image is a black silhouette at about 40% opacity with a white
   shuffle mark, which all but vanishes on a dark tile. Lifting the blacks to grey shows
   the weapon's outline and keeps the mark brightest. */
.lo-gun.is-random .lo-gun-art img { filter: contrast(.3) brightness(1.4); }
.lo-gun.is-empty .lo-gun-art { opacity: .2; }
.lo-weapon { position: absolute; left: .6cqw; bottom: .6cqw; max-width: 84%; overflow: hidden; color: var(--text-3); font-size: var(--lo-name); font-weight: 600; line-height: 1.1; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.lo-skin-name { display: none; color: var(--text); letter-spacing: .02em; text-transform: none; }
.lo-gun:hover .lo-weapon.has-skin .lo-weapon-name { display: none; }
.lo-gun:hover .lo-skin-name { display: inline; }
/* Buddy icons are square with the charm in the middle half, so a 12% box shows the charm
   at about 6% of the tile, centred over the last few percent. */
.lo-buddy { position: absolute; right: .5%; bottom: 6%; width: 12%; aspect-ratio: 1; display: flex; align-items: flex-end; justify-content: center; }
.lo-buddy img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55)); }
.lo-side { align-items: center; }
.lo-side > .lo-h { align-self: stretch; }
/* The card's bottom fifth fades out (a mask, so it blends into whatever is behind it). */
.lo-card-wrap { position: relative; flex: none; width: 80%; }
.lo-card { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--bg-2); aspect-ratio: 268 / 640; -webkit-mask-image: linear-gradient(180deg, #000 80%, rgba(0, 0, 0, .5) 91%, transparent); mask-image: linear-gradient(180deg, #000 80%, rgba(0, 0, 0, .5) 91%, transparent); }
.lo-card.sk { border-color: transparent; background: var(--surface-3); }
.lo-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lo-card-none { display: grid; place-items: center; height: 100%; color: var(--text-3); font-size: 12px; }
/* The player's name and title sit over the card about two thirds of the way down, in two
   short rows. The name (white, as typed: Riot IDs are case sensitive) is on a plate that
   sticks out a few pixels past each side of the card so it stands out; the title under it
   sits on a light shade the width of the card. */
.lo-card-name {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 66%;
  display: grid;
}
.lo-card-name b {
  margin: 0 -6px;
  padding: 4px 10px 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 2px;
  background: linear-gradient(180deg, #2e313d, #1a1c24);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
  color: #fff;
  font: 600 clamp(14px, 1.25cqw, 21px)/1.15 var(--font-head);
  letter-spacing: .09em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lo-card-name span { padding: 3px 8px 4px; overflow: hidden; background: rgba(8, 9, 12, .55); color: rgba(255, 255, 255, .82); font-size: clamp(10px, .66cqw, 12px); line-height: 1.2; letter-spacing: .04em; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.lo-card-name span > i { font-style: normal; }
.lo-incognito { flex: none; }
/* Expressions sit at the bottom of the column, level with the last weapon tiles. */
.lo-side .lo-h.lo-expr-h { margin-top: auto; }
.lo-wheel { position: relative; flex: none; width: 86%; aspect-ratio: 1; border: 1px solid var(--line-2); border-radius: 50%; background: radial-gradient(circle, var(--surface-2) 0, var(--bg-2) 72%); }
.lo-wheel.sk { border: 0; background: var(--surface-3); }
.lo-wheel::before, .lo-wheel::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 12%, var(--line-2) 88%, transparent); }
.lo-wheel::before { transform: rotate(45deg); }
.lo-wheel::after { transform: rotate(-45deg); }
.lo-wheel.sk::before, .lo-wheel.sk::after { content: none; }
.lo-wheel-dot { position: absolute; left: 50%; top: 50%; z-index: 1; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface) radial-gradient(circle, var(--text-3) 0 8%, transparent 9%); }
.lo-slot { position: absolute; z-index: 2; display: grid; place-items: center; width: 24%; aspect-ratio: 1; transition: transform .2s var(--ease); }
.lo-slot:hover { transform: scale(1.08); }
.lo-slot img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.lo-slot.top { left: 38%; top: 6%; }
.lo-slot.bottom { left: 38%; bottom: 6%; }
.lo-slot.left { left: 6%; top: 38%; }
.lo-slot.right { right: 6%; top: 38%; }
/* Narrow screens (phones): the weapon columns stack in twos with fixed-shape tiles, and
   the card and wheel go first, side by side. Wider than this the layout just scales. */
@container (max-width: 680px) {
  .lo-screen { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 22px; aspect-ratio: auto; }
  .lo-col { gap: 8px; }
  .lo-col .lo-h:not(:first-child) { margin-top: 8px; }
  .lo-h { font-size: 13px; }
  .lo-gun { flex: none; aspect-ratio: 300 / 136; }
  .lo-gun-art { inset: 5px 0 20px; }
  .lo-weapon { left: 8px; bottom: 6px; }
  .lo-side { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); justify-content: center; justify-items: center; gap: 8px 20px; }
  .lo-side > .lo-h { grid-row: 1; }
  .lo-card-wrap { grid-area: 2 / 1; width: 100%; }
  .lo-incognito { grid-area: 3 / 1; }
  .lo-side .lo-h.lo-expr-h { grid-column: 2; margin-top: 0; }
  .lo-wheel { grid-area: 2 / 2; align-self: center; width: 100%; }
}
.coll-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.coll-num { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.coll-num b { display: block; font: 600 22px/1.1 var(--font-head); }
.coll-num span { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- settings rows ---------- */
.rows { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row > .i { font-size: 18px; color: var(--text-3); }
.row-text { min-width: 0; flex: 1; }
.row-text > b { display: block; font-weight: 600; }
.row-text .tag { color: var(--text-3); font-weight: 400; }
.row-text > span { display: block; color: var(--text-2); font-size: 13px; }
.row .switch { margin-left: auto; }
.row.order-row { gap: 10px; padding: 10px 12px; }
.order-row .row-text b { font-size: 13.5px; }
.order-row .grip { display: grid; place-items: center; width: 20px; color: var(--text-3); cursor: grab; touch-action: none; }
.order-row.is-dragging { position: relative; z-index: 5; background: var(--surface-3); box-shadow: var(--shadow); }
.order-btns { display: flex; gap: 2px; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.row.row-sub { background: var(--bg-2); }
.cmd-list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.cmd-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.cmd-list li:first-child { border-top: 0; }
.cmd-list code { justify-self: start; background: transparent; border: 0; padding: 0; color: var(--red-2); font-weight: 600; }
.cmd-list span { color: var(--text-2); }
.about-stats { display: flex; flex-wrap: wrap; gap: 20px; padding: 14px 16px; }
.about-stats b { display: block; font: 600 22px/1.1 var(--font-head); }
.about-stats span { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- sharing panel ---------- */
.share-box { display: grid; gap: var(--gap); }
.share-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (min-width: 1180px) {
  .share-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.share-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: clamp(14px, 2.4vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.share-note { margin: 0; font-size: 12.5px; line-height: 1.5; }
.share-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg-2);
}
.share-code-text { font: 600 clamp(22px, 5vw, 28px)/1 var(--font-mono); letter-spacing: .22em; overflow-wrap: anywhere; }
.share-people { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.share-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
}
.share-person > .i { flex: none; color: var(--text-3); }
.share-person span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-discord {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2.4vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.share-discord-head { display: inline-flex; align-items: center; gap: 8px; }
.share-discord-head .i { color: var(--text-3); }
.share-discord ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.share-discord li {
  display: grid;
  gap: 5px;
  align-content: start;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.35;
}
.share-discord code {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red-2);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tip {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
}
.tip .i { margin-top: 2px; color: var(--text-3); }

/* ---------- wishlist ---------- */
.wl-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 16px; }
.wl-search { position: relative; }
.wl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -4px 0 16px; }
.wl-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-pills .pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-color: var(--line-2);
  background: var(--bg-2);
  font-size: 13px;
  transition: border-color .15s, background .15s, color .15s;
}
.wl-pills .pill:hover { border-color: var(--text-3); }
.wl-pills .pill.is-active { border-color: var(--red-line); background: var(--red-soft); color: var(--text); }
.tier-icon { display: block; width: 20px; height: 20px; object-fit: contain; }
.card-tier { display: inline-flex; flex: none; align-items: center; }
.card-tier .tier-icon { width: 22px; height: 22px; }
.wl-pick-sub .tier-icon { width: 18px; height: 18px; }
.wl-pills .pill-tier { justify-content: center; min-width: 42px; padding: 0 10px; }
.wl-pills .pill-tier .tier-icon { width: 20px; height: 20px; opacity: .65; transition: opacity .15s; }
.wl-pills .pill-tier:hover .tier-icon, .wl-pills .pill-tier.is-active .tier-icon { opacity: 1; }
.pill .dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; vertical-align: 0; }
.wl-hide {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px 0 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.wl-hide:hover { border-color: var(--text-3); color: var(--text); }
.wl-hide-track {
  position: relative;
  flex: none;
  width: 30px;
  height: 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-3);
  transition: background .2s, border-color .2s;
}
.wl-hide-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-2);
  transition: transform .2s var(--ease), background .2s;
}
.wl-hide[aria-checked="true"] { border-color: var(--red-line); background: var(--red-soft); color: var(--text); }
.wl-hide[aria-checked="true"] .wl-hide-track { border-color: var(--red); background: var(--red); }
.wl-hide[aria-checked="true"] .wl-hide-track::after { transform: translateX(12px); background: #fff; }

/* custom dropdown (wishlist filters) */
.dd { position: relative; min-width: 0; }
.dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 150px;
  max-width: 100%;
  height: 34px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  transition: border-color .15s, background .15s, color .15s;
}
.dd-btn:hover { border-color: var(--text-3); color: var(--text); }
.dd-btn.is-set { border-color: var(--red-line); background: var(--red-soft); color: var(--text); }
.dd.is-open .dd-btn { border-color: var(--red); color: var(--text); }
.dd-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn .i { flex: none; font-size: 14px; color: var(--text-3); transition: transform .2s var(--ease); }
.dd.is-open .dd-btn .i { transform: rotate(180deg); }
.dd-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: max(100%, 240px);
  max-width: min(320px, calc(100vw - 24px));
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  animation: dd-in .14s var(--ease);
}
.dd.dd-up .dd-pop { top: auto; bottom: calc(100% + 6px); }
.dd.dd-right .dd-pop { left: auto; right: 0; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dd-search-wrap { position: relative; padding: 2px 2px 6px; }
.dd-search-wrap .i { position: absolute; top: 11px; left: 12px; font-size: 14px; color: var(--text-3); pointer-events: none; }
.dd-search {
  width: 100%;
  height: 32px;
  padding: 0 10px 0 32px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--text);
  font-size: 13px;
}
.dd-search:focus { outline: none; border-color: var(--red); }
.dd-list { max-height: min(300px, 45vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.dd-group { padding: 10px 10px 4px; color: var(--text-3); font: 600 10.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.dd-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 32px;
  padding: 0 10px 0 6px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  text-align: left;
}
.dd-opt:hover, .dd-opt:focus-visible { background: var(--surface-3); color: var(--text); outline: none; }
.dd-opt.is-selected { color: var(--text); font-weight: 600; }
.dd-check { flex: none; display: grid; place-items: center; width: 18px; color: var(--red-2); }
.dd-check .i { font-size: 14px; visibility: hidden; }
.dd-opt.is-selected .dd-check .i { visibility: visible; }
.dd-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-n { flex: none; color: var(--text-3); font: 500 11.5px/1 var(--font-mono); }
.dd-empty { padding: 14px 10px; color: var(--text-3); font-size: 12.5px; text-align: center; }
.wl-clear { height: 34px; margin-left: auto; }
.wl-panel {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.wl-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wl-panel-count { color: var(--text-2); font: 500 12px/1 var(--font-mono); }
.wl-pick .wl-pick-body .sk-line { height: 12px; }
/* Loading cards match the loaded card height (media + name row + meta row). */
.card.grid-sk .card-body { min-height: 72px; }
@media (max-width: 719px) { .card.grid-sk .card-body { min-height: 66px; } }
/* Collection panel placeholders: same stack and heights as the loaded toolbar. */
.coll-sk-seg { height: 38px; border-radius: var(--r-md, 8px); }
.coll-sk-tools { height: 62px; margin-top: 14px; border-radius: var(--r-md, 8px); }
.coll-sk-filters { height: 28px; margin: 10px 0 14px; border-radius: var(--r-md, 8px); }
.wl-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.wl-pick {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .15s;
}
.wl-pick:hover { border-color: var(--line-2); }
.wl-pick.is-added { border-color: var(--red-line); }
.wl-pick-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 112px;
  padding: 12px;
  border: 0;
  border-bottom: 2px solid color-mix(in srgb, var(--tier, var(--line)) 70%, transparent);
  background:
    radial-gradient(120% 90% at 50% 120%, color-mix(in srgb, var(--tier, #8b929c) 22%, transparent), transparent 70%),
    var(--bg-2);
  color: inherit;
}
button.wl-pick-thumb { cursor: pointer; }
.wl-pick-art { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; transition: transform .2s var(--ease); }
button.wl-pick-thumb:hover .wl-pick-art { transform: scale(1.05); }
.wl-pick-art img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.wl-pick-art .title-text { padding: 0 6px; font: 600 14px/1.25 var(--font-head); letter-spacing: .06em; text-align: center; }
.wl-pick-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
  gap: 6px;
  align-content: start;
  width: 100%;
  padding: 12px 14px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}
.wl-pick-body:hover { background: var(--surface-2); }
.wl-pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 20px; }
.wl-pick-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wl-pick-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.wl-pick-tag {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
}
.wl-pick.is-added .wl-pick-tag { border-color: var(--red-line); background: var(--red-soft); color: var(--red-2); }
.wl-pick.is-listed .wl-pick-body:hover .wl-pick-tag { border-color: var(--red-line); background: var(--red-soft); color: var(--red-2); }
.wl-empty { padding: 18px 8px; color: var(--text-3); font-size: 13px; text-align: center; }
.wl-more { display: flex; margin: 12px auto 0; }
.wl-list-title { margin: 0 0 10px; }
.wl-hint { margin-top: 18px; }

/* ---------- bundles ---------- */
.bundle-list { display: grid; gap: var(--gap); }
.bundle-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.bundle-banner { position: relative; min-height: clamp(150px, 22vw, 240px); display: flex; align-items: flex-end; background: var(--bg-2); }
.bundle-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bundle-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 12, 15, .95) 8%, rgba(11, 12, 15, .2) 60%, transparent); }
.bundle-info { position: relative; z-index: 1; width: 100%; padding: 18px 20px; }
.bundle-title { margin: 0 0 10px; font: 600 clamp(20px, 3vw, 28px)/1.1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.bundle-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bundle-price { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: var(--r); background: rgba(11, 12, 15, .7); font: 600 14px/1 var(--font-mono); }
.bundle-price img { width: 16px; height: 16px; }
.bundle-price .old { color: var(--text-3); text-decoration: line-through; font-weight: 400; font-size: 12px; }
.bundle-off { height: 30px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: var(--r); background: var(--red); font: 600 12px/1 var(--font-mono); }
.bundle-countdown { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: var(--r); background: rgba(11, 12, 15, .7); color: var(--text-2); font: 500 12px/1 var(--font-mono); }
/* Item cards are the shop cards. Flex-wrap with a centred last row keeps a
   5, 7 or 8 item bundle balanced; --cols steps down with the screen. */
.bundle-items { --cols: 4; --bgap: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--bgap); padding: 14px; }
.bundle-items > .card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--bgap)) / var(--cols)); }
@media (max-width: 1180px) { .bundle-items { --cols: 3; } }
@media (max-width: 700px) { .bundle-items { --cols: 2; --bgap: 8px; padding: 10px; } }
@media (max-width: 340px) { .bundle-items { --cols: 1; } }

/* ==========================================================================
   Menus, modals, toasts
   ========================================================================== */
.menu {
  position: fixed;
  z-index: 70;
  width: 260px;
  padding: 5px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  animation: pop-in .14s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  text-align: left;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-3); outline: none; }
.menu-item > .i { font-size: 17px; color: var(--text-2); }
.menu-item.danger, .menu-item.danger > .i { color: var(--red-2); }
.menu-text { display: grid; line-height: 1.3; }
.menu-text b { font-weight: 600; font-size: 13.5px; }
.menu-text small { color: var(--text-3); font-size: 12px; }
.menu-sep { height: 1px; margin: 4px 0; background: var(--line); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 16px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(4, 4, 6, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade-in .16s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  margin: auto;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--red);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: modal-in .2s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes modal-out { to { opacity: 0; transform: translateY(8px) scale(.985); } }
.overlay.is-closing { animation: fade-out .22s ease forwards; pointer-events: none; }
.overlay.is-closing .modal { animation: modal-out .22s ease forwards; }
@media (prefers-reduced-motion: reduce) { .overlay, .modal { animation: none !important; } }
.modal.modal-sm { width: min(420px, 100%); }
.modal.modal-wide { width: min(980px, 100%); }
.modal h2 { margin: 0; font: 600 20px/1.15 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
.modal > h2 { margin-bottom: 10px; }
.modal p { color: var(--text-2); }
.modal.confirm { width: min(440px, 100%); }
/* Shared dialog header: icon box, title with an optional line under it, close. */
.dlg-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.dlg-titles { min-width: 0; flex: 1; }
.dlg-titles h2 { margin: 0; }
.modal .dlg-sub { margin: 4px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.4; }
.dlg-head .icon-btn { align-self: flex-start; margin: -4px -6px 0 0; }
.dlg-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface-3);
  color: var(--text-2);
}
.dlg-icon.is-danger { border-color: var(--red-line); background: var(--red-soft); color: var(--red-2); }
.dlg-icon .i { font-size: 20px; }
.dlg-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
}
.dlg-note .i { flex: none; margin-top: 1px; color: var(--text-3); font-size: 16px; }
.modal .dlg-note p { margin: 0; color: inherit; }
.confirm-subject:not([hidden]) { margin-bottom: 14px; }
.confirm-account {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
}
.confirm-account .row-text { min-width: 0; }
.confirm-account .row-text b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.confirm-account .row-text span { color: var(--text-3); font-size: 12px; letter-spacing: .04em; }
.confirm #confirmMessage { margin: 0; font-size: 14px; line-height: 1.5; }
.dlg-points { display: grid; gap: 8px; margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); list-style: none; }
.dlg-points[hidden] { display: none; }
.dlg-points li { position: relative; padding-left: 16px; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.dlg-points li::before { content: ""; position: absolute; top: .55em; left: 1px; width: 5px; height: 5px; background: var(--red); }
.dlg-points li b { color: var(--text); }
.confirm-account .emblem .i { font-size: 18px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-head .icon-btn { margin: -6px -8px 0 0; }
.wipe-label { display: block; margin: 14px 0 6px; color: var(--text-2); font-size: 13px; }
.wipe-label b { color: var(--red-2); font-family: var(--font-mono); }
#wipeBtn:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }
#wipeBtn:disabled { opacity: .45; cursor: not-allowed; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.steps { display: grid; gap: 0; margin: 6px 0 0; padding: 0; list-style: none; }
.steps li { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: 6px; width: 1px; background: var(--line-2); }
.step-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid var(--red-line);
  border-radius: 50%;
  color: var(--red-2);
  font: 600 12px/1 var(--font-mono);
}
.step-body { min-width: 0; flex: 1; padding-top: 3px; }
.step-body > b { display: block; font-size: 14.5px; }
.step-body p { margin: 4px 0 12px; font-size: 13px; line-height: 1.55; }
.step-body .btn { width: 100%; height: 42px; }
.step-body .input { height: 46px; margin-top: 10px; font-family: var(--font-mono); font-size: 13px; }
.step-hint { margin: 8px 0 0 !important; color: var(--text-3) !important; font-size: 12px !important; }
.modal-actions.split { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

/* item preview */
.preview-body { display: grid; gap: 16px; }
.preview-stage {
  display: grid;
  place-items: center;
  min-height: clamp(200px, 40vw, 380px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: radial-gradient(80% 80% at 50% 60%, rgba(255, 255, 255, .05), transparent 70%), var(--bg-2);
}
.preview-stage.has-tier {
  border-bottom: 2px solid color-mix(in srgb, var(--tier) 70%, transparent);
  background: radial-gradient(80% 80% at 50% 100%, color-mix(in srgb, var(--tier) 20%, transparent), transparent 70%), var(--bg-2);
}
.dlg-icon.has-tier { border-color: color-mix(in srgb, var(--tier) 45%, transparent); background: color-mix(in srgb, var(--tier) 12%, var(--surface-3)); }
.dlg-icon .tier-icon { width: 28px; height: 28px; }
.preview-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fact { display: grid; gap: 5px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
.fact-label { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.fact-value { display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 15px/1.2 var(--font-head); letter-spacing: .04em; }
.fact-value .tier-icon { flex: none; width: 20px; height: 20px; }
.fact-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal:focus { outline: none; }
.preview-stage img { width: 100%; max-height: 340px; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.preview-heading { margin: 0 0 8px; color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.preview-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-swatch {
  width: 56px;
  height: 56px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-2);
}
.preview-swatch img { width: 100%; height: 100%; object-fit: contain; }
.preview-swatch.is-active { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.preview-displays { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.preview-displays .is-tall img { width: auto; max-width: none; }
.preview-row { display: flex; gap: 16px; align-items: stretch; }
.preview-info { flex: 1; display: grid; align-content: center; gap: 6px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
.preview-info b { font: 600 18px/1.2 var(--font-head); letter-spacing: .03em; }
.preview-info span { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.preview-col { display: grid; gap: 16px; align-content: start; }
.preview-frame {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: radial-gradient(80% 80% at 50% 40%, rgba(255, 255, 255, .04), transparent 70%), var(--bg-2);
}
.preview-frame span { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.preview-frame img { width: 100%; max-height: 520px; object-fit: contain; border-radius: var(--r); }
.preview-frame.is-small { justify-self: start; }
.preview-frame.is-small img { width: 128px; height: 128px; }
.preview-img { width: 100%; border: 1px solid var(--line); border-radius: var(--r); }
.preview-empty { margin: 0; padding: 40px 0; color: var(--text-2); text-align: center; }

/* toasts */
.toasts {
  position: fixed;
  right: 20px;
  bottom: calc(20px + var(--bottom-nav));
  z-index: 90;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--text-2);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  pointer-events: auto;
  animation: toast-in .22s var(--ease);
}
.toast.ok { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast > .i { margin-top: 2px; font-size: 16px; }
.toast.ok > .i { color: var(--green); }
.toast.error > .i { color: var(--red); }
.toast span { flex: 1; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.update-pill {
  position: fixed;
  left: 50%;
  bottom: calc(20px + var(--bottom-nav));
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  font-size: 13px;
  animation: pill-up .4s var(--ease) both;
}
/* Slides up from below the screen; keeps the horizontal centering in every frame. */
@keyframes pill-up {
  from { transform: translate(-50%, calc(100% + 40px)); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
@keyframes pill-up-mobile {
  from { transform: translateY(calc(100% + 40px)); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.update-ver { margin-left: 6px; color: var(--text-3); font-family: var(--font-mono); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 86vw);
    transform: translateX(-102%);
    transition: transform .25s var(--ease);
    box-shadow: var(--shadow);
  }
  .sidebar.is-open { transform: none; }
  .sb-close { display: inline-grid; }
  .sb-acct .grip { opacity: 1; }
  .scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgba(4, 4, 6, .6);
    animation: fade-in .2s ease;
  }
  .topbar-menu { display: inline-grid; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 719px) {
  :root { --bottom-nav: calc(60px + env(safe-area-inset-bottom)); --topbar: 52px; }
  body { font-size: 14px; }
  .topbar-actions .btn span { display: none; }
  .topbar-actions .btn { width: 36px; padding: 0; }
  .bottom-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: var(--bottom-nav);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(11, 12, 15, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .bottom-nav a {
    position: relative;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 4px;
    color: var(--text-3);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none;
  }
  .bottom-nav a .i { font-size: 20px; }
  .bottom-nav a.is-active { color: var(--text); }
  .bottom-nav a.is-active::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 30%;
    right: 30%;
    height: 2px;
    background: var(--red);
  }
  .view { padding-bottom: 28px; }
  .summary { gap: 8px; }
  .summary-item { padding: 12px; gap: 10px; }
  .summary-item > .i { display: none; }
  .summary-value { font-size: 14px; }
  .promo { flex-wrap: wrap; }
  .promo-actions { width: 100%; }
  .promo-actions .btn { flex: 1; }
  .hero { gap: 14px; }
  .hero .emblem.lg { width: 60px; height: 60px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .stats { gap: 8px; }
  .stat { padding: 12px 12px 14px; gap: 10px; }
  .stat-big { font-size: 16px; }
  .stat .emblem.md { width: 40px; height: 40px; }
  .stat-body { gap: 10px; min-height: 44px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .grid.acc, .grid.daily { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-media { height: 104px; padding: 10px; }
  .card-body { padding: 10px 10px 12px; gap: 4px; }
  .card-body h3 { font-size: 13px; }
  .price { font-size: 13px; }
  .star-btn { width: 28px; height: 28px; top: 6px; right: 6px; }
  .nm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wl-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-pick-thumb { height: 96px; padding: 10px; }
  .wl-pick-body { padding: 10px 10px 12px; }
  .wl-pick-name { font-size: 13px; }
  .wl-filters .dd { flex: 1 1 140px; }
  .wl-filters .dd-btn { width: 100%; min-width: 0; }
  .wl-hide { flex: 1 1 100%; }
  .wl-bar { grid-template-columns: minmax(0, 1fr); }
  #wlSeg { display: flex; width: 100%; }
  #wlSeg button { flex: 1 1 0; }
  .acct-card-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.square { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .coll-tools { grid-template-columns: minmax(0, 1fr); }
  .cmd-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .preview-displays { grid-template-columns: minmax(0, 1fr); }
  /* Bundles: full uncropped art, details below it instead of on top. */
  .bundle-banner { display: block; min-height: 0; }
  .bundle-banner::after { display: none; }
  .bundle-banner-img { position: static; height: auto; aspect-ratio: auto; object-fit: contain; }
  .bundle-info { padding: 14px 14px 4px; }
  .bundle-price, .bundle-countdown { background: var(--surface-3); }
  .preview-displays .is-tall img { width: 100%; height: auto !important; max-height: 420px; }
  .coll-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-panel > .seg { overflow-x: auto; flex-wrap: nowrap; }
  .overlay { place-items: end center; padding: 0; overflow: hidden; }
  .modal, .modal.modal-sm, .modal.modal-wide {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    border-radius: 10px 10px 0 0;
    padding-top: 30px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    animation: sheet-in .34s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
  }
  /* Grab handle: the sheet can be pulled down to close. */
  .modal::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 38px;
    height: 4px;
    margin-left: -19px;
    border-radius: 2px;
    background: var(--text-3);
    opacity: .45;
  }
  .overlay.is-closing .modal, .overlay.is-closing .modal.modal-sm, .overlay.is-closing .modal.modal-wide { animation: sheet-out .24s cubic-bezier(.4, 0, 1, 1) forwards; }
  .modal-actions .btn { flex: 1; }
  .modal { margin: auto 0 0; }
  .toasts { right: 16px; left: 16px; width: auto; }
  .update-pill { left: 12px; right: 12px; transform: none; justify-content: space-between; animation-name: pill-up-mobile; }
  .menu { width: min(320px, calc(100vw - 24px)); }
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out { from { transform: translateY(var(--drag, 0px)); } to { transform: translateY(100%); } }

@media (max-width: 520px) {
  .stat-pair { flex-direction: column; gap: 6px; }
  .stat-num { display: flex; align-items: baseline; gap: 7px; }
}

@media (max-width: 340px) {
  .grid, .grid.acc, .grid.daily, .nm-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Night Market reveal (kept from the previous design)
   ========================================================================== */
/* Anchors the full-card cover (it is a direct child of the article). */
.nm-card { position: relative; }

.nm-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  /* Sealed look: near-black base, rarity hue rising from the bottom, a faint
     diagonal sheen for texture. */
  background:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .04) 50%, transparent 60%),
    radial-gradient(130% 86% at 50% 108%, var(--nm-soft), transparent 62%),
    linear-gradient(178deg, #1a1a20, #0b0b0e 62%);
  transition: opacity .5s ease, transform .65s cubic-bezier(.19, .75, .25, 1);
}

/* Thin tinted frame + inner glow, so the covered card reads as "sealed". */
.nm-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid var(--nm-line);
  border-radius: 4px;
  box-shadow: inset 0 0 30px -12px var(--nm-glow);
  pointer-events: none;
}

/* Hover glow as its own layer so it can fade in/out smoothly (gradients
   themselves do not transition). */
.nm-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(130% 86% at 50% 108%, var(--nm-glow), transparent 64%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.nm-cover:hover::after { opacity: 1; }

.nm-cover > * { position: relative; z-index: 1; }
.nm-card.nm-covered { border-color: var(--nm-line); box-shadow: 0 0 22px -8px var(--nm-glow); transition: border-color .45s ease, box-shadow .45s ease; }
.nm-card.nm-covered:hover { box-shadow: 0 0 26px -6px var(--nm-glow); }
.nm-cover:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Emblem: the VALORANT-style V inside a rarity-ringed badge that slowly
   "breathes" so covered offers feel alive; on hover it brightens and lifts. */
.nm-badge {
  width: clamp(54px, 44%, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--nm-line);
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, .07), transparent 68%),
    rgba(6, 6, 8, .55);
  box-shadow: 0 0 20px -6px var(--nm-glow), inset 0 0 16px -8px var(--nm-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: nm-breathe 3.2s ease-in-out infinite alternate;
  transition: transform .35s ease, box-shadow .35s ease;
}
.nm-cover:hover .nm-badge {
  transform: scale(1.07);
  box-shadow: 0 0 32px -4px var(--nm-glow), inset 0 0 22px -6px var(--nm-glow);
}
@keyframes nm-breathe {
  from { box-shadow: 0 0 14px -8px var(--nm-glow), inset 0 0 12px -8px var(--nm-glow); }
  to   { box-shadow: 0 0 28px -4px var(--nm-glow), inset 0 0 20px -6px var(--nm-glow); }
}

/* V mark: the official VALORANT logo SVG used as a CSS mask so it can be
   recolored per card to the rarity tint (only the shape's alpha matters). */
.nm-mark {
  width: 58%;
  aspect-ratio: 1;
  height: auto;
  background-color: var(--nm-solid, #ff4655);
  -webkit-mask: url("valorant-v.svg") center / contain no-repeat;
  mask: url("valorant-v.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 10px var(--nm-glow));
  transition: filter .35s ease;
}
.nm-cover:hover .nm-mark {
  filter: drop-shadow(0 0 14px var(--nm-glow)) drop-shadow(0 0 26px var(--nm-soft));
}

/* Covered and revealed cards must be pixel-identical in height or the row
   resizes when an offer is uncovered. Pinned line-heights make the math exact:
   desktop 12 + 20 + 8 + 20 + 14 = 74; mobile 10 + 18 + 8 + 20 + 12 = 68. */
.nm-body { height: 74px; padding: 12px 14px 14px; }
.nm-body h3 { line-height: 20px; }
.nm-body .price { line-height: 20px; }

/* Reveal: the cover scales up + fades out while the offer pops in underneath. */
.nm-revealing .nm-cover { opacity: 0; transform: scale(1.16); pointer-events: none; }
.nm-revealed .nm-cover { display: none; }

@keyframes nm-pop {
  from { opacity: 0; transform: scale(.86) translateY(6px); }
  to { opacity: 1; transform: none; }
}
.nm-revealing .nm-pop {
  animation: nm-pop .55s cubic-bezier(.22, .9, .28, 1) .1s both;
}

@media (prefers-reduced-motion: reduce) {
  .nm-cover { transition: opacity .2s ease; transform: none; }
  .nm-cover::after { transition: none; }
  .nm-badge { animation: none; transition: none; }
  .nm-card.nm-covered, .nm-card.nm-covered:hover { box-shadow: none; }
  .nm-revealing .nm-pop { animation: none; }
}


/* ---------- loadout link dialog (beta) ---------- */
.dlg-titles h2 .chip { margin-left: 8px; vertical-align: middle; }
.dlg-note.is-warn { border-color: rgba(242, 184, 75, .4); background: var(--amber-soft); color: var(--text); }
.dlg-note.is-warn .i { color: var(--amber); }
.dlg-note.is-warn b { color: var(--amber); }
#slBody > :first-child { margin-top: 0; }
.sl-opts { margin-top: 14px; background: var(--bg-2); }
.sl-opts .row { padding: 12px 14px; }
.sl-opts .row > .i { color: var(--amber); }
.sl-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; color: var(--text-2); font-size: 13px; }
.sl-link { display: flex; gap: 8px; }
.sl-link .input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12px; }
.sl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; color: var(--text-2); font-size: 13px; }

/* ---------- agent mastery ---------- */
.mas-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.mas-roster { display: grid; gap: 4px; }
.mas-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.mas-pick:hover { border-color: var(--line-2); background: var(--surface-2); }
.mas-pick.is-on { border-color: var(--text-3); background: var(--surface-3); }
.mas-pick.is-new .mas-face { filter: grayscale(1); opacity: .5; }
.mas-pick.is-new .mas-pick-name, .mas-pick.is-new .mas-pick-lvl { color: var(--text-3); }
.mas-pick-name { overflow: hidden; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.mas-pick-lvl { min-width: 30px; padding: 3px 7px; border-radius: 2px; background: rgba(255, 255, 255, .08); color: var(--text); font: 600 17px/1 var(--font-head); font-variant-numeric: tabular-nums; text-align: center; }
.mas-pick.is-on .mas-pick-lvl { background: var(--text); color: var(--bg); }
div.mas-pick.sk { height: 48px; cursor: default; }

.mas-face { position: relative; display: grid; place-items: center; flex: none; overflow: hidden; background: #1a2036; border: 1px solid var(--line-2); }
.mas-face img { width: 100%; height: 100%; object-fit: cover; }
.mas-face.is-sm { width: 36px; height: 36px; }
.mas-face.is-lg { width: 60px; height: 60px; border-width: 2px; border-color: rgba(200, 210, 245, .45); }

.mas-stage { --a: #e9ecf5; --c1: #33406b; --c2: #0e1428; display: grid; gap: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: radial-gradient(70% 40% at 80% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 70%), radial-gradient(90% 30% at 10% 100%, color-mix(in srgb, var(--c2) 30%, transparent), transparent 70%), linear-gradient(180deg, #121a33, #0a1022); }
.mas-top { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 22px; min-height: 0; padding: 12px clamp(14px, 2.4vw, 30px); overflow: hidden; }
.mas-top > * { position: relative; z-index: 1; }
.mas-art { position: absolute !important; inset: 0 0 0 auto; z-index: 0 !important; width: min(30%, 260px); pointer-events: none; }
.mas-art img { width: 100%; height: 100%; object-fit: contain; object-position: right center; transform: scale(1.7); transform-origin: right 8%; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .5)); }
.mas-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.mas-title { display: grid; gap: 2px; min-width: 0; }
.mas-title small { color: var(--text-2); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.mas-title h3 { margin: 0; color: var(--a); font: 700 clamp(28px, 4.2vw, 42px)/.95 var(--font-head); letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.mas-ends { margin-top: 6px; color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.mas-lifebox { display: grid; justify-items: center; gap: 1px; padding: 6px 16px; border: 1px solid rgba(160, 175, 230, .25); background: rgba(8, 12, 28, .7); backdrop-filter: blur(4px); text-align: center; }
.mas-lifebox small { color: var(--text-2); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.mas-lifebox b { color: var(--a); font: 700 30px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.mas-lifebox span { color: var(--text-3); font-size: 11px; letter-spacing: .06em; }

.mas-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px clamp(14px, 2.4vw, 30px); border-top: 1px solid rgba(160, 175, 230, .14); }
.mas-block h4 { margin: 0; font: 600 16px/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.mas-block > p { margin: 0 0 6px; color: var(--text-3); font-size: 12px; }

.mas-track { position: relative; padding-top: 42px; padding-bottom: 26px; }
.mas-now { position: absolute; top: 0; display: grid; gap: 2px; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.mas-now b { color: var(--a); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mas-now span { color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.mas-now em { color: var(--green); font-style: normal; }
.mas-now::after { content: ""; justify-self: center; width: 1px; height: 8px; background: var(--text-3); }
.mas-segs { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; }
.mas-seg { position: relative; height: 16px; overflow: hidden; background: rgba(8, 12, 28, .55); border: 1px solid rgba(160, 175, 230, .2); }
.mas-seg i { position: absolute; inset: 0 auto 0 0; background: var(--a); transition: width .4s var(--ease); }
.mas-seg.is-cur { border-color: var(--a); }
.mas-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; }
.mas-tick { position: absolute; top: 0; transform: translateX(-50%); color: var(--text-2); font: 600 15px/1 var(--font-head); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.mas-tick::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1px; height: 4px; background: currentColor; }
.mas-tick.is-got { color: var(--a); }

.mas-ups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mas-up { position: relative; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid rgba(160, 175, 230, .18); background: rgba(8, 12, 28, .6); }
.mas-up.is-got { border-color: color-mix(in srgb, var(--a) 55%, transparent); }
.mas-up b { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.mas-up span { color: var(--text-2); font-size: 12px; }
.mas-up.is-got span { color: var(--a); }
.mas-up small { color: var(--text-3); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.mas-up .i { position: absolute; top: 10px; right: 10px; font-size: 13px; color: var(--text-3); }
.mas-up.is-got .i { color: var(--a); }

.mas-now.is-end { transform: translateX(calc(-100% + 10px)); text-align: right; }
.mas-now.is-end::after { justify-self: end; margin-right: 9px; }
.mas-now.is-start { transform: translateX(-10px); text-align: left; }
.mas-now.is-start::after { justify-self: start; margin-left: 9px; }
.mas-stage-sk { padding: 24px; gap: 20px; }

@media (max-width: 900px) {
  .mas-ups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .mas-wrap { grid-template-columns: minmax(0, 1fr); }
  .mas-roster { grid-auto-flow: column; grid-auto-columns: 150px; max-height: none; overflow: auto hidden; padding: 0 0 6px; }
  .mas-art { width: 70%; opacity: .4; }
  .mas-face.is-lg { width: 72px; height: 72px; }
  .mas-lifebox { width: 100%; }
}

/* The Agent ID board, drawn like the game's. Everything inside is sized in cqw (shares of the
   board's width) so it scales as one picture. The level frame is the game's frame art, 9-sliced
   so its corners keep their shape on the wider board. */
.mas-board { position: relative; width: 100%; max-width: 820px; aspect-ratio: 5 / 3; margin: min(18%, 148px) auto 0; container-type: inline-size; isolation: isolate; }
.mas-board img { display: block; }
.mas-board-bg { position: absolute; inset: 3.3cqw 3.6cqw; z-index: 0; overflow: hidden; background: linear-gradient(180deg, #121a2c, #0a0f1b);
  clip-path: polygon(2.2cqw 0, calc(100% - 2.2cqw) 0, 100% 2.2cqw, 100% calc(100% - 2.2cqw), calc(100% - 2.2cqw) 100%, 2.2cqw 100%, 0 calc(100% - 2.2cqw), 0 2.2cqw); }
.mas-board-bg img { width: 100%; height: 100%; object-fit: cover; }
.mas-board-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 16, .45), transparent 38%); }
/* The pose stands on the background's bottom edge and may rise over the frame's top. */
.mas-board-pose { position: absolute; left: 3.6cqw; right: 3.6cqw; top: -18cqw; bottom: 3.3cqw; z-index: 2; overflow: hidden; pointer-events: none; }
.mas-board-pose img { position: absolute; left: 50%; top: -1.5cqw; width: 112cqw; max-width: none; transform: translateX(-52%); filter: drop-shadow(0 1cqw 2.4cqw rgba(0, 0, 0, .45)); }
.mas-board-frame { position: absolute; inset: 0; z-index: 1; border: 0 solid transparent; border-image-slice: 60 190; border-image-width: 22.1% 42.04%; border-image-repeat: stretch; opacity: .92; pointer-events: none; }
.mas-board-id { position: absolute; left: 7.2cqw; bottom: 8.6cqw; z-index: 3; display: grid; justify-items: start; gap: 1cqw; max-width: 42cqw; }
.mas-board-card { width: 11cqw; aspect-ratio: 1; overflow: hidden; border: max(1px, .2cqw) solid rgba(255, 255, 255, .28); background: #1a2036; box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .45); }
.mas-board-card img { width: 100%; height: 100%; object-fit: cover; }
.mas-board-riot { max-width: 100%; overflow: hidden; color: #fff; font: 700 max(10px, 1.85cqw)/1.2 var(--font); letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.mas-board-riot span { color: rgba(220, 225, 240, .55); font-weight: 500; }
.mas-board-agent { position: relative; display: flex; align-items: center; gap: 1.2cqw; margin-top: .4cqw; padding-right: 7cqw; }
.mas-board-agent::before { content: ""; position: absolute; left: 3cqw; right: 0; top: 50%; height: 6.2cqw; transform: translateY(-50%); z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 70%, rgba(6, 9, 18, .6)), transparent); }
.mas-board-agent strong { color: #f3f1ea; font: 700 max(18px, 6cqw)/1 var(--font-head); letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 .3cqw 1.2cqw rgba(0, 0, 0, .5); }
.mas-diamond { position: relative; display: grid; place-items: center; flex: none; width: 6.4cqw; aspect-ratio: 1; }
.mas-diamond::before { content: ""; position: absolute; inset: 15%; transform: rotate(45deg); border: max(1.5px, .35cqw) solid var(--a); background: color-mix(in srgb, var(--c1) 70%, #0b0f1a); box-shadow: 0 0 1.4cqw color-mix(in srgb, var(--a) 35%, transparent); }
.mas-diamond b { position: relative; color: #fff; font: 600 max(10px, 2.2cqw)/1 var(--font-head); font-variant-numeric: tabular-nums; }
.mas-slots { position: absolute; right: 6.6cqw; top: 7.4cqw; z-index: 3; display: grid; gap: 2.6cqw; width: 15.6cqw; }
.mas-slot { position: relative; display: grid; place-items: center; align-content: center; gap: .5cqw; height: 13cqw; padding: 0 .8cqw;
  background: linear-gradient(180deg, rgba(6, 9, 18, .94) 0%, color-mix(in srgb, var(--c1) 80%, #0b0f1a) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); text-align: center; }
/* Corner brackets round each slot, in the agent's colour. */
.mas-slot::before { content: ""; position: absolute; inset: -.7cqw; pointer-events: none; --b: color-mix(in srgb, var(--a) 75%, transparent); --l: 1.6cqw; --w: max(1px, .18cqw);
  background:
    linear-gradient(var(--b), var(--b)) left top / var(--l) var(--w) no-repeat, linear-gradient(var(--b), var(--b)) left top / var(--w) var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) right top / var(--l) var(--w) no-repeat, linear-gradient(var(--b), var(--b)) right top / var(--w) var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) left bottom / var(--l) var(--w) no-repeat, linear-gradient(var(--b), var(--b)) left bottom / var(--w) var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) right bottom / var(--l) var(--w) no-repeat, linear-gradient(var(--b), var(--b)) right bottom / var(--w) var(--l) no-repeat; }
.mas-slot.has-stat b { color: #fff; font: 700 max(13px, 3.6cqw)/1 var(--font-head); font-variant-numeric: tabular-nums; }
.mas-slot.has-stat small { max-width: 100%; overflow: hidden; color: rgba(225, 230, 245, .7); font-size: max(8px, 1.15cqw); font-weight: 600; letter-spacing: .1em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.mas-slot.is-loading { background: linear-gradient(100deg, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .03) 70%) 0 0 / 300% 100%, rgba(8, 12, 24, .9); animation: mas-shine 1.4s linear infinite; }
@keyframes mas-shine { to { background-position: -300% 0, 0 0; } }
.mas-vmark { width: 5cqw; aspect-ratio: 1; background: rgba(255, 255, 255, .85);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M19.8 26.1h-.2c-2.4 0-4.8 0-7.2 0-.3 0-.5-.1-.6-.3-2.5-3.2-5.1-6.3-7.6-9.5C4.1 16.1 4 16 4 15.8c0-3.1 0-6.1 0-9.2 0-.1 0-.2.1-.2h.1c5.2 6.5 10.4 13 15.5 19.5 0 0 0 .1.1.1z'/%3E%3Cpath d='M27.8 16.3c-.7.9-1.5 1.8-2.2 2.8-.2.2-.4.3-.6.3-2.4 0-4.8 0-7.1 0-.1 0-.2-.1-.1-.2 0 0 0-.1.1-.1 2.4-3 4.7-5.9 7.1-8.9 1-1.2 2-2.5 2.9-3.7 0-.1.1-.1.2-.1h.1c0 .1 0 .1 0 .2 0 3 0 6.1 0 9.1 0 .3-.1.5-.2.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M19.8 26.1h-.2c-2.4 0-4.8 0-7.2 0-.3 0-.5-.1-.6-.3-2.5-3.2-5.1-6.3-7.6-9.5C4.1 16.1 4 16 4 15.8c0-3.1 0-6.1 0-9.2 0-.1 0-.2.1-.2h.1c5.2 6.5 10.4 13 15.5 19.5 0 0 0 .1.1.1z'/%3E%3Cpath d='M27.8 16.3c-.7.9-1.5 1.8-2.2 2.8-.2.2-.4.3-.6.3-2.4 0-4.8 0-7.1 0-.1 0-.2-.1-.1-.2 0 0 0-.1.1-.1 2.4-3 4.7-5.9 7.1-8.9 1-1.2 2-2.5 2.9-3.7 0-.1.1-.1.2-.1h.1c0 .1 0 .1 0 .2 0 3 0 6.1 0 9.1 0 .3-.1.5-.2.6z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* The equipped pieces under the board. */
.mas-equipped { overflow: hidden; }
.mas-eqs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.mas-eq { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border: 1px solid rgba(160, 175, 230, .16); background: rgba(8, 12, 28, .6); }
.mas-eq-art { position: relative; display: grid; place-items: center; height: 84px; overflow: hidden; background: rgba(0, 0, 0, .28); color: rgba(235, 238, 248, .85); }
.mas-eq-art img { width: 100%; height: 100%; object-fit: cover; }
.mas-eq.is-pose .mas-eq-art img { object-position: 50% 12%; transform: scale(1.5); transform-origin: 50% 0; }
.mas-eq-text { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 9px 11px 10px; }
.mas-eq small { color: var(--text-3); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.mas-eq b { overflow: hidden; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-overflow: ellipsis; }
.mas-eq-frame { display: block; width: 78%; aspect-ratio: 452 / 160; border: 0 solid transparent; border-image-slice: 60 190; border-image-width: 37.5% 42.04%; opacity: .9; }

/* Kind glyphs for rewards with no picture of their own (stats, quotes). */
.mas-glyph { display: block; width: 42px; aspect-ratio: 1; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.mas-glyph.is-stat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M8 22h6v18H8zM17 12h6v28h-6zM26 18h6v22h-6zM35 26h6v14h-6z'/%3E%3C/svg%3E"); }
.mas-glyph.is-quote { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill-rule='evenodd' d='M8 6h32a4 4 0 0 1 4 4v20a4 4 0 0 1-4 4H22l-10 8v-8H8a4 4 0 0 1-4-4V10a4 4 0 0 1 4-4zm5 11v8h3v-8zm6-4v16h3V13zm6 2v12h3V15zm6 3v6h3v-6z'/%3E%3C/svg%3E"); }
.mas-glyph:not(.is-stat):not(.is-quote) { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4 44 24 24 44 4 24z'/%3E%3C/svg%3E"); opacity: .5; }

/* The reward stages, like the game's reward pages: a panel per lifetime level, gold-edged while
   locked, with big and small tiles that each show the item, its price and its name. */
.mas-rewards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.mas-tier { display: grid; align-content: start; gap: 12px; padding: 14px; border: 1px solid rgba(214, 170, 92, .45); background: linear-gradient(180deg, rgba(14, 19, 38, .85), rgba(8, 12, 26, .9)); }
.mas-tier.is-open { border-color: color-mix(in srgb, var(--a) 55%, transparent); }
.mas-tier-head { display: flex; align-items: center; gap: 10px; }
.mas-tier-lock { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: rgba(214, 170, 92, .16); color: #d6aa5c; font-size: 15px; }
.mas-tier.is-open .mas-tier-lock { background: color-mix(in srgb, var(--a) 18%, transparent); color: var(--a); }
.mas-tier-title { display: grid; gap: 2px; }
.mas-tier-title b { font: 600 18px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.mas-tier-title small { color: var(--text-3); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.mas-tier.is-open .mas-tier-title small { color: var(--a); }
.mas-tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, 48px); gap: 8px; }
.mas-tile { position: relative; display: grid; min-width: 0; overflow: hidden; border: 1px solid rgba(160, 175, 230, .12); background: radial-gradient(80% 70% at 50% 45%, rgba(60, 74, 128, .22), transparent 75%), #0b1122; color: rgba(235, 238, 248, .9); transition: border-color .15s var(--ease); }
.mas-tile:hover { border-color: rgba(160, 175, 230, .32); }
.mas-tier:not(.is-open) .mas-tile-art { opacity: .75; filter: saturate(.8); }
.mas-tile-art { position: absolute; inset: 20px 8px 28px; display: grid; place-items: center; min-height: 0; }
.mas-tile-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mas-tile-art > img.is-bg, .mas-tile-art > img.is-pose { position: absolute; inset: -20px -8px -28px; width: calc(100% + 16px); height: calc(100% + 48px); max-width: none; max-height: none; object-fit: cover; }
.mas-tile-art > img.is-pose { object-position: 50% 15%; }
.mas-tile.is-background::after, .mas-tile.is-pose::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 9, 18, .55), transparent 30%, transparent 62%, rgba(6, 9, 18, .9)); pointer-events: none; }
.mas-tile-art > img.is-card-large, .mas-tile-art > img.is-card { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); }
.mas-tile-art > img.is-skin { inset: 0 4%; width: 92%; transform: rotate(-4deg); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.mas-tile-art > img.is-buddy, .mas-tile-art > img.is-spray { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.mas-tile .mas-eq-frame { width: 86%; max-height: 100%; }
.mas-tile .mas-glyph { width: min(44px, 70%); }
.mas-tile.is-big .mas-glyph { width: 56px; }
.mas-tile-cost { position: absolute; top: 5px; right: 7px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; color: rgba(235, 238, 248, .9); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.mas-tile-cost img { width: 12px; height: 12px; }
.mas-tile-name { position: absolute; left: 6px; right: 6px; bottom: 5px; z-index: 2; display: -webkit-box; overflow: hidden; color: rgba(235, 238, 248, .85); font-size: 9.5px; font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-align: center; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.mas-tile.is-big .mas-tile-name { font-size: 10.5px; }
.mas-tile-owned { position: absolute; top: 5px; left: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px 2px 4px; border-radius: 2px; background: rgba(70, 211, 154, .16); color: var(--green); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mas-tile-owned .i { font-size: 11px; }
.mas-tile.is-owned { border-color: rgba(70, 211, 154, .4); }
.mas-title-plate { max-width: 100%; overflow: hidden; padding: 5px 10px; border: 1px solid rgba(235, 238, 248, .35); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); color: #fff; font: 600 13px/1.1 var(--font-head); letter-spacing: .1em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.mas-tile.is-big .mas-title-plate { font-size: 16px; padding: 7px 14px; }
.mas-quote { display: grid; justify-items: center; gap: 6px; width: 100%; max-width: 100%; }
.mas-tile .mas-quote .mas-glyph { width: 30px; }
.mas-quote q { display: none; max-width: 100%; color: #fff; font: 600 13px/1.25 var(--font-head); letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.mas-tile:not(.is-big) .mas-quote { grid-auto-flow: column; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.mas-tile:not(.is-big) .mas-quote .mas-glyph { flex: none; width: 24px; }
.mas-tile:not(.is-big) .mas-quote q { display: -webkit-box; overflow: hidden; min-width: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #fff; font: 600 11px/1.2 var(--font-head); letter-spacing: .02em; text-align: left; text-transform: none; }
.mas-tile.is-big .mas-quote q { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; text-transform: none; font-size: 12px; line-height: 1.25; letter-spacing: .02em; }
.mas-tile.is-big .mas-quote.is-long q { font-size: 11px; }
.mas-tile.is-big .mas-quote.is-xlong q { font-size: 10px; line-height: 1.2; }
.mas-tile.is-big .mas-quote .mas-glyph { width: 30px; }
.mas-play { position: absolute; left: 6px; top: 4px; z-index: 3; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 1px solid rgba(235, 238, 248, .3); border-radius: 50%; background: rgba(6, 9, 18, .7); color: #fff; cursor: pointer; }
.mas-play::before { content: ""; width: 0; height: 0; margin-left: 2px; border-style: solid; border-width: 4.5px 0 4.5px 7px; border-color: transparent transparent transparent currentColor; }
.mas-play.is-on::before { width: 7px; height: 8px; margin: 0; border: 0; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.mas-play:hover, .mas-play.is-on { border-color: var(--a); color: var(--a); }
.mas-tile.is-owned .mas-play { top: 32px; }

@media (max-width: 1100px) { .mas-eqs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .mas-eqs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mas-tier-grid { grid-template-rows: repeat(6, 42px); }
}

/* Reward tiles that open a preview (player cards) look clickable: pointer, hover lift, a corner mark. */
.mas-tile.is-previewable { cursor: zoom-in; }
.mas-tile.is-previewable:hover, .mas-tile.is-previewable:focus-visible { border-color: var(--a); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 55%, transparent), 0 6px 18px rgba(0, 0, 0, .4); outline: none; }
.mas-tile.is-previewable .mas-tile-art > img { transition: transform .18s var(--ease); }
.mas-tile.is-previewable:hover .mas-tile-art > img, .mas-tile.is-previewable:focus-visible .mas-tile-art > img { transform: scale(1.06); }
.mas-tile.is-previewable::after { content: ""; position: absolute; right: 6px; bottom: 22px; z-index: 3; width: 14px; height: 14px; background: rgba(235, 238, 248, .75); pointer-events: none; transition: background-color .15s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3a7 7 0 0 1 5.6 11.2l5.1 5.1-1.4 1.4-5.1-5.1A7 7 0 1 1 10 3zm0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm-1 2h2v2h2v2h-2v2H9v-2H7V9h2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3a7 7 0 0 1 5.6 11.2l5.1 5.1-1.4 1.4-5.1-5.1A7 7 0 1 1 10 3zm0 2a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm-1 2h2v2h2v2h-2v2H9v-2H7V9h2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.mas-tile.is-previewable:hover::after, .mas-tile.is-previewable:focus-visible::after { background: var(--a); }
