﻿/* ============================================================
   GOLDSTAND — welvura-flavored redesign
   Design DNA: deep navy #141b2e, panels #2f314a, borders #35395e,
   muted #6c779e, signature violet gradient (#9756f0→#875df4→#7267f8),
   Rubik UI + Benzin display. Unique twist: gold×violet duotone.
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Rubik";
  src: url("ui/fonts/Rubik-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("ui/fonts/Rubik-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("ui/fonts/Rubik-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("ui/fonts/Rubik-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Benzin";
  src: url("ui/fonts/benzin-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* surfaces */
  --bg: #141b2e;
  --bg-deep: #0f1322;
  --panel: #2e314a;
  --panel-hi: #343953;
  --panel-lo: #272b42;
  --inset: rgba(11, 14, 26, 0.55);
  --line: rgba(220, 224, 236, 0.13);
  --line-strong: #35395e;

  /* text */
  --text: #ffffff;
  --text-soft: #ccd4ec;
  --muted: #6c779e;
  --muted-hi: #8b96bd;

  /* brand */
  --vio-a: #9756f0;
  --vio-b: #875df4;
  --vio-c: #7267f8;
  --grad-vio: linear-gradient(90deg, var(--vio-a), var(--vio-b) 52%, var(--vio-c));
  --grad-btn: linear-gradient(135deg, #a34ef4, #7265fd);
  --grad-gold: linear-gradient(120deg, #f5b52e, #ffd76a 48%, #f5a92e);
  --gold: #ffcb47;
  --gold-deep: #fbb100;

  /* semantic */
  --green: #10b759;
  --red: #ff5252;
  --blue: #3466fb;
  --pink: #f10075;

  /* rarity */
  --r-common: #9EA7B8;
  --r-uncommon: #21D4E0;
  --r-rare: #2E7BFF;
  --r-epic: #A855F7;
  --r-legendary: #FF5CAE;
  --r-arcane: #EE1010;

  /* motion */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spin: cubic-bezier(0.08, 0.72, 0.08, 1);

  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { color-scheme: dark; }
body {
  font: 400 14px/1.45 Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(106, 74, 205, 0.28), transparent 62%),
    radial-gradient(900px 480px at -12% 104%, rgba(114, 103, 248, 0.16), transparent 58%),
    linear-gradient(180deg, #161d33, var(--bg) 46%, #111629);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(135, 93, 244, 0.55); color: #fff; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; position: relative; overflow: hidden; }
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(135, 93, 244, 0.8);
  outline-offset: 2px;
}

/* scrollbars — violet thumbs */
* { scrollbar-width: thin; scrollbar-color: rgba(135, 93, 244, 0.55) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(151, 86, 240, 0.65), rgba(114, 103, 248, 0.65));
  border-radius: 99px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(151, 86, 240, 0.9); }

/* ============================================================
   SIDEBAR (welvura-style labeled menu)
   ============================================================ */
.rail {
  width: 232px;
  flex: 0 0 232px;
  background: rgba(20, 25, 44, 0.94);
  border-right: 1px solid var(--line-strong);
  box-shadow: 12px 0 38px rgba(5, 7, 15, 0.35);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 18px 14px;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}
.rail-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px;
  text-decoration: none;
  border-radius: 12px;
}
.rail-logo img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(251, 177, 0, 0.35),
    0 0 22px rgba(251, 177, 0, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}
