:root {
  --bg: #191919;
  --ink: #f4f4f5;
  --muted: #9a9a9a;
  --line: rgba(255,255,255,.08);
  --card: #232323;
  --panel: #1d1d1d;
  --pill: #2a2a2a;
  --green: #3ecf8e;
  --green-ink: #06281a;
  --sale: #4ade80;
  --font: "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --radius: 18px;
  --frame: 1180px;
}
.theme-light {
  --bg: #ececec;
  --ink: #171717;
  --muted: #6b6b6b;
  --line: rgba(0,0,0,.08);
  --card: #ffffff;
  --panel: #f6f6f6;
  --pill: #ececec;
  --green-ink: #08301c;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { color-scheme: dark; }
html.theme-light { color-scheme: light; }
body {
  font: 15px/1.45 var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1.2px);
  background-size: 22px 22px;
  transition: background-color .28s ease, color .28s ease;
}
.theme-light body, body.theme-light {
  background-image: radial-gradient(rgba(0,0,0,.06) 1px, transparent 1.2px);
}
button, input, select, a.steam {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
input, select { outline: none; }
img { max-width: 100%; }

.frame {
  max-width: var(--frame);
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  background: #141414;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}
.theme-light .mark {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: none;
}
.mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  display: block;
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a, .main-nav button {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.main-nav svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}
.main-nav a.current, .main-nav a:hover, .main-nav button:hover,
.main-nav button.current {
  background: var(--pill);
  color: var(--ink);
}
.main-nav a.has-spin::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px var(--bg);
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.steam, .buy, .ghost, .pill {
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}
.steam.slim { padding: 8px 14px; }
.theme-light .steam, .theme-light .ghost { background: #111; color: #fff; }
.buy { background: #fff; color: #111; }
.ghost { background: var(--pill); color: var(--ink); }
.wallet-chip { display: flex; align-items: center; gap: 6px; }
.topup-plus {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #1f3d32;
  color: #4ade80;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  display: grid;
  place-items: center;
}
.topup-plus:hover { background: #245043; }
.theme-light .topup-plus { background: #d7f5e6; color: #047857; }
.bal-chip {
  height: 34px;
  min-width: 58px;
  padding: 0 10px;
  border-radius: 10px;
  background: #2a2a2a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.theme-light .bal-chip { background: #ececec; color: #111; }
.bal-chip .coin-svg, .coin-ico .coin-svg {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
  color: currentColor;
  opacity: .92;
}
.avatar-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #2a2a2a;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.avatar-btn img { width: 34px; height: 34px; object-fit: cover; display: block; }
.user-drop .menu { left: auto; right: 0; min-width: 228px; padding: 10px 8px; }
.user-name {
  padding: 4px 10px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.user-sid {
  padding: 2px 10px 10px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.user-menu a, .user-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.user-menu svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: .72; }
.cart-chip {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--pill);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
}
.hidden { display: none !important; }
.drop { position: relative; }
.drop:hover .menu, .drop:focus-within .menu, .drop.open .menu { display: grid; }
.menu {
  display: none;
  position: absolute;
  top: 118%;
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  z-index: 40;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--pill); }

#view {
  min-width: 0;
  overflow-x: hidden;
  padding: 0 0 48px;
}
.hero, .page-pad, .store-hero { padding: 48px 32px 28px; }
.hero { text-align: center; }
.hero h1, .page-pad h1, .page-pad h2.center {
  margin: 0 0 10px;
  font-size: 42px;
  letter-spacing: -.03em;
}
.lede { color: var(--muted); max-width: 520px; margin: 0 auto 22px; }
.cta-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-actions { margin-top: 18px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 28px 28px;
}
.stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 112px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 20px 14px 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.stat:hover { border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
.stat-art {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left top;
  margin: -6px 4px -6px -4px;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: .82;
}
.theme-dark .stat-art {
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: .62;
}
.stat-copy { min-width: 0; }
.stat b {
  display: block;
  font-size: 26px;
  margin-top: 2px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--muted); font-size: 13px; }
.stat small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.store-hero {
  position: relative;
  min-height: 440px;
  padding: 48px 32px 36px;
  overflow: hidden;
}
.store-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.store-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.store-copy p { color: var(--muted); max-width: 520px; }
.store-shine {
  display: inline-block;
  margin: 8px 0 18px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  background-image: linear-gradient(120deg, transparent 40%, var(--ink) 50%, transparent 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: store-shine 5s linear infinite;
}
.store-shine b {
  font-weight: 650;
  color: inherit;
}
@keyframes store-shine {
  0% { background-position: 100% center; }
  100% { background-position: -100% center; }
}
.store-mosaic {
  position: absolute;
  inset: 0 0 0 28%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 42%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 42%);
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(70% 110% at 8% 8%, transparent 55%, #000 92%);
  mask-image: radial-gradient(70% 110% at 8% 8%, transparent 55%, #000 92%);
}
.store-cell {
  min-height: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.store-cell:nth-child(18n) { border-right: 0; }
.store-cell:nth-child(n+127) { border-bottom: 0; }
.store-tile {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 3px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  cursor: pointer;
  pointer-events: auto;
  animation: mosaic-in .5s ease both;
}
.store-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(.85) brightness(1.15);
}
.theme-dark .store-tile img { filter: none; }
.store-mark {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  transform: rotate(5deg);
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  z-index: 2;
}
.store-mark svg { width: 14px; height: 14px; display: block; }
.store-mark.zap { background: rgba(132, 204, 22, .28); color: #84cc16; }
.store-mark.star { background: rgba(234, 179, 8, .28); color: #eab308; }
.store-mark.fire { background: rgba(249, 115, 22, .28); color: #f97316; }
@keyframes mosaic-in {
  from { opacity: 0; transform: scale(.82); }
  to { opacity: 1; transform: none; }
}
.stripe {
  height: 28px;
  background: repeating-linear-gradient(-45deg, transparent, transparent 8px, var(--line) 8px, var(--line) 9px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 8;
}
.toolbar-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seg { display: flex; background: var(--pill); border-radius: 999px; padding: 3px; }
.seg button, .icon-btn {
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-weight: 600;
}
.seg button.active, .icon-btn.active { background: var(--card); color: var(--ink); }
.tools { display: flex; gap: 8px; align-items: center; }
.tools .icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  background: var(--pill);
  display: grid;
  place-items: center;
}
.tools .icon-btn svg { width: 18px; height: 18px; display: block; }
.tools .icon-btn.active { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cat-drop { position: relative; }
.cat-btn {
  height: 40px;
  padding: 0 12px 0 10px;
  border-radius: 12px;
  background: var(--pill);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  min-width: 108px;
}
.cat-btn svg { width: 18px; height: 18px; display: block; flex: 0 0 auto; }
.cat-btn span { color: var(--ink); font-weight: 600; }
.cat-chev { width: 14px !important; height: 14px !important; margin-left: auto; opacity: .7; }
.cat-drop.open .cat-btn { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cat-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 6px;
  border-radius: 14px;
  background: #2b2b2b;
  box-shadow: 0 16px 40px rgba(0,0,0,.42);
  z-index: 40;
}
.theme-light .cat-menu { background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.cat-drop.open .cat-menu { display: block; }
.cat-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 500;
  text-align: left;
}
.cat-opt svg { width: 18px; height: 18px; color: #9a9a9a; flex: 0 0 auto; }
.theme-light .cat-opt svg { color: #6b6b6b; }
.cat-opt span { flex: 1; }
.cat-check { width: 16px !important; height: 16px !important; color: #9a9a9a !important; }
.cat-opt:hover, .cat-opt.on { background: rgba(255,255,255,.06); }
.theme-light .cat-opt:hover, .theme-light .cat-opt.on { background: rgba(0,0,0,.05); }

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px 10px;
  padding: 0 28px 20px;
}
.product {
  background: transparent;
  border-radius: 16px;
  padding: 10px 8px 14px;
  display: grid;
  gap: 8px;
  position: relative;
  text-align: left;
  min-height: 210px;
}
.product:hover { background: color-mix(in srgb, var(--card) 70%, transparent); }
.product .off {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 1;
  box-shadow: 0 6px 12px rgba(0,0,0,.25);
}
.theme-dark .product .off { background: rgba(34, 197, 94, .22); color: #4ade80; }
.product .off svg { width: 12px; height: 12px; display: block; }
.product .art {
  height: 148px;
  display: grid;
  place-items: center;
  margin: 0 2px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.product img { width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.28)); }
.bp-art {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--s, 118px);
  height: var(--s, 118px);
}
.bp-art::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,248,235,.14), transparent 40%),
    repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(201,162,39,.13) 12px),
    repeating-linear-gradient(90deg, transparent, transparent 11px, rgba(201,162,39,.08) 12px),
    #2a2418;
  box-shadow: inset 0 0 0 1px rgba(232, 197, 120, .38);
}
.bp-art img, .bp-art .badge-art {
  position: relative;
  z-index: 1;
  width: calc(var(--s, 118px) * 0.78);
  height: calc(var(--s, 118px) * 0.78);
}
.bp-mark {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #1a140c;
  background: #e8c578;
  padding: 2px 5px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,.3);
}
.product .bp-art img { width: calc(var(--s, 118px) * 0.78); height: calc(var(--s, 118px) * 0.78); }
.badge-art {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  font-weight: 800;
  letter-spacing: .04em;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 40%), var(--c, #c62828);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.12);
}
.badge-art small { display: block; font-size: 12px; opacity: .9; }
.product .meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.meta-copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
.product .name { font-size: 14px; font-weight: 700; text-align: left; line-height: 1.25; }
.product .desc {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product .price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 14px;
  color: #4ade80;
}
.product .price s { color: var(--muted); font-weight: 500; }
.product .price .coin-svg { width: 13px; height: 13px; color: currentColor; }
.cart-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--pill);
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: 0 0 auto;
}
.cart-btn svg { width: 18px; height: 18px; display: block; }
.cart-btn:hover { color: var(--ink); }

.servers-head { text-align: center; padding: 48px 32px 18px; }
.servers-head p { color: var(--muted); margin: 6px 0 0; }
.mode-row { display: flex; justify-content: center; gap: 8px; margin: 0 auto 22px; width: max-content; }
.server-board {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 0 28px 28px;
}
.server-card {
  flex: 0 1 280px;
  width: min(320px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 10px;
  transition: transform .18s ease, border-color .18s ease;
}
.server-card:hover { transform: translateY(-2px); }
.server-card h3 { margin: 0; font-size: 15px; line-height: 1.25; }
.server-kind { color: var(--muted); font-weight: 600; font-size: 13px; }
.server-logo {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
}
.server-logo img {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}
.server-logo .glow {
  position: absolute;
  inset: -2px;
  z-index: 0;
  filter: blur(14px);
  opacity: .8;
  pointer-events: none;
}
.theme-light .server-logo {
  background: #111;
}
.theme-light .server-logo img:not(.glow) {
  padding: 5px;
  box-sizing: border-box;
}
.theme-light .server-logo .glow {
  opacity: 0;
}
.server-logo .dot { width: 44px; height: 44px; }
.dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 18px var(--c);
  background: radial-gradient(circle at 35% 30%, #fff, var(--c) 55%, #111);
}
.server-top { display: flex; gap: 12px; align-items: center; }
.bar { height: 7px; background: #111; border-radius: 99px; overflow: hidden; }
.theme-light .bar { background: #e5e5e5; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--c), #fff); }
.server-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.server-shop {
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--pill);
  color: var(--ink);
  font-weight: 700;
  font-size: 11px;
}
.server-addr {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
}
.server-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.server-join, .server-copy {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 8px 10px;
  font-size: 12px;
}
.server-join[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
}
.online-count.live::before,
.online-count.off::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.online-count.live::before { background: #22c55e; }
.online-count.off::before { background: #737373; }
.home-cal {
  position: relative;
  display: block;
  margin: 0 28px 18px;
  min-width: 0;
  max-width: calc(100% - 56px);
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
}
.home-cal .wipe-cal {
  width: 100%;
  min-width: 0;
  padding: 10px 4px 12px;
  margin: 0;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 72px), transparent);
}
.home-cal .wipe-cal::-webkit-scrollbar { display: none; }
.home-cal-hint {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(6px);
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.home-cal:hover .home-cal-hint,
.home-cal:focus-visible .home-cal-hint {
  opacity: 1;
}
.home-cal:hover .wipe-cal,
.home-cal:focus-visible .wipe-cal {
  -webkit-mask-image: none;
  mask-image: none;
}
.wipe-link {
  display: block;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0 28px;
}

.live-drop {
  display: flex;
  align-items: stretch;
  min-height: 132px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 55%, transparent);
}
.live-drop-label {
  width: 72px;
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--ink);
  position: relative;
  writing-mode: horizontal-tb;
}
.live-drop-label span {
  display: block;
  writing-mode: horizontal-tb;
  transform: none;
  white-space: normal;
}
.live-drop-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #ef4444;
}
.live-drop-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px 12px 4px;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.live-drop-track::-webkit-scrollbar { display: none; }
.live-empty {
  margin: auto 12px;
  color: var(--muted);
  font-size: 13px;
}
.live-card {
  width: 108px;
  flex: 0 0 auto;
  background: #262626;
  border-radius: 14px;
  padding: 10px 8px 8px;
  text-align: center;
  position: relative;
}
.theme-light .live-card { background: #fff; box-shadow: 0 1px 0 var(--line); }
.live-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #64748b;
}
.live-card.uncommon::before { background: #22c55e; }
.live-card.rare::before { background: #3b82f6; }
.live-card.epic::before { background: #a855f7; }
.live-card.mythic::before { background: #f59e0b; }
.live-player {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 2px auto 4px;
  display: block;
}
.live-card b {
  display: block;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-qty { font-size: 11px; color: var(--muted); }
.wheel-page { text-align: center; padding: 36px 20px 48px; }
.wheel-page h1 { margin: 0 0 8px; font-size: 38px; letter-spacing: -.03em; font-weight: 700; }
.wheel-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.wheel-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.spin-btn, .spin-buy {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--pill);
  color: var(--ink);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.spin-btn svg, .spin-buy svg { width: 16px; height: 16px; display: block; }
.spin-buy .coin-svg { width: 15px; height: 15px; }
.spin-btn:disabled, .spin-buy:disabled { opacity: .42; cursor: default; }
.strip {
  display: flex;
  gap: 10px;
  justify-content: center;
  overflow: hidden;
  padding: 18px 0 8px;
}
.wheel-window {
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin: 28px auto 8px;
  padding: 18px 0 8px;
  background: transparent;
  border: 0;
}
.wheel-window::before,
.wheel-window::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 88px;
  z-index: 2;
  pointer-events: none;
}
.wheel-window::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.wheel-window::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.wheel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: 2px;
  height: 14px;
  transform: translateX(-50%);
  background: #d4d4d8;
  border-radius: 2px;
}
.wheel-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 10px 48px 6px;
  will-change: transform;
}
.strip .prize, .wheel-track .prize {
  width: 86px;
  min-height: 96px;
  background: #262626;
  border: 0;
  border-radius: 16px;
  padding: 14px 8px 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted);
  flex: 0 0 auto;
  position: relative;
}
.theme-light .strip .prize, .theme-light .wheel-track .prize, .theme-light .w-prize { background: #fff; }
.strip .prize::before, .wheel-track .prize::before, .w-prize::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 28px;
  height: 4px;
  border-radius: 99px;
  transform: translateX(-50%);
  background: #64748b;
}
.strip .prize.uncommon::before, .wheel-track .prize.uncommon::before, .w-prize.uncommon::before { background: #22c55e; }
.strip .prize.rare::before, .wheel-track .prize.rare::before, .w-prize.rare::before { background: #3b82f6; }
.strip .prize.epic::before, .wheel-track .prize.epic::before, .w-prize.epic::before { background: #a855f7; }
.strip .prize.mythic::before, .wheel-track .prize.mythic::before, .w-prize.mythic::before { background: #f59e0b; }
.wheel-track .prize.win,
.w-prize.win {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.55);
}
.strip img, .wheel-grid img, .wheel-track img, .w-prize img { width: 48px; height: 48px; object-fit: contain; }
.wheel-split {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 28px auto 8px;
  color: var(--muted);
  font-size: 14px;
}
.wheel-split::before, .wheel-split::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.wheel-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  padding: 12px 32px 10px;
  max-width: 920px;
  margin: 0 auto;
}
.w-prize {
  background: #262626;
  border-radius: 16px;
  padding: 18px 8px 10px;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 108px;
  position: relative;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.wheel-faq-title {
  margin: 36px auto 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.home-support {
  text-align: center;
  padding: 48px 32px 64px;
  border-top: 1px solid var(--line);
}
.home-support h2 {
  margin: 0 auto 22px;
  max-width: 760px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.18;
}
.home-support h2 .ask { color: var(--muted); }
.home-support-ico {
  width: 34px;
  height: 34px;
  display: inline-block;
  vertical-align: -6px;
  margin: 0 8px;
  color: #22c55e;
}
.home-support-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.home-support-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.home-support-links svg {
  width: 16px;
  height: 16px;
  display: block;
}
.theme-light .home-support-links a {
  background: #111;
  color: #fff;
}
.faq { max-width: 640px; margin: 0 auto; text-align: left; padding-bottom: 8px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  margin-bottom: 8px;
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  cursor: pointer;
  padding: 12px 14px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; }
.faq p { margin: 0; padding: 0 14px 14px 40px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.wipe-hero {
  text-align: center;
  padding: 48px 32px 28px;
}
.wipe-hero h1 { margin: 0 0 8px; font-size: 36px; letter-spacing: -.03em; }
.wipe-hero .lede { margin: 0 auto; max-width: 520px; }
.wipe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 32px 18px;
}
.wipe-empty { grid-column: 1 / -1; text-align: center; }
.wipe-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 18px 16px;
}
.wipe-card h2 { margin: 0 0 14px; font-size: 20px; }
.clock {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 0;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
}
.clock-box {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, #111 88%, var(--card));
  color: #fff;
  border-radius: 14px;
  padding: 12px 4px 10px;
  text-align: center;
  overflow: hidden;
}
.clock-box b {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.clock-box small {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a3a3a3;
}
.clock-box::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 42%;
  height: 1px;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.clock i {
  width: 1px;
  height: 28px;
  margin: 0 6px;
  background: var(--line);
  border-radius: 99px;
  position: relative;
}
.clock i::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  transform: translate(-50%, -50%);
}
.theme-light .clock-box { background: #171717; color: #fff; }
.wipe-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
}
.wipe-foot b { display: block; font-size: 13px; }
.wipe-foot span { color: var(--muted); font-size: 12px; }
.chips-inline { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; box-shadow: 0 0 10px var(--c); background: var(--c); }
.wipe-cal {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 8px 32px 28px;
  scrollbar-width: thin;
}
.wipe-day {
  position: relative;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 64px;
  border: 1px dashed transparent;
  border-radius: 14px;
  color: var(--muted);
  padding-top: 10px;
}
.wipe-day small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wipe-day b { font-size: 18px; color: var(--ink); }
.wipe-day.today { border-color: var(--line); background: var(--card); }
.wipe-day-dots {
  position: absolute;
  top: 4px;
  display: flex;
  gap: 3px;
}
.wipe-day-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 6px var(--c);
}
.wipe-faq {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) 1.2fr;
  gap: 28px 48px;
  align-items: start;
  padding: 28px 32px 64px;
}
.wipe-faq h2 {
  margin: 0;
  font-size: 42px;
  line-height: .95;
  letter-spacing: -.04em;
}
.wipe-faq .faq { margin: 0; max-width: none; }

.help-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 70vh;
  border-top: 1px solid var(--line);
}
.help-side {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
}
.help-side h6 { margin: 14px 8px 6px; color: var(--muted); letter-spacing: .12em; font-size: 11px; }
.help-side a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}
.help-side a.current, .help-side a:hover { background: var(--pill); }
.help-body { padding: 32px 36px 48px; }
.help-body h1 { margin: 0 0 10px; }
.help-lede { color: var(--muted); line-height: 1.65; max-width: 62ch; margin: 0 0 22px; }
.help-body h3 { margin: 0 0 6px; font-size: 15px; }
.help-body h4 { margin: 28px 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.help-body p, .help-body li { line-height: 1.65; }
.help-body ul, .help-body ol { margin: 0 0 16px; padding-left: 20px; }
.help-body a { color: inherit; }
.help-body code { background: var(--pill); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.help-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.help-cards a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.help-cards a:hover { background: var(--pill); }
.help-seg { width: max-content; margin: 0 0 18px; }
.help-feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 10px 0;
}
.help-feature p { margin: 0; color: var(--muted); }
.help-faq { max-width: none; margin: 22px 0 0; text-align: left; }
.bonus-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.bonus-table th, .bonus-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.bonus-table td.ok { color: var(--sale); font-weight: 700; }

.cart-page { padding: 32px; }
.cart-list { display: grid; gap: 10px; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border-radius: 16px;
  padding: 10px;
}
.cart-item img, .cart-item .badge-art { width: 56px; height: 56px; }

.player-page { padding: 0 0 36px; }
.player-banner {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.player-banner .store-mosaic {
  inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.player-banner .store-tile { pointer-events: none; cursor: default; }
.player-ava {
  position: relative;
  z-index: 3;
  width: 84px;
  height: 84px;
  margin: -44px auto 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid var(--bg);
  background: #2a2a2a;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 28px;
}
.player-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-body { padding: 0 32px 8px; }
.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.player-head h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.player-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.player-actions .steam.slim {
  background: #fff;
  color: #111;
}
.theme-light .player-actions .steam.slim { background: #111; color: #fff; }
.player-actions .ghost.slim, .player-actions .steam.slim {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
}
.steam-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
}
.steam-check svg { width: 10px; height: 10px; display: block; }
.player-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 6%, var(--panel));
  margin-bottom: 8px;
}
.player-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.player-tabs a svg { width: 16px; height: 16px; }
.player-tabs a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.player-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 18px;
}
.player-bal { padding: 22px 8px 22px 0; }
.player-bal + .player-bal { padding-left: 28px; border-left: 1px solid var(--line); }
.player-bal small { color: var(--muted); font-size: 13px; }
.player-bal .val {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 6px 0 14px;
}
.player-bal .val svg { width: 22px; height: 22px; }
.player-bal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.player-bal-actions .ghost, .player-bal-actions .steam {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
}
.player-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.player-meta small { color: var(--muted); display: block; margin-bottom: 8px; font-size: 13px; }
.player-meta b { font-size: 15px; font-weight: 600; }
.sid-row { display: inline-flex; align-items: center; gap: 8px; }
.copy-id {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.copy-id svg { width: 16px; height: 16px; }
.copy-id:hover { background: var(--pill); color: var(--ink); }
.player-section { margin: 18px 0 6px; font-size: 16px; }
.player-note { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.tab-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
}
.player-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.player-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}
.player-table td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.player-table th:last-child, .player-table td:last-child { text-align: right; }
.player-prod { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.player-prod img, .player-prod .badge-art { width: 40px; height: 40px; object-fit: contain; }
.player-prod .bp-art { width: 40px; height: 40px; }
.player-prod .bp-art img, .player-prod .bp-art .badge-art { width: 30px; height: 30px; }
.player-prod .bp-mark { font-size: 8px; padding: 1px 4px; right: 1px; bottom: 1px; }
.player-prod small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 2px; }
.player-del {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--pill);
  color: var(--ink);
  font-weight: 600;
}
.player-del svg { width: 16px; height: 16px; }
.player-sum {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 18px 0 8px;
}
.player-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.pager-btns { display: flex; gap: 6px; }
.pager-btns button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--pill);
  color: var(--muted);
  display: grid;
  place-items: center;
}
.pager-btns button:disabled { opacity: .4; }
.player-empty {
  text-align: center;
  padding: 72px 16px 48px;
}
.player-empty .empty-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--pill);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.player-empty .empty-ico svg { width: 22px; height: 22px; }
.player-empty h3 { margin: 0 0 6px; font-size: 18px; }
.player-empty p { margin: 0 0 18px; color: var(--muted); }
.player-empty .steam, .player-empty .ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.player-guest { padding: 80px 32px; text-align: center; }
.player-guest p { color: var(--muted); }

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.site-foot strong { color: var(--ink); }
.legal-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.legal-links a { color: inherit; }
.foot-tools { display: flex; gap: 10px; align-items: center; }
.foot-tools a.soc {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: none;
  border: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #f4f4f5;
}
.foot-tools a.soc.tg { background: #2a2a2a; }
.foot-tools a.soc svg { width: 22px; height: 22px; display: block; }
.foot-tools a.soc.ds svg { width: 24px; height: 24px; }
.theme-light .foot-tools a.soc { color: #171717; }
.theme-light .foot-tools a.soc.tg { background: #e8e8e8; }
.lang-drop { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 8px 0 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 8%, var(--panel));
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  min-width: 132px;
  cursor: pointer;
}
.lang-btn:hover { background: color-mix(in srgb, var(--ink) 16%, transparent); }
.lang-drop.open .lang-btn { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.lang-flag-wrap { width: 22px; height: 15px; display: grid; place-items: center; flex: 0 0 auto; }
.lang-flag { width: 22px; height: 15px; display: block; border-radius: 3px; overflow: hidden; }
.lang-chev { width: 14px; height: 14px; margin-left: auto; opacity: .65; flex: 0 0 auto; }
.lang-drop.open .lang-chev { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 188px;
  padding: 6px;
  border-radius: 14px;
  background: #2b2b2b;
  box-shadow: 0 16px 40px rgba(0,0,0,.42);
  z-index: 40;
}
.theme-light .lang-menu { background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.lang-drop.open .lang-menu { display: block; }
.lang-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.lang-opt .lang-flag { flex: 0 0 auto; }
.lang-opt span { flex: 1; }
.lang-opt:hover, .lang-opt.on { background: rgba(255,255,255,.06); }
.theme-light .lang-opt:hover, .theme-light .lang-opt.on { background: rgba(0,0,0,.05); }
.lang-check { width: 16px; height: 16px; color: #9a9a9a; flex: 0 0 auto; }
.theme-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 68px;
  height: 36px;
  padding: 2px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 8%, var(--panel));
  color: color-mix(in srgb, var(--ink) 38%, transparent);
  flex: 0 0 auto;
}
.theme-switch:hover { background: color-mix(in srgb, var(--ink) 16%, transparent); }
.theme-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 1px 4px rgba(0,0,0,.28);
  transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.theme-dark .theme-knob { transform: translateX(32px); }
.theme-ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100%;
  pointer-events: none;
  transition: color .25s ease;
}
.theme-ico svg { width: 16px; height: 16px; display: block; }
.theme-light .theme-ico.sun,
.theme-dark .theme-ico.moon { color: var(--ink); }

.sheet {
  border: 0;
  border-radius: 22px;
  width: min(420px, 92vw);
  padding: 18px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.sheet.wide { width: min(720px, 94vw); }
.sheet::backdrop { background: rgba(0,0,0,.62); }
.sheet h2 { margin: 0 0 10px; font-size: 20px; }
.product-sheet { width: min(460px, 94vw); padding: 12px 14px 14px; overflow: hidden; }
.product-sheet.item-card { width: min(400px, 94vw); padding: 14px; border-radius: 22px; }
.p-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}
.item-card .p-head {
  grid-template-columns: auto 1fr auto auto;
  margin-bottom: 12px;
}
.p-head h2 { margin: 0; font-size: 18px; }
.item-card .p-head h2 {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-head-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.p-head-ico[hidden] { display: none !important; }
.p-head-ico img { width: 28px; height: 28px; object-fit: contain; }
.p-head-ico .bp-art { width: 32px; height: 32px; }
.p-head-ico .bp-art img { width: 22px; height: 22px; }
.p-head-ico .bp-mark { font-size: 7px; padding: 0 3px; right: 0; bottom: 0; }
.p-fav {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--pill);
  color: var(--muted);
  font-size: 16px;
}
.item-card .p-fav,
.item-card .icon-x {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pill);
  display: grid;
  place-items: center;
  padding: 0;
}
.p-fav.on { color: #fbbf24; }
.icon-x { font-size: 22px; color: var(--muted); padding: 4px 8px; }
.p-well {
  width: 100%;
  min-height: 210px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  padding: 18px;
  background-color: #161616;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px);
  background-size: 11px 11px;
}
.theme-light .p-well {
  background-color: #ececec;
  background-image: radial-gradient(rgba(0,0,0,.08) 1px, transparent 1.2px);
}
.p-well img, .p-well .badge-art { width: 168px; height: 168px; object-fit: contain; }
.p-well img { filter: drop-shadow(0 12px 20px rgba(0,0,0,.35)); }
.p-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.item-card .p-desc { margin: 12px 0 16px; font-size: 14px; }
.p-desc[hidden] { display: none !important; }
.p-preview { display: grid; justify-items: stretch; gap: 8px; margin: 0 0 4px; }
.p-preview[hidden], #pKits[hidden], .perk-table[hidden] { display: none !important; }
.perk-table { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.perk-table div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.perk-table div:last-child { border-bottom: 0; }
.perk-table b { font-weight: 600; }
.perk-table span { color: var(--muted); font-weight: 700; }
.kit-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}
.kit-tabs button {
  border-radius: 12px;
  padding: 8px 6px;
  color: var(--muted);
  text-align: left;
}
.kit-tabs button b { display: block; font-size: 12px; }
.kit-tabs button small { color: var(--muted); font-size: 10px; }
.kit-tabs button.active { background: var(--pill); color: var(--ink); }
.kit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px 6px;
  margin-bottom: 12px;
}
.kit-item { display: grid; justify-items: center; gap: 2px; }
.kit-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #2a2a2a;
  border-radius: 8px;
  padding: 2px;
}
.kit-item span { font-size: 11px; color: var(--muted); font-weight: 700; }
.product-sheet .field, .product-sheet .buy-row { margin: 0 0 10px; }
.p-server-hint { margin: -2px 0 12px; font-size: 13px; }
.p-server-hint[hidden] { display: none !important; }
.buy-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 0; }
.item-card .buy-row { gap: 10px; }
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pill);
  border-radius: 999px;
  padding: 4px 8px;
}
.item-card .stepper {
  padding: 8px 10px 8px 12px;
  gap: 6px;
  min-height: 46px;
}
.qty-ico { display: none; width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.item-qty .qty-ico { display: block; }
.stepper b { min-width: 72px; text-align: center; font-size: 13px; }
.item-card .stepper b { min-width: 42px; font-weight: 700; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; }
.item-card .stepper button { width: 26px; height: 26px; color: var(--muted); }
.p-buy { flex: 1; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.item-card .p-buy {
  border-radius: 999px;
  font-weight: 700;
}
.item-card .p-buy::after { display: none; }
.p-buy .coin-svg { width: 14px; height: 14px; }
.muted { color: var(--muted); }
.p-price, .sum-line { display: flex; justify-content: space-between; margin: 12px 0; font-weight: 700; }
.p-actions { display: flex; justify-content: space-between; align-items: center; }
.text { color: var(--muted); }
.qty, .field { display: grid; gap: 6px; color: var(--muted); margin: 10px 0; }
.qty input, .field input, .field select, .packages button, .methods button {
  background: var(--pill);
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
  color: var(--ink);
}
.packages, .methods { display: grid; gap: 8px; margin: 8px 0; }
.packages button { display: flex; justify-content: space-between; gap: 12px; text-align: left; }
.packages button.popular { outline: 1px dashed #f59e0b; }
.packages button.active, .methods button.active { outline: 2px solid var(--green); }
.tabs { display: flex; gap: 8px; margin: 10px 0; }
.tabs button { background: var(--pill); border-radius: 999px; padding: 8px 12px; }
.tabs button.active { background: #fff; color: #111; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.cab-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cab-metrics div { background: var(--pill); border-radius: 12px; padding: 10px; }
.cab-metrics span { color: var(--muted); font-size: 12px; }
.cab-metrics b { display: block; font-size: 20px; }
.promo-field { margin: 12px 0 4px; }
.promo-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.promo-row input { flex: 1; }
.promo-row .buy { flex: 0 0 auto; }
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: .2s;
  z-index: 80;
}
.toast.show { opacity: 1; transform: none; }
.status { font-size: 12px; color: var(--green); }
.empty { color: var(--muted); padding: 40px 20px; text-align: center; }
.news-bar { margin: 0 32px 12px; background: var(--card); border-radius: 14px; padding: 12px 16px; }
.news-bar article { font-size: 14px; display: flex; gap: 12px; flex-wrap: wrap; }

.snow { pointer-events: none; position: fixed; inset: 0; overflow: hidden; z-index: 50; }
.snow span {
  position: absolute;
  top: -12px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: flake linear infinite;
}
@keyframes flake { to { transform: translateY(110vh); } }

.page { max-width: 420px; margin: 0 auto; padding: 20px; }
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 16px 22px;
}
.logo { color: inherit; text-decoration: none; font-weight: 800; }
.logo b { font-weight: 800; }
.mono { font-family: ui-monospace, Consolas, monospace; background: var(--pill); padding: 10px 12px; border-radius: 10px; overflow: auto; margin: 8px 0; }
.summary { display: grid; gap: 8px; margin: 12px 0; }
.summary div { display: flex; justify-content: space-between; color: var(--muted); }
.summary .total { color: var(--ink); font-weight: 700; }
.qr {
  width: 140px;
  height: 140px;
  margin: 10px auto 12px;
  border-radius: 16px;
  background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 14px 14px;
}

.wallet-sheet {
  width: min(460px, 94vw);
  padding: 14px 14px 16px;
  background: #2a2a2a;
  border-radius: 20px;
}
.theme-light .wallet-sheet { background: #f3f3f3; }
.wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.wallet-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: #1f1f1f;
}
.theme-light .wallet-tabs { background: #e4e4e4; }
.wallet-tabs button {
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.wallet-tabs button.active {
  background: #323232;
  color: #fff;
}
.theme-light .wallet-tabs button.active { background: #fff; color: #111; }
.wallet-pane { display: grid; gap: 10px; }
.wallet-pane[hidden] { display: none !important; }
.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pay-method {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 6px;
  min-height: 92px;
  padding: 10px;
  border-radius: 14px;
  background: #323232;
  text-align: left;
}
.theme-light .pay-method { background: #fff; }
.pay-method em {
  position: absolute;
  top: 8px;
  right: 8px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
}
.pay-method b { font-size: 13px; line-height: 1.2; }
.pay-method span { color: var(--muted); font-size: 11px; }
.pay-method.active {
  background: #f4f4f5;
  color: #111;
}
.pay-method.active em, .pay-method.active span { color: #737373; }
.pay-logo, .pay-logo svg {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 8px;
}
.wallet-label {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 650;
}
.amount-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.amount-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  background: #1f1f1f;
}
.theme-light .amount-box { background: #fff; }
.amount-box input {
  width: 100%;
  background: transparent;
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.amount-box.fiat { justify-content: space-between; }
.amount-box.fiat b { font-size: 16px; }
.amount-box.fiat span { color: var(--muted); font-size: 12px; font-weight: 700; }
.amount-swap {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.amount-swap svg { width: 18px; height: 18px; display: block; }
.bonus-line, .credit-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.bonus-link {
  color: #60a5fa;
  font-weight: 650;
  padding: 0;
}
.bonus-line b { color: #4ade80; font-variant-numeric: tabular-nums; }
.credit-line span { color: var(--muted); }
.credit-line b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.bonus-packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.bonus-packs button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #1f1f1f;
  font-size: 12px;
}
.theme-light .bonus-packs button { background: #fff; }
.bonus-packs button.active { outline: 1px solid var(--green); }
.promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #1f3d32;
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 700;
}
.wallet-pay {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px;
  margin-top: 4px;
}
.gift-btn {
  height: 46px;
  border-radius: 12px;
  background: #353535;
  color: #d4d4d4;
  display: grid;
  place-items: center;
}
.gift-btn svg { width: 20px; height: 20px; }
.theme-light .gift-btn { background: #fff; }
.pay-go {
  position: relative;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-weight: 700;
  overflow: hidden;
}
.pay-go span { margin-left: 6px; }
.pay-go::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6, #fbbf24, #34d399);
}
.pay-go.dim {
  background: #3a3a3a;
  color: #8a8a8a;
}
.pay-go.dim::after { display: none; }
.theme-light .pay-go.dim { background: #d4d4d4; color: #737373; }
.promo-input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  background: #1f1f1f;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.theme-light .promo-input { background: #fff; }
.wallet-faq {
  border-radius: 12px;
  background: #1f1f1f;
  overflow: hidden;
}
.theme-light .wallet-faq { background: #fff; }
.wallet-faq summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.wallet-faq summary::-webkit-details-marker { display: none; }
.wallet-faq summary::after {
  content: "";
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.wallet-faq[open] summary::after { transform: rotate(-135deg); translate: 0 3px; }
.wallet-faq summary svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: 0 0 auto;
}
.wallet-faq p {
  margin: 0;
  padding: 0 12px 12px 36px;
  color: var(--muted);
  font-size: 13px;
}
.wallet-promo-go { margin-top: 6px; }
#walletPromo .pay-go { width: 100%; }

@media (max-width: 980px) {
  .grid, .stats, .wipe-grid, .help-layout, .help-cards, .cab-metrics { grid-template-columns: 1fr 1fr; }
  .wipe-faq { grid-template-columns: 1fr; }
  .main-nav { display: flex; }
  .main-nav span { display: none; }
  .main-nav a, .main-nav button { padding: 8px; }
  .main-nav a.has-spin::after { left: 26px; }
  .wheel-grid { grid-template-columns: repeat(4, 1fr); }
  .store-hero .store-mosaic { display: none; }
  .store-hero { min-height: 0; }
  .player-balances, .player-meta { grid-template-columns: 1fr; }
  .player-bal + .player-bal { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .grid, .stats, .wipe-grid, .help-layout, .help-cards, .cab-metrics { grid-template-columns: 1fr; }
  .hero h1, .home-support h2 { font-size: 30px; }
  .store-hero h1 { font-size: 24px; white-space: normal; }
  .hero, .page-pad, .store-hero, .toolbar, .wipe-hero, .wipe-grid, .wipe-cal, .wipe-faq, .stats, .server-board, .player-body, .home-support { padding-left: 16px; padding-right: 16px; }
  .home-cal { margin-left: 16px; margin-right: 16px; max-width: calc(100% - 32px); }
  .wipe-faq h2 { font-size: 32px; }
  .pay-grid { grid-template-columns: 1fr 1fr; }
  .kit-tabs, .kit-grid { grid-template-columns: repeat(3, 1fr); }
}
