@import url("./starz-theme.css");
@import url("/blackmarket-cosmetics.css");
@import url("/range-nameplates.css");
.market-subnav {
  display: flex;
  gap: .55rem;
  margin: 1.25rem 0 1.5rem;
  padding: .38rem;
  width: fit-content;
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 999px;
  background: rgba(4,7,18,.7);
}
.market-subnav a {
  padding: .65rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.market-subnav a:hover,
.market-subnav a.active {
  color: #fff;
  background: linear-gradient(120deg,rgba(37,99,235,.72),rgba(124,58,237,.72));
}
.collection-page {
  min-height: 75vh;
  padding-bottom: 5rem;
}
.collection-page-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(260px,.65fr);
  gap: 2rem;
  align-items: end;
  margin: 2.5rem 0 1.75rem;
}
.collection-page-head h1 {
  max-width: 760px;
  margin: .45rem 0 0;
  font-size: clamp(2.5rem,6vw,5.4rem);
  line-height: .9;
  letter-spacing: -.045em;
}
.collection-page-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.collection-page-summary {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.4rem;
}
.collection-page-summary span {
  padding: .65rem .85rem;
  border: 1px solid rgba(148,163,184,.2);
  background: rgba(9,13,25,.7);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.collection-page-summary b { color: #fff; }
@media (max-width: 760px) {
  .collection-page-head { grid-template-columns: 1fr; gap: 1rem; }
  .market-subnav { width: 100%; }
  .market-subnav a { flex: 1; text-align: center; }
  .collection-page-summary { flex-wrap: wrap; }
}
body.reactive-subtle.reactive-tide[class*="collection-active-"]::after { opacity:.14; }
/* ==========================================================================
   MASO MINI GAMES — Neon Arcade showcase
   Concept: "MASO Arcade" — a Rust Console loot economy glowing under an
   aurora of purple -> magenta -> pink -> blue.
   ========================================================================== */

:root {
  --bg: #08090b;
  --bg-2: #111316;
  --surface: rgba(190, 198, 207, 0.045);
  --surface-2: rgba(190, 198, 207, 0.075);
  --border: rgba(187, 197, 208, 0.14);
  --border-strong: rgba(209, 216, 224, 0.24);
  --text: #e9edf1;
  --muted: #a8b0ba;
  --muted-2: #79838e;

  /* Semantic/gameplay hues are kept intact; STARZ chrome uses its own tokens. */
  --purple: #7c3aed;
  --violet: #8b5cf6;
  --magenta: #c026d3;
  --fuchsia: #d946ef;
  --pink: #ec4899;
  --blue: #3b82f6;
  --cyan: #22d3ee;

  --grad: linear-gradient(120deg, #a52a34 0%, #e23b46 48%, #d4dbe0 100%);
  --grad-soft: linear-gradient(120deg, rgba(190,32,44,.22), rgba(146,24,35,.12), rgba(183,194,204,.12));

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 34px -10px rgba(235, 45, 57, 0.42);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Number fields: the browser's native up/down stepper renders as a solid
   white block on our dark panels. Drop it everywhere — every number input on
   the site is typed into (they all carry inputmode) and several sections were
   already killing it one selector at a time. */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(124, 58, 237, 0.20), transparent 60%),
    radial-gradient(1000px 700px at -10% 20%, rgba(59, 130, 246, 0.16), transparent 55%),
    var(--bg);
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  mix-blend-mode: screen;
}
.aurora::before {
  background: radial-gradient(circle, var(--magenta), transparent 60%);
  top: -10%; left: 55%;
  animation: drift1 24s ease-in-out infinite;
}
.aurora::after {
  background: radial-gradient(circle, var(--blue), transparent 60%);
  bottom: -20%; left: -10%;
  animation: drift2 30s ease-in-out infinite;
}
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
  pointer-events: none;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, 12%) scale(1.15); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12%, -8%) scale(1.1); }
}

/* ---------- Utilities ---------- */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fuchsia);
}
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 12px 0 10px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.reveal { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; }

/* Native document transitions keep navigation visually continuous without
   retaining API results or replacing any game's lifecycle with an SPA. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .12s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ---------- Announcement ---------- */
.announce {
  position: relative;
  z-index: 60;
  background: var(--grad);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  letter-spacing: 0.01em;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }

/* Explicit class instead of the hidden attribute: several component classes
   set display themselves and would otherwise override the browser default. */
.maintenance-hidden {
  display: none !important;
}

.maintenance-notice {
  position: relative;
  z-index: 2;
  padding: 24px 0 0;
}
.maintenance-notice-inner {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(236, 72, 153, .48);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, .18), rgba(236, 72, 153, .1)),
    rgba(15, 8, 25, .88);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .05);
  text-align: center;
}
.maintenance-notice-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--fuchsia);
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.maintenance-notice h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
}
.maintenance-notice p {
  max-width: 850px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 4, 15, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 72px;
  position: relative;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}
.brand .diamond {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--grad);
  box-shadow: var(--glow);
  transform: rotate(45deg);
}
/* In normal flow (not absolutely centred) so it can never sit under the
   bell/balance cluster on narrower desktops. */
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--text); font-weight: 600; font-size: 0.95rem;
  transition: color .2s, background .2s;
}

/* Back to the MASO3X storefront */
.nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(0, 0, 0, .25);
  color: var(--muted); font-weight: 600; font-size: .85rem;
  white-space: nowrap; transition: color .2s, border-color .2s, background .2s;
}
.nav-back:hover { color: var(--text); border-color: var(--border-strong); background: rgba(0, 0, 0, .4); }
.nav-links a:hover { color: #ffffff; background: var(--surface); }
.nav-auth { margin-left: auto; }
.nav-cta { margin-left: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-family: var(--font-body);
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 0.95rem; transition: transform .15s ease, box-shadow .2s ease, filter .2s;
  color: white;
}
.btn-primary { background: var(--grad); box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); filter: saturate(1.15) brightness(1.05); }
.btn-ghost {
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: grayscale(.3); }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 16px 0 18px;
}
.hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 34ch; margin: 0 0 30px; }
/* One stacked column that lines up with the unlock sign above it: every
   hero action is the same width, whatever gets added next. */
.hero-cta {
  display: grid;
  grid-auto-flow: row;
  gap: 14px;
  width: 100%;
  max-width: 660px;
}
.hero-cta .btn { width: 100%; min-width: 0; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.86rem; color: var(--muted);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.chip b { color: var(--text); font-family: var(--font-mono); }

/* Hero console card */
.console {
  position: relative;
  border-radius: 26px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.console::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: 26px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; pointer-events: none;
}
.console-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.console-top .label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .2em; color: var(--muted-2); text-transform: uppercase; }
.balances { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.bal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px;
}
.bal .k { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.bal .v { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; margin-top: 4px; }
.bal .v.bal-login-prompt {
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.35;
}

/* Player Console badge collection — all four tiers stay visible as a teaser.
   Real balances from /api/me switch individual cards from locked to owned. */
.console-badges {
  display: block; margin: 2px 0 16px; padding: 12px;
  border: 1px solid rgba(255,255,255,.09); border-radius: 15px;
  background:
    radial-gradient(circle at 88% 12%, rgba(103,232,249,.10), transparent 34%),
    rgba(7,5,15,.42);
  color: inherit; text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.console-badges:hover {
  transform: translateY(-1px); border-color: rgba(103,232,249,.3);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
.console-badges-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 9px; color: var(--muted); font-size: .68rem;
  letter-spacing: .11em; text-transform: uppercase;
}
.console-badges-spark { color: #67e8f9; text-shadow: 0 0 10px rgba(103,232,249,.8); }
.console-badges-total { font-family: var(--font-mono); color: var(--muted-2); letter-spacing: .04em; }
.console-badges.has-badges .console-badges-total { color: #d8b4fe; }
.console-badges-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
.console-badge-token {
  position: relative; display: grid; justify-items: center; min-width: 0;
  padding: 7px 4px 6px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px; background: rgba(255,255,255,.035);
  transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.console-badge-token img {
  width: 48px; height: 48px; max-width: 100%; object-fit: contain;
  transition: filter .18s ease, opacity .18s ease, transform .18s ease;
}
.console-badge-name {
  min-width: 0; margin-top: 2px; overflow: hidden; text-overflow: ellipsis;
  font-size: .59rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.console-badge-count {
  position: absolute; top: 4px; right: 4px; min-width: 20px; height: 20px;
  display: grid; place-items: center; padding: 0 5px; border-radius: 999px;
  background: rgba(8,5,17,.88); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font: 700 .65rem/1 var(--font-mono);
}
.console-badge-token.is-locked { opacity: .46; }
.console-badge-token.is-locked img { filter: grayscale(1) brightness(.58); opacity: .6; }
.console-badge-token.is-locked::after {
  content: "•"; position: absolute; left: 6px; top: 3px;
  color: var(--muted-2); font-size: .8rem;
}
.console-badge-token.is-owned img { transform: translateY(-1px) scale(1.04); }
.console-badge-token.is-owned[data-badge-kind="bronze"] { border-color: rgba(217,119,63,.45); box-shadow: inset 0 0 16px rgba(180,83,35,.12); }
.console-badge-token.is-owned[data-badge-kind="silver"] { border-color: rgba(203,213,225,.45); box-shadow: inset 0 0 16px rgba(203,213,225,.10); }
.console-badge-token.is-owned[data-badge-kind="gold"] { border-color: rgba(250,204,21,.55); box-shadow: inset 0 0 18px rgba(250,204,21,.14); }
.console-badge-token.is-owned[data-badge-kind="diamond"] { border-color: rgba(103,232,249,.58); box-shadow: inset 0 0 20px rgba(103,232,249,.16), 0 0 14px rgba(99,102,241,.10); }
.console-badge-token.is-owned .console-badge-name { color: var(--text); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.stat { background: rgba(10, 6, 20, 0.75); padding: 28px 22px; text-align: center; }
.stat .num { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.stat .lbl { color: var(--muted); font-size: .86rem; margin-top: 6px; letter-spacing: .04em; }

/* ---------- Card grid ---------- */
.cards { display: grid; gap: 22px; }
.cards > * { min-width: 0; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }

/* ---------- Collectible Sets / guarded vault ---------- */
.collection-vault {
  position: relative; margin: 46px 0 38px; padding: clamp(22px,4vw,42px);
  overflow: hidden; border: 1px solid rgba(190,214,92,.26); border-radius: 22px;
  background:
    linear-gradient(105deg, rgba(174,198,57,.09), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 44px),
    #100f0d;
}
.collection-vault::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.45;
  background: linear-gradient(transparent 49%, rgba(201,224,96,.17) 50%, transparent 51%); background-size:100% 7px; }
.collection-vault-head { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.85fr); gap:28px; align-items:end; margin-bottom:26px; }
.cv-kicker,.collection-state,.profile-collection-status { font:700 .68rem/1 var(--font-mono); letter-spacing:.17em; color:#cce66b; }
.collection-vault h2 { margin:8px 0 0; font:800 clamp(1.6rem,4vw,2.7rem)/1 var(--font-display); letter-spacing:.02em; }
.collection-vault-head p { margin:0; color:#b4b6a3; font-size:.9rem; line-height:1.65; }
.collection-grid { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.collection-card,.profile-collection { position:relative; min-height:220px; padding:20px; overflow:hidden; border:1px solid rgba(219,225,184,.15); background:rgba(9,12,10,.58); }
.collection-card::after,.profile-collection::after { content:""; position:absolute; inset:auto -20% 0; height:44%; pointer-events:none; opacity:.2; background:linear-gradient(0deg,var(--set-tone,#b7cf57),transparent); }
.collection-card:hover { transform:translateY(-3px); border-color:var(--set-tone,#b7cf57); }
.collection-nuclear_wasteland { --set-tone:#c4e62d; }
.collection-signal_ghost { --set-tone:#8bd6dd; }
.collection-abyssal_salvage { --set-tone:#4a94ba; }
.collection-crownfall { --set-tone:#df8a48; }
.collection-top { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.collection-index { color:#747b68; font:600 .61rem var(--font-mono); letter-spacing:.1em; }
.collection-card h3,.profile-collection h3 { position:relative; z-index:1; margin:18px 0 5px; color:#e9ecd6; font:800 1.2rem var(--font-display); }
.collection-card p,.profile-collection p { position:relative; z-index:1; margin:0; color:#aeb3a4; font-size:.84rem; line-height:1.5; }
.collection-pieces,.profile-collection-pieces { position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:6px; margin:17px 0; }
.collection-piece,.profile-collection-pieces span { padding:5px 7px; border:1px solid rgba(235,238,211,.14); color:#777d74; font:600 .65rem var(--font-mono); text-transform:uppercase; }
.collection-piece i { display:inline-block; width:5px; height:5px; margin:0 5px 1px 0; background:currentColor; }
.collection-piece.owned,.profile-collection-pieces .owned { color:#d7e896; border-color:rgba(202,228,102,.45); }
.collection-piece.equipped,.profile-collection-pieces .equipped { color:#11160b; background:#d6ed76; }
.collection-effect,.profile-collection-effect { position:relative; z-index:1; color:#c7cdb1; font-size:.74rem; }
.collection-effect b { color:var(--set-tone,#d6ed76); letter-spacing:.06em; }
.collection-card.is-complete,.profile-collection.is-complete { border-color:color-mix(in srgb,var(--set-tone) 66%, transparent); }
.collection-card.is-active,.profile-collection.is-active { animation:vaultSeal 2.8s ease-in-out infinite; }
@keyframes vaultSeal { 50% { transform:translateY(-2px); } }
.profile-collections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.profile-collection { min-height:0; border-radius:14px; }
.profile-collection-status { display:block; color:var(--set-tone,#cce66b); }
@media (max-width:720px) { .collection-vault-head,.collection-grid,.profile-collections { grid-template-columns:1fr; } .collection-vault-head { align-items:start; gap:15px; } }
@media (prefers-reduced-motion: reduce) { .collection-card.is-active,.profile-collection.is-active { animation:none; } }

/* Global signatures are a quiet overlay, not a modal or interaction layer.
   Every surface stays clickable; opacity is intentionally kept low. */
body[class*="collection-active-"]::before, body[class*="collection-active-"]::after {
  content:""; position:fixed; z-index:0; pointer-events:none; opacity:.1;
}
body[class*="collection-active-"]::before { inset:0; }
body[class*="collection-active-"]::after { width:100vw; height:100vh; }
body.collection-active-nuclear_wasteland::before {
  background: repeating-linear-gradient(0deg, transparent 0 10px, rgba(199,232,45,.25) 11px 12px), radial-gradient(circle at 80% 18%, rgba(199,232,45,.3), transparent 28%);
  animation: signatureScan 7s linear infinite;
}
body.collection-active-nuclear_wasteland::after { border:20px solid rgba(199,232,45,.16); box-shadow:inset 0 0 0 2px rgba(199,232,45,.18); }
body.collection-active-signal_ghost::before {
  background: repeating-linear-gradient(90deg, transparent 0 17px, rgba(139,214,221,.22) 18px 19px);
  animation: signatureStatic 1.8s steps(4,end) infinite;
}
body.collection-active-signal_ghost::after { background:linear-gradient(112deg, transparent 30%, rgba(139,214,221,.2) 50%, transparent 70%); animation: signatureSweep 5s ease-in-out infinite; }
body.collection-active-abyssal_salvage::before { background:radial-gradient(ellipse at 50% 110%, rgba(55,142,187,.35), transparent 62%); animation: signatureDrift 9s ease-in-out infinite; }
body.collection-active-abyssal_salvage::after { border-radius:50%; border:1px solid rgba(92,196,212,.25); transform:scale(.72); animation: signaturePulse 5s ease-in-out infinite; }
body.collection-active-crownfall::before { background:radial-gradient(circle at 72% 8%, rgba(223,138,72,.32), transparent 24%), linear-gradient(120deg, transparent 52%, rgba(223,138,72,.12)); animation: signatureEmber 6s ease-in-out infinite; }
body.collection-active-crownfall::after { background:linear-gradient(130deg, transparent 46%, rgba(223,138,72,.2) 50%, transparent 54%); animation: signatureSweep 8s ease-in-out infinite reverse; }
@keyframes signatureScan { to { background-position:0 84px,0 0; } }
@keyframes signatureStatic { 50% { transform:translateX(8px); opacity:.06; } }
@keyframes signatureSweep { 50% { transform:translateX(8vw); opacity:.06; } }
@keyframes signatureDrift { 50% { transform:translateY(-16px) scale(1.04); } }
@keyframes signaturePulse { 50% { transform:scale(.85); opacity:.04; } }
@keyframes signatureEmber { 50% { transform:translate(-8px,10px); opacity:.06; } }
@media (prefers-reduced-motion: reduce) {
  body[class*="collection-active-"]::before, body[class*="collection-active-"]::after { animation:none !important; }
}

/* Operator locker: a graphite command console with archive-blue instrumentation. */
.locker-command { --kit-ink:#e7edf1; --kit-muted:#9caab5; --kit-line:rgba(153,183,201,.22); --kit-accent:#8bc9dc; --kit-accent-bright:#c0e8ef; --kit-alert:#f0b56a; margin:30px 0 42px; padding:clamp(20px,4vw,36px); border:1px solid var(--kit-line); border-radius:12px; background:linear-gradient(112deg,rgba(29,39,48,.96),rgba(16,23,30,.98) 48%,rgba(20,29,37,.98)); box-shadow:inset 0 1px rgba(232,247,250,.1),inset 0 0 0 1px rgba(3,8,12,.32),0 20px 46px rgba(4,9,13,.24); position:relative; overflow:hidden; }
.locker-command::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.4;background:linear-gradient(90deg,transparent 0 48%,rgba(156,201,213,.055) 48.15% 48.25%,transparent 48.4%),repeating-linear-gradient(0deg,transparent 0 30px,rgba(185,218,225,.025) 31px 32px)}
.locker-command>*{position:relative;z-index:1}
.locker-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; border-bottom:1px solid var(--kit-line); padding:0 0 20px; }
.locker-heading-actions{display:flex;align-items:flex-end;flex-direction:column;gap:10px}
.locker-collapse{border:1px solid rgba(139,201,220,.55);background:rgba(139,201,220,.08);color:var(--kit-accent-bright);padding:8px 11px;border-radius:2px;cursor:pointer;font:800 .62rem var(--font-mono);letter-spacing:.1em;transition:background .18s ease,color .18s ease,transform .18s ease}
.locker-collapse:hover,.locker-collapse:focus-visible{background:var(--kit-accent-bright);color:#14232c;transform:translateY(-1px)}.locker-collapse:focus-visible{outline:2px solid var(--kit-alert);outline-offset:3px}.locker-command.is-collapsed{padding-bottom:20px}.locker-command.is-collapsed .locker-heading{border-bottom:0;padding-bottom:0}
#operatorKitBody[hidden]{display:none}
.reward-reveal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;background:rgba(3,6,5,.86);backdrop-filter:blur(12px);animation:rewardVeilIn .28s ease-out}
.reward-reveal-card{position:relative;width:min(560px,100%);padding:clamp(26px,5vw,46px);overflow:hidden;text-align:center;border:1px solid rgba(202,228,102,.5);border-radius:16px;background:radial-gradient(circle at 50% 0,rgba(202,228,102,.15),transparent 42%),linear-gradient(145deg,#1e2518,#090d0a 68%);box-shadow:0 28px 90px rgba(0,0,0,.65),inset 0 1px rgba(255,255,255,.1);animation:rewardCardIn .45s cubic-bezier(.2,.85,.3,1.2)}
.reward-reveal-card::before{content:"";position:absolute;inset:-70% -20%;pointer-events:none;background:linear-gradient(105deg,transparent 38%,rgba(228,255,151,.12) 48%,transparent 58%);animation:rewardSweep 2s ease-in-out infinite}
.reward-reveal-card>*{position:relative;z-index:1}.reward-reveal-kicker{color:#cce66b;font:800 .64rem var(--font-mono);letter-spacing:.2em}.reward-reveal-art{display:grid;place-items:center;min-height:118px;margin:20px 0 14px;border-block:1px solid rgba(202,228,102,.16);background:rgba(0,0,0,.2);font-size:clamp(1.15rem,4vw,1.75rem)}
.reward-reveal-card h2{margin:0;color:#f1f5dc;font:900 clamp(1.8rem,5vw,3rem)/1 var(--font-display)}.reward-reveal-card>p{margin:12px auto 20px;color:#aeb3a4;max-width:42ch}
.reward-reveal-route{display:grid;gap:7px;padding:13px;border:1px solid rgba(202,228,102,.25);background:rgba(202,228,102,.06);text-align:left}.reward-reveal-route b{color:#cce66b;font:800 .61rem var(--font-mono);letter-spacing:.16em}.reward-reveal-route span{color:#e9ecd6;font-size:.84rem}.reward-reveal-route i{color:#cce66b;font-style:normal;margin:0 5px}
.reward-reveal-close{width:100%;margin-top:18px;padding:12px;border:1px solid #cce66b;border-radius:4px;background:#cce66b;color:#11160b;cursor:pointer;font:900 .7rem var(--font-mono);letter-spacing:.12em}.reward-reveal-close:disabled{border-color:rgba(202,228,102,.24);background:rgba(202,228,102,.08);color:#7e876b;cursor:wait}
@keyframes rewardVeilIn{from{opacity:0}}@keyframes rewardCardIn{from{opacity:0;transform:translateY(18px) scale(.96)}}@keyframes rewardSweep{from{transform:translateX(-36%)}to{transform:translateX(36%)}}
@media(prefers-reduced-motion:reduce){.reward-reveal,.reward-reveal-card,.reward-reveal-card::before{animation:none}}
.locker-heading h2 { margin:8px 0 5px; font:800 clamp(1.7rem,4vw,2.8rem)/1 var(--font-display);color:var(--kit-ink) }.locker-heading h2 .grad-text{background:none;-webkit-text-fill-color:var(--kit-accent-bright);color:var(--kit-accent-bright)}
.locker-heading p,.locker-copy { color:var(--kit-muted); font-size:.88rem; max-width:54ch; margin:0; }.locker-command .eyebrow{color:var(--kit-alert)}
.locker-signal { color:var(--kit-accent-bright); font:700 .63rem var(--font-mono); letter-spacing:.13em; white-space:nowrap; }.locker-signal span { display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--kit-accent);box-shadow:0 0 0 3px rgba(139,201,220,.12); margin-right:6px; }
.locker-msg { min-height:24px; color:var(--kit-accent-bright); font:600 .76rem var(--font-mono); padding-top:12px; }.locker-msg.is-bad,.locker-empty.is-error { color:#ef967b; }
.locker-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:8px; }.locker-column { padding:20px; min-width:0; border:1px solid rgba(163,194,207,.16); background:linear-gradient(145deg,rgba(49,65,75,.34),rgba(12,18,24,.6)); }.locker-kicker { color:#8da8b5; font:700 .63rem var(--font-mono); letter-spacing:.16em; }.locker-column h3 { margin:7px 0 3px; font:800 1.16rem var(--font-display); color:var(--kit-ink); }
.locker-loadouts { grid-row:span 2; }.loadout-list,.contract-list,.mastery-list { display:grid; gap:8px; margin-top:16px; }.loadout-row { display:grid; grid-template-columns:1fr auto auto; gap:8px; align-items:center; padding:10px; background:rgba(180,129,73,.07); border:1px solid rgba(226,178,112,.18); }.loadout-row b,.contract-top b,.mastery-row b { display:block;color:var(--kit-ink);font-size:.82rem; }.loadout-row small,.mastery-row small,.contract-row small { color:var(--kit-muted);font-size:.7rem;display:block;margin-top:3px; }.locker-btn,.locker-icon { border:1px solid rgba(139,201,220,.45); background:rgba(139,201,220,.08); color:var(--kit-accent-bright); padding:7px 10px; border-radius:2px; cursor:pointer; font:700 .65rem var(--font-mono); text-transform:uppercase;transition:background .18s ease,color .18s ease; }.locker-btn:hover,.locker-icon:hover { background:var(--kit-accent-bright);color:#14232c; }.locker-btn.primary { background:var(--kit-accent);color:#102029;border-color:var(--kit-accent); }.locker-icon { padding:5px 9px;font-size:1rem; }.loadout-form,.share-url { display:flex; gap:8px; margin-top:12px; }.loadout-form input,.locker-showcase input,.locker-showcase select { flex:1; min-width:0; background:rgba(7,13,18,.74);border:1px solid rgba(163,194,207,.26);color:var(--kit-ink);padding:9px 10px;border-radius:2px; font: .78rem var(--font-body); }.contract-row { position:relative;padding:10px;border:1px solid rgba(163,194,207,.15); }.contract-top { display:flex;justify-content:space-between;gap:8px; }.contract-top span { color:var(--kit-muted);font:700 .62rem var(--font-mono); }.contract-row.complete { border-color:rgba(139,201,220,.52); }.contract-row.complete .contract-top span { color:var(--kit-accent-bright); }.contract-bar,.mastery-bar { height:5px;background:#101a21;margin:9px 0 5px;overflow:hidden; }.contract-bar i,.mastery-bar i { display:block;height:100%;background:var(--kit-accent); }.contract-row .locker-btn { margin-top:8px; }.mastery-row { padding:10px;border-bottom:1px solid rgba(163,194,207,.12); }.mastery-row > div:first-child { display:flex;justify-content:space-between;gap:8px; }.mastery-row span { color:var(--kit-accent);font:700 .61rem var(--font-mono); }.mastery-bar i { background:var(--kit-alert); }.locker-showcase { grid-column:1 / -1; }.locker-showcase form { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px; }.switchline { grid-column:1/-1;color:#c6d0d6;font-size:.78rem;display:flex;gap:8px;align-items:center; }.share-url { align-items:center;justify-content:space-between;color:var(--kit-accent);font: .7rem var(--font-mono);word-break:break-all; }.locker-reactive { grid-column:1/-1; }.reactive-options { display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:15px; }.reactive-options button { text-align:left;padding:12px;background:rgba(8,14,20,.72);border:1px solid rgba(163,194,207,.18);color:var(--kit-muted);cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease; }.reactive-options button:hover,.reactive-options button.selected { border-color:var(--kit-accent);background:rgba(139,201,220,.12);color:var(--kit-ink); }.reactive-options b,.reactive-options small { display:block;font-family:var(--font-mono); }.reactive-options b { font-size:.7rem; }.reactive-options small { margin-top:4px;font-size:.62rem; }.locker-empty { color:var(--kit-muted);font-size:.78rem;padding:15px 0; }.locker-skeleton { height:170px;background:linear-gradient(90deg,rgba(139,201,220,.035),rgba(190,228,235,.12),rgba(139,201,220,.035));background-size:200% 100%;animation:lockerShimmer 1.5s infinite; }.reactive-subtle body { } body.reactive-subtle[class*="collection-active-"]::before { opacity:.16; } body.reactive-full[class*="collection-active-"]::before,body.reactive-full[class*="collection-active-"]::after { opacity:.25; } body.reactive-pulse .locker-command { animation:telemetryPulse .55s ease-out; } @keyframes lockerShimmer { to{background-position:-200% 0} } @keyframes telemetryPulse { 50%{transform:translateY(-2px)} }
@media(max-width:720px){.locker-heading{display:block}.locker-heading-actions{align-items:flex-start;margin-top:15px}.locker-grid{grid-template-columns:1fr}.locker-loadouts{grid-row:auto}.locker-showcase,.locker-reactive{grid-column:auto}.locker-showcase form{grid-template-columns:1fr}.reactive-options{grid-template-columns:1fr}.loadout-form,.share-url{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.locker-skeleton{animation:none}.locker-command,.reactive-options button{transition:none}body.reactive-pulse .locker-command{animation:none}}
.showcase-page{padding:clamp(55px,9vw,110px) 0;min-height:75vh}.showcase-state{text-align:center;max-width:680px;margin:0 auto;padding:40px 20px}.showcase-state h1,.showcase-hero h1{font:900 clamp(2.3rem,6vw,5rem)/1 var(--font-display);margin:15px 0;color:#e9ecd6}.showcase-state p,.showcase-hero p{color:#aeb3a4}.showcase-state.is-error{border:1px solid rgba(255,138,108,.35);background:rgba(38,19,14,.45)}.showcase-hero{padding:34px 0 42px;border-bottom:1px solid rgba(215,230,145,.16)}.showcase-vault,.showcase-mastery{margin-top:34px;padding:clamp(20px,4vw,34px);background:rgba(8,12,9,.56);border:1px solid rgba(235,238,211,.14)}.showcase-section-head h2,.showcase-feature h2,.showcase-mastery h2{font:800 clamp(1.5rem,3vw,2.3rem) var(--font-display);margin:8px 0;color:#e9ecd6}.showcase-cosmetics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.showcase-artifact{min-height:130px;padding:18px;border:1px solid rgba(202,228,102,.3);background:linear-gradient(145deg,rgba(202,228,102,.09),rgba(17,23,15,.8));position:relative}.showcase-artifact span,.showcase-artifact small{font:700 .62rem var(--font-mono);letter-spacing:.12em;color:#c7df58}.showcase-artifact h3{margin:20px 0 6px;color:#e9ecd6;font:800 1.1rem var(--font-display)}.showcase-feature{margin-top:20px;padding:22px;border-left:3px solid #c7df58;background:rgba(199,223,88,.08)}.showcase-mastery{max-width:650px}.showcase-mastery .mastery-list{margin-top:15px}@media(max-width:680px){.showcase-cosmetics{grid-template-columns:1fr}}

/* Wipe Archive nameplates — field trophies rendered as compact instrument
   labels. The colored fill remains legible at live-feed scale; movement is
   isolated to the two insignia so every animation stays compositor-friendly. */
.name-theme-rustborn_nomad,.name-theme-monument_zero,.name-theme-oil_rig_overlord,.name-theme-cargo_after_dark,.name-theme-launch_site_protocol,.name-theme-outpost_renegade,.name-theme-arctic_research,.name-theme-junkyard_king,.name-theme-primitive_survivor,.name-theme-heavy_scientist,.name-theme-bradleys_revenge,.name-theme-last_day_wipe{
  --plate-ink:#f4ead1;--plate-edge:#16120d;--plate-glow:rgba(255,211,120,.44);--plate-sweep:linear-gradient(90deg,transparent,rgba(255,255,255,.85),transparent);
  display:inline-flex;align-items:center;gap:.22em;isolation:isolate;white-space:nowrap;
  font-weight:950;letter-spacing:.045em;text-transform:uppercase;line-height:1.15;
  color:var(--plate-ink);background:var(--plate-fill);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;-webkit-text-stroke:.018em var(--plate-edge);
  text-shadow:0 .08em .08em var(--plate-edge),0 0 .48em var(--plate-glow);
}
.name-theme-rustborn_nomad::before,.name-theme-monument_zero::before,.name-theme-oil_rig_overlord::before,.name-theme-cargo_after_dark::before,.name-theme-launch_site_protocol::before,.name-theme-outpost_renegade::before,.name-theme-arctic_research::before,.name-theme-junkyard_king::before,.name-theme-primitive_survivor::before,.name-theme-heavy_scientist::before,.name-theme-bradleys_revenge::before,.name-theme-last_day_wipe::before,
.name-theme-rustborn_nomad::after,.name-theme-monument_zero::after,.name-theme-oil_rig_overlord::after,.name-theme-cargo_after_dark::after,.name-theme-launch_site_protocol::after,.name-theme-outpost_renegade::after,.name-theme-arctic_research::after,.name-theme-junkyard_king::after,.name-theme-primitive_survivor::after,.name-theme-heavy_scientist::after,.name-theme-bradleys_revenge::after,.name-theme-last_day_wipe::after{
  display:inline-grid;place-items:center;flex:0 0 auto;width:1.28em;height:1.28em;box-sizing:border-box;
  color:var(--plate-ink);background:var(--plate-badge);border:.1em solid color-mix(in srgb,var(--plate-ink) 70%,var(--plate-edge));
  box-shadow:inset 0 0 0 .08em rgba(0,0,0,.22),0 0 .42em var(--plate-glow);
  font:900 .46em/1 var(--font-mono);letter-spacing:0;-webkit-text-fill-color:currentColor;
}
.name-theme-rustborn_nomad::before,.name-theme-monument_zero::before,.name-theme-oil_rig_overlord::before,.name-theme-cargo_after_dark::before,.name-theme-launch_site_protocol::before,.name-theme-outpost_renegade::before,.name-theme-arctic_research::before,.name-theme-junkyard_king::before,.name-theme-primitive_survivor::before,.name-theme-heavy_scientist::before,.name-theme-bradleys_revenge::before,.name-theme-last_day_wipe::before{content:var(--plate-left);animation:plateBadgeDrift var(--plate-speed,2.8s) ease-in-out infinite}
.name-theme-rustborn_nomad::after,.name-theme-monument_zero::after,.name-theme-oil_rig_overlord::after,.name-theme-cargo_after_dark::after,.name-theme-launch_site_protocol::after,.name-theme-outpost_renegade::after,.name-theme-arctic_research::after,.name-theme-junkyard_king::after,.name-theme-primitive_survivor::after,.name-theme-heavy_scientist::after,.name-theme-bradleys_revenge::after,.name-theme-last_day_wipe::after{content:var(--plate-right);background-image:var(--plate-sweep),var(--plate-badge);background-size:180% 100%,100% 100%;animation:plateSweep var(--plate-speed,2.8s) ease-in-out infinite}
@keyframes plateBadgeDrift{50%{transform:translateY(-.11em) scale(1.08);opacity:.82}}@keyframes plateSweep{0%,100%{transform:translateX(0)}50%{transform:translateX(.08em) scale(1.07);opacity:.9}}

/* Nomad: sun-bleached canvas, dust-map compass and trail tick. */
.name-theme-rustborn_nomad{--plate-ink:#f7dda4;--plate-edge:#1e232b;--plate-glow:rgba(238,196,110,.48);--plate-fill:linear-gradient(105deg,#b98f36,#f8e4b0 36%,#d9ae55 62%,#f3d58b);--plate-badge:repeating-linear-gradient(135deg,#39414d 0 2px,#d3ab5e 2px 4px);--plate-left:"N";--plate-right:"•";--plate-speed:3.2s}.name-theme-rustborn_nomad::before{border-radius:50%;outline:.06em solid #d9a452;outline-offset:-.28em}
/* Monument: lead glass, containment stripes and a radiation seal. */
.name-theme-monument_zero{--plate-ink:#e4f58a;--plate-edge:#17200b;--plate-glow:rgba(193,239,65,.62);--plate-fill:linear-gradient(90deg,#7f9b25,#effc9c 43%,#9db83a 69%,#d9ed72);--plate-badge:repeating-linear-gradient(135deg,#24300d 0 3px,#a8ca35 3px 6px);--plate-left:"☢";--plate-right:"0";--plate-speed:1.65s}.name-theme-monument_zero::after{border-radius:50%}
/* Oil rig: wet deck steel, cold beacon and ocean horizon. */
.name-theme-oil_rig_overlord{--plate-ink:#b6e9e2;--plate-edge:#062d35;--plate-glow:rgba(83,196,203,.55);--plate-fill:linear-gradient(100deg,#4e8586,#d4faf0 42%,#609fa0 67%,#a4d5ca);--plate-badge:linear-gradient(180deg,#bceee8 0 25%,#174a53 28% 62%,#071f2a 64%);--plate-left:"R";--plate-right:"≋";--plate-speed:3.6s}.name-theme-oil_rig_overlord::before{border-radius:2px}
/* Cargo: midnight hull paint crossed by a live red flare. */
.name-theme-cargo_after_dark{--plate-ink:#ffb17c;--plate-edge:#280e16;--plate-glow:rgba(255,70,44,.66);--plate-fill:linear-gradient(110deg,#8d2d2d,#ffd0a0 43%,#e55338 66%,#f49a63);--plate-badge:radial-gradient(circle,#fff1bd 0 13%,#ff633d 17% 35%,#50141c 67%);--plate-left:"C";--plate-right:"+";--plate-speed:1.9s}.name-theme-cargo_after_dark::after{border-radius:50%}
/* Launch: bunker alloy, alert red and hard-edged hazard chevrons. */
.name-theme-launch_site_protocol{--plate-ink:#ffd17a;--plate-edge:#37100d;--plate-glow:rgba(255,70,39,.72);--plate-fill:linear-gradient(100deg,#a4261c,#ffe0a1 41%,#f04d30 62%,#ffac55);--plate-badge:repeating-linear-gradient(135deg,#39100d 0 3px,#ff6843 3px 6px,#f7ba4c 6px 9px);--plate-left:"!";--plate-right:"//";--plate-speed:1.25s}.name-theme-launch_site_protocol::before{border-radius:50%}
/* Outpost: hand-painted market tin with a contraband stamp. */
.name-theme-outpost_renegade{--plate-ink:#ffe08a;--plate-edge:#41220d;--plate-glow:rgba(245,169,49,.51);--plate-fill:linear-gradient(105deg,#a65c23,#ffe39a 42%,#d18a33 67%,#f6c65e);--plate-badge:repeating-linear-gradient(0deg,#814015 0 2px,#c9852d 2px 4px);--plate-left:"$";--plate-right:"X";--plate-speed:2.35s}.name-theme-outpost_renegade::before{transform:rotate(-7deg)}
/* Arctic: translucent frost, iced telemetry and polar instrument marks. */
.name-theme-arctic_research{--plate-ink:#d9fbff;--plate-edge:#0d3543;--plate-glow:rgba(164,240,255,.68);--plate-fill:linear-gradient(100deg,#69aebc,#edffff 40%,#9edce3 66%,#c8f5f4);--plate-badge:repeating-linear-gradient(90deg,#2f7480 0 2px,#b8edf0 2px 4px);--plate-left:"Δ";--plate-right:"∶";--plate-speed:3.1s}.name-theme-arctic_research::after{border-radius:50%}
/* Junkyard: welded brass, crown notch and blue-hot spark. */
.name-theme-junkyard_king{--plate-ink:#ffc36c;--plate-edge:#1d2128;--plate-glow:rgba(255,123,39,.57);--plate-fill:linear-gradient(105deg,#e2701c,#ffd37a 40%,#f08a2a 66%,#f0a449);--plate-badge:repeating-linear-gradient(135deg,#333b45 0 2px,#e07a2c 2px 5px,#f3b455 5px 6px);--plate-left:"♜";--plate-right:"*";--plate-speed:1.55s}.name-theme-junkyard_king::before{clip-path:polygon(0 100%,0 20%,28% 48%,50% 0,72% 48%,100% 20%,100% 100%)}
/* Primitive: charred woodgrain, amber ember and a survival totem. */
.name-theme-primitive_survivor{--plate-ink:#ffd28a;--plate-edge:#22252b;--plate-glow:rgba(245,107,37,.54);--plate-fill:linear-gradient(105deg,#e4642a,#ffe8c0 43%,#f08540 64%,#f5bd6d);--plate-badge:repeating-linear-gradient(90deg,#2b3038 0 2px,#e2743a 2px 4px,#f6b877 4px 5px);--plate-left:"Y";--plate-right:"^";--plate-speed:2.15s}.name-theme-primitive_survivor::before{border-radius:50% 50% 42% 42%}
/* Heavy scientist: armored hazmat plating beneath a green scan readout. */
.name-theme-heavy_scientist{--plate-ink:#e7fa91;--plate-edge:#1b2811;--plate-glow:rgba(203,247,74,.63);--plate-fill:linear-gradient(100deg,#788d32,#f2ffa5 42%,#9cb643 65%,#d5e771);--plate-badge:repeating-linear-gradient(0deg,#263517 0 2px,#7da23b 2px 4px);--plate-left:"H";--plate-right:"+";--plate-speed:1.7s}.name-theme-heavy_scientist::before{border-radius:50%;box-shadow:inset 0 0 0 .22em #1e3118,0 0 .42em var(--plate-glow)}
/* Bradley: heat-stained armor, sight mark and recurring muzzle flash. */
.name-theme-bradleys_revenge{--plate-ink:#f4bd71;--plate-edge:#29281c;--plate-glow:rgba(255,148,51,.58);--plate-fill:linear-gradient(100deg,#766849,#ffe0a2 41%,#aa7341 65%,#df9b50);--plate-badge:repeating-linear-gradient(135deg,#2f3024 0 3px,#766747 3px 6px);--plate-left:"B";--plate-right:"✦";--plate-speed:2.65s}.name-theme-bradleys_revenge::after{border-radius:50%;background-image:radial-gradient(circle,#fff5b5 0 13%,#ff9a38 18% 39%,transparent 64%),var(--plate-badge)}
/* Last day: oxidized sunset, countdown glyph and a clean reset flash. */
.name-theme-last_day_wipe{--plate-ink:#ffe19a;--plate-edge:#481710;--plate-glow:rgba(255,86,44,.68);--plate-fill:linear-gradient(105deg,#a62d20,#ffecac 43%,#f16135 65%,#f1a44d);--plate-badge:linear-gradient(180deg,#ffcf67 0 45%,#bd3a25 48% 56%,#381610 59%);--plate-left:"01";--plate-right:"↺";--plate-speed:2.05s}.name-theme-last_day_wipe::after{border-radius:50%}
@media (prefers-reduced-motion:reduce){
  .name-theme-rustborn_nomad::before,.name-theme-monument_zero::before,.name-theme-oil_rig_overlord::before,.name-theme-cargo_after_dark::before,.name-theme-launch_site_protocol::before,.name-theme-outpost_renegade::before,.name-theme-arctic_research::before,.name-theme-junkyard_king::before,.name-theme-primitive_survivor::before,.name-theme-heavy_scientist::before,.name-theme-bradleys_revenge::before,.name-theme-last_day_wipe::before,
  .name-theme-rustborn_nomad::after,.name-theme-monument_zero::after,.name-theme-oil_rig_overlord::after,.name-theme-cargo_after_dark::after,.name-theme-launch_site_protocol::after,.name-theme-outpost_renegade::after,.name-theme-arctic_research::after,.name-theme-junkyard_king::after,.name-theme-primitive_survivor::after,.name-theme-heavy_scientist::after,.name-theme-bradleys_revenge::after,.name-theme-last_day_wipe::after{animation:none!important;transform:none}
}

body.panel-nomad_camp,.pnl-nomad_camp { --bg:#14171c;--bg-2:#222833;--surface:rgba(226,192,121,.09);--border:rgba(226,192,121,.25);--grad:linear-gradient(115deg,#c2a05a,#f0dcae,#5d6672);--cyan:#e8c67e; }
body.panel-zero_reactor,.pnl-zero_reactor { --bg:#11160e;--bg-2:#202a13;--surface:rgba(186,220,62,.075);--border:rgba(191,220,77,.27);--grad:linear-gradient(115deg,#3e5520,#c2d84e,#526e2f);--cyan:#d8ef83; }
body.panel-rig_blackwater,.pnl-rig_blackwater { --bg:#08191c;--bg-2:#102b2d;--surface:rgba(93,171,165,.08);--border:rgba(117,190,181,.25);--grad:linear-gradient(115deg,#123f45,#78b8a9,#1a5961);--cyan:#a9d8ce; }
body.panel-cargo_midnight,.pnl-cargo_midnight { --bg:#180d11;--bg-2:#30141b;--surface:rgba(209,84,59,.08);--border:rgba(218,96,66,.27);--grad:linear-gradient(115deg,#43171d,#d46043,#603024);--cyan:#e99a68; }
body.panel-launch_lockdown,.pnl-launch_lockdown { --bg:#21100d;--bg-2:#3b1711;--surface:rgba(255,75,43,.08);--border:rgba(255,99,70,.3);--grad:linear-gradient(115deg,#711b16,#ff5a3d,#6c2d1b);--cyan:#ffb05a; }
body.panel-outpost_blackmarket,.pnl-outpost_blackmarket { --bg:#1b1610;--bg-2:#352613;--surface:rgba(242,177,67,.08);--border:rgba(238,181,76,.28);--grad:linear-gradient(115deg,#65401e,#e6aa42,#3e3521);--cyan:#f2c76d; }
body.panel-arctic_lab,.pnl-arctic_lab { --bg:#0c1c23;--bg-2:#13333d;--surface:rgba(168,220,230,.08);--border:rgba(180,229,236,.29);--grad:linear-gradient(115deg,#23616d,#b7e2e7,#427d87);--cyan:#dcf6f4; }
body.panel-junkyard_throne,.pnl-junkyard_throne { --bg:#171a20;--bg-2:#272d37;--surface:rgba(226,132,47,.08);--border:rgba(226,132,47,.3);--grad:linear-gradient(115deg,#d9782e,#f6a860,#5a6472);--cyan:#efae63; }
body.panel-primitive_embers,.pnl-primitive_embers { --bg:#16161b;--bg-2:#2a2a33;--surface:rgba(236,158,81,.08);--border:rgba(239,174,99,.28);--grad:linear-gradient(115deg,#e25a29,#f7a95f,#4f4a55);--cyan:#f3c371; }
body.panel-scientist_quarantine,.pnl-scientist_quarantine { --bg:#172012;--bg-2:#293617;--surface:rgba(201,220,85,.075);--border:rgba(210,225,106,.29);--grad:linear-gradient(115deg,#556d26,#c8dc58,#49612a);--cyan:#e0ed91; }
body.panel-bradley_siege,.pnl-bradley_siege { --bg:#1d1c16;--bg-2:#343126;--surface:rgba(190,119,68,.08);--border:rgba(201,137,83,.28);--grad:linear-gradient(115deg,#494331,#bd7141,#6a5030);--cyan:#e0a269; }
body.panel-wipe_sunset,.pnl-wipe_sunset { --bg:#25120f;--bg-2:#461914;--surface:rgba(248,110,62,.08);--border:rgba(247,129,78,.3);--grad:linear-gradient(115deg,#802719,#f27645,#d69a46);--cyan:#ffc06b; }
.sw-nomad_camp{background:linear-gradient(120deg,#14171c,#e3c079,#222833)} .sw-zero_reactor{background:linear-gradient(120deg,#11160e,#c2d84e,#202a13)} .sw-rig_blackwater{background:linear-gradient(120deg,#08191c,#78b8a9,#102b2d)} .sw-cargo_midnight{background:linear-gradient(120deg,#180d11,#d46043,#30141b)} .sw-launch_lockdown{background:linear-gradient(120deg,#21100d,#ff5a3d,#3b1711)} .sw-outpost_blackmarket{background:linear-gradient(120deg,#1b1610,#e6aa42,#352613)} .sw-arctic_lab{background:linear-gradient(120deg,#0c1c23,#b7e2e7,#13333d)} .sw-junkyard_throne{background:linear-gradient(120deg,#171a20,#e2842f,#272d37)} .sw-primitive_embers{background:linear-gradient(120deg,#16161b,#ef8f47,#2a2a33)} .sw-scientist_quarantine{background:linear-gradient(120deg,#172012,#c8dc58,#293617)} .sw-bradley_siege{background:linear-gradient(120deg,#1d1c16,#bd7141,#343126)} .sw-wipe_sunset{background:linear-gradient(120deg,#25120f,#f27645,#461914)}
/* Wipe Archive entrance FX — compact neon-industrial micro-scenes. Effects
   stay behind live-feed copy, use only paint-once gradients and transform /
   opacity motion, and scale from the ticker to a full market preview. */
.titem[class*="winfx-fx_"],.rw-row[class*="winfx-fx_"],.fx-demo[class*="winfx-fx_"],.sto-feed-row[class*="winfx-fx_"]{position:relative;isolation:isolate;overflow:hidden;border-radius:10px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.titem[class*="winfx-fx_"]>*,.rw-row[class*="winfx-fx_"]>*,.fx-demo[class*="winfx-fx_"]>*,.sto-feed-row[class*="winfx-fx_"]>*{position:relative;z-index:2}
.titem[class*="winfx-fx_"]::before,.titem[class*="winfx-fx_"]::after,.rw-row[class*="winfx-fx_"]::before,.rw-row[class*="winfx-fx_"]::after,.fx-demo[class*="winfx-fx_"]::before,.fx-demo[class*="winfx-fx_"]::after,.sto-feed-row[class*="winfx-fx_"]::before,.sto-feed-row[class*="winfx-fx_"]::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none}
.fx-mark{display:inline-grid;place-items:center;width:1.75em;height:1.75em;margin:-.2em .42em -.2em 0;border:1px solid currentColor;border-radius:3px;color:#eaf2dc;background:#11160e;font:800 .62em/1 var(--font-mono);letter-spacing:-.08em;vertical-align:middle;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.fx-mark-fx_nomad_dust{color:#e5ad5b}.fx-mark-fx_zero_siren,.fx-mark-fx_scientist_scan{color:#d9f05d}.fx-mark-fx_rig_flood{color:#b9ebee}.fx-mark-fx_cargo_flare,.fx-mark-fx_launch_alarm,.fx-mark-fx_wipe_countdown{color:#ff7955}.fx-mark-fx_outpost_stampede,.fx-mark-fx_junkyard_sparks,.fx-mark-fx_bradley_barrage{color:#f0aa55}.fx-mark-fx_arctic_whiteout{color:#d8fbff}.fx-mark-fx_primitive_smoke{color:#f2ba6d}

/* Nomad Dust: low road grit and wind-driven ochre wake. */
.winfx-fx_nomad_dust{background:linear-gradient(90deg,rgba(47,28,15,.88),rgba(139,81,32,.35) 54%,rgba(25,18,13,.5))}.winfx-fx_nomad_dust::before{background:repeating-linear-gradient(164deg,transparent 0 10px,rgba(242,177,87,.32) 11px 13px,transparent 14px 24px);mask-image:linear-gradient(90deg,transparent,black 22%,transparent 86%);animation:fxNomadTrail 2.2s linear infinite}.winfx-fx_nomad_dust::after{inset:22% -24%;background:linear-gradient(100deg,transparent 15%,rgba(255,207,125,.35) 44%,transparent 62%);filter:blur(5px);animation:fxNomadGust 2.2s ease-in-out infinite}
@keyframes fxNomadTrail{from{background-position:0 0}to{background-position:24px 0}}@keyframes fxNomadGust{from{transform:translateX(-36%);opacity:0}30%,70%{opacity:1}to{transform:translateX(42%);opacity:0}}

/* Zero Siren: containment lens rotates a toxic lime hazard sweep. */
.winfx-fx_zero_siren{background:radial-gradient(circle at 18px 50%,rgba(222,255,80,.34) 0 4px,transparent 5px),linear-gradient(90deg,#16200d,rgba(99,127,20,.34),#11170c)}.winfx-fx_zero_siren::before{left:-35%;right:auto;width:70%;background:conic-gradient(from 0deg,transparent 0 42%,rgba(211,255,58,.42) 47% 53%,transparent 58%);transform-origin:100% 50%;animation:fxSirenSpin 2.1s linear infinite}.winfx-fx_zero_siren::after{background:repeating-linear-gradient(90deg,rgba(223,255,93,.12) 0 2px,transparent 2px 14px);mask-image:linear-gradient(90deg,black,transparent 75%);animation:fxWarningPulse 1.4s ease-in-out infinite}
@keyframes fxSirenSpin{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes fxWarningPulse{0%,100%{opacity:.82}50%{opacity:.35}}

/* Rig Floodlights: two cold deck beams cross over oil-black water. */
.winfx-fx_rig_flood{background:linear-gradient(180deg,rgba(9,28,35,.98),rgba(11,49,58,.76) 58%,rgba(5,18,25,.94))}.winfx-fx_rig_flood::before{background:linear-gradient(121deg,transparent 38%,rgba(180,247,247,.37) 48%,transparent 58%),linear-gradient(55deg,transparent 39%,rgba(102,203,216,.27) 49%,transparent 59%);animation:fxRigCross 3s ease-in-out infinite}.winfx-fx_rig_flood::after{top:auto;height:38%;background:repeating-linear-gradient(0deg,rgba(152,235,236,.21) 0 1px,transparent 2px 7px);opacity:.65;animation:fxWaterShimmer 2.2s ease-in-out infinite}
@keyframes fxRigCross{50%{transform:translateX(12px)}}@keyframes fxWaterShimmer{50%{transform:translateY(3px);opacity:.28}}

/* Cargo Flare: signal flare burns across a night-water smoke trail. */
.winfx-fx_cargo_flare{background:linear-gradient(90deg,#160d14,rgba(104,21,23,.72) 48%,#071820)}.winfx-fx_cargo_flare::before{inset:-50% auto -50% 9%;width:22%;background:radial-gradient(circle,rgba(255,244,186,.95) 0 4%,rgba(255,71,43,.88) 10%,rgba(198,31,22,.2) 31%,transparent 61%);animation:fxFlareBurn 1.25s ease-in-out infinite}.winfx-fx_cargo_flare::after{background:linear-gradient(12deg,transparent 25%,rgba(172,181,177,.19) 42%,rgba(104,113,117,.08) 57%,transparent 73%);animation:fxSmokeTrail 3s ease-out infinite}
@keyframes fxFlareBurn{50%{transform:scale(1.18);opacity:.75}}@keyframes fxSmokeTrail{from{transform:translateX(-18%);opacity:0}30%{opacity:1}to{transform:translateX(36%);opacity:0}}

/* Launch Alarm: bunker red strobe, hazard shutters, scanning lockline. */
.winfx-fx_launch_alarm{background:repeating-linear-gradient(135deg,rgba(255,93,53,.21) 0 8px,rgba(48,13,11,.56) 8px 16px),#210e0c}.winfx-fx_launch_alarm::before{background:linear-gradient(90deg,transparent 0 28%,rgba(255,92,58,.52) 47%,transparent 67%);animation:fxLockScan 1.75s ease-in-out infinite}.winfx-fx_launch_alarm::after{inset:0 auto 0 -28%;width:18%;background:#ff6545;opacity:.28;transform:skewX(-18deg);animation:fxAlarmStrobe 1.15s ease-in-out infinite}
@keyframes fxLockScan{0%{transform:translateX(-65%);opacity:0}12%,86%{opacity:1}100%{transform:translateX(135%);opacity:0}}@keyframes fxAlarmStrobe{0%,100%{opacity:.28}50%{opacity:.05}}

/* Outpost Stampede: amber rush cuts past a flickering market sign. */
.winfx-fx_outpost_stampede{background:linear-gradient(90deg,#2d1c0d,rgba(125,70,21,.62),#21170d)}.winfx-fx_outpost_stampede::before{background:repeating-linear-gradient(168deg,transparent 0 8px,rgba(246,180,72,.39) 9px 11px,transparent 12px 20px);mask-image:linear-gradient(90deg,black,transparent 92%);animation:fxStampedeRush 1.15s linear infinite}.winfx-fx_outpost_stampede::after{left:auto;right:8%;width:18px;background:repeating-linear-gradient(0deg,#f7bd54 0 3px,#69380e 3px 6px);box-shadow:0 0 14px rgba(248,183,67,.5);animation:fxSignFlicker 1.8s ease-in-out infinite}
@keyframes fxStampedeRush{from{background-position:0 0}to{background-position:20px 0}}@keyframes fxSignFlicker{0%,100%{opacity:.86}50%{opacity:.2}}

/* Arctic Whiteout: angled snow thickens, frosts the rim, then clears. */
.winfx-fx_arctic_whiteout{background:linear-gradient(90deg,#123441,rgba(160,221,230,.28),#17333d)}.winfx-fx_arctic_whiteout::before{background:repeating-linear-gradient(125deg,transparent 0 9px,rgba(237,255,255,.72) 10px 12px,transparent 13px 21px);animation:fxWhiteoutSnow 1.5s linear infinite}.winfx-fx_arctic_whiteout::after{background:radial-gradient(ellipse at 50% 50%,rgba(242,255,255,.78),rgba(184,238,244,.18) 48%,transparent 74%);animation:fxWhiteoutVeil 3.6s ease-in-out infinite}
@keyframes fxWhiteoutSnow{from{transform:translate(0,0)}to{transform:translate(17.2px,12px)}}@keyframes fxWhiteoutVeil{0%,100%{opacity:0}38%,68%{opacity:.84}}

/* Junkyard Sparks: blue welding arc blooms, hot sparks shower and fade. */
.winfx-fx_junkyard_sparks{background:linear-gradient(90deg,#182c36,rgba(37,67,81,.82),#1c1712)}.winfx-fx_junkyard_sparks::before{left:8%;right:auto;width:20%;background:radial-gradient(circle,rgba(221,253,255,.96) 0 5%,rgba(73,184,231,.72) 15%,transparent 48%);animation:fxWeldArc 1.75s steps(2,end) infinite}.winfx-fx_junkyard_sparks::after{background:radial-gradient(circle at 16% 25%,#ffd36a 0 2px,transparent 3px),radial-gradient(circle at 32% 44%,#ff8a37 0 1.5px,transparent 3px),radial-gradient(circle at 49% 69%,#ffb14c 0 1px,transparent 3px),radial-gradient(circle at 68% 36%,#e66c2e 0 1.5px,transparent 3px);animation:fxSparkFall 1.25s linear infinite}
@keyframes fxWeldArc{0%,68%,100%{opacity:.18}76%,84%{opacity:1}}@keyframes fxSparkFall{0%{transform:translate(0,0);opacity:0}15%{opacity:1}85%{opacity:.7}100%{transform:translate(12px,16px);opacity:0}}

/* Primitive Smoke: ember core flickers under heavy charcoal curls. */
.winfx-fx_primitive_smoke{background:linear-gradient(90deg,#26150d,rgba(92,47,24,.74),#1e2525)}.winfx-fx_primitive_smoke::before{left:7%;right:auto;width:19%;background:radial-gradient(ellipse at 50% 79%,#fff0a4 0 7%,#fa7e31 13%,rgba(177,43,18,.7) 29%,transparent 53%);animation:fxEmberCore 1.1s ease-in-out infinite}.winfx-fx_primitive_smoke::after{inset:-34% auto -12% 12%;width:37%;background:radial-gradient(ellipse,rgba(79,82,76,.5),transparent 62%),radial-gradient(ellipse at 75% 70%,rgba(32,35,33,.56),transparent 57%);animation:fxSmokeCurl 3.4s ease-in-out infinite}
@keyframes fxEmberCore{50%{transform:scale(.82,1.14);opacity:.78}}@keyframes fxSmokeCurl{50%{transform:translate(18px,-9px) rotate(8deg);opacity:.55}}

/* Scientist Scan: quarantine reticle and telemetry line sweep the subject. */
.winfx-fx_scientist_scan{background:repeating-linear-gradient(0deg,rgba(203,244,67,.1) 0 1px,transparent 1px 5px),linear-gradient(90deg,#16200d,rgba(81,111,22,.48),#121a0e)}.winfx-fx_scientist_scan::before{inset:18% auto 18% 8%;width:36px;border:1px solid rgba(221,255,84,.85);border-radius:50%;box-shadow:0 0 0 5px rgba(211,255,75,.12);animation:fxReticleLock 2.5s ease-in-out infinite}.winfx-fx_scientist_scan::after{height:2px;top:0;background:#dcff5b;box-shadow:0 0 12px #d5ff53;animation:fxTelemetryScan 1.7s linear infinite}
@keyframes fxReticleLock{0%,100%{transform:translateX(0) scale(1)}50%{transform:translateX(38px) scale(1.14)}}@keyframes fxTelemetryScan{0%{transform:translateY(-2px);opacity:0}12%,86%{opacity:1}100%{transform:translateY(52px);opacity:0}}

/* Bradley Barrage: muzzle blast erupts, impact ring expands, hull shakes once. */
.winfx-fx_bradley_barrage{background:linear-gradient(90deg,#2b2920,rgba(101,61,32,.72),#22241f);animation:fxBradleyShake 3.2s ease-in-out infinite}.winfx-fx_bradley_barrage::before{left:5%;right:auto;width:25%;background:radial-gradient(circle,rgba(255,250,194,.96) 0 5%,#ffae42 12%,rgba(202,63,28,.42) 27%,transparent 52%);animation:fxMuzzleFlash 3.2s steps(2,end) infinite}.winfx-fx_bradley_barrage::after{left:43%;right:auto;top:50%;width:12px;height:12px;border:2px solid rgba(255,184,83,.72);border-radius:50%;transform:translateY(-50%);animation:fxImpactRing 3.2s ease-out infinite}
@keyframes fxMuzzleFlash{0%,8%,100%{opacity:.1}3%,6%{opacity:1}}@keyframes fxImpactRing{0%,10%{transform:translateY(-50%) scale(.2);opacity:0}12%{opacity:1}35%,100%{transform:translateY(-50%) scale(7);opacity:0}}@keyframes fxBradleyShake{0%,9%,100%{transform:translateX(0)}4%{transform:translateX(-1px)}6%{transform:translateX(2px)}}

/* Wipe Countdown: an urgent horizon burns, count sweep snaps to a white reset. */
.winfx-fx_wipe_countdown{background:linear-gradient(180deg,#28110d 0 49%,#b43f25 51%,#26120f 74%)}.winfx-fx_wipe_countdown::before{background:linear-gradient(90deg,transparent 0 32%,rgba(255,201,96,.52) 48%,transparent 64%);animation:fxWipeSweep 2.8s linear infinite}.winfx-fx_wipe_countdown::after{background:linear-gradient(90deg,transparent,rgba(255,248,218,.98),transparent);animation:fxWipeReset 2.8s ease-in-out infinite}
@keyframes fxWipeSweep{0%{transform:translateX(-18%);opacity:0}14%,84%{opacity:1}100%{transform:translateX(100%);opacity:0}}@keyframes fxWipeReset{0%,76%,100%{opacity:0}86%{opacity:.8}94%{opacity:0}}

/* ---- CLAW MACHINE EXCLUSIVE FX (won, never sold) ------------------------
   Five arcade-cabinet treatments. Only the Claw Machine hands these out, so
   they read as louder and more "lit" than the shop rotation. */

/* Claw Descent: the grabber drops on its cable, clamps, and rises again. */
.winfx-fx_claw_descent{background:linear-gradient(90deg,#150d2b,rgba(76,29,149,.6),#101427)}.winfx-fx_claw_descent::before{left:12%;right:auto;width:3px;top:-40%;bottom:auto;height:96%;background:linear-gradient(180deg,rgba(226,232,240,.9),rgba(148,163,184,.25));box-shadow:0 0 10px rgba(226,232,240,.55);animation:fxClawCable 3.1s cubic-bezier(.5,0,.4,1) infinite}.winfx-fx_claw_descent::after{left:8%;right:auto;top:22%;bottom:auto;width:34px;height:34px;border:2px solid rgba(207,250,254,.85);border-top-color:transparent;border-radius:0 0 60% 60%;box-shadow:0 0 16px rgba(103,232,249,.6);animation:fxClawGrab 3.1s cubic-bezier(.5,0,.4,1) infinite}
@keyframes fxClawCable{0%,100%{transform:translateY(-32%)}42%,58%{transform:translateY(0)}}@keyframes fxClawGrab{0%,100%{transform:translateY(-140%) scaleX(1)}40%{transform:translateY(0) scaleX(1)}50%{transform:translateY(0) scaleX(.62)}62%{transform:translateY(-40%) scaleX(.62)}}

/* Prize Chute: the hatch lights up and the prize tumbles out. */
.winfx-fx_prize_chute{background:linear-gradient(90deg,#2a0f2b,rgba(190,24,93,.5),#160c22)}.winfx-fx_prize_chute::before{left:4%;right:auto;width:16%;background:radial-gradient(ellipse at 20% 50%,rgba(255,246,214,.95) 0 8%,rgba(244,114,182,.6) 34%,transparent 70%);animation:fxChuteFlash 2.2s ease-in-out infinite}.winfx-fx_prize_chute::after{background:radial-gradient(circle at 24% 30%,#fde68a 0 2.5px,transparent 4px),radial-gradient(circle at 41% 62%,#f9a8d4 0 2px,transparent 4px),radial-gradient(circle at 58% 26%,#a5f3fc 0 2.5px,transparent 4px),radial-gradient(circle at 76% 58%,#fda4af 0 2px,transparent 4px);animation:fxChuteTumble 1.9s linear infinite}
@keyframes fxChuteFlash{0%,100%{opacity:.32}46%{opacity:1}}@keyframes fxChuteTumble{0%{transform:translate(-14px,-6px) rotate(0);opacity:0}18%{opacity:1}82%{opacity:.85}100%{transform:translate(16px,10px) rotate(26deg);opacity:0}}

/* Token Storm: a payout of arcade tokens clatters across the row. */
.winfx-fx_token_storm{background:linear-gradient(90deg,#2b210a,rgba(180,133,20,.55),#221a09)}.winfx-fx_token_storm::before{background:repeating-linear-gradient(112deg,transparent 0 13px,rgba(253,224,71,.5) 14px 17px,transparent 18px 30px);mask-image:linear-gradient(90deg,black,transparent 94%);animation:fxTokenRain 1.05s linear infinite}.winfx-fx_token_storm::after{background:radial-gradient(circle at 18% 34%,#fef08a 0 3px,rgba(180,83,9,.9) 3.5px,transparent 5px),radial-gradient(circle at 46% 66%,#fde047 0 2.5px,rgba(146,64,14,.9) 3px,transparent 5px),radial-gradient(circle at 73% 30%,#facc15 0 3px,rgba(120,53,15,.9) 3.5px,transparent 5px);animation:fxTokenBounce 1.55s ease-in-out infinite}
@keyframes fxTokenRain{from{background-position:0 0}to{background-position:30px 12px}}@keyframes fxTokenBounce{0%,100%{transform:translateY(2px) scaleX(1);opacity:.85}50%{transform:translateY(-4px) scaleX(.72);opacity:1}}

/* Arcade Neon: cabinet marquee tubes chase magenta into cyan. */
.winfx-fx_arcade_neon{background:linear-gradient(90deg,#1a0a2e,rgba(217,70,239,.34),rgba(34,211,238,.26),#0d1030)}.winfx-fx_arcade_neon::before{top:0;bottom:auto;height:3px;background:linear-gradient(90deg,transparent,#f0abfc,#67e8f9,transparent);box-shadow:0 0 14px rgba(240,171,252,.85);animation:fxNeonChase 2s linear infinite}.winfx-fx_arcade_neon::after{top:auto;bottom:0;height:3px;background:linear-gradient(90deg,transparent,#67e8f9,#f0abfc,transparent);box-shadow:0 0 14px rgba(103,232,249,.85);animation:fxNeonChase 2s linear .55s infinite reverse}
@keyframes fxNeonChase{0%{transform:translateX(-58%);opacity:.25}18%,82%{opacity:1}100%{transform:translateX(58%);opacity:.25}}

/* Jackpot Siren: cabinet beacon sweeps, the whole row flashes red-gold. */
.winfx-fx_jackpot_siren{background:linear-gradient(90deg,#2d0a0a,rgba(220,38,38,.5),#2a1406);animation:fxSirenFlash 1.4s ease-in-out infinite}.winfx-fx_jackpot_siren::before{left:6%;right:auto;width:22%;background:conic-gradient(from 0deg,rgba(255,86,64,.85) 0 12%,transparent 12% 50%,rgba(255,86,64,.85) 50% 62%,transparent 62%);border-radius:50%;filter:blur(1px);animation:fxSirenSpin 1.15s linear infinite}.winfx-fx_jackpot_siren::after{background:linear-gradient(90deg,transparent,rgba(255,224,138,.6),transparent);animation:fxSirenSweep 1.9s ease-in-out infinite}
/* Dead Water salvage-set exclusives — fished up, never sold. */
.winfx-fx_deep_silt{background:linear-gradient(180deg,rgba(6,20,26,.96),rgba(14,44,48,.6) 56%,rgba(4,14,18,.96))}.winfx-fx_deep_silt::before{background:radial-gradient(circle at 18% 74%,rgba(148,197,185,.32) 0 2px,transparent 3px),radial-gradient(circle at 58% 42%,rgba(148,197,185,.24) 0 2px,transparent 3px),radial-gradient(circle at 86% 78%,rgba(148,197,185,.28) 0 2px,transparent 3px);animation:fxSiltRise 4.4s linear infinite}.winfx-fx_deep_silt::after{background:linear-gradient(90deg,transparent,rgba(94,234,212,.16),transparent);animation:fxSiltDrift 5.6s ease-in-out infinite}
.winfx-fx_rotor_wash{background:linear-gradient(90deg,#0b1620,rgba(51,84,110,.52),#0a1219)}.winfx-fx_rotor_wash::before{left:9%;right:auto;top:50%;width:38px;height:38px;margin-top:-19px;border-radius:50%;background:conic-gradient(from 0deg,transparent 0 38%,rgba(186,230,253,.6) 44% 56%,transparent 62%);animation:fxRotorSpin .7s linear infinite}.winfx-fx_rotor_wash::after{background:repeating-linear-gradient(96deg,transparent 0 12px,rgba(186,230,253,.16) 13px 15px,transparent 16px 26px);animation:fxRotorWake 2.4s ease-in-out infinite}
.winfx-fx_drowned_horn{background:linear-gradient(90deg,#0a1a1e,rgba(13,86,94,.44),#08151a)}.winfx-fx_drowned_horn::before{background:linear-gradient(90deg,transparent 0 22%,rgba(103,232,249,.34) 50%,transparent 78%);animation:fxHornPulse 3.2s ease-in-out infinite}.winfx-fx_drowned_horn::after{left:11%;right:auto;top:50%;width:26px;height:26px;margin-top:-13px;border-radius:50%;border:2px solid rgba(165,243,252,.7);animation:fxHornRing 3.2s ease-out infinite}
.winfx-fx_derrick_flare{background:linear-gradient(90deg,#1a1109,rgba(120,53,15,.6) 46%,#0b1418)}.winfx-fx_derrick_flare::before{inset:-40% auto -40% 10%;width:20%;background:radial-gradient(circle,rgba(255,237,175,.95) 0 5%,rgba(251,146,60,.85) 12%,rgba(180,83,9,.22) 34%,transparent 62%);animation:fxDerrickBurn 1.5s ease-in-out infinite}.winfx-fx_derrick_flare::after{background:linear-gradient(9deg,transparent 52%,rgba(120,53,15,.4) 88%);animation:fxSiltDrift 6.2s ease-in-out infinite}
.winfx-fx_track_grind{background:linear-gradient(90deg,#141414,rgba(87,83,78,.5),#101112)}.winfx-fx_track_grind::before{background:repeating-linear-gradient(90deg,rgba(214,211,209,.22) 0 10px,transparent 10px 22px);background-size:64px 100%;animation:fxTrackGrind 1.8s linear infinite}.winfx-fx_track_grind::after{background:radial-gradient(circle at 24% 68%,rgba(253,224,71,.5) 0 2px,transparent 4px),radial-gradient(circle at 66% 34%,rgba(253,186,116,.45) 0 2px,transparent 4px);animation:fxTrackSpark 1.1s steps(2,end) infinite}
/* Workbench master blueprint — built over weeks of salvage, never sold. */
.winfx-fx_forge_light{background:linear-gradient(90deg,#1b1006,rgba(234,88,12,.4) 36%,rgba(120,53,15,.26) 64%,#12100c)}.winfx-fx_forge_light::before{left:4%;right:auto;top:50%;width:46px;height:46px;margin-top:-23px;border-radius:50%;background:radial-gradient(circle,rgba(255,240,199,.95) 0 18%,rgba(251,146,60,.82) 42%,rgba(194,65,12,.26) 68%,transparent 78%);animation:fxForgeBreath 2.4s ease-in-out infinite}.winfx-fx_forge_light::after{background:radial-gradient(circle at 22% 64%,rgba(253,224,71,.72) 0 2px,transparent 3px),radial-gradient(circle at 46% 34%,rgba(251,146,60,.58) 0 2px,transparent 3px),radial-gradient(circle at 72% 70%,rgba(254,240,138,.55) 0 2px,transparent 3px),radial-gradient(circle at 88% 44%,rgba(253,186,116,.5) 0 2px,transparent 3px);animation:fxForgeSparks 3.6s linear infinite}
@keyframes fxForgeBreath{0%,100%{opacity:.55;transform:scale(.92)}42%{opacity:1;transform:scale(1.08)}}
@keyframes fxForgeSparks{0%{transform:translate(-6%,10%);opacity:.2}35%{opacity:.85}100%{transform:translate(10%,-16%);opacity:.15}}
@keyframes fxSiltRise{0%{transform:translateY(14%);opacity:.25}50%{opacity:.75}100%{transform:translateY(-16%);opacity:.2}}
@keyframes fxSiltDrift{0%,100%{transform:translateX(-12%)}50%{transform:translateX(12%)}}
@keyframes fxRotorSpin{to{transform:rotate(360deg)}}
@keyframes fxRotorWake{0%,100%{opacity:.24;transform:scaleX(.92)}50%{opacity:.68;transform:scaleX(1.08)}}
@keyframes fxHornPulse{0%,70%,100%{opacity:.16}80%,92%{opacity:.72}}
@keyframes fxHornRing{0%{transform:scale(.7);opacity:.65}100%{transform:scale(2.6);opacity:0}}
@keyframes fxDerrickBurn{0%,100%{transform:scaleY(.86);opacity:.72}50%{transform:scaleY(1.14);opacity:1}}
@keyframes fxTrackGrind{to{background-position:64px 0}}
@keyframes fxTrackSpark{0%,100%{opacity:.14}45%{opacity:.8}}
@keyframes fxSirenFlash{0%,100%{filter:none}50%{filter:brightness(1.28)}}@keyframes fxSirenSpin{to{transform:rotate(360deg)}}@keyframes fxSirenSweep{0%{transform:translateX(-70%);opacity:0}30%,70%{opacity:.9}100%{transform:translateX(70%);opacity:0}}

@media (prefers-reduced-motion:reduce){
  .titem[class*="winfx-fx_"],.rw-row[class*="winfx-fx_"],.fx-demo[class*="winfx-fx_"],.sto-feed-row[class*="winfx-fx_"],
  .titem[class*="winfx-fx_"]::before,.titem[class*="winfx-fx_"]::after,.rw-row[class*="winfx-fx_"]::before,.rw-row[class*="winfx-fx_"]::after,.fx-demo[class*="winfx-fx_"]::before,.fx-demo[class*="winfx-fx_"]::after,.sto-feed-row[class*="winfx-fx_"]::before,.sto-feed-row[class*="winfx-fx_"]::after{animation:none!important}
  .winfx-fx_nomad_dust::after{opacity:.5;transform:translateX(8%)}.winfx-fx_zero_siren::before{transform:rotate(48deg);opacity:.72}.winfx-fx_rig_flood::before{opacity:.8}.winfx-fx_cargo_flare::before{opacity:.85}.winfx-fx_launch_alarm::before{transform:translateX(22%);opacity:.7}.winfx-fx_outpost_stampede::after{opacity:.75}.winfx-fx_arctic_whiteout::after{opacity:.4}.winfx-fx_junkyard_sparks::before{opacity:.8}.winfx-fx_primitive_smoke::after{opacity:.65;transform:translate(10px,-4px)}.winfx-fx_scientist_scan::after{top:50%;opacity:.65}.winfx-fx_bradley_barrage::after{transform:translateY(-50%) scale(2.8);opacity:.45}.winfx-fx_wipe_countdown::after{opacity:.22}.winfx-fx_claw_descent::before{transform:none}.winfx-fx_claw_descent::after{transform:none;opacity:.85}.winfx-fx_prize_chute::before{opacity:.8}.winfx-fx_prize_chute::after{opacity:.7}.winfx-fx_token_storm::after{opacity:.8;transform:none}.winfx-fx_arcade_neon::before,.winfx-fx_arcade_neon::after{transform:none;opacity:.9}.winfx-fx_jackpot_siren::before{opacity:.7}.winfx-fx_jackpot_siren::after{opacity:.35;transform:none}.winfx-fx_deep_silt::before{opacity:.5}.winfx-fx_deep_silt::after{transform:none}.winfx-fx_rotor_wash::before{transform:none;opacity:.7}.winfx-fx_rotor_wash::after{transform:none;opacity:.5}.winfx-fx_drowned_horn::before{opacity:.6}.winfx-fx_drowned_horn::after{transform:none;opacity:.3}.winfx-fx_derrick_flare::before{transform:none;opacity:.8}.winfx-fx_derrick_flare::after{transform:none;opacity:.55}.winfx-fx_track_grind::before{opacity:.7}.winfx-fx_track_grind::after{opacity:.4}.winfx-fx_forge_light::before{transform:none;opacity:.85}.winfx-fx_forge_light::after{transform:none;opacity:.45}
}
.collection-rustborn_nomad_set{--set-tone:#d9a95b}.collection-monument_zero_set{--set-tone:#c2d84e}.collection-oil_rig_overlord_set{--set-tone:#78b8a9}.collection-cargo_after_dark_set{--set-tone:#d46043}.collection-launch_site_protocol_set{--set-tone:#ff5a3d}.collection-outpost_renegade_set{--set-tone:#e6aa42}.collection-arctic_research_set{--set-tone:#b7e2e7}.collection-junkyard_king_set{--set-tone:#cf7c37}.collection-primitive_survivor_set{--set-tone:#df8845}.collection-heavy_scientist_set{--set-tone:#c8dc58}.collection-bradleys_revenge_set{--set-tone:#bd7141}.collection-last_day_wipe_set{--set-tone:#f27645}
body.collection-active-rustborn_nomad_set::before{background:repeating-linear-gradient(105deg,transparent 0 26px,rgba(217,169,91,.22) 27px 29px);animation:signatureSweep 8s ease-in-out infinite}body.collection-active-monument_zero_set::before,body.collection-active-heavy_scientist_set::before{background:repeating-linear-gradient(0deg,transparent 0 7px,rgba(194,216,78,.2) 8px 9px);animation:signatureScan 6s linear infinite}body.collection-active-oil_rig_overlord_set::before{background:linear-gradient(100deg,transparent,rgba(120,184,169,.19),transparent);animation:signatureSweep 6s ease-in-out infinite}body.collection-active-cargo_after_dark_set::before,body.collection-active-last_day_wipe_set::before{background:radial-gradient(circle at 75% 12%,rgba(242,100,61,.3),transparent 24%);animation:signatureEmber 5s ease-in-out infinite}body.collection-active-launch_site_protocol_set::before{background:repeating-linear-gradient(90deg,rgba(255,90,61,.16) 0 3px,transparent 3px 22px);animation:signatureStatic 2s steps(3,end) infinite}body.collection-active-outpost_renegade_set::before{background:repeating-linear-gradient(135deg,transparent 0 24px,rgba(230,170,66,.17) 25px 27px)}body.collection-active-arctic_research_set::before{background:linear-gradient(110deg,transparent,rgba(183,226,231,.28),transparent);animation:signatureSweep 7s ease-in-out infinite}body.collection-active-junkyard_king_set::before,body.collection-active-bradleys_revenge_set::before{background:radial-gradient(circle at 30% 80%,rgba(207,124,55,.25),transparent 32%);animation:signatureDrift 8s ease-in-out infinite}body.collection-active-primitive_survivor_set::before{background:radial-gradient(circle at 48% 100%,rgba(223,136,69,.3),transparent 35%);animation:signatureEmber 6s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.name-theme-monument_zero,.name-theme-last_day_wipe,.titem[class*="winfx-fx_"],.rw-row[class*="winfx-fx_"],.fx-demo[class*="winfx-fx_"]{animation:none!important}}
.card .tag-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--text);
}
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin: 4px 0 8px; }
.card p.desc { color: var(--muted); font-size: .96rem; margin: 0 0 16px; }

/* Nuke Run entry — industrial event terminal breaks deliberately from the
   arcade cards while keeping the existing page palette and components. */
.nuke-run-card {
  background: linear-gradient(145deg, rgba(182,255,52,.12), rgba(15,28,24,.82)); border-color: rgba(182,255,52,.38);
  /* Span the full row so it matches the MASO 3X store panel below it. */
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px 26px; align-items: center;
}
.nuke-run-card .nuke-run-sigil { grid-row: 1 / 3; margin: 0; }
.nuke-run-card h3 { align-self: end; margin: 0; }
.nuke-run-card .desc { margin: 0; max-width: 62ch; }
.nuke-run-card .btn { grid-column: 3; grid-row: 1 / 3; justify-self: end; }
.nuke-run-card .tag-badge { z-index: 1; }
@media (max-width: 720px) {
  .nuke-run-card { grid-template-columns: auto 1fr; padding-top: 52px; }
  .nuke-run-card .btn { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
}
.nuke-run-sigil { width: 82px; height: 82px; margin: 16px 0 22px; border: 2px solid #b6ff34; border-radius: 50%; display:grid; place-items:center; position:relative; color:#dfffa0; font: 800 2.1rem/1 var(--font-display); }
.nuke-run-sigil::before, .nuke-run-sigil::after { content:""; position:absolute; inset:10px; border:1px solid rgba(182,255,52,.7); border-radius:50%; }
.nuke-run-sigil::after { inset:26px; background:#b6ff34; }
.nuke-run-sigil span { position:relative; z-index:1; color:#eaffc5; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill {
  font-size: .78rem; font-family: var(--font-mono);
  padding: 5px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.pill.cost { color: #ffd7f4; border-color: rgba(236,72,153,.4); background: rgba(236,72,153,.12); }
.pill.win { color: #cfe0ff; border-color: rgba(59,130,246,.4); background: rgba(59,130,246,.12); }

.card-media {
  border-radius: var(--radius-sm); overflow: hidden; margin: -4px -4px 16px;
  border: 1px solid var(--border); position: relative; aspect-ratio: 16 / 9; background: #120a22;
}
/* keep the ticket-cost badge on its own row above the banner */
.card .tag-badge + .card-media { margin-top: 30px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
/* "fit" = show the whole artwork (like the slots banner) with a blurred
   backdrop filling the leftover frame */
.card-media.fit img { position: relative; object-fit: contain; }
.card-media.fit::before {
  content: ""; position: absolute; inset: -24px;
  background: var(--media) center/cover no-repeat;
  filter: blur(22px) saturate(1.15) brightness(.55);
}
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,4,15,.7));
}

/* ---------- Slots demo ---------- */
.slot-machine { text-align: center; margin: 6px 0 4px; }
.reels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 14px; border-radius: 16px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(217,70,239,.14), rgba(10,6,20,.7));
  border: 1px solid var(--border-strong);
}
.reel {
  height: 84px; display: grid; place-items: center;
  font-size: 2.6rem; border-radius: 12px;
  background: rgba(0,0,0,.35); border: 1px solid var(--border);
  overflow: hidden;
}
.reel.spinning { animation: reelPulse .12s linear infinite; }
@keyframes reelPulse { 0%,100% { transform: translateY(0); opacity: 1;} 50% { transform: translateY(-4px); opacity: .7;} }
.slot-result { min-height: 26px; margin-top: 12px; font-weight: 600; font-size: .95rem; color: var(--muted); }
.slot-result.win { color: #ffe1f6; text-shadow: 0 0 20px rgba(236,72,153,.7); }

/* Live slots (real ticket spins) */
.chip.live { border-color: rgba(236,72,153,.55); color: #ffd7ef; }
.chip.live .dot { background: var(--pink, #ec4899); box-shadow: 0 0 10px rgba(236,72,153,.9); }
.server-pick {
  display: flex; align-items: center; gap: 12px;
  /* clear air above the picker and between it and the action button below */
  margin: 18px 0 14px; text-align: left;
}
/* result caption sitting right after an action button gets its own room */
.card .btn + .slot-result { margin-top: 12px; }
.server-pick label { font-size: .82rem; color: var(--muted); white-space: nowrap; }

/* Custom themed server dropdown */
.sp-dd { position: relative; flex: 1; min-width: 0; }
.sp-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; border-radius: 12px; cursor: pointer;
  background: rgba(10, 8, 24, .75); color: var(--text);
  border: 1px solid var(--border-strong);
  font: inherit; font-size: .9rem; font-weight: 600;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sp-btn:hover { border-color: rgba(236,72,153,.45); }
.sp-btn:focus-visible { outline: none; border-color: rgba(236,72,153,.6); }
.sp-btn:disabled { opacity: .55; cursor: not-allowed; }
.sp-dd.open .sp-btn { border-color: rgba(236,72,153,.6); box-shadow: 0 0 16px rgba(236,72,153,.25); }
.sp-btn.sp-err {
  border-color: #ff2e4d;
  box-shadow: 0 0 22px rgba(255, 46, 77, .85), 0 0 44px rgba(255, 46, 77, .45), inset 0 0 12px rgba(255, 46, 77, .35);
  animation: spErrPulse 1s ease-in-out infinite;
}
@keyframes spErrPulse {
  0%, 100% { box-shadow: 0 0 22px rgba(255, 46, 77, .85), 0 0 44px rgba(255, 46, 77, .45), inset 0 0 12px rgba(255, 46, 77, .35); }
  50% { box-shadow: 0 0 10px rgba(255, 46, 77, .5), 0 0 20px rgba(255, 46, 77, .25), inset 0 0 6px rgba(255, 46, 77, .2); }
}
.sp-btn-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-caret { color: var(--muted); font-size: .68rem; transition: transform .15s ease; }
.sp-dd.open .sp-caret { transform: rotate(180deg); }
.sp-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 40;
  display: none; max-height: 236px; overflow: auto; padding: 6px;
  background: rgba(14, 10, 30, .97);
  border: 1px solid rgba(236,72,153,.35); border-radius: 14px;
  box-shadow: 0 -14px 36px rgba(0,0,0,.55), 0 0 26px rgba(124,58,237,.22);
  backdrop-filter: blur(12px);
}
.sp-dd.open .sp-menu { display: block; }
.sp-opt {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 9px 12px; border-radius: 9px; border: 0; background: transparent;
  color: var(--text); font: inherit; font-size: .88rem; font-weight: 500;
}
.sp-opt:hover { background: rgba(236,72,153,.14); }
.sp-opt.active {
  background: linear-gradient(90deg, rgba(124,58,237,.4), rgba(236,72,153,.3));
  color: #fff; font-weight: 700;
}

/* ---------- Spinner demo ---------- */
.spinner-viewport {
  position: relative; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--border-strong); background: rgba(0,0,0,.35); padding: 14px 0;
  margin-bottom: 6px;
}
.spinner-viewport::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: var(--grad); z-index: 3; box-shadow: 0 0 16px var(--fuchsia);
}
.spinner-track { display: flex; gap: 10px; transition: transform 3.4s cubic-bezier(.12,.72,.12,1); will-change: transform; padding-left: 50%; }
.kit-chip {
  flex: 0 0 auto; width: 96px; height: 64px; border-radius: 12px;
  display: grid; place-content: center; text-align: center;
  background: var(--grad-soft); border: 1px solid var(--border-strong);
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
}
.kit-chip small { display: block; color: var(--muted); font-size: .66rem; }

/* ---------- Packs demo ---------- */
.pack-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.pack-tab {
  flex: 1; padding: 10px; border-radius: 12px; cursor: pointer; text-align: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-weight: 600; font-size: .9rem; transition: .2s;
}
.pack-tab.active { color: var(--text); border-color: var(--fuchsia); background: rgba(217,70,239,.12); }
.pack-stage {
  position: relative; aspect-ratio: 1 / 1; max-height: 220px; margin: 0 auto 12px;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border-strong);
  display: grid; place-items: center; background: #120a22;
}
.pack-stage::before {
  content: ""; position: absolute; inset: -24px;
  background: var(--media) center/cover no-repeat;
  filter: blur(22px) saturate(1.15) brightness(.5);
}
.pack-stage img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.pack-stage.demo-pulse img { animation: packDemoPulse 1.1s ease; }
@keyframes packDemoPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.045) rotate(-1deg); }
  70% { transform: scale(1.02) rotate(1deg); }
  100% { transform: scale(1); }
}
.pack-reveal {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  background: rgba(8,4,15,.82); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.pack-reveal.show { opacity: 1; }
.pack-reveal .pulled { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.pack-reveal .sub { color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* ---------- Raffle / countdown ---------- */
.countdown { display: flex; gap: 8px; margin: 10px 0 4px; }
.cd-cell {
  background: rgba(0,0,0,.4); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 0; text-align: center; flex: 1;
}
.cd-cell .n { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.cd-cell .u { font-size: .62rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }

.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 14px; }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.progress-label { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; font-family: var(--font-mono); }

.prize {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  font-weight: 600;
}
.prize .amt { font-family: var(--font-mono); }

/* Ticket drop */
.drop-card { grid-column: span 2; display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; }
.drop-card .drop-img { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-strong); }
.claimed-flash { color: #b8ffcf; font-weight: 700; }

/* ---------- Economy ---------- */
.converter { margin-top: 14px; }
.converter label { font-size: .8rem; color: var(--muted); display: block; margin-bottom: 6px; }
.conv-row { display: flex; gap: 10px; align-items: center; }
.conv-row input {
  flex: 1; background: rgba(0,0,0,.4); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 10px; padding: 12px; font-family: var(--font-mono); font-size: 1rem;
}
.conv-row input:focus { outline: none; border-color: var(--fuchsia); }
.conv-out { margin-top: 12px; font-family: var(--font-mono); font-size: .95rem; }
.conv-out b { color: #ffe1f6; }

/* ---------- Ticket Bowl table ---------- */
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th, .lb-table td { padding: 14px 16px; text-align: left; }
.lb-table thead th {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2);
  border-bottom: 1px solid var(--border);
}
.lb-table tbody tr { border-bottom: 1px solid rgba(255,255,255,.05); transition: background .2s; }
.lb-table tbody tr:hover { background: var(--surface); }
.lb-table td.num, .lb-table th.num { text-align: right; font-family: var(--font-mono); }
.rank { font-family: var(--font-display); font-weight: 800; width: 46px; }
.rank.r1 { color: #ffd700; } .rank.r2 { color: #d6d6e6; } .rank.r3 { color: #cd8b5a; }
.player { display: flex; align-items: center; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.top-row td { background: linear-gradient(90deg, rgba(217,70,239,.10), transparent); }


/* ---------- Free daily ticket claim ---------- */
.daily-claim { margin-top: 12px; display: grid; gap: 8px; }
.daily-claim[hidden] { display: none; }
.daily-claim .btn { width: 100%; }
.daily-claim .dc-note { font-size: .82rem; color: var(--muted); text-align: center; }
.daily-claim .dc-ok { font-size: .9rem; color: #86efac; font-weight: 600; text-align: center; }
.daily-claim .dc-err { font-size: .85rem; color: #fda4af; text-align: center; }
.daily-claim .btn.dc-wait { opacity: .65; cursor: default; }

/* ---------- Support tickets ("Report an issue") ---------- */
.nav-report {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .04);
  color: var(--text); font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s;
}
.nav-report:hover { color: #fff; background: var(--surface); border-color: var(--border-strong); }
.user-support { width: 100%; cursor: pointer; font: inherit; font-weight: 700; }
.sup-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(4, 2, 10, .72); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.sup-overlay[hidden] { display: none; }
.sup-card {
  width: min(560px, 100%); max-height: min(86vh, 780px);
  display: flex; flex-direction: column;
  background: #14101f; border: 1px solid var(--border-strong, rgba(255,255,255,.18));
  border-radius: 18px; box-shadow: 0 26px 70px rgba(0, 0, 0, .6);
}
.sup-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.sup-title { margin: 0; font-size: 1.02rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-back, .sup-x {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--border);
  color: #fff; font: inherit; border-radius: 9px; cursor: pointer;
  width: 32px; height: 32px; display: grid; place-items: center; flex: none;
}
.sup-back[hidden] { display: none; }
.sup-back:hover, .sup-x:hover { background: rgba(255, 255, 255, .14); }
.sup-body { padding: 14px 16px 18px; overflow-y: auto; display: grid; gap: 10px; }
.sup-msg { margin: 10px 16px 0; padding: 9px 12px; border-radius: 10px; font-size: .88rem; }
.sup-msg[hidden] { display: none; }
.sup-msg.sup-ok { background: rgba(60, 200, 130, .14); border: 1px solid rgba(60, 200, 130, .4); color: #b8f5d6; }
.sup-msg.sup-err { background: rgba(255, 90, 90, .13); border: 1px solid rgba(255, 120, 120, .42); color: #ffc9c9; }
.sup-banner {
  padding: 11px 13px; border-radius: 12px;
  background: rgba(255, 170, 60, .12); border: 1px solid rgba(255, 180, 80, .4);
  color: #ffd9a3; font-size: .9rem; font-weight: 600;
}
.sup-empty { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.sup-new { width: 100%; justify-content: center; }
.sup-list { display: grid; gap: 8px; }
.sup-item {
  position: relative; text-align: left; width: 100%; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 13px; color: var(--text); font: inherit;
  display: grid; gap: 4px;
}
.sup-item:hover { background: rgba(255, 255, 255, .09); }
.sup-item.sup-unread { border-color: rgba(217, 70, 239, .5); }
.sup-item-top { display: flex; align-items: center; gap: 8px; }
.sup-subject { font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-sub { color: var(--muted); font-size: .82rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sup-pill { padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sup-pill.sup-open { background: rgba(60, 200, 130, .16); color: #8ff0c2; border: 1px solid rgba(60, 200, 130, .38); }
.sup-pill.sup-closed { background: rgba(255, 255, 255, .07); color: var(--muted); border: 1px solid var(--border); }
.sup-dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad, #d946ef); }
.sup-label { font-size: .8rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sup-input {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--border);
  color: #fff; font: inherit; font-size: .93rem;
}
.sup-input:focus { outline: none; border-color: rgba(217, 70, 239, .55); }
.sup-area { resize: vertical; line-height: 1.45; }
.sup-log { display: grid; gap: 9px; max-height: 44vh; overflow-y: auto; padding-right: 2px; }
.sup-bubble {
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border);
  border-radius: 12px; padding: 9px 12px; display: grid; gap: 3px;
  justify-self: end; max-width: 92%;
}
.sup-bubble.sup-from-dev {
  justify-self: start;
  background: linear-gradient(135deg, rgba(217, 70, 239, .14), rgba(99, 102, 241, .12));
  border-color: rgba(217, 70, 239, .34);
}
.sup-bubble.sup-from-arch {
  border-color: rgba(182,255,52,.4);
  background: linear-gradient(145deg, rgba(182,255,52,.1), rgba(15,28,24,.8));
}
.sup-bubble.sup-from-arch .sup-who { color: #cfff66; }
.sup-who { font-size: .76rem; font-weight: 800; color: var(--muted); letter-spacing: .03em; }
.sup-text { font-size: .93rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.sup-time { font-size: .72rem; color: var(--muted); opacity: .8; }
.sup-foot { font-size: .8rem; color: var(--muted); line-height: 1.5; }
/* Dev-panel thread tools: .sup-back is a 32px icon square by default, these
   two are real labelled buttons that go full width on a phone. */
.sup-back.sup-tool { width: auto; height: 36px; padding: 0 14px; font-size: .88rem; font-weight: 700; }
.sup-tool-select { max-width: 170px; }
.sup-back.sup-tool-x { width: auto; min-width: 30px; height: 30px; padding: 0 8px; flex: none; }

@media (max-width: 640px) {
  .sup-overlay { padding: 8px; }
  .sup-card { width: 100%; max-height: 94vh; border-radius: 14px; }
  .sup-head { padding: 12px 13px; }
  .sup-body { padding: 12px 13px 16px; }
  .sup-title { font-size: .96rem; }
  .sup-item { padding: 10px 11px; }
  .sup-item-top { align-items: flex-start; }
  .sup-subject { white-space: normal; overflow: visible; line-height: 1.35; }
  .sup-sub { font-size: .78rem; gap: 6px; }
  .sup-log { max-height: 58vh; }
  .sup-bubble { max-width: 100%; }
  .sup-text { font-size: .9rem; }
  .sup-back.sup-tool, .sup-tool-select { flex: 1 1 100%; width: 100%; max-width: none; }
}

/* ---------- Bell notifications ---------- */
.bell-wrap { position: relative; }
.bell-btn { position: relative; background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 50%; width: 40px; height: 40px; font-size: 1.05rem; cursor: pointer; display: grid; place-items: center; }
.bell-btn:hover { background: rgba(255,255,255,.12); }
.bell-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--grad); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, 90vw); max-height: 420px; overflow-y: auto; background: var(--card, #14101f); border: 1px solid var(--border); border-radius: 14px; padding: 10px; display: none; z-index: 60; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.notif-panel.open { display: block; }
.notif-head { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 4px 6px 8px; }
.notif-empty { color: var(--muted); font-size: .88rem; padding: 10px 6px 12px; }
.notif-item { border-top: 1px solid var(--border); padding: 10px 6px; display: grid; gap: 3px; }
.notif-item.unseen { background: linear-gradient(90deg, rgba(217,70,239,.10), transparent); border-radius: 8px; }
.notif-line { font-size: .92rem; }
.notif-sub { font-size: .8rem; color: var(--muted); }
/* Enforcement notice. Deliberately louder than the rest of the panel, and it
   keeps the red frame after it has been read — it is the player's standing
   record of why their balance changed. */
.notif-item.notif-alert { border: 1px solid rgba(248,113,113,.55); border-radius: 10px; background: rgba(220,38,38,.12); padding: 10px; margin: 8px 0; }
.notif-item.notif-alert.unseen { background: rgba(220,38,38,.2); border-color: rgba(248,113,113,.8); }
.notif-alert-head { color: #fca5a5; font-weight: 800; letter-spacing: .04em; font-size: .86rem; }
.notif-alert-body { color: #fecaca; line-height: 1.35; }
.bell-badge.alert { background: #dc2626; }
.bell-btn.alerting { border-color: rgba(248,113,113,.7); box-shadow: 0 0 0 3px rgba(220,38,38,.18); }
.notif-time { font-size: .74rem; color: var(--muted); opacity: .8; }

/* ---------- Send tickets widget ---------- */
.send-tickets { margin-top: 10px; display: grid; gap: 8px; }
.send-tickets[hidden] { display: none; }
.send-tickets .btn { width: 100%; }
/* ---------- Player search / send form (tickets + KAOS scrap) ---------- */
.st-form { display: grid; gap: 8px; border: 1px dashed var(--border); border-radius: 12px; padding: 10px; }
.st-form input { background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; color: inherit; font: inherit; width: 100%; }
/* KAOS hub "Send Scrap" / "Scrap → Tickets" inputs — same look as the
   ticket-send form. */
#kxTo, #kxAmt, #kcAmt { background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; color: inherit; font: inherit; width: 100%; }
#kxTo:focus, #kxAmt:focus, #kcAmt:focus { outline: none; border-color: var(--fuchsia); }
#kxTo::placeholder, #kxAmt::placeholder, #kcAmt::placeholder { color: var(--muted); }
.st-results { display: grid; gap: 4px; max-height: 180px; overflow-y: auto; }
.st-player { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid transparent; background: rgba(255,255,255,.04); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.st-player:hover { border-color: var(--border); background: rgba(255,255,255,.08); }
.st-player img { width: 26px; height: 26px; border-radius: 50%; }
.st-player .st-username { color: var(--muted); font-size: .78rem; margin-left: auto; }
.st-selected { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: linear-gradient(90deg, rgba(217,70,239,.14), transparent); border: 1px solid var(--border); }
.st-selected img { width: 26px; height: 26px; border-radius: 50%; }
.st-selected .st-x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
.st-note { font-size: .8rem; color: var(--muted); }
.st-preview { font-size: .85rem; }
.st-ok { font-size: .9rem; color: #86efac; font-weight: 600; }
.raffle-mine { margin-top: 8px; padding: 6px 10px; border: 1px solid rgba(134,239,172,.25); border-radius: 10px; background: rgba(134,239,172,.08); }
.st-err { font-size: .85rem; color: #fda4af; }

/* ---------- Raffle entry widget ---------- */
.raffle-enter { margin-top: 10px; display: grid; gap: 6px; }
.raffle-enter[hidden] { display: none; }
.raffle-enter .btn { width: 100%; }
.raffle-enter .dc-note { font-size: .82rem; color: var(--muted); text-align: center; }

/* ---------- Live kit trade room ---------- */
.trade-room { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 14px; display: grid; gap: 10px; }
.trade-room[hidden] { display: none; }
.trade-room h4 { margin: 0; font-size: 1rem; }
.trade-room .tr-note { font-size: .85rem; color: var(--muted); }
.trade-room .tr-err { font-size: .88rem; color: #fda4af; }
.trade-room .tr-ok { font-size: .95rem; color: #86efac; font-weight: 600; }
.trade-code {
  font-family: var(--font-mono); font-size: 2rem; letter-spacing: .35em; text-indent: .35em;
  text-align: center; padding: 12px; border: 1px dashed var(--border-strong);
  border-radius: 12px; background: rgba(0, 0, 0, .28); color: #ffe1f6;
}
.trade-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: .9rem; padding: 9px 12px; background: rgba(0, 0, 0, .22);
  border: 1px solid var(--border); border-radius: 10px;
}
.trade-row b { font-weight: 600; }
.trade-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.trade-room input {
  background: rgba(0, 0, 0, .3); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 10px 12px; font: inherit;
}
.trade-room input.tr-code-input {
  width: 120px; text-align: center; font-family: var(--font-mono);
  font-size: 1.15rem; letter-spacing: .3em;
}

/* ---------- MASO 3X store ad ---------- */
.store-ad {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-strong);
  /* extra headroom so the "MASO 3X Store" badge doesn't mesh with the price grid */
  padding-top: 58px;
}
.store-ad .btn { margin-top: 12px; }
.price-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
}
.price-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; background: rgba(0, 0, 0, .28);
  border: 1px solid var(--border); border-radius: 10px; font-size: .92rem;
}
.price-list b { font-family: var(--font-mono); color: #ffe1f6; }

/* Nuke bundle tiers — the store ad's product list */
.nuke-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nuke-tiers li {
  display: grid; grid-template-columns: 56px 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px 14px; background: rgba(0, 0, 0, .28);
  border: 1px solid var(--border); border-radius: 12px;
}
.nuke-tiers img {
  width: 56px; height: 56px; display: block;
  border-radius: 10px; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .12);
}
.nuke-tier-name {
  display: block; font-weight: 700; font-size: .92rem; letter-spacing: .03em;
}
.nuke-tier-loot {
  display: block; margin-top: 2px;
  font-family: var(--font-mono); font-size: .76rem; color: var(--muted);
}
.nuke-tier-price { text-align: right; line-height: 1.25; }
.nuke-tier-price b {
  display: block; font-family: var(--font-mono);
  font-size: 1.02rem; color: #ffe1f6;
}
.nuke-tier-price s { font-size: .74rem; color: var(--muted); }
.store-sale {
  margin: 10px 0 0; font-size: .86rem; font-weight: 700;
  letter-spacing: .04em; color: #ffd7f2;
}

/* Accepted payment methods strip */
.pay-methods {
  grid-column: 1 / -1;
  margin-top: 4px; padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.pay-label {
  display: block; margin-bottom: 10px;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.pay-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pay-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--border);
  font-size: .82rem; color: var(--text); white-space: nowrap;
}

/* ---------- Tag gate callout ---------- */
.tagcall {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 24px;
}
.tagcall img { height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); }
.tagcall h3 { font-family: var(--font-display); margin: 0 0 6px; font-size: 1.4rem; }
.tagcall p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { margin-bottom: 12px; }
.footer p { color: var(--muted); max-width: 42ch; font-size: .92rem; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--text); }
.disclaimer { color: var(--muted-2); font-size: .78rem; margin-top: 28px; border-top: 1px solid var(--border); padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards.cols-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .drop-card { grid-column: auto; grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    transform: none;
    background: rgba(8,4,15,.97); padding: 16px; border-bottom: 1px solid var(--border); gap: 4px;
  }
  .nav-links.open .nav-report {
    width: 100%; text-align: left; border: none; border-radius: 10px;
    background: rgba(255, 255, 255, .05); padding: 10px 12px;
  }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-cta { display: none; }
}
@media (max-width: 620px) {
  .cards.cols-3, .cards.cols-2 { grid-template-columns: 1fr; }
  .store-ad { grid-template-columns: 1fr; }
  .price-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .tagcall { grid-template-columns: 1fr; text-align: center; }
  .tagcall img { max-width: 140px; margin: 0 auto; }
  .balances { grid-template-columns: 1fr; }
  .console-badges { padding: 10px 8px; }
  .console-badges-grid { gap: 5px; }
  .console-badge-token { padding-inline: 2px; }
  .console-badge-token img { width: 42px; height: 42px; }
  .console-badge-name { font-size: .52rem; letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ---------- Live data indicators ---------- */
.live-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
  font-family: var(--font-body);
}
.live-stat b {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34e2a8;
  box-shadow: 0 0 8px #34e2a8, 0 0 2px #34e2a8;
  flex: none;
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.82); }
}

/* ---------- Discord login / user chip ---------- */
/* Breathing room between the bell, the balance chip and the CTA: the bell's
   unread badge hangs outside its circle, and long balances used to push the
   chip under it. */
.nav-auth { position: relative; display: flex; align-items: center; gap: 14px; }
.btn-login { white-space: nowrap; }
.user-chip {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px; padding: 5px 15px 5px 5px;
  cursor: pointer; color: #fff; font: inherit; font-size: 14px;
}
.user-chip:hover { border-color: rgba(255, 255, 255, 0.3); }
.user-chip img { width: 26px; height: 26px; border-radius: 50%; display: block; }
.user-name {
  font-weight: 600; max-width: 130px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-tickets { font-weight: 700; white-space: nowrap; }
.user-keys { font-weight: 700; white-space: nowrap; }
.key-ico { filter: grayscale(1) brightness(1.7); }
.user-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 250px; background: #14141d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 10px; display: none; z-index: 80;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
}
.user-panel.open { display: block; }
.user-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 9px 10px; font-size: 14px;
}
.user-row + .user-row { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.user-row b { white-space: nowrap; }
.user-logout {
  display: block; width: 100%; text-align: center; margin-top: 8px; padding: 8px;
  border-radius: 8px; background: rgba(255, 255, 255, 0.06);
  border: 0; cursor: pointer; font: inherit;
  color: #fff; text-decoration: none; font-size: 13px;
}
.user-logout:hover { background: rgba(255, 255, 255, 0.14); }
@media (max-width: 860px) {
  .user-name { display: none; }
  .nav-back { padding: 6px 10px; font-size: .78rem; }
  .btn-login { padding: 8px 12px; font-size: 13px; }
}

/* ---------- Live wins ticker (desktop + mobile) ---------- */
.win-ticker{
  display:none;
  position:sticky; top:60px; z-index:40;
  align-items:center; gap:12px;
  /* Extra headroom so themed nameplates (rising flames, sparks, crowns
     animating up to ~1em above the name) aren't clipped by the ticker. */
  padding:15px 0 9px 14px;
  background:rgba(14,16,24,.94); backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:.8rem; line-height:1.3; color:#9aa3b5;
  overflow:hidden;
}
.win-ticker.on{display:flex}
.win-ticker-label{
  flex:none; display:flex; align-items:center; gap:8px;
  font-size:.68rem; font-weight:800; letter-spacing:.12em; color:#9aa3b5;
}
.win-ticker-viewport{flex:1; min-width:0; overflow:hidden}
.win-ticker-track{
  display:inline-flex; white-space:nowrap; will-change:transform;
  animation:tickerScroll 40s linear infinite;
}
.win-ticker:hover .win-ticker-track{animation-play-state:paused}
@keyframes tickerScroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
.win-ticker-group{display:inline-flex; flex:none}
.win-ticker .titem{flex:none; margin-right:48px}
.win-ticker .who{color:#eef1f8; font-weight:700}
.win-ticker .titem b{color:#ffd166; font-weight:700}
.win-pulse{
  width:9px; height:9px; border-radius:50%;
  background:#41e08d; position:relative; flex:none;
}
.win-pulse::after{
  content:""; position:absolute; inset:-4px; border-radius:50%;
  border:2px solid rgba(65,224,141,.6);
  animation:winPulse 1.4s ease-out infinite;
}
@keyframes winPulse{
  0%{transform:scale(.5); opacity:1}
  100%{transform:scale(1.4); opacity:0}
}
@media (max-width:640px){
  .win-ticker{font-size:.76rem; padding:14px 0 8px 10px}
  .win-ticker-label{display:none}
}

/* ---------- Mobile optimization ---------- */
html { overflow-x: hidden; }


@media (max-width: 640px) {
  /* --- Nav: everything must fit in one 100vw row --- */
  .nav-inner { gap: 8px; height: 60px; min-width: 0; flex-wrap: nowrap; }
  .brand { font-size: 1.05rem; gap: 8px; flex: 0 1 auto; min-width: 0; white-space: nowrap; }
  .user-chip { min-width: 0; }
  .user-tickets, .user-keys { font-size: .8rem; }
  .brand .diamond { width: 18px; height: 18px; }
  .nav-back { padding: 6px 10px; font-size: .74rem; }
  .nav-auth { margin-left: auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
  .nav-auth .btn-login { padding: 8px 12px; font-size: .78rem; white-space: nowrap; }
  .nav-toggle { font-size: 1.4rem; padding: 4px; flex: none; }
  .nav-links.open { top: 60px; }
  .user-chip .user-name { display: none; }
  .bell-btn { width: 34px; height: 34px; font-size: .95rem; }

  /* Store button: center the label */
  .store-ad .btn { width: 100%; justify-content: center; text-align: center; }
  html { scroll-padding-top: 80px; }

  /* --- Sections & typography --- */
  .wrap { width: min(var(--maxw), 100vw - 32px); }
  .hero h1 { font-size: clamp(2rem, 11vw, 2.6rem); overflow-wrap: anywhere; }
  .hero p.lead { font-size: 1.02rem; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  .announce { font-size: .76rem; padding: 7px 12px; }
  .maintenance-notice { padding-top: 16px; }
  .maintenance-notice-inner { padding: 20px 18px; border-radius: 14px; }

  /* --- Cards --- */
  .card { padding: 18px; }
  .card .tag-badge { top: 12px; right: 12px; font-size: .66rem; }
  .reel { height: 68px; font-size: 2.1rem; }
  .stat { padding: 20px 12px; }
  .stat .num { font-size: 1.45rem; }
  .store-ad { padding-top: 52px; gap: 18px; }
  .pay-badge { font-size: .74rem; padding: 5px 10px; }
  .trade-code { font-size: 1.5rem; letter-spacing: .25em; text-indent: .25em; }
  .lb-table th, .lb-table td { padding: 10px 8px; font-size: .85rem; }
  .drop-card { grid-template-columns: 1fr; }
  .footer { padding: 40px 0 96px; }
}

@media (max-width: 480px) {
  /* Narrow phones: collapse the long "MINI GAMES" brand suffix so the
     game-page header (brand + toggle + auth chip) fits in one row */
  .brand-sub { display: none; }
  /* Storefront pill + key balance get dropped here too — the full balances
     stay available inside the account dropdown panel */
  .nav-back { display: none; }
  .user-chip > .user-keys { display: none; }
}

@media (max-width: 430px) {
  .nav-auth .btn-login { padding: 8px 10px; font-size: .74rem; }
}

/* ---------- Plinko ---------- */
.plinko-card { position: relative; overflow: hidden; }
.plinko-stage {
  margin-top: 12px;
  border-radius: 14px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(168, 85, 247, 0.14), rgba(10, 8, 20, 0.9) 70%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  overflow: hidden;
}
.plinko-stage canvas { display: block; width: 100%; height: auto; }
.plinko-controls { display: flex; gap: 8px; margin-top: 12px; }
.plinko-controls input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}
.plinko-controls input:focus { outline: none; border-color: rgba(168, 85, 247, 0.6); }
.plinko-controls .btn { white-space: nowrap; }
.plinko-controls .btn.auto-on {
  border-color: rgba(248, 113, 113, 0.7);
  color: #f87171;
}

/* Testing lock (unused since launch) — light frost over just this card */
.plinko-frost[hidden] { display: none; }
.plinko-frost {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 14, 34, 0.55);
  -webkit-backdrop-filter: blur(7px) saturate(1.1);
  backdrop-filter: blur(7px) saturate(1.1);
  border-radius: inherit;
  text-align: center;
}
.plinko-frost-inner { max-width: 300px; }
.plinko-frost .frost-icon { font-size: 28px; margin-bottom: 8px; }
.plinko-frost .frost-msg { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; line-height: 1.45; margin: 0 0 14px; }
.frost-form { display: flex; gap: 8px; }
.frost-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}
.frost-form input:focus { outline: none; border-color: rgba(168, 85, 247, 0.7); }
.frost-err { color: #ff7b8a; font-size: 0.85rem; margin-top: 8px; }

/* Kit winner art shown after a live Mega Kit Spinner / Packs delivery */
.kit-win-img {
  display: block;
  margin: 10px auto 0;
  max-width: 260px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.25);
}
.kit-win-img[hidden] { display: none !important; }

/* Kit Plinko rides in the games grid like every other card — one column, and
   the same board size/feel as the original Plinko stage. */
.kit-plinko-stage {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, .25);
  border-radius: 14px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(168, 85, 247, .14), rgba(10, 8, 20, .9) 70%);
}
.kit-plinko-stage canvas { display: block; width: 100%; height: auto; }
.kit-plinko-card .kit-odds { min-height: 0; }

.kit-gen-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 85, 247, .19), transparent 42%),
    rgba(15, 12, 28, .92);
}
.kit-odds {
  min-height: 64px;
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  color: rgba(255,255,255,.62);
  font-size: .78rem;
  line-height: 1.55;
}
.kit-gen-card .btn { width: 100%; margin-top: 12px; }

/* ---------------- Mines ---------------- */
.mines-card { position: relative; }
.mines-status {
  margin: 10px 0 8px;
  padding: 9px 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
}
.mines-status.live {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(74, 222, 128, 0.1);
  animation: minesLivePulse 1.6s ease-in-out infinite;
}
.mines-status.won {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.55);
  background: rgba(250, 204, 21, 0.1);
}
.mines-status.lost {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.12);
}
@keyframes minesLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.35); }
  50% { box-shadow: 0 0 14px 2px rgba(74, 222, 128, 0.25); }
}
.mines-board.over .mines-tile:not(.safe):not(.mine) {
  opacity: 0.28;
  filter: grayscale(1);
}
.mines-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(168, 85, 247, 0.14), rgba(10, 8, 20, 0.9) 70%);
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.mines-tile {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.mines-tile:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(168, 85, 247, 0.6); }
.mines-tile:disabled { cursor: default; }
.mines-tile.safe {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
}
.mines-tile.mine {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.6);
  color: #fca5a5;
}
.mines-tile.hit { background: rgba(248, 113, 113, 0.4); }
.mines-controls { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.mines-label { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; text-align: center; }
.mines-label small { color: rgba(255, 255, 255, 0.4); }
.mines-bets, .mines-counts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.mines-chip {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 14px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.mines-chip.on {
  background: rgba(168, 85, 247, 0.35);
  border-color: rgba(168, 85, 247, 0.8);
  color: #fff;
}
.mines-counts .mines-chip.on {
  background: rgba(248, 113, 113, 0.3);
  border-color: rgba(248, 113, 113, 0.8);
}
.mines-controls input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}
.mines-controls input:focus { outline: none; border-color: rgba(168, 85, 247, 0.6); }

/* ---------------- Tower Climb ---------------- */
.tower-card { position: relative; }
.tower-board {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(251, 191, 36, 0.12), rgba(16, 10, 4, 0.92) 70%);
  border: 1px solid rgba(251, 191, 36, 0.28);
}
.tower-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.tower-row.current { opacity: 1; }
.tower-row.done { opacity: 0.9; }
.tower-mult {
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: rgba(251, 191, 36, 0.65);
  font-variant-numeric: tabular-nums;
}
.tower-row.current .tower-mult { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
.tower-row.done .tower-mult { color: #6ee7b7; }
.tower-tile {
  flex: 1;
  min-height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.35);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.tower-row.current .tower-tile:not(:disabled) {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
  color: rgba(255, 255, 255, 0.6);
  animation: towerRowGlow 1.6s ease-in-out infinite;
}
.tower-tile:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(251, 191, 36, 0.85); background: rgba(251, 191, 36, 0.16); }
.tower-tile:disabled { cursor: default; }
.tower-tile.safe {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
  animation: none;
}
.tower-tile.bomb {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.6);
  color: #fca5a5;
  animation: none;
}
.tower-tile.hit { background: rgba(248, 113, 113, 0.4); animation: towerShake 0.35s ease; }
.tower-board.over .tower-tile:not(.safe):not(.bomb) { opacity: 0.28; filter: grayscale(1); animation: none; }
.tower-board.won { border-color: rgba(250, 204, 21, 0.6); box-shadow: 0 0 22px rgba(250, 204, 21, 0.18); }
@keyframes towerRowGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.0); }
  50% { box-shadow: 0 0 10px 1px rgba(251, 191, 36, 0.28); }
}
@keyframes towerShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.tower-chip-easy.on { background: rgba(52, 211, 153, 0.3) !important; border-color: rgba(52, 211, 153, 0.8) !important; }
.tower-chip-medium.on { background: rgba(251, 191, 36, 0.3) !important; border-color: rgba(251, 191, 36, 0.8) !important; }
.tower-chip-hard.on { background: rgba(248, 113, 113, 0.3) !important; border-color: rgba(248, 113, 113, 0.8) !important; }
@media (max-width: 640px), (pointer: coarse) {
  .tower-board { gap: 5px; padding: 10px; }
  .tower-tile { min-height: 40px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .tower-mult { flex-basis: 54px; font-size: 0.74rem; }
}

/* ---------- Mobile touch-target optimization (game controls) ---------- */
@media (max-width: 640px), (pointer: coarse) {
  /* Bet & mine-count chips: comfortable 44px+ touch targets */
  .mines-bets, .mines-counts { gap: 10px; }
  .mines-chip {
    min-height: 46px;
    padding: 10px 16px;
    font-size: 1rem;
    flex: 1 1 auto;
    min-width: 56px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .mines-controls input,
  .plinko-controls input {
    min-height: 48px;
    font-size: 1.05rem;
    text-align: center;
  }
  .mines-controls .btn { min-height: 50px; width: 100%; font-size: 1rem; }
  .mines-board { gap: 6px; padding: 10px; }
  .mines-tile { font-size: 1.15rem; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

  /* Plinko controls: bet field gets its own row, buttons split the next */
  .plinko-controls { flex-wrap: wrap; gap: 10px; }
  .plinko-controls input { flex: 1 1 100%; }
  .plinko-controls .btn { flex: 1 1 40%; min-height: 50px; font-size: 1rem; }

  /* Game action buttons across cards (SPIN, pack open, etc.) */
  .card .btn { min-height: 48px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
}

/* ================= THEME MARKET ================= */

/* Hero + rail buttons: vibrant color sweep crossing the button */
/* Desktop side rail only — the hero CTA twin was removed Sept 2026. */
.theme-rail {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(100deg, #d9497e, #d98d4d, #d9c64d, #4dd985, #4da6d9, #9a4dd9, #d9497e);
  background-size: 400% 100%;
  animation: themeSweep 8s linear infinite;
  color: #0b0d12;
  font-weight: 800;
  cursor: pointer;
}
.btn-card-event {
  position: relative;
  overflow: hidden;
  padding: 14px 22px; border-radius: 12px; font-size: 1rem;
  color: #fff7ed;
  background:
    radial-gradient(circle at 12% 0%, rgba(249, 115, 22, 0.5), transparent 42%),
    linear-gradient(135deg, #a64016 0%, #d65e1d 48%, #742814 100%);
  border: 1px solid #fb923c;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 0 -12px 18px rgba(74, 20, 7, .24),
    0 8px 22px rgba(234, 88, 12, .22);
  text-shadow: 0 1px 1px rgba(58, 20, 8, .5);
}
.btn-card-event::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #d9f99d;
  box-shadow: 0 0 14px #bef264;
}
.btn-card-event:hover {
  transform: translateY(-2px);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 237, 213, .44), transparent 43%),
    linear-gradient(135deg, #c95118 0%, #ef7d28 48%, #9c3517 100%);
  border-color: #fed7aa;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -12px 18px rgba(74, 20, 7, .2),
    0 12px 30px rgba(249, 115, 22, .38);
}
.theme-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.75) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: themeShine 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes themeSweep { 0% { background-position: 0% 50%; } 100% { background-position: 400% 50%; } }
@keyframes themeShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.theme-rail:disabled {
  filter: grayscale(0.75) brightness(0.7);
  cursor: not-allowed;
}

/* Fixed side rail (desktop only) */
.theme-rail {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 60;
  transform: rotate(180deg) translateY(50%);
  writing-mode: vertical-rl;
  padding: 18px 10px;
  border-radius: 0 12px 12px 0;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
@media (max-width: 900px) { .theme-rail { display: none; } }

/* Modal */
.theme-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
body.theme-modal-open { overflow: hidden; }
.theme-modal {
  width: min(1180px, 100%);
  max-height: min(86vh, 900px);
  overflow-y: auto;
  background: linear-gradient(180deg, #141826, #0d101a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.theme-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.theme-modal-title {
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 1.2rem;
  background: linear-gradient(90deg, #ff3d81, #ffe53d, #3db8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.theme-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text, #fff);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}
.theme-modal-sub { color: var(--muted, #9aa3b5); margin: 8px 0 16px; font-size: 0.95rem; }
.theme-modal-msg { min-height: 1.2em; margin-top: 12px; font-size: 0.92rem; color: #7ee29a; }
.theme-modal-msg.bad { color: #ff7d7d; }

/* Dev lock panel */
.theme-lock {
  border: 1px dashed rgba(255, 200, 60, 0.5);
  background: rgba(255, 200, 60, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.theme-lock-badge { font-weight: 900; letter-spacing: 0.12em; color: #ffc83c; font-size: 0.85rem; }
.theme-lock p { color: var(--muted, #9aa3b5); font-size: 0.9rem; margin: 6px 0 10px; }
.theme-lock-row { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-lock-row input {
  flex: 1;
  min-width: 160px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  padding: 10px 12px;
}
.theme-lock-msg { color: #ff7d7d; font-size: 0.85rem; min-height: 1.1em; margin-top: 6px; }

/* Theme cards */
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
@media (max-width: 1100px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-grid.locked .theme-card { opacity: 0.85; }
.theme-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.theme-card.is-equipped { border-color: rgba(126, 226, 154, 0.6); box-shadow: 0 0 18px rgba(126, 226, 154, 0.15); }
.theme-preview {
  width: 100%;
  padding: 16px 8px;
  border-radius: 10px;
  background: #05070c;
  font-weight: 800;
  font-size: 1.05rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.theme-name { font-weight: 700; font-size: 0.95rem; }
.theme-act {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  padding: 9px 10px;
  font-weight: 800;
  cursor: pointer;
}
.theme-act.buy { background: linear-gradient(90deg, #2f6bff, #8a3dff); border: none; }
.theme-act.equipped { background: rgba(126, 226, 154, 0.15); border-color: rgba(126, 226, 154, 0.5); color: #7ee29a; }
.theme-act:disabled { filter: grayscale(0.8) brightness(0.6); cursor: not-allowed; }

/* ---------- Name theme animations (used in win ticker + previews) ---------- */
.name-theme { font-weight: 900; }
.name-theme-glow_white, .who.name-theme-glow_white { color: #fff; animation: ntGlowWhite 1.6s ease-in-out infinite; }
@keyframes ntGlowWhite {
  0%, 100% { text-shadow: 0 0 4px #fff, 0 0 12px rgba(255,255,255,0.8); }
  50% { text-shadow: 0 0 10px #fff, 0 0 26px #fff, 0 0 40px rgba(255,255,255,0.9); }
}
.name-theme-neon_pink, .who.name-theme-neon_pink { color: #ff4fd8; animation: ntNeonPink 1.4s ease-in-out infinite; }
@keyframes ntNeonPink {
  0%, 100% { text-shadow: 0 0 6px #ff4fd8, 0 0 16px rgba(255,79,216,0.8); }
  50% { text-shadow: 0 0 12px #ff4fd8, 0 0 30px #ff4fd8; }
}
.name-theme-ice_blue, .who.name-theme-ice_blue { color: #9be8ff; animation: ntIceBlue 2.2s ease-in-out infinite; }
@keyframes ntIceBlue {
  0%, 100% { text-shadow: 0 0 6px #66d4ff, 0 0 14px rgba(102,212,255,0.7); filter: brightness(1); }
  50% { text-shadow: 0 0 14px #b8f0ff, 0 0 30px #66d4ff; filter: brightness(1.25); }
}
.name-theme-toxic_green, .who.name-theme-toxic_green { color: #4dff5e; animation: ntToxic 1.1s steps(2, end) infinite; }
@keyframes ntToxic {
  0%, 100% { text-shadow: 0 0 6px #4dff5e, 0 0 18px rgba(77,255,94,0.8); }
  50% { text-shadow: 0 0 14px #a4ff4d, 0 0 32px #4dff5e; }
}
.name-theme-molten_gold, .who.name-theme-molten_gold {
  background: linear-gradient(90deg, #ffdf6b, #ff9d2e, #ffe9a3, #ff9d2e, #ffdf6b);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ntGold 4.5s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 170, 40, 0.7));
}
@keyframes ntGold { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.name-theme-rainbow_surge, .who.name-theme-rainbow_surge {
  background: linear-gradient(90deg, #ff3d81, #ff9a3d, #ffe53d, #3dff88, #3db8ff, #b03dff, #ff3d81);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ntRainbow 2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}
@keyframes ntRainbow { 0% { background-position: 0% 50%; } 100% { background-position: 400% 50%; } }

@media (max-width: 700px) {
  .theme-modal { padding: 16px; border-radius: 14px; }
  .theme-grid { grid-template-columns: 1fr; gap: 10px; }
  .theme-preview { font-size: 0.95rem; padding: 12px 6px; }
}

/* hidden attribute must beat the display:flex above */
.theme-modal-backdrop[hidden] { display: none; }

/* Browsing-level lock: frosted mystery cards until developer access */
.theme-grid.frosted { position: relative; }
.theme-card-frost {
  filter: blur(4px) saturate(0.4) brightness(0.8);
  pointer-events: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.theme-card-frost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.14) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: frostShimmer 3.2s ease-in-out infinite;
}
@keyframes frostShimmer { 0%, 55% { transform: translateX(-120%); } 90%, 100% { transform: translateX(120%); } }
.theme-card-frost .frost-name { color: rgba(255, 255, 255, 0.55); letter-spacing: 0.2em; }
.theme-card-frost .frost-act { text-align: center; background: rgba(255, 255, 255, 0.05); }

/* Rarity frames: each frame stacks its pair of themes vertically */
.rarity-frame {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 12px 12px;
  border-radius: 16px;
  position: relative;
  border: 1px solid transparent;
}
.rarity-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.rarity-common {
  background: rgba(46, 204, 113, 0.06);
  border-color: rgba(46, 204, 113, 0.35);
  box-shadow: 0 0 18px rgba(46, 204, 113, 0.08) inset;
}
.rarity-common .rarity-label { color: rgba(46, 204, 113, 0.85); }
.rarity-rare {
  background: rgba(52, 152, 219, 0.06);
  border-color: rgba(52, 152, 219, 0.4);
  box-shadow: 0 0 18px rgba(52, 152, 219, 0.1) inset;
}
.rarity-rare .rarity-label { color: rgba(93, 173, 226, 0.9); }
.rarity-epic {
  background: rgba(155, 89, 182, 0.07);
  border-color: rgba(155, 89, 182, 0.45);
  box-shadow: 0 0 22px rgba(155, 89, 182, 0.12) inset;
}
.rarity-epic .rarity-label { color: rgba(187, 143, 206, 0.95); }

/* ---- Legendary Options: weekly single-item showcase ---- */
.rarity-legendary {
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 214, 90, 0.55);
  box-shadow: 0 0 26px rgba(255, 214, 90, 0.14) inset, 0 0 14px rgba(255, 214, 90, 0.1);
}
.rarity-legendary .rarity-label {
  color: #ffd65a;
  text-shadow: 0 0 10px rgba(255, 214, 90, 0.5);
}
.legend-week {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}
.legend-past-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
}
.theme-act.legend-past { font-size: 0.72rem; }
.rarity-legendary .theme-preview { padding: 20px 6px; overflow: visible; }

/* Legendary name effects — decorations, not just flashes. Each span gets
   position:relative plus ::before/::after animated ornaments. */
.name-theme, .who.name-theme { position: relative; display: inline-block; }

/* 1. Inferno Blaze — name on fire, flames licking upward */
.name-theme-inferno_blaze, .who.name-theme-inferno_blaze {
  background: linear-gradient(0deg, #ff3b00, #ffb300 55%, #fff6c8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: legFlicker 0.35s ease-in-out infinite alternate;
}
.name-theme-inferno_blaze::before {
  content: "🔥"; position: absolute; left: -1.1em; bottom: -0.1em; font-size: 0.8em;
  animation: legFlameRise 1.1s ease-in infinite;
}
.name-theme-inferno_blaze::after {
  content: "🔥"; position: absolute; right: -1.1em; bottom: -0.1em; font-size: 0.8em;
  animation: legFlameRise 1.4s 0.4s ease-in infinite;
}
@keyframes legFlicker { from { filter: brightness(1) drop-shadow(0 0 4px rgba(255,120,0,.8)); } to { filter: brightness(1.25) drop-shadow(0 2px 8px rgba(255,60,0,.9)); } }
@keyframes legFlameRise { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-1em) scale(0.5); opacity: 0; } }

/* 2. Thunder Storm — dark clouds, lightning strikes */
.name-theme-thunder_storm, .who.name-theme-thunder_storm { color: #cfd8ff; animation: legStormFlash 2.4s steps(1, end) infinite; }
.name-theme-thunder_storm::before {
  content: "⛈️"; position: absolute; left: 50%; top: -1em; transform: translateX(-50%); font-size: 0.75em;
}
.name-theme-thunder_storm::after {
  content: "⚡"; position: absolute; right: -1em; top: -0.6em; font-size: 0.9em;
  animation: legBolt 2.4s linear infinite;
}
@keyframes legStormFlash {
  0%, 78%, 84%, 100% { text-shadow: 0 0 6px rgba(120,140,255,0.5); color: #cfd8ff; }
  80%, 82% { text-shadow: 0 0 18px #fff, 0 0 30px #9db4ff; color: #ffffff; }
}
@keyframes legBolt { 0%, 76% { opacity: 0; transform: translateY(0); } 80% { opacity: 1; transform: translateY(0.3em); } 88%, 100% { opacity: 0; transform: translateY(0.6em); } }

/* 3. Crystal Frost — gems glinting around an icy prism name */
.name-theme-crystal_frost, .who.name-theme-crystal_frost {
  background: linear-gradient(120deg, #bfeaff, #ffffff, #b9c6ff, #e8fbff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: legPrism 3.5s linear infinite;
}
.name-theme-crystal_frost::before {
  content: "💎"; position: absolute; left: -1.2em; top: -0.5em; font-size: 0.7em;
  animation: legGem 2.2s ease-in-out infinite;
}
.name-theme-crystal_frost::after {
  content: "✦"; position: absolute; right: -1em; bottom: -0.4em; color: #dff4ff; font-size: 0.8em;
  animation: legGem 1.8s 0.6s ease-in-out infinite;
}
@keyframes legPrism { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes legGem { 0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); filter: drop-shadow(0 0 6px #bfeaff); } }

/* 4. Ghost Train — locomotive chugging with turning wheels & smoke */
.name-theme-ghost_train, .who.name-theme-ghost_train { color: #d7d7e0; text-shadow: 0 0 8px rgba(160,160,200,0.6); animation: legChug 0.5s linear infinite; }
.name-theme-ghost_train::before {
  content: "🚂"; position: absolute; left: -1.4em; bottom: -0.15em; font-size: 0.95em;
  animation: legWheels 0.5s linear infinite;
}
.name-theme-ghost_train::after {
  content: "💨"; position: absolute; left: -1.7em; top: -0.9em; font-size: 0.7em;
  animation: legSmoke 1.6s ease-out infinite;
}
@keyframes legChug { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes legWheels { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-1px) rotate(-2deg); } 75% { transform: translateY(1px) rotate(2deg); } }
@keyframes legSmoke { 0% { transform: translate(0, 0) scale(0.7); opacity: 0.9; } 100% { transform: translate(0.9em, -1.1em) scale(1.5); opacity: 0; } }

/* 5. Dragon Soul — emerald-gold shimmer with a circling dragon */
.name-theme-dragon_soul, .who.name-theme-dragon_soul {
  background: linear-gradient(90deg, #2eff8f, #ffd65a, #2eff8f);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: legDragonShift 3s ease-in-out infinite;
}
.name-theme-dragon_soul::before {
  content: "🐉"; position: absolute; left: -1.3em; top: -0.55em; font-size: 0.85em;
  animation: legDragonSway 2.6s ease-in-out infinite;
}
@keyframes legDragonShift { 0%, 100% { background-position: 0% 50%; filter: drop-shadow(0 0 5px rgba(46,255,143,.6)); } 50% { background-position: 250% 50%; filter: drop-shadow(0 0 9px rgba(255,214,90,.7)); } }
@keyframes legDragonSway { 0%, 100% { transform: translate(0,0) rotate(-8deg); } 50% { transform: translate(0.4em,-0.3em) rotate(10deg); } }

/* 6. Cosmic Void — collapsing star, purple event horizon */
.name-theme-cosmic_void, .who.name-theme-cosmic_void {
  color: #c9a6ff;
  text-shadow: 0 0 10px #6a00ff, 0 0 22px rgba(106,0,255,0.6);
  animation: legVoidPulse 2.8s ease-in-out infinite;
}
.name-theme-cosmic_void::before {
  content: "🌌"; position: absolute; left: -1.25em; top: -0.5em; font-size: 0.75em;
  animation: legVoidSpin 6s linear infinite;
}
.name-theme-cosmic_void::after {
  content: "✧"; position: absolute; right: -0.9em; top: -0.55em; color: #e6d5ff; font-size: 0.7em;
  animation: legVoidOrbit 3.2s linear infinite;
}
@keyframes legVoidPulse { 0%, 100% { transform: scale(1); letter-spacing: 0; } 50% { transform: scale(0.97); letter-spacing: -0.02em; } }
@keyframes legVoidSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes legVoidOrbit { 0% { transform: translate(0,0); opacity: 1; } 100% { transform: translate(-0.8em, 0.7em) scale(0.4); opacity: 0; } }

/* 7. Gold Rush — coins raining over a rich golden name */
.name-theme-gold_rush, .who.name-theme-gold_rush {
  background: linear-gradient(0deg, #a86e00, #ffd75e 60%, #fff3bf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgba(255,200,60,0.55));
}
.name-theme-gold_rush::before {
  content: "🪙"; position: absolute; left: 10%; top: -1em; font-size: 0.65em;
  animation: legCoinFall 1.3s linear infinite;
}
.name-theme-gold_rush::after {
  content: "💰"; position: absolute; right: -1.1em; bottom: -0.2em; font-size: 0.75em;
  animation: legBagBounce 1.6s ease-in-out infinite;
}
@keyframes legCoinFall { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(1.5em) rotate(300deg); opacity: 0; } }
@keyframes legBagBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.25em); } }

/* 8. Blood Moon — crimson eclipse, ominous slow pulse */
.name-theme-blood_moon, .who.name-theme-blood_moon {
  color: #ff4b4b;
  text-shadow: 0 0 12px rgba(255,0,0,0.75), 0 0 26px rgba(120,0,0,0.8);
  animation: legBloodPulse 3.4s ease-in-out infinite;
}
.name-theme-blood_moon::before {
  content: "🌑"; position: absolute; left: -1.25em; top: -0.5em; font-size: 0.8em;
  animation: legEclipse 3.4s ease-in-out infinite;
}
@keyframes legBloodPulse { 0%, 100% { filter: brightness(0.85); } 50% { filter: brightness(1.35); } }
@keyframes legEclipse { 0%, 100% { filter: drop-shadow(0 0 4px #f00) hue-rotate(0deg); transform: scale(1); } 50% { filter: drop-shadow(0 0 12px #f00) hue-rotate(-20deg); transform: scale(1.12); } }

/* 9. Neon Samurai — cyan/red blade slashes across the name */
.name-theme-neon_samurai, .who.name-theme-neon_samurai {
  color: #7df9ff;
  text-shadow: 0 0 8px rgba(0,240,255,0.8);
  animation: legSamuraiHue 2s steps(1, end) infinite;
}
.name-theme-neon_samurai::before {
  content: "⚔️"; position: absolute; left: -1.2em; top: -0.4em; font-size: 0.8em;
  animation: legSlash 2s ease-in-out infinite;
}
@keyframes legSamuraiHue {
  0%, 44%, 100% { color: #7df9ff; text-shadow: 0 0 8px rgba(0,240,255,0.8); }
  50%, 94% { color: #ff5d5d; text-shadow: 0 0 8px rgba(255,40,40,0.8); }
}
@keyframes legSlash { 0%, 40% { transform: rotate(0deg); } 48% { transform: rotate(-35deg) translateY(0.2em); } 56%, 100% { transform: rotate(0deg); } }

/* 10. Angel Wings — haloed name with drifting feathers */
.name-theme-angel_wings, .who.name-theme-angel_wings {
  color: #fffbe8;
  text-shadow: 0 0 10px rgba(255,240,180,0.9), 0 0 24px rgba(255,255,255,0.5);
  animation: legHalo 3s ease-in-out infinite;
}
.name-theme-angel_wings::before {
  content: "😇"; position: absolute; left: 50%; top: -1.05em; transform: translateX(-50%); font-size: 0.7em;
}
.name-theme-angel_wings::after {
  content: "🪽"; position: absolute; right: -1.15em; top: -0.3em; font-size: 0.75em;
  animation: legFeather 2.4s ease-in-out infinite;
}
@keyframes legHalo { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.3); } }
@keyframes legFeather { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-0.3em) rotate(12deg); } }

/* ---------- Crash ---------- */
.crash-mult-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  margin: 12px 0 10px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(168, 85, 247, 0.16), transparent 65%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.crash-stage {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  margin: 0 0 12px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(168, 85, 247, 0.22), transparent 65%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

/* Rocket-through-space scene (purely cosmetic; server clock stays boss) */
.crash-scene { position: absolute; inset: 0; pointer-events: none; }
.crash-stars {
  position: absolute;
  left: 0; right: 0; top: -160px; bottom: -160px;
  background-image:
    radial-gradient(1.6px 1.6px at 18% 12%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1.2px 1.2px at 64% 34%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.8px 1.8px at 42% 68%, rgba(233, 213, 255, 0.8), transparent 60%),
    radial-gradient(1.1px 1.1px at 86% 82%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 8% 88%, rgba(216, 180, 254, 0.7), transparent 60%);
  background-size: 160px 160px;
  opacity: 0.28;
  animation: crashStars 5.5s linear infinite;
  animation-play-state: paused;
}
.crash-stars2 {
  background-size: 104px 104px;
  opacity: 0.16;
  animation-duration: 2.6s;
}
.crash-stage.flying .crash-stars { animation-play-state: running; opacity: 0.5; }
.crash-stage.flying .crash-stars2 { opacity: 0.3; }
@keyframes crashStars {
  from { transform: translateY(-160px); }
  to { transform: translateY(0); }
}

.crash-rocket {
  position: absolute;
  left: 20%;
  bottom: 6px;
  font-size: 26px;
  line-height: 1;
  transform: none;                 /* 🚁 flies level — never tilted */
  filter: grayscale(0.5) opacity(0.6);
  transition: bottom 0.7s ease, left 0.7s ease, filter 0.4s ease;
  z-index: 1;
}
.crash-stage.flying .crash-rocket {
  bottom: 42%;
  filter: none;
  animation:
    rocketBob 0.9s ease-in-out infinite,
    rocketSway 7s ease-in-out infinite;
}
@keyframes rocketSway {
  0%, 100% { left: 20%; }
  25% { left: 68%; }
  50% { left: 40%; }
  75% { left: 74%; }
}
/* Rotor wash: thin horizontal wisps pushed straight DOWN out of the rotor,
   spreading and fading as they fall. Two of them, offset in time, so the
   downdraft never reads as an exhaust flame. */
.crash-stage.flying .crash-rocket::after,
.crash-stage.flying .crash-rocket::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, rgba(233, 213, 255, 0), rgba(233, 213, 255, 0.8), rgba(233, 213, 255, 0));
  filter: blur(1px);
  pointer-events: none;
}
.crash-stage.flying .crash-rocket::after {
  width: 24px;
  animation: heliWash 0.85s linear infinite;
}
.crash-stage.flying .crash-rocket::before {
  width: 18px;
  animation: heliWash 0.85s linear 0.42s infinite;
}
@keyframes rocketBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes heliWash {
  from { transform: translate(-50%, 0) scaleX(0.55); opacity: 0; }
  25% { opacity: 0.85; }
  to { transform: translate(-50%, 16px) scaleX(1.25); opacity: 0; }
}

.crash-stage.crashed .crash-rocket {
  animation: rocketBoom 0.6s ease-out;
  filter: none;
  transform: none;
  font-size: 30px;
}
@keyframes rocketBoom {
  0% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.6); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.crash-stage.crashed { animation: stageShake 0.45s ease-in-out; }
@keyframes stageShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.crash-stage.banked .crash-rocket {
  bottom: 115%;
  filter: none;
  transition: bottom 0.9s cubic-bezier(0.5, 0, 0.9, 0.4);
}
.crash-mult {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #e9d5ff;
  text-shadow: 0 0 24px rgba(168, 85, 247, 0.55);
}
.crash-mult.crashed { color: #fca5a5; text-shadow: 0 0 24px rgba(239, 68, 68, 0.6); }
.crash-mult.banked { color: #86efac; text-shadow: 0 0 24px rgba(34, 197, 94, 0.6); }

/* ---------- Logged-out demo showcase ---------- */
/* Greyed-out game buttons: still clickable (the click explains you need to
   log in) but clearly not "live". */
.btn.demo-locked {
  filter: grayscale(1);
  opacity: 0.55;
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
}
.btn.demo-locked:hover { transform: none; box-shadow: none; }

.raffle-total {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-block;
}
.raffle-total[hidden] { display: none; }

/* ----- Profile page + profile-panel button ----- */
.user-inventory {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.user-inventory:hover { filter: brightness(1.2); }
/* Dev ⇄ Player view switch (dev accounts only). It is a <button> sharing the
   menu-link look; the "on" state is loud on purpose — a dev in player view is
   spending real tickets and should never be in any doubt about it. */
.user-viewswitch { width: 100%; cursor: pointer; font: inherit; font-weight: 700; }
.user-viewswitch:disabled { opacity: 0.6; cursor: default; }
.user-viewswitch-on {
  background: linear-gradient(135deg, rgba(255, 170, 60, 0.35), rgba(255, 90, 90, 0.30));
  border-color: rgba(255, 190, 90, 0.55);
}
/* Standing reminder pill while a dev browses as a player. */
.player-view-flag {
  position: fixed; left: 14px; bottom: 14px; z-index: 90;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
  font-size: 0.78rem; font-weight: 700; color: #ffd9a3;
  background: rgba(40, 18, 8, 0.92); border: 1px solid rgba(255, 170, 70, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.player-view-flag:hover { filter: brightness(1.15); }
.inv-wrap { padding: 48px 20px 80px; }
.inv-login { text-align: center; padding: 40px 0; }
.inv-login p { color: var(--muted, #9aa3b5); margin-bottom: 16px; }
.inv-section {
  margin-top: 28px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.inv-section h3 { margin: 0 0 6px; }
.inv-sub { color: var(--muted, #9aa3b5); font-size: 0.92rem; margin: 0 0 16px; }
.inv-balances { display: grid; gap: 8px; }
.inv-bal-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.inv-badge-name { display: inline-flex; align-items: center; gap: 10px; }
.inv-badge-icon { width: 34px; height: 34px; object-fit: contain; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.inv-theme-card {
  padding: 18px 14px; border-radius: 14px; text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.inv-theme-card.equipped { border-color: rgba(74, 222, 128, 0.5); box-shadow: 0 0 18px rgba(74, 222, 128, 0.15); }
.inv-theme-name { font-size: 1.15rem; font-weight: 900; }
.inv-theme-rarity { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.rarity-txt-common { color: #cbd5e1; }
.rarity-txt-rare { color: #60a5fa; }
.rarity-txt-epic { color: #c084fc; }
.rarity-txt-legendary { color: #fbbf24; }
.inv-empty { color: var(--muted, #9aa3b5); padding: 10px 0; }
.inv-empty a { color: #60a5fa; }
.inv-msg { min-height: 1.2em; margin-top: 12px; font-size: 0.92rem; color: #7ee29a; }
.inv-msg.bad { color: #ff7d7d; }

.inv-back { display: inline-block; margin-bottom: 18px; }

/* ---- Profile: playercard hero + tabbed sections ---- */
.inv-card-hero {
  margin-top: 24px; padding: 22px; border-radius: 18px;
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.14), rgba(255, 255, 255, 0.04) 60%);
  border: 1px solid rgba(167, 139, 250, 0.28);
}
.inv-card-hero { scroll-margin-top: 96px; }
.inv-card-hero-head { flex: 1 1 260px; min-width: 0; }
.inv-card-hero-head h3 { margin: 0 0 6px; }
.inv-card-hero-head .inv-sub { margin: 0; }
.inv-card-hero #invPlayercard { flex: 0 1 430px; min-width: 0; }
.inv-card-hero .pc-inline { max-width: none; }
.inv-card-hero .pc-inline-hint { display: none; } /* the hero header says it already */

.inv-tabs {
  display: flex; gap: 8px; margin-top: 26px; padding-bottom: 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.inv-tabs::-webkit-scrollbar { display: none; }
.inv-tab {
  flex: 0 0 auto; cursor: pointer; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px; font: inherit; font-weight: 800;
  font-size: 0.92rem; color: var(--muted, #9aa3b5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.inv-tab:hover { color: var(--text, #fff); border-color: rgba(167, 139, 250, 0.4); }
.inv-tab.active {
  color: #fff; background: rgba(139, 92, 246, 0.22);
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: 0 0 22px -10px rgba(167, 139, 250, 0.8);
}
.inv-tab-n {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.inv-tab.active .inv-tab-n { background: rgba(255, 255, 255, 0.26); }
/* .inv-section has no display of its own, but be explicit — a pane must stay
   gone when the attribute is set. */
.inv-pane[hidden], .inv-tab-n[hidden] { display: none; }
.inv-pane { margin-top: 14px; }
@media (max-width: 640px) {
  .inv-card-hero { padding: 18px; gap: 18px; }
  .inv-tab { padding: 9px 13px; font-size: 0.86rem; }
}

/* ===== Panel Themes (MYTHICAL) — full-site color reskins ===== */
/* Each class re-tints the CSS variables the whole site is painted with. */
body.panel-crimson_night, .pnl-crimson_night { --bg:#0f0305; --bg-2:#1c0509; --grad:linear-gradient(120deg,#dc2626 0%,#7f1d1d 40%,#000 100%); --grad-soft:linear-gradient(120deg,rgba(220,38,38,.25),rgba(127,29,29,.2),rgba(0,0,0,.3)); --glow:0 0 40px -8px rgba(220,38,38,.5); --purple:#dc2626; --violet:#ef4444; --magenta:#b91c1c; --fuchsia:#ef4444; --pink:#f87171; --blue:#991b1b; --cyan:#fca5a5; }
body.panel-ocean_deep, .pnl-ocean_deep { --bg:#020914; --bg-2:#04182b; --grad:linear-gradient(120deg,#0ea5e9 0%,#0369a1 50%,#22d3ee 100%); --grad-soft:linear-gradient(120deg,rgba(14,165,233,.22),rgba(3,105,161,.2),rgba(34,211,238,.18)); --glow:0 0 40px -8px rgba(14,165,233,.5); --purple:#0284c7; --violet:#0ea5e9; --magenta:#0369a1; --fuchsia:#38bdf8; --pink:#7dd3fc; --blue:#0ea5e9; --cyan:#22d3ee; }
body.panel-emerald_jungle, .pnl-emerald_jungle { --bg:#02120a; --bg-2:#051f12; --grad:linear-gradient(120deg,#10b981 0%,#065f46 50%,#34d399 100%); --grad-soft:linear-gradient(120deg,rgba(16,185,129,.22),rgba(6,95,70,.2),rgba(52,211,153,.18)); --glow:0 0 40px -8px rgba(16,185,129,.5); --purple:#059669; --violet:#10b981; --magenta:#047857; --fuchsia:#34d399; --pink:#6ee7b7; --blue:#065f46; --cyan:#34d399; }
body.panel-golden_empire, .pnl-golden_empire { --bg:#120c02; --bg-2:#241804; --grad:linear-gradient(120deg,#f59e0b 0%,#b45309 50%,#fbbf24 100%); --grad-soft:linear-gradient(120deg,rgba(245,158,11,.22),rgba(180,83,9,.2),rgba(251,191,36,.18)); --glow:0 0 40px -8px rgba(245,158,11,.5); --purple:#d97706; --violet:#f59e0b; --magenta:#b45309; --fuchsia:#fbbf24; --pink:#fcd34d; --blue:#92400e; --cyan:#fde68a; }
body.panel-frost_bite, .pnl-frost_bite { --bg:#050a12; --bg-2:#0b1626; --grad:linear-gradient(120deg,#e0f2fe 0%,#38bdf8 50%,#93c5fd 100%); --grad-soft:linear-gradient(120deg,rgba(224,242,254,.14),rgba(56,189,248,.18),rgba(147,197,253,.16)); --glow:0 0 40px -8px rgba(147,197,253,.5); --purple:#60a5fa; --violet:#93c5fd; --magenta:#38bdf8; --fuchsia:#bae6fd; --pink:#e0f2fe; --blue:#3b82f6; --cyan:#7dd3fc; }
body.panel-toxic_swamp, .pnl-toxic_swamp { --bg:#070d02; --bg-2:#101c05; --grad:linear-gradient(120deg,#84cc16 0%,#3f6212 50%,#a3e635 100%); --grad-soft:linear-gradient(120deg,rgba(132,204,22,.2),rgba(63,98,18,.2),rgba(163,230,53,.16)); --glow:0 0 40px -8px rgba(132,204,22,.5); --purple:#65a30d; --violet:#84cc16; --magenta:#4d7c0f; --fuchsia:#a3e635; --pink:#bef264; --blue:#3f6212; --cyan:#d9f99d; }
body.panel-synthwave_sunset, .pnl-synthwave_sunset { --bg:#12040c; --bg-2:#220818; --grad:linear-gradient(120deg,#f97316 0%,#ec4899 50%,#a855f7 100%); --grad-soft:linear-gradient(120deg,rgba(249,115,22,.2),rgba(236,72,153,.2),rgba(168,85,247,.18)); --glow:0 0 40px -8px rgba(236,72,153,.5); --purple:#a855f7; --violet:#c084fc; --magenta:#ec4899; --fuchsia:#f472b6; --pink:#fb923c; --blue:#f97316; --cyan:#fdba74; }
body.panel-shadow_ops, .pnl-shadow_ops { --bg:#060607; --bg-2:#101012; --grad:linear-gradient(120deg,#71717a 0%,#27272a 50%,#a1a1aa 100%); --grad-soft:linear-gradient(120deg,rgba(113,113,122,.18),rgba(39,39,42,.25),rgba(161,161,170,.14)); --glow:0 0 40px -8px rgba(161,161,170,.35); --purple:#52525b; --violet:#71717a; --magenta:#3f3f46; --fuchsia:#a1a1aa; --pink:#d4d4d8; --blue:#52525b; --cyan:#e4e4e7; }
body.panel-royal_amethyst, .pnl-royal_amethyst { --bg:#0a0414; --bg-2:#150829; --grad:linear-gradient(120deg,#7c3aed 0%,#4c1d95 50%,#a78bfa 100%); --grad-soft:linear-gradient(120deg,rgba(124,58,237,.24),rgba(76,29,149,.22),rgba(167,139,250,.18)); --glow:0 0 40px -8px rgba(124,58,237,.55); --purple:#7c3aed; --violet:#8b5cf6; --magenta:#6d28d9; --fuchsia:#a78bfa; --pink:#c4b5fd; --blue:#5b21b6; --cyan:#ddd6fe; }
body.panel-cherry_blossom, .pnl-cherry_blossom { --bg:#120409; --bg-2:#230a14; --grad:linear-gradient(120deg,#f9a8d4 0%,#ec4899 50%,#fbcfe8 100%); --grad-soft:linear-gradient(120deg,rgba(249,168,212,.18),rgba(236,72,153,.2),rgba(251,207,232,.14)); --glow:0 0 40px -8px rgba(236,72,153,.5); --purple:#db2777; --violet:#ec4899; --magenta:#be185d; --fuchsia:#f472b6; --pink:#f9a8d4; --blue:#9d174d; --cyan:#fbcfe8; }
body.panel-lava_flow, .pnl-lava_flow { --bg:#120502; --bg-2:#230b04; --grad:linear-gradient(120deg,#ef4444 0%,#f97316 50%,#fbbf24 100%); --grad-soft:linear-gradient(120deg,rgba(239,68,68,.22),rgba(249,115,22,.2),rgba(251,191,36,.16)); --glow:0 0 40px -8px rgba(249,115,22,.5); --purple:#dc2626; --violet:#ef4444; --magenta:#ea580c; --fuchsia:#f97316; --pink:#fb923c; --blue:#b91c1c; --cyan:#fdba74; }
body.panel-arctic_aurora, .pnl-arctic_aurora { --bg:#031010; --bg-2:#062020; --grad:linear-gradient(120deg,#2dd4bf 0%,#0d9488 40%,#4ade80 100%); --grad-soft:linear-gradient(120deg,rgba(45,212,191,.2),rgba(13,148,136,.2),rgba(74,222,128,.16)); --glow:0 0 40px -8px rgba(45,212,191,.5); --purple:#0d9488; --violet:#2dd4bf; --magenta:#0f766e; --fuchsia:#5eead4; --pink:#4ade80; --blue:#115e59; --cyan:#99f6e4; }
body.panel-cyber_grid, .pnl-cyber_grid { --bg:#020a0a; --bg-2:#041616; --grad:linear-gradient(120deg,#22d3ee 0%,#0e7490 50%,#67e8f9 100%); --grad-soft:linear-gradient(120deg,rgba(34,211,238,.2),rgba(14,116,144,.2),rgba(103,232,249,.16)); --glow:0 0 40px -8px rgba(34,211,238,.5); --purple:#0891b2; --violet:#22d3ee; --magenta:#0e7490; --fuchsia:#67e8f9; --pink:#a5f3fc; --blue:#155e75; --cyan:#22d3ee; }
body.panel-blood_gold, .pnl-blood_gold { --bg:#0f0503; --bg-2:#1e0a05; --grad:linear-gradient(120deg,#b91c1c 0%,#f59e0b 60%,#7f1d1d 100%); --grad-soft:linear-gradient(120deg,rgba(185,28,28,.24),rgba(245,158,11,.18),rgba(127,29,29,.22)); --glow:0 0 40px -8px rgba(245,158,11,.45); --purple:#b91c1c; --violet:#dc2626; --magenta:#d97706; --fuchsia:#f59e0b; --pink:#fbbf24; --blue:#7f1d1d; --cyan:#fde68a; }
body.panel-midnight_storm, .pnl-midnight_storm { --bg:#04070f; --bg-2:#0a101f; --grad:linear-gradient(120deg,#3b82f6 0%,#1e3a8a 50%,#64748b 100%); --grad-soft:linear-gradient(120deg,rgba(59,130,246,.22),rgba(30,58,138,.22),rgba(100,116,139,.16)); --glow:0 0 40px -8px rgba(59,130,246,.5); --purple:#2563eb; --violet:#3b82f6; --magenta:#1d4ed8; --fuchsia:#60a5fa; --pink:#93c5fd; --blue:#1e3a8a; --cyan:#94a3b8; }

/* Market category headers + mythical frame + panel swatch cards */
.market-cat {
  grid-column: 1 / -1;
  font-family: var(--font-display, sans-serif);
  font-size: 0.85rem; font-weight: 900; letter-spacing: 0.22em;
  color: var(--muted, #9aa3b5); margin: 18px 0 2px;
  display: flex; align-items: center; gap: 12px;
}
.market-cat::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.market-cat:first-child { margin-top: 0; }
.rarity-frame.rarity-mythical {
  grid-column: 1 / -1;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 26px rgba(239, 68, 68, 0.14) inset, 0 0 14px rgba(239, 68, 68, 0.1);
}
.rarity-frame.rarity-mythical .rarity-label { color: #f87171; text-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
.mythical-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.mythical-row .theme-card { flex: 0 1 300px; min-width: 240px; }
.mythical-side {
  flex: 1 1 260px; min-width: 220px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.mythical-blurb { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.mythical-collection { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mythical-collection .theme-act.legend-past { width: auto; padding: 8px 14px; }
@media (max-width: 640px) { .mythical-row .theme-card { flex-basis: 100%; } }
.panel-swatch { width: 100%; height: 84px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); }
.sw-crimson_night { background: linear-gradient(120deg,#dc2626,#7f1d1d,#000); }
.sw-ocean_deep { background: linear-gradient(120deg,#0ea5e9,#0369a1,#22d3ee); }
.sw-emerald_jungle { background: linear-gradient(120deg,#10b981,#065f46,#34d399); }
.sw-golden_empire { background: linear-gradient(120deg,#f59e0b,#b45309,#fbbf24); }
.sw-frost_bite { background: linear-gradient(120deg,#e0f2fe,#38bdf8,#93c5fd); }
.sw-toxic_swamp { background: linear-gradient(120deg,#84cc16,#3f6212,#a3e635); }
.sw-synthwave_sunset { background: linear-gradient(120deg,#f97316,#ec4899,#a855f7); }
.sw-shadow_ops { background: linear-gradient(120deg,#71717a,#27272a,#a1a1aa); }
.sw-royal_amethyst { background: linear-gradient(120deg,#7c3aed,#4c1d95,#a78bfa); }
.sw-cherry_blossom { background: linear-gradient(120deg,#f9a8d4,#ec4899,#fbcfe8); }
.sw-lava_flow { background: linear-gradient(120deg,#ef4444,#f97316,#fbbf24); }
.sw-arctic_aurora { background: linear-gradient(120deg,#2dd4bf,#0d9488,#4ade80); }
.sw-cyber_grid { background: linear-gradient(120deg,#22d3ee,#0e7490,#67e8f9); }
.sw-blood_gold { background: linear-gradient(120deg,#b91c1c,#f59e0b,#7f1d1d); }
.sw-midnight_storm { background: linear-gradient(120deg,#3b82f6,#1e3a8a,#64748b); }

/* Raffle bowl total — the community stockpile shown to everyone entering */
.raffle-bowl {
  font-size: 0.82rem; font-weight: 700;
  color: rgba(255, 214, 90, 0.9);
  background: rgba(255, 214, 90, 0.08);
  border: 1px solid rgba(255, 214, 90, 0.25);
  border-radius: 10px; padding: 8px 12px; text-align: center;
}

/* Limited-stock badges on weekly Legendary / Mythical items */
.stock-left {
  align-self: center;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em;
  color: #ffd65a; background: rgba(255, 214, 90, 0.1);
  border: 1px solid rgba(255, 214, 90, 0.35);
  border-radius: 999px; padding: 4px 12px;
}
.rarity-mythical .stock-left { align-self: flex-start; color: #f87171; background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.4); }
.stock-left.out { color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }
.theme-act.soldout { opacity: 0.55; cursor: not-allowed; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }

/* Crash auto play toggle */
.crash-autoplay{
  display:flex; align-items:center; gap:8px;
  font-size:.8rem; color:#9aa3b5; cursor:pointer; user-select:none;
}
.crash-autoplay input{accent-color:#7c5cff; width:15px; height:15px; cursor:pointer}

/* ---------- Blackjack ---------- */
.bj-table { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.bj-row { display: flex; flex-direction: column; gap: 6px; }
/* `hidden` alone loses to the display above (split rounds hide this row). */
.bj-row[hidden] { display: none; }
.bj-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.bj-hand { display: flex; flex-wrap: wrap; gap: 6px; min-height: 58px; }
.bj-cardface {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 56px; padding: 0 6px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: #f7f4ea; color: #1c2230;
  font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.bj-cardface.red { color: #c0392b; }
.bj-cardface.back {
  background: repeating-linear-gradient(45deg, #2b3550, #2b3550 6px, #34405f 6px, #34405f 12px);
  color: rgba(255, 255, 255, 0.7);
}
.bj-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bj-actions .btn { flex: 1 1 42%; }
/* Split rounds: one block per hand, the one in play is highlighted. */
.bj-splits { display: flex; flex-wrap: wrap; gap: 10px; }
.bj-splits[hidden] { display: none; }
.bj-splithand {
  flex: 1 1 160px; min-width: 0; padding: 8px 10px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.bj-splithand.is-active {
  border-color: rgba(167, 85, 247, 0.75); background: rgba(167, 85, 247, 0.1);
}
.bj-splithand.is-won { border-color: rgba(52, 211, 153, 0.55); }
.bj-splithand.is-lost { opacity: 0.6; }
.bj-splithead {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase;
  opacity: 0.8; margin-bottom: 6px;
}
.bj-splithand .bj-hand { min-height: 44px; }
.bj-splitres { font-weight: 700; }
.bj-splitres.win { color: #34d399; }
.bj-splitres.lose { color: #f87171; }
.bj-splitres.push { color: #fbbf24; }
@media (max-width: 480px) {
  .bj-splithand { flex: 1 1 100%; }
}

/* Floating Buy Tickets button */
.buy-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #ff4d6d, #c9184a);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(201, 24, 74, 0.45), 0 2px 8px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
}
.buy-fab.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.buy-fab:hover {
  box-shadow: 0 10px 30px rgba(255, 77, 109, 0.6), 0 3px 10px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .buy-fab { right: 12px; bottom: 12px; padding: 11px 15px; font-size: 0.88rem; }
}

/* ---------- Store ad redesign (top + bottom) ---------- */
.store-ad {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(217, 70, 239, .22), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(59, 130, 246, .18), transparent 60%),
    rgba(14, 7, 34, .72);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.store-ad::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(124,58,237,.75), rgba(217,70,239,.55), rgba(236,72,153,.55), rgba(59,130,246,.65));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.store-ad::after {
  content: "";
  position: absolute;
  top: -60%; left: -30%;
  width: 40%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .07), transparent);
  transform: rotate(12deg);
  animation: store-sheen 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes store-sheen {
  0%, 55%, 100% { left: -40%; }
  25% { left: 120%; }
}
.store-ad h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 6px 0 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.store-ad .desc { max-width: 40ch; }
.store-cta {
  box-shadow: 0 0 28px -6px rgba(217, 70, 239, .65);
}
.store-cta:hover { box-shadow: 0 0 36px -4px rgba(217, 70, 239, .85); }
.store-ad .price-list li {
  background: rgba(0, 0, 0, .34);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.store-ad .price-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 70, 239, .45);
  box-shadow: 0 8px 24px -12px rgba(217, 70, 239, .5);
}
.store-ad .price-list li.best-value {
  position: relative;
  border-color: rgba(236, 72, 153, .55);
  background: linear-gradient(120deg, rgba(124, 58, 237, .18), rgba(236, 72, 153, .14));
}
.store-ad .price-list li.best-value::after {
  content: "BEST VALUE";
  position: absolute;
  top: -9px; right: 10px;
  font-size: .58rem; font-weight: 700; letter-spacing: .12em;
  padding: 2px 8px; border-radius: 999px;
  background: var(--grad);
  color: #fff;
}
.store-ad .nuke-tiers li {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.store-ad .nuke-tiers li:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 70, 239, .45);
  box-shadow: 0 8px 24px -12px rgba(217, 70, 239, .5);
}
.store-ad .nuke-tiers li.top-tier {
  position: relative;
  border-color: rgba(236, 72, 153, .55);
  background: linear-gradient(120deg, rgba(124, 58, 237, .18), rgba(236, 72, 153, .14));
}
.store-ad .nuke-tiers li.top-tier::after {
  content: "BEST VALUE";
  position: absolute;
  top: -9px; right: 10px;
  font-size: .58rem; font-weight: 700; letter-spacing: .12em;
  padding: 2px 8px; border-radius: 999px;
  background: var(--grad);
  color: #fff;
}
.store-ad .pay-methods { border-top: 1px solid rgba(255, 255, 255, .08); }
.store-ad .pay-badge {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .08);
}

/* ---- "Updated" badge on game cards (dev-panel toggled) ---- */
.card.has-updated-badge { padding-top: 52px; }
.updated-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 11px;
  border-radius: 999px;
  color: #0b0e1a;
  background: linear-gradient(120deg, #ffd34d, #ff9d3c 55%, #ffd34d);
  background-size: 200% 100%;
  box-shadow: 0 0 14px rgba(255, 190, 60, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
  animation: updatedBadgeShift 2.6s linear infinite;
  pointer-events: none;
}
@keyframes updatedBadgeShift {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- Theme Market page (/themes) ---------- */
.market-wrap { padding: 32px 0 64px; max-width: 1060px; margin: 0 auto; }
.market-wrap .inv-back { margin-bottom: 18px; display: inline-block; }
.market-wrap .theme-lock { margin-bottom: 18px; }
/* Compact store: frames only as tall as their contents, tighter cards. */
.market-wrap .theme-grid { align-items: start; gap: 12px; }
.market-wrap .rarity-frame { gap: 8px; padding: 12px 10px 10px; }
.market-wrap .theme-card { padding: 10px; gap: 7px; border-radius: 12px; }
.market-wrap .theme-preview { padding: 10px 8px; font-size: 0.95rem; }
.market-wrap .theme-name { font-size: 0.85rem; }
.market-wrap .theme-act { padding: 7px 10px; font-size: 0.82rem; }
.market-wrap .mythical-blurb a { color: inherit; text-decoration: underline; }

/* Plinko risk modes */
.plinko-modes { display: flex; gap: 6px; margin: 8px 0 4px; }
/* Ball-count row sits under the risk row; the multi-ball button greys out
   in scrap view (tickets-only while the feature is being tested). */
.plinko-balls { margin-top: 0; }
.plinko-balls .plinko-mode.is-off { opacity: .4; cursor: not-allowed; }
.plinko-balls .plinko-mode.is-off:hover { color: var(--muted); background: rgba(255,255,255,0.05); }
.plinko-mode {
  flex: 1; padding: 5px 0; font: 700 11px system-ui, sans-serif;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; cursor: pointer; transition: all 0.15s ease;
}
.plinko-mode:hover { color: #fff; background: rgba(255,255,255,0.1); }
.plinko-mode.active {
  color: #fff; background: rgba(168,85,247,0.28);
  border-color: rgba(168,85,247,0.7);
}

/* Emoji Market — limited-stock collectibles */
.emoji-head {
  margin-top: 56px;
  position: relative;
}
.emoji-market-intro {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.emoji-tier-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: stretch;
  max-width: 820px;
  margin: 26px auto 4px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 16px;
  background: rgba(5,8,20,0.48);
  box-shadow: 0 14px 35px rgba(0,0,0,0.2);
}
.emoji-tier-note-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 74px;
  padding: 12px 20px;
  text-align: left;
  border-radius: 11px;
}
.emoji-tier-note-item b {
  font: 900 0.7rem/1 system-ui, sans-serif;
  letter-spacing: 0.18em;
}
.emoji-tier-note-item i {
  margin-top: 8px;
  font: 700 0.76rem/1.35 system-ui, sans-serif;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.64);
  font-style: normal;
}
.emoji-tier-note-item.restock {
  background: linear-gradient(100deg, rgba(34,211,238,0.12), rgba(45,212,191,0.045));
}
.emoji-tier-note-item.restock b { color: #67e8f9; }
.emoji-tier-note-item.vault {
  background: linear-gradient(260deg, rgba(245,158,11,0.13), rgba(168,85,247,0.06));
}
.emoji-tier-note-item.vault b { color: #fbbf24; }
.emoji-tier-note-divider {
  align-self: stretch;
  margin: 7px 0;
  background: linear-gradient(transparent, rgba(255,255,255,0.24), transparent);
}
.emoji-market-stats {
  text-align: center; font-weight: 800; letter-spacing: 0.08em;
  color: #ffcc78; margin: 20px 0 18px; font-size: 0.78rem;
  text-transform: uppercase;
}
/* Battleship: standing reminder that this game is ticket-only, so the site
   scrap view never leaves a player thinking their wallet is at stake. */
.bs-ticket-only {
  text-align: center; font-size: 0.88rem; color: #ffd27a;
  border: 1px solid rgba(255, 190, 80, 0.28);
  background: rgba(255, 190, 80, 0.07);
  border-radius: 12px; padding: 9px 12px; margin: 0 auto 12px; max-width: 560px;
}
.bs-ticket-only b { color: #fff; }
.emoji-cooldown {
  text-align: center; font-weight: 800; letter-spacing: 0.03em;
  color: #9fd4ff; font-size: 0.92rem;
  border: 1px solid rgba(120, 190, 255, 0.28);
  background: rgba(120, 190, 255, 0.07);
  border-radius: 12px; padding: 9px 12px; margin: -8px auto 18px; max-width: 460px;
}
.emoji-cooldown[hidden] { display: none; }
.emoji-grid {
  display: flex; flex-direction: column; gap: 30px;
}
.emoji-stock-section {
  position: relative; overflow: hidden; border-radius: 22px;
  padding: 26px 22px 22px; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 55px rgba(0,0,0,0.28);
}
.emoji-stock-section::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
}
.emoji-restock-section {
  background:
    radial-gradient(circle at 92% 0%, rgba(34,211,238,0.18), transparent 34%),
    linear-gradient(145deg, rgba(15,118,110,0.17), rgba(8,10,24,0.91) 55%);
  border-color: rgba(45,212,191,0.3);
}
.emoji-restock-section::before {
  background: linear-gradient(90deg, #22d3ee, #5eead4, #bef264);
  box-shadow: 0 0 24px rgba(45,212,191,0.75);
}
.emoji-original-section {
  background:
    radial-gradient(circle at 90% 0%, rgba(245,158,11,0.2), transparent 34%),
    linear-gradient(145deg, rgba(88,28,135,0.25), rgba(8,8,20,0.93) 58%);
  border-color: rgba(245,158,11,0.3);
}
.emoji-original-section::before {
  background: linear-gradient(90deg, #a855f7, #f59e0b, #fde68a);
  box-shadow: 0 0 24px rgba(245,158,11,0.65);
}
.emoji-secret-section {
  background:
    radial-gradient(circle at 50% -10%, rgba(216,180,254,0.28), transparent 42%),
    radial-gradient(circle at 92% 20%, rgba(139,92,246,0.22), transparent 35%),
    linear-gradient(145deg, rgba(76,29,149,0.3), rgba(7,5,20,0.96) 64%);
  border-color: rgba(192,132,252,0.48);
  box-shadow: 0 20px 70px rgba(76,29,149,0.32), inset 0 0 45px rgba(168,85,247,0.05);
}
.emoji-secret-section::before {
  background: linear-gradient(90deg, transparent, #c084fc, #f0abfc, #c084fc, transparent);
  box-shadow: 0 0 28px rgba(216,180,254,0.95);
}
.emoji-secret-section .emoji-collection-kicker { color: #e9d5ff; }
.emoji-secret-seal {
  flex: none; display: grid; grid-template-columns: auto auto; align-items: center;
  gap: 10px; padding: 11px 15px; border-radius: 16px;
  background: rgba(168,85,247,0.12); border: 1px solid rgba(216,180,254,0.38);
  box-shadow: 0 0 30px rgba(168,85,247,0.16);
}
.emoji-secret-seal b {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: #fff; background: linear-gradient(145deg, #7c3aed, #c026d3);
  box-shadow: 0 0 18px rgba(216,180,254,0.55);
}
.emoji-secret-seal small {
  color: #e9d5ff; font: 900 0.56rem/1.35 system-ui, sans-serif;
  letter-spacing: 0.11em;
}
.emoji-secret-grid {
  position: relative; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch; gap: 16px;
}
.emoji-secret-card {
  width: 100%; min-height: 242px;
  justify-content: center; border-color: rgba(216,180,254,0.38);
  background:
    radial-gradient(circle at 50% 30%, rgba(240,171,252,0.13), transparent 20%),
    radial-gradient(circle at 50% 32%, rgba(192,132,252,0.17), transparent 42%),
    rgba(255,255,255,0.035);
}
.emoji-secret-card:hover {
  transform: translateY(-4px); border-color: rgba(240,171,252,0.75);
  box-shadow: 0 16px 42px rgba(126,34,206,0.22);
}
.emoji-secret-requirement {
  margin-top: 3px; padding: 8px 11px; border-radius: 999px;
  color: #f5d0fe; border: 1px solid rgba(232,121,249,0.34);
  background: rgba(168,85,247,0.12);
  font: 900 0.59rem/1 system-ui, sans-serif; letter-spacing: 0.12em;
}
.emoji-secret-butterfly {
  --secret-spark-rise: -2.15em;
  --secret-spark-size: 0.34em;
  --secret-spark-trail-size: 0.3em;
  position: relative; isolation: isolate; display: inline-grid; place-items: center;
  overflow: visible; color: #e9d5ff;
}
.emoji-secret-shark,
.emoji-secret-nuke {
  position: relative; isolation: isolate; display: inline-grid;
  place-items: center; overflow: visible;
}
.emoji-big.emoji-secret-shark,
.emoji-big.emoji-secret-nuke {
  width: 4.2rem; height: 4.2rem; font-size: 2.85rem;
}
.emoji-secret-shark span {
  position: relative; z-index: 2; display: inline-block;
  filter: saturate(1.4) drop-shadow(0 0 5px #67e8f9)
          drop-shadow(0 0 13px rgba(14,165,233,0.9));
  animation: secretSharkPatrol 2.8s ease-in-out infinite;
}
.emoji-secret-shark::before {
  content: "≋"; position: absolute; z-index: 1; bottom: 0.04em;
  color: #67e8f9; font: 800 0.5em/1 system-ui, sans-serif;
  letter-spacing: 0.08em; text-shadow: 0 0 10px #0284c7;
  animation: secretWaveDrift 2.1s ease-in-out infinite;
}
.emoji-secret-shark::after {
  content: "✦"; position: absolute; z-index: 1; right: 0.05em; top: 0.08em;
  color: #cffafe; font-size: 0.24em; text-shadow: 0 0 9px #22d3ee;
  animation: secretSparkRise 2.35s 0.6s ease-out infinite;
}
.emoji-secret-nuke span {
  position: relative; z-index: 2; display: inline-block;
  color: #d9f99d;
  filter: saturate(1.7) drop-shadow(0 0 5px #bef264)
          drop-shadow(0 0 15px rgba(101,163,13,0.95));
  animation: secretNukePulse 1.75s ease-in-out infinite;
}
.emoji-secret-nuke::before {
  content: ""; position: absolute; z-index: 1; width: 70%; height: 70%;
  border: 1px solid rgba(190,242,100,0.7); border-radius: 50%;
  box-shadow: 0 0 16px rgba(163,230,53,0.5);
  animation: secretNukeRing 2s ease-out infinite;
}
.emoji-secret-nuke::after {
  content: "· ✦"; position: absolute; z-index: 1; right: -0.04em; bottom: 0;
  color: #ecfccb; font-size: 0.28em; letter-spacing: 0.28em;
  text-shadow: 0 0 9px #a3e635;
  animation: secretSparkRise 2.1s 0.9s ease-out infinite;
}
.emoji-secret-shark-card {
  background:
    radial-gradient(circle at 50% 30%, rgba(34,211,238,0.16), transparent 38%),
    rgba(255,255,255,0.035);
}
.emoji-secret-nuke-card {
  background:
    radial-gradient(circle at 50% 30%, rgba(163,230,53,0.16), transparent 38%),
    rgba(255,255,255,0.035);
}
.emoji-big.emoji-secret-butterfly {
  --secret-spark-rise: -2.35em;
  --secret-spark-size: 0.32em;
  --secret-spark-trail-size: 0.28em;
  width: 4.2rem; height: 4.2rem; font-size: 2.85rem;
}
.emoji-secret-butterfly span {
  position: relative; z-index: 2; display: inline-block;
  filter: hue-rotate(36deg) saturate(1.6) drop-shadow(0 0 4px #f5d0fe)
          drop-shadow(0 0 11px rgba(168,85,247,0.9));
  animation: secretButterflyFloat 2.2s ease-in-out infinite,
             secretButterflyGlow 1.8s ease-in-out infinite alternate;
}
.emoji-secret-butterfly::before,
.emoji-secret-butterfly::after {
  position: absolute; z-index: 1; pointer-events: none;
  color: #f5d0fe; text-shadow: 0 0 8px #e9d5ff, 0 0 14px #a855f7;
}
.emoji-secret-butterfly::before {
  content: "✦"; left: 8%; bottom: 16%; font-size: var(--secret-spark-size);
  animation: secretSparkRise 2.25s ease-out infinite;
}
.emoji-secret-butterfly::after {
  content: "· ✧"; right: -2%; bottom: 4%; font-size: var(--secret-spark-trail-size); letter-spacing: 0.4em;
  animation: secretSparkRise 2.25s 1.05s ease-out infinite;
}
.emoji-secret-inline {
  --secret-spark-rise: -1.55em;
  --secret-spark-size: 0.28em;
  --secret-spark-trail-size: 0.24em;
  width: 1.18em; height: 1.18em; margin: -0.1em 0.06em -0.08em;
  font-size: 1em; line-height: 1; vertical-align: middle;
}
.emoji-1of1.secret {
  color: #e9d5ff; border-color: rgba(216,180,254,0.54);
  background: rgba(168,85,247,0.1);
}
@keyframes secretButterflyFloat {
  0%, 100% { transform: translateY(2px) rotate(-2deg) scale(0.97); }
  50% { transform: translateY(-5px) rotate(2deg) scale(1.05); }
}
@keyframes secretButterflyGlow {
  from { opacity: 0.88; }
  to { opacity: 1; filter: hue-rotate(38deg) saturate(2)
       drop-shadow(0 0 8px #f0abfc) drop-shadow(0 0 19px rgba(126,34,206,1)); }
}
@keyframes secretSharkPatrol {
  0%, 100% { transform: translateX(-4px) translateY(2px) rotate(-2deg); }
  50% { transform: translateX(5px) translateY(-3px) rotate(2deg); }
}
@keyframes secretWaveDrift {
  0%, 100% { opacity: 0.55; transform: translateX(-5px) scaleX(0.9); }
  50% { opacity: 1; transform: translateX(5px) scaleX(1.08); }
}
@keyframes secretNukePulse {
  0%, 100% { transform: scale(0.94); opacity: 0.86; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes secretNukeRing {
  0% { opacity: 0.75; transform: scale(0.45); }
  100% { opacity: 0; transform: scale(1.45); }
}
@keyframes secretSparkRise {
  0% { opacity: 0; transform: translateY(8px) scale(0.45) rotate(0); }
  28%, 54% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(var(--secret-spark-rise)) scale(1.15) rotate(32deg); }
}
.emoji-collection-head {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 20px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.emoji-collection-kicker {
  display: block; margin-bottom: 7px; font: 900 0.68rem/1 system-ui, sans-serif;
  letter-spacing: 0.2em; color: #67e8f9;
}
.emoji-original-section .emoji-collection-kicker { color: #fbbf24; }
.emoji-collection-head h3 {
  margin: 0 0 7px; font: 900 clamp(1.25rem, 3vw, 1.8rem)/1 system-ui, sans-serif;
  letter-spacing: 0.07em; color: #fff;
}
.emoji-collection-head p {
  margin: 0; color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.5;
}
.emoji-collection-count {
  flex: none; min-width: 118px; text-align: center; border-radius: 16px;
  padding: 13px 16px; font: 900 1.55rem/1 system-ui, sans-serif; color: #5eead4;
  background: rgba(45,212,191,0.09); border: 1px solid rgba(45,212,191,0.28);
}
.emoji-original-section .emoji-collection-count {
  color: #fbbf24; background: rgba(245,158,11,0.09);
  border-color: rgba(245,158,11,0.28);
}
.emoji-collection-count small {
  display: block; margin-top: 6px; font-size: 0.56rem; line-height: 1.25;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.58);
}
.emoji-subgrid {
  position: relative; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;
}
.emoji-card {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 16px 10px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.emoji-restock-section .emoji-card:hover {
  transform: translateY(-3px); border-color: rgba(94,234,212,0.65);
  background: rgba(45,212,191,0.09);
}
.emoji-original-section .emoji-card:hover {
  transform: translateY(-3px); border-color: rgba(251,191,36,0.68);
  background: rgba(245,158,11,0.09);
}
.emoji-card.sold { opacity: 0.75; }
.emoji-card.mine { border-color: rgba(94,234,212,0.55); }
.emoji-card.is-equipped { box-shadow: 0 0 0 2px rgba(94,234,212,0.45); }
.emoji-big { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45)); }
.emoji-1of1 {
  font: 800 0.62rem/1 system-ui, sans-serif; letter-spacing: 0.18em;
  color: #ffb454; border: 1px solid rgba(255,180,84,0.5);
  border-radius: 999px; padding: 3px 8px;
}
.emoji-1of1.restock {
  color: #5eead4; border-color: rgba(45,212,191,0.5);
  background: rgba(45,212,191,0.07);
}
.emoji-1of1.original {
  color: #fbbf24; border-color: rgba(245,158,11,0.52);
  background: rgba(245,158,11,0.07);
}
.emoji-owner {
  font: 700 0.66rem/1.35 system-ui, sans-serif; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}
.emoji-owner b { color: #5eead4; }
.emoji-original-section .emoji-owner b { color: #fbbf24; }

@media (max-width: 620px) {
  .emoji-tier-note {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 5px;
    border-radius: 14px;
  }
  .emoji-tier-note-item { min-height: 0; padding: 13px 15px; }
  .emoji-tier-note-divider {
    width: calc(100% - 26px);
    height: 1px;
    margin: 0 13px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);
  }
  .emoji-collection-head { align-items: flex-start; gap: 14px; }
  .emoji-collection-count {
    min-width: 92px;
    padding: 10px 8px;
    font-size: 1.22rem;
  }
  .emoji-collection-count small { font-size: 0.5rem; }
  .emoji-secret-seal { width: 100%; justify-content: center; }
  .emoji-secret-grid { grid-template-columns: 1fr; padding-top: 2px; }
  .emoji-secret-card { min-height: 228px; }
  .emoji-big.emoji-secret-butterfly,
  .emoji-big.emoji-secret-shark,
  .emoji-big.emoji-secret-nuke {
    width: 3.85rem; height: 3.85rem; font-size: 2.6rem;
  }
  .emoji-stock-section { padding: 21px 13px 14px; border-radius: 17px; }
  .emoji-subgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .emoji-card { padding: 14px 7px 12px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .emoji-secret-butterfly span,
  .emoji-secret-butterfly::before,
  .emoji-secret-butterfly::after,
  .emoji-secret-shark span,
  .emoji-secret-shark::before,
  .emoji-secret-shark::after,
  .emoji-secret-nuke span,
  .emoji-secret-nuke::before,
  .emoji-secret-nuke::after { animation: none !important; }
  .emoji-secret-butterfly::before,
  .emoji-secret-butterfly::after { opacity: 0.72; }
}

/* "MARKET UPDATED" sign — a link, not a label: it has to earn the click.
   Cyan/lime so it reads as brand-new next to the site's purple furniture. */
.market-updated-sign {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 26px auto 6px; padding: 12px 22px; max-width: 640px;
  border-radius: 999px; text-align: center; text-decoration: none; cursor: pointer;
  background: linear-gradient(90deg, rgba(34,211,238,0.16), rgba(163,230,53,0.16), rgba(34,211,238,0.16));
  border: 1px solid rgba(34,211,238,0.7);
  box-shadow: 0 0 16px rgba(34,211,238,0.35), 0 0 40px rgba(163,230,53,0.16),
              inset 0 0 14px rgba(34,211,238,0.14);
  animation: musFloat 3.4s ease-in-out infinite;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* A light sweep crossing the pill every few seconds — motion that points
   INTO the banner, unlike the old glow that just breathed in place. */
.market-updated-sign::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.30) 48%,
              rgba(190,255,240,0.42) 52%, transparent 70%);
  transform: translateX(-120%);
  animation: musSweep 3.6s ease-in-out infinite;
}
.market-updated-sign:hover, .market-updated-sign:focus-visible {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(163,230,53,0.9);
  box-shadow: 0 0 26px rgba(34,211,238,0.6), 0 0 64px rgba(163,230,53,0.32),
              inset 0 0 18px rgba(34,211,238,0.22);
  outline: none;
}
.market-updated-sign .mus-text {
  font: 800 0.85rem/1.2 system-ui, sans-serif; letter-spacing: 0.16em;
  background: linear-gradient(90deg, #a5f3fc, #bef264, #fdfdfd, #bef264, #a5f3fc);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: musShine 2.6s linear infinite;
}
.market-updated-sign .mus-spark {
  font-size: 1.1rem; line-height: 1;
  animation: musWiggle 2.4s ease-in-out infinite;
}
/* The call to action: a small pill whose arrow nudges on hover. */
.market-updated-sign .mus-go {
  flex: none; font: 800 0.7rem/1 system-ui, sans-serif; letter-spacing: 0.08em;
  text-transform: uppercase; color: #062f2b; white-space: nowrap;
  padding: 6px 11px; border-radius: 999px;
  background: linear-gradient(90deg, #67e8f9, #bef264);
  box-shadow: 0 0 14px rgba(34,211,238,0.45);
}
.market-updated-sign .mus-go b { display: inline-block; transition: transform .18s ease; }
.market-updated-sign:hover .mus-go b { transform: translateX(3px); }
@keyframes musFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes musSweep {
  0% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(120%); }
}
@keyframes musShine { to { background-position: 200% center; } }
@keyframes musWiggle {
  0%, 72%, 100% { transform: rotate(0) scale(1); }
  78% { transform: rotate(-14deg) scale(1.18); }
  86% { transform: rotate(12deg) scale(1.18); }
  92% { transform: rotate(-6deg) scale(1.08); }
}
@media (max-width: 560px) {
  .emoji-stock-section { padding: 17px 12px; border-radius: 17px; }
  .emoji-collection-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .emoji-collection-count { min-width: 0; width: 100%; }
  .emoji-subgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .market-updated-sign { padding: 10px 14px; gap: 8px; }
  .market-updated-sign .mus-text { font-size: 0.72rem; letter-spacing: 0.1em; }
  .market-updated-sign .mus-go { font-size: 0.64rem; padding: 5px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .market-updated-sign, .market-updated-sign::after,
  .market-updated-sign .mus-text, .market-updated-sign .mus-spark { animation: none; }
  .market-updated-sign::after { display: none; }
}

/* Homepage hero variant of the updated sign — sits above the Theme Market button */
.hero-updated-sign {
  margin: 18px 0 14px; max-width: 580px;
  justify-content: flex-start; padding: 10px 16px; gap: 10px;
}
/* Tighter tracking here so the line doesn't break inside the hero column. */
.hero-updated-sign .mus-text { font-size: 0.72rem; letter-spacing: 0.1em; }
@media (max-width: 900px) {
  .hero-updated-sign { margin-left: auto; margin-right: auto; justify-content: center; }
}

/* Failed-login help banner */
.login-failed-note {
  background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.55);
  border-radius: 12px; padding: 12px 16px; margin: 0 0 18px;
  font: 600 0.9rem/1.5 system-ui, sans-serif; color: #fecaca;
}

/* PvP banners around the Battleship card */
.pvp-banner {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 18px;
  margin: 6px 0;
}
.pvp-banner-line {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(64,224,255,0.55), rgba(255,71,148,0.55), transparent);
  border-radius: 2px;
}
.pvp-banner-text {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: 0.14em; font-size: 0.95rem;
  color: #9be8ff; text-shadow: 0 0 18px rgba(64,224,255,0.45);
  white-space: normal; text-align: center;
  min-width: 0; flex-shrink: 1;
}
@media (min-width: 941px) {
  .pvp-banner-text { white-space: nowrap; }
}
.pvp-card {
  border-color: rgba(64,224,255,0.45);
  box-shadow: 0 0 34px rgba(64,224,255,0.12), inset 0 0 24px rgba(64,224,255,0.05);
}
.pvp-card:hover { border-color: rgba(64,224,255,0.8); }
@media (max-width: 640px) {
  .pvp-banner { gap: 10px; }
  .pvp-banner-text {
    font-size: 0.72rem; letter-spacing: 0.06em;
    white-space: normal; text-align: center;
    min-width: 0; flex-shrink: 1;
  }
  .pvp-banner-line { min-width: 14px; }
}

/* PvP card fine-tuning: keep the title clear of the corner badge, equal pills */
.pvp-card { padding-top: 58px; }
.pvp-card .pill-row { display: grid; grid-template-columns: 1fr; gap: 8px; max-width: 340px; }
.pvp-card .pill-row .pill {
  width: 100%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  min-height: 40px; text-align: center;
}

/* Mobile hero CTA: stack the equal-width market and event actions. */
@media (max-width: 640px) {
  .hero-cta {
    width: 100%;
    margin: 0 auto;
  }
  .hero-cta .btn-card-event {
    width: 100%;
    margin: 0 auto; justify-content: center; text-align: center;
  }
}


/* ---- Daily-ticket spending milestones (bar inside the console card) ---- */
.console { position: relative; }
/* Horizontal bar that lives INSIDE the console card. It used to hang off the
   right edge (right:-40px) with a nowrap label centred in a 32px column, so
   the label spilled past the viewport and only its first digits were visible.
   Keep it in the card at every width. */
.spend-track {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
/* display:flex beats the hidden attribute, and the row starts hidden until
   the milestone data arrives. */
.spend-track[hidden] { display: none; }
.spend-cap {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold, #ffcf5a);
  white-space: nowrap;
}
.spend-rail {
  position: relative;
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: visible;
}
.spend-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--p, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, #ffcf5a, #ff7a3c);
  transition: width 0.8s ease;
}
.spend-dot {
  position: absolute;
  left: var(--p, 0%);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.4);
}
.spend-dot.hit {
  background: #ffcf5a;
  box-shadow: 0 0 6px rgba(255, 207, 90, 0.8);
}
.spend-note {
  font-size: 10px;
  color: var(--muted, #9aa4b2);
  white-space: nowrap;
}
/* Narrow phones: the "4,449 / 5,000 spent" label is the widest piece, so let
   it drop under the rail instead of squeezing the bar to nothing. */
@media (max-width: 420px) {
  .spend-track { flex-wrap: wrap; }
  .spend-rail { flex: 1 1 60%; }
  .spend-note { flex: 1 1 100%; text-align: right; }
}

/* Player-console action buttons (KAOS page + Profile) */
.console-actions{display:flex;gap:10px;margin-top:14px}
.console-actions .btn{flex:1;justify-content:center;display:inline-flex;align-items:center;min-height:44px}
.console-kaos{position:relative;background:#071013 !important;border:1px solid rgba(52,211,153,.4) !important;box-shadow:0 0 14px rgba(52,211,153,.18)}
.console-kaos:hover{border-color:rgba(52,211,153,.75) !important;box-shadow:0 0 20px rgba(52,211,153,.35)}
/* No-mask fallback: plain KAOS text in the accent color */
.console-kaos-fallback{font-weight:800;letter-spacing:.14em;font-size:15px;color:#34d399}
@supports ((mask-image:url("")) or (-webkit-mask-image:url(""))) {
  .console-kaos-fallback{display:none}
  .console-kaos::after{content:"";position:absolute;inset:5px 10px;background:linear-gradient(120deg,#6ee7b7,#34d399 45%,#22d3ee);-webkit-mask:url('media/kaos-mark-sm.png') center/contain no-repeat;mask:url('media/kaos-mark-sm.png') center/contain no-repeat}
  body[class*="panel-"] .console-kaos::after{background:linear-gradient(120deg,var(--violet),var(--fuchsia) 55%,var(--pink))}
}
/* A mask whose art fails to load paints nothing, so the tile would read as an
   empty button. app.js probes the art and flips this class on failure. */
.console-kaos.no-mark .console-kaos-fallback{display:inline}
.console-kaos.no-mark::after{display:none}
/* Equipped panel themes recolor the KAOS tile to match the console */
body[class*="panel-"] .console-kaos{background:var(--bg-2) !important;border-color:var(--violet) !important;box-shadow:var(--glow)}
body[class*="panel-"] .console-kaos:hover{border-color:var(--fuchsia) !important}
body[class*="panel-"] .console-kaos-fallback{color:var(--fuchsia)}

/* Standalone KAOS wordmark (kaos page header) — same art as the console tile */
.kaos-mark{position:relative;display:inline-block;width:230px;height:88px;max-width:100%}
.kaos-mark-fallback{font-style:normal;font-weight:800;letter-spacing:.14em;font-size:2rem;line-height:88px;color:#34d399}
@supports ((mask-image:url("")) or (-webkit-mask-image:url(""))) {
  .kaos-mark-fallback{display:none}
  .kaos-mark::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,#6ee7b7,#34d399 45%,#22d3ee);-webkit-mask:url('media/kaos-mark-sm.png') center/contain no-repeat;mask:url('media/kaos-mark-sm.png') center/contain no-repeat;filter:drop-shadow(0 0 18px rgba(52,211,153,.35))}
}

/* KAOS hub server picker: opens downward (sits at the top of the page) */
.sp-dd.sp-down .sp-menu{bottom:auto;top:calc(100% + 6px);box-shadow:0 14px 36px rgba(0,0,0,.55),0 0 26px rgba(124,58,237,.22)}
/* Comfortable touch targets for the themed dropdown on phones */
@media (max-width: 640px), (pointer: coarse) {
  .sp-btn{min-height:46px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  .sp-opt{min-height:44px;padding:12px 14px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
}
/* KAOS hub: stack picker + button full-width on small screens */
@media (max-width: 480px) {
  #kaosBox .inv-bal-row{flex-direction:column;align-items:stretch}
  #kaosDd{max-width:none}
  #kaosCheck{width:100%;min-height:46px}
}

/* ===== KAOS SHOP (turquoise, matches the KAOS hub identity) ===== */
/* ---- KAOS accent variables: turquoise by default, re-tinted when a Panel
   Theme is equipped (panel-theme.js / app.js add body.panel-<key>). New
   panels need NO changes here - the override derives from the panel vars. */
:root {
  --ks-a: #34d399; --ks-a2: #6ee7b7; --ks-b: #22d3ee; --ks-dark: #071013;
  --ks-a05: rgba(52,211,153,.05);
  --ks-a12: rgba(52,211,153,.12);
  --ks-a14: rgba(52,211,153,.14);
  --ks-a16: rgba(52,211,153,.16);
  --ks-a22: rgba(52,211,153,.22);
  --ks-a25: rgba(52,211,153,.25);
  --ks-a28: rgba(52,211,153,.28);
  --ks-a32: rgba(52,211,153,.32);
  --ks-a4: rgba(52,211,153,.4);
  --ks-a45: rgba(52,211,153,.45);
  --ks-a5: rgba(52,211,153,.5);
  --ks-a55: rgba(52,211,153,.55);
  --ks-a6: rgba(52,211,153,.6);
  --ks-a65: rgba(52,211,153,.65);
  --ks-a9: rgba(52,211,153,.9);
  --ks-b16: rgba(34,211,238,.16);
  --ks-b24: rgba(34,211,238,.24);
  --ks-b4: rgba(34,211,238,.4);
  --ks-b5: rgba(34,211,238,.5);
  --ks-dark85: rgba(7,16,19,.85);
  --ks-dark92: rgba(7,16,19,.92);
}
body[class*="panel-"] {
  --ks-a: var(--fuchsia); --ks-a2: var(--pink); --ks-b: var(--cyan); --ks-dark: var(--bg-2);
  --ks-a05: color-mix(in srgb, var(--fuchsia) 5%, transparent);
  --ks-a12: color-mix(in srgb, var(--fuchsia) 12%, transparent);
  --ks-a14: color-mix(in srgb, var(--fuchsia) 14%, transparent);
  --ks-a16: color-mix(in srgb, var(--fuchsia) 16%, transparent);
  --ks-a22: color-mix(in srgb, var(--fuchsia) 22%, transparent);
  --ks-a25: color-mix(in srgb, var(--fuchsia) 25%, transparent);
  --ks-a28: color-mix(in srgb, var(--fuchsia) 28%, transparent);
  --ks-a32: color-mix(in srgb, var(--fuchsia) 32%, transparent);
  --ks-a4: color-mix(in srgb, var(--fuchsia) 40%, transparent);
  --ks-a45: color-mix(in srgb, var(--fuchsia) 45%, transparent);
  --ks-a5: color-mix(in srgb, var(--fuchsia) 50%, transparent);
  --ks-a55: color-mix(in srgb, var(--fuchsia) 55%, transparent);
  --ks-a6: color-mix(in srgb, var(--fuchsia) 60%, transparent);
  --ks-a65: color-mix(in srgb, var(--fuchsia) 65%, transparent);
  --ks-a9: color-mix(in srgb, var(--fuchsia) 90%, transparent);
  --ks-b16: color-mix(in srgb, var(--cyan) 16%, transparent);
  --ks-b24: color-mix(in srgb, var(--cyan) 24%, transparent);
  --ks-b4: color-mix(in srgb, var(--cyan) 40%, transparent);
  --ks-b5: color-mix(in srgb, var(--cyan) 50%, transparent);
  --ks-dark85: color-mix(in srgb, var(--bg-2) 85%, transparent);
  --ks-dark92: color-mix(in srgb, var(--bg-2) 92%, transparent);
}
.ks-title { background: linear-gradient(120deg, var(--ks-a2), var(--ks-a) 45%, var(--ks-b)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .06em; }
.ks-accent { color: var(--ks-a); }
.ks-cta-section { border-color: var(--ks-a45) !important; }
.ks-chip { border: 1px solid var(--border); background: rgba(255,255,255,.04); color: inherit; font: inherit; font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.ks-chip:hover { border-color: var(--ks-a45); }
.ks-chip.active { border-color: var(--ks-a65); background: var(--ks-a12); color: var(--ks-a2); }
/* ---- Catalog tabs: even segmented bar on desktop, one swipeable row on mobile ---- */
.ks-chips { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 0 0 12px; }
.ks-chips .ks-chip, .ks-subchips .ks-chip { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .04em; }
.ks-chips .ks-chip:not(.active), .ks-subchips .ks-chip:not(.active) { color: var(--muted); }
.ks-chips .ks-chip { font-weight: 800; padding: 10px 12px; border-radius: 11px; }
.ks-chips .ks-chip.active { box-shadow: inset 0 -2px 0 var(--ks-a); }
.ks-subchips { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ks-subchips .ks-chip { font-size: .68rem; padding: 5px 11px; }
.ks-subchips[hidden] { display: none !important; }
@media (max-width: 720px) {
  .ks-chips, .ks-subchips { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scrollbar-width: none; }
  .ks-chips::-webkit-scrollbar, .ks-subchips::-webkit-scrollbar { display: none; }
  .ks-chips .ks-chip, .ks-subchips .ks-chip { flex: 0 0 auto; scroll-snap-align: center; }
  .ks-chips { position: sticky; top: 72px; z-index: 20; padding: 10px; border: 1px solid var(--ks-a22); border-radius: 13px; background: var(--ks-dark92, rgba(10,6,16,.92)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
@media (max-width: 640px) {
  .ks-chips { top: 60px; }
}
.ks-oneper { flex: 1; min-width: 0; font-size: .68rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); border: 1px dashed var(--border); border-radius: 9px; padding: 9px 6px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ks-card { background: var(--ks-dark); border: 1px solid var(--ks-a28); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.ks-card:hover { border-color: var(--ks-a55); box-shadow: 0 6px 22px var(--ks-a16); transform: translateY(-2px); }
.ks-imgwrap { position: relative; height: 130px; display: grid; place-items: center; background: radial-gradient(120px 80px at 50% 45%, var(--ks-a12), rgba(255,255,255,.03) 70%); border-bottom: 1px solid var(--ks-a14); }
.ks-imgwrap.ks-noimg::after { content: "📦"; font-size: 40px; opacity: .35; }
.ks-kit .ks-imgwrap.ks-noimg::after { content: "🎒"; }
.ks-badge-float { position: absolute; top: 8px; left: 8px; background: var(--ks-dark85); z-index: 1; }
.ks-cardbody { display: grid; gap: 6px; align-content: start; padding: 10px 12px 12px; }
.ks-cat { font-size: .62rem; font-weight: 800; letter-spacing: .1em; color: var(--ks-a); text-transform: uppercase; }
.ks-kit .ks-cat { color: var(--ks-b); }
.ks-name { font-weight: 700; line-height: 1.25; }
.ks-meta { font-size: .74rem; color: var(--muted); min-height: 1.1em; }
.ks-price { font-weight: 800; color: var(--ks-a); font-size: 1.12rem; }
.ks-kit { border-color: var(--ks-b4); }
.ks-kit .ks-price { color: var(--ks-b); }
.ks-row { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.ks-step { width: 32px; height: 34px; flex: 0 0 32px; border-radius: 9px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: inherit; font: inherit; font-weight: 800; cursor: pointer; }
.ks-step:hover { border-color: var(--ks-a5); }
.ks-qty { width: 44px; min-width: 0; text-align: center; background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 9px; padding: 6px 2px; color: inherit; font: inherit; }
.ks-qty:focus { outline: none; border-color: var(--ks-a); }
.ks-add { flex: 1; min-width: 0; border: 1px solid var(--ks-a55); background: linear-gradient(120deg, var(--ks-a22), var(--ks-b16)); color: var(--ks-a2); font: inherit; font-weight: 800; border-radius: 9px; padding: 8px 6px; cursor: pointer; white-space: nowrap; }
.ks-add:hover { background: linear-gradient(120deg, var(--ks-a32), var(--ks-b24)); }
.ks-add:disabled { opacity: .45; cursor: not-allowed; }
.ks-cart-line { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.03); }
.ks-x { border: none; background: none; color: #ff7d7d; cursor: pointer; font: inherit; }
.ks-x:hover { text-decoration: underline; }
.ks-total { display: flex; justify-content: space-between; font-weight: 800; padding: 6px 2px; font-size: 1.05rem; }
.ks-order { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: rgba(255,255,255,.03); }
.ks-order-items { font-size: .82rem; color: var(--muted); }
.ks-pill { font-size: .7rem; font-weight: 800; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.ks-pill.paid { color: var(--ks-a); border-color: var(--ks-a5); }
.ks-pill.working { color: #fbbf24; border-color: rgba(251,191,36,.5); animation: kspulse 1.2s ease-in-out infinite; }
.ks-pill.done { color: #7ee29a; border-color: rgba(126,226,154,.5); }
.ks-pill.bad { color: #ff7d7d; border-color: rgba(255,125,125,.5); }
.ks-pill.warn { color: #fbbf24; border-color: rgba(251,191,36,.5); }
@keyframes kspulse { 50% { opacity: .5; } }
.ks-badge-kit { font-size: .64rem; font-weight: 800; color: var(--ks-b); border: 1px solid var(--ks-b5); padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
#kaSearch, #kaWho, #ptSearch { background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; color: inherit; font: inherit; }
#kaSearch:focus, #kaWho:focus, #ptSearch:focus { outline: none; border-color: var(--ks-a); }
.ksa-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ksa-form label { display: grid; gap: 4px; font-size: .72rem; color: var(--muted); }
.ksa-form input, .ksa-form select { background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: inherit; font: inherit; width: 100%; }
.ksa-form input:focus, .ksa-form select:focus { outline: none; border-color: var(--ks-a); }
.ksa-table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 720px; }
.ksa-table th, .ksa-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); }
.ksa-table th { color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.ksa-off td { opacity: .45; }
.ksa-audit { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.ksa-audit-row { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.03); font-size: .82rem; }
.console-kshop { background: #071013 !important; border: 1px solid rgba(52,211,153,.4) !important; box-shadow: 0 0 14px rgba(52,211,153,.18); color: #34d399 !important; font-weight: 800; letter-spacing: .06em; }
.console-kshop:hover { border-color: rgba(52,211,153,.75) !important; box-shadow: 0 0 20px rgba(52,211,153,.35); }
body[class*="panel-"] .console-kshop { background: var(--bg-2) !important; border-color: var(--violet) !important; color: inherit !important; box-shadow: var(--glow); }

/* ---- KAOS Shop item images ---- */
.ks-thumb {
  display: block;
  max-width: 78%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px var(--ks-a22));
}
.ksa-thumb {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: -5px;
  margin-right: 7px;
}

/* ---- KAOS Shop launch lock ---- */
.ks-lockbanner {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 196, 0, 0.4);
  background: rgba(255, 196, 0, 0.08);
  color: #ffd76a;
  font-size: 0.9rem;
  font-weight: 600;
}
.ks-frost {
  margin: 26px auto;
  max-width: 520px;
  text-align: center;
  padding: 46px 30px;
  border-radius: 18px;
  border: 1px solid var(--ks-a25);
  background: var(--ks-a05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ks-frost-lock { font-size: 44px; margin-bottom: 10px; }
.ks-frost h3 { margin: 0 0 8px; letter-spacing: 0.06em; }
.ks-frost p { color: var(--muted, #9aa0b4); margin: 0; }

/* ---- KAOS Shop admin: phone-friendly catalog cards ---- */
@media (max-width: 760px) {
  .ksa-table { min-width: 0; }
  .ksa-table thead { display: none; }
  .ksa-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.02);
  }
  .ksa-table tbody td { border-bottom: none; padding: 3px 0; }
  .ksa-table td.ksa-name {
    grid-column: 1 / -1;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
  }
  .ksa-table td[data-label] {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .ksa-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .ksa-table td.ksa-sale { grid-column: 1; padding-top: 8px; }
  .ksa-table td.ksa-act { grid-column: 2; padding-top: 8px; }
  .ksa-table td.ksa-sale .ks-chip,
  .ksa-table td.ksa-act .ks-chip {
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }
}

/* ---- KAOS Shop storefront v2 (image-first cards, search, cart pill) ---- */
.ks-search { width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; color: inherit; font: inherit; margin: 0 0 12px; }
.ks-search:focus { outline: none; border-color: var(--ks-a); box-shadow: 0 0 0 3px var(--ks-a12); }
.ks-qty::-webkit-outer-spin-button, .ks-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ks-qty { -moz-appearance: textfield; appearance: textfield; }
.ks-cartfab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 7px; border: 1px solid var(--ks-a6); background: var(--ks-dark92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ks-a2); font: inherit; font-weight: 800; border-radius: 999px; padding: 12px 18px; cursor: pointer; box-shadow: 0 8px 26px var(--ks-a25); }
.ks-cartfab:hover { border-color: var(--ks-a9); box-shadow: 0 8px 30px var(--ks-a4); }
@media (max-width: 640px) {
  .ks-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .ks-imgwrap { height: 110px; }
}

/* The hidden attribute loses to classes that set display (e.g. .btn, .ks-total,
   .ks-cartfab). Re-assert it for shop elements toggled via el.hidden. */
#ksAdminLink[hidden], #ksCartFab[hidden], #ksTotalRow[hidden] { display: none !important; }

/* ---- KAOS portal (single KAOS pill -> choose Hub vs Store) ---- */
.kp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
@media (max-width: 720px) { .kp-grid { grid-template-columns: 1fr; } }
.kp-card { display: block; position: relative; border-radius: 18px; padding: 38px 26px 32px; text-align: center; text-decoration: none;
  background: linear-gradient(180deg, var(--ks-a05), transparent 60%), var(--ks-dark92);
  border: 1px solid var(--ks-a28); box-shadow: 0 0 18px var(--ks-a12);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.kp-card:hover { transform: translateY(-3px); border-color: var(--ks-a6); box-shadow: 0 0 26px var(--ks-a25); }
.kp-ico { font-size: 46px; line-height: 1; display: block; margin-bottom: 14px; filter: drop-shadow(0 0 14px var(--ks-a28)); }
.kp-name { display: block; font-weight: 800; font-size: 1.4rem; letter-spacing: .1em; color: var(--ks-a2); }
.kp-sub { display: block; margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.55; max-width: 340px; margin-left: auto; margin-right: auto; }
.kp-go { display: inline-block; margin-top: 18px; font-weight: 800; color: var(--ks-b); letter-spacing: .04em; }
.kp-card:hover .kp-go { text-decoration: underline; }

/* ---- Hero console: total in-game SCRAP row (spans under Tickets/Keys) ---- */
.bal-scrap, .bal-total { grid-column: 1 / -1; }

/* ---- KAOS Shop cart discount promo ------------------------------------- */
.ks-promo { display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
  padding: 13px 16px; border-radius: 14px; border: 1px solid var(--ks-a45);
  background: linear-gradient(100deg, var(--ks-a16), var(--ks-b16) 60%, transparent);
  color: var(--ks-a2); font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; animation: ksPromoGlow 2.4s ease-in-out infinite; }
.ks-promo-burst { font-size: 1.25rem; }
@keyframes ksPromoGlow {
  0%, 100% { box-shadow: 0 0 8px var(--ks-a25); }
  50% { box-shadow: 0 0 22px var(--ks-a45); }
}
.ks-off-chip { display: inline-block; margin-left: 6px; padding: 2px 8px;
  border-radius: 999px; font-size: .72rem; font-weight: 800; vertical-align: middle;
  background: var(--ks-a22); border: 1px solid var(--ks-a45); color: var(--ks-a2); }
.ks-was { opacity: .55; font-weight: 600; margin-right: 6px; }
.ks-save { color: var(--ks-a2); font-weight: 700; }
/* `hidden` loses to any rule that sets display — pin it for the promo bits. */
.ks-promo[hidden], .ks-off-chip[hidden], .ks-was[hidden], .ks-save[hidden] { display: none !important; }

/* Discount badges outside the shop: portal STORE card + games-page KAOS pill.
   kp-badge lives on themed pages so it rides the --ks-* tint; the hero chip
   is KAOS-brand green on purpose (the graffiti pill art never re-tints). */
.kp-badge { position: absolute; top: 12px; right: 12px; padding: 4px 10px;
  border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  background: var(--ks-a22); border: 1px solid var(--ks-a5); color: var(--ks-a2);
  animation: ksPromoGlow 2.4s ease-in-out infinite; }
.kaos-off-chip { position: absolute; top: -9px; right: -10px; padding: 2px 8px;
  border-radius: 999px; font-size: .68rem; font-weight: 800; white-space: nowrap;
  background: linear-gradient(90deg, #34d399, #22d3ee); color: #06281e;
  border: 1px solid rgba(255,255,255,.35); box-shadow: 0 0 12px rgba(52,211,153,.5);
  pointer-events: none; }
.kp-badge[hidden], .kaos-off-chip[hidden] { display: none !important; }

/* ---------- Shop admin: purchase transactions ---------- */
.pt-select {
  background: rgba(255, 255, 255, .05); color: inherit; font: inherit;
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px;
}
.pt-select:focus { outline: none; border-color: var(--ks-a); }
.pt-select option { background: #150d24; color: #fff; }
.pt-match { margin: -2px 0 10px; }
.pt-match[hidden] { display: none; }
.pt-more { display: flex; justify-content: center; margin-top: 12px; }
#ptMore[hidden] { display: none; }
.pt-buyer { display: flex; align-items: center; gap: 8px; }
.pt-av {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--border-strong); background: #120a22; object-fit: cover;
}
.pt-sub { color: var(--muted); font-size: .72rem; }
.pt-items { max-width: 260px; }
.pt-pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--border-strong); background: rgba(0, 0, 0, .3);
}
.pt-ok { color: #8ef0b8; border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .12); }
.pt-wait { color: #ffe9a8; border-color: rgba(250, 204, 21, .4); background: rgba(250, 204, 21, .1); }
.pt-bad { color: #ff9d9d; border-color: rgba(248, 113, 113, .45); background: rgba(248, 113, 113, .12); }
.pt-issue { color: #ffbf7d; font-size: .72rem; }

/* ---- Legal pages (/privacy, /terms) ------------------------------------ */
.legal-wrap { max-width: 860px; }
.legal-wrap .inv-section { margin-bottom: 16px; }
.legal-wrap .inv-section p { color: var(--muted); line-height: 1.65; margin: 6px 0 0; }
/* Sub-headings inside a legal section (burn rates: tickets / scrap / bets). */
.legal-wrap .inv-section h4 {
  margin: 16px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.legal-list { margin: 8px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.65; }
.legal-list li { margin: 6px 0; }
.legal-list b, .legal-wrap .inv-section p b { color: var(--text); }
.legal-wrap a { color: var(--acc-2, #22d3ee); }
.legal-foot { margin: 26px 0 40px; color: var(--muted-2); }
.disclaimer a { color: inherit; text-decoration: underline; }

/* ---------- Top Gamblers (Hall of Fame) ---------- */
.tg-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.tg-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--border);
}
.tg-rank1 {
  border-color: rgba(250, 204, 21, .45);
  background: linear-gradient(90deg, rgba(250, 204, 21, .12), rgba(0, 0, 0, .3) 60%);
  box-shadow: 0 0 24px -10px rgba(250, 204, 21, .55);
}
.tg-rank2 {
  border-color: rgba(226, 232, 240, .35);
  background: linear-gradient(90deg, rgba(226, 232, 240, .08), rgba(0, 0, 0, .3) 60%);
}
.tg-rank3 {
  border-color: rgba(217, 119, 6, .4);
  background: linear-gradient(90deg, rgba(217, 119, 6, .1), rgba(0, 0, 0, .3) 60%);
}
.tg-medal { font-size: 1.3rem; line-height: 1; filter: drop-shadow(0 0 8px rgba(250, 204, 21, .35)); }
/* Ranks 4-5 get a plain number instead of a medal — no gold glow. */
.tg-rank4 .tg-medal, .tg-rank5 .tg-medal {
  font-family: var(--font-mono); font-size: 1rem; font-weight: 700;
  color: var(--muted); filter: none; width: 1.3rem; text-align: center;
}
.tg-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--border-strong); background: #120a22; object-fit: cover;
}
.tg-rank1 .tg-avatar { border-color: rgba(250, 204, 21, .6); }
.tg-name {
  flex: 1; min-width: 0; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tg-name.tg-masked { color: var(--muted); font-style: italic; font-weight: 600; }
.tg-total { font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.tg-rank1 .tg-total { color: #ffe9a8; text-shadow: 0 0 14px rgba(250, 204, 21, .5); }
.tg-empty {
  text-align: center; color: var(--muted);
  padding: 18px 12px; border: 1px dashed var(--border); border-radius: 14px;
  font-size: .92rem;
}

/* ===== Refill Wallet modal — two-way wallet terminal (games pages) ===== */
/* Direction tabs: pull scrap in, or send it back to a game server. */
.rfw-tabs {
  display: flex; gap: 6px; margin: 12px 0 2px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--border); border-radius: 12px; padding: 4px;
}
.rfw-tab {
  flex: 1 1 0; min-width: 0; cursor: pointer;
  padding: 9px 6px; border: 0; border-radius: 9px;
  background: none; color: var(--muted);
  font-family: var(--font-mono); font-weight: 700; font-size: .8rem;
  letter-spacing: .04em; text-transform: uppercase;
  transition: background .15s, color .15s;
}
.rfw-tab:hover { color: var(--text); }
.rfw-tab.active {
  background: rgba(217, 70, 239, .18); color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(217, 70, 239, .45);
}
/* NB: scoped [hidden] — .rfw-srv sets display, which beats the UA rule. */
.rfw-srv {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 8px 14px;
}
.rfw-srv[hidden] { display: none; }
.rfw-srv-label {
  flex: 0 0 auto;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; color: var(--muted-2); text-transform: uppercase;
}
.rfw-srv-sel {
  flex: 1 1 auto; min-width: 0;
  background: none; border: 0; outline: 0; cursor: pointer;
  color: var(--text); font-family: var(--font-mono); font-weight: 700;
  font-size: .95rem; padding: 4px 0;
}
.rfw-srv-sel option { background: #12101a; color: var(--text); }
.rfw-flow { display: flex; align-items: stretch; gap: 8px; margin: 14px 0 16px; }
.rfw-tile {
  flex: 1 1 0; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.rfw-tile-label {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; color: var(--muted-2); text-transform: uppercase;
  display: block; margin-bottom: 4px; white-space: normal;
  overflow-wrap: anywhere; line-height: 1.5;
}
.rfw-tile-role {
  display: block; margin-bottom: 6px; font-family: var(--font-mono);
  font-size: .6rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text);
}
.rfw-tile-location {
  display: block; margin-bottom: 8px; color: var(--muted);
  font-size: .72rem; line-height: 1.45;
}
.rfw-explanation {
  margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--muted);
  font-size: .8rem; line-height: 1.55;
}
.rfw-explanation b { color: var(--text); }
.rfw-tile-val {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.02rem;
  color: var(--text); overflow-wrap: anywhere; line-height: 1.25;
}
.rfw-tile-src .rfw-tile-val { color: var(--cyan); }
.rfw-tile-dst { border-color: rgba(217, 70, 239, .35); background: rgba(217, 70, 239, .06); }
.rfw-arrow {
  flex: 0 0 auto; align-self: center; font-size: 1.1rem; color: var(--fuchsia);
  text-shadow: 0 0 12px rgba(217, 70, 239, .8);
  animation: rfw-pulse 1.6s ease-in-out infinite;
}
@keyframes rfw-pulse {
  0%, 100% { opacity: .45; transform: translateX(-2px); }
  50% { opacity: 1; transform: translateX(2px); }
}

.rfw-field {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  transition: border-color .15s, box-shadow .15s;
}
.rfw-field:focus-within {
  border-color: var(--fuchsia);
  box-shadow: 0 0 0 3px rgba(217, 70, 239, .18);
}
.rfw-field .rfw-gear { flex: 0 0 auto; font-size: 1.05rem; }
.rfw-field input {
  flex: 1 1 auto; min-width: 0;
  background: none; border: 0; outline: 0;
  color: var(--text);
  font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
  padding: 12px 0;
}
.rfw-field input::placeholder { color: var(--muted-2); font-weight: 500; font-size: .92rem; }
.rfw-field input::-webkit-outer-spin-button,
.rfw-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rfw-field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.rfw-chips { display: flex; gap: 8px; margin-top: 10px; }
.rfw-chip {
  flex: 1 1 0; min-width: 0;
  padding: 9px 0; border-radius: 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-mono); font-weight: 700; font-size: .85rem;
  transition: background .15s, transform .15s, border-color .15s;
}
.rfw-chip:hover { background: var(--surface-2); transform: translateY(-1px); }
.rfw-chip-max { border-color: rgba(34, 211, 238, .45); color: var(--cyan); }

.rfw-preview {
  min-height: 1.3em; margin: 10px 0 2px;
  font-family: var(--font-mono); font-size: .82rem; color: var(--muted);
}

.rfw-go { width: 100%; margin-top: 10px; padding: 14px 18px; font-size: 1rem; white-space: normal; overflow-wrap: anywhere; }
.rfw-go:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
.rfw-go.rfw-armed {
  background: linear-gradient(120deg, #f59e0b, #ec4899);
  box-shadow: 0 0 28px -6px rgba(245, 158, 11, .65);
  animation: rfw-armed 1s ease-in-out infinite;
}
@keyframes rfw-armed {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

.rfw-next {
  display: flex; margin-top: 14px;
  border: 1px solid var(--border);
  background: var(--grad-soft);
  border-radius: var(--radius-sm);
}
.rfw-next a {
  flex: 1; padding: 11px 14px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.rfw-next a:hover { filter: brightness(1.15); }

@media (prefers-reduced-motion: reduce) {
  .rfw-arrow, .rfw-go.rfw-armed { animation: none; }
}

/* Refill modal — read-only wallet tutorial */
.rfw-help-toggle {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: .85rem; font-weight: 600;
  line-height: 1.5; min-height: 44px;
  padding: 10px 0; margin: 6px 0 0;
}
.rfw-help-toggle:hover { color: var(--text); }
.rfw-help {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0 0 14px;
}
.rfw-help[hidden] { display: none; }
.rfw-step { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.rfw-step-num {
  flex: 0 0 auto; font-family: var(--font-mono); font-weight: 700; font-size: .7rem;
  color: var(--cyan); border: 1px solid rgba(34, 211, 238, .4);
  border-radius: 8px; padding: 3px 7px; margin-top: 2px;
}
.rfw-step-body { min-width: 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.rfw-step-body b {
  display: block; color: var(--text); font-size: .8rem;
  letter-spacing: .08em; font-family: var(--font-mono);
}
.rfw-why {
  border: 1px dashed rgba(255, 200, 60, .5);
  background: rgba(255, 200, 60, .06);
  border-radius: 10px; padding: 10px 12px;
  font-size: .85rem; color: var(--muted); line-height: 1.5;
}
.rfw-why b {
  display: block; color: #ffc83c; font-size: .8rem;
  letter-spacing: .08em; font-family: var(--font-mono); margin-bottom: 2px;
}

/* Console: merged Tickets+Keys box, site currency toggle, tutorial modal */
/* The console shows ONE total: tickets or scrap, whichever the currency
   switch is on. The pair never appears converted into the other. */
.bal-total .v[hidden] { display: none; }

.bal-toggle {
  cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.bal-toggle:hover { border-color: rgba(232, 121, 249, .55); box-shadow: 0 0 18px rgba(232, 121, 249, .18); transform: translateY(-1px); }
.bal-toggle .v { color: #e879f9; }
.bal-toggle.bal-toggle-scrap:hover { border-color: rgba(34, 211, 238, .55); box-shadow: 0 0 18px rgba(34, 211, 238, .18); }
.bal-toggle.bal-toggle-scrap .v { color: var(--cyan); }
.bal-hint { font-size: .62rem; color: var(--muted); margin-top: 6px; letter-spacing: .06em; text-transform: uppercase; }
/* Per-game currency switch — the console toggle in miniature, sitting under
   each betting game so the wager currency is switchable in place. */
.unit-mini {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 340px; margin: 10px auto 0; padding: 7px 10px;
  border-radius: 10px; border: 1px solid rgba(232, 121, 249, .28);
  background: rgba(232, 121, 249, .07); color: #e879f9;
  font-family: inherit; font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.unit-mini:hover { border-color: rgba(232, 121, 249, .55); box-shadow: 0 0 14px rgba(232, 121, 249, .16); transform: translateY(-1px); }
.unit-mini .um-hint { color: var(--muted); font-size: .6rem; }
.unit-mini.unit-mini-scrap { border-color: rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .07); color: var(--cyan); }
.unit-mini.unit-mini-scrap:hover { border-color: rgba(34, 211, 238, .55); box-shadow: 0 0 14px rgba(34, 211, 238, .16); }
.rfw-info {
  border: 1px dashed rgba(34, 211, 238, .5);
  background: rgba(34, 211, 238, .06);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 10px;
  font-size: .85rem; color: var(--muted); line-height: 1.5;
}
.rfw-info b {
  display: block; color: var(--cyan); font-size: .8rem;
  letter-spacing: .08em; font-family: var(--font-mono); margin-bottom: 2px;
}
/* ---------- Site tutorial modal: arcade pipeline ----------
   No nested scroll region: on wide screens the pipeline goes two-up and the
   whole tour fits on screen; when it can't, the backdrop scrolls the card as
   one piece instead of showing a scrollbar inside the panel. */
.tut-backdrop { align-items: flex-start; overflow-y: auto; padding: 24px 18px; }
.tut-backdrop .theme-modal { margin: auto; } /* centred when it fits, scrolls when it doesn't */
.tut-modal { max-width: 620px; width: 100%; max-height: none; overflow: visible; }
.tut-flow { display: flex; flex-direction: column; }
.tut-step {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tut-step:hover { transform: translateY(-1px); }
.tut-step + .tut-step { margin-top: 12px; }
.tut-ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; line-height: 1;
  border: 1px solid var(--border-strong); background: var(--surface-2);
}
.tut-body { min-width: 0; font-size: .86rem; color: var(--muted); line-height: 1.55; }
.tut-eyebrow {
  display: block; font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .18em; margin-bottom: 2px;
}
.tut-body b {
  display: block; color: var(--text); font-family: var(--font-display);
  font-size: .8rem; letter-spacing: .07em; margin-bottom: 3px;
}
/* Per-step tones: cyan scrap → violet wallet → pink tickets, gold keys */
.tut-cyan .tut-ico { border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .08); box-shadow: 0 0 14px -4px rgba(34, 211, 238, .55); }
.tut-cyan .tut-eyebrow { color: var(--cyan); }
.tut-cyan.tut-step:hover { border-color: rgba(34, 211, 238, .5); box-shadow: 0 0 18px rgba(34, 211, 238, .16); }
.tut-violet .tut-ico { border-color: rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .1); box-shadow: 0 0 14px -4px rgba(139, 92, 246, .6); }
.tut-violet .tut-eyebrow { color: var(--violet); }
.tut-violet.tut-step:hover { border-color: rgba(139, 92, 246, .55); box-shadow: 0 0 18px rgba(139, 92, 246, .18); }
.tut-pink .tut-ico { border-color: rgba(236, 72, 153, .5); background: rgba(236, 72, 153, .09); box-shadow: 0 0 14px -4px rgba(236, 72, 153, .6); }
.tut-pink .tut-eyebrow { color: var(--pink); }
.tut-pink.tut-step:hover { border-color: rgba(236, 72, 153, .55); box-shadow: 0 0 18px rgba(236, 72, 153, .18); }
.tut-gold .tut-ico { border-color: rgba(255, 200, 60, .45); background: rgba(255, 200, 60, .08); box-shadow: 0 0 14px -4px rgba(255, 200, 60, .55); }
.tut-gold .tut-eyebrow { color: #ffc83c; }
.tut-gold.tut-step:hover { border-color: rgba(255, 200, 60, .5); box-shadow: 0 0 18px rgba(255, 200, 60, .15); }
/* Pipeline connector between steps 01→02→03 */
.tut-link {
  flex: 0 0 auto; width: 42px; margin-left: 14px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fuchsia); font-size: .6rem; opacity: .75;
}
/* Callout note cards (replace the old dashed boxes) */
.tut-note {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 14px;
  font-size: .86rem; color: var(--muted); line-height: 1.55;
}
.tut-note .tut-body b { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; }
.tut-note-cyan {
  border: 1px solid rgba(34, 211, 238, .4);
  background: rgba(34, 211, 238, .06);
  box-shadow: inset 0 0 30px -18px rgba(34, 211, 238, .6);
}
.tut-note-cyan .tut-body b { color: var(--cyan); }
/* Wide screens: two-up pipeline so the whole tour fits without scrolling.
   Must stay AFTER the base .tut-* rules above — same specificity, later wins. */
@media (min-width: 780px) {
  .tut-modal { max-width: 900px; }
  .tut-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .tut-flow > .tut-step + .tut-step, .tut-flow > .tut-note { margin-top: 0; }
  .tut-flow > .tut-note { grid-column: 1 / -1; }
  .tut-link { display: none; } /* the 01-04 eyebrows carry the order in grid mode */
}
@media (max-width: 560px) {
  .tut-ico { width: 34px; height: 34px; font-size: 1.05rem; border-radius: 10px; }
  .tut-step, .tut-note { padding: 10px 12px; gap: 10px; }
  .tut-link { width: 34px; margin-left: 12px; height: 16px; }
}
/* Glowing ? pill in the console header — opens the tutorial */
.tut-q {
  flex: 0 0 auto; padding: 4px 16px; margin: 0;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 800; font-size: .85rem; line-height: 1.4;
  color: #f5d0fe; background: rgba(217, 70, 239, .14);
  border: 1px solid rgba(217, 70, 239, .7);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(217, 70, 239, .55), 0 0 30px -6px rgba(217, 70, 239, .5), inset 0 0 8px rgba(217, 70, 239, .25);
  animation: tutqGlow 1.8s ease-in-out infinite;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.tut-q:hover {
  transform: scale(1.08); background: rgba(217, 70, 239, .28);
  box-shadow: 0 0 22px rgba(217, 70, 239, .9), 0 0 44px -6px rgba(217, 70, 239, .7), inset 0 0 10px rgba(217, 70, 239, .35);
  animation-play-state: paused;
}
@keyframes tutqGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(217, 70, 239, .4), 0 0 20px -6px rgba(217, 70, 239, .35), inset 0 0 6px rgba(217, 70, 239, .18); }
  50% { box-shadow: 0 0 20px rgba(217, 70, 239, .85), 0 0 40px -6px rgba(217, 70, 239, .65), inset 0 0 9px rgba(217, 70, 239, .32); }
}
@media (prefers-reduced-motion: reduce) {
  .tut-step:hover { transform: none; }
  .tut-q { animation: none; }
}

.bal-toggle .k, .bal-toggle .v, .bal-toggle .bal-hint { display: block; }
.bal-toggle .k { display: flex; }
.console-actions { flex-wrap: wrap; }

/* Ticket rail above the kit games (Slots / Mega Spinner / Packs). Those are
   ticket-only, so the balance has to stay on screen even in scrap view. It
   spans the whole games grid on desktop and matches a card's width on mobile. */
.tix-rail {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid rgba(232, 121, 249, .32);
  background: linear-gradient(90deg, rgba(232, 121, 249, .13), rgba(56, 189, 248, .07));
  box-shadow: 0 0 24px rgba(232, 121, 249, .10);
}
.tix-rail-k { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tix-rail-v { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; color: #e879f9; }
.tix-rail-note { margin-left: auto; font-size: .72rem; color: var(--muted); }
@media (max-width: 560px) {
  .tix-rail { justify-content: center; text-align: center; gap: 8px; padding: 12px 16px; }
  .tix-rail-note { margin-left: 0; width: 100%; }
}

/* Wallet scrap pill, directly under the console totals card. The site wallet
   is a separate holding from server scrap, so it reads as its own line rather
   than another figure inside the totals card. */
.bal-wallet {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 11px 18px; border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, .55);
  background: linear-gradient(90deg, rgba(168, 85, 247, .20), rgba(126, 34, 206, .12));
  box-shadow: 0 0 22px rgba(168, 85, 247, .35), inset 0 0 14px rgba(168, 85, 247, .12);
  cursor: pointer; text-align: left;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.bal-wallet:hover {
  border-color: rgba(192, 132, 252, .9);
  box-shadow: 0 0 30px rgba(168, 85, 247, .55), inset 0 0 16px rgba(168, 85, 247, .18);
  transform: translateY(-1px);
}
.bal-wallet[hidden] { display: none; }
.bw-k { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #d8b4fe; }
.bw-v { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: #f5d0fe; }
.bw-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bw-k { line-height: 1.45; overflow-wrap: anywhere; }
.bw-hint, .bal-location {
  display: block; color: var(--muted); font-size: .72rem;
  line-height: 1.45; letter-spacing: 0; text-transform: none;
}
.bal-location { margin-top: 6px; }
.bal-location[hidden] { display: none; }
.bal-wallet { border-radius: var(--radius-sm); flex-wrap: wrap; }
#kwSection .kw-balance-copy { min-width: 0; line-height: 1.5; }
#kwSection .kw-balance-copy small { display: block; color: var(--muted); font-size: .75rem; }
#kwSection .kw-direction { color: var(--text); }
#kwSection .btn { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .bal-wallet { flex-direction: column; gap: 4px; text-align: center; }
}

/* ---- KAOS Shop Admin: section tabs (no more scrolling past the catalog) ---- */
.ksa-tabs {
  position: sticky; top: 72px; z-index: 20;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 22px 0 -10px; padding: 10px;
  border-radius: 14px; border: 1px solid var(--ks-a22);
  background: var(--ks-dark92, rgba(10,6,16,.92));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ksa-tab {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
  color: var(--muted); font: inherit; font-size: .82rem; font-weight: 800;
  letter-spacing: .02em; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ksa-tab:hover { border-color: var(--ks-a45); color: var(--text); }
.ksa-tab.active {
  border-color: var(--ks-a65); background: var(--ks-a12); color: var(--ks-a2);
  box-shadow: 0 4px 16px var(--ks-a16);
}
.ksa-tab[hidden] { display: none; }
.ksa-tab-n {
  font-size: .7rem; font-weight: 800; line-height: 1;
  padding: 3px 7px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: var(--muted);
}
.ksa-tab.active .ksa-tab-n { background: var(--ks-a22); color: var(--ks-a2); }
.ksa-tab-n.alert { background: rgba(255,125,125,.18); color: #ff9d9d; }
.ksa-tab-n[hidden] { display: none; }
.ksa-panel[hidden] { display: none; }
/* .inv-balances sets display:grid, which beats the plain `hidden` attribute. */
.inv-balances[hidden] { display: none; }
@media (max-width: 640px) {
  .ksa-tabs { top: 60px; gap: 6px; padding: 8px; }
  .ksa-tab { flex: 1 1 44%; justify-content: center; padding: 10px 8px; font-size: .78rem; }
}

/* ===================== GLOBAL CHAT ===================== */
/* `hidden` guards — several chat elements set their own display, which would
   silently defeat the hidden attribute (see support tools bug, July 2026). */
.chat-gate[hidden], .chat-shell[hidden], .pc-backdrop[hidden], .to-ov[hidden],
.chat-emoji-picker[hidden],
.chat-jump[hidden], .chat-notice[hidden], .chat-share-btn[hidden],
.chat-count[hidden], .chat-dev-pill[hidden],
.chat-empty[hidden] { display: none !important; }

body.chat-page { overflow: hidden; height: 100dvh; }
.chat-main { width: 100%; max-width: 920px; margin: 0 auto; padding: 14px 16px 16px; height: calc(100dvh - 78px); display: flex; flex-direction: column; }

.chat-shell { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; background: rgba(13, 10, 24, 0.72); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.chat-head { padding: 12px 16px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.28); }
.chat-head-title { display: flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: 0.03em; font-size: 1.05rem; }
.chat-hash { color: var(--violet, #a78bfa); font-size: 1.25em; line-height: 1; }
.chat-dev-pill { font-size: 0.68rem; background: rgba(255, 200, 60, 0.14); color: #ffc83c; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255, 200, 60, 0.35); font-weight: 800; letter-spacing: 0.08em; }

.chat-log { flex: 1; overflow-y: auto; overflow-anchor: none; -webkit-overflow-scrolling: touch; padding: 12px 16px 10px; scrollbar-width: thin; scrollbar-color: rgba(139, 92, 246, 0.35) transparent; }
.chat-log::-webkit-scrollbar { width: 8px; }
.chat-log::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 8px; }
.chat-empty { color: rgba(255, 255, 255, 0.4); text-align: center; padding: 46px 12px; font-size: 0.95rem; }

.chat-day { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; color: rgba(255, 255, 255, 0.32); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.chat-day::before, .chat-day::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08); }

.cm { display: flex; gap: 10px; padding: 3px 8px; margin-top: 10px; border-radius: 10px; transition: opacity 0.6s ease, background 0.15s ease; }
.cm:hover { background: rgba(255, 255, 255, 0.03); }
.cm-cont { margin-top: 0; }
.cm-old { opacity: 0.45; }
.cm-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; margin-top: 2px; background: #1c1728; }
.cm-gutter { width: 40px; flex: none; }
.cm-main { flex: 1; min-width: 0; }
.cm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-time { color: rgba(255, 255, 255, 0.28); font-size: 0.68rem; }
.cm-body { color: rgba(255, 255, 255, 0.86); font-size: 0.95rem; line-height: 1.45; word-break: break-word; overflow-wrap: anywhere; }
.cm-cont .cm-body { flex: 1; min-width: 0; }

/* Name plates — panel theme banner + nameplate coloring + equipped emoji. */
.chat-plate { position: relative; z-index: 0; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border-radius: 999px; padding: 1px 2px; }
/* The panel banner is a streak, not a box: the tint (and its hairline top /
   bottom edges + glow) lives on a masked ::before that burns out to nothing
   at both ends, so it hugs the name and fades along it instead of ending in
   a hard border. (.chat-plate pseudos are free — legendary ornaments hang on
   .chat-name::before/::after, one level in.) */
.chat-plate[class*="pnl-"] { padding: 3px 16px; }
.chat-plate[class*="pnl-"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background:
    linear-gradient(color-mix(in srgb, var(--violet, #8b5cf6) 55%, transparent), color-mix(in srgb, var(--violet, #8b5cf6) 55%, transparent)) top center / 100% 1px no-repeat,
    linear-gradient(color-mix(in srgb, var(--violet, #8b5cf6) 55%, transparent), color-mix(in srgb, var(--violet, #8b5cf6) 55%, transparent)) bottom center / 100% 1px no-repeat,
    var(--grad-soft);
  box-shadow: 0 0 16px -4px var(--violet, #8b5cf6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.chat-emoji { font-size: 1.05rem; line-height: 1; }
/* The name span must NOT clip: legendary nameplates hang their ornaments
   (flames, halo, moon...) outside the text box with ::before/::after. The
   long-name ellipsis therefore lives on the inner text span instead. */
.chat-name { font-weight: 900; cursor: pointer; color: #eae5ff; }
.chat-name-txt { display: inline-block; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
/* Ornamented (legendary) plates reserve side room so the decorations sit
   inside the plate instead of over the emoji / avatar. */
.chat-name.nt-orn { margin-left: 1.45em; margin-right: 1.05em; }
.chat-name:hover { text-decoration: underline; }

/* Emoji share bubble */
.cm-share-row { margin-top: 14px; }
.cm-share { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 13px 15px; border-radius: 14px; background: linear-gradient(120deg, rgba(139, 92, 246, 0.16), rgba(236, 72, 153, 0.1)); border: 1px solid rgba(167, 139, 250, 0.35); }
.cm-share-emoji { font-size: 2.3rem; line-height: 1; animation: chatShareBob 2.2s ease-in-out infinite; }
.cm-share-text { flex: 1; min-width: 170px; color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }
.cm-share-verb { color: rgba(255, 255, 255, 0.5); font-style: italic; }
.cm-witness { border: none; cursor: pointer; border-radius: 999px; padding: 9px 16px; font-weight: 900; font-size: 0.8rem; letter-spacing: 0.06em; color: #fff; background: linear-gradient(120deg, #8b5cf6, #ec4899); box-shadow: 0 6px 18px -6px rgba(139, 92, 246, 0.6); }
.cm-witness:not(:disabled):hover { transform: translateY(-1px); }
.cm-witness:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
@keyframes chatShareBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }

/* Composer */
.chat-compose { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.28); }
.chat-notice { font-size: 0.82rem; margin: 0 4px 8px; padding: 8px 12px; border-radius: 10px; }
.chat-notice-err { background: rgba(255, 70, 70, 0.12); color: #ff8d8d; border: 1px solid rgba(255, 70, 70, 0.3); }
.chat-notice-warn { background: rgba(255, 200, 60, 0.1); color: #ffc83c; border: 1px solid rgba(255, 200, 60, 0.3); }
.chat-notice-info { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); }
.chat-input-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-text { flex: 1; resize: none; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 14px; padding: 11px 14px; color: #fff; font-size: 16px; line-height: 1.4; font-family: inherit; max-height: 120px; }
.chat-text:focus { outline: none; border-color: var(--violet, #8b5cf6); }
.chat-text:disabled { opacity: 0.55; }
.chat-send { width: 46px; height: 46px; flex: none; border: none; border-radius: 50%; cursor: pointer; color: #fff; font-size: 1.15rem; background: var(--grad, linear-gradient(120deg, #8b5cf6, #ec4899)); box-shadow: 0 6px 18px -6px rgba(139, 92, 246, 0.7); }
.chat-send:not(:disabled):hover { transform: translateY(-1px); }
.chat-send:disabled { opacity: 0.4; cursor: default; }
.chat-share-btn { height: 46px; flex: none; border-radius: 999px; padding: 0 13px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font-weight: 900; font-size: 0.95rem; cursor: pointer; }
.chat-share-btn:not(:disabled):hover { border-color: var(--violet, #8b5cf6); }
.chat-share-btn:disabled { opacity: 0.5; cursor: default; }
.chat-share-label { font-size: 0.78rem; letter-spacing: 0.06em; }
.chat-meta-row { display: flex; justify-content: flex-end; padding: 4px 8px 0; }
.chat-count { font-size: 0.72rem; color: rgba(255, 255, 255, 0.4); }
.chat-count-hot { color: #ff8d8d; font-weight: 800; }

/* Owned collectible picker — loaded only when SHARE is tapped. */
body.chat-emoji-picker-open { overflow: hidden; }
.chat-emoji-picker { position: fixed; inset: 0; z-index: 360; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(3, 2, 8, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chat-emoji-picker-card { position: relative; width: min(680px, 100%); max-height: min(78dvh, 720px); display: flex; flex-direction: column; overflow: hidden; padding: 24px; border-radius: 22px; color: #fff; background: linear-gradient(155deg, rgba(27, 18, 48, 0.99), rgba(10, 8, 20, 0.99)); border: 1px solid rgba(167, 139, 250, 0.34); box-shadow: 0 32px 100px rgba(0, 0, 0, 0.76), 0 0 52px rgba(139, 92, 246, 0.15); }
.chat-emoji-picker-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.08); }
.chat-emoji-picker-x:hover { background: rgba(255, 255, 255, 0.16); }
.chat-emoji-picker-kicker { color: #c4b5fd; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.2em; }
.chat-emoji-picker-card h3 { margin: 7px 44px 4px 0; font-size: clamp(1.35rem, 4vw, 2rem); }
.chat-emoji-picker-card > p { margin: 0 36px 16px 0; color: rgba(255, 255, 255, 0.58); font-size: 0.9rem; }
.chat-emoji-picker-status { padding: 14px; border-radius: 12px; color: rgba(255, 255, 255, 0.66); background: rgba(255, 255, 255, 0.05); text-align: center; }
.chat-emoji-picker-status-err { color: #ff9c9c; border: 1px solid rgba(255, 90, 90, 0.25); background: rgba(255, 70, 70, 0.08); }
.chat-emoji-picker-grid { min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 2px 5px 2px 2px; scrollbar-color: rgba(167, 139, 250, 0.42) transparent; }
.chat-emoji-pick { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; background: rgba(255, 255, 255, 0.045); text-align: left; cursor: pointer; transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease; }
.chat-emoji-pick:not(:disabled):hover { transform: translateY(-2px); border-color: rgba(167, 139, 250, 0.62); background: rgba(139, 92, 246, 0.13); }
.chat-emoji-pick:disabled { opacity: 0.48; cursor: wait; }
.chat-emoji-pick-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 13px; font-size: 1.85rem; line-height: 1; background: rgba(255, 255, 255, 0.06); }
.chat-emoji-pick-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.chat-emoji-pick-copy b { overflow: hidden; color: #fff; font-size: 0.88rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-emoji-pick-copy small { color: rgba(255, 255, 255, 0.42); font-size: 0.64rem; font-weight: 900; letter-spacing: 0.08em; }

.chat-jump { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 5; border: none; border-radius: 999px; padding: 9px 18px; font-weight: 800; font-size: 0.82rem; color: #fff; cursor: pointer; background: var(--grad, linear-gradient(120deg, #8b5cf6, #ec4899)); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7); }

/* Gates (logged-out / dev-locked) */
.chat-gate { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 14px; }
.chat-gate-card { position: relative; z-index: 2; max-width: 480px; width: 100%; text-align: center; background: rgba(12, 9, 22, 0.78); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 34px 26px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chat-gate-emoji { font-size: 3rem; }
.chat-gate-card h2 { font-size: 1.7rem; letter-spacing: 0.04em; margin: 10px 0 8px; }
.chat-gate-card p { color: rgba(255, 255, 255, 0.6); margin-bottom: 18px; font-size: 0.95rem; }
.chat-gate-locked .theme-lock-row { justify-content: center; margin-top: 6px; }
.chat-frost { position: absolute; inset: 0; overflow: hidden; opacity: 0.55; filter: blur(7px) saturate(0.75); pointer-events: none; }
.chat-frost-lines { display: flex; flex-direction: column; gap: 22px; padding: 40px 30px; }
.chat-frost-lines i { display: block; height: 38px; border-radius: 12px; background: linear-gradient(90deg, rgba(139, 92, 246, 0.35), rgba(255, 255, 255, 0.07) 70%); }
.chat-frost-lines i:nth-child(1) { width: 62%; }
.chat-frost-lines i:nth-child(2) { width: 44%; align-self: flex-end; background: linear-gradient(90deg, rgba(236, 72, 153, 0.3), rgba(255, 255, 255, 0.06) 70%); }
.chat-frost-lines i:nth-child(3) { width: 71%; }
.chat-frost-lines i:nth-child(4) { width: 38%; }
.chat-frost-lines i:nth-child(5) { width: 55%; align-self: flex-end; background: linear-gradient(90deg, rgba(34, 211, 238, 0.25), rgba(255, 255, 255, 0.06) 70%); }
.chat-frost-lines i:nth-child(6) { width: 66%; }

/* Playercard modal */
body.pc-open { overflow: hidden; }
.pc-backdrop { position: fixed; inset: 0; z-index: 300; background: rgba(3, 2, 8, 0.65); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.pc-card { position: relative; width: min(430px, 100%); background: linear-gradient(180deg, #171126, #0d0a18); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 20px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65); }
.pc-card[class*="pnl-"],.pc-inline[class*="pnl-"]{background:linear-gradient(145deg,var(--bg-2,#171126),var(--bg,#0d0a18));border-color:var(--border,rgba(255,255,255,.12));box-shadow:var(--glow,0 24px 65px rgba(0,0,0,.48)),inset 0 1px rgba(255,255,255,.06)}
.pc-card[class*="pnl-"]::before,.pc-inline[class*="pnl-"]::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;background:var(--grad);opacity:.12}
.pc-card[class*="pnl-"]>* ,.pc-inline[class*="pnl-"]>*{position:relative;z-index:1}
.pc-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 0.95rem; }
.pc-x:hover { background: rgba(255, 255, 255, 0.16); }
.pc-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding-right: 30px; }
.pc-avatar { width: 62px; height: 62px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); background: #1c1728; flex: none; }
.pc-id { min-width: 0; }
.pc-plate .chat-name-txt { max-width: 230px; }
.pc-since { color: rgba(255, 255, 255, 0.45); font-size: 0.78rem; margin-top: 5px; }
.pc-demo { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.pc-winfx-preview{margin:0 0 14px;padding:12px 14px;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(0,0,0,.2)}
.pc-winfx-preview .rw-row{margin-top:8px;min-height:44px}.pc-winfx-preview .rw-main{display:flex;min-width:0;align-items:center;gap:7px;flex-wrap:wrap}.pc-winfx-preview .rw-detail{color:rgba(255,255,255,.72);font-size:.78rem}.pc-winfx-preview .rw-detail b{color:#f6d365}
.pc-demo-label { font-size: 0.62rem; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.35); font-weight: 800; margin-bottom: 8px; }
.pc-demo-msg { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pc-demo-body { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.pc-stat { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; text-align: center; padding: 12px 6px; }
.pc-stat b { display: block; font-size: 1.45rem; line-height: 1.2; }
.pc-stat span { font-size: 0.66rem; color: rgba(255, 255, 255, 0.5); }
.pc-emoji-line { text-align: center; font-size: 0.85rem; color: #ffc83c; margin-bottom: 10px; }
.pc-msgs { text-align: center; color: rgba(255, 255, 255, 0.4); font-size: 0.75rem; }
.pc-loading { text-align: center; color: rgba(255, 255, 255, 0.5); padding: 30px 0; }
.pc-locked-note { color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); padding: 14px 16px; border-radius: 12px; font-size: 0.9rem; }
.pc-inline { position:relative;max-width:430px;overflow:hidden;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:18px; }
.pc-inline-hint { color: rgba(255, 255, 255, 0.45); font-size: 0.82rem; margin-top: 10px; max-width: 430px; }
.pc-inline-hint a { color: var(--violet, #a78bfa); }
.pc-badges {
  margin: 12px 0; padding: 10px; border-radius: 12px;
  background: rgba(5, 3, 14, .38); border: 1px solid rgba(255,255,255,.08);
}
.pc-badges-title {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-bottom: 8px; color: rgba(255,255,255,.68);
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
}
.pc-badges-title span:first-child { color: #a5f3fc; }
.pc-badges-title span:last-child { color: rgba(255,255,255,.35); font-size: .52rem; }
.pc-badges-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pc-badge {
  position: relative; display: grid; justify-items: center; min-width: 0;
  padding: 6px 3px 5px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035);
}
.pc-badge img { width: 36px; height: 36px; object-fit: contain; }
.pc-badge-name {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: rgba(255,255,255,.58); font-size: .52rem; letter-spacing: .04em;
  text-transform: uppercase;
}
.pc-badge-count {
  position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px;
  display: grid; place-items: center; padding: 0 4px; border-radius: 999px;
  background: rgba(7,4,16,.9); border: 1px solid rgba(255,255,255,.15);
  color: #fff; font: 700 .56rem/1 var(--font-mono);
}
.pc-badge.is-locked { opacity: .42; }
.pc-badge.is-locked img { filter: grayscale(1) brightness(.6); }
.pc-badge.is-owned[data-badge-kind="bronze"] { border-color: rgba(217,119,63,.45); }
.pc-badge.is-owned[data-badge-kind="silver"] { border-color: rgba(203,213,225,.45); }
.pc-badge.is-owned[data-badge-kind="gold"] { border-color: rgba(250,204,21,.5); box-shadow: inset 0 0 12px rgba(250,204,21,.1); }
.pc-badge.is-owned[data-badge-kind="diamond"] { border-color: rgba(103,232,249,.55); box-shadow: inset 0 0 14px rgba(103,232,249,.12); }

/* Secret Archive arrivals — a non-interactive, full-viewport boss card.
   Each key has an entirely different physical language: aurora / sonar / fallout. */
.to-ov { position: fixed; inset: 0; z-index: 400; overflow: hidden; pointer-events: none; isolation: isolate; background: rgba(5,3,13,.90); animation: toFade .32s ease both; }
.to-ov::before, .to-ov::after { content:""; position:absolute; inset:0; pointer-events:none; }
.to-ov::before { background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 5px); opacity:.18; mix-blend-mode:screen; }
.to-ov::after { border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 0 110px 35px rgba(0,0,0,.85); }
.to-center { position:absolute; inset:0; z-index:3; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:11px; padding:24px; text-align:center; }
.to-kicker { font: 800 clamp(.58rem,1.5vw,.77rem)/1 var(--font-mono); letter-spacing:.32em; color:rgba(255,255,255,.65); animation: toReveal .5s .35s both; }
.to-emoji { font-size:clamp(108px,28vw,230px); line-height:.88; filter:drop-shadow(0 0 28px rgba(255,255,255,.38)); animation: toReveal .7s .16s both; }
.to-name { font-family:var(--font-display); font-weight:900; font-size:clamp(1.45rem,5vw,3rem); line-height:1; letter-spacing:.13em; text-transform:uppercase; color:#f7f2ff; animation:toReveal .6s .5s both; }
.to-owner { font-size:.85rem; color:rgba(255,255,255,.62); letter-spacing:.03em; animation:toReveal .5s .72s both; }
.to-owner b { color:#fff; }
.to-atmosphere { position:absolute; inset:0; z-index:1; overflow:hidden; }
.to-atmosphere i { position:absolute; display:block; }
.to-scan { position:absolute; z-index:2; inset:0; background:linear-gradient(180deg, transparent 42%, rgba(255,255,255,.32) 50%, transparent 58%); opacity:0; mix-blend-mode:overlay; animation:toScan 2s .3s ease-in-out infinite; }
.to-ov.to-exit { animation:toExit .65s cubic-bezier(.55,0,1,.45) forwards; }
@keyframes toFade { from { opacity:0; } to { opacity:1; } }
@keyframes toExit { from { opacity:1; filter:brightness(1); } to { opacity:0; filter:brightness(1.7) blur(9px); } }
@keyframes toReveal { from { opacity:0; transform:translateY(18px) scale(.94); } to { opacity:1; transform:none; } }
@keyframes toScan { 0%,100% { transform:translateY(-100%); opacity:0; } 20%,72% { opacity:.65; } 80% { transform:translateY(100%); opacity:0; } }

/* Aurora Butterfly: a stained-glass northern sky opening behind the glyph. */
.to-purple-aurora-butterfly { background:#10061e; }
.to-purple-aurora-butterfly::after { box-shadow:inset 0 0 150px 48px #090310; }
.to-purple-aurora-butterfly .to-atmosphere { background:radial-gradient(ellipse at 50% 78%, rgba(255,87,213,.42), transparent 27%), linear-gradient(112deg, transparent 18%, rgba(170,91,255,.36) 32%, rgba(82,244,255,.32) 48%, rgba(255,141,218,.31) 67%, transparent 81%); filter:blur(8px) saturate(1.35); animation:auroraBreathe 3.2s ease-in-out infinite alternate; }
.to-purple-aurora-butterfly .to-atmosphere i { width:42vmax; height:42vmax; border:1px solid rgba(207,165,255,.34); border-radius:50%; left:50%; top:50%; transform:translate(-50%,-50%) scale(.1); animation:auroraRings 3s cubic-bezier(.15,.8,.2,1) infinite; }
.to-purple-aurora-butterfly .to-atmosphere i:nth-child(2){animation-delay:.55s}.to-purple-aurora-butterfly .to-atmosphere i:nth-child(3){animation-delay:1.1s}.to-purple-aurora-butterfly .to-atmosphere i:nth-child(4){animation-delay:1.65s}.to-purple-aurora-butterfly .to-atmosphere i:nth-child(5){animation-delay:2.2s}
.to-purple-aurora-butterfly .to-emoji { filter:drop-shadow(0 0 15px #f1b9ff) drop-shadow(0 0 68px #9e4bff); animation:butterflyLand 1.25s cubic-bezier(.15,1.25,.25,1) both; }
.to-purple-aurora-butterfly .to-name { color:#f4c7ff; text-shadow:0 0 28px #9d4edd; }
@keyframes auroraBreathe { from { transform:scale(1.02) rotate(-2deg); } to { transform:scale(1.14) rotate(2deg); } }
@keyframes auroraRings { from { opacity:.8; transform:translate(-50%,-50%) scale(.05); } to { opacity:0; transform:translate(-50%,-50%) scale(1); } }
@keyframes butterflyLand { 0% { opacity:0; transform:scale(.15) rotate(-34deg); } 55% { opacity:1; transform:scale(1.24) rotate(9deg); } 100% { opacity:1; transform:none; } }

/* Battleship Shark: an abyssal sonar lock, pressure lines and a hull-sized breach. */
.to-battleship-shark { background:radial-gradient(ellipse at 50% 115%, #07556a, #031820 56%, #01090d); }
.to-battleship-shark::before { opacity:.33; background:repeating-linear-gradient(90deg, rgba(100,240,255,.1) 0 1px, transparent 1px 50px), repeating-linear-gradient(0deg, rgba(100,240,255,.06) 0 1px, transparent 1px 50px); }
.to-battleship-shark .to-atmosphere { left:50%; top:50%; right:auto; bottom:auto; width:min(96vw,980px); aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; border:2px solid rgba(104,239,255,.48); box-shadow:0 0 0 16vmax rgba(1,13,18,.34), inset 0 0 70px rgba(36,227,255,.15); animation:sonarPing 2.15s cubic-bezier(.1,.7,.2,1) infinite; }
.to-battleship-shark .to-atmosphere i { inset:8%; border:1px solid rgba(126,243,255,.35); border-radius:50%; transform:rotate(var(--r,0deg)); }
.to-battleship-shark .to-atmosphere i:nth-child(1){--r:0deg}.to-battleship-shark .to-atmosphere i:nth-child(2){inset:22%;border-style:dashed;animation:spinSlow 5s linear infinite}.to-battleship-shark .to-atmosphere i:nth-child(3){inset:37%;background:conic-gradient(from 40deg, transparent 0 72%, rgba(105,242,255,.35) 73% 76%, transparent 77%);}.to-battleship-shark .to-atmosphere i:nth-child(4),.to-battleship-shark .to-atmosphere i:nth-child(5){display:none}
.to-battleship-shark .to-emoji { filter:drop-shadow(0 0 25px #8df5ff) drop-shadow(0 0 60px #117b9b); animation:sharkBreach 1.12s cubic-bezier(.1,.9,.2,1.18) both; }
.to-battleship-shark .to-name { color:#b7f8ff; text-shadow:0 0 26px #0cbed9; }
@keyframes sonarPing { 0%,100% { opacity:.78; transform:translate(-50%,-50%) scale(.84); } 52% { opacity:1; transform:translate(-50%,-50%) scale(1.03); } }
@keyframes spinSlow { to { transform:rotate(360deg); } }
@keyframes sharkBreach { 0% { opacity:0; transform:translateY(55vh) scale(.7) rotate(-14deg); } 66% { opacity:1; transform:translateY(-4vh) scale(1.19) rotate(7deg); } 100% { transform:none; } }

/* Secret Nuke: warning terminal, radioactive flash and escalating containment rings. */
.to-secret-nuke { background:#141b08; }
.to-secret-nuke::before { opacity:.42; background:repeating-linear-gradient(0deg, rgba(221,255,107,.13) 0 1px, transparent 1px 4px); }
.to-secret-nuke::after { border-color:rgba(215,255,73,.5); box-shadow:inset 0 0 130px 25px rgba(0,0,0,.85); animation:nukeFrame .55s steps(2) infinite; }
.to-secret-nuke .to-atmosphere { background:radial-gradient(circle at 50% 48%, rgba(224,255,69,.82), rgba(161,218,22,.25) 17%, transparent 42%); animation:nukeBloom 2.4s ease-in-out infinite; }
.to-secret-nuke .to-atmosphere i { left:50%; top:50%; width:8px; height:8px; border:2px solid #dcff56; transform:translate(-50%,-50%) rotate(45deg); animation:nukeRing 1.65s ease-out infinite; }
.to-secret-nuke .to-atmosphere i:nth-child(2){animation-delay:.33s}.to-secret-nuke .to-atmosphere i:nth-child(3){animation-delay:.66s}.to-secret-nuke .to-atmosphere i:nth-child(4){animation-delay:.99s}.to-secret-nuke .to-atmosphere i:nth-child(5){animation-delay:1.32s}
.to-secret-nuke .to-kicker { color:#e0ff68; }.to-secret-nuke .to-emoji { filter:drop-shadow(0 0 20px #ecff90) drop-shadow(0 0 85px #9ed70f); animation:nukeDrop .9s cubic-bezier(.2,.1,.3,1.4) both; }
.to-secret-nuke .to-name { color:#efffa9; text-shadow:0 0 22px #bded25; }
@keyframes nukeFrame { 50% { border-color:rgba(240,255,124,.16); } }
@keyframes nukeBloom { 0%,100% { opacity:.45; transform:scale(.82); } 45% { opacity:1; transform:scale(1.18); } }
@keyframes nukeRing { from { opacity:1; transform:translate(-50%,-50%) rotate(45deg) scale(1); } to { opacity:0; transform:translate(-50%,-50%) rotate(45deg) scale(42); } }
@keyframes nukeDrop { 0% { opacity:0; transform:scale(3.5); } 68% { opacity:1; transform:scale(.82); } 100% { transform:none; } }

.to-archive .to-atmosphere { background:radial-gradient(circle, rgba(139,92,246,.42), transparent 55%); }
.to-reduced .to-atmosphere, .to-reduced .to-scan { animation:none !important; }
.to-reduced .to-atmosphere i { display:none; }.to-reduced .to-emoji { animation:none; }
@media (prefers-reduced-motion: reduce) { .to-ov *, .to-ov::before, .to-ov::after, .cm-share-emoji { animation:none !important; } }

/* Homepage community hub — Recent wins + the live Global Chat room.
   The wins card is FIRST in the DOM so the mobile stack puts it above the
   chat; on desktop the two cards sit side by side at equal height. */
.hub-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 18px; align-items: stretch; }
.hub-card { display: flex; flex-direction: column; min-width: 0; height: 540px; background: linear-gradient(180deg, rgba(23, 17, 38, 0.92), rgba(13, 10, 24, 0.92)); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42); }
.hub-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.28); }
.hub-title { font-weight: 900; letter-spacing: 0.03em; font-size: 1rem; }
.hub-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.42); }
/* ⤢ — the room in a card is for lurking; this opens the full-screen page. */
.hub-expand { margin-left: auto; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; text-decoration: none; color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 1rem; line-height: 1; }
.hub-expand:hover { color: #fff; border-color: var(--violet, #8b5cf6); background: rgba(139, 92, 246, 0.18); }
.hub-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* The shared chat shell, stripped of its page-level frame. */
.chat-embed { height: 100%; border: none; border-radius: 0; background: transparent; box-shadow: none; }
.chat-gate-mini { padding: 18px 14px; }
.chat-gate-mini .chat-gate-card { padding: 22px 18px; }
.chat-gate-mini .chat-gate-emoji { font-size: 2.2rem; }
.chat-gate-mini .chat-gate-card p { font-size: 0.88rem; margin-bottom: 14px; }

/* Recent wins — the ticker feed, read as a list. */
.rw-list { list-style: none; margin: 0; padding: 6px 8px 10px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(139, 92, 246, 0.35) transparent; }
.rw-list::-webkit-scrollbar { width: 8px; }
.rw-list::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 8px; }
/* Card height is tuned so the full 12-win feed (the server's LIMIT) fits
   without a scrollbar: 12 rows ≈ 37px each inside the ~468px list body. */
.rw-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; }
.rw-row:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.rw-lead { flex: none; font-size: 0.95rem; line-height: 1; }
/* Themed winners get their nameplate here too, so the name span must not
   clip (ornaments hang outside it) — the inner span does the truncating. */
.rw-who { font-weight: 800; font-size: 0.88rem; color: #eae5ff; }
.rw-who-txt { display: inline-block; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.rw-game { flex: 1; min-width: 0; font-size: 0.73rem; color: rgba(255, 255, 255, 0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.rw-amt { flex: none; font-size: 0.85rem; font-weight: 900; color: #4ade80; }
.rw-empty { padding: 30px 14px; text-align: center; color: rgba(255, 255, 255, 0.4); font-size: 0.9rem; }

@media (max-width: 900px) {
  /* Stacked: wins on top (DOM order), the room underneath at a fixed height
     so the composer is always reachable without scrolling the card. */
  .hub-grid { grid-template-columns: 1fr; gap: 14px; }
  .hub-card { height: auto; }
  .rw-list { max-height: 250px; }
  .hub-chat { height: 440px; }
}

.chat-nav-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 6px 12px 6px 6px; font-size: 0.85rem; }
.chat-nav-chip img { width: 26px; height: 26px; border-radius: 50%; }

/* ---- supply drops: a house crate every 100 messages ---- */
.chat-notice-good { background: rgba(80, 255, 170, 0.12); color: #7dffc4; border: 1px solid rgba(80, 255, 170, 0.32); }


.cm-drop-row { padding-top: 6px; padding-bottom: 6px; }
/* ---- Ticket gifts (tap a name -> send tickets) ---------------------- */
.cm-tip-row { padding-block: 4px; }
.cm-tip {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 14px; border-radius: 14px;
  background: linear-gradient(115deg, rgba(125, 255, 196, 0.13), rgba(60, 220, 255, 0.07) 60%, rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(125, 255, 196, 0.3);
}
.cm-tip-icon { font-size: 1.5rem; line-height: 1; filter: drop-shadow(0 4px 10px rgba(125, 255, 196, 0.35)); }
.cm-tip-text {
  min-width: 0; flex: 1; font-size: 0.9rem; line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
}
.cm-tip-amt { color: #7dffc4; font-weight: 800; }
.cm-tip-to { color: #fff; font-weight: 700; cursor: pointer; }
.cm-tip-to:hover { text-decoration: underline; }

/* Playercard: the send-tickets box under the card body. */
.pc-tip {
  margin-top: 14px; padding: 13px 14px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(125, 255, 196, 0.26);
}
.pc-tip-head { font-size: 0.86rem; color: rgba(255, 255, 255, 0.72); margin-bottom: 9px; }
.pc-tip-head b { color: #fff; }
.pc-tip-row { display: flex; gap: 8px; }
.pc-tip-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 12px;
  border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 20, 0.7); color: #fff; font: inherit; font-size: 0.95rem;
}
.pc-tip-input:focus { outline: none; border-color: rgba(125, 255, 196, 0.55); }
.pc-tip-send {
  flex: none; cursor: pointer; border: 0; border-radius: 11px; padding: 0 20px; height: 42px;
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em;
  color: #06231a; background: linear-gradient(120deg, #7dffc4, #35d6ff);
  box-shadow: 0 6px 18px rgba(125, 255, 196, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.pc-tip-send:hover { transform: translateY(-1px); }
.pc-tip-send:disabled { opacity: 0.6; cursor: default; transform: none; }
.pc-tip-note { margin-top: 8px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.pc-tip-bad { color: #ff9b9b; }

.cm-drop {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(115deg, rgba(255, 190, 60, 0.14), rgba(255, 110, 40, 0.08) 60%, rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 190, 60, 0.34);
  box-shadow: 0 0 0 1px rgba(255, 190, 60, 0.06), 0 8px 26px rgba(255, 150, 40, 0.1);
}
.cm-drop-crate { font-size: 2rem; line-height: 1; animation: dropBob 2.6s ease-in-out infinite; filter: drop-shadow(0 4px 10px rgba(255, 170, 50, 0.4)); }
@keyframes dropBob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
.cm-drop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cm-drop-text > b { font-size: 0.82rem; letter-spacing: 0.12em; color: #ffd479; }
.cm-drop-sub { font-size: 0.86rem; color: rgba(255, 255, 255, 0.72); }
.cm-drop-sub b { color: #fff; }
.cm-drop-btn {
  flex: none; cursor: pointer; border: 0; border-radius: 999px;
  padding: 10px 20px; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.08em;
  color: #21160a; background: linear-gradient(120deg, #ffd479, #ffa53c);
  box-shadow: 0 6px 18px rgba(255, 165, 60, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.cm-drop-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(255, 165, 60, 0.45); }
.cm-drop-btn:active { transform: translateY(1px); }
.cm-drop-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.cm-drop-gone { flex: none; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.42); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 7px 14px; }
.cm-drop-done { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
.cm-drop-done .cm-drop-crate { animation: none; opacity: 0.5; filter: none; }
.cm-drop-done .cm-drop-text > b { color: rgba(255, 255, 255, 0.5); }
.cm-drop-win { animation: dropWin 1.1s ease; }
@keyframes dropWin {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(125, 255, 196, 0.55); }
  35% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(125, 255, 196, 0); }
  100% { transform: scale(1); box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-drop-crate, .cm-drop-win { animation: none; }
}

/* Mobile — the room is a full-height app screen. */
@media (max-width: 640px) {
  .chat-main { padding: 8px 8px 8px; height: calc(100dvh - 66px); }
  .chat-shell { border-radius: 14px; }
  .chat-head { padding: 10px 12px 8px; }
  .chat-log { padding: 10px 10px 8px; }
  .cm { gap: 8px; padding: 3px 5px; }
  .cm-avatar, .cm-gutter { width: 34px; }
  .cm-avatar { height: 34px; }
  .chat-name-txt { max-width: 150px; }
  .cm-body { font-size: 0.92rem; }
  .cm-share { gap: 10px; padding: 11px 12px; }
  .cm-share-emoji { font-size: 1.9rem; }
  .cm-witness { width: 100%; }
  .cm-drop { gap: 10px; padding: 10px 11px; }
  .cm-drop-crate { font-size: 1.7rem; }
  .cm-drop-sub { font-size: 0.8rem; }
  .cm-drop-btn { padding: 9px 15px; font-size: 0.76rem; }
  /* Narrow phones: let the pills drop to their own line instead of
     running off the edge of the header. */
  .chat-head-title { flex-wrap: wrap; row-gap: 6px; }
  .chat-compose { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .chat-send, .chat-share-btn { height: 44px; }
  .chat-send { width: 44px; }
  .chat-jump { bottom: 88px; }
  .chat-gate-card { padding: 26px 18px; }
  .pc-backdrop { align-items: flex-end; padding: 0; }
  .pc-card { width: 100%; border-radius: 20px 20px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .chat-emoji-picker { align-items: flex-end; padding: 0; }
  .chat-emoji-picker-card { width: 100%; max-height: 84dvh; padding: 21px 14px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .chat-emoji-picker-grid { grid-template-columns: 1fr; }
}

/* ---- KAOS Hub facelift: slim shop row, hub tabs, shared server bar, tab panels ---- */
.kh-shoprow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--ks-a28); background: var(--ks-dark);
  border-radius: 14px; padding: 12px 14px; margin: 0 0 14px;
}
.kh-shoprow-txt { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.kh-tabs { margin-bottom: 12px; }
.ks-chips [hidden] { display: none !important; }
.kh-serverbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px;
}
.kh-serverbar[hidden] { display: none !important; }
.kh-serverbar-label {
  font-size: .78rem; font-weight: 800; letter-spacing: .04em;
  color: var(--muted); text-transform: uppercase;
}
.kh-panel:not(.active) { display: none !important; }
.kh-swap { font-size: .85rem; }
.inv-bal-row[hidden] { display: none !important; }
.inv-balances input[type="number"], .inv-balances input[type="text"] {
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; color: inherit; font: inherit;
  min-width: 0;
}
.inv-balances input[type="number"]:focus, .inv-balances input[type="text"]:focus { outline: none; border-color: var(--ks-a55, var(--accent)); }

/* ---- Top Gamblers fixes: the absolute All-time pill overlapped long card
   titles on phones (put it in flow, above the title), and rows could poke
   past the card edge (min-width + compact fixed parts on small screens). */
.tg-card .tag-badge { position: static; display: inline-block; margin-bottom: 2px; }
.tg-row { min-width: 0; }
.tg-total { flex: 0 0 auto; }
@media (max-width: 480px) {
  .tg-row { gap: 8px; padding: 10px; }
  .tg-avatar { width: 30px; height: 30px; }
  .tg-medal { font-size: 1.1rem; }
  .tg-rank4 .tg-medal, .tg-rank5 .tg-medal { width: 1.1rem; font-size: .9rem; }
  .tg-name { font-size: .95rem; }
  .tg-total { font-size: .88rem; }
}

/* ---------- Roulette ---------- */
.rl-wheel-wrap { position: relative; width: 190px; height: 190px; margin: 14px auto 4px; }
.rl-pointer {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  color: #facc15; font-size: 17px; z-index: 3; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.rl-wheel {
  width: 100%; height: 100%; border-radius: 50%;
  border: 4px solid rgba(250, 204, 21, 0.35);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.25), inset 0 0 18px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.rl-wheel svg { display: block; width: 100%; height: 100%; will-change: transform; }
.rl-hub {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a2144, #120d20 70%);
  border: 2px solid rgba(250, 204, 21, 0.4); display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 1.2rem; z-index: 2;
  color: rgba(255, 255, 255, 0.75);
}
.rl-hub.green { color: #4ade80; }
.rl-hub.red { color: #f87171; }
.rl-hub.black { color: #e5e7eb; }
.rl-board {
  display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px;
  margin-top: 12px; user-select: none;
}
.rl-cell {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 26px; font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px; cursor: pointer; transition: filter 0.15s, outline-color 0.15s;
}
.rl-cell:hover { filter: brightness(1.4); }
.rl-cell.red { background: rgba(220, 38, 38, 0.55); }
.rl-cell.black { background: rgba(8, 8, 14, 0.8); }
.rl-cell.green { background: rgba(22, 163, 74, 0.6); }
.rl-cell.outside { background: rgba(168, 85, 247, 0.16); font-size: 9px; letter-spacing: 0.02em; }
.rl-cell.outside.red { background: rgba(220, 38, 38, 0.4); }
.rl-cell.outside.black { background: rgba(8, 8, 14, 0.7); }
.rl-cell.zero { font-size: 12px; }
.rl-cell.col-bet { font-size: 9px; }
.rl-cell.hit { outline: 2px solid #facc15; z-index: 1; }
.rl-chip {
  position: absolute; top: -5px; right: -4px; min-width: 16px; height: 16px;
  padding: 0 3px; border-radius: 8px;
  background: linear-gradient(180deg, #fde68a, #f59e0b); color: #1c1917;
  font-size: 8.5px; font-weight: 800; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  pointer-events: none; z-index: 2;
}
.rl-actions { display: flex; gap: 8px; }
.rl-actions .btn { flex: 1; white-space: nowrap; }

/* ===================== CHAT REPLIES ===================== */
/* Hold (touch) or right-click (mouse) a message -> ↩ Reply chip -> the
   composer arms with a "Replying to" bar; the sent message renders the
   quoted author + snippet above its body (snapshotted server-side). */
.cm-reply { display: flex; align-items: baseline; gap: 6px; margin: 0 0 3px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); cursor: pointer; min-width: 0; }
.cm-reply b { color: rgba(255, 255, 255, 0.72); font-weight: 700; white-space: nowrap; }
.cm-reply span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-reply:hover { color: rgba(255, 255, 255, 0.8); }
.cm-flash { animation: cmFlash 1.5s ease; }
@keyframes cmFlash {
  0%, 45% { background: rgba(139, 92, 246, 0.24); }
  100% { background: transparent; }
}

.chat-reply-bar { display: flex; align-items: center; gap: 7px; margin: 0 4px 8px; padding: 7px 11px; border-radius: 10px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.72); background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.32); min-width: 0; }
.chat-reply-bar[hidden] { display: none !important; }
.chat-reply-ico { color: var(--violet, #a78bfa); font-weight: 900; }
.chat-reply-lead { flex: none; white-space: nowrap; }
.chat-reply-lead b { color: var(--violet, #a78bfa); }
.chat-reply-snip { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.7; }
.chat-reply-x { flex: none; background: none; border: 0; color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; cursor: pointer; padding: 3px 7px; border-radius: 7px; line-height: 1; }
.chat-reply-x:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.chat-ctx { position: fixed; z-index: 500; }
.chat-ctx[hidden] { display: none !important; }
.chat-ctx-reply { border: 1px solid rgba(139, 92, 246, 0.5); background: rgba(20, 14, 38, 0.97); color: #fff; font-weight: 800; font-size: 0.85rem; padding: 9px 16px; border-radius: 999px; cursor: pointer; box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.7); }
.chat-ctx-reply:active { transform: scale(0.97); }

/* Touch screens: press-and-hold must win over the OS text-selection loupe.
   Mouse users keep normal selection — their trigger is right-click. */
@media (pointer: coarse) {
  .chat-log .cm { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}

/* ================================================================== */
/* ============ THEME MARKET EXPANSION (Aug 2026) =================== */
/* ================================================================== */

/* ---------- ANIMATED tier nameplates (unlimited, full motion) ------ */
.name-theme-solar_flare, .who.name-theme-solar_flare {
  background: linear-gradient(90deg, #ff3d00, #ff9100, #ffea00, #ff9100, #ff3d00);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ntSolarFlare 2.1s linear infinite, ntSolarFlick 1.3s ease-in-out infinite;
}
@keyframes ntSolarFlare { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes ntSolarFlick {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 111, 0, 0.55)); }
  50% { filter: drop-shadow(0 0 14px rgba(255, 61, 0, 0.95)) brightness(1.15); }
}
.name-theme-voltage, .who.name-theme-voltage {
  color: #7df9ff;
  animation: ntVoltage 1.7s steps(1, end) infinite;
}
@keyframes ntVoltage {
  0%, 100% { text-shadow: 0 0 6px #00e5ff, 0 0 16px rgba(0, 229, 255, 0.55); color: #7df9ff; }
  8%, 12% { text-shadow: 2px 0 #00e5ff, -2px 0 #b3f6ff, 0 0 26px #00e5ff; color: #eafdff; }
  10% { text-shadow: -2px 0 #00e5ff, 2px 0 #b3f6ff, 0 0 34px #7df9ff; }
  54% { text-shadow: 0 0 10px #00e5ff, 0 0 22px rgba(0, 229, 255, 0.8); color: #d2fbff; }
}
.name-theme-phantom_glitch, .who.name-theme-phantom_glitch {
  color: #e6e6fa;
  animation: ntGlitch 2.4s steps(1, end) infinite;
}
@keyframes ntGlitch {
  0%, 82%, 100% { text-shadow: 1px 0 rgba(255, 0, 80, 0.75), -1px 0 rgba(0, 240, 255, 0.75); }
  84% { text-shadow: 4px 0 rgba(255, 0, 80, 0.95), -4px 0 rgba(0, 240, 255, 0.95); color: #fff; }
  86% { text-shadow: -3px 0 rgba(255, 0, 80, 0.9), 3px 0 rgba(0, 240, 255, 0.9); }
  88% { text-shadow: 2px 1px rgba(255, 0, 80, 0.9), -2px -1px rgba(0, 240, 255, 0.9); color: #cfd0ff; }
  90% { text-shadow: 1px 0 rgba(255, 0, 80, 0.75), -1px 0 rgba(0, 240, 255, 0.75); }
}
.name-theme-aurora_wave, .who.name-theme-aurora_wave {
  background: linear-gradient(100deg, #00ffc8, #4dc9ff, #7c5cff, #00e5a0, #00ffc8);
  background-size: 350% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ntAurora 4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 7px rgba(0, 255, 200, 0.45));
}
@keyframes ntAurora { 0% { background-position: 0% 50%; } 100% { background-position: 350% 50%; } }

/* ---------- Seasonal one-off plates ---------- */
.name-theme-harvest_reaper, .who.name-theme-harvest_reaper {
  background: linear-gradient(90deg, #ff7518, #2e1503, #ff9d2e, #39ff6a, #ff7518);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ntHarvest 3.2s linear infinite, ntHarvestGlow 1.6s ease-in-out infinite;
}
@keyframes ntHarvest { 0% { background-position: 0% 50%; } 100% { background-position: 320% 50%; } }
@keyframes ntHarvestGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 117, 24, 0.6)); }
  50% { filter: drop-shadow(0 0 13px rgba(57, 255, 106, 0.55)); }
}
.name-theme-krampus_night, .who.name-theme-krampus_night {
  color: #ff2e2e;
  animation: ntKrampus 2.6s steps(1, end) infinite;
}
@keyframes ntKrampus {
  0%, 100% { text-shadow: 0 0 7px rgba(255, 46, 46, 0.85), 0 0 20px rgba(150, 0, 0, 0.7); color: #ff2e2e; }
  70%, 74% { text-shadow: 0 0 10px #bfeaff, 0 0 26px #6fd3ff; color: #eaf9ff; }
  72% { text-shadow: 0 0 16px #ffffff, 0 0 34px #9be8ff; }
}
.name-theme-midnight_2027, .who.name-theme-midnight_2027 {
  background: linear-gradient(90deg, #f9e79f, #fff8dc, #d4af37, #fffacd, #f9e79f);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ntMidnight 3s linear infinite, ntMidnightPop 2s ease-in-out infinite;
}
@keyframes ntMidnight { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes ntMidnightPop {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.6)); }
  50% { filter: drop-shadow(0 0 14px rgba(255, 248, 220, 0.9)) brightness(1.2); }
}
.name-theme-cupids_curse, .who.name-theme-cupids_curse {
  color: #ff4f9a;
  animation: ntCupid 1.15s ease-in-out infinite;
}
@keyframes ntCupid {
  0%, 100% { text-shadow: 0 0 6px rgba(255, 79, 154, 0.8), 0 0 16px rgba(220, 20, 60, 0.5); }
  30% { text-shadow: 0 0 13px #ff4f9a, 0 0 30px #dc143c; color: #ffd6e8; }
  45% { text-shadow: 0 0 8px rgba(255, 79, 154, 0.9), 0 0 20px rgba(220, 20, 60, 0.7); }
}
.name-theme-lucky_devil, .who.name-theme-lucky_devil {
  background: linear-gradient(90deg, #2eff71, #ffd700, #0aa640, #ffe9a3, #2eff71);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ntLucky 2.6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(46, 255, 113, 0.55));
}
@keyframes ntLucky { 0% { background-position: 0% 50%; } 100% { background-position: 320% 50%; } }

/* ---------- Prestige plates (earned, never sold) ---------- */
.name-theme-bowl_champion, .who.name-theme-bowl_champion {
  background: linear-gradient(90deg, #ffe9a3, #ffd700, #b8860b, #ffd700, #ffe9a3);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ntBowlChamp 3.4s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.65));
}
@keyframes ntBowlChamp { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.name-theme-bowl_champion::before { content: "🏆"; margin-right: 0.35em; }
.name-theme-bowl_champion::after { content: "🏆"; margin-left: 0.35em; }
.name-theme-crash_legend, .who.name-theme-crash_legend {
  color: #ff5252;
  animation: ntCrashLegend 1.4s ease-in-out infinite;
}
@keyframes ntCrashLegend {
  0%, 100% { text-shadow: 0 0 6px rgba(255, 82, 82, 0.85), 0 0 18px rgba(255, 145, 0, 0.5); }
  50% { text-shadow: 0 0 14px #ff9100, 0 0 32px #ff5252; color: #ffd9b3; }
}
.name-theme-crash_legend::before { content: "🚀"; margin-right: 0.35em; }
.name-theme-crash_legend::after { content: "💥"; margin-left: 0.35em; }
.name-theme-high_roller_eternal, .who.name-theme-high_roller_eternal {
  background: linear-gradient(90deg, #50fa9c, #14f1d9, #0aa694, #7dffce, #50fa9c);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ntHighRoller 4.6s linear infinite;
  filter: drop-shadow(0 0 7px rgba(20, 241, 217, 0.6));
}
@keyframes ntHighRoller { 0% { background-position: 0% 50%; } 100% { background-position: 320% 50%; } }
.name-theme-high_roller_eternal::before { content: "💎"; margin-right: 0.35em; }
.name-theme-high_roller_eternal::after { content: "💎"; margin-left: 0.35em; }
.name-theme-nuke_runner, .who.name-theme-nuke_runner {
  background: linear-gradient(90deg, #d8ff3f, #fff7a3, #ff743d, #d8ff3f);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ntNukeRunner 2.2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(216, 255, 63, 0.7));
}
@keyframes ntNukeRunner { 0% { background-position: 0% 50%; } 100% { background-position: 320% 50%; } }
.name-theme-nuke_runner::before { content: "☢"; margin-right: 0.35em; color: #d8ff3f; }
.name-theme-nuke_runner::after { content: "☢"; margin-left: 0.35em; color: #ff743d; }

/* ---------- Contract-earned prestige plates: compact, recognizable signatures ---------- */
/* Collector Initiate — the first artifact out of a freshly opened vault. */
.name-theme-collector_initiate, .who.name-theme-collector_initiate {
  display: inline-block;
  isolation: isolate;
  font-weight: 800;
  letter-spacing: .018em;
  background: linear-gradient(105deg, #54f4ff 0%, #c7fdff 26%, #ff73dc 47%, #fff0fb 57%, #55e8ff 77%, #ec58cf 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 8px rgba(69, 232, 255, .2), 0 0 13px rgba(239, 81, 204, .16);
  animation: ntCollectorAcquire 3.6s linear infinite;
}
.name-theme-collector_initiate::before,
.name-theme-collector_initiate::after {
  display: inline-block;
  vertical-align: .08em;
  font-size: .68em;
  line-height: 1;
  font-weight: 900;
  text-shadow: none;
  animation: ntCollectorFacet 1.8s ease-in-out infinite alternate;
}
.name-theme-collector_initiate::before {
  content: "◇";
  margin-right: .31em;
  color: #63efff;
}
.name-theme-collector_initiate::after {
  content: "◇";
  margin-left: .31em;
  color: #ff72d6;
  animation-delay: -.9s;
}
@keyframes ntCollectorAcquire { to { background-position: 240% 50%; } }
@keyframes ntCollectorFacet {
  from { transform: scale(.82) rotate(-12deg); opacity: .58; }
  to { transform: scale(1.12) rotate(12deg); opacity: 1; }
}

/* Set Keeper — three pieces index into a single ceremonial gold-violet seal. */
.name-theme-set_keeper, .who.name-theme-set_keeper {
  display: inline-block;
  font-weight: 850;
  letter-spacing: .025em;
  background: linear-gradient(100deg, #a87ae6 0%, #f8d66d 24%, #fff2bb 39%, #c29aff 56%, #f3c850 74%, #9c70d8 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 7px rgba(248, 204, 93, .24), 0 0 12px rgba(172, 119, 234, .18);
  animation: ntSetLock 4.4s ease-in-out infinite;
}
.name-theme-set_keeper::before {
  content: "";
  display: inline-block;
  width: .82em;
  height: .38em;
  margin-right: .32em;
  vertical-align: .12em;
  border: 1px solid #efcf68;
  background: linear-gradient(90deg, #9d72dc 0 25%, transparent 25% 37%, #f6d56e 37% 63%, transparent 63% 75%, #b085ec 75%);
  box-shadow: 0 0 7px rgba(245, 208, 100, .3);
  animation: ntSetPieces 2.8s ease-in-out infinite;
}
.name-theme-set_keeper::after {
  content: "◆";
  display: inline-block;
  margin-left: .28em;
  vertical-align: .06em;
  color: #f6d36a;
  font-size: .62em;
  line-height: 1;
  text-shadow: 0 0 7px rgba(195, 146, 255, .55);
  animation: ntSetSeal 2.8s ease-in-out infinite;
}
@keyframes ntSetLock {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes ntSetPieces {
  0%, 20%, 100% { transform: translateX(0); opacity: .75; }
  48%, 62% { transform: translateX(.1em); opacity: 1; }
}
@keyframes ntSetSeal {
  0%, 42%, 100% { transform: scale(.78) rotate(0); opacity: .56; }
  56%, 72% { transform: scale(1.14) rotate(45deg); opacity: 1; }
}

/* Kit Veteran — scuffed kit steel, hot sparks, and a disciplined field scan. */
.name-theme-kit_veteran, .who.name-theme-kit_veteran {
  display: inline-block;
  font-weight: 850;
  letter-spacing: .02em;
  background: linear-gradient(100deg, #727c78 0%, #d8ddd0 17%, #819182 32%, #e6a157 45%, #cbd5c8 55%, #627265 73%, #d4dbcd 87%, #768277 100%);
  background-size: 235% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(10, 16, 13, .8), 0 0 8px rgba(204, 106, 43, .2);
  animation: ntKitPatrol 5.2s linear infinite;
}
.name-theme-kit_veteran::before,
.name-theme-kit_veteran::after {
  display: inline-block;
  vertical-align: .08em;
  font: 900 .62em/1 var(--font-mono);
  text-shadow: 0 0 7px rgba(255, 137, 53, .38);
}
.name-theme-kit_veteran::before {
  content: "╫";
  margin-right: .34em;
  color: #b8c76b;
  animation: ntKitScan 1.9s steps(2, end) infinite;
}
.name-theme-kit_veteran::after {
  content: "✦";
  margin-left: .32em;
  color: #f19a45;
  animation: ntKitSpark 2.6s ease-in-out infinite;
}
@keyframes ntKitPatrol { to { background-position: 235% 50%; } }
@keyframes ntKitScan {
  0%, 100% { transform: translateY(-.08em); opacity: .48; }
  50% { transform: translateY(.1em); opacity: 1; }
}
@keyframes ntKitSpark {
  0%, 72%, 100% { transform: scale(.72) rotate(0); opacity: .42; }
  82% { transform: scale(1.2) rotate(22deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .name-theme-collector_initiate, .who.name-theme-collector_initiate,
  .name-theme-set_keeper, .who.name-theme-set_keeper,
  .name-theme-kit_veteran, .who.name-theme-kit_veteran,
  .name-theme-collector_initiate::before, .name-theme-collector_initiate::after,
  .name-theme-set_keeper::before, .name-theme-set_keeper::after,
  .name-theme-kit_veteran::before, .name-theme-kit_veteran::after {
    animation: none;
  }
  .name-theme-collector_initiate { background-position: 42% 50%; }
  .name-theme-set_keeper { background-position: 48% 50%; }
  .name-theme-kit_veteran { background-position: 54% 50%; }
}

/* ---------- New rarity frames + text colors ---------- */
.rarity-frame.rarity-animated { border-color: rgba(64, 224, 255, 0.55); }
.rarity-animated .rarity-label { color: #40e0ff; text-shadow: 0 0 10px rgba(64, 224, 255, 0.5); }
.rarity-frame.rarity-seasonal { border-color: rgba(255, 140, 50, 0.6); }
.rarity-seasonal .rarity-label { color: #ff8c32; text-shadow: 0 0 10px rgba(255, 140, 50, 0.5); }
.rarity-seasonal .stock-left { align-self: flex-start; color: #ff8c32; background: rgba(255, 140, 50, 0.1); border-color: rgba(255, 140, 50, 0.4); }
.rarity-frame.rarity-prestige { border-color: rgba(255, 215, 0, 0.55); }
.rarity-prestige .rarity-label { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.rarity-txt-animated { color: #40e0ff; }
.rarity-txt-seasonal { color: #ff8c32; }
.rarity-txt-prestige { color: #ffd700; }
.rarity-txt-mythical { color: #f87171; }
/* Emoji collections on resale cards: gold for the 1-of-1 originals, teal for
   the 3-copy restock — the same two accents the Emoji Market itself uses. */
.rarity-txt-original { color: #fbbf24; }
.rarity-txt-restock { color: #5eead4; }
.rs-emoji-preview { display: flex; align-items: center; justify-content: center; }

/* ---------- Entrance FX: whole win-feed rows light up ---------- */
.titem.winfx-fx_inferno, .rw-row.winfx-fx_inferno, .fx-demo.winfx-fx_inferno {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 61, 0, 0.20), rgba(255, 145, 0, 0.07) 55%, transparent 85%);
  animation: fxInferno 1.4s ease-in-out infinite;
}
@keyframes fxInferno {
  0%, 100% { box-shadow: inset 0 -6px 14px -6px rgba(255, 90, 0, 0.5); }
  50% { box-shadow: inset 0 -11px 22px -6px rgba(255, 145, 0, 0.85), 0 0 12px rgba(255, 90, 0, 0.35); }
}
.titem.winfx-fx_thunder, .rw-row.winfx-fx_thunder, .fx-demo.winfx-fx_thunder {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), transparent 65%);
  animation: fxThunder 2.6s steps(1, end) infinite;
}
@keyframes fxThunder {
  0%, 88%, 94%, 100% { box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.28); }
  89%, 93% { box-shadow: inset 0 0 20px rgba(125, 249, 255, 0.75), 0 0 14px rgba(0, 229, 255, 0.6); background-color: rgba(0, 229, 255, 0.13); }
  91% { box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.8), 0 0 18px rgba(125, 249, 255, 0.8); }
}
.titem.winfx-fx_confetti, .rw-row.winfx-fx_confetti, .fx-demo.winfx-fx_confetti {
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.035);
  /* Each dot layer is a repeating tile (background-size) and each cycle moves
   * it by EXACTLY one tile (±width, +height) — the wrap is invisible, so the
   * cannon loops seamlessly instead of snapping back every 1.7s. */
  background-image:
    radial-gradient(circle at 5px 6px, rgba(255, 79, 216, 0.6) 0 2px, transparent 3px),
    radial-gradient(circle at 12px 12px, rgba(61, 184, 255, 0.6) 0 2px, transparent 3px),
    radial-gradient(circle at 8px 9px, rgba(255, 229, 61, 0.65) 0 2px, transparent 3px),
    radial-gradient(circle at 16px 5px, rgba(61, 255, 136, 0.6) 0 2px, transparent 3px),
    radial-gradient(circle at 10px 15px, rgba(176, 61, 255, 0.6) 0 2px, transparent 3px);
  background-size: 26px 24px, 32px 30px, 38px 26px, 30px 34px, 44px 28px;
  animation: fxConfetti 1.7s linear infinite;
}
@keyframes fxConfetti {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 26px 24px, -32px 30px, 38px 26px, -30px 34px, 44px 28px; }
}
.titem.winfx-fx_gold_rain, .rw-row.winfx-fx_gold_rain, .fx-demo.winfx-fx_gold_rain {
  border-radius: 10px;
  /* Vertical coin streaks (tall thin ellipses) falling straight DOWN — the
   * old repeating-linear-gradient at ~180deg drew horizontal bars. Each layer
   * drops exactly one tile height per cycle at a different speed (parallax),
   * so the loop is seamless. */
  background-image:
    radial-gradient(2px 6px at 9px 8px, rgba(255, 215, 64, 0.5) 0 60%, transparent 100%),
    radial-gradient(2px 7px at 22px 20px, rgba(255, 180, 40, 0.38) 0 60%, transparent 100%),
    radial-gradient(1.5px 5px at 33px 12px, rgba(255, 230, 120, 0.42) 0 60%, transparent 100%);
  background-size: 42px 30px, 46px 40px, 38px 34px;
  animation: fxGoldRain 1.15s linear infinite;
  box-shadow: inset 0 0 12px rgba(255, 200, 60, 0.18);
}
@keyframes fxGoldRain { 0% { background-position: 0 0, 0 0, 0 0; } 100% { background-position: 0 30px, 0 40px, 0 34px; } }
.titem.winfx-fx_frostbite, .rw-row.winfx-fx_frostbite, .fx-demo.winfx-fx_frostbite {
  border-radius: 10px;
  background-color: rgba(148, 216, 255, 0.05);
  /* Snow drifts down-right; each layer moves EXACTLY one tile per cycle
   * (±width, +height) so the loop never snaps — same rule as confetti. */
  background-image:
    radial-gradient(circle at 7px 5px, rgba(224, 247, 255, 0.6) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 18px 14px, rgba(148, 216, 255, 0.45) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 11px 10px, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px);
  background-size: 30px 26px, 40px 34px, 34px 30px;
  animation: fxFrostbite 3.1s linear infinite;
  box-shadow: inset 0 0 14px rgba(148, 216, 255, 0.28);
}
@keyframes fxFrostbite { 0% { background-position: 0 0, 0 0, 0 0; } 100% { background-position: 30px 26px, -40px 34px, 34px 30px; } }
.titem.winfx-fx_toxic, .rw-row.winfx-fx_toxic, .fx-demo.winfx-fx_toxic {
  border-radius: 10px;
  background-color: rgba(57, 255, 20, 0.045);
  /* Bubbles RISE: y walks back one full tile height per cycle. */
  background-image:
    radial-gradient(circle at 6px 18px, rgba(57, 255, 20, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 20px 8px, rgba(163, 230, 53, 0.4) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 13px 24px, rgba(74, 222, 128, 0.35) 0 2px, transparent 3px);
  background-size: 32px 28px, 38px 32px, 44px 36px;
  animation: fxToxic 2.3s linear infinite;
  box-shadow: inset 0 -8px 16px -6px rgba(57, 255, 20, 0.4);
}
@keyframes fxToxic { 0% { background-position: 0 0, 0 0, 0 0; } 100% { background-position: 0 -28px, 0 -32px, 0 -36px; } }
.titem.winfx-fx_glitch, .rw-row.winfx-fx_glitch, .fx-demo.winfx-fx_glitch {
  border-radius: 10px;
  background: repeating-linear-gradient(0deg, rgba(34, 211, 238, 0.07) 0 2px, transparent 2px 4px);
  animation: fxGlitch 2.8s steps(1, end) infinite;
}
@keyframes fxGlitch {
  0%, 78%, 86%, 100% { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.22); }
  79%, 83% { box-shadow: inset 3px 0 0 0 rgba(255, 0, 128, 0.55), inset -3px 0 0 0 rgba(0, 255, 255, 0.55); background-color: rgba(255, 0, 128, 0.06); }
  81% { box-shadow: inset -4px 0 0 0 rgba(255, 0, 128, 0.7), inset 4px 0 0 0 rgba(0, 255, 255, 0.7), 0 0 10px rgba(0, 255, 255, 0.4); }
  85% { box-shadow: inset 0 0 14px rgba(148, 0, 255, 0.5); }
}
.titem.winfx-fx_bloodmoon, .rw-row.winfx-fx_bloodmoon, .fx-demo.winfx-fx_bloodmoon {
  border-radius: 10px;
  background: radial-gradient(ellipse at 85% 50%, rgba(220, 38, 38, 0.22), rgba(80, 7, 12, 0.12) 55%, transparent 80%);
  animation: fxBloodMoon 3.2s ease-in-out infinite;
}
@keyframes fxBloodMoon {
  0%, 100% { box-shadow: inset 0 0 18px rgba(127, 8, 16, 0.55); }
  12% { box-shadow: inset 0 0 26px rgba(220, 38, 38, 0.75), 0 0 12px rgba(220, 38, 38, 0.35); }
  24% { box-shadow: inset 0 0 18px rgba(127, 8, 16, 0.55); }
  36% { box-shadow: inset 0 0 30px rgba(220, 38, 38, 0.8), 0 0 16px rgba(220, 38, 38, 0.45); }
  60% { box-shadow: inset 0 0 18px rgba(127, 8, 16, 0.55); }
}
.titem.winfx-fx_disco, .rw-row.winfx-fx_disco, .fx-demo.winfx-fx_disco {
  border-radius: 10px;
  /* Vertical light bars slide sideways exactly one 70px period per cycle. */
  background-image: repeating-linear-gradient(90deg,
    rgba(255, 61, 148, 0.16) 0 14px, rgba(255, 214, 61, 0.14) 14px 28px,
    rgba(61, 255, 136, 0.13) 28px 42px, rgba(61, 184, 255, 0.16) 42px 56px,
    rgba(176, 61, 255, 0.14) 56px 70px);
  animation: fxDisco 2.4s linear infinite, fxDiscoGlow 1.2s ease-in-out infinite alternate;
}
@keyframes fxDisco { 0% { background-position: 0 0; } 100% { background-position: 70px 0; } }
@keyframes fxDiscoGlow {
  0% { box-shadow: inset 0 0 12px rgba(255, 61, 148, 0.3); }
  100% { box-shadow: inset 0 0 12px rgba(61, 184, 255, 0.35); }
}
.titem.winfx-fx_royalty, .rw-row.winfx-fx_royalty, .fx-demo.winfx-fx_royalty {
  border-radius: 10px;
  background-color: rgba(126, 34, 206, 0.10);
  /* Gold shimmer sweeps left→right; one 260px tile per cycle = seamless. */
  background-image: linear-gradient(115deg, transparent 0 38%, rgba(255, 215, 0, 0.30) 46%, rgba(255, 245, 200, 0.48) 50%, rgba(255, 215, 0, 0.30) 54%, transparent 62% 100%);
  background-size: 260px 100%;
  background-repeat: repeat-x;
  animation: fxRoyalty 2.8s linear infinite;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.3), inset 0 0 14px rgba(126, 34, 206, 0.35);
}
@keyframes fxRoyalty { 0% { background-position: 0 0; } 100% { background-position: 260px 0; } }

/* ---------- Market sections: FX shelf, prestige shelf, seasonal ---------- */
.fx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; }
@media (max-width: 1100px) { .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fx-grid { grid-template-columns: 1fr; } }
.fx-blurb { font-size: 0.85rem; color: #cbd5e1; max-width: 720px; margin-bottom: 6px; }
.fx-demo {
  width: 100%;
  padding: 12px 10px;
  background: #05070c;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-demo b { color: #ffd166; }
.fx-demo-name { font-weight: 800; }
.prestige-card.locked .theme-preview { filter: grayscale(0.9) brightness(0.55); }
.prestige-req { font-size: 0.78rem; color: #cbd5e1; min-height: 2.1em; }
.prestige-lock {
  width: 100%;
  border: 1px dashed rgba(255, 215, 0, 0.4);
  border-radius: 10px;
  padding: 9px 10px;
  font-weight: 800;
  color: rgba(255, 215, 0, 0.75);
  text-align: center;
}
.seasonal-tease .legend-week { font-size: 0.95rem; }

/* ---------- Player resale market ---------- */
.rs-burn-note {
  font-size: 0.88rem;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 9px 12px;
  margin: 10px 0;
}
.rs-sell {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}
.rs-sell[hidden] { display: none; }
.rs-sell label { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; }
.rs-sell select, .rs-sell input {
  background: #0b0e17;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.92rem;
}
.rs-sell input { width: 160px; }
.rs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rs-grid { grid-template-columns: 1fr; } }
.rs-card.mine { border-color: rgba(255, 209, 102, 0.5); }
.rs-rarity { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; }
.rs-seller { font-size: 0.78rem; color: #94a3b8; }
.rs-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #94a3b8;
  padding: 26px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

/* ==========================================================================
   /updates — player-facing update log
   ========================================================================== */
.upd-wrap { padding-top: 34px; padding-bottom: 70px; }
.upd-list { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin: 26px auto 0; }
.upd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.upd-card.upd-latest {
  border-color: rgba(217, 70, 239, 0.45);
  box-shadow: 0 0 34px -14px rgba(217, 70, 239, 0.55);
}
.upd-date {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-2); display: flex; align-items: center; gap: 8px;
}
.upd-new {
  font-family: var(--font-display);
  font-size: 0.62rem; letter-spacing: 0.14em;
  color: #fbcfe8; background: rgba(217, 70, 239, 0.18);
  border: 1px solid rgba(217, 70, 239, 0.5);
  border-radius: 999px; padding: 2px 9px;
}
.upd-card h3 {
  margin: 7px 0 8px; font-size: 1.08rem;
  font-family: var(--font-display); letter-spacing: 0.02em;
}
.upd-body { white-space: pre-line; color: var(--muted); overflow-wrap: anywhere; }
.upd-empty { text-align: center; color: var(--muted-2); padding: 46px 0 20px; }
@media (max-width: 640px) {
  .upd-list { margin-top: 18px; }
  .upd-card { padding: 15px 14px; }
}

/* ============================================================
   ITEM SHOP LAYOUT (Drop Day redesign)
   ============================================================ */

/* Wider canvas for the shop */
.market-wrap.is-shop { max-width: 1220px; }
.market-wrap.is-shop .inv-back { display: none; }

/* Override old market-wrap overscoping that squishes things */
.market-wrap.is-shop .theme-grid.shop-grid {
  display: block;
  gap: 0;
  align-items: unset;
}

/* Scarcity ticker */
.shop-ticker-bar {
  overflow: hidden;
  background: rgba(14,7,34,0.9);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  padding: 0;
}
.shop-ticker-inner {
  overflow: hidden;
  padding: 8px 0;
}
.tick-track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  animation: shopTick 28s linear infinite;
  letter-spacing: 0.04em;
}
.tick-sep { margin: 0 24px; opacity: 0.5; }
@keyframes shopTick {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Drop-day heading */
.shop-drop-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.shop-eyebrow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.38em;
  color: var(--pink);
  margin-bottom: 6px;
}
.shop-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0;
}
.shop-rotate-info { text-align: right; }
.sri-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 4px; }
.sri-val { font-family: var(--font-mono); font-size: 1.5rem; color: var(--cyan); text-shadow: 0 0 16px rgba(34,211,238,0.5); }

/* Drop-hero 3-column grid */
.drop-hero {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .drop-hero { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .drop-hero { grid-template-columns: 1fr; } }

.drop-card {
  position: relative;
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drop-card:hover { transform: translateY(-2px); }
.drop-card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.drop-card.is-sel .drop-card-glow { opacity: 1; }

.drop-card-legend {
  border: 1px solid rgba(245,158,11,0.45);
  background: linear-gradient(160deg, rgba(127,29,29,0.32), rgba(14,7,34,0.92) 60%);
  box-shadow: 0 0 20px rgba(239,68,68,0.12);
}
.drop-card-legend.is-sel { box-shadow: 0 0 36px rgba(239,68,68,0.35); border-color: rgba(245,158,11,0.75); }
.drop-card-legend .drop-card-glow { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(239,68,68,0.28), transparent); }

.drop-card-mythical {
  border: 1px solid rgba(236,72,153,0.5);
  background: linear-gradient(160deg, rgba(124,58,237,0.28), rgba(14,7,34,0.92) 60%);
  box-shadow: 0 0 20px rgba(236,72,153,0.12);
}
.drop-card-mythical.is-sel { box-shadow: 0 0 36px rgba(236,72,153,0.4); border-color: rgba(236,72,153,0.8); }
.drop-card-mythical .drop-card-glow { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(236,72,153,0.25), transparent); }

.drop-card-seasonal {
  border: 1px solid rgba(249,115,22,0.45);
  background: linear-gradient(160deg, rgba(120,40,10,0.28), rgba(14,7,34,0.92) 60%);
  box-shadow: 0 0 20px rgba(249,115,22,0.10);
}
.drop-card-seasonal.is-sel { box-shadow: 0 0 32px rgba(249,115,22,0.35); border-color: rgba(249,115,22,0.75); }

.drop-card-locked {
  border-style: dashed !important;
  cursor: default;
}
.drop-card-locked:hover { transform: none; }
.drop-card-hatch {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(249,115,22,0.05) 12px, rgba(249,115,22,0.05) 24px);
  pointer-events: none;
}

.drop-card-tag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  font-weight: 700;
}
.drop-card-name {
  min-height: 2rem;
  display: flex;
  align-items: center;
}
.drop-card-desc { font-size: 0.78rem; color: var(--muted); margin: 0; line-height: 1.4; }
.drop-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.drop-price { font-family: var(--font-mono); font-size: 1.1rem; color: #fde047; font-variant-numeric: tabular-nums; }
.drop-cd { display: flex; align-items: center; gap: 6px; }
.shop-cdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; animation: cdPulse 1.2s ease-in-out infinite; }
@keyframes cdPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.shop-cdval { font-family: var(--font-mono); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.drop-card-act { margin-top: 4px; }
.drop-card-act .theme-act { width: 100%; }
.drop-card-note { font-size: 0.7rem; color: var(--muted-2); margin-top: 2px; }
.drop-card-note a { color: var(--muted); text-decoration: underline; }
.drop-opensoon {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: #f97316;
  text-align: center;
  padding: 6px;
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 6px;
  background: rgba(249,115,22,0.06);
}

/* Stock segment meter */
.ss-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ss-seg {
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: rgba(255,255,255,0.07);
  transition: background 0.2s;
}
.ss-seg.ss-on { background: var(--ss-c, #ef4444); }
.ss-txt { font-family: var(--font-mono); font-size: 0.7rem; font-variant-numeric: tabular-nums; }

/* Try-on booth */
.rust-daily-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-4px 0 12px;color:#f6a45f;font:800 .66rem var(--font-mono);letter-spacing:.16em}
.rust-daily-head b{display:flex;align-items:center;gap:7px;letter-spacing:0}
.rust-daily-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:34px}
.rust-daily-grid .plate-tile{min-height:210px;padding:24px;background:linear-gradient(145deg,rgba(111,55,22,.3),rgba(25,13,14,.92) 48%,rgba(70,34,18,.2));border-color:rgba(249,115,22,.42);box-shadow:inset 0 1px rgba(255,218,170,.08),0 15px 36px rgba(0,0,0,.22)}
.rust-daily-grid .pt-preview{min-height:86px;font-size:1.3rem;background:radial-gradient(circle at 50% 130%,rgba(249,115,22,.18),transparent 64%),rgba(6,5,8,.58)}
.rust-daily-grid .pt-name{font-size:1.02rem}
@media(max-width:680px){.rust-daily-grid{grid-template-columns:1fr}.rust-daily-head{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.rust-daily-head .shop-cdot{animation:none}}

.shop-try-on {
  border-radius: var(--radius);
  border: 1px solid rgba(124,58,237,0.35);
  background: linear-gradient(120deg, rgba(124,58,237,0.07), rgba(34,211,238,0.04));
  padding: 18px 20px;
  margin-bottom: 8px;
}
.sto-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sto-label { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--cyan); }
.sto-hint { font-size: 0.74rem; color: var(--muted); }
.sto-hint b { color: var(--text); }
.sto-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .sto-panels { grid-template-columns: 1fr; } }
.sto-name-panel {
  border-radius: 10px;
  background: rgba(8,4,15,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  min-height: 100px;
  padding: 20px;
}
.sto-name-demo .name-theme { filter: drop-shadow(0 0 12px rgba(255,255,255,0.12)); }
.sto-feed-panel {
  border-radius: 10px;
  background: rgba(8,4,15,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.sto-feed-label { font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--muted-2); }
.sto-feed-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.25);
}
.sto-fx-icon { font-size: 1.1rem; }
.sto-won, .sto-game { font-size: 0.85rem; color: var(--muted); }
.sto-amount { font-family: var(--font-mono); font-size: 0.85rem; color: #fde047; }
.sto-fx-note { font-size: 0.7rem; color: var(--muted-2); }

/* Section head */
.shop-sh {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 40px 0 14px;
  flex-wrap: wrap;
}
.shop-sh-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}
.shop-sh-line { height: 1px; flex: 1; min-width: 24px; }
.shop-sh-sub { font-size: 0.73rem; color: var(--muted); white-space: nowrap; }
.shop-blurb { font-size: 0.82rem; color: var(--muted); line-height: 1.55; margin: 0 0 14px; }

/* Base plate tiles grid */
.plate-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1000px) { .plate-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .plate-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.plate-tile {
  border-radius: 14px;
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(14,7,34,0.7);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plate-tile:hover { transform: translateY(-3px); }
.plate-tile.is-sel,
.plate-tile.is-equipped {
  border-color: rgba(124,58,237,0.7);
  box-shadow: 0 0 20px rgba(124,58,237,0.25);
}
.plate-tile.is-equipped { border-color: rgba(74,222,128,0.6); box-shadow: 0 0 18px rgba(74,222,128,0.18); }

/* Rarity-tinted tile backgrounds */
.rarity-tile-common  { background: linear-gradient(180deg, rgba(169,159,206,0.07), rgba(14,7,34,0.8)); }
.rarity-tile-rare    { background: linear-gradient(180deg, rgba(59,130,246,0.09), rgba(14,7,34,0.8)); }
.rarity-tile-epic    { background: linear-gradient(180deg, rgba(192,38,211,0.11), rgba(14,7,34,0.8)); }
.rarity-tile-animated{ background: linear-gradient(180deg, rgba(34,211,238,0.09), rgba(14,7,34,0.8)); }

.pt-preview {
  height: 52px;
  border-radius: 8px;
  background: rgba(8,4,15,0.6);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pt-name { font-size: 0.78rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-meta { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.pt-price { font-family: var(--font-mono); font-size: 0.7rem; color: #fde047; }
.plate-tile .theme-act { width: 100%; padding: 7px 8px; font-size: 0.72rem; }

/* FX cards grid */
.shop-fx-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 800px) {
  .shop-fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-fx-grid .shop-fx-card.fx-featured { grid-column: 1 / -1; }
}
.shop-fx-card {
  border-radius: 14px;
  padding: 14px 12px;
  border: 1px solid rgba(34,211,238,0.2);
  background: rgba(34,211,238,0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-fx-card.is-equipped { border-color: rgba(74,222,128,0.5); background: rgba(74,222,128,0.06); }
.sfx-name { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.sfx-price { font-family: var(--font-mono); font-size: 0.75rem; color: #fde047; }
.shop-fx-card .theme-act { width: 100%; }
/* Weekly FX rotation: featured card spans the shelf, collection cards follow */
.shop-fx-card.fx-featured {
  /* Desktop: the two THIS WEEK cards sit side by side (half the 4-track
     grid each); mobile keeps the stacked full-width cards (media rule). */
  grid-column: span 2;
  position: relative;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12), inset 0 0 22px rgba(34, 211, 238, 0.05);
}
.fx-week-badge {
  position: absolute;
  top: -9px;
  left: 12px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #06121a;
  background: linear-gradient(90deg, #22d3ee, #7df9ff);
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}
.fx-cd { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; }
.fx-cd-lbl { color: #94a3b8; font-size: 0.7rem; }
.sfx-own { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; color: #4ade80; }

/* Prestige vault grid */
.shop-prestige-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 700px) { .shop-prestige-grid { grid-template-columns: 1fr; } }
.shop-prestige-card {
  border-radius: 14px;
  border: 1px solid rgba(250,204,21,0.3);
  background: linear-gradient(180deg, rgba(250,204,21,0.05), rgba(14,7,34,0.88));
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-prestige-card.locked { opacity: 0.72; }
.shop-prestige-card.is-equipped { border-color: rgba(74,222,128,0.5); }
.shop-prestige-card .theme-preview { border-radius: 8px; background: rgba(8,4,15,0.6); padding: 12px 8px; }
.shop-prestige-card .prestige-req { font-size: 0.74rem; color: #facc15; }
.shop-prestige-card .prestige-lock {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(250,204,21,0.6);
  text-align: center;
  padding: 8px;
  border: 1px solid rgba(250,204,21,0.2);
  border-radius: 6px;
}

/* ============ "UNLOCKED FOR ALL" SIGN (homepage hero) ============
   Replaced the ember drop-day sign (Sept 2026) when the Player Reseller key
   gate was retired. Green means go: an emerald/lime/cyan bar built around a
   single event per cycle — the latch snaps open, throws a release ring, the
   FREE tile flips over and a wash of light runs the length of the sign. */
.unlock-sign {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 26px auto 6px; padding: 13px 22px; max-width: 660px;
  border-radius: 999px; text-align: center; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  background:
    linear-gradient(90deg, rgba(4, 26, 18, 0.95), rgba(3, 22, 26, 0.95)) padding-box,
    linear-gradient(90deg, #34d399, #22d3ee, #a3e635, #34d399) border-box;
  animation: ulsBreath 4.6s ease-in-out infinite;
  transition: transform .18s ease, box-shadow .18s ease;
}
/* Glow swells INTO the latch release, flares on it, then settles. */
@keyframes ulsBreath {
  0%, 58%, 100% { box-shadow: 0 0 18px rgba(52,211,153,0.30), 0 0 50px rgba(34,211,238,0.16); }
  36% { box-shadow: 0 0 26px rgba(52,211,153,0.55), 0 0 70px rgba(34,211,238,0.30); }
  45% { box-shadow: 0 0 46px rgba(163,230,53,0.85), 0 0 120px rgba(52,211,153,0.50); }
}
/* Wide aurora wash — slower and greener than the old hot sweep. */
.unlock-sign::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: linear-gradient(100deg, transparent 28%, rgba(52,211,153,0.20) 44%,
              rgba(190,242,100,0.34) 50%, rgba(34,211,238,0.20) 56%, transparent 72%);
  transform: translateX(-130%);
  animation: ulsWash 4.6s cubic-bezier(.5, 0, .2, 1) infinite;
}
@keyframes ulsWash {
  0%, 12% { transform: translateX(-130%); }
  58%, 100% { transform: translateX(130%); }
}
/* Content rides above the wash layer. */
.unlock-sign > span { position: relative; z-index: 1; }
.unlock-sign:hover, .unlock-sign:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 38px rgba(52,211,153,0.80), 0 0 110px rgba(34,211,238,0.45);
  outline: none;
}
/* FREE tile: turns over like a board tile right after the latch pops. */
.uls-badge {
  flex: none;
  font: 900 0.6rem/1 system-ui, sans-serif; letter-spacing: 0.14em; color: #052e1b;
  padding: 5px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #bef264, #34d399);
  box-shadow: 0 0 14px rgba(52,211,153,0.65);
  animation: ulsFlip 4.6s ease-in-out infinite;
}
@keyframes ulsFlip {
  0%, 60%, 100% { transform: rotateX(0); }
  68% { transform: rotateX(-88deg); }
  77% { transform: rotateX(0); }
}
/* The latch itself: still, then a sprung snap open. */
.uls-lock {
  flex: none; position: relative; font-size: 1.2rem; line-height: 1;
  animation: ulsRelease 4.6s cubic-bezier(.3, 1.6, .4, 1) infinite;
}
@keyframes ulsRelease {
  0%, 34% { transform: rotate(0) translateY(0) scale(1); }
  42% { transform: rotate(-16deg) translateY(-4px) scale(1.22); }
  50% { transform: rotate(7deg) translateY(0) scale(1.06); }
  58%, 100% { transform: rotate(0) translateY(0) scale(1); }
}
/* Release ring thrown off the latch at the moment it opens. */
.uls-lock::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(163,230,53,0.9);
  opacity: 0;
  animation: ulsRing 4.6s ease-out infinite;
}
@keyframes ulsRing {
  0%, 40% { transform: scale(0.6); opacity: 0; }
  46% { opacity: 0.95; }
  72%, 100% { transform: scale(2.4); opacity: 0; }
}
/* Two-deck text: tiny kicker over the headline. */
.uls-stack { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.uls-kicker {
  font: 700 0.56rem/1 system-ui, sans-serif; letter-spacing: 0.26em;
  color: rgba(167, 243, 208, 0.9); text-transform: uppercase;
}
/* Headline lights up on the release beat instead of shining on a loop. */
.uls-text {
  font: 800 0.92rem/1.15 system-ui, sans-serif; letter-spacing: 0.12em;
  color: #d1fae5;
  animation: ulsLit 4.6s ease-in-out infinite;
}
@keyframes ulsLit {
  0%, 38%, 100% { color: #d1fae5; text-shadow: 0 0 10px rgba(52,211,153,0.45); }
  48% { color: #ffffff; text-shadow: 0 0 20px rgba(190,242,100,0.95), 0 0 44px rgba(52,211,153,0.6); }
}
.uls-go {
  flex: none; font: 800 0.7rem/1 system-ui, sans-serif; letter-spacing: 0.08em;
  text-transform: uppercase; color: #052e1b; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px;
  background: linear-gradient(90deg, #bef264, #34d399);
  box-shadow: 0 0 16px rgba(52,211,153,0.55);
}
.uls-go b { display: inline-block; transition: transform .18s ease; }
.unlock-sign:hover .uls-go b { transform: translateX(3px); }
@media (max-width: 560px) {
  .unlock-sign { padding: 10px 13px; gap: 8px; }
  .uls-text { font-size: 0.66rem; letter-spacing: 0.09em; }
  .uls-go { font-size: 0.62rem; padding: 5px 9px; }
  .uls-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .unlock-sign, .unlock-sign::after, .uls-badge,
  .uls-lock, .uls-lock::before, .uls-text { animation: none; }
  .unlock-sign::after { display: none; }
  .unlock-sign { box-shadow: 0 0 20px rgba(52,211,153,0.45); }
}

/* ============ CRATES / FRACTURED CONTAINMENT SIGN ============
   Scoped to this teaser; no navigation or release/unlock logic. */
.locked-tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 130px; padding: 21px 24px;
  border-radius: 9px;
  border: 1px solid #827040;
  background: #e1ae24;
  box-shadow: inset 0 0 0 3px #252720, 0 8px 24px rgba(0,0,0,.4), 0 0 18px rgba(242,194,41,.12);
  color: #f4e7bb;
  font: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.locked-tile::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit;
  background: repeating-linear-gradient(174deg, transparent 0 7px, rgba(201,186,139,.035) 7px 8px),
    linear-gradient(90deg, rgba(8,10,10,.35), transparent 25% 75%, rgba(8,10,10,.35));
  box-shadow: inset 0 0 0 4px rgba(12,15,16,.7), inset 0 1px 0 rgba(245,228,173,.3);
  pointer-events: none;
}
.locked-tile:focus-visible { outline: 3px solid #ffe06a; outline-offset: 4px; }
.locked-tile .lt-fracture { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.locked-tile .lt-shard { fill: #20272a; stroke: #11191b; stroke-width: 2; }
.locked-tile .lt-shard-b { fill: #2b3030; }
.locked-tile .lt-shard-c { fill: #171d20; }
.locked-tile .lt-shard-d { fill: #22282b; }
.locked-tile .lt-score { fill: none; stroke: #736744; stroke-width: .8; }
.locked-tile .lt-crack-light {
  stroke: #ffcf27; stroke-width: 3; opacity: .7;
  filter: drop-shadow(0 0 4px #ffd32a) drop-shadow(0 0 9px #dba719);
  animation: ltIdleCracks 5.8s ease-in-out infinite;
}
.locked-tile .lt-crack-core { stroke: #fff0a1; stroke-width: .8; opacity: .85; }
.locked-tile .lt-pressure {
  position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background: radial-gradient(ellipse at 50% 54%, rgba(255,220,66,.7), transparent 65%);
  animation: ltIdlePressure 5.8s ease-in-out infinite;
}
.locked-tile .lt-streaks {
  position: absolute; inset: -35%; pointer-events: none; opacity: .12;
  background: repeating-conic-gradient(from 17deg at 50% 50%, transparent 0deg 23deg, rgba(255,221,66,.5) 23.2deg 23.7deg, transparent 24deg 51deg);
  -webkit-mask-image: radial-gradient(ellipse, transparent 15%, #111 48%, transparent 70%);
  mask-image: radial-gradient(ellipse, transparent 15%, #111 48%, transparent 70%);
  animation: ltIdleStreaks 5.8s ease-in-out infinite;
}
.locked-tile .lt-face {
  position: relative; z-index: 4; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-shadow: 0 2px 3px #101718, 0 0 12px #101718, 0 0 22px #101718;
}
.locked-tile .lt-label {
  font: 900 1.6rem/1 system-ui, sans-serif; letter-spacing: .2em;
  padding-left: .2em; color: #f3edda;
}
.locked-tile .lt-release { color: #ffe18a; font-size: .82rem; line-height: 1.3; font-weight: 750; }
.locked-tile .lt-hint { color: #b9b7a6; font-size: .51rem; line-height: 1.4; letter-spacing: .14em; }
.locked-tile .lt-bolt {
  position: absolute; top: 12px; z-index: 3; width: 6px; height: 6px;
  border-radius: 50%; background: #7a7c6e;
  box-shadow: inset 0 -2px 1px #151c1e, 0 1px 2px #101718;
}
.locked-tile .lt-bolt-a { left: 12px; }
.locked-tile .lt-bolt-b { right: 12px; }
.locked-tile .lt-chains {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; pointer-events: none;
  filter: drop-shadow(0 3px 2px rgba(5,12,14,.85));
}
.locked-tile .lt-chain-intact { transform-origin: 50% 12%; }
.locked-tile .lt-chain-broken-left { transform-origin: 0 76%; --lt-swing: -3deg; }
.locked-tile .lt-chain-broken-right { transform-origin: 100% 74%; --lt-swing: 3deg; }
.locked-tile.is-bursting .lt-chain-intact { animation: ltChainStrain 1.15s ease-out; }
.locked-tile.is-bursting .lt-chain-broken { animation: ltBrokenSwing 1.15s ease-out; }
@keyframes ltChainStrain {
  0%, 100% { transform: translateY(0); }
  22%, 52% { transform: translateY(-1px); }
  35%, 63% { transform: translateY(1.5px); }
  78% { transform: translateY(-.5px); }
}
@keyframes ltBrokenSwing {
  0%, 100% { transform: rotate(0); }
  26% { transform: rotate(var(--lt-swing)); }
  48% { transform: rotate(calc(var(--lt-swing) * -.7)); }
  68% { transform: rotate(calc(var(--lt-swing) * .4)); }
  84% { transform: rotate(calc(var(--lt-swing) * -.15)); }
}
.locked-tile:hover .lt-pressure, .locked-tile:focus-visible .lt-pressure {
  --lt-pressure-low: .26; --lt-pressure-high: .35;
}
.locked-tile.is-bursting { animation: ltContainment 1.15s ease-out; }
.locked-tile.is-bursting .lt-shard { animation: ltFracture 1.15s ease-out; }
.locked-tile .lt-shard-a { --lt-x: -5px; --lt-y: -3px; }
.locked-tile .lt-shard-b { --lt-x: 4px; --lt-y: -4px; }
.locked-tile .lt-shard-c { --lt-x: -4px; --lt-y: 4px; }
.locked-tile .lt-shard-d { --lt-x: 5px; --lt-y: 3px; }
.locked-tile.is-bursting .lt-pressure { animation: ltPressure 1.15s ease-out; }
.locked-tile.is-bursting .lt-streaks { animation: ltStreaks 1.15s ease-out; }
.locked-tile.is-bursting .lt-crack-light { animation: ltBurstCracks 1.15s ease-out; }
/* Slow, low-amplitude breathing keeps the sealed sign alive without flashing.
   Burst endpoints meet the idle baseline before the idle cycle restarts. */
@keyframes ltIdleCracks {
  0%, 100% { opacity: .7; }
  50% { opacity: .86; }
}
@keyframes ltIdlePressure {
  0%, 100% { opacity: var(--lt-pressure-low, .18); }
  50% { opacity: var(--lt-pressure-high, .28); }
}
@keyframes ltIdleStreaks {
  0%, 100% { opacity: .12; }
  50% { opacity: .22; }
}
@keyframes ltBurstCracks {
  0%, 100% { opacity: .7; }
  30%, 60% { opacity: 1; }
}
@keyframes ltContainment {
  0%, 100% { transform: translate(0, 0) scale(1); }
  12% { transform: translate(-2px, 1px); }
  22% { transform: translate(2px, -1px); }
  34% { transform: translate(-2px, 0) scale(1.012); }
  45% { transform: translate(2px, 1px) scale(1.018); }
  58% { transform: translate(-1px, -1px) scale(1.012); }
  76% { transform: translate(1px, 0); }
}
@keyframes ltFracture {
  0%, 100% { transform: translate(0, 0); }
  27% { transform: translate(calc(var(--lt-x) * .4), calc(var(--lt-y) * .4)); }
  45%, 57% { transform: translate(var(--lt-x), var(--lt-y)); }
  74% { transform: translate(calc(var(--lt-x) * .3), calc(var(--lt-y) * .3)); }
}
@keyframes ltPressure {
  0%, 100% { opacity: var(--lt-pressure-low, .18); }
  20% { opacity: .5; }
  43%, 56% { opacity: .95; }
  70% { opacity: .4; }
}
@keyframes ltStreaks {
  0%, 100% { opacity: .12; transform: scale(1); }
  28% { opacity: .25; transform: scale(.85); }
  46% { opacity: .9; transform: scale(1.05); }
  68% { opacity: .2; transform: scale(1.18); }
  85% { opacity: .12; transform: scale(1.08); }
}
@media (max-width: 560px) {
  .locked-tile { min-height: 122px; padding: 20px 14px; }
  .locked-tile .lt-label { font-size: 1.4rem; }
  .locked-tile .lt-hint { font-size: .48rem; letter-spacing: .09em; }
}
@media (prefers-reduced-motion: reduce) {
  .locked-tile, .locked-tile *, .locked-tile::before { animation: none !important; transition: none !important; }
  .locked-tile .lt-crack-light { opacity: .78; }
  .locked-tile .lt-pressure, .locked-tile.is-bursting .lt-pressure { opacity: .24; }
  .locked-tile .lt-streaks, .locked-tile.is-bursting .lt-streaks { opacity: .16; }
}

/* ============ Dev \u21c4 Player view switch (theme market) ============ */
.mkt-viewswitch {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, .45);
  background: rgba(30, 41, 59, .55);
}
.mvs-txt { flex: 1 1 260px; font-size: .82rem; line-height: 1.45; color: #94a3b8; }
.mvs-txt b { color: #cbd5e1; }
.mvs-btn {
  flex: 0 0 auto; cursor: pointer;
  border: 1px solid rgba(148, 163, 184, .5); border-radius: 999px;
  background: #1e293b; color: #e2e8f0;
  font-weight: 800; font-size: .8rem; padding: 8px 16px;
  transition: border-color .15s ease, transform .15s ease;
}
.mvs-btn:hover { border-color: #e2e8f0; transform: translateY(-1px); }
.mkt-viewswitch.pv-on { border-color: rgba(245, 158, 11, .65); background: rgba(120, 53, 15, .28); }
.mkt-viewswitch.pv-on .mvs-txt { color: #fcd34d; }
.mkt-viewswitch.pv-on .mvs-txt b { color: #fde68a; }
.mkt-viewswitch.pv-on .mvs-btn { border-color: #f59e0b; background: #78350f; color: #fde68a; box-shadow: 0 0 14px rgba(245, 158, 11, .25); }

/* ================= MYTHIC TIER — animated full-site skins ================= */
/* Same body.panel-<key> mechanism as Panel Themes (all existing skin
   overrides apply), plus per-skin depth (--myth-l1) and sheen (--myth-sheen)
   layers consumed by the shared ::before/::after rules below. Animations are
   transform/opacity only (compositor-cheap, iOS-safe) and fully disabled
   under prefers-reduced-motion. */
body.panel-void_prism, .pnl-void_prism { --bg:#040209; --bg-2:#0c0618; --grad:linear-gradient(120deg,#a78bfa,#22d3ee 35%,#f0abfc 70%,#facc15); --grad-soft:linear-gradient(120deg,rgba(167,139,250,.2),rgba(34,211,238,.14),rgba(240,171,252,.16)); --glow:0 0 46px -8px rgba(167,139,250,.55); --purple:#7c3aed; --violet:#a78bfa; --magenta:#d946ef; --fuchsia:#f0abfc; --pink:#f5d0fe; --blue:#312e81; --cyan:#67e8f9; --myth-speed:11s; --myth-l1:radial-gradient(120% 90% at 50% -20%,rgba(167,139,250,.18),transparent 60%),radial-gradient(90% 70% at 85% 112%,rgba(34,211,238,.13),transparent 55%),radial-gradient(70% 60% at 8% 100%,rgba(240,171,252,.10),transparent 55%); --myth-sheen:linear-gradient(115deg,transparent 42%,rgba(240,171,252,.10) 48%,rgba(103,232,249,.13) 52%,rgba(250,204,21,.07) 56%,transparent 62%); }
body.panel-dragons_hoard, .pnl-dragons_hoard { --bg:#0c0502; --bg-2:#1c0e04; --grad:linear-gradient(120deg,#fbbf24,#d97706 45%,#7c2d12); --grad-soft:linear-gradient(120deg,rgba(251,191,36,.2),rgba(217,119,6,.15),rgba(124,45,18,.2)); --glow:0 0 46px -8px rgba(245,158,11,.55); --purple:#b45309; --violet:#f59e0b; --magenta:#ea580c; --fuchsia:#fbbf24; --pink:#fde68a; --blue:#451a03; --cyan:#fcd34d; --myth-speed:9s; --myth-l1:radial-gradient(85% 70% at 20% 115%,rgba(245,158,11,.20),transparent 60%),radial-gradient(70% 55% at 80% 108%,rgba(234,88,12,.14),transparent 55%),radial-gradient(120% 80% at 50% -25%,rgba(69,26,3,.55),transparent 65%); --myth-sheen:linear-gradient(115deg,transparent 43%,rgba(253,230,138,.12) 50%,rgba(245,158,11,.08) 55%,transparent 61%); }
body.panel-abyssal_leviathan, .pnl-abyssal_leviathan { --bg:#020610; --bg-2:#041120; --grad:linear-gradient(120deg,#0ea5e9,#155e75 45%,#2dd4bf); --grad-soft:linear-gradient(120deg,rgba(14,165,233,.18),rgba(21,94,117,.16),rgba(45,212,191,.16)); --glow:0 0 46px -8px rgba(45,212,191,.5); --purple:#0e7490; --violet:#38bdf8; --magenta:#06b6d4; --fuchsia:#5eead4; --pink:#a5f3fc; --blue:#082f49; --cyan:#2dd4bf; --myth-speed:16s; --myth-l1:radial-gradient(100% 75% at 30% 118%,rgba(45,212,191,.16),transparent 60%),radial-gradient(85% 65% at 75% -18%,rgba(14,165,233,.12),transparent 58%),radial-gradient(60% 50% at 90% 105%,rgba(94,234,212,.10),transparent 55%); --myth-sheen:linear-gradient(100deg,transparent 40%,rgba(94,234,212,.09) 48%,rgba(56,189,248,.12) 53%,transparent 62%); }
body.panel-celestial_forge, .pnl-celestial_forge { --bg:#070213; --bg-2:#140729; --grad:linear-gradient(120deg,#8b5cf6,#f97316 55%,#fbbf24); --grad-soft:linear-gradient(120deg,rgba(139,92,246,.2),rgba(249,115,22,.14),rgba(251,191,36,.14)); --glow:0 0 46px -8px rgba(249,115,22,.5); --purple:#7c3aed; --violet:#a78bfa; --magenta:#f97316; --fuchsia:#fb923c; --pink:#fed7aa; --blue:#2e1065; --cyan:#fbbf24; --myth-speed:13s; --myth-l1:radial-gradient(2px 2px at 18% 28%,rgba(255,255,255,.5),transparent 100%),radial-gradient(2px 2px at 64% 12%,rgba(255,255,255,.38),transparent 100%),radial-gradient(1.5px 1.5px at 82% 44%,rgba(255,255,255,.42),transparent 100%),radial-gradient(2px 2px at 38% 66%,rgba(255,255,255,.3),transparent 100%),radial-gradient(1.5px 1.5px at 8% 82%,rgba(255,255,255,.34),transparent 100%),radial-gradient(2px 2px at 92% 78%,rgba(255,255,255,.4),transparent 100%),radial-gradient(110% 85% at 50% 120%,rgba(249,115,22,.16),transparent 60%),radial-gradient(100% 80% at 50% -20%,rgba(139,92,246,.18),transparent 62%); --myth-sheen:linear-gradient(115deg,transparent 43%,rgba(251,191,36,.10) 49%,rgba(249,115,22,.09) 53%,rgba(167,139,250,.08) 57%,transparent 63%); }
body.panel-phantom_circuit, .pnl-phantom_circuit { --bg:#020a05; --bg-2:#05170c; --grad:linear-gradient(120deg,#22c55e,#065f46 45%,#a3e635); --grad-soft:linear-gradient(120deg,rgba(34,197,94,.18),rgba(6,95,70,.16),rgba(163,230,53,.14)); --glow:0 0 46px -8px rgba(34,197,94,.55); --purple:#047857; --violet:#34d399; --magenta:#10b981; --fuchsia:#a3e635; --pink:#d9f99d; --blue:#052e16; --cyan:#6ee7b7; --myth-speed:8s; --myth-l1:repeating-linear-gradient(0deg,rgba(34,197,94,.05) 0 1px,transparent 1px 42px),repeating-linear-gradient(90deg,rgba(34,197,94,.04) 0 1px,transparent 1px 42px),radial-gradient(100% 80% at 50% 115%,rgba(16,185,129,.14),transparent 60%); --myth-sheen:linear-gradient(180deg,transparent 44%,rgba(163,230,53,.07) 49%,rgba(110,231,183,.10) 51%,transparent 57%); }

/* Depth field: painted before body children (equal z-index → children win),
   so it reads as background depth. Sheen: a faint moving pass over the page;
   pointer-events none and alpha ≤ .14 keep everything readable/clickable. */
body.panel-void_prism::before, body.panel-dragons_hoard::before, body.panel-abyssal_leviathan::before, body.panel-celestial_forge::before, body.panel-phantom_circuit::before {
  content:""; position:fixed; inset:-8%; z-index:0; pointer-events:none;
  background:var(--myth-l1);
  animation:mythDepth 26s ease-in-out infinite alternate;
}
body.panel-void_prism::after, body.panel-dragons_hoard::after, body.panel-abyssal_leviathan::after, body.panel-celestial_forge::after, body.panel-phantom_circuit::after {
  content:""; position:fixed; top:0; bottom:0; left:-60%; right:-60%; z-index:0; pointer-events:none;
  background:var(--myth-sheen);
  animation:mythSheen var(--myth-speed,11s) linear infinite;
}
body.panel-phantom_circuit::after { animation-name:mythScan; }
@keyframes mythDepth { from { transform:translate3d(0,-1.2%,0) scale(1); opacity:.85; } to { transform:translate3d(0,1.2%,0) scale(1.05); opacity:1; } }
@keyframes mythSheen { from { transform:translateX(-38%); } to { transform:translateX(38%); } }
@keyframes mythScan { from { transform:translateY(-46%); } to { transform:translateY(46%); } }

/* Shop swatches + the pre-launch mystery swatch */
.sw-void_prism { background:linear-gradient(120deg,#040209,#a78bfa 30%,#22d3ee 55%,#f0abfc 80%,#facc15); }
.sw-dragons_hoard { background:linear-gradient(120deg,#0c0502,#7c2d12 35%,#d97706 65%,#fbbf24); }
.sw-abyssal_leviathan { background:linear-gradient(120deg,#020610,#155e75 40%,#0ea5e9 70%,#2dd4bf); }
.sw-celestial_forge { background:linear-gradient(120deg,#070213,#8b5cf6 35%,#f97316 70%,#fbbf24); }
.sw-phantom_circuit { background:linear-gradient(120deg,#020a05,#065f46 35%,#22c55e 65%,#a3e635); }
.sw-mythic-tease { background:linear-gradient(120deg,#0b0714,#1e1b4b 30%,#3b0764 55%,#1e1b4b 80%,#0b0714); }
.mythic-swatch { position:relative; overflow:hidden; }
.mythic-swatch::after { content:""; position:absolute; top:0; bottom:0; left:-80%; right:-80%; background:linear-gradient(115deg,transparent 45%,rgba(255,255,255,.26) 50%,transparent 55%); animation:mythSheen 3.2s linear infinite; pointer-events:none; }

/* Mythic drop card accents */
.drop-card-mythic { border-color:rgba(232,121,249,.4); }
.drop-card-mythic .drop-card-glow { background:radial-gradient(60% 60% at 50% 0%,rgba(232,121,249,.22),transparent 70%); }
.drop-card-tease { border-style:dashed; }
.drop-tease-name { letter-spacing:.35em; opacity:.65; }

@media (prefers-reduced-motion: reduce) {
  body.panel-void_prism::before, body.panel-dragons_hoard::before, body.panel-abyssal_leviathan::before, body.panel-celestial_forge::before, body.panel-phantom_circuit::before,
  body.panel-void_prism::after, body.panel-dragons_hoard::after, body.panel-abyssal_leviathan::after, body.panel-celestial_forge::after, body.panel-phantom_circuit::after,
  .mythic-swatch::after { animation:none; }
}


/* ======================================================================
   CLAW MACHINE EXCLUSIVE EMOJIS — won from the cabinet, never sold.
   Same inline/`emoji-big` shape as the Secret Archive treatments, with an
   arcade palette so a claw pull reads differently in the feed and chat.
   ====================================================================== */
.emoji-claw-arm, .emoji-claw-bear, .emoji-claw-token,
.emoji-claw-prize, .emoji-claw-invader {
  position: relative; isolation: isolate; display: inline-grid;
  place-items: center; overflow: visible;
}
.emoji-big.emoji-claw-arm, .emoji-big.emoji-claw-bear,
.emoji-big.emoji-claw-token, .emoji-big.emoji-claw-prize,
.emoji-big.emoji-claw-invader {
  width: 4.2rem; height: 4.2rem; font-size: 2.85rem;
}
.emoji-claw-arm span, .emoji-claw-bear span, .emoji-claw-token span,
.emoji-claw-prize span, .emoji-claw-invader span {
  position: relative; z-index: 2; display: inline-block;
}

/* The Claw — chrome grabber on its cable, always mid-descent. */
.emoji-claw-arm span {
  filter: saturate(1.25) drop-shadow(0 0 5px #a5f3fc)
          drop-shadow(0 0 14px rgba(56,189,248,0.85));
  animation: clawArmDrop 2.6s cubic-bezier(.5,0,.4,1) infinite;
}
.emoji-claw-arm::before {
  content: ""; position: absolute; z-index: 1; top: -0.42em; width: 2px;
  height: 0.5em; background: linear-gradient(180deg, rgba(226,232,240,0.95), rgba(148,163,184,0.15));
  box-shadow: 0 0 8px rgba(186,230,253,0.8);
  animation: clawCableSway 2.6s cubic-bezier(.5,0,.4,1) infinite;
}
.emoji-claw-arm::after {
  content: "✦"; position: absolute; z-index: 1; right: 0.02em; bottom: 0.06em;
  color: #cffafe; font-size: 0.26em; text-shadow: 0 0 9px #22d3ee;
  animation: secretSparkRise 2.4s 0.7s ease-out infinite;
}

/* The Claw Bear — soft plush warmth, a slow hug-sway. */
.emoji-claw-bear span {
  filter: saturate(1.35) drop-shadow(0 0 5px #fcd34d)
          drop-shadow(0 0 15px rgba(217,119,6,0.8));
  animation: clawBearSway 3s ease-in-out infinite;
}
.emoji-claw-bear::before {
  content: ""; position: absolute; z-index: 1; width: 78%; height: 78%;
  border-radius: 50%; background: radial-gradient(circle, rgba(253,230,138,0.32), transparent 68%);
  animation: clawGlowBreathe 3s ease-in-out infinite;
}

/* The Arcade Token — a coin caught mid-flip over its own gold pool. */
.emoji-claw-token span {
  filter: saturate(1.5) drop-shadow(0 0 5px #fde047)
          drop-shadow(0 0 15px rgba(202,138,4,0.95));
  animation: clawTokenFlip 2.4s cubic-bezier(.45,0,.35,1) infinite;
}
.emoji-claw-token::before {
  content: ""; position: absolute; z-index: 1; bottom: 0.02em; width: 62%; height: 0.16em;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(250,204,21,0.75), transparent 72%);
  animation: clawGlowBreathe 2.4s ease-in-out infinite;
}

/* The Grand Prize — the top-shelf box, sparks popping off the ribbon. */
.emoji-claw-prize span {
  filter: saturate(1.4) drop-shadow(0 0 5px #f0abfc)
          drop-shadow(0 0 16px rgba(192,38,211,0.9));
  animation: clawPrizePop 2.2s ease-in-out infinite;
}
.emoji-claw-prize::before {
  content: ""; position: absolute; z-index: 1; width: 84%; height: 84%;
  border: 1px solid rgba(240,171,252,0.6); border-radius: 26%;
  box-shadow: 0 0 18px rgba(217,70,239,0.45);
  animation: clawPrizeRing 2.2s ease-out infinite;
}
.emoji-claw-prize::after {
  content: "· ✦"; position: absolute; z-index: 1; right: -0.06em; top: 0;
  color: #fae8ff; font-size: 0.27em; letter-spacing: 0.26em;
  text-shadow: 0 0 9px #e879f9;
  animation: secretSparkRise 2.1s 0.5s ease-out infinite;
}

/* The Cabinet Ghost — the machine's resident glitch, stepping in pixels. */
.emoji-claw-invader span {
  filter: saturate(1.5) drop-shadow(0 0 5px #86efac)
          drop-shadow(0 0 14px rgba(22,163,74,0.9));
  animation: clawInvaderStep 1.6s steps(4, end) infinite;
}
.emoji-claw-invader::before {
  content: ""; position: absolute; z-index: 1; inset: 8%;
  background: repeating-linear-gradient(0deg, rgba(134,239,172,0.24) 0 1px, transparent 1px 4px);
  animation: clawScanlines 1.6s linear infinite;
}

@keyframes clawArmDrop {
  0%, 100% { transform: translateY(-3px) scaleX(1); }
  45% { transform: translateY(3px) scaleX(1); }
  60% { transform: translateY(3px) scaleX(0.82); }
}
@keyframes clawCableSway {
  0%, 100% { transform: translateY(-3px); opacity: 0.75; }
  45%, 60% { transform: translateY(3px); opacity: 1; }
}
@keyframes clawBearSway {
  0%, 100% { transform: rotate(-4deg) translateY(1px); }
  50% { transform: rotate(4deg) translateY(-3px); }
}
@keyframes clawTokenFlip {
  0%, 100% { transform: rotateY(0deg) translateY(0); }
  40% { transform: rotateY(180deg) translateY(-4px); }
  80% { transform: rotateY(360deg) translateY(0); }
}
@keyframes clawPrizePop {
  0%, 100% { transform: scale(0.97) rotate(-2deg); }
  50% { transform: scale(1.07) rotate(2deg); }
}
@keyframes clawPrizeRing {
  0% { transform: scale(0.7); opacity: 0.85; }
  70%, 100% { transform: scale(1.2); opacity: 0; }
}
@keyframes clawInvaderStep {
  0%, 100% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
}
@keyframes clawScanlines {
  from { background-position: 0 0; }
  to { background-position: 0 4px; }
}
@keyframes clawGlowBreathe {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .emoji-claw-arm span, .emoji-claw-arm::before, .emoji-claw-arm::after,
  .emoji-claw-bear span, .emoji-claw-bear::before,
  .emoji-claw-token span, .emoji-claw-token::before,
  .emoji-claw-prize span, .emoji-claw-prize::before, .emoji-claw-prize::after,
  .emoji-claw-invader span, .emoji-claw-invader::before { animation: none !important; }
}

/* Market: the cabinet's own collection block. */
.emoji-claw-section {
  background:
    radial-gradient(circle at 50% -10%, rgba(103,232,249,0.22), transparent 42%),
    radial-gradient(circle at 90% 20%, rgba(217,70,239,0.2), transparent 36%),
    linear-gradient(145deg, rgba(30,27,75,0.42), rgba(6,8,22,0.96) 64%);
  border-color: rgba(103,232,249,0.4);
  box-shadow: 0 20px 70px rgba(8,47,73,0.34), inset 0 0 45px rgba(34,211,238,0.05);
}
.emoji-claw-section::before {
  background: linear-gradient(90deg, transparent, #67e8f9, #f0abfc, #67e8f9, transparent);
  box-shadow: 0 0 28px rgba(103,232,249,0.9);
}
.emoji-claw-section .emoji-collection-kicker { color: #a5f3fc; }
.emoji-secret-seal.claw-seal {
  background: rgba(34,211,238,0.12); border-color: rgba(165,243,252,0.4);
  box-shadow: 0 0 30px rgba(34,211,238,0.16);
}
.emoji-secret-seal.claw-seal b { background: linear-gradient(145deg, #0891b2, #c026d3); }
.emoji-secret-seal.claw-seal small { color: #cffafe; }
.emoji-claw-card {
  width: 100%; min-height: 242px; justify-content: center;
  border-color: rgba(103,232,249,0.36);
  background:
    radial-gradient(circle at 50% 30%, rgba(103,232,249,0.15), transparent 42%),
    rgba(255,255,255,0.035);
}
.emoji-claw-card:hover {
  transform: translateY(-4px); border-color: rgba(165,243,252,0.75);
  box-shadow: 0 16px 42px rgba(8,145,178,0.24);
}
.emoji-secret-requirement.claw-req {
  color: #cffafe; border-color: rgba(34,211,238,0.36);
  background: rgba(34,211,238,0.12);
}
.emoji-1of1.claw {
  color: #cffafe; border-color: rgba(165,243,252,0.5);
  background: rgba(34,211,238,0.1);
}

/* ----------------------------------------------------------------------
   THE CRATE SMASH MILESTONE — the one tier whose unlock condition is
   published, so the card carries a progress bar instead of a price. Struck
   steel and forge-amber, to read as earned rather than bought.
   ---------------------------------------------------------------------- */
.emoji-earned-section {
  background:
    radial-gradient(circle at 50% -10%, rgba(251,191,36,0.2), transparent 42%),
    radial-gradient(circle at 90% 20%, rgba(148,163,184,0.16), transparent 36%),
    linear-gradient(145deg, rgba(69,26,3,0.4), rgba(10,8,6,0.96) 64%);
  border-color: rgba(251,191,36,0.36);
  box-shadow: 0 20px 70px rgba(120,53,15,0.3), inset 0 0 45px rgba(251,191,36,0.05);
}
.emoji-earned-section::before {
  background: linear-gradient(90deg, transparent, #fbbf24, #fde68a, #94a3b8, transparent);
  box-shadow: 0 0 28px rgba(251,191,36,0.85);
}
.emoji-earned-section .emoji-collection-kicker { color: #fde68a; }
.emoji-earned-section .emoji-collection-head a { color: #fcd34d; }
.emoji-secret-seal.earned-seal {
  background: rgba(251,191,36,0.12); border-color: rgba(253,230,138,0.4);
  box-shadow: 0 0 30px rgba(251,191,36,0.16);
}
.emoji-secret-seal.earned-seal b { background: linear-gradient(145deg, #b45309, #64748b); }
.emoji-secret-seal.earned-seal small { color: #fef3c7; }
.emoji-earned-card {
  width: 100%; min-height: 242px; justify-content: center;
  border-color: rgba(251,191,36,0.34);
  background:
    radial-gradient(circle at 50% 30%, rgba(251,191,36,0.14), transparent 42%),
    rgba(255,255,255,0.035);
}
.emoji-earned-card:hover {
  transform: translateY(-4px); border-color: rgba(253,230,138,0.72);
  box-shadow: 0 16px 42px rgba(180,83,9,0.24);
}
/* The head catches the light and the whole thing rocks like a struck blow. */
.emoji-big.emoji-earned-sledge {
  position: relative; display: grid; place-items: center;
  filter: drop-shadow(0 4px 14px rgba(251,191,36,0.4));
}
.emoji-big.emoji-earned-sledge span {
  display: block; animation: earnedSledgeSwing 2.6s ease-in-out infinite;
  transform-origin: 60% 80%;
}
.emoji-big.emoji-earned-sledge::before {
  content: ""; position: absolute; inset: -18%;
  background: radial-gradient(circle, rgba(251,191,36,0.3), transparent 62%);
  animation: earnedSledgeGlow 2.6s ease-in-out infinite;
}
@keyframes earnedSledgeSwing {
  0%, 62%, 100% { transform: rotate(-11deg); }
  72% { transform: rotate(15deg) scale(1.06); }
  80% { transform: rotate(-4deg); }
}
@keyframes earnedSledgeGlow {
  0%, 66%, 100% { opacity: .35; transform: scale(.94); }
  74% { opacity: 1; transform: scale(1.12); }
}
.emoji-earned-progress { width: 100%; display: grid; gap: 5px; }
.emoji-earned-bar {
  height: 7px; border-radius: 999px; overflow: hidden;
  background: rgba(148,163,184,0.2);
  border: 1px solid rgba(251,191,36,0.26);
}
.emoji-earned-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #b45309, #fbbf24, #fde68a);
  box-shadow: 0 0 12px rgba(251,191,36,0.6);
  transition: width .5s ease;
}
.emoji-earned-progress small {
  color: #fde68a; font: 900 0.56rem/1 system-ui, sans-serif;
  letter-spacing: 0.11em; text-align: center;
}
.emoji-secret-requirement.earned-req {
  color: #fef3c7; border-color: rgba(251,191,36,0.36);
  background: rgba(251,191,36,0.12);
}
.emoji-1of1.earned {
  color: #fef3c7; border-color: rgba(253,230,138,0.5);
  background: rgba(251,191,36,0.1);
}
@media (prefers-reduced-motion: reduce) {
  .emoji-big.emoji-earned-sledge span,
  .emoji-big.emoji-earned-sledge::before { animation: none; }
}


/* ======================================================================
   CRATE SMASH LOBBY CARD — a text-only card stretched next to the taller
   games left a dead half. The art block is the flexible row, so the card
   fills whatever height the grid gives it instead of trailing off.
   ====================================================================== */
.smash-lobby-card { display: flex; flex-direction: column; }
.smash-lobby-card h3 { display: flex; align-items: center; gap: 9px; }
.smash-lobby-card .sm-emoji { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 3px 7px rgba(0,0,0,.6)); }
.smash-art {
  position: relative; flex: 1 1 auto; min-height: 148px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  margin: 14px 0 4px; padding: 16px 12px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(249,115,22,.2);
  background:
    radial-gradient(circle at 50% 12%, rgba(250,204,21,.13), transparent 58%),
    linear-gradient(180deg, #14100c 0%, #1b1510 58%, #0b0908 100%);
  box-shadow: inset 0 0 60px rgba(0,0,0,.55);
}
.smash-art::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 14px; height: 12px;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.62), transparent 70%);
}
.smash-art .sa-hit {
  position: relative; z-index: 1; width: clamp(96px, 42%, 132px); height: auto;
  filter: drop-shadow(0 10px 22px rgba(249,115,22,.28));
  animation: saPound 3.6s ease-in-out infinite;
}
@keyframes saPound {
  0%, 62%, 100% { transform: translateY(0) rotate(0deg); }
  68% { transform: translateY(-9px) rotate(-4deg); }
  74% { transform: translateY(3px) rotate(1.5deg); }
  80% { transform: translateY(0) rotate(0deg); }
}
.smash-art .sa-vein {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(125,211,252,.4); background: rgba(56,189,248,.12);
  font: 800 .58rem/1 var(--font-mono, monospace); letter-spacing: .14em; text-transform: uppercase;
  color: #bae6fd;
}
.smash-art .sa-vein img { width: 20px; height: 20px; }
.smash-tiers { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 2px; }
.smash-tiers span {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  font-size: .95rem; line-height: 1;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
}
.smash-tiers span.kit { border-color: rgba(250,204,21,.36); background: rgba(250,204,21,.08); }
.smash-tiers span.rare { border-color: rgba(125,211,252,.5); background: rgba(56,189,248,.12); }
.smash-tiers b {
  margin-left: auto; font: 800 .58rem/1 var(--font-mono, monospace);
  letter-spacing: .14em; text-transform: uppercase; opacity: .6;
}
@media (prefers-reduced-motion: reduce) { .smash-art .sa-hit { animation: none; } }

/* ---- Dead Water lobby card -------------------------------------------
   A slice of the same black-green water the game runs on: a line dropping
   into it, and three silhouettes drifting past underneath. One of them is
   the thing you are supposed to cut loose. */
.dw-lobby-card { display: flex; flex-direction: column; }
.dw-lobby-card h3 { display: flex; align-items: center; gap: 9px; }
.dw-lobby-art {
  position: relative; flex: 1 1 auto; min-height: 116px; margin: 14px 0 12px;
  border-radius: 12px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -30%, rgba(240,165,0,.16), transparent 58%),
    linear-gradient(180deg, #071417 0%, #0b2226 44%, #040c0e 100%);
  border: 1px solid rgba(47,111,94,.28);
  box-shadow: inset 0 0 44px rgba(0,0,0,.6);
}
.dw-lobby-art::after {
  /* Surface line: everything above it is air, everything below is trouble. */
  content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150,220,205,.34), transparent);
}
.dw-lobby-line {
  position: absolute; right: 34%; top: 0; width: 1px; height: 42px;
  background: linear-gradient(180deg, transparent, rgba(210,238,232,.5));
}
.dw-lobby-bob {
  position: absolute; right: calc(34% - 5px); top: 38px;
  width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(180deg, #ef4444 0 50%, #f8fafc 50% 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.6);
  animation: dwLobbyBob 2.6s ease-in-out infinite;
}
@keyframes dwLobbyBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.dw-shape {
  position: absolute; font-size: 1.1rem; opacity: .34;
  filter: blur(.4px) grayscale(.5);
  animation: dwLobbyDrift 14s linear infinite;
}
.dw-shape.s1 { top: 58px; animation-duration: 13s; }
.dw-shape.s2 { top: 84px; animation-duration: 18s; animation-delay: -6s; opacity: .26; }
.dw-shape.s3 { top: 70px; animation-duration: 22s; animation-delay: -13s; opacity: .2; }
@keyframes dwLobbyDrift {
  from { left: -12%; transform: scaleX(-1); }
  to   { left: 108%; transform: scaleX(-1); }
}
@media (prefers-reduced-motion: reduce) {
  .dw-shape, .dw-lobby-bob { animation: none; }
  .dw-shape.s1 { left: 12%; } .dw-shape.s2 { left: 48%; } .dw-shape.s3 { left: 76%; }
}

/* ======================================================================
   CLAW MACHINE LOBBY REEL — the cabinet's prize list, one item at a time.
   Fed by /api/claw/showcase so it can never advertise a prize the machine
   no longer holds. Claw emojis keep their exclusive animation here.
   ====================================================================== */
.claw-lobby-card .claw-reel {
  display: block; margin: 14px 0 4px; padding: 11px 12px 10px;
  border-radius: 12px; border: 1px solid rgba(103,232,249,.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(34,211,238,.12), transparent 62%),
    linear-gradient(180deg, rgba(2,6,23,.72), rgba(15,23,42,.48));
  box-shadow: inset 0 0 30px rgba(34,211,238,.07);
}
/* `hidden` alone loses to the display above. */
.claw-lobby-card .claw-reel[hidden] { display: none; }
.claw-reel .cr-cap {
  display: block; text-align: center;
  font: 800 .56rem/1 var(--font-mono, monospace);
  letter-spacing: .22em; text-transform: uppercase; color: rgba(165,243,252,.6);
}
.claw-reel .cr-stage { position: relative; height: 136px; margin-top: 9px; }
.claw-reel .cr-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px; text-align: center;
  opacity: 0; transform: translateY(10px) scale(.97); pointer-events: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.9,.3,1);
}
.claw-reel .cr-slide.is-in { opacity: 1; transform: none; }
.claw-reel .cr-sym { font-size: 2.5rem; line-height: 1; filter: drop-shadow(0 6px 16px rgba(0,0,0,.55)); }
.claw-reel .cr-sym.emoji-big { width: 3.4rem; height: 3.4rem; font-size: 2.4rem; }
.claw-reel .cr-name { font-family: var(--font-display, inherit); font-size: 1rem; letter-spacing: .02em; }
.claw-reel .cr-note { font-size: .73rem; line-height: 1.35; opacity: .58; max-width: 32ch; }
.claw-reel .cr-slide.k-key .cr-name { color: #fde68a; }
.claw-reel .cr-slide.k-emoji .cr-name, .claw-reel .cr-slide.k-fx .cr-name { color: #67e8f9; }
.claw-reel .cr-bar { height: 2px; margin-top: 8px; border-radius: 2px; background: rgba(148,163,184,.16); overflow: hidden; }
.claw-reel .cr-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22d3ee, #a78bfa); }
.claw-reel .cr-bar i.run { animation: crReelBar 3s linear forwards; }
@keyframes crReelBar { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .claw-reel .cr-slide { transition: none; }
  .claw-reel .cr-bar i.run { animation: none; width: 100%; }
}

/* =====================================================================
   PREMIUM BORDERS  —  a fourth cosmetic slot (themes.BORDER_CATALOG)
   ---------------------------------------------------------------------
   One design paints three surfaces: the PLAYERCARD (modal + inline
   preview), the player's avatar in Global Chat, and their row in the
   LIVE WINS feed. Every design only supplies tokens; the surface rules
   below decide how those tokens are drawn, so a new design is a handful
   of custom properties and nothing else.

   Entrance FX already owns ::before AND ::after on .titem / .rw-row, so
   win-feed rows are framed with an inset box-shadow instead of a
   pseudo-element — the two cosmetics have to be wearable together.
   ===================================================================== */

/* Animated tokens. Registered so they can be interpolated; inherited so a
   ring drawn in ::after picks up the value animating on its host. */
@property --bdr-a { syntax: "<angle>"; initial-value: 0deg; inherits: true; }
@property --bdr-o { syntax: "<number>"; initial-value: 1; inherits: true; }
@property --bdr-p { syntax: "<percentage>"; initial-value: 0%; inherits: true; }
@property --bdr-gw { syntax: "<length>"; initial-value: 6px; inherits: true; }
@property --bdr-hue { syntax: "<angle>"; initial-value: 0deg; inherits: true; }

@keyframes bdr-spin { to { --bdr-a: 360deg; } }
@keyframes bdr-pulse { 0%, 100% { --bdr-gw: 4px; } 50% { --bdr-gw: 13px; } }
@keyframes bdr-blink { 0%, 42%, 58%, 100% { --bdr-o: 1; } 48%, 52% { --bdr-o: 0.34; } }
@keyframes bdr-flicker {
  0%, 100% { --bdr-o: 0.92; } 12% { --bdr-o: 0.42; } 14% { --bdr-o: 0.95; }
  47% { --bdr-o: 0.6; } 49% { --bdr-o: 1; } 76% { --bdr-o: 0.5; } 78% { --bdr-o: 0.9; }
}
@keyframes bdr-sweep { to { --bdr-p: 200%; } }
@keyframes bdr-breathe { 0%, 100% { --bdr-o: 0.72; --bdr-gw: 5px; } 50% { --bdr-o: 1; --bdr-gw: 12px; } }
/* Elite-tier motion: a slow colour drift and a two-beat siren throb. Elite
   designs stack several of these at once — that layering IS the tier. */
@keyframes bdr-hue { to { --bdr-hue: 360deg; } }
@keyframes bdr-siren {
  0%, 100% { --bdr-o: 1; --bdr-gw: 5px; } 22% { --bdr-o: 0.5; --bdr-gw: 17px; }
  44% { --bdr-o: 1; --bdr-gw: 6px; } 70% { --bdr-o: 0.58; --bdr-gw: 15px; }
}

/* ---- shared defaults ---- */
.has-bdr {
  --bdr-w: 2px;
  --bdr-grad: linear-gradient(135deg, #ffffff, #8b8b8b);
  --bdr-line: rgba(255, 255, 255, 0.5);
  --bdr-glow: rgba(255, 255, 255, 0.35);
  --bdr-halo: 0 0 0 0 transparent;   /* Elite designs bleed light past the ring */
  --bdr-anim: none;
}

/* ---- surface 1: the playercard (modal, inline preview, shop demo) ---- */
.pc-card.has-bdr, .pc-inline.has-bdr, .bdr-demo.has-bdr { animation: var(--bdr-anim); }
.pc-card.has-bdr::after, .pc-inline.has-bdr::after, .bdr-demo.has-bdr::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: inherit; padding: var(--bdr-w); background: var(--bdr-grad);
  opacity: var(--bdr-o, 1);
  filter: drop-shadow(0 0 var(--bdr-gw, 6px) var(--bdr-glow)) hue-rotate(var(--bdr-hue, 0deg));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* ---- surface 2: avatar rings (playercard head + Global Chat rows) ---- */
/* align-self matters: these wrappers size to their avatar, so inside a flex
   row (a chat message, the playercard head) the default stretch would pull the
   box tall and draw the ring as an oval around a round photo. */
.pc-av, .cm-av { display: inline-block; flex: none; line-height: 0; border-radius: 50%; aspect-ratio: 1 / 1; }
.pc-av { align-self: center; }
.cm-av { margin-top: 2px; align-self: flex-start; }
/* Presence dot (Discord-style) — a real child node, because the border ring
   owns ::before. z-index lifts it over the ring layer; the ring's padding is
   inside the box, so the dot sits on the photo's corner for every border. */
.cm-av { position: relative; }
.cm-dot {
  position: absolute; right: -1px; bottom: -1px; z-index: 2; pointer-events: auto;
  width: 12px; height: 12px; border-radius: 50%; display: none;
  background: #80848e; box-shadow: 0 0 0 2.5px #17121f;
}
.cm-dot-g, .cm-dot-y, .cm-dot-x { display: block; }
.cm-dot-g { background: #23a55a; }
.cm-dot-y { background: #f0b232; }
.cm-dot-x { background: #80848e; }
.cm-av.has-bdr .cm-dot { right: calc(var(--bdr-w) - 1px); bottom: calc(var(--bdr-w) - 1px); }
@media (max-width: 640px) { .cm-dot { width: 10px; height: 10px; box-shadow: 0 0 0 2px #17121f; } }
.pc-av .pc-avatar, .cm-av .cm-avatar { display: block; margin-top: 0; }
/* The ring is its own masked layer so a design that animates --bdr-o
   flickers the FRAME and never the avatar photo underneath it. */
.pc-av.has-bdr, .cm-av.has-bdr { position: relative; padding: var(--bdr-w); animation: var(--bdr-anim); }
.pc-av.has-bdr::before, .cm-av.has-bdr::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: 50%; padding: var(--bdr-w); background: var(--bdr-grad);
  opacity: var(--bdr-o, 1);
  filter: drop-shadow(0 0 var(--bdr-gw, 6px) var(--bdr-glow)) hue-rotate(var(--bdr-hue, 0deg));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* ---- surface 3: LIVE WINS rows (no pseudo-elements — FX owns them) ---- */
.titem.has-bdr, .rw-row.has-bdr {
  border-radius: 10px;
  box-shadow: inset 0 0 0 var(--bdr-w) var(--bdr-line), 0 0 9px var(--bdr-glow), var(--bdr-halo);
}
.rw-row.has-bdr { border-radius: 12px; }

/* ---- shop + inventory preview tile ---- */
.bdr-demo {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 62px;
  padding: 12px 14px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.3));
}
.bdr-demo-av {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, #2b2340, #141020);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.bdr-demo-name {
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.9);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-bdr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.shop-bdr-card {
  display: flex; flex-direction: column; gap: 9px; padding: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.shop-bdr-card.is-equipped { border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.06); }
.shop-bdr-card .theme-act { width: 100%; }

/* ---- the ten designs ---- */
.has-bdr.bdr-bdr_neon_wire {
  --bdr-w: 2px;
  --bdr-grad: conic-gradient(from var(--bdr-a), #22d3ee, #a855f7, #22d3ee, #6366f1, #22d3ee);
  --bdr-line: #22d3ee; --bdr-glow: rgba(34, 211, 238, 0.55);
  --bdr-anim: bdr-spin 7s linear infinite;
}
.has-bdr.bdr-bdr_barbed_scrap {
  --bdr-w: 3px;
  --bdr-grad: repeating-linear-gradient(45deg, #8d9fb3 0 5px, #262c35 5px 9px, #cad6e4 9px 12px);
  --bdr-line: #8d9fb3; --bdr-glow: rgba(141, 159, 179, 0.45); --bdr-gw: 5px;
}
.has-bdr.bdr-bdr_circuit_break {
  --bdr-w: 2px;
  --bdr-grad: repeating-linear-gradient(90deg, #10b981 0 14px, rgba(6, 78, 59, 0.85) 14px 20px, #34d399 20px 26px, rgba(6, 78, 59, 0.85) 26px 34px);
  --bdr-line: #10b981; --bdr-glow: rgba(16, 185, 129, 0.5);
  --bdr-anim: bdr-blink 3.4s steps(1, end) infinite;
}
.has-bdr.bdr-bdr_molten_rim {
  --bdr-w: 3px;
  --bdr-grad: linear-gradient(135deg, #fde047, #f97316 45%, #dc2626 75%, #7c2d12);
  --bdr-line: #f97316; --bdr-glow: rgba(249, 115, 22, 0.6);
  --bdr-anim: bdr-pulse 2.6s ease-in-out infinite;
}
.has-bdr.bdr-bdr_frost_pane {
  --bdr-w: 2px;
  --bdr-grad: linear-gradient(135deg, #e0f2fe, #38bdf8 40%, #bae6fd 60%, #0ea5e9);
  --bdr-line: #7dd3fc; --bdr-glow: rgba(125, 211, 252, 0.5); --bdr-gw: 8px;
}
.has-bdr.bdr-bdr_hazard_seal {
  --bdr-w: 4px;
  --bdr-grad: repeating-linear-gradient(45deg, #facc15 0 9px, #171717 9px 18px);
  --bdr-line: #facc15; --bdr-glow: rgba(250, 204, 21, 0.4); --bdr-gw: 4px;
}
.has-bdr.bdr-bdr_gilded_crown {
  --bdr-w: 3px;
  --bdr-grad: linear-gradient(100deg, #7c5a16 0%, #fde68a 25%, #fffbeb 35%, #d4af37 50%, #7c5a16 70%) 0 0 / 200% 100%;
  --bdr-line: #d4af37; --bdr-glow: rgba(212, 175, 55, 0.55);
  --bdr-anim: bdr-sweep 5s linear infinite;
}
/* Designs animated with bdr-sweep drive the shared background-position. */
.pc-card.has-bdr.bdr-bdr_gilded_crown::after, .pc-inline.has-bdr.bdr-bdr_gilded_crown::after,
.bdr-demo.has-bdr.bdr-bdr_gilded_crown::after,
.pc-av.has-bdr.bdr-bdr_gilded_crown::before,
.cm-av.has-bdr.bdr-bdr_gilded_crown::before,
.pc-card.has-bdr.bdr-bdr_royal_ember::after, .pc-inline.has-bdr.bdr-bdr_royal_ember::after,
.bdr-demo.has-bdr.bdr-bdr_royal_ember::after,
.pc-av.has-bdr.bdr-bdr_royal_ember::before,
.cm-av.has-bdr.bdr-bdr_royal_ember::before,
.pc-card.has-bdr.bdr-bdr_fallout_siren::after, .pc-inline.has-bdr.bdr-bdr_fallout_siren::after,
.bdr-demo.has-bdr.bdr-bdr_fallout_siren::after,
.pc-av.has-bdr.bdr-bdr_fallout_siren::before,
.cm-av.has-bdr.bdr-bdr_fallout_siren::before { background-position: var(--bdr-p) 0; }
.has-bdr.bdr-bdr_static_feed {
  --bdr-w: 3px;
  --bdr-grad: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.85) 0 2px, rgba(120, 120, 130, 0.35) 2px 4px, rgba(30, 30, 38, 0.9) 4px 6px);
  --bdr-line: rgba(220, 220, 230, 0.7); --bdr-glow: rgba(200, 200, 215, 0.35);
  --bdr-anim: bdr-flicker 2.2s steps(1, end) infinite;
}
.has-bdr.bdr-bdr_bloom_vine {
  --bdr-w: 3px;
  --bdr-grad: linear-gradient(150deg, #14532d, #4ade80 30%, #166534 55%, #86efac 80%, #14532d);
  --bdr-line: #4ade80; --bdr-glow: rgba(74, 222, 128, 0.5);
  --bdr-anim: bdr-breathe 4.5s ease-in-out infinite;
}
.has-bdr.bdr-bdr_laser_room {
  --bdr-w: 2px;
  --bdr-grad: conic-gradient(from var(--bdr-a), #ec4899, #8b5cf6, #06b6d4, #22c55e, #ec4899);
  --bdr-line: #c026d3; --bdr-glow: rgba(192, 38, 211, 0.6);
  --bdr-anim: bdr-spin 3.2s linear infinite;
}

/* ---- the ELITE tier (themes.BORDER_ELITE_CATALOG) ----
   Same tokens, but each design stacks layered backgrounds AND two or three
   simultaneous animations, plus a halo that bleeds past the win-feed row. */
.has-bdr.bdr-bdr_aurora_flux {
  --bdr-w: 3px;
  --bdr-grad: conic-gradient(from var(--bdr-a), #22d3ee, #a78bfa 25%, #f472b6 45%, #34d399 70%, #22d3ee);
  --bdr-line: #7dd3fc; --bdr-glow: rgba(125, 211, 252, 0.7);
  --bdr-halo: 0 0 26px -4px rgba(129, 140, 248, 0.75);
  --bdr-anim: bdr-spin 6s linear infinite, bdr-breathe 3.2s ease-in-out infinite, bdr-hue 11s linear infinite;
}
.has-bdr.bdr-bdr_event_horizon {
  --bdr-w: 3px;
  --bdr-grad: conic-gradient(from var(--bdr-a), rgba(8, 6, 18, 0.96) 0 56%, rgba(168, 85, 247, 0.85) 70%, #ffffff 78%, #38bdf8 85%, rgba(8, 6, 18, 0.96) 93%);
  --bdr-line: #a855f7; --bdr-glow: rgba(168, 85, 247, 0.75);
  --bdr-halo: 0 0 30px -6px rgba(168, 85, 247, 0.8);
  --bdr-anim: bdr-spin 2.6s linear infinite, bdr-pulse 3.4s ease-in-out infinite;
}
.has-bdr.bdr-bdr_royal_ember {
  --bdr-w: 4px;
  --bdr-grad:
    radial-gradient(circle at 22% 50%, rgba(255, 224, 138, 0.95) 0 2px, rgba(255, 224, 138, 0) 3px) 0 0 / 24px 100%,
    linear-gradient(100deg, #3b2503, #fde68a 18%, #fffdf5 27%, #f59e0b 42%, #7c2d12 62%, #fbbf24 82%, #3b2503) 0 0 / 300% 100%;
  --bdr-line: #f5b642; --bdr-glow: rgba(245, 158, 11, 0.7);
  --bdr-halo: 0 0 24px -4px rgba(245, 158, 11, 0.8);
  --bdr-anim: bdr-sweep 4s linear infinite, bdr-breathe 2.8s ease-in-out infinite;
}
.has-bdr.bdr-bdr_prism_break {
  --bdr-w: 3px;
  --bdr-grad:
    conic-gradient(from calc(var(--bdr-a) * -2), rgba(244, 63, 94, 0.6), rgba(59, 130, 246, 0) 28%, rgba(34, 197, 94, 0.6) 54%, rgba(59, 130, 246, 0) 80%, rgba(244, 63, 94, 0.6)),
    conic-gradient(from var(--bdr-a), #f43f5e, #f59e0b 20%, #22c55e 45%, #3b82f6 70%, #a855f7 86%, #f43f5e);
  --bdr-line: #38bdf8; --bdr-glow: rgba(59, 130, 246, 0.7);
  --bdr-halo: 0 0 28px -5px rgba(168, 85, 247, 0.7);
  --bdr-anim: bdr-spin 4.4s linear infinite, bdr-pulse 2.4s ease-in-out infinite;
}
.has-bdr.bdr-bdr_fallout_siren {
  --bdr-w: 4px;
  --bdr-grad: repeating-linear-gradient(45deg, #facc15 0 10px, #101010 10px 20px) 0 0 / 200% 100%;
  --bdr-line: #f59e0b; --bdr-glow: rgba(239, 68, 68, 0.8);
  --bdr-halo: 0 0 26px -4px rgba(239, 68, 68, 0.85);
  --bdr-anim: bdr-sweep 3s linear infinite, bdr-siren 1.9s steps(1, end) infinite;
}

/* ---- APEX tier: the top shelf. Multi-layer rings, three animations each
   and a halo that throws light well past the frame. ---- */
.has-bdr.bdr-bdr_apex_singularity {
  --bdr-w: 4px;
  --bdr-grad:
    conic-gradient(from calc(var(--bdr-a) * -3), rgba(255, 255, 255, 0) 0 60%, rgba(56, 189, 248, 0.85) 71%, #ffffff 77%, rgba(168, 85, 247, 0) 88%),
    conic-gradient(from var(--bdr-a), #05030c 0 38%, #7c3aed 56%, #f0abfc 65%, #ffffff 71%, #22d3ee 80%, #05030c 92%);
  --bdr-line: #c084fc; --bdr-glow: rgba(192, 132, 252, 0.9);
  --bdr-halo: 0 0 44px -6px rgba(147, 51, 234, 0.95), 0 0 96px -20px rgba(56, 189, 248, 0.7);
  --bdr-anim: bdr-spin 2.2s linear infinite, bdr-pulse 2.1s ease-in-out infinite, bdr-hue 7s linear infinite;
  --bdr-aura: block; --bdr-ow: 2px;
  --bdr-ring: conic-gradient(from calc(var(--bdr-a) * -2), rgba(255, 255, 255, 0) 0 57%, rgba(56, 189, 248, 0.9) 70%, #ffffff 76%, rgba(168, 85, 247, 0.9) 83%, rgba(255, 255, 255, 0) 93%);
  --bdr-crest: "\25C6"; --bdr-crest-bg: linear-gradient(140deg, #f0abfc, #22d3ee);
  --bdr-wash: linear-gradient(90deg, rgba(124, 58, 237, 0.3), rgba(34, 211, 238, 0.12) 58%, transparent);
}
.has-bdr.bdr-bdr_apex_solar_crown {
  --bdr-w: 4px;
  --bdr-grad:
    conic-gradient(from calc(var(--bdr-a) * 2), rgba(255, 237, 213, 0) 0 68%, rgba(255, 255, 255, 0.95) 79%, rgba(255, 237, 213, 0) 90%),
    linear-gradient(100deg, #7c2d12 0%, #f59e0b 16%, #fde68a 28%, #ffffff 36%, #fbbf24 50%, #b45309 68%, #7c2d12 100%) 0 0 / 200% 100%;
  --bdr-line: #fbbf24; --bdr-glow: rgba(251, 191, 36, 0.95);
  --bdr-halo: 0 0 46px -6px rgba(251, 191, 36, 0.95), 0 0 100px -22px rgba(249, 115, 22, 0.75);
  --bdr-anim: bdr-sweep 3.4s linear infinite, bdr-spin 5s linear infinite, bdr-breathe 2.4s ease-in-out infinite;
  --bdr-aura: block; --bdr-ow: 3px;
  --bdr-ring: repeating-linear-gradient(45deg, rgba(255, 247, 237, 0.95) 0 3px, rgba(251, 191, 36, 0.6) 3px 7px, rgba(251, 191, 36, 0) 7px 17px);
  --bdr-ring-round: repeating-conic-gradient(from calc(var(--bdr-a) * -1), rgba(255, 247, 237, 0.95) 0 2deg, rgba(251, 191, 36, 0.55) 2deg 5deg, rgba(251, 191, 36, 0) 5deg 45deg);
  --bdr-crest: "\265B"; --bdr-crest-bg: linear-gradient(140deg, #fff7ed, #fbbf24);
  --bdr-wash: linear-gradient(90deg, rgba(251, 191, 36, 0.32), rgba(249, 115, 22, 0.12) 55%, transparent);
}
/* Only the second (linear) layer sweeps — the corona layer must stay centred. */
.pc-card.has-bdr.bdr-bdr_apex_solar_crown::after, .pc-inline.has-bdr.bdr-bdr_apex_solar_crown::after,
.bdr-demo.has-bdr.bdr-bdr_apex_solar_crown::after,
.pc-av.has-bdr.bdr-bdr_apex_solar_crown::before,
.cm-av.has-bdr.bdr-bdr_apex_solar_crown::before { background-position: 50% 50%, var(--bdr-p) 0; }
.has-bdr.bdr-bdr_apex_void_monarch {
  --bdr-w: 4px;
  --bdr-grad:
    conic-gradient(from calc(var(--bdr-a) * -1), rgba(250, 204, 21, 0) 0 44%, rgba(250, 204, 21, 0.9) 51%, #fff7ed 55%, rgba(250, 204, 21, 0) 63%),
    conic-gradient(from var(--bdr-a), #1a0b2e, #4c1d95 17%, #c026d3 31%, #facc15 43%, #4c1d95 59%, #1a0b2e 77%, #7e22ce 91%, #1a0b2e);
  --bdr-line: #d8b4fe; --bdr-glow: rgba(217, 70, 239, 0.9);
  --bdr-halo: 0 0 42px -6px rgba(192, 38, 211, 0.9), 0 0 92px -22px rgba(250, 204, 21, 0.65);
  --bdr-anim: bdr-spin 8s linear infinite, bdr-breathe 3.6s ease-in-out infinite, bdr-hue 14s linear infinite;
  --bdr-aura: block; --bdr-ow: 2px;
  --bdr-ring: conic-gradient(from calc(var(--bdr-a) * 1.5), rgba(250, 204, 21, 0) 0 38%, rgba(250, 204, 21, 0.9) 46%, #fff7ed 50%, rgba(250, 204, 21, 0) 59%, rgba(192, 38, 211, 0.85) 73%, rgba(192, 38, 211, 0) 86%);
  --bdr-crest: "\2726"; --bdr-crest-bg: linear-gradient(140deg, #facc15, #c026d3);
  --bdr-wash: linear-gradient(90deg, rgba(126, 34, 206, 0.32), rgba(250, 204, 21, 0.1) 55%, transparent);
}

/* ---- What actually makes APEX apex --------------------------------------
   Elite is one ring that moves. An APEX design is a STRUCTURE: a second
   physical ring standing off the frame, a crest mounted on it, a light in
   orbit around the avatar, and a wash that claims the whole LIVE WINS row
   and ignites once as the win lands.

   Every bordered surface renders an empty <i class="bdr-aura">. It stays
   invisible until a design switches it on with --bdr-aura, so the tier
   lives in the design definition and the markup never has to know which
   tier it is drawing — exactly like the ring tokens above. */
@keyframes bdr-orbit { to { transform: rotate(360deg); } }
@keyframes bdr-crest-beat {
  0%, 100% { transform: rotate(-7deg) scale(1); }
  50% { transform: rotate(7deg) scale(1.16); }
}
/* One-shot: a win row lights its frame as it lands, then settles. */
@keyframes bdr-ignite {
  0% { opacity: 0; filter: brightness(3.4); }
  18% { opacity: 1; filter: brightness(2.2); }
  100% { opacity: 1; filter: none; }
}

.has-bdr > .bdr-aura {
  display: var(--bdr-aura, none);
  position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; pointer-events: none;
}
/* The stand-off ring. Designs drive it off --bdr-a with their own
   multiplier, so it counter-rotates against the frame for free. */
.pc-card.has-bdr > .bdr-aura::before, .pc-inline.has-bdr > .bdr-aura::before,
.bdr-demo.has-bdr > .bdr-aura::before,
.pc-av.has-bdr > .bdr-aura::before, .cm-av.has-bdr > .bdr-aura::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: var(--bdr-ow, 2px); background: var(--bdr-ring, none);
  opacity: 0.9;
  filter: drop-shadow(0 0 8px var(--bdr-glow)) hue-rotate(var(--bdr-hue, 0deg));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* Card surfaces clip (.pc-inline, .bdr-demo both hide overflow), so their
   second ring stands INSIDE the frame; the avatar's stands outside it. */
.pc-card.has-bdr > .bdr-aura, .pc-inline.has-bdr > .bdr-aura,
.bdr-demo.has-bdr > .bdr-aura { inset: 6px; }
/* .pc-inline and .bdr-demo clip their overflow, so the crest has to mount
   inside their edge or it gets sliced in half. */
.pc-inline.has-bdr > .bdr-aura, .bdr-demo.has-bdr > .bdr-aura { --bdr-crest-off: -3px; }
.pc-card.has-bdr > .bdr-aura::after, .pc-inline.has-bdr > .bdr-aura::after,
.bdr-demo.has-bdr > .bdr-aura::after {
  content: var(--bdr-crest, ""); position: absolute;
  top: var(--bdr-crest-off, -10px); right: var(--bdr-crest-off, -10px);
  width: 21px; height: 21px; border-radius: 50%;
  font-size: 0.66rem; line-height: 21px; text-align: center;
  color: #140a02; background: var(--bdr-crest-bg, #fbbf24);
  box-shadow: 0 0 14px -2px var(--bdr-glow), inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  animation: bdr-crest-beat 2.9s ease-in-out infinite;
}
.pc-av.has-bdr > .bdr-aura, .cm-av.has-bdr > .bdr-aura { inset: -7px; border-radius: 50%; }
.pc-av.has-bdr > .bdr-aura::before, .cm-av.has-bdr > .bdr-aura::before {
  background: var(--bdr-ring-round, var(--bdr-ring, none));
}
/* A mote in orbit — only round surfaces can carry one honestly. */
.pc-av.has-bdr > .bdr-aura::after, .cm-av.has-bdr > .bdr-aura::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: radial-gradient(circle at 50% 0, #ffffff 0 2.5px, var(--bdr-line) 3px, transparent 4.6px);
  filter: drop-shadow(0 0 7px var(--bdr-glow));
  animation: bdr-orbit 3.8s linear infinite;
}
/* LIVE WINS: the row itself is claimed. FX still owns both row pseudos,
   which is why the wash rides the aura child instead. */
.titem.has-bdr, .rw-row.has-bdr { position: relative; }
.titem.has-bdr > :not(.bdr-aura), .rw-row.has-bdr > :not(.bdr-aura) { position: relative; z-index: 2; }
.titem.has-bdr > .bdr-aura, .rw-row.has-bdr > .bdr-aura { z-index: 1; }
.titem.has-bdr > .bdr-aura::before, .rw-row.has-bdr > .bdr-aura::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--bdr-wash, none);
}
/* Only a row the feed is painting for the first time ignites. */
.rw-row.has-bdr > .bdr-aura.is-new::before { animation: bdr-ignite 1.6s ease-out 1 both; }

/* ---- Premium shelf chrome (shop headings + card badges) ---- */
.bdr-tier-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.bdr-tier-tag {
  font-weight: 900; letter-spacing: 0.14em; font-size: 0.7rem; padding: 6px 13px; border-radius: 999px;
  color: #12060f; background: linear-gradient(100deg, #fde68a, #f472b6 48%, #67e8f9);
  box-shadow: 0 0 20px -5px rgba(244, 114, 182, 0.85);
}
.bdr-tier-sub { flex: 1; min-width: 220px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.shop-bdr-card.is-elite {
  position: relative;
  border-color: rgba(244, 114, 182, 0.35);
  background: linear-gradient(160deg, rgba(244, 114, 182, 0.1), rgba(56, 189, 248, 0.05));
}
.bdr-elite-pill {
  position: absolute; top: 9px; right: 9px; z-index: 5;
  font-size: 0.58rem; font-weight: 900; letter-spacing: 0.12em; padding: 3px 8px; border-radius: 999px;
  color: #12060f; background: linear-gradient(100deg, #fde68a, #f472b6);
}
.inv-theme-card.is-elite { border-color: rgba(244, 114, 182, 0.35); }

/* APEX reads gold-on-black against Elite's pink/cyan. */
.bdr-tier-tag.is-apex {
  color: #1b1205; background: linear-gradient(100deg, #fff7ed, #fbbf24 46%, #f472b6);
  box-shadow: 0 0 26px -4px rgba(251, 191, 36, 0.9);
}
.shop-bdr-card.is-apex {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.12), rgba(168, 85, 247, 0.07));
}
.bdr-elite-pill.is-apex { background: linear-gradient(100deg, #fff7ed, #fbbf24); }
.inv-theme-card.is-apex { border-color: rgba(251, 191, 36, 0.45); }

/* Daily spotlight strip: three frames, one per tier. */
.bdr-tier-head.is-featured { margin-top: 4px; }
.bdr-tier-tag.is-featured {
  color: #06131a; background: linear-gradient(100deg, #bae6fd, #34d399 55%, #fde68a);
  box-shadow: 0 0 20px -6px rgba(52, 211, 153, 0.85);
}
.shop-bdr-card.is-featured { border-color: rgba(52, 211, 153, 0.4); }

/* Four stat tiles now (borders joined nameplates/panels/emojis). */
.pc-stats { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }

@media (prefers-reduced-motion: reduce) {
  .has-bdr, .pc-card.has-bdr::after, .pc-inline.has-bdr::after, .bdr-demo.has-bdr::after,
  .pc-av.has-bdr::before, .cm-av.has-bdr::before,
  .has-bdr > .bdr-aura::before, .has-bdr > .bdr-aura::after {
    animation: none !important;
  }
}

/* ---------- The Outpost lobby card ----------
   A base that grows is the whole pitch, and a still picture cannot make
   that point. Three shelters off the real ladder stand on the same ground
   and crossfade, with the shelter counter filling as they go. */
.op-evo { background: #05070f; }
/* ==========================================================================
   MILLIONAIRES CLUB — VAULT-DOOR EXCLUSIVES
   A deliberately separate top shelf: cut crystal, private-suite brass, and
   controlled champagne light. These cosmetics are only awarded past 1M tickets.
   ========================================================================== */

/* ---- Nameplates: jeweller's foil, not the shop's ordinary neon ---- */
.name-theme-mc_diamond_signature {
  display: inline-block;
  background:
    linear-gradient(104deg, #6a8293 0%, #dfffff 13%, #83f6ff 24%, #fff 34%, #5bd0e3 48%, #d9feff 61%, #6d8492 78%, #f9ffff 91%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .035em;
  text-shadow: 0 0 1px rgba(238,255,255,.9);
  filter: drop-shadow(0 0 5px rgba(90,220,238,.46));
  animation: mcDiamondFoil 5.4s linear infinite;
}
@keyframes mcDiamondFoil { to { background-position: 260% 0; } }

.name-theme-mc_midas_touch {
  display: inline-block;
  background:
    linear-gradient(102deg, #6e3c09 0%, #d58a1a 10%, #ffe8a1 22%, #fff8dc 31%, #e2a22d 42%, #8d4d0b 54%, #f7c55b 67%, #fff4c9 78%, #a76010 91%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .045em;
  text-shadow: 0 0 1px rgba(255,238,179,.7);
  filter: drop-shadow(0 0 5px rgba(238,165,43,.42));
  animation: mcMidasFoil 6.8s linear infinite;
}
@keyframes mcMidasFoil { to { background-position: 280% 0; } }

/* ---- Full-site skins: shared variables only; layout stays entirely intact ---- */
body.panel-mc_penthouse {
  --bg: #100d09;
  --bg-2: #21170d;
  --surface: rgba(255,225,166,.055);
  --surface-2: rgba(255,229,172,.10);
  --border: rgba(239,192,109,.18);
  --border-strong: rgba(255,223,161,.34);
  --text: #fff8e9;
  --muted: #cab99e;
  --muted-2: #927f64;
  --purple: #8e5313;
  --violet: #d18c28;
  --magenta: #9a5816;
  --fuchsia: #ffe0a0;
  --pink: #f4b95b;
  --blue: #4d3018;
  --cyan: #fff0bc;
  --grad: linear-gradient(112deg, #75400e 0%, #dda13a 31%, #fff0b7 49%, #c1761d 68%, #5d310d 100%);
  --grad-soft: linear-gradient(112deg, rgba(117,64,14,.27), rgba(221,161,58,.17) 42%, rgba(255,240,183,.10) 55%, rgba(93,49,13,.24));
  --glow: 0 0 38px -9px rgba(241,175,58,.58);
}
body.panel-mc_crystal_palace {
  --bg: #071114;
  --bg-2: #0b2226;
  --surface: rgba(194,250,255,.055);
  --surface-2: rgba(209,251,255,.10);
  --border: rgba(130,232,241,.18);
  --border-strong: rgba(214,253,255,.36);
  --text: #effeff;
  --muted: #a9c9ce;
  --muted-2: #6d969d;
  --purple: #176878;
  --violet: #4ab9c9;
  --magenta: #238b9b;
  --fuchsia: #c5faff;
  --pink: #8eeaf1;
  --blue: #103b47;
  --cyan: #e6ffff;
  --grad: linear-gradient(112deg, #164956 0%, #5cd8e5 27%, #f3ffff 48%, #6acbd6 65%, #214f5c 100%);
  --grad-soft: linear-gradient(112deg, rgba(22,73,86,.3), rgba(92,216,229,.17) 42%, rgba(243,255,255,.12) 55%, rgba(33,79,92,.26));
  --glow: 0 0 40px -9px rgba(108,230,240,.58);
}

/* ---- Win feed: two light-weight ceremonial entrances, safe in dense rows ---- */
:is(.titem,.rw-row,.fx-demo,.sto-feed-row).winfx-fx_mc_champagne {
  background:
    radial-gradient(circle at 8% 50%, rgba(255,248,211,.22), transparent 21%),
    linear-gradient(96deg, #211408 0%, #6e3d0d 45%, #211109 100%);
  box-shadow: inset 0 0 0 1px rgba(255,222,142,.21), inset 0 1px rgba(255,247,211,.12);
}
:is(.titem,.rw-row,.fx-demo,.sto-feed-row).winfx-fx_mc_champagne::before {
  background:
    radial-gradient(circle at 14% 32%, rgba(255,249,212,.88) 0 1px, transparent 1.8px),
    radial-gradient(circle at 31% 72%, rgba(255,218,115,.78) 0 1px, transparent 1.7px),
    radial-gradient(circle at 53% 22%, rgba(255,248,213,.68) 0 1.2px, transparent 2px),
    radial-gradient(circle at 76% 67%, rgba(255,213,102,.76) 0 1px, transparent 1.8px),
    radial-gradient(circle at 92% 30%, rgba(255,249,216,.7) 0 1px, transparent 1.8px);
  opacity: .82;
  animation: mcChampagneRise 2.9s ease-in-out infinite;
}
:is(.titem,.rw-row,.fx-demo,.sto-feed-row).winfx-fx_mc_champagne::after {
  inset: 0 -28%;
  background: linear-gradient(105deg, transparent 39%, rgba(255,247,205,.30) 49%, transparent 58%);
  transform: translateX(-19%);
  animation: mcBottleFlash 3.8s ease-in-out infinite;
}
@keyframes mcChampagneRise { 50% { transform: translateY(-6px); opacity: .42; } }
@keyframes mcBottleFlash { 48%, 100% { transform: translateX(19%); opacity: .08; } 62% { opacity: .38; } }

:is(.titem,.rw-row,.fx-demo,.sto-feed-row).winfx-fx_mc_vault_light {
  background:
    linear-gradient(90deg, rgba(11,25,28,.96), rgba(26,75,78,.72) 48%, rgba(10,21,25,.96)),
    #091317;
  box-shadow: inset 0 0 0 1px rgba(164,248,244,.20), inset 0 1px rgba(242,255,253,.12);
}
:is(.titem,.rw-row,.fx-demo,.sto-feed-row).winfx-fx_mc_vault_light::before {
  left: -36%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(225,255,249,.13) 30%, rgba(171,255,244,.74) 49%, rgba(225,255,249,.13) 69%, transparent);
  transform: skewX(-18deg);
  animation: mcVaultSweep 3.1s cubic-bezier(.28,.05,.34,1) infinite;
}
:is(.titem,.rw-row,.fx-demo,.sto-feed-row).winfx-fx_mc_vault_light::after {
  background: repeating-linear-gradient(90deg, transparent 0 24px, rgba(162,248,241,.13) 25px 26px, transparent 27px 49px);
  opacity: .55;
}
@keyframes mcVaultSweep { 55%, 100% { transform: translateX(470%) skewX(-18deg); opacity: .05; } 68% { opacity: .72; } }

/* ---- Borders: Millionaires Club exceeds Apex with a formal crest + aura ---- */
.has-bdr.bdr-bdr_mc_crystal {
  --bdr-w: 4px;
  --bdr-grad:
    conic-gradient(from calc(var(--bdr-a) * -1), transparent 0 52%, rgba(121,242,255,.78) 61%, #fff 67%, rgba(174,251,255,.68) 74%, transparent 83%),
    conic-gradient(from var(--bdr-a), #123640, #63dce6 18%, #eaffff 30%, #4aa7b5 45%, #bffbff 62%, #1d5965 78%, #123640);
  --bdr-line: #a9f9ff;
  --bdr-glow: rgba(116,232,244,.88);
  --bdr-halo: 0 0 34px -7px rgba(112,225,239,.85), 0 0 76px -27px rgba(210,255,255,.55);
  --bdr-anim: bdr-spin 5.6s linear infinite, bdr-breathe 3.1s ease-in-out infinite;
  --bdr-aura: block;
  --bdr-ow: 2px;
  --bdr-ring: repeating-conic-gradient(from calc(var(--bdr-a) * -1), rgba(232,255,255,.95) 0 2deg, rgba(102,225,237,.52) 2deg 5deg, transparent 5deg 29deg);
  --bdr-crest: "\2726";
  --bdr-crest-bg: linear-gradient(140deg, #f5ffff, #73e5ed);
  --bdr-wash: linear-gradient(90deg, rgba(106,227,238,.28), rgba(224,255,255,.12) 52%, transparent);
}
.has-bdr.bdr-bdr_mc_bullion {
  --bdr-w: 5px;
  --bdr-grad:
    linear-gradient(102deg, #4c2805 0%, #bd7619 14%, #fff3bb 27%, #fffdf0 34%, #d99926 45%, #6a3707 57%, #f6c35a 72%, #fff0ad 83%, #633306 100%) 0 0 / 260% 100%;
  --bdr-line: #f5c658;
  --bdr-glow: rgba(245,184,63,.90);
  --bdr-halo: 0 0 38px -7px rgba(244,180,50,.92), 0 0 86px -28px rgba(255,222,134,.52);
  --bdr-anim: bdr-sweep 4.6s linear infinite, bdr-breathe 2.7s ease-in-out infinite;
  --bdr-aura: block;
  --bdr-ow: 3px;
  --bdr-ring: repeating-linear-gradient(45deg, rgba(255,249,219,.95) 0 3px, rgba(247,190,68,.66) 3px 7px, transparent 7px 18px);
  --bdr-ring-round: repeating-conic-gradient(from calc(var(--bdr-a) * -1), rgba(255,249,219,.98) 0 2deg, rgba(247,190,68,.66) 2deg 5deg, transparent 5deg 35deg);
  --bdr-crest: "\265B";
  --bdr-crest-bg: linear-gradient(140deg, #fff8d8, #e9a92d);
  --bdr-wash: linear-gradient(90deg, rgba(235,166,38,.32), rgba(255,239,177,.12) 53%, transparent);
}
.pc-card.has-bdr.bdr-bdr_mc_bullion::after,
.pc-inline.has-bdr.bdr-bdr_mc_bullion::after,
.bdr-demo.has-bdr.bdr-bdr_mc_bullion::after,
.pc-av.has-bdr.bdr-bdr_mc_bullion::before,
.cm-av.has-bdr.bdr-bdr_mc_bullion::before { background-position: var(--bdr-p) 0; }

@media (prefers-reduced-motion: reduce) {
  .name-theme-mc_diamond_signature,
  .name-theme-mc_midas_touch,
  :is(.titem,.rw-row,.fx-demo,.sto-feed-row).winfx-fx_mc_champagne::before,
  :is(.titem,.rw-row,.fx-demo,.sto-feed-row).winfx-fx_mc_champagne::after,
  :is(.titem,.rw-row,.fx-demo,.sto-feed-row).winfx-fx_mc_vault_light::before,
  .has-bdr.bdr-bdr_mc_crystal,
  .has-bdr.bdr-bdr_mc_bullion { animation: none !important; }
}
/* Night art in a small frame goes muddy, and the card's own bottom
   gradient sits on top of the shelter name. Lift one, soften the other. */
.op-evo svg { display: block; width: 100%; height: 100%; filter: brightness(1.16) saturate(1.06); }
.op-evo::after { background: linear-gradient(180deg, transparent 62%, rgba(8,4,15,.35)); }
.op-evo .op-evo-stage { opacity: 0; animation: opEvoStage 13.5s ease-in-out infinite; }
.op-evo .op-evo-s2 { animation-delay: 4.5s; }
.op-evo .op-evo-s3 { animation-delay: 9s; }
.op-evo .op-evo-name {
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  letter-spacing: .08em; fill: #e7e5e4;
}
.op-evo .op-evo-ticks rect { fill: #57534e; }
.op-evo .op-evo-blink { animation: opEvoBlink 2.4s steps(1, end) infinite; }
@keyframes opEvoStage {
  0% { opacity: 0 } 4% { opacity: 1 } 29% { opacity: 1 }
  33.34% { opacity: 0 } 100% { opacity: 0 }
}
@keyframes opEvoBlink { 0%, 58% { opacity: 1 } 59%, 100% { opacity: .12 } }
@media (max-width: 720px) { .op-evo .op-evo-name { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) {
  /* No flicker for anyone who asked for none: the finished base holds
     still, which is also the clearest single frame of the three. */
  .op-evo .op-evo-stage, .op-evo .op-evo-blink { animation: none; }
  .op-evo .op-evo-stage { opacity: 0; }
  .op-evo .op-evo-s3 { opacity: 1; }
}

/* ==========================================================================
   MILLIONAIRES CLUB — THE BLACK CARD
   The hero row already shouts: EVENTS is rust-orange and the market sign is
   neon. The club earns its place by doing the opposite — matte anodised
   black, one hairline of gold, a serif wordmark and a single slow sweep of
   light, the way a metal card catches a lamp when it is turned over.
   ========================================================================== */
.btn-mclub {
  position: relative; overflow: hidden;
  gap: 14px; padding: 13px 20px; border-radius: 10px;
  background: linear-gradient(145deg, #0b0b0d 0%, #161618 52%, #08080a 100%);
  border: 1px solid rgba(214, 182, 106, .5);
  box-shadow: 0 12px 30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .2s ease, box-shadow .3s ease, border-color .3s ease;
}
/* The sweep is the only thing that moves. Everything else holds still. */
.btn-mclub::after {
  content: ""; position: absolute; top: -60%; left: -40%; width: 26%; height: 220%;
  transform: rotate(18deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 238, 190, .16), transparent);
  animation: mclubSheen 6.4s ease-in-out infinite;
}
@keyframes mclubSheen { 0% { left: -40%; } 55%, 100% { left: 125%; } }

.mclub-chip {
  position: relative; flex: 0 0 auto; width: 26px; height: 20px; border-radius: 4px;
  background: linear-gradient(135deg, #d9bd76, #8a7132 48%, #f2e0ab);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}
.mclub-chip::before {
  content: ""; position: absolute; inset: 4px 3px;
  border-left: 1px solid rgba(0,0,0,.35); border-right: 1px solid rgba(0,0,0,.35);
}
.mclub-chip::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1px;
  background: rgba(0,0,0,.35);
}
.mclub-name {
  font-family: "Playfair Display", Georgia, serif; font-weight: 700;
  font-size: 1rem; letter-spacing: .17em; text-transform: uppercase;
  background: linear-gradient(100deg, #8b7333, #f6e6bb 34%, #d9bd76 56%, #fffaf0 74%, #9b8038);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mclub-tag {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .24em;
  text-transform: uppercase; color: #a2977f;
  border-left: 1px solid rgba(214, 182, 106, .3); padding-left: 12px;
  transition: color .3s ease;
}
.btn-mclub:hover, .btn-mclub:focus-visible {
  transform: translateY(-2px); border-color: rgba(244, 222, 165, .9);
  box-shadow: 0 16px 34px rgba(0,0,0,.65), 0 0 22px rgba(214,182,106,.22), inset 0 1px 0 rgba(255,255,255,.1);
}
.btn-mclub:hover .mclub-tag, .btn-mclub:focus-visible .mclub-tag { color: #d6b66a; }

/* Narrow phones: the serif wordmark is the part worth keeping, so the
   MEMBERS tag steps aside rather than letting the name wrap. */
@media (max-width: 640px) {
  .btn-mclub { gap: 11px; padding: 12px 14px; }
  .mclub-name { font-size: .84rem; letter-spacing: .12em; }
  .mclub-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-mclub::after { animation: none; opacity: 0; }
  .btn-mclub:hover, .btn-mclub:focus-visible { transform: none; }
}

/* ============================================================
   BACKDROPS — the animated scene behind a whole player line.
   Twenty designs across four rarities, drawn behind the avatar,
   the name and the text in Global Chat, on the PLAYERCARD and in
   the LIVE WINS feed.

   The scene is painted on a real child node (.bkd-layer), never on
   the row's own ::before/::after: panels, Premium Borders and
   Entrance FX already own those, and a fifth cosmetic competing for
   them would silently erase one of the four.
   ============================================================ */
.has-bkd { position: relative; isolation: isolate; }
.has-bkd > .bkd-layer {
  /* z-index -1 inside the row's OWN stacking context: the scene paints over
     the row background and under every child, without touching the z-index
     of the avatar, the Premium Border aura or the Entrance FX pseudos —
     those already run their own stacking rules and must keep them.
     Everything inside is gradients moving on transform/opacity; phone
     webviews choke on filters and animated box-shadows. */
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; overflow: hidden; pointer-events: none;
}
/* Rows scrolled out of the chat log keep their scene, frozen: a long
   session holds hundreds of messages and a phone should not be painting
   animations nobody can see. */
.has-bkd.bkd-idle > .bkd-layer,
.has-bkd.bkd-idle > .bkd-layer::before,
.has-bkd.bkd-idle > .bkd-layer::after { animation-play-state: paused; }
.has-bkd > .bkd-layer::before,
.has-bkd > .bkd-layer::after {
  content: ""; position: absolute; inset: -60% -30%; pointer-events: none;
}
/* Chat rows sit flush against each other, so the scene is given a
   little room to breathe and the row's own radius to sit in. */
.cm.has-bkd { padding: 6px 10px; border-radius: 12px; }
.cm.has-bkd:hover { background: transparent; }
.rw-row.has-bkd { border-radius: 12px; }
.titem.has-bkd { padding: 2px 10px; border-radius: 999px; }
.pc-demo-msg.has-bkd { padding: 8px 10px; border-radius: 12px; }
.pc-card.has-bkd, .pc-inline.has-bkd { border-radius: 18px; }
/* Names and text keep their footing on top of a moving scene. */
.has-bkd .cm-body, .has-bkd .rw-who, .has-bkd .who,
.has-bkd .pc-demo-body, .has-bkd .bkd-demo-text {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

@keyframes bkd-rise { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes bkd-fall { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes bkd-slide { from { transform: translateX(-25%); } to { transform: translateX(25%); } }
@keyframes bkd-sweep { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
@keyframes bkd-sweep-y { from { transform: translateY(-130%); } to { transform: translateY(130%); } }
@keyframes bkd-breathe { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.15); } }
@keyframes bkd-flicker { 0%, 100% { opacity: 0.5; } 43% { opacity: 0.22; } 47% { opacity: 0.7; } 71% { opacity: 0.3; } }
@keyframes bkd-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes bkd-bloom { 0% { transform: scale(0.4); opacity: 0.75; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes bkd-jolt { 0%, 100% { transform: translateX(0); } 12% { transform: translateX(-6px); } 15% { transform: translateX(5px); } 62% { transform: translateX(0); } 66% { transform: translateX(-4px); } }

/* ---- COMMON — quiet motion you can read a conversation through ---- */
.bkd-bd_ember_drift > .bkd-layer { background: linear-gradient(120deg, #2a1206, #150a05 60%, #2a1206); }
.bkd-bd_ember_drift > .bkd-layer::before {
  background-image: radial-gradient(2px 2px at 12% 80%, #ff9d4d, transparent 60%),
    radial-gradient(2px 2px at 38% 92%, #ffb867, transparent 60%),
    radial-gradient(1.5px 1.5px at 63% 86%, #ff7a18, transparent 60%),
    radial-gradient(2px 2px at 84% 95%, #ffc178, transparent 60%),
    radial-gradient(1.5px 1.5px at 26% 70%, #ff8b2e, transparent 60%);
  background-size: 100% 50%; opacity: 0.85; animation: bkd-rise 11s linear infinite;
}
.bkd-bd_ember_drift > .bkd-layer::after {
  inset: 0; background: radial-gradient(70% 140% at 20% 110%, rgba(255, 122, 24, 0.3), transparent 70%);
  animation: bkd-breathe 7s ease-in-out infinite;
}

.bkd-bd_tide_glass > .bkd-layer { background: linear-gradient(150deg, #06212e, #0b3347 55%, #07243a); }
.bkd-bd_tide_glass > .bkd-layer::before {
  background: linear-gradient(100deg, transparent 35%, rgba(150, 226, 255, 0.22) 50%, transparent 65%);
  animation: bkd-sweep 9s ease-in-out infinite;
}
.bkd-bd_tide_glass > .bkd-layer::after {
  inset: 0; background: radial-gradient(120% 60% at 50% 120%, rgba(56, 189, 248, 0.28), transparent 70%);
  animation: bkd-slide 13s ease-in-out infinite alternate;
}

.bkd-bd_mint_haze > .bkd-layer { background: linear-gradient(140deg, #08251f, #0d3a2f 60%, #08251f); }
.bkd-bd_mint_haze > .bkd-layer::before {
  background: radial-gradient(45% 80% at 25% 40%, rgba(94, 234, 212, 0.3), transparent 70%);
  animation: bkd-slide 16s ease-in-out infinite alternate;
}
.bkd-bd_mint_haze > .bkd-layer::after {
  background: radial-gradient(40% 75% at 75% 65%, rgba(167, 243, 208, 0.22), transparent 70%);
  animation: bkd-slide 19s ease-in-out infinite alternate-reverse;
}

.bkd-bd_paper_lantern > .bkd-layer { background: linear-gradient(135deg, #2b1a08, #1a1005 65%, #301d09); }
.bkd-bd_paper_lantern > .bkd-layer::before {
  background-image: radial-gradient(7px 9px at 18% 62%, rgba(255, 196, 92, 0.75), transparent 70%),
    radial-gradient(5px 7px at 47% 40%, rgba(255, 214, 140, 0.6), transparent 70%),
    radial-gradient(8px 10px at 77% 66%, rgba(255, 176, 66, 0.6), transparent 70%),
    radial-gradient(4px 6px at 92% 34%, rgba(255, 224, 166, 0.5), transparent 70%);
  background-size: 100% 50%; animation: bkd-rise 24s linear infinite;
}
.bkd-bd_paper_lantern > .bkd-layer::after {
  inset: 0; background: radial-gradient(80% 120% at 50% 50%, rgba(255, 183, 77, 0.18), transparent 75%);
  animation: bkd-breathe 9s ease-in-out infinite;
}

.bkd-bd_soft_static > .bkd-layer { background: linear-gradient(180deg, #1b1b20, #111114); }
.bkd-bd_soft_static > .bkd-layer::before {
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px);
  animation: bkd-flicker 2.6s steps(3, end) infinite;
}
.bkd-bd_soft_static > .bkd-layer::after {
  background: linear-gradient(0deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
  animation: bkd-sweep-y 6s linear infinite;
}

/* ---- RARE — one clear effect, running the length of the line ---- */
.bkd-bd_neon_rain > .bkd-layer { background: linear-gradient(160deg, #1a0724, #2a0b3a 60%, #12061c); }
.bkd-bd_neon_rain > .bkd-layer::before {
  background-image: repeating-linear-gradient(104deg,
    rgba(236, 72, 153, 0.55) 0 1px, transparent 1px 22px);
  background-size: 100% 50%; opacity: 0.7; animation: bkd-fall 1.6s linear infinite;
}
.bkd-bd_neon_rain > .bkd-layer::after {
  background-image: repeating-linear-gradient(104deg,
    rgba(96, 165, 250, 0.4) 0 1px, transparent 1px 37px);
  background-size: 100% 50%; opacity: 0.6; animation: bkd-fall 2.6s linear infinite;
}

.bkd-bd_circuit_pulse > .bkd-layer { background: linear-gradient(140deg, #04211c, #06261f 60%, #031713); }
.bkd-bd_circuit_pulse > .bkd-layer::before {
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(45, 212, 191, 0.25) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(45, 212, 191, 0.25) 0 1px, transparent 1px 18px);
}
.bkd-bd_circuit_pulse > .bkd-layer::after {
  background: linear-gradient(90deg, transparent 40%, rgba(94, 234, 212, 0.45) 50%, transparent 60%);
  animation: bkd-sweep 4.5s linear infinite;
}

.bkd-bd_deep_current > .bkd-layer { background: linear-gradient(170deg, #04101f, #072742 55%, #041524); }
.bkd-bd_deep_current > .bkd-layer::before {
  background: repeating-linear-gradient(72deg, rgba(125, 211, 252, 0.16) 0 3px, transparent 3px 26px);
  animation: bkd-slide 12s ease-in-out infinite alternate;
}
.bkd-bd_deep_current > .bkd-layer::after {
  background: repeating-linear-gradient(-68deg, rgba(56, 189, 248, 0.14) 0 2px, transparent 2px 34px);
  animation: bkd-slide 17s ease-in-out infinite alternate-reverse;
}

.bkd-bd_violet_smoke > .bkd-layer { background: linear-gradient(150deg, #170a2b, #241041 60%, #12081f); }
.bkd-bd_violet_smoke > .bkd-layer::before {
  background: radial-gradient(50% 90% at 30% 50%, rgba(167, 139, 250, 0.4), transparent 70%);
  animation: bkd-slide 14s ease-in-out infinite alternate;
}
.bkd-bd_violet_smoke > .bkd-layer::after {
  background: radial-gradient(55% 95% at 70% 45%, rgba(217, 70, 239, 0.28), transparent 70%);
  animation: bkd-breathe 10s ease-in-out infinite;
}

.bkd-bd_scanline_sweep > .bkd-layer { background: linear-gradient(180deg, #0a1a12, #061008); }
.bkd-bd_scanline_sweep > .bkd-layer::before {
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(74, 222, 128, 0.22) 0 1px, transparent 1px 4px);
}
.bkd-bd_scanline_sweep > .bkd-layer::after {
  background: linear-gradient(180deg, transparent 35%, rgba(134, 239, 172, 0.4) 50%, transparent 65%);
  animation: bkd-sweep-y 3.4s linear infinite;
}

/* ---- EPIC — layered scenes with their own weather ---- */
.bkd-bd_aurora_veil > .bkd-layer { background: linear-gradient(180deg, #030a18, #071427 70%, #02060f); }
.bkd-bd_aurora_veil > .bkd-layer::before {
  background: linear-gradient(74deg, transparent 20%, rgba(74, 222, 128, 0.38) 40%,
    rgba(56, 189, 248, 0.34) 55%, transparent 75%);
  animation: bkd-slide 9s ease-in-out infinite alternate;
}
.bkd-bd_aurora_veil > .bkd-layer::after {
  background: linear-gradient(96deg, transparent 25%, rgba(192, 132, 252, 0.3) 45%,
    rgba(45, 212, 191, 0.26) 62%, transparent 80%);
  animation: bkd-slide 13s ease-in-out infinite alternate-reverse;
}

.bkd-bd_starfall > .bkd-layer { background: radial-gradient(120% 140% at 50% 0%, #131a3a, #05070f 70%); }
.bkd-bd_starfall > .bkd-layer::before {
  background-image: radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent 60%),
    radial-gradient(1px 1px at 32% 62%, #dbeafe, transparent 60%),
    radial-gradient(1.5px 1.5px at 55% 28%, #fff, transparent 60%),
    radial-gradient(1px 1px at 72% 74%, #bfdbfe, transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 40%, #fff, transparent 60%),
    radial-gradient(1px 1px at 46% 88%, #e0e7ff, transparent 60%);
  background-size: 100% 50%; animation: bkd-fall 26s linear infinite;
}
.bkd-bd_starfall > .bkd-layer::after {
  background: repeating-linear-gradient(115deg, rgba(191, 219, 254, 0.55) 0 1px, transparent 1px 90px);
  background-size: 100% 50%; opacity: 0.6; animation: bkd-fall 2.2s linear infinite;
}

.bkd-bd_magma_vein > .bkd-layer { background: linear-gradient(150deg, #180806, #240a06 55%, #120504); }
.bkd-bd_magma_vein > .bkd-layer::before {
  inset: 0;
  background: repeating-linear-gradient(58deg, transparent 0 16px,
    rgba(239, 68, 68, 0.55) 16px 17px, rgba(251, 146, 60, 0.35) 17px 19px, transparent 19px 42px);
  animation: bkd-breathe 4.5s ease-in-out infinite;
}
.bkd-bd_magma_vein > .bkd-layer::after {
  background: radial-gradient(70% 120% at 35% 110%, rgba(251, 146, 60, 0.42), transparent 70%);
  animation: bkd-slide 15s ease-in-out infinite alternate;
}

.bkd-bd_prism_shift > .bkd-layer { background: linear-gradient(150deg, #101427, #1b1030 60%, #0b0d1c); }
.bkd-bd_prism_shift > .bkd-layer::before {
  background: linear-gradient(100deg, transparent 30%, rgba(248, 113, 113, 0.35) 40%,
    rgba(250, 204, 21, 0.35) 48%, rgba(74, 222, 128, 0.35) 56%,
    rgba(96, 165, 250, 0.35) 64%, rgba(217, 70, 239, 0.35) 72%, transparent 82%);
  animation: bkd-sweep 7s ease-in-out infinite;
}
.bkd-bd_prism_shift > .bkd-layer::after {
  inset: 0;
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 12px);
}

.bkd-bd_ghost_signal > .bkd-layer { background: linear-gradient(180deg, #0c1220, #070a12); }
.bkd-bd_ghost_signal > .bkd-layer::before {
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(34, 211, 238, 0.22) 0 2px,
    transparent 2px 9px, rgba(244, 63, 94, 0.18) 9px 11px, transparent 11px 18px);
  animation: bkd-jolt 3.2s steps(2, end) infinite;
}
.bkd-bd_ghost_signal > .bkd-layer::after {
  background: linear-gradient(180deg, transparent 44%, rgba(226, 232, 240, 0.28) 50%, transparent 56%);
  animation: bkd-sweep-y 5.5s linear infinite;
}

/* ---- LEGENDARY — the ones other players stop and ask about ---- */
.bkd-bd_gold_cascade > .bkd-layer { background: linear-gradient(150deg, #2a1e05, #3b2a07 55%, #1c1403); }
.bkd-bd_gold_cascade > .bkd-layer::before {
  background-image: radial-gradient(2px 3px at 14% 30%, #fde68a, transparent 65%),
    radial-gradient(2px 4px at 36% 72%, #fbbf24, transparent 65%),
    radial-gradient(1.5px 3px at 58% 22%, #fef3c7, transparent 65%),
    radial-gradient(2px 4px at 79% 66%, #f59e0b, transparent 65%),
    radial-gradient(1.5px 3px at 93% 36%, #fde68a, transparent 65%);
  background-size: 100% 50%; animation: bkd-fall 4.5s linear infinite;
}
.bkd-bd_gold_cascade > .bkd-layer::after {
  background: linear-gradient(105deg, transparent 38%, rgba(255, 236, 170, 0.45) 50%, transparent 62%);
  animation: bkd-sweep 6s ease-in-out infinite;
}

.bkd-bd_void_rift > .bkd-layer { background: radial-gradient(120% 160% at 50% 50%, #1a0730, #05020b 72%); }
.bkd-bd_void_rift > .bkd-layer::before {
  inset: 0;
  background: radial-gradient(38% 120% at 50% 50%, rgba(168, 85, 247, 0.42), transparent 70%);
  animation: bkd-breathe 5.5s ease-in-out infinite;
}
.bkd-bd_void_rift > .bkd-layer::after {
  inset: -80% -40%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(232, 121, 249, 0.3) 60deg,
    transparent 140deg, rgba(99, 102, 241, 0.28) 240deg, transparent 320deg);
  animation: bkd-turn 18s linear infinite;
}

.bkd-bd_solar_storm > .bkd-layer { background: linear-gradient(150deg, #3a1403, #521d05 50%, #2a0f02); }
.bkd-bd_solar_storm > .bkd-layer::before {
  background: radial-gradient(45% 110% at 28% 45%, rgba(251, 191, 36, 0.4), transparent 70%),
    radial-gradient(40% 100% at 72% 60%, rgba(239, 68, 68, 0.36), transparent 70%);
  animation: bkd-slide 8s ease-in-out infinite alternate;
}
.bkd-bd_solar_storm > .bkd-layer::after {
  background: linear-gradient(95deg, transparent 35%, rgba(255, 237, 213, 0.5) 48%, transparent 60%);
  animation: bkd-sweep 3.8s ease-in-out infinite;
}

.bkd-bd_chrome_dream > .bkd-layer { background: linear-gradient(150deg, #151a22, #232b38 55%, #0f131a); }
.bkd-bd_chrome_dream > .bkd-layer::before {
  inset: -80% -40%;
  background: conic-gradient(from 210deg, #cbd5e1, #64748b 15%, #e2e8f0 30%, #94a3b8 48%,
    #f1f5f9 62%, #7dd3fc 74%, #cbd5e1 88%, #cbd5e1);
  opacity: 0.26; animation: bkd-turn 22s linear infinite;
}
.bkd-bd_chrome_dream > .bkd-layer::after {
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.34) 50%, transparent 60%);
  animation: bkd-sweep 5s ease-in-out infinite;
}

.bkd-bd_event_bloom > .bkd-layer { background: radial-gradient(130% 150% at 50% 55%, #0b2438, #04101b 70%); }
.bkd-bd_event_bloom > .bkd-layer::before {
  inset: 0;
  background: radial-gradient(circle at 50% 55%, transparent 0 28%,
    rgba(34, 211, 238, 0.45) 28% 31%, transparent 31% 52%,
    rgba(45, 212, 191, 0.32) 52% 55%, transparent 55%);
  animation: bkd-bloom 4.2s ease-out infinite;
}
.bkd-bd_event_bloom > .bkd-layer::after {
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(125, 211, 252, 0.35) 0 12%, transparent 45%);
  animation: bkd-breathe 4.2s ease-in-out infinite;
}

/* ---- shop tile ---- */
.bkd-tier-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 18px 0 10px;
}
.bkd-tier-tag { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; }
.bkd-tier-sub { font-size: 0.74rem; color: var(--muted); }
.shop-bkd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.shop-bkd-card {
  display: flex; flex-direction: column; gap: 9px; padding: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.shop-bkd-card.is-equipped { border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.06); }
.shop-bkd-card .theme-act { width: 100%; }
.bkd-demo {
  display: flex; align-items: center; gap: 10px; min-height: 64px;
  padding: 12px; border-radius: 14px; overflow: hidden;
}
.bkd-demo-av {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, #3b3452, #16121f);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.bkd-demo-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bkd-demo-text b {
  font-size: 0.76rem; font-weight: 800; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bkd-demo-text i {
  font-style: normal; font-size: 0.7rem; color: rgba(255, 255, 255, 0.82);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .has-bkd > .bkd-layer,
  .has-bkd > .bkd-layer::before,
  .has-bkd > .bkd-layer::after { animation: none; }
}

/* ===== The Loan Shark =====================================================
   A lobby panel, not a page: three deals for today, the risk attached to
   each one, and whatever is still hanging over the player underneath.
   NB the [hidden] rules below are deliberate and scoped — these elements
   are given a display by their own class, which would otherwise beat the
   bare `hidden` attribute and leave the panel on screen while it is shut. */
.ls-panel {
  display: block;
  margin: 0 0 28px;
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(220, 38, 38, 0.32);
  background:
    radial-gradient(120% 140% at 8% -10%, rgba(127, 29, 29, 0.42), transparent 62%),
    linear-gradient(180deg, #0f0b12 0%, #0a0810 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ls-panel[hidden], .ls-note[hidden], .ls-effects[hidden] { display: none; }

.ls-head {
  display: flex; gap: 18px; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 18px;
}
.ls-head h3 { margin: 6px 0 6px; font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.ls-eyebrow {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: #fca5a5; font-weight: 800;
}
.ls-sub { margin: 0; max-width: 62ch; color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.ls-clock { text-align: right; display: grid; gap: 6px; justify-items: end; }
.ls-unit {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.12);
  color: #fde68a; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em;
}
.ls-turns { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); }
.ls-turns b { color: #fff; font-variant-numeric: tabular-nums; }

.ls-note {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
}
.ls-note.good { border-color: rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.1); }
.ls-note.bad  { border-color: rgba(220, 38, 38, 0.45); background: rgba(220, 38, 38, 0.1); }

.ls-deals { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .ls-deals { grid-template-columns: 1fr; } }

.ls-deal {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.ls-deal.t-uncommon { border-color: rgba(34, 197, 94, 0.35); }
.ls-deal.t-rare     { border-color: rgba(96, 165, 250, 0.38); }
.ls-deal.t-brutal   { border-color: rgba(239, 68, 68, 0.45); }
.ls-deal h4 { margin: 0; font-size: 1.12rem; }
.ls-rarity {
  align-self: flex-start; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.16em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.t-uncommon .ls-rarity { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.t-rare .ls-rarity     { background: rgba(96, 165, 250, 0.16); color: #bfdbfe; }
.t-brutal .ls-rarity   { background: rgba(239, 68, 68, 0.18); color: #fecaca; }
.ls-pitch { margin: 0; font-size: 0.86rem; color: rgba(255, 255, 255, 0.66); }

.ls-block { border-radius: 11px; padding: 11px 12px; font-size: 0.84rem; }
.ls-block b { display: block; font-size: 0.68rem; letter-spacing: 0.14em; margin-bottom: 6px; }
.ls-benefit {
  border: 1px solid rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.09);
  color: #dcfce7;
}
.ls-benefit b { color: #86efac; }
.ls-risk {
  border: 1px solid rgba(239, 68, 68, 0.32); background: rgba(239, 68, 68, 0.09);
  color: #fee2e2;
}
.ls-risk b { color: #fca5a5; }
.ls-odds { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.ls-odds li { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.ls-odds span { color: rgba(255, 255, 255, 0.62); }
.ls-odds.dud b { color: #fca5a5; }

.ls-fee {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.66); margin-top: auto;
}
.ls-fee b { font-size: 1.02rem; color: #fff; font-variant-numeric: tabular-nums; }
.ls-deal .btn { width: 100%; justify-content: center; }

.ls-effects { display: block; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.ls-effects h4 { margin: 0 0 10px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fca5a5; }
/* MASO+ entitlement cosmetics, shared by Chat, Live Wins and Scrap Pusher.
   Keep the badge outside themed names so their clipping/ornaments stay intact. */
.maso-plus-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-inline-start: 4px;
  padding: 2px 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: linear-gradient(145deg, #241337, #18263c) padding-box,
    linear-gradient(115deg, #47d9ff, #a96aff 52%, #ff69c7) border-box;
  color: #faf4ff;
  -webkit-text-fill-color: #faf4ff;
  font-family: system-ui, sans-serif;
  font-size: 10px;
  font-weight: 950;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -.35px;
  white-space: nowrap;
  vertical-align: middle;
  text-shadow: -1px 0 3px #479de8, 1px 0 3px #ca5cab;
  box-shadow: inset 0 0 6px rgba(115, 205, 255, .3),
    0 0 7px rgba(71, 217, 255, .65), 0 0 15px rgba(255, 105, 199, .45);
  animation: maso-plus-neon-flicker 6.5s linear infinite;
}
/* Brighter electrical streaks leave the corners, never cover the lettering.
   Offset bursts remain local to the badge; no rapid flashing or layout shifts. */
.maso-plus-badge::before,
.maso-plus-badge::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to top, transparent, #47d9ff 45%, #fff 85%);
  box-shadow: 0 0 5px #47d9ff, 0 0 10px rgba(71, 217, 255, .75),
    4px 3px 0 -1px #d9f8ff, -3px 5px 0 -1px #47d9ff;
  --maso-spark-x: -11px;
  --maso-spark-angle: -35deg;
  animation: maso-plus-neon-spark 4.8s linear infinite;
  animation-delay: -1s;
}
.maso-plus-badge::before {
  top: 1px;
  left: 2px;
}
.maso-plus-badge::after {
  right: 2px;
  bottom: 1px;
  background: linear-gradient(to top, transparent, #ff69c7 45%, #fff 85%);
  box-shadow: 0 0 5px #ff69c7, 0 0 10px rgba(255, 105, 199, .75),
    -4px 3px 0 -1px #ffe0f3, 3px 5px 0 -1px #ff69c7;
  --maso-spark-x: 11px;
  --maso-spark-angle: 35deg;
  animation-duration: 5.6s;
  animation-delay: -3.2s;
}
@keyframes maso-plus-neon-flicker {
  0%, 28%, 35%, 72%, 79%, 100% { opacity: 1; }
  30%, 74% {
    opacity: .6;
    box-shadow: inset 0 0 3px rgba(115, 205, 255, .12),
      0 0 2px rgba(71, 217, 255, .25), 0 0 4px rgba(255, 105, 199, .15);
  }
  33%, 77% {
    opacity: 1;
    box-shadow: inset 0 0 8px rgba(115, 205, 255, .5),
      0 0 10px rgba(71, 217, 255, .9), 0 0 20px rgba(255, 105, 199, .65);
  }
}
@keyframes maso-plus-neon-spark {
  0%, 24%, 42%, 100% { opacity: 0; }
  24% { transform: translate(0, 0) rotate(var(--maso-spark-angle)) scale(.45); }
  28% { opacity: 1; transform: translate(0, -2px) rotate(var(--maso-spark-angle)) scale(1); }
  34% { opacity: .9; }
  42% { transform: translate(var(--maso-spark-x), -14px) rotate(var(--maso-spark-angle)) scale(.25); }
}
/* Only reward words receive this liquid sweep, never the winner's name.
   Specificity beats the existing gold/green reward rules without touching them. */
.win-ticker .titem b.maso-plus-reward,
.rw-row .rw-amt.maso-plus-reward,
.win-player .win-reward.maso-plus-reward {
  color: #69d9ff;
  /* A 200px periodic tile: identical blue edges, horizontal gradient,
     and exactly one tile of travel make the loop reset visually identical.
     Flat blue edge stops also avoid a slope kink where tiles meet. */
  background-image: linear-gradient(90deg, #39baff 0%, #39baff 5%,
    #94edff 20%, #779aff 34%, #f174d9 47%, #ff4cae 58%,
    #b5dfff 78%, #39baff 95%, #39baff 100%);
  background-size: 200px 100%;
  background-repeat: repeat-x;
  background-position: 0 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: maso-plus-liquid 1.35s linear infinite;
}
@keyframes maso-plus-liquid {
  from { background-position: 0 50%; }
  to { background-position: -200px 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .maso-plus-badge,
  .maso-plus-badge::before,
  .maso-plus-badge::after {
    animation: none;
  }
  .maso-plus-badge { opacity: 1; }
  .maso-plus-badge::before,
  .maso-plus-badge::after { display: none; }
  .win-ticker .titem b.maso-plus-reward,
  .rw-row .rw-amt.maso-plus-reward,
  .win-player .win-reward.maso-plus-reward {
    animation: none;
    background-size: 100% 100%;
    background-position: 50% 50%;
  }
}

.ls-effects ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ls-effects li {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 11px; font-size: 0.86rem;
  border: 1px solid rgba(239, 68, 68, 0.26); background: rgba(239, 68, 68, 0.07);
  color: #fee2e2;
}
.ls-effects li i { font-style: normal; color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; }