.rail-logo:hover img {
  transform: translateY(-2px) rotate(-3deg);
  box-shadow:
    0 0 0 1px rgba(251, 177, 0, 0.5),
    0 0 30px rgba(151, 86, 240, 0.35),
    0 14px 28px rgba(0, 0, 0, 0.4);
}
.rail-logo::after {
  content: "OFFGRADER";
  font-family: Benzin, Rubik, sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  background: linear-gradient(94deg, #ffd76a 8%, #fbb100 38%, #a34ef4 78%, #7267f8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 3px 12px rgba(151, 86, 240, 0.25));
}
.rail-nav { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.25s var(--ease-spring), border-color 0.2s ease;
}
.tab svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(220, 224, 236, 0.08);
  transition: background 0.22s ease, box-shadow 0.22s ease, color 0.2s ease;
  flex: 0 0 auto;
}
.tab span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tab:hover { color: var(--text-soft); background: rgba(255, 255, 255, 0.045); transform: translateX(2px); }
.tab[aria-current="page"] {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(151, 86, 240, 0.16), rgba(114, 103, 248, 0.07) 70%, transparent);
  border-color: rgba(135, 93, 244, 0.32);
}
.tab[aria-current="page"] svg {
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(114, 101, 253, 0.45);
}
.rail-foot {
  margin-top: auto;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rail-foot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: onlinePulse 1.8s ease-out infinite;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.app { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(17, 22, 41, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(151, 86, 240, 0.5) 30%, rgba(251, 177, 0, 0.35) 62%, transparent 96%);
}
.brand { min-width: 150px; user-select: none; }
.brand b {
  font-family: Benzin, Rubik, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 15px;
  display: block;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.brand span {
  background: var(--grad-vio);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.brand em { color: var(--muted); font-style: normal; font-size: 11px; }

.ticker {
  flex: 1;
  min-width: 0;
  height: 96px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(220, 224, 236, 0.16);
  border-radius: 61px;
  padding: 6px 12px 6px 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-hi);
  animation: chipEnter 0.45s var(--ease-spring) both;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, background 0.25s ease;
}
.chip:nth-child(2) { animation-delay: 0.03s; }
.chip:nth-child(3) { animation-delay: 0.06s; }
.chip:nth-child(4) { animation-delay: 0.09s; }
.chip:nth-child(5) { animation-delay: 0.12s; }
.chip:nth-child(6) { animation-delay: 0.15s; }
.chip:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.09); }
.chip img { width: 30px; height: 20px; object-fit: contain; border-radius: 4px; }
img.fail { display: none !important; }
.chip.win { color: #35d67f; border-color: rgba(16, 183, 89, 0.4); background: rgba(16, 183, 89, 0.08); }
.chip.lose { color: #ff7a7a; border-color: rgba(255, 82, 82, 0.32); background: rgba(255, 82, 82, 0.07); }
.chip b { color: inherit; font-weight: 600; }

/* ---- latest-drops panel: ggstand-style rarity cards ---- */
.drop-card {
  position: relative;
  flex-direction: column;
  gap: 0;
  width: 108px;
  min-width: 108px;
  height: 84px;
  border-radius: 10px;
  padding: 8px 6px 6px;
  overflow: hidden;
  justify-content: flex-start;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 26%, #141a29), #10141f 78%);
  border: 1px solid color-mix(in srgb, var(--rc) 45%, rgba(220, 224, 236, 0.12));
  box-shadow: inset 0 -18px 26px -14px color-mix(in srgb, var(--rc) 55%, transparent);
}
.drop-card:hover { transform: translateY(-3px); }
.drop-card.enter { animation: dropIn 0.5s var(--ease-spring) backwards; }
@keyframes dropIn { from { opacity: 0; transform: translateX(34px) scale(0.88); } to { opacity: 1; transform: none; } }
.drop-card .drop-box {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; width: 100%; position: relative; z-index: 1;
}
.drop-card img { width: 62px; height: 38px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.drop-card .drop-name {
  font-size: 11.5px; font-weight: 700; color: #f2f4fb;
  max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.drop-card .drop-glow {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: linear-gradient(transparent, var(--rc));
  opacity: .8; pointer-events: none;
}
.drop-card .drop-x {
  position: absolute; top: 5px; left: 5px; z-index: 2;
  font-size: 9px; font-weight: 800; letter-spacing: .02em;
  color: #fff; background: color-mix(in srgb, var(--rc) 75%, #000 10%);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 5px; padding: 1.5px 5px;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.chip.win .drop-x { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.chip.lose .drop-x { background: rgba(255,255,255,.14); }

.top-meta { display: flex; align-items: center; gap: 12px; }
.online { color: var(--green); font-size: 12px; font-weight: 500; }
.online i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  box-shadow: 0 0 9px var(--green);
  animation: onlinePulse 1.8s ease-out infinite;
}
.user {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 61px;
  background: rgba(255, 255, 255, 0.04);
}
.balance {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px;
}
.balance strong { position: relative; z-index: 1; font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.balance em { color: var(--gold); font-style: normal; font-size: 19px; font-weight: 800; line-height: 1; position: relative; z-index: 1; }
.balance-val { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.meta-plus {
  width: 26px; height: 26px; border-radius: 9px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  color: #fff; font-size: 19px; font-weight: 800; line-height: 1;
  background: var(--grad-btn);
  border: 1px solid rgba(200, 190, 255, 0.45);
  box-shadow: 0 4px 14px rgba(114, 101, 253, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform .2s var(--ease-spring), filter .2s ease;
}
.meta-plus:hover { transform: translateY(-1px) scale(1.06); filter: brightness(1.08); }
.meta-plus:active { transform: scale(0.94); }
.meta-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  font: 700 18px/1 -apple-system, "Segoe UI", sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #7c63ff, #5a3ef0);
  border: 1px solid rgba(200, 190, 255, 0.45);
  box-shadow: 0 6px 18px rgba(90, 62, 240, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform .22s var(--ease-spring), filter .2s ease;
}
.meta-avatar:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* ---- profile / balance user menu ---- */
.user-menu {
  position: fixed;
  top: 66px;
  right: 12px;
  width: 316px;
  z-index: 60;
  border-radius: 16px;
  background: #161a29;
  border: 1px solid rgba(220, 224, 236, 0.16);
  box-shadow: 0 26px 60px rgba(4, 6, 14, 0.65);
  overflow: hidden;
  animation: viewEnter .25s ease both;
}
.user-menu[hidden] { display: none; }
.um-card { padding: 16px 16px 14px; border-bottom: 1px solid rgba(220, 224, 236, 0.08); }
.um-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.um-avatar {
  width: 58px; height: 58px; border-radius: 15px; flex: 0 0 auto;
  display: grid; place-items: center;
  font: 700 26px/1 -apple-system, "Segoe UI", sans-serif; color: #fff;
  background: linear-gradient(135deg, #7c63ff, #5a3ef0);
  border: 1px solid rgba(200, 190, 255, 0.45);
  box-shadow: 0 8px 22px rgba(90, 62, 240, 0.45);
}
.um-id b { display: block; font-size: 15px; color: var(--text); margin-bottom: 5px; }
.um-id span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.um-id i { font-style: normal; color: #98a0b5; letter-spacing: 0.02em; }
.um-copy {
  display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 6px; cursor: pointer; color: var(--muted);
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(220, 224, 236, 0.14);
}
.um-copy svg { width: 12px; height: 12px; }
.um-copy:hover { color: var(--text); }
.um-level { border: 1px solid rgba(220, 224, 236, 0.12); border-radius: 12px; padding: 11px 13px 12px; background: rgba(255, 255, 255, 0.03); }
.um-level-cap { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #c9cfdd; margin-bottom: 9px; }
.um-level-cap i { font-style: normal; color: var(--muted); font-weight: 700; }
.um-bar { position: relative; height: 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.um-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, #7c63ff, #b39bff); transition: width .5s ease; }
.um-lvtext { display: flex; justify-content: flex-end; margin-top: 7px; font-size: 11px; font-weight: 600; color: #8f97ad; }
.um-links { padding: 7px 8px 9px; }
.um-links button {
  width: 100%; display: flex; align-items: center; gap: 13px;
  padding: 11px 11px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 0;
  color: #d4d9e6; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
}
.um-links button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.um-links svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.um-links .um-out { color: #ff8f8f; }
.um-links .um-out svg { color: #ff8f8f; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
main {
  padding: 18px 22px 8px;
  flex: 1;
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
}

/* ---------- upgrade hero banner (welvura promo style) ---------- */
.upgrade-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto 140px;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(135, 93, 244, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 74% 42%, rgba(106, 74, 205, 0.42), transparent 56%),
    radial-gradient(ellipse at 12% 110%, rgba(251, 177, 0, 0.1), transparent 52%),
    linear-gradient(180deg, #171032, #120d24 56%, #0c0918);
  box-shadow: 0 18px 44px rgba(6, 8, 18, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.upgrade-banner::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(73deg, transparent 0 27%, rgba(255, 255, 255, 0.028) 27% 42%, transparent 42%),
    linear-gradient(104deg, transparent 0 46%, rgba(255, 255, 255, 0.032) 46% 59%, transparent 59%),
    linear-gradient(73deg, transparent 0 64%, rgba(255, 255, 255, 0.04) 64% 77%, transparent 77%);
  clip-path: polygon(17% 0, 88% 0, 100% 100%, 35% 100%);
  opacity: 0.85;
  pointer-events: none;
}
.upgrade-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(151, 86, 240, 0.75) 34%, rgba(251, 177, 0, 0.5) 66%, transparent);
  pointer-events: none;
}
.upgrade-banner-copy,
.upgrade-steps,
.banner-mode { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: Rubik;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad-vio);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--vio-b);
  box-shadow: 0 0 9px var(--vio-b);
}
.upgrade-banner h1 {
  margin: 4px 0 2px;
  font-family: Benzin, Rubik, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-shadow: 0 0 34px rgba(106, 74, 205, 0.55);
}
.upgrade-banner p { margin: 0; color: var(--muted-hi); font-size: 12.5px; }

.upgrade-steps { display: flex; align-items: center; gap: 8px; }
.upgrade-step {
  width: 138px;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(220, 224, 236, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}
.upgrade-step > b {
  color: var(--muted);
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  transition: color 0.2s ease;
}
.upgrade-step span { min-width: 0; display: flex; flex-direction: column; }
.upgrade-step strong { font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.upgrade-step small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.upgrade-step.is-active {
  border-color: rgba(135, 93, 244, 0.5);
  background: rgba(135, 93, 244, 0.1);
  box-shadow: inset 0 0 20px rgba(135, 93, 244, 0.08);
}
.upgrade-step.is-active > b,
.upgrade-step.is-done > b,
.upgrade-step.is-ready > b { color: var(--vio-b); }
.upgrade-step.is-done {
  border-color: rgba(135, 93, 244, 0.26);
  background: rgba(135, 93, 244, 0.055);
}
.upgrade-step.is-ready {
  border-color: rgba(251, 177, 0, 0.55);
  background: rgba(251, 177, 0, 0.09);
  box-shadow: 0 0 22px rgba(251, 177, 0, 0.1);
}
.upgrade-step.is-ready > b { color: var(--gold); }
.step-arrow { color: #4d5578; font-style: normal; font-size: 13px; }

.banner-mode {
  justify-self: end;
  min-width: 128px;
  padding: 10px 11px;
  border: 1px solid rgba(251, 177, 0, 0.3);
  border-radius: 11px;
  background: rgba(251, 177, 0, 0.07);
  text-align: left;
}
.banner-mode > i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
  box-shadow: 0 0 9px rgba(251, 177, 0, 0.75);
}
.banner-mode span { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }
.banner-mode small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }

/* ============================================================
   PANELS
   ============================================================ */
.upgrade-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 390px minmax(300px, 1fr);
  gap: 14px;
  align-items: stretch;
}
.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel) 34%, var(--panel-lo));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  min-height: 590px;
  box-shadow: 0 20px 48px rgba(6, 8, 18, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: -170px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(135, 93, 244, 0.14), transparent 68%);
  pointer-events: none;
}
.panel::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  pointer-events: none;
}
.panel:hover {
  border-color: rgba(135, 93, 244, 0.34);
  box-shadow: 0 22px 54px rgba(6, 8, 18, 0.42), 0 0 30px rgba(135, 93, 244, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.panel-head, .panel-foot, .tools, .mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.panel-head { margin-bottom: 10px; min-height: 28px; }
.panel h2, .panel-head h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-hi);
}
.step-index {
  width: 26px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(135, 93, 244, 0.35);
  border-radius: 6px;
  background: rgba(135, 93, 244, 0.12);
  color: #c9b3ff;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
}
.panel-head > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(251, 177, 0, 0.1);
  border: 1px solid rgba(251, 177, 0, 0.22);
  border-radius: 61px;
  padding: 3px 9px;
  min-width: 27px;
  text-align: center;
}

/* inputs */
.tools { margin-bottom: 10px; }
.tools input, .gold-add input {
  width: 100%;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 11px;
  min-height: 38px;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.tools input::placeholder, .gold-add input::placeholder { color: #556080; }
.tools input[type="number"] { width: 104px; flex: 0 0 104px; }
.tools input:hover, .gold-add input:hover { border-color: rgba(220, 224, 236, 0.22); }
.tools input:focus, .gold-add input:focus {
  border-color: rgba(135, 93, 244, 0.7);
  background: rgba(11, 14, 26, 0.75);
  box-shadow: 0 0 0 3px rgba(135, 93, 244, 0.14);
  outline: 0;
}

.panel-foot {
  margin-top: 10px;
  padding: 10px 2px 0;
  border-top: 1px solid rgba(220, 224, 236, 0.09);
  color: var(--muted);
  font-size: 12px;
  transition: border-color 0.25s ease;
}
.panel:hover .panel-foot { border-color: rgba(220, 224, 236, 0.16); }
.panel-foot b { color: var(--gold); display: block; font-size: 14px; font-weight: 700; }
.gold-add, .sort { display: flex; align-items: center; gap: 6px; }
.gold-add label { color: var(--muted-hi); font-size: 11px; font-weight: 500; }
.gold-add input { width: 72px; min-height: 34px; padding: 4px 9px; }

.mini {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-hi);
  border-radius: 8px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.22s var(--ease-spring);
}
.mini.on, .mini:hover { color: #fff; border-color: rgba(135, 93, 244, 0.55); background: rgba(135, 93, 244, 0.14); }
.mini:active { transform: scale(0.97); }

/* ---------- wheel panel ---------- */
.center { align-items: center; text-align: center; gap: 10px; }
.center {
  background:
    radial-gradient(circle at 50% 30%, rgba(135, 93, 244, 0.13), transparent 37%),
    radial-gradient(circle at 50% 102%, rgba(251, 177, 0, 0.06), transparent 38%),
    linear-gradient(180deg, var(--panel-hi), var(--panel-lo));
}
.mode-row {
  width: 100%;
  min-height: 28px;
  padding: 0 1px 6px;
  border-bottom: 1px solid rgba(220, 224, 236, 0.08);
  color: var(--muted-hi);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mode-title { display: inline-flex; align-items: center; gap: 7px; }
.mode-title i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vio-b);
  box-shadow: 0 0 10px var(--vio-b);
  animation: onlinePulse 1.8s ease-out infinite;
}
.switch { display: flex; align-items: center; gap: 8px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i {
  width: 34px;
  height: 19px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  transition: background 0.2s ease;
}
.switch i:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}
.switch input:checked + i { background: var(--grad-btn); }
.switch input:checked + i:before { transform: translateX(15px); }

.wheel-stage { width: 286px; height: 286px; position: relative; margin: 4px 0 2px; }
.pointer {
  position: absolute;
  left: 50%;
  top: -5px;
  z-index: 5;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid #fff;
  filter: drop-shadow(0 0 9px rgba(201, 179, 255, 0.65)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}
.wheel {
  width: 286px;
  height: 286px;
  border-radius: 50%;
  position: relative;
  box-shadow:
    0 0 0 8px rgba(11, 14, 26, 0.9),
    0 0 0 9px rgba(220, 224, 236, 0.1),
    0 22px 56px rgba(5, 7, 15, 0.55),
    0 0 54px rgba(135, 93, 244, 0.22);
}
.wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 8%,
    rgba(255, 255, 255, 0.18) 8.5% 9%,
    transparent 9.5% 25%,
    rgba(151, 86, 240, 0.5) 25.5% 26%,
    transparent 26.5% 58%,
    rgba(255, 215, 106, 0.42) 58.5% 59%,
    transparent 59.5% 100%
  );
  -webkit-mask: radial-gradient(circle, transparent 69%, #000 70% 73%, transparent 74%);
  mask: radial-gradient(circle, transparent 69%, #000 70% 73%, transparent 74%);
  animation: orbitIdle 16s linear infinite;
  pointer-events: none;
}
.wheel::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 3;
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(5, 7, 15, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.ticks, .pie { position: absolute; inset: 0; border-radius: 50%; will-change: transform; }
.ticks {
  background: repeating-conic-gradient(from -90deg, rgba(255, 255, 255, 0.17) 0 1.2deg, transparent 1.2deg 6deg);
  pointer-events: none;
  z-index: 2;
  opacity: 0.75;
}
.pie { filter: saturate(1.05); transition: filter 0.25s ease; }
.pie.spinning { transition: transform 4.8s var(--ease-spin); }
.pie.spinning.fast { transition-duration: 1.15s; }
.ticks.spinning { transition: transform 4.8s var(--ease-spin); }
.ticks.spinning.fast { transition-duration: 1.15s; }
.hub {
  position: absolute;
  inset: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.06), transparent 42%),
    linear-gradient(180deg, #20244a, #0d0f22);
  border: 1px solid rgba(220, 224, 236, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 30px rgba(5, 7, 15, 0.4);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}
.hub::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(220, 224, 236, 0.07);
  pointer-events: none;
}
.pct {
  font-family: Benzin, Rubik, sans-serif;
  font-weight: 700;
  font-size: 37px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 0 26px rgba(135, 93, 244, 0.6);
  transition: transform 0.3s var(--ease-spring), filter 0.25s ease;
}
.pct small { font-size: 16px; color: var(--gold); }
.hub span {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-hi);
  margin-top: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: 130px;
  line-height: 1.3;
}

.odds { color: var(--muted); font-size: 13px; min-height: 34px; }
.visually-hidden { display: none !important; }

.duel-summary {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
}
.duel-slot {
  min-width: 0;
  min-height: 57px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 10px;
  border: 1px solid rgba(220, 224, 236, 0.11);
  border-radius: 10px;
  background: var(--inset);
  text-align: left;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.duel-slot > span {
  color: #5d6889;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.duel-slot b {
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.duel-slot small { margin-top: 2px; color: var(--gold); font-size: 10px; font-weight: 700; }
.duel-slot.has-value {
  border-color: rgba(135, 93, 244, 0.4);
  background: rgba(135, 93, 244, 0.07);
  box-shadow: inset 0 0 18px rgba(135, 93, 244, 0.05);
}
.duel-arrow { position: relative; display: grid; place-items: center; color: var(--vio-b); }
.duel-arrow i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(151, 86, 240, 0.5), transparent);
}
.duel-arrow span {
  position: relative;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(135, 93, 244, 0.4);
  border-radius: 50%;
  background: #191d38;
  font-size: 12px;
}

/* chance / mult chips */
.chips { display: flex; gap: 7px; width: 100%; }
.chips button {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: var(--muted-hi);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.22s var(--ease-spring), box-shadow 0.22s ease;
}
.chips button:hover { transform: translateY(-2px); border-color: rgba(135, 93, 244, 0.5); color: #fff; }
.chips button:active { transform: scale(0.97); }
.chips button.on {
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(114, 101, 253, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* primary action — welvura violet CTA with gold sweep */
.btn { border: 0; border-radius: 11px; min-height: 48px; padding: 0 18px; }
.tgt-more { grid-column: 1 / -1; width: 100%; margin-top: 6px; opacity: .85; }
.tgt-more:hover { opacity: 1; }

/* ---- case opening state machine ---- */
#view-casepage.is-opening .qty-group,
#view-casepage.is-opening #cpOpen,
#view-casepage.is-opening #cpFast,
#view-casepage.has-result .qty-group,
#view-casepage.has-result #cpOpen,
#view-casepage.has-result #cpFast { display: none; }
.cp-opening {
  grid-column: 1 / -1; justify-self: center;
  display: none; align-items: center; gap: 10px;
  font-family: Benzin, Rubik, sans-serif; font-size: 13px;
  letter-spacing: .08em; color: var(--text-soft); text-transform: uppercase;
}
#view-casepage.is-opening .cp-opening { display: flex; }
.cp-opening .spin-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--gold);
  animation: cpSpin 0.8s linear infinite;
}
@keyframes cpSpin { to { transform: rotate(360deg); } }
#cpResult {
  grid-column: 1 / -1; justify-self: center;
  display: none; gap: 10px; flex-wrap: nowrap; justify-content: center;
  width: 100%; max-width: 460px;
}
#cpResult .btn { width: auto; min-width: 0; flex: 1 1 0; }
#view-casepage.has-result #cpResult { display: flex; }

/* reel reveal: winner pops, everything else fades */
.spinner-item { transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.7s ease, filter 0.7s ease; }
.spinner.revealed .spinner-item { opacity: 0.18; filter: saturate(0.35); }
.spinner.revealed .spinner-item.is-win {
  opacity: 1; filter: none;
  transform: scale(1.08);
  box-shadow: 0 0 30px var(--c, rgba(255,255,255,0.5)), inset 0 -3px 0 var(--c, transparent);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
  z-index: 2;
}
.spinner.snapset { transition: transform 0.55s cubic-bezier(0.34, 1.8, 0.64, 1) !important; }
.btn-go {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 10px 30px rgba(114, 101, 253, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s ease, filter 0.28s ease, opacity 0.2s ease;
}
.btn-go::before {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -35%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 106, 0.5), rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s ease;
}
.btn-go:not(:disabled):hover {
  transform: translateY(-2px);
  filter: saturate(1.1) brightness(1.06);
  box-shadow: 0 15px 38px rgba(114, 101, 253, 0.5), 0 0 26px rgba(151, 86, 240, 0.25);
}
.btn-go:not(:disabled):hover::before { left: 118%; }
.btn-go:not(:disabled):active { transform: translateY(0) scale(0.985); }
.btn-go:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; filter: grayscale(0.4); }
.go-label, .go-arrow { position: relative; z-index: 1; }
.go-arrow { font-size: 18px; transition: transform 0.25s var(--ease-spring); }
.btn-go:not(:disabled):hover .go-arrow { transform: translateX(4px); }
.btn-go.spinning {
  animation: buttonCharge 0.8s ease-in-out infinite alternate;
}
.btn-go.spinning .go-arrow { animation: arrowOrbit 0.7s linear infinite; }
.btn-ghost {
  background: transparent;
  color: var(--muted-hi);
  border: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.22s var(--ease-spring);
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(135, 93, 244, 0.55);
  background: rgba(135, 93, 244, 0.12);
  transform: translateY(-2px);
}

.fair { margin: 0; color: #5d6889; font-size: 11px; }
.fair code { color: var(--muted-hi); letter-spacing: 0.08em; }

.ripple {
  position: absolute;
  z-index: 4;
  width: 12px;
  height: 12px;
  margin: -6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  animation: rippleOut 0.55s ease-out forwards;
  pointer-events: none;
}

/* ============================================================
   SKIN CARDS
   ============================================================ */
.skins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  flex: 1;
  min-height: 0;
  max-height: 412px;
  overflow: auto;
  align-content: start;
  padding-right: 2px;
}
.skins-wide { max-height: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.skin {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--panel-hi), var(--panel-lo) 78%);
  border: 1px solid rgba(220, 224, 236, 0.1);
  border-radius: 11px;
  padding: 8px 8px 10px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  min-height: 132px;
  height: 132px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), border-color 0.25s ease, box-shadow 0.3s ease, background 0.25s ease;
  animation: cardIn 0.42s var(--ease-spring) both;
}
.skin:nth-child(2) { animation-delay: 0.025s; }
.skin:nth-child(3) { animation-delay: 0.05s; }
.skin:nth-child(4) { animation-delay: 0.075s; }
.skin:nth-child(5) { animation-delay: 0.1s; }
.skin:nth-child(6) { animation-delay: 0.125s; }
.skin:nth-child(7) { animation-delay: 0.15s; }
.skin:nth-child(8) { animation-delay: 0.175s; }
.skin:nth-child(9) { animation-delay: 0.2s; }
.skin::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 50% 12%, rgba(151, 86, 240, 0.16), transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.skin::after {
  content: "✓";
  position: absolute;
  z-index: 4;
  right: 7px;
  top: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-btn);
  font-size: 12px;
  font-weight: 900;
  transform: scale(0) rotate(-24deg);
  opacity: 0;
  transition: transform 0.28s var(--ease-spring), opacity 0.2s ease;
  box-shadow: 0 0 14px rgba(135, 93, 244, 0.55);
}
.skin:hover {
  transform: translateY(-4px);
  border-color: rgba(151, 86, 240, 0.45);
  box-shadow: 0 14px 30px rgba(5, 7, 15, 0.4), 0 0 18px rgba(135, 93, 244, 0.12);
}
.skin:hover::before { opacity: 1; }
/* selected = welvura signature gradient-border card */
.skin.sel {
  transform: translateY(-2px);
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--grad-vio) border-box;
  border: 1px solid transparent;
  box-shadow: 0 12px 30px rgba(5, 7, 15, 0.42), 0 0 24px rgba(135, 93, 244, 0.28);
}
.skin.sel::after { transform: scale(1) rotate(0); opacity: 1; }
.skin .art {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 6px;
  overflow: hidden;
  border-radius: 7px;
  background: radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.045), transparent 66%);
}
.skin .ghost {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}
.art:has(img.fail) .ghost { display: flex; }
.skin img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 10px rgba(4, 6, 12, 0.55));
  transition: transform 0.35s var(--ease-spring), filter 0.35s ease;
}
.skin img.fail, .modal img.fail { display: none; }
.skin:hover .art img { transform: scale(1.08) translateY(-2px); filter: drop-shadow(0 12px 14px rgba(4, 6, 12, 0.6)); }
.skin .n { font-size: 12px; font-weight: 500; color: var(--muted); }
.skin .s { font-size: 12px; font-weight: 700; color: #f2f4fb; }
.skin .p { position: relative; z-index: 2; font-size: 12px; font-weight: 700; color: var(--gold); margin-top: 2px; }
.skin .p::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--gold-deep);
  box-shadow: 0 0 5px rgba(251, 177, 0, 0.6);
  vertical-align: 1px;
}
.glow { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; pointer-events: none; opacity: 0.85; transition: height 0.3s ease, opacity 0.3s ease; }
.skin:hover .glow, .skin.sel .glow { height: 40px; opacity: 1; }
.empty { color: var(--muted); font-size: 13px; padding: 24px 8px; text-align: center; }

/* ============================================================
   HOWTO / CASES / INVENTORY
   ============================================================ */
.howto {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(46, 49, 74, 0.6);
  padding: 11px 15px;
  color: var(--muted-hi);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.howto:hover { border-color: rgba(135, 93, 244, 0.4); background: rgba(46, 49, 74, 0.85); }
.howto summary { cursor: pointer; color: var(--text-soft); font-weight: 600; }
.howto[open] { animation: detailsOpen 0.3s var(--ease-spring); }
.howto ol { margin: 10px 0 4px; padding-left: 18px; }

.cases-head, .inv-tools { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }
.cases-head h1, .inv-tools h1 {
  margin: 0;
  font-family: Benzin, Rubik, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
}
.cases-head p { margin: 0 0 3px; color: var(--muted); }
.inv-actions { display: flex; gap: 8px; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.case {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel-lo));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(6, 8, 18, 0.35);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
  animation: cardIn 0.5s var(--ease-spring) both;
}
.case:nth-child(2) { animation-delay: 0.07s; }
.case:nth-child(3) { animation-delay: 0.14s; }
.case::before {
  content: "";
  position: absolute;
  z-index: 3;
  width: 45%;
  height: 180%;
  left: -75%;
  top: -40%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(151, 86, 240, 0.16), transparent);
  transition: left 0.8s ease;
  pointer-events: none;
}
.case:hover {
  transform: translateY(-7px);
  border-color: rgba(135, 93, 244, 0.55);
  box-shadow: 0 26px 58px rgba(6, 8, 18, 0.48), 0 0 32px rgba(135, 93, 244, 0.14);
}
.case:hover::before { left: 135%; }
.case .pic {
  position: relative;
  overflow: hidden;
  height: 180px;
  background:
    radial-gradient(circle at 50% 66%, rgba(135, 93, 244, 0.22), transparent 54%),
    linear-gradient(180deg, #1b1f34, #151828);
  display: flex;
  align-items: center;
  justify-content: center;
}
.case .pic img {
  position: relative;
  z-index: 1;
  height: 150px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  transition: transform 0.5s var(--ease-spring), filter 0.4s ease;
}
.case:hover .pic img { transform: translateY(-6px) scale(1.05); filter: drop-shadow(0 16px 20px rgba(4, 6, 12, 0.55)); }
.case .body { padding: 14px; }
.case h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }

/* result glows */
.win-glow {
  border-color: rgba(16, 183, 89, 0.4) !important;
  box-shadow: 0 0 55px rgba(16, 183, 89, 0.18), 0 0 0 1px rgba(16, 183, 89, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.lose-glow {
  border-color: rgba(255, 82, 82, 0.36) !important;
  box-shadow: 0 0 50px rgba(255, 82, 82, 0.15), 0 0 0 1px rgba(255, 82, 82, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.win-glow .hub span { color: #35d67f; }
.lose-glow .hub span { color: #ff7a7a; }

/* ============================================================
   OVERLAYS · MODAL · REEL · TOAST
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 22, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 20px;
}
.overlay.on { display: flex; animation: backdropIn 0.22s ease both; }
.modal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(440px, 100%);
  background: linear-gradient(180deg, #343953, var(--panel-lo));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 24px 22px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(5, 7, 15, 0.6);
  animation: resultPop 0.5s var(--ease-spring) both;
}
.modal::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 380px;
  left: 50%;
  top: -245px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(135, 93, 244, 0.3), transparent 68%);
}
.modal.lose::before { background: radial-gradient(circle, rgba(255, 82, 82, 0.26), transparent 68%); }
.modal.win { box-shadow: 0 0 44px rgba(16, 183, 89, 0.22), 0 30px 80px rgba(5, 7, 15, 0.6); }
.modal.lose { box-shadow: 0 0 44px rgba(255, 82, 82, 0.18), 0 30px 80px rgba(5, 7, 15, 0.6); animation: resultPop 0.42s var(--ease-spring) both; }
.modal h2 {
  margin: 0;
  font-family: Benzin, Rubik, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
}
.modal img {
  height: 120px;
  margin: 12px auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  animation: resultFloat 2.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 18px 18px rgba(4, 6, 12, 0.55));
}
.modal p { color: var(--muted-hi); }

.reel-box { width: min(920px, 100%); }
.reel-frame {
  position: relative;
  overflow: hidden;
  height: 150px;
  border: 1px solid rgba(135, 93, 244, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(135, 93, 244, 0.1), transparent 60%),
    #12152a;
  box-shadow: 0 24px 62px rgba(5, 7, 15, 0.55), 0 0 34px rgba(135, 93, 244, 0.12);
}
.reel-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, #0e1122 0%, transparent 16%, transparent 84%, #0e1122 100%);
}
.reel { display: flex; height: 100%; will-change: transform; }
.reel.anim { transition: transform 5s cubic-bezier(0.12, 0.7, 0.05, 1); }
.reel-item {
  flex: 0 0 130px;
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-right: 1px solid rgba(220, 224, 236, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}
.reel-item img { height: 72px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(4, 6, 12, 0.5)); animation: reelItemFloat 1.4s ease-in-out infinite alternate; }
.reel-item:nth-child(2n) img { animation-delay: -0.7s; }
.reel-item b { font-size: 11px; font-weight: 500; color: var(--text-soft); }
.marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 0 14px var(--gold);
}
.marker::before, .marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}
.marker::before { top: 0; border-top: 12px solid var(--gold); }
.marker::after { bottom: 0; border-bottom: 12px solid var(--gold); }

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: none;
  background: linear-gradient(45deg, rgba(163, 78, 244, 0.42), rgba(114, 101, 253, 0.32));
  border: 1px solid rgba(220, 224, 236, 0.22);
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  z-index: 50;
  box-shadow: 0 0 15px rgba(163, 78, 244, 0.14), 0 14px 34px rgba(5, 7, 15, 0.45);
  animation: toastIn 0.3s var(--ease-spring) both;
}

.result-flash { position: fixed; inset: 0; z-index: 55; pointer-events: none; opacity: 0; }
.result-flash.win { background: radial-gradient(circle at 50% 42%, rgba(16, 183, 89, 0.26), transparent 58%); }
.result-flash.lose { background: radial-gradient(circle at 50% 42%, rgba(255, 82, 82, 0.24), transparent 58%); }
.result-flash.active { animation: resultFlash 0.72s ease-out both; }

.confetti-layer { position: fixed; inset: 0; z-index: 70; display: none; overflow: hidden; pointer-events: none; }
.confetti-layer.on { display: block; }
.confetti-piece {
  position: absolute;
  left: var(--x);
  top: -18px;
  width: var(--w);
  height: calc(var(--w) * 1.8);
  border-radius: 2px;
  background: var(--c);
  box-shadow: 0 0 8px color-mix(in srgb, var(--c), transparent 50%);
  animation: confettiFall var(--d) cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay) forwards;
}

.view-enter { animation: viewEnter 0.42s var(--ease-spring) both; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 11.5px;
  padding: 14px 16px 20px;
  border-top: 1px solid rgba(53, 57, 94, 0.6);
  background: rgba(46, 49, 74, 0.35);
}

/* ============================================================
   SPIN STATES
   ============================================================ */
.wheel-stage.is-spinning .pointer { animation: pointerTick 0.12s steps(2, end) infinite; filter: drop-shadow(0 0 10px rgba(201, 179, 255, 0.85)); }
.wheel-stage.is-spinning .hub {
  animation: hubBreathe 0.75s ease-in-out infinite alternate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 34px rgba(135, 93, 244, 0.25), 0 12px 32px rgba(5, 7, 15, 0.45);
}
.wheel-stage.is-spinning .pct { animation: numberPulse 0.65s ease-in-out infinite alternate; }
.wheel-stage.is-spinning .wheel::before { animation-duration: 1.8s; }
.wheel-stage.result-win .wheel { animation: winRing 0.7s var(--ease-spring); }
.wheel-stage.result-lose .wheel { animation: loseRing 0.55s ease; }
@keyframes loseRing { 0%, 100% { filter: brightness(1); } 45% { filter: brightness(0.72) drop-shadow(0 0 18px rgba(255, 82, 82, 0.55)); } }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes ambientDrift { to { transform: translate3d(35px, 22px, 0) scale(1.08); } }
@keyframes chipEnter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes balanceShine { 0%, 68% { transform: translateX(-120%); } 88%, 100% { transform: translateX(150%); } }
@keyframes onlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 183, 89, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(16, 183, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 183, 89, 0); }
}
@keyframes orbitIdle { to { transform: rotate(360deg); } }
@keyframes pointerTick { 0% { transform: translateX(-50%) rotate(-2deg); } 100% { transform: translateX(-50%) rotate(4deg); } }
@keyframes hubBreathe { to { transform: scale(1.025); } }
@keyframes numberPulse { to { transform: scale(1.05); filter: brightness(1.3); } }
@keyframes winRing { 0% { filter: brightness(1); } 45% { filter: brightness(1.5) drop-shadow(0 0 22px rgba(16, 183, 89, 0.7)); } 100% { filter: none; } }
@keyframes buttonCharge { to { box-shadow: 0 0 34px rgba(151, 86, 240, 0.55), 0 10px 30px rgba(114, 101, 253, 0.4); filter: brightness(1.1); } }
@keyframes arrowOrbit { to { transform: rotate(360deg); } }
@keyframes rippleOut { to { transform: scale(9); opacity: 0; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes detailsOpen { from { opacity: 0.6; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes resultPop { from { opacity: 0; transform: translateY(18px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes resultFloat { to { transform: translateY(-7px) rotate(-1deg); } }
@keyframes reelItemFloat { to { transform: translateY(-4px); } }
@keyframes viewEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes resultFlash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes confettiFall {
  0% { opacity: 1; transform: translate3d(0, -5vh, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate3d(var(--drift), 105vh, 0) rotate(var(--rot)); }
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1240px) {
  .upgrade-banner { grid-template-columns: minmax(210px, 1fr) auto 118px; gap: 10px; }
  .upgrade-step { width: 116px; }
  .upgrade-step small { display: none; }
  .upgrade-grid { grid-template-columns: minmax(270px, 1fr) 370px minmax(270px, 1fr); }
}
@media (max-width: 1080px) {
  .rail { width: 68px; flex-basis: 68px; padding-inline: 8px; align-items: center; }
  .rail-logo { padding: 0; justify-content: center; }
  .rail-logo::after { display: none; }
  .tab { justify-content: center; padding: 6px 2px; }
  .tab span { display: none; }
  .rail-foot { display: none; }
  .upgrade-banner { grid-template-columns: 1fr auto; }
  .upgrade-banner-copy p { max-width: 420px; }
  .upgrade-steps { grid-column: 1 / -1; order: 3; justify-content: center; }
  .banner-mode { grid-column: 2; grid-row: 1; }
  .upgrade-grid { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  .ticker { display: none; }
}
@media (max-width: 700px) {
  body { background-attachment: scroll; }
  .rail { width: 56px; flex-basis: 56px; padding-inline: 5px; }
  .rail-logo img { width: 38px; height: 38px; }
  .top { padding: 8px 10px; gap: 8px; }
  .brand { min-width: 0; flex: 1; }
  .brand b { font-size: 12px; }
  .brand em, .online, .user { display: none; }
  .balance { padding: 2px; }
  main { padding: 10px; }
  .panel { padding: 10px; min-height: 0; }
  .skins { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 552px; }
  .wheel-stage, .wheel { width: 250px; height: 250px; }
  .hub { inset: 52px; }
  .pct { font-size: 32px; }
  .tools input[type="number"] { width: 92px; flex-basis: 92px; }
  .gold-add label { display: none; }
  .cases { grid-template-columns: 1fr; }
  .cases-head, .inv-tools { align-items: flex-start; flex-direction: column; }
  .upgrade-banner { grid-template-columns: 1fr; gap: 10px; padding: 14px 11px 12px; }
  .upgrade-banner h1 { font-size: 20px; }
  .upgrade-banner p { font-size: 11px; }
  .banner-mode { display: none; }
  .upgrade-steps {
    grid-column: 1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .step-arrow { display: none; }
  .upgrade-step { width: auto; min-height: 44px; justify-content: center; padding: 6px; }
  .upgrade-step strong { font-size: 9px; }
  .duel-summary { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 4px; }
  .duel-slot { padding-inline: 7px; }
  .duel-arrow span { width: 21px; height: 21px; }
  .wheel::before { animation: orbitPulse 2.8s ease-in-out infinite !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .pie.spinning, .ticks.spinning, .reel.anim { transition-duration: 0.01ms !important; }
  .skin { transition: none !important; }
}
@keyframes orbitPulse {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 0.92; }
}

/* ============================================================
   GOLD DEPOSIT SELECTOR
   ============================================================ */
.gold-add {
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  flex: 1 1 auto;
  max-width: 230px;
}
.gold-add label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.gold-add label em {
  font-style: normal;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.gold-row { display: flex; align-items: center; gap: 6px; }
.gold-row input { width: 86px; flex: 1 1 auto; min-width: 0; }
#goldClear:hover {
  color: #ff7a7a;
  border-color: rgba(255, 82, 82, 0.5);
  background: rgba(255, 82, 82, 0.1);
}
.gold-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.gold-chips button {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 31px;
  padding: 0 7px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--muted-hi);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.22s var(--ease-spring), box-shadow 0.22s ease;
}
.gold-chips button:hover {
  color: var(--gold);
  border-color: rgba(251, 177, 0, 0.5);
  background: rgba(251, 177, 0, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(251, 177, 0, 0.12);
}
.gold-chips button:active { transform: scale(0.96); }
.stake-total { min-width: 0; }
.stake-total small {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 1px;
}
.panel-foot { align-items: flex-end; gap: 10px; }
@media (max-width: 700px) {
  .gold-add { max-width: 190px; }
  .gold-add label { display: none; }
  .gold-row input { width: 76px; }
}

/* ============================================================
   CASE DETAIL MODAL
   ============================================================ */
.case-detail {
  position: relative;
  isolation: isolate;
  width: min(600px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 0%, rgba(135, 93, 244, 0.18), transparent 42%),
    linear-gradient(180deg, var(--panel-hi), var(--panel-lo));
  border: 1px solid rgba(135, 93, 244, 0.35);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(5, 7, 15, 0.6), 0 0 40px rgba(135, 93, 244, 0.12);
  animation: resultPop 0.4s var(--ease-spring) both;
}
.case-detail h2 {
  margin: 0;
  font-family: Benzin, Rubik, sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.04em;
}
.case-sub { margin: 4px 0 16px; color: var(--muted-hi); font-size: 12px; }
.case-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-hi);
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.22s var(--ease-spring);
}
.case-close:hover {
  color: #fff;
  border-color: rgba(255, 82, 82, 0.55);
  background: rgba(255, 82, 82, 0.12);
  transform: rotate(90deg);
}
.case-drops { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.drop {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 7px 14px 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(220, 224, 236, 0.09);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s var(--ease-spring);
}
.drop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}
.drop:hover {
  border-color: rgba(135, 93, 244, 0.45);
  background: rgba(135, 93, 244, 0.07);
  transform: translateX(3px);
}
.drop img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(4, 6, 12, 0.5));
}
.drop img.fail { display: none; }
.drop-name { min-width: 0; }
.drop-name b { display: block; font-size: 13px; font-weight: 600; color: #f2f4fb; }
.drop-name small { display: block; font-size: 11px; color: var(--muted); }
.drop-g { color: var(--gold); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.drop-p {
  min-width: 58px;
  text-align: right;
  font-family: Benzin, Rubik, sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #c9b3ff;
  white-space: nowrap;
}
.case-detail .btn-go { margin-top: 2px; }
@media (max-width: 700px) {
  .case-detail { padding: 16px 12px; }
  .drop { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; padding-inline: 10px; }
  .drop-p { grid-column: 2; text-align: left; min-width: 0; }
  .drop-g { text-align: right; }
  .drop img { width: 38px; height: 38px; }
}

/* ============================================================
   GGSTAND-STYLE CASES + PAGES
   ============================================================ */
.rail-links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.rail-links + .rail-foot { margin-top: 10px; border-top: 0; padding-top: 0; }
.tab-mini {
  min-height: 30px;
  justify-content: flex-start;
  padding: 0 8px;
  border-radius: 7px;
}
.tab-mini span { font-size: 10.5px; letter-spacing: 0.03em; text-transform: none; font-weight: 400; }
.tab-mini:hover { background: rgba(255, 255, 255, 0.04); transform: none; }

.case-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 61px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-hi);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.22s var(--ease-spring);
}
.cat-chip i {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 61px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}
.cat-chip:hover { color: #fff; border-color: rgba(135, 93, 244, 0.5); transform: translateY(-1px); }
.cat-chip.on {
  color: #fff;
  background: var(--grad-btn);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(114, 101, 253, 0.35);
}
.cat-chip.on i { background: rgba(255, 255, 255, 0.22); color: #fff; }

.cases-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ggcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel-lo));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(6, 8, 18, 0.32);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
  animation: cardIn 0.45s var(--ease-spring) both;
}
.ggcase::before {
  content: "";
  position: absolute;
  z-index: 3;
  width: 45%;
  height: 180%;
  left: -75%;
  top: -40%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(151, 86, 240, 0.16), transparent);
  transition: left 0.8s ease;
  pointer-events: none;
}
.ggcase:hover {
  transform: translateY(-6px);
  border-color: rgba(135, 93, 244, 0.55);
  box-shadow: 0 24px 54px rgba(6, 8, 18, 0.46), 0 0 30px rgba(135, 93, 244, 0.15);
}
.ggcase:hover::before { left: 135%; }
.ggcase-pic {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 62%, rgba(135, 93, 244, 0.16), transparent 58%),
    #1d2138;
}
.ggcase-pic img { max-height: 104px; max-width: 100%; object-fit: contain; transition: transform 0.5s var(--ease-spring); }
.ggcase:hover .ggcase-pic img { transform: translateY(-4px) scale(1.05); }
.ggcase-pic img.fail { display: none; }
.dual-img { display: flex; gap: 6px; }
.dual-img img { max-height: 84px; max-width: 74px; object-fit: contain; }
.case-fallback {
  font-family: Benzin, Rubik, sans-serif;
  font-size: 44px;
  color: rgba(201, 179, 255, 0.5);
  text-shadow: 0 0 24px rgba(135, 93, 244, 0.5);
}
.ggcase-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px 12px;
  border-top: 1px solid rgba(220, 224, 236, 0.07);
}
.ggcase-body h3 { margin: 0; font-size: 13.5px; font-weight: 600; color: #f2f4fb; }
.ggcase-body small { color: var(--muted); font-size: 10.5px; }
.ggcase-body .btn-mini { margin-top: 8px; min-height: 34px; font-size: 11px; letter-spacing: 0.06em; }

/* profile */
.profile-head {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(135, 93, 244, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(135, 93, 244, 0.2), transparent 55%),
    linear-gradient(180deg, #171032, #120d24 60%, #0c0918);
  box-shadow: 0 18px 44px rgba(6, 8, 18, 0.45);
}
.profile-avatar { display: flex; align-items: center; gap: 14px; }
.profile-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(251, 177, 0, 0.4), 0 0 26px rgba(151, 86, 240, 0.35);
}
.profile-avatar b { display: block; font-size: 19px; font-weight: 700; }
.profile-avatar span { color: var(--gold); font-size: 12px; font-weight: 600; }
.profile-xp { flex: 1; min-width: 220px; }
.xp-bar {
  height: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(220, 224, 236, 0.1);
}
.xp-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--grad-vio);
  box-shadow: 0 0 14px rgba(151, 86, 240, 0.6);
  transition: width 0.6s var(--ease-spring);
}
.profile-xp small { display: block; margin-top: 7px; color: var(--muted-hi); font-size: 11px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.stat-card {
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel-lo));
  transition: border-color 0.25s ease, transform 0.25s var(--ease-spring);
}
.stat-card:hover { border-color: rgba(135, 93, 244, 0.4); transform: translateY(-2px); }
.stat-card span { display: block; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.stat-card b { display: block; margin-top: 4px; font-size: 16px; font-weight: 700; color: var(--text); }
.profile-recent h2 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.recent-drops { display: flex; flex-direction: column; gap: 6px; }
.recent-drop {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(220, 224, 236, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.recent-drop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}
.recent-drop:hover { border-color: rgba(135, 93, 244, 0.4); background: rgba(135, 93, 244, 0.06); }
.recent-drop img { width: 42px; height: 42px; object-fit: contain; }
.recent-drop img.fail { display: none; }
.recent-drop b { display: block; font-size: 13px; font-weight: 600; }
.recent-drop small { display: block; color: var(--muted); font-size: 11px; }
.recent-drop > div { min-width: 0; }
.recent-drop span { color: var(--gold); font-weight: 700; font-size: 12.5px; }

/* doc pages (tos / privacy / faq) */
.page-head { margin-bottom: 14px; }
.page-head h1 {
  margin: 0;
  font-family: Benzin, Rubik, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
}
.page-head p { margin: 4px 0 0; color: var(--muted); }
.doc {
  max-width: 780px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(52, 57, 83, 0.75), rgba(39, 43, 66, 0.9));
}
.doc h3 { margin: 18px 0 6px; font-size: 14.5px; font-weight: 600; color: #c9b3ff; }
.doc h3:first-child { margin-top: 0; }
.doc p { margin: 0 0 10px; color: var(--muted-hi); font-size: 13px; line-height: 1.65; }
.doc details {
  border: 1px solid rgba(220, 224, 236, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 11px 14px;
  margin-bottom: 8px;
  transition: border-color 0.25s ease;
}
.doc details:hover { border-color: rgba(135, 93, 244, 0.4); }
.doc details[open] { border-color: rgba(135, 93, 244, 0.35); }
.doc summary { cursor: pointer; font-weight: 600; color: var(--text-soft); }
.doc details p { margin: 10px 0 2px; }

@media (max-width: 700px) {
  .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ggcase-pic { height: 104px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.collage-img { display: flex; align-items: center; justify-content: center; gap: 2px; }
.collage-img img { max-height: 72px; max-width: 52px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(4,6,12,0.5)); }
.collage-img img:nth-child(2) { max-height: 88px; max-width: 60px; }


/* ============================================================
   GGSTAND-STYLE CASES PAGE
   ============================================================ */
.hero-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 210px;
  margin-bottom: 16px;
  padding: 24px 28px;
  border: 1px solid rgba(251, 177, 0, 0.3);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 82% 40%, rgba(251, 177, 0, 0.22), transparent 55%),
    radial-gradient(ellipse at 15% 110%, rgba(151, 86, 240, 0.25), transparent 55%),
    linear-gradient(180deg, #171032, #120d24 55%, #0c0918);
  box-shadow: 0 20px 50px rgba(6, 8, 18, 0.5);
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(73deg, transparent 0 30%, rgba(255, 255, 255, 0.03) 30% 44%, transparent 44%),
    linear-gradient(104deg, transparent 0 52%, rgba(255, 255, 255, 0.035) 52% 66%, transparent 66%);
  clip-path: polygon(12% 0, 90% 0, 100% 100%, 30% 100%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero-badge {
  padding: 3px 10px;
  border-radius: 61px;
  background: rgba(251, 177, 0, 0.16);
  border: 1px solid rgba(251, 177, 0, 0.4);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.hero-copy h2 {
  margin: 0;
  font-family: Benzin, Rubik, sans-serif;
  font-size: 34px;
  letter-spacing: 0.04em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(251, 177, 0, 0.3));
}
.hero-pool { display: flex; align-items: baseline; gap: 8px; }
.hero-pool b { font-size: 20px; color: #fff; }
.hero-pool span { color: var(--muted-hi); font-size: 12px; }
.hero-btn {
  width: auto;
  min-height: 44px;
  padding: 0 22px;
  margin-top: 4px;
  background: var(--grad-gold);
  color: #241704;
  box-shadow: 0 10px 28px rgba(251, 177, 0, 0.3);
}
.hero-btn i { font-style: normal; margin-left: 6px; }
.hero-timer { color: var(--muted-hi); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.hero-art {
  position: absolute;
  right: -30px;
  top: -20px;
  bottom: -20px;
  width: 42%;
  background:
    radial-gradient(circle at 70% 50%, rgba(251, 177, 0, 0.25), transparent 60%),
    repeating-conic-gradient(from 0deg at 70% 50%, rgba(251, 177, 0, 0.06) 0 12deg, transparent 12deg 24deg);
  pointer-events: none;
}

/* toolbar */
.case-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(46, 49, 74, 0.55);
}
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-hi);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.22s var(--ease-spring);
}
.tb-btn svg { width: 20px; height: 20px; }
.tb-btn:hover { color: #fff; border-color: rgba(135, 93, 244, 0.55); background: rgba(135, 93, 244, 0.12); transform: translateY(-1px); }
.tb-heart.on { color: #ff5f7e; border-color: rgba(241, 0, 117, 0.5); background: rgba(241, 0, 117, 0.1); }
.tb-select select {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font: 500 12.5px Rubik, sans-serif;
  outline: none;
  cursor: pointer;
}
.tb-select select:focus { border-color: rgba(135, 93, 244, 0.6); }
.tb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 200px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.tb-search svg { width: 17px; height: 17px; color: var(--muted); flex: 0 0 auto; }
.tb-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 13px Rubik, sans-serif; }
.tb-search input::placeholder { color: #556080; }
.tb-price {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.tb-price .coin img { width: 16px; height: 16px; border-radius: 50%; display: block; }
.tb-price input {
  width: 64px;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font: 600 12.5px Rubik, sans-serif;
}
.tb-sep { width: 1px; height: 20px; background: var(--line); }
.tb-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted-hi); font-size: 12px; font-weight: 500; white-space: nowrap; }
.tb-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tb-toggle i { width: 34px; height: 19px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); position: relative; transition: background 0.2s ease; flex: 0 0 auto; }
.tb-toggle i:before { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform 0.18s ease; }
.tb-toggle input:checked + i { background: var(--grad-btn); }
.tb-toggle input:checked + i:before { transform: translateX(15px); }

/* free case */
.free-case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(135, 93, 244, 0.3);
  border-radius: 13px;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(135, 93, 244, 0.14), transparent 60%),
    linear-gradient(180deg, var(--panel-hi), var(--panel-lo));
}
.fc-left { flex: 1; min-width: 0; }
.fc-left b { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; }
.fc-progress { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.fc-progress i { display: block; height: 100%; border-radius: 99px; background: var(--grad-vio); box-shadow: 0 0 12px rgba(151, 86, 240, 0.6); transition: width 0.5s ease; }
.fc-right { display: flex; align-items: center; gap: 12px; }
.fc-right small { color: var(--muted); font-size: 10.5px; }
.fc-right b { font-family: Benzin, Rubik, sans-serif; font-size: 17px; color: #c9b3ff; letter-spacing: 0.05em; }
#fcClaim:disabled { opacity: 0.4; }
#fcClaim.pulse { animation: buttonCharge 0.9s ease-in-out infinite alternate; }

/* sections + cards */
.case-section { margin-bottom: 22px; }
.cs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cs-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: #f2f4fb;
}
.cs-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--grad-btn);
  box-shadow: 0 0 14px rgba(114, 101, 253, 0.5);
  display: inline-block;
}
.cs-head span { color: var(--muted); font-size: 12px; }
.cs-collapse {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-hi);
  border-radius: 8px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cs-collapse:hover { color: #fff; border-color: rgba(135, 93, 244, 0.5); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.gcard {
  position: relative;
  cursor: pointer;
  animation: cardIn 0.45s var(--ease-spring) both;
}
.gcard-art {
  position: relative;
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 50% 60%, rgba(135, 93, 244, 0.14), transparent 60%),
    linear-gradient(180deg, #232842, #171a2e);
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}
.gcard-art > img,
.gcard-art .collage-img,
.gcard-art .dual-img { transition: transform 0.45s var(--ease-spring); }
.gcard:hover .gcard-art {
  transform: translateY(-5px);
  border-color: rgba(135, 93, 244, 0.6);
  box-shadow: 0 20px 44px rgba(6, 8, 18, 0.5), 0 0 30px rgba(135, 93, 244, 0.16);
}
.gcard:hover .gcard-art > img,
.gcard:hover .gcard-art .collage-img,
.gcard:hover .gcard-art .dual-img { transform: scale(1.07) translateY(-3px); }
.gcard-art > img { max-height: 122px; max-width: 100%; object-fit: contain; }
.card-heart {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(220, 224, 236, 0.14);
  background: rgba(10, 13, 24, 0.6);
  color: var(--muted-hi);
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gcard:hover .card-heart { opacity: 1; }
.card-heart svg { width: 16px; height: 16px; }
.card-heart:hover { color: #ff5f7e; border-color: rgba(241, 0, 117, 0.5); }
.gcard.faved .card-heart { opacity: 1; color: #ff5f7e; border-color: rgba(241, 0, 117, 0.45); background: rgba(241, 0, 117, 0.12); }
.gcard.faved .card-heart svg path { fill: currentColor; }
.gcard-price {
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 61px;
  background: linear-gradient(180deg, #ffc95e, #f09a1a);
  color: #241704;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(240, 154, 26, 0.4);
  white-space: nowrap;
}
.gcard-price img { width: 14px; height: 14px; border-radius: 50%; }
.rarity-strip {
  display: flex;
  height: 5px;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  margin: -3px 6px 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.rarity-strip i { display: block; height: 100%; }
.gcard-name { margin: 9px 2px 0; font-size: 13px; font-weight: 600; color: var(--text-soft); text-align: center; transition: color 0.2s ease; }
.gcard:hover .gcard-name { color: #fff; }

/* case page */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0 14px;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-hi);
  font: 500 12.5px Rubik, sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.back-btn svg { width: 16px; height: 16px; }
.back-btn:hover { color: #fff; border-color: rgba(135, 93, 244, 0.55); }
.casepage-head {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(135, 93, 244, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 85% 30%, rgba(135, 93, 244, 0.18), transparent 55%),
    linear-gradient(180deg, #171032, #120d24 60%, #0c0918);
}
.casepage-art {
  width: 190px;
  height: 150px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 60%, rgba(135, 93, 244, 0.18), transparent 62%), #1d2138;
}
.casepage-art img { max-height: 120px; max-width: 90%; object-fit: contain; }
.casepage-art .collage-img img { max-height: 64px; max-width: 56px; }
.casepage-info h1 {
  margin: 0 0 6px;
  font-family: Benzin, Rubik, sans-serif;
  font-size: 26px;
  letter-spacing: 0.03em;
}
.cp-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted-hi); font-size: 12.5px; margin-bottom: 14px; }
.cp-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cp-actions .btn-go { width: auto; min-width: 240px; }
.cp-fast { color: var(--muted-hi); font-size: 12.5px; }

.spinner-wrap { margin-bottom: 20px; }
.spinner-frame {
  position: relative;
  overflow: hidden;
  height: 190px;
  border: 1px solid rgba(135, 93, 244, 0.3);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(135, 93, 244, 0.1), transparent 62%),
    #12152a;
  box-shadow: 0 24px 62px rgba(5, 7, 15, 0.55), 0 0 34px rgba(135, 93, 244, 0.1);
}
.spinner-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, #0e1122 0%, transparent 12%, transparent 88%, #0e1122 100%);
}
.spinner { display: flex; height: 100%; align-items: stretch; will-change: transform; }
.spinner.anim { transition: transform 5.4s cubic-bezier(0.12, 0.7, 0.05, 1); }
.spinner.anim.fast { transition-duration: 1.5s; }
.spinner-item {
  flex: 0 0 170px;
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  border-right: 1px solid rgba(220, 224, 236, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}
.spinner-item img { height: 84px; max-width: 130px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(4, 6, 12, 0.5)); }
.spinner-item img.fail { display: none; }
.spinner-item b { font-size: 12px; color: var(--muted); text-align: center; }
.spinner-item b.wn { font-weight: 400; }
.spinner-item b.sn { font-weight: 800; color: #f2f4fb; }
.spinner-item .glow { height: 58px; opacity: 0.9; }
.spinner-item img, .spinner-item b { position: relative; z-index: 1; }
.spinner-item { position: relative; overflow: hidden; }
.spinner-marker {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: var(--gold);
  z-index: 5;
  box-shadow: 0 0 16px var(--gold);
}
.spinner-marker::before, .spinner-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
}
.spinner-marker::before { top: 0; border-top: 13px solid var(--gold); }
.spinner-marker::after { bottom: 0; border-bottom: 13px solid var(--gold); }

.casepage-drops h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.drops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 9px;
}
.drop-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 12px 10px 10px;
  border: 1px solid rgba(220, 224, 236, 0.09);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--panel-hi), var(--panel-lo));
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), border-color 0.25s ease, box-shadow 0.3s ease;
}
.drop-tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.drop-tile:hover { transform: translateY(-4px); border-color: rgba(135, 93, 244, 0.45); box-shadow: 0 14px 30px rgba(5, 7, 15, 0.4); }
.drop-tile img { height: 64px; max-width: 100%; object-fit: contain; margin-bottom: 4px; filter: drop-shadow(0 8px 10px rgba(4, 6, 12, 0.5)); }
.drop-tile img.fail { display: none; }
.drop-tile b { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.drop-tile small { font-size: 12px; font-weight: 700; color: #f2f4fb; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-g { color: var(--gold); font-size: 12px; font-weight: 700; }
.dt-p {
  font-family: Benzin, Rubik, sans-serif;
  font-size: 12.5px;
  color: #c9b3ff;
  letter-spacing: 0.03em;
}

/* ggstand-style ticker chips */
.chip { border-radius: 10px; padding: 4px 10px 4px 5px; gap: 7px; }
.chip-mult {
  font-family: Benzin, Rubik, sans-serif;
  font-size: 9.5px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-soft);
}
.chip.win .chip-mult { background: rgba(16, 183, 89, 0.25); color: #7dffb0; }
.chip.lose .chip-mult { background: rgba(255, 82, 82, 0.2); color: #ffb3b3; }
.chip-body { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.chip-body b { font-size: 11px; font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-body small { font-size: 9.5px; opacity: 0.8; }
.chip.win .chip-body small { color: #7dffb0; }

@media (max-width: 900px) {
  .hero-copy h2 { font-size: 26px; }
  .hero-art { display: none; }
  .case-toolbar { gap: 7px; }
  .tb-search { flex: 1 1 100%; order: 10; }
}
@media (max-width: 700px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gcard-art { height: 128px; }
  .spinner-item { flex: 0 0 130px; width: 130px; }
  .spinner-item img { height: 62px; }
  .casepage-head { flex-direction: column; align-items: flex-start; }
  .drops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* multi-open */
.qty-group {
  display: inline-flex;
  border: 1px solid rgba(135, 93, 244, 0.35);
  border-radius: 11px;
  overflow: hidden;
}
.qty {
  min-width: 52px;
  min-height: 48px;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-hi);
  font: 700 14px Rubik, sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.qty + .qty { border-left: 1px solid rgba(135, 93, 244, 0.3); }
.qty:hover { color: #fff; background: rgba(135, 93, 244, 0.14); }
.qty.on { color: #fff; background: var(--grad-btn); box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12); }
.btn-fast {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #201303;
  background: linear-gradient(135deg, #ffd76a, #fbb100 55%, #e08d00);
  box-shadow: 0 10px 30px rgba(251, 177, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s ease, filter 0.28s ease, opacity 0.2s ease;
}
.btn-fast::before {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -35%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s ease;
}
.btn-fast svg { width: 17px; height: 17px; }
.btn-fast:not(:disabled):hover {
  transform: translateY(-2px);
  filter: saturate(1.08) brightness(1.05);
  box-shadow: 0 14px 34px rgba(251, 177, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-fast:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-alt {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #2dd4bf, #0d9488 55%, #0f766e);
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s ease, filter 0.28s ease, opacity 0.2s ease;
}
.btn-alt::before {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -35%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s ease;
}
.btn-alt:not(:disabled):hover {
  transform: translateY(-2px);
  filter: saturate(1.1) brightness(1.05);
  box-shadow: 0 14px 34px rgba(13, 148, 136, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-alt:disabled { opacity: 0.4; cursor: not-allowed; }
.spinner-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.spinner-stack .spinner-frame { margin: 0; }

.cp-actions-bar { display: flex; justify-content: center; margin-bottom: 14px; }
.cp-actions-bar .cp-actions { justify-content: center; }

.casepage-head { position: relative; padding-bottom: 96px; }
.casepage-head .cp-actions {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  justify-content: center;
  margin: 0;
}
@media (max-width: 700px) {
  .casepage-head { padding-bottom: 18px; }
  .casepage-head .cp-actions { position: static; transform: none; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
}

.casepage-head .cp-actions {
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: none;
}
.cp-main { display: flex; align-items: center; gap: 14px; justify-self: center; grid-column: 2; }
.casepage-head .cp-actions .btn-fast { justify-self: start; grid-column: 3; margin-left: 14px; }
@media (max-width: 700px) {
  .casepage-head .cp-actions { position: static; display: flex; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
  .cp-main { justify-self: auto; }
  .casepage-head .cp-actions .btn-fast { margin-left: 0; }
}

/* final: actions in-flow, spanning full card width so center == roulette center */
.casepage-head { padding-bottom: 18px !important; }
.casepage-head .cp-actions {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 16px 0 0 calc(-190px - 20px) !important;
  width: calc(100% + 190px + 20px) !important;
}
.casepage-head .cp-actions .cp-main { grid-column: 2; justify-self: center; display: flex; align-items: center; gap: 14px; }
.casepage-head .cp-actions .btn-fast { grid-column: 3; justify-self: start; margin-left: 14px; }
@media (max-width: 700px) {
  .casepage-head .cp-actions {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    margin: 12px 0 0 0 !important;
    width: 100% !important;
    gap: 10px;
  }
}

.casepage-info { flex: 1 1 auto; min-width: 0; }

/* open button center == roulette marker line */
.casepage-head .cp-actions {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
}
.casepage-head .cp-actions .qty-group { grid-column: 1; justify-self: end; margin-right: 14px; }
.casepage-head .cp-actions #cpOpen { grid-column: 2; justify-self: center; }
.casepage-head .cp-actions .btn-fast { grid-column: 3; justify-self: start; margin-left: 14px; }

/* qty aligns with info text left edge; fast keeps same offset from open */
.casepage-head .cp-actions .qty-group {
  grid-column: 1;
  justify-self: start;
  margin-left: 210px;
  margin-right: 0;
}
@media (max-width: 1300px) {
  .casepage-head .cp-actions .qty-group { justify-self: end; margin-left: 0; margin-right: 14px; }
}

/* qty pinned at info-text edge, open centered on the marker, fast mirrors the left gap */
.casepage-head .cp-actions .btn-fast {
  grid-column: 3;
  justify-self: start;
  white-space: nowrap;
  margin-left: var(--cp-gap, 14px);
  width: auto;
  min-width: 0;
  padding: 0 26px;
  gap: 8px;
}
