/* ============================================================
   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.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("ui/fonts/Rubik-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("ui/fonts/Rubik-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("ui/fonts/Rubik-Bold.woff") format("woff");
  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;
  /* logo red — matches ui/logo-offgrader.svg */
  --logo-red: #c0282a;

  /* 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: calc(100vh / var(--pz, 1));
  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;
  -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 — page scrollbar removed entirely (body scroller);
   inner lists keep thin 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); }
html, body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }

/* ============================================================
   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: calc(100vh / var(--pz, 1));
  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: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(192, 40, 42, 0.34));
  transition: transform 0.35s var(--ease-spring), filter 0.35s ease;
}
.rail-logo:hover img {
  transform: translateY(-2px);
  filter: drop-shadow(0 9px 22px rgba(192, 40, 42, 0.5));
}
.rail-word {
  font-family: Benzin, Rubik, sans-serif;
  font-size: 15px;
  font-weight: 800;
  font-variation-settings: normal;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
  -webkit-text-stroke: 0.32px currentColor;
}
.rail-word i { font-style: normal; color: var(--logo-red); -webkit-text-stroke: 0.75px currentColor; }
.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: stretch;
  gap: 0;
  padding: 0;
  height: 84px;
  position: static;
  z-index: 20;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg);
}
.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; }

.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 ribbon: ggstand-style rectangular cards that touch ---- */
.feed-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
}
.ticker {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 2px 0 2px 2px;
  box-sizing: border-box;
  overflow: hidden;
  scrollbar-width: none;
}
.ticker::-webkit-scrollbar { display: none; }
/* ribbon + overlaid online pill, fading out smoothly before the balance */
.ticker-frame {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  height: 100%;
}
.ticker-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: 44px;
  background: linear-gradient(90deg, rgba(17, 22, 41, 0) 0%, rgba(17, 22, 41, 0.6) 38%, #111a2d 85%);
  pointer-events: none;
}
.drop-card {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 100%;
  padding: 6px 5px;
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 16%, #151b2b), #0f1320 80%);
  border: 0;
  border-radius: 2px;
}
.drop-card:hover { transform: none; }
.drop-card.enter { animation: dropIn 0.28s ease-out backwards; }
@keyframes dropIn { from { opacity: 0; } to { opacity: 1; } }
.drop-card .drop-box {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; width: 100%; max-width: 86px; position: relative; z-index: 1;
}
.drop-card img { width: 88px; height: 52px; object-fit: contain; filter: drop-shadow(0 5px 7px rgba(0,0,0,.5)); }
.drop-card .drop-name {
  font-size: 10.5px; font-weight: 500; color: rgba(238, 241, 249, 0.62); letter-spacing: 0.02em;
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.drop-card .drop-glow {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background: linear-gradient(transparent, var(--rc));
  opacity: .55; pointer-events: none;
}

.online {
  position: absolute;
  z-index: 2;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(21, 27, 43, 0.6);
  padding: 6px 11px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  color: #f5d78d;
  font-size: 13px;
  font-weight: 800;
}
.online i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
  animation: onlinePulse 1.8s ease-out infinite;
}
.online em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: rgba(233, 236, 245, 0.4);
}

.top-meta { display: flex; align-items: center; gap: 12px; padding: 0 18px 0 0; height: 100%; position: relative; z-index: 2; background: #111a2d; }
.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 {
  position: relative;
  overflow: hidden;
  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: 0 !important; margin: 0 !important; }
.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 {
  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 { color: #556080; }
.tools input[type="number"] { width: 104px; flex: 0 0 104px; }
.tools input:hover { border-color: rgba(220, 224, 236, 0.22); }
.tools 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; }
.sort { display: flex; align-items: center; gap: 6px; }

.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; }
.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: 318px; height: 318px; position: relative; }
.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: 318px;
  height: 318px;
  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-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: opacity 0.22s ease;
}
/* ---- in-hub result reveal (no popup) ---- */
.hub-result {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  text-align: center;
  opacity: 0;
  transform: none;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.hub.win .hub-main, .hub.lose .hub-main { opacity: 0; }
.hub.win .hub-result, .hub.lose .hub-result { opacity: 1; transform: none; }
.hub.win .hub-result {
  background:
    radial-gradient(circle at 50% 30%, rgba(16, 183, 89, 0.3), rgba(8, 24, 16, 0.94) 72%),
    #0a1410;
}
.hub.lose .hub-result {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 82, 82, 0.14), rgba(20, 8, 10, 0.95) 72%),
    #140a0c;
}
.hub-result img {
  width: 120px;
  height: 60px;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  mix-blend-mode: normal;
  position: relative;
  z-index: 10;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 14px rgba(16, 183, 89, 0.35));
  animation: hrItemIn 0.55s var(--ease-spring) both;
}
.hr-name { font-size: 11px; font-weight: 400; color: var(--muted-hi); line-height: 1.25; letter-spacing: 0.02em; }
.hr-name b { display: inline-block; font-size: 13px; font-weight: 800; color: #fff; }
.hr-price { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; }
.hr-x { width: 34px; height: 34px; color: #ff7a7a; opacity: 0.85; animation: hrXIn 0.4s var(--ease-spring) both; }
@keyframes hrItemIn { from { transform: translateY(8px) scale(0.6); opacity: 0; } }
@keyframes hrXIn { from { transform: scale(0.4) rotate(-14deg); opacity: 0; } }
/* hub blink pulses */
.hub.win {
  border-color: rgba(16, 183, 89, 0.6);
  animation: hubWinPulse 1.5s ease-out both;
}
.hub.lose {
  border-color: rgba(255, 82, 82, 0.5);
  animation: hubLosePulse 0.9s ease-out both;
}
@keyframes hubWinPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 183, 89, 0.55), inset 0 0 24px rgba(16, 183, 89, 0.4); }
  30% { box-shadow: 0 0 0 14px rgba(16, 183, 89, 0), inset 0 0 30px rgba(16, 183, 89, 0.5); }
  55% { box-shadow: 0 0 0 0 rgba(16, 183, 89, 0.4), inset 0 0 22px rgba(16, 183, 89, 0.35); }
  80% { box-shadow: 0 0 0 10px rgba(16, 183, 89, 0), inset 0 0 26px rgba(16, 183, 89, 0.4); }
  100% { box-shadow: 0 0 34px rgba(16, 183, 89, 0.28), inset 0 0 18px rgba(16, 183, 89, 0.22); }
}
@keyframes hubLosePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.5), inset 0 0 22px rgba(255, 82, 82, 0.35); }
  35% { box-shadow: 0 0 0 12px rgba(255, 82, 82, 0), inset 0 0 26px rgba(255, 82, 82, 0.4); }
  60% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.35), inset 0 0 20px rgba(255, 82, 82, 0.3); }
  100% { box-shadow: 0 0 26px rgba(255, 82, 82, 0.16), inset 0 0 12px rgba(255, 82, 82, 0.14); }
}

.visually-hidden { display: none !important; }

.duel-summary {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: stretch;
  gap: 7px;
  margin-top: 4px;
}
.duel-slot {
  --slot-rarity: #875df4;
  position: relative;
  min-width: 0;
  min-height: 90px;
  overflow: hidden;
  padding: 9px;
  border: 1px solid rgba(220, 224, 236, 0.11);
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 100%, color-mix(in srgb, var(--slot-rarity) 18%, transparent), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(8, 11, 22, 0.56));
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.duel-slot::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--slot-rarity);
  opacity: 0.28;
  box-shadow: 0 0 12px var(--slot-rarity);
}
.duel-slot.has-value {
  border-color: color-mix(in srgb, var(--slot-rarity) 55%, rgba(220, 224, 236, 0.18));
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--slot-rarity) 7%, transparent), 0 8px 22px rgba(4, 6, 14, 0.22);
}
.duel-slot.has-value::after { opacity: 0.9; }
.duel-kicker {
  display: block;
  margin-bottom: 5px;
  color: #687394;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.duel-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.duel-art {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), rgba(4, 6, 14, 0.38));
  color: #4f5875;
  font-size: 16px;
  font-weight: 800;
}
.duel-art img {
  grid-area: 1 / 1;
  width: 92%;
  max-height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(2, 3, 8, 0.58));
}
.duel-art span { grid-area: 1 / 1; }
.duel-art img:not([hidden]) + span { display: none; }
.duel-copy { min-width: 0; }
.duel-copy b {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.duel-copy small {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-top: 5px;
  padding: 2px 7px;
  border: 1px solid rgba(251, 177, 0, 0.2);
  border-radius: 999px;
  background: rgba(251, 177, 0, 0.08);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.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.52), transparent);
}
.duel-arrow span {
  position: relative;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(135, 93, 244, 0.46);
  border-radius: 50%;
  background: #191d38;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(135, 93, 244, 0.16);
}
#wheelPanel #go { margin-top: 0; }

/* ---- target multiplier / chance chips under the wheel ---- */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.chips + .chips { margin-top: 0; }
.chips + .btn-go { margin-top: 0; }
.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-icon { position: relative; z-index: 1; }
.go-arrow { display: none !important; }
.go-icon {
  width: 17px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  fill: currentColor;
}
.btn-go.spinning {
  animation: buttonCharge 0.8s ease-in-out infinite alternate;
}
.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);
}

.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; }

.view-enter { animation: viewEnter 0.42s var(--ease-spring) both; }

.site-footer {
  width: 100%;
  margin-top: auto;
  padding: 28px 22px 32px;
  border-top: 1px solid rgba(92, 96, 139, .3);
  background: rgba(22, 26, 46, .5);
}
.site-footer-nav {
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  margin: 0;
}
.site-footer-nav button {
  overflow: visible;
  padding: 0;
  border: 0;
  color: #8c94b5;
  background: none;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: color .2s ease, transform .2s ease;
}
.site-footer-nav button:hover { color: #d6daf0; transform: translateX(3px); }
@media (max-width: 700px) {
  .site-footer { padding: 22px 14px 26px; }
  .site-footer-nav { gap: 14px 20px; }
  .site-footer-nav button { font-size: 11px; line-height: 1.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 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 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; }
  .feed-wrap { 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; }
  .hub-result img { height: 48px; max-width: 96px; }
  .hr-name { font-size: 10px; }
  .hr-name b { font-size: 11px; }
  .hr-price { font-size: 11px; }
  .hr-x { width: 28px; height: 28px; }
  .tools input[type="number"] { width: 92px; flex-basis: 92px; }
  .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) 27px minmax(0, 1fr); gap: 4px; }
  .duel-slot { min-height: 82px; padding: 7px; }
  .duel-item { grid-template-columns: 40px minmax(0, 1fr); gap: 6px; }
  .duel-art { width: 40px; height: 40px; }
  .duel-art img { max-height: 35px; }
  .duel-arrow span { width: 22px; height: 22px; font-size: 11px; }
  .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; }
}

/* ============================================================
   UPGRADE BALANCE SLIDER
   ============================================================ */
.balance-slider-panel {
  display: block;
  padding: 13px 2px 0;
}
.gold-add {
  width: 100%;
  transition: opacity .2s ease, filter .2s ease;
}
.gold-slider-head,
.gold-range-values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.gold-slider-head { margin-bottom: 9px; }
.gold-slider-head > span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.gold-range {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 12px 7px 7px;
  border: 1px solid rgba(135, 93, 244, .28);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(34, 37, 62, .96), rgba(18, 21, 39, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 8px 22px rgba(5, 7, 15, .2);
}
.gold-range > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #241704;
  background: var(--grad-gold);
  box-shadow: 0 5px 14px rgba(251, 177, 0, .22);
  font-size: 13px;
  font-weight: 900;
}
.gold-range input[type="range"] {
  --gold-fill: 0%;
  width: 100%;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--vio-b) 0 var(--gold-fill), rgba(115, 122, 157, .22) var(--gold-fill) 100%);
  box-shadow: inset 0 1px 3px rgba(5, 7, 15, .65);
}
.gold-range input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}
.gold-range input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border: 3px solid #fff;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--vio-b);
  box-shadow: 0 0 0 3px rgba(135, 93, 244, .22), 0 4px 12px rgba(5, 7, 15, .55);
}
.gold-range input[type="range"]::-moz-range-track {
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(115, 122, 157, .22);
}
.gold-range input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--vio-b);
}
.gold-range input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--vio-b);
  box-shadow: 0 0 0 3px rgba(135, 93, 244, .22), 0 4px 12px rgba(5, 7, 15, .55);
}
.gold-range-values { margin-top: 7px; }
.gold-range-values output {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}
.gold-add.is-disabled { opacity: .48; filter: saturate(.55); }
.gold-add.is-disabled .gold-range { border-color: var(--line); box-shadow: none; }
.gold-range input[type="range"]:disabled { cursor: not-allowed; }
@media (max-width: 700px) {
  .gold-slider-head > span { font-size: 11px; }
  .gold-range { grid-template-columns: 31px minmax(0, 1fr); padding-right: 10px; }
  .gold-range > span { width: 31px; height: 31px; }
}

/* ============================================================
   CASE DETAIL MODAL
   ============================================================ */
.case-detail {
  position: relative;
  isolation: isolate;
  width: min(600px, 100%);
  max-height: calc(86vh / var(--pz, 1));
  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; }
.doc h4 { margin: 14px 0 5px; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin: 0 0 6px; color: var(--muted-hi); font-size: 13px; line-height: 1.65; }
.doc li:last-child { margin-bottom: 0; }
.doc a { color: #b7abf9; text-decoration: none; border-bottom: 1px solid rgba(183, 171, 249, 0.35); }
.doc a:hover { color: #d3c9ff; }
.doc strong { color: var(--text-soft); font-weight: 600; }
.doc button[data-footer-go] { background: transparent; border: 0; padding: 0; font: inherit; font-size: 13px; color: #b7abf9; cursor: pointer; border-bottom: 1px solid rgba(183, 171, 249, 0.35); }
.doc button[data-footer-go]:hover { color: #d3c9ff; }

@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);
}
.currency-suffix {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.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;
  display: inline-grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  line-height: 1;
  font-style: normal;
}
.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;
}
.case-grid.bare-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px 20px;
}
.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; }
.gcard-art > img.art-hero {
  max-height: none;
  height: 130%;
  width: auto;
  max-width: none;
  margin-top: -12%;
  filter: drop-shadow(0 10px 18px rgba(4, 6, 12, 0.5));
}
.gcard:hover .gcard-art > img.art-hero { transform: scale(1.05) translateY(-2px); filter: drop-shadow(0 16px 24px rgba(4, 6, 12, 0.6)) brightness(1.06); }

/* borderless hero-art city cases — no card around them */
.gcard.bare .gcard-art {
  height: auto;
  min-height: 210px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  overflow: visible;
}
.gcard.bare .gcard-art > img.art-hero {
  height: auto;
  width: 100%;
  max-width: 300px;
  margin: 0;
  filter: drop-shadow(0 14px 22px rgba(4, 6, 12, 0.55));
  transition: transform 0.4s var(--ease-spring), filter 0.3s ease;
}
.gcard.bare:hover .gcard-art { transform: none; box-shadow: none; }
.gcard.bare:hover .gcard-art > img.art-hero {
  transform: translateY(-7px) scale(1.03);
  filter: drop-shadow(0 22px 30px rgba(4, 6, 12, 0.7)) drop-shadow(0 0 22px rgba(135, 93, 244, 0.28));
}
.gcard.bare .gcard-price { bottom: 4px; }
.gcard.bare .rarity-strip { margin: 6px 18px 0; border-radius: 4px; }
.gcard.bare .gcard-name { font-size: 14.5px; font-weight: 700; color: var(--text); margin-top: 10px; }
.gcard.bare:hover .gcard-name { color: #fff; }
.gcard.bare .card-heart { top: 4px; right: 4px; }
.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;
}
.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: 230px;
  height: 200px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 60%, rgba(135, 93, 244, 0.18), transparent 62%), #1d2138;
}
.casepage-art img { max-height: 168px; max-width: 90%; object-fit: contain; }
.casepage-art img.art-hero {
  max-height: none;
  max-width: none;
  height: 240px;
  width: auto;
  margin-top: -18px;
  filter: drop-shadow(0 14px 22px rgba(4, 6, 12, 0.55));
}
.casepage-art:has(img.art-hero) {
  width: 300px;
  height: 260px;
  border-radius: 0;
  background: none;
  overflow: visible;
}
.casepage-art:has(img.art-hero) img.art-hero {
  height: 260px;
  margin-top: -26px;
}
.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;
}

/* ---- inventory v2 card (ПРОДАТЬ / ПОЛУЧИТЬ СКИН) ---- */
.icard {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: linear-gradient(168deg, #2a2f42 0%, #1d2132 55%, #171b2a 100%);
  border: 1px solid rgba(220, 224, 236, 0.09);
  border-radius: 14px;
  padding: 10px 10px 14px;
  overflow: hidden;
  text-align: center;
  min-height: 216px;
  transition: transform 0.3s var(--ease-spring), border-color 0.25s ease, box-shadow 0.3s ease;
  animation: cardIn 0.42s var(--ease-spring) both;
}
.icard:hover {
  transform: translateY(-3px);
  border-color: rgba(151, 86, 240, 0.4);
  box-shadow: 0 14px 30px rgba(5, 7, 15, 0.4), 0 0 18px rgba(135, 93, 244, 0.14);
}
.icard .glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  z-index: 0;
  opacity: 0.16;
  pointer-events: none;
}
.ic-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.ic-sell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #0d2c14;
  background: linear-gradient(180deg, #86dd91, #55c46a);
  box-shadow: 0 4px 12px rgba(85, 196, 106, 0.25);
  transition: filter 0.2s ease, transform 0.15s ease;
}
.ic-sell:hover { filter: brightness(1.08); }
.ic-sell:active { transform: scale(0.95); }
.ic-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 800;
  color: #f4f6ff;
}
.ic-art {
  position: relative;
  z-index: 1;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 10px;
}
.ic-art .ghost {
  position: absolute;
  inset: 0;
  display: none;
  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;
}
.ic-art:has(img.fail) .ghost { display: flex; }
.ic-art img {
  max-height: 66px;
  max-width: 84%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(4, 6, 12, 0.55));
  transition: transform 0.35s var(--ease-spring);
}
.icard:hover .ic-art img { transform: scale(1.06); }
.ic-get {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 0;
  width: calc(100% - 16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #f6d9a8;
  background: rgba(66, 62, 80, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.ic-get:hover {
  background: rgba(88, 84, 110, 0.7);
  border-color: rgba(246, 217, 168, 0.45);
}
.ic-get:active { transform: translateX(-50%) scale(0.96); }
.ic-w {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(214, 219, 233, 0.55);
  letter-spacing: 0.04em;
  line-height: 1.35;
  padding: 0 2px;
}
.ic-sn {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 800;
  color: #f2f4fb;
  line-height: 1.3;
  padding: 0 2px;
}
.ic-bar {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}

/* ============================================================
   WITHDRAW PAGE (Вывод предмета)
   ============================================================ */
.wd-page { max-width: 720px; margin: 0 auto; padding: 8px 0 46px; }
.wd-page [hidden] { display: none !important; }
.wd-head { text-align: center; margin-bottom: 28px; }
.wd-head h1 {
  margin: 0 0 8px;
  font-family: Benzin, Rubik, sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: .05em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #ffffff, #b9c2e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wd-head p { margin: 0; color: var(--muted-hi); font-size: 15px; }

.wd-steps {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 7vw, 68px);
  margin-bottom: 30px;
}
.wd-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .3s ease;
}
.wd-step i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3a4062;
  transition: background .3s ease, box-shadow .3s ease;
}
.wd-step.on { color: var(--gold); }
.wd-step.on i { background: var(--gold); box-shadow: 0 0 0 5px rgba(255, 203, 71, .14), 0 0 14px rgba(255, 203, 71, .5); }
.wd-step.done { color: var(--text-soft); }
.wd-step.done i { background: var(--green); box-shadow: 0 0 0 5px rgba(16, 183, 89, .12); }

.wd-card {
  background: linear-gradient(180deg, var(--panel-hi), var(--panel) 40%, var(--panel-lo));
  border-radius: 20px;
  padding: 30px clamp(18px, 4vw, 40px) 26px;
  box-shadow: 0 24px 60px rgba(5, 7, 15, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  text-align: center;
}
.wd-card h2 {
  margin: 0 0 10px;
  font-family: Benzin, Rubik, sans-serif;
  font-size: clamp(18px, 2.6vw, 23px);
  letter-spacing: .03em;
  color: var(--gold);
}
.wd-sub { margin: 0 auto 24px; max-width: 430px; color: var(--text-soft); font-size: 15px; }

.wd-avrow {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  background: linear-gradient(160deg, rgba(11, 14, 26, .5), rgba(11, 14, 26, .3));
  border-radius: 16px;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.wd-avbox {
  position: relative;
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border-radius: 16px;
  overflow: hidden;
  background: #262a40;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wd-avbox span { font-size: 26px; font-weight: 800; color: #4a5178; }
.wd-avbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wd-avtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wd-avtext b { font-size: 16.5px; }
.wd-avtext span { color: var(--muted-hi); font-size: 13px; line-height: 1.45; }
.wd-upload {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border: 0;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14.5px;
  color: #171a2c;
  background: linear-gradient(180deg, #f7f8ff, #d9def2);
  box-shadow: 0 8px 22px rgba(5, 7, 15, .35);
  transition: transform .2s var(--ease-spring), filter .2s ease;
}
.wd-upload:hover { filter: brightness(1.06); transform: translateY(-1px); }
.wd-upload:active { transform: scale(.96); }
.wd-upload svg { width: 16px; height: 16px; }

.wd-last {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: linear-gradient(160deg, rgba(11, 14, 26, .5), rgba(11, 14, 26, .3));
  border-radius: 14px;
  padding: 12px 14px;
}
.wd-lasttext { flex: 0 0 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wd-lasttext b { font-size: 14px; }
.wd-lasttext span { color: var(--muted-hi); font-size: 11.5px; line-height: 1.35; }
.wd-avatar-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
}
.wd-avatar-choice {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: visible;
  background: #262a40;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease-spring);
}
.wd-avatar-choice img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; display: block; }
.wd-avatar-choice:hover { border-color: rgba(255, 203, 71, .8); transform: translateY(-1px); }
.wd-avatar-choice:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wd-avatar-choice.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(16, 183, 89, .16), 0 0 15px rgba(16, 183, 89, .28);
}
.wd-avatar-check {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 17px;
  height: 17px;
  display: none;
  place-items: center;
  border: 2px solid #171a2c;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.wd-avatar-choice.selected .wd-avatar-check { display: grid; }

.wd-next { margin-top: 22px; border-radius: 14px; }

.wd-skinrow {
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: minmax(190px, 1.45fr) 42px repeat(3, minmax(100px, 1fr));
  gap: 4px;
  align-items: stretch;
  overflow-x: auto;
  padding: 1px 1px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(135, 93, 244, .5) transparent;
}
.wd-skin-tile,
.wd-steptile,
.wd-skin-arrow {
  min-height: 126px;
  background: linear-gradient(160deg, rgba(42, 47, 66, .96), rgba(25, 29, 45, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 14px 32px rgba(5, 7, 15, .28);
}
.wd-skin-tile {
  position: relative;
  overflow: hidden;
  border-radius: 16px 4px 4px 16px;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 10px 14px 12px;
  isolation: isolate;
}
.wd-skin-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #875df4, transparent);
  box-shadow: 0 0 14px rgba(135, 93, 244, .65);
}
.wd-skin-tile-glow {
  position: absolute;
  z-index: -1;
  inset: 20% 0 0;
  opacity: .38;
  filter: blur(16px);
  pointer-events: none;
}
.wd-skin-art { width: 138px; height: 78px; display: grid; place-items: center; }
.wd-skin-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 9px 14px rgba(0, 0, 0, .5));
}
.wd-skin-tile b {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #f3f0ff;
}
.wd-skin-arrow {
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #8f96ba;
}
.wd-skin-arrow svg { width: 22px; height: 22px; }
.wd-steptile {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #767d9e;
  transition: color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s var(--ease-spring);
}
.wd-steptile:last-child { border-radius: 4px 16px 16px 4px; }
.wd-steptile::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.wd-steptile.on {
  color: #fff7d8;
  background: linear-gradient(160deg, rgba(72, 59, 35, .96), rgba(37, 32, 33, .98));
  box-shadow: inset 0 1px 0 rgba(255, 235, 170, .08), 0 14px 34px rgba(5, 7, 15, .3);
}
.wd-steptile.on::after { background: var(--gold); box-shadow: 0 0 13px rgba(255, 203, 71, .6); }
.wd-steptile.done { color: #bcb2ff; background: linear-gradient(160deg, rgba(50, 43, 78, .96), rgba(28, 27, 45, .98)); }
.wd-steptile.done::after { background: #875df4; box-shadow: 0 0 12px rgba(135, 93, 244, .5); }
.wd-steptile-ic {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(10, 13, 24, .34);
  overflow: hidden;
}
.wd-steptile-ic svg { width: 27px; height: 27px; fill: currentColor; opacity: .72; }
.wd-steptile-ic > img { width: 100%; height: 100%; object-fit: contain; }
.wd-steptile-ic > span { width: 100%; height: 100%; display: grid; place-items: center; }
.wd-avatar-step > img { object-fit: cover; }
.wd-steptile-ic > span[hidden], .wd-steptile-ic > img[hidden], .wd-steptile-value[hidden] { display: none; }
.wd-skin-step { padding: 5px; }
.wd-price-step { width: 42px; height: 42px; border-radius: 50%; }
.wd-steptile-lb {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wd-steptile-value { margin-top: -5px; color: var(--gold); font-size: 10px; font-weight: 800; }

@media (max-width: 560px) {
  .wd-avrow { flex-wrap: wrap; }
  .wd-avtext { flex: 1 1 200px; }
  .wd-upload { margin-left: auto; }
  .wd-last { align-items: flex-start; flex-direction: column; gap: 9px; }
  .wd-lasttext { flex: none; width: 100%; }
  .wd-avatar-list { width: 100%; justify-content: flex-start; }
  .wd-skinrow { grid-template-columns: 172px 38px repeat(3, 96px); }
  .wd-skin-tile, .wd-steptile, .wd-skin-arrow { min-height: 112px; }
}

/* Withdrawal skin-choice step */
.wd-panel { animation: wd-panel-in .22s ease both; }
@keyframes wd-panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.wd-offer-panel .wd-sub { max-width: 520px; }
.wd-offer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(190px, .8fr);
  gap: 14px;
  padding: 14px;
  border-radius: 17px;
  background: rgba(9, 12, 23, .46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
.wd-offer-grid { display: flex; flex-direction: column; gap: 8px; }
.wd-offer {
  --wd-rarity: #875df4;
  position: relative;
  min-height: 72px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 7px 11px 7px 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 11px;
  color: #f3f5ff;
  text-align: left;
  background: linear-gradient(105deg, rgba(47, 51, 73, .92), rgba(27, 31, 48, .96));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--wd-rarity) 78%, transparent);
  transition: transform .2s var(--ease-spring), border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.wd-offer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: radial-gradient(circle at 15% 50%, color-mix(in srgb, var(--wd-rarity) 20%, transparent), transparent 72%);
  pointer-events: none;
}
.wd-offer:hover { transform: translateX(2px); border-color: rgba(255, 203, 71, .3); }
.wd-offer.selected {
  border-color: var(--gold);
  background: linear-gradient(105deg, rgba(58, 54, 70, .98), rgba(32, 34, 49, .98));
  box-shadow: inset 3px 0 0 var(--wd-rarity), 0 0 0 1px rgba(255, 203, 71, .14), 0 8px 22px rgba(5, 7, 15, .3);
}
.wd-offer-thumb { position: relative; z-index: 1; width: 72px; height: 52px; display: grid; place-items: center; }
.wd-offer-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 7px rgba(0, 0, 0, .48)); }
.wd-offer-copy { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wd-offer-copy small { color: #9299bb; font-size: 10px; line-height: 1; text-transform: uppercase; }
.wd-offer-copy b { overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.wd-offer-radio { position: relative; z-index: 1; width: 15px; height: 15px; border: 2px solid #4a506d; border-radius: 50%; box-shadow: inset 0 0 0 3px #262b42; }
.wd-offer.selected .wd-offer-radio { border-color: var(--gold); background: var(--gold); }
.wd-offer:focus-visible { outline: 0; border-color: var(--gold); box-shadow: inset 3px 0 0 var(--wd-rarity), 0 0 0 2px rgba(255, 203, 71, .22); }
.wd-offer-preview {
  --wd-rarity: #875df4;
  position: relative;
  min-height: 232px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(41, 45, 67, .96), rgba(24, 28, 44, .98));
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--wd-rarity) 68%, transparent), 0 14px 28px rgba(4, 6, 14, .35);
}
.wd-offer-preview-glow { position: absolute; inset: 35% 5% -30%; opacity: .32; filter: blur(25px); background: var(--wd-rarity); pointer-events: none; }
.wd-offer-preview > img { position: relative; z-index: 1; width: 94%; height: 112px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .48)); }
.wd-offer-preview-weapon { position: relative; z-index: 1; color: #9aa1bf; font-size: 11px; text-transform: uppercase; }
.wd-offer-preview > b { position: relative; z-index: 1; max-width: 100%; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.wd-offer-preview-placeholder { position: relative; z-index: 1; display: grid; place-items: center; gap: 8px; color: #656c8d; font-size: 12px; font-weight: 700; }
.wd-offer-preview-placeholder svg { width: 58px; height: 58px; fill: currentColor; opacity: .45; }
.wd-price-panel h2 { color: var(--gold); }
.wd-price-panel .wd-sub { max-width: 610px; margin-bottom: 23px; color: var(--text-soft); line-height: 1.45; }
.wd-price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(185px, .65fr);
  gap: 14px;
  padding: 16px;
  border-radius: 17px;
  background: rgba(9, 12, 23, .46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
.wd-price-fields { min-width: 0; display: flex; flex-direction: column; align-items: stretch; text-align: left; }
.wd-price-fields > label { margin: 0 0 8px; color: #f3f5ff; font-size: 13px; font-weight: 800; }
.wd-price-copy-field,
.wd-pattern-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 10px;
}
.wd-price-copy-field {
  margin-bottom: 17px;
  color: var(--text);
  background: linear-gradient(105deg, rgba(47, 51, 73, .92), rgba(27, 31, 48, .96));
  border: 1px solid var(--line);
  box-shadow: inset 3px 0 0 var(--gold), inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.wd-price-copy-field:focus-within {
  border-color: rgba(135, 93, 244, .7);
  background: rgba(11, 14, 26, .75);
  box-shadow: inset 3px 0 0 var(--gold), 0 0 0 3px rgba(135, 93, 244, .14);
}
.wd-field-coin {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #30240b;
  background: var(--grad-gold);
  box-shadow: 0 0 0 3px rgba(255, 203, 71, .1);
  font-size: 11px;
  font-weight: 900;
}
.wd-price-copy-field input,
.wd-pattern-field input { min-width: 0; flex: 1; padding: 0; border: 0; outline: 0; color: inherit; background: transparent; font: 800 14px/1 Rubik, sans-serif; }
.wd-price-copy-field input { color: var(--gold); }
.wd-price-copy-field button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #bcb2ff;
  background: transparent;
  transition: color .2s ease, background .2s ease, transform .15s ease;
}
.wd-price-copy-field button:hover { color: var(--gold); background: rgba(135, 93, 244, .16); }
.wd-price-copy-field button:active { transform: scale(.92); }
.wd-price-copy-field button svg { width: 16px; height: 16px; }
.wd-pattern-field { color: #aab1d0; background: rgba(11, 14, 26, .48); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.wd-pattern-field:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 203, 71, .42), 0 0 0 3px rgba(255, 203, 71, .06); }
.wd-pattern-field > svg { width: 17px; height: 17px; flex: 0 0 17px; fill: currentColor; opacity: .55; }
.wd-pattern-field input::placeholder { color: #747c9e; opacity: 1; }
.wd-price-fields > small { margin-top: 8px; color: #747c9e; font-size: 10px; line-height: 1.35; }
.wd-price-skin {
  --wd-rarity: #875df4;
  position: relative;
  isolation: isolate;
  min-height: 212px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  overflow: hidden;
  padding: 15px 14px 17px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(41, 45, 67, .96), rgba(24, 28, 44, .98));
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--wd-rarity) 68%, transparent), 0 14px 28px rgba(4, 6, 14, .3);
}
.wd-price-skin-glow { position: absolute; z-index: -1; inset: 35% 5% -28%; opacity: .3; filter: blur(25px); pointer-events: none; }
.wd-price-skin img { width: 94%; height: 122px; margin-bottom: 6px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .48)); }
.wd-price-skin span:not(.wd-price-skin-glow) { color: #9aa1bf; font-size: 11px; text-transform: uppercase; }
.wd-price-skin b { max-width: 100%; overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.wd-confirmations { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 16px 15px 4px; }
.wd-confirm-row { display: inline-flex; align-items: center; gap: 10px; color: #d9ddef; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.wd-confirm-row input { position: absolute; opacity: 0; pointer-events: none; }
.wd-confirm-row i { position: relative; width: 17px; height: 17px; flex: 0 0 17px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 4px; background: rgba(11, 14, 26, .48); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.wd-confirm-row input:checked + i { border-color: var(--gold); background: var(--gold); }
.wd-confirm-row input:checked + i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #30240b; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wd-confirm-row input:focus-visible + i { outline: 2px solid rgba(255, 203, 71, .45); outline-offset: 2px; }
.wd-actions { margin-top: 20px; display: flex; align-items: stretch; gap: 10px; }
.wd-actions .wd-next {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
.wd-actions .wd-next:not(:disabled):hover,
.wd-actions .wd-next:focus,
.wd-actions .wd-next:focus-visible { border: 0; outline: none !important; box-shadow: none; }
.wd-back {
  width: 52px;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 13px;
  color: #9ca4c8;
  background: linear-gradient(180deg, rgba(49, 53, 74, .92), rgba(31, 35, 51, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  font-size: 22px;
  transition: color .2s ease, transform .2s var(--ease-spring), background .2s ease;
}
.wd-back:hover { color: #fff; transform: translateX(-2px); background: #3a3f59; }
.wd-back[hidden] { display: none; }
.wd-next:focus,
.wd-next:focus-visible {
  border: 0;
  outline: none !important;
  outline-offset: 0;
}

@media (max-width: 620px) {
  .wd-offer-layout, .wd-price-layout { grid-template-columns: 1fr; }
  .wd-offer-preview { min-height: 190px; }
  .wd-offer-preview > img { height: 92px; }
  .wd-price-skin { min-height: 160px; }
}
@media (max-width: 430px) {
  .wd-offer { grid-template-columns: 58px minmax(0, 1fr) 15px; gap: 7px; padding-right: 8px; }
  .wd-offer-thumb { width: 58px; height: 46px; }
  .wd-card { padding-inline: 13px; }
}


/* ============================================================

   ACCOUNT TABS — Инвентарь / История игр / Выводы

   ============================================================ */

.acc-tabs {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 2px;

  background: var(--inset);

  border: 1px solid var(--line);

  border-radius: 14px;

  padding: 4px;

  margin-bottom: 12px;

}

.acc-tab {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  padding: 15px 12px;

  border: none;

  border-radius: 10px;

  background: transparent;

  color: var(--muted-hi);

  font-family: inherit;

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 0.06em;

  text-transform: uppercase;

  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;

}

.acc-tab svg { width: 17px; height: 17px; flex: 0 0 auto; }

.acc-tab:hover { color: var(--text-soft); background: rgba(135, 93, 244, 0.08); }

.acc-tab.on {

  color: #fff;

  background: linear-gradient(180deg, #3d4160, #343850);

  box-shadow: 0 6px 16px rgba(5, 7, 15, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);

}

.acc-badge {

  min-width: 20px;

  height: 20px;

  padding: 0 6px;

  display: inline-grid;

  place-items: center;

  border-radius: 20px;

  background: var(--red);

  color: #fff;

  font-size: 11px;

  font-weight: 800;

  font-style: normal;

}

.acc-pane { min-height: 200px; }

.acc-pane[hidden] { display: none !important; }



/* ---- inventory sub-bar ---- */

.acc-subbar {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  background: var(--inset);

  border: 1px solid var(--line);

  border-radius: 12px;

  padding: 10px 14px;

  margin-bottom: 14px;

}

.acc-total { color: var(--muted-hi); font-size: 14px; }

.acc-total b {

  display: inline-grid;

  place-items: center;

  min-width: 26px;

  height: 22px;

  padding: 0 7px;

  margin-left: 8px;

  border-radius: 6px;

  background: #3a3f5c;

  color: #fff;

  font-size: 12.5px;

  font-weight: 800;

  vertical-align: 1px;

}

.acc-sub-right { display: flex; align-items: center; gap: 14px; }

.acc-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-hi); font-size: 13.5px; cursor: pointer; user-select: none; }

.acc-toggle input { display: none; }

.acc-toggle i {

  width: 34px; height: 20px;

  border-radius: 20px;

  background: #3a3f5c;

  position: relative;

  transition: background 0.2s ease;

}

.acc-toggle i::after {

  content: "";

  position: absolute;

  top: 3px; left: 3px;

  width: 14px; height: 14px;

  border-radius: 50%;

  background: #8b96bd;

  transition: transform 0.2s var(--ease-spring), background 0.2s ease;

}

.acc-toggle input:checked + i { background: rgba(135, 93, 244, 0.55); }

.acc-toggle input:checked + i::after { transform: translateX(14px); background: #fff; }

.btn-sellall {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 10px 16px;

  border: none;

  border-radius: 9px;

  background: linear-gradient(180deg, #e1576c, #c73a52);

  color: #fff;

  font-family: inherit;

  font-size: 12.5px;

  font-weight: 800;

  letter-spacing: 0.04em;

  box-shadow: 0 6px 16px rgba(199, 58, 82, 0.3);

  transition: filter 0.2s ease, transform 0.15s ease;

}

.btn-sellall svg { width: 15px; height: 15px; }
.btn-sellall-total {
  padding-left: 9px;
  margin-left: 2px;
  border-left: 1px solid rgba(255, 255, 255, .28);
  color: #ffe5a2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.btn-sellall:hover { filter: brightness(1.08); }

.btn-sellall:active { transform: scale(0.96); }

.btn-mini2 { padding: 9px 13px; font-size: 12px; border-radius: 9px; }



/* ---- history ---- */

.hist-subtabs { display: flex; gap: 10px; margin-bottom: 14px; }

.hist-sub {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 10px 16px;

  border: none;

  border-radius: 10px;

  background: var(--inset);

  color: var(--muted-hi);

  font-family: inherit;

  font-size: 12.5px;

  font-weight: 700;

  letter-spacing: 0.05em;

  text-transform: uppercase;

  transition: background 0.2s ease, color 0.2s ease;

}

.hist-sub svg { width: 15px; height: 15px; }

.hs-n {

  min-width: 20px; height: 20px;

  padding: 0 6px;

  display: inline-grid; place-items: center;

  border-radius: 20px;

  background: #3a3f5c;

  color: #fff;

  font-size: 11px; font-weight: 800; font-style: normal;

}

.hist-sub:hover { color: var(--text-soft); }

.hist-sub.on {

  color: var(--gold);

  background: rgba(255, 203, 71, 0.07);

}

.hist-sub.on .hs-n { background: rgba(255, 203, 71, 0.16); color: var(--gold); }

.hist-list { display: flex; flex-direction: column; gap: 12px; }

.hist-empty {

  padding: 56px 16px;

  text-align: center;

  color: var(--muted);

  font-size: 14px;

  background: var(--inset);

  border: 1px solid var(--line);

  border-radius: 14px;

}

.hist-card {

  background: linear-gradient(180deg, rgba(52, 57, 83, 0.55), rgba(39, 43, 66, 0.55));

  border: 1px solid var(--line);

  border-radius: 14px;

  overflow: hidden;

  animation: cardIn 0.4s var(--ease-spring) both;

}

.hc-opened {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 16px;

  padding: 12px 14px;

  border-bottom: 1px solid var(--line);

}

.hc-meta { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.hc-meta span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-hi); text-transform: uppercase; }

.hc-meta b { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 14.5px; font-weight: 800; }

.hc-arrow {

  width: 26px; height: 26px;

  border: 1px solid var(--line-strong);

  border-radius: 50%;

  background: #343850;

  color: var(--muted-hi);

  font-size: 14px;

  line-height: 1;

  display: grid; place-items: center;

}

.hc-tiles {

  display: flex;

  flex-wrap: wrap;

  align-items: stretch;

  justify-content: center;

  gap: 10px;

  padding: 14px;

}

.hc-case, .htile {

  position: relative;

  isolation: isolate;

  overflow: hidden;

  width: 128px;

  border-radius: 11px;

  background: linear-gradient(180deg, #2c3049, #22263a);

  border: 1px solid rgba(220, 224, 236, 0.08);

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  padding: 8px 6px 9px;

}

.hc-case img { height: 52px; object-fit: contain; }

.hc-case b { font-size: 11.5px; margin-top: 6px; color: var(--text-soft); }

.hc-case img.fail, .htile img.fail { display: none; }

.htile::before {

  content: "";

  position: absolute;

  inset: auto 0 0 0;

  height: 55%;

  z-index: -1;

  opacity: 0.2;

  background: linear-gradient(transparent, var(--rc));

}

.htile.won::before { opacity: 0.4; }

.htile.won { border-color: rgba(16, 183, 89, 0.45); }

.htile.lost { border-color: rgba(255, 82, 82, 0.4); }

.htile-price { position: relative; z-index: 1; align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 11.5px; font-weight: 800; }

.htile img { height: 52px; max-width: 92%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(4, 6, 12, 0.5)); }

.htile-w { position: relative; z-index: 1; font-size: 10.5px; color: rgba(214, 219, 233, 0.55); margin-top: 6px; min-height: 13px; }

.htile-s { position: relative; z-index: 1; font-size: 12.5px; font-weight: 800; color: #f2f4fb; line-height: 1.25; }

.hc-side { display: flex; flex-direction: column; gap: 7px; }

.hc-cap { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; text-align: center; }

.hc-side-tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 280px; }

.hc-dir { align-self: center; color: var(--muted); font-size: 20px; }

.hc-foot {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  padding: 10px 16px;

  border-top: 1px solid var(--line);

  font-size: 12.5px;

}

.hc-time { color: var(--muted); }

.hc-spent { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-hi); }

.hc-res { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; }

.hc-res.win { color: var(--green); }

.hc-res.lose { color: #ff6b6b; }



/* gold coin dot */

.g-coin {

  display: inline-block;

  width: 12px; height: 12px;

  border-radius: 50%;

  background: var(--grad-gold);

  box-shadow: 0 0 6px rgba(251, 177, 0, 0.5);

  flex: 0 0 auto;

}



/* ---- withdrawals tab ---- */

.wd-info {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;

  background: var(--inset);

  border: 1px solid var(--line);

  border-radius: 12px;

  padding: 12px 14px;

  margin-bottom: 14px;

}

.wd-info-item { display: flex; align-items: flex-start; gap: 10px; color: var(--muted-hi); font-size: 12.5px; line-height: 1.45; }

.wd-info-item svg { width: 30px; height: 30px; flex: 0 0 auto; padding: 6px; box-sizing: content-box; border-radius: 9px; background: rgba(255, 203, 71, 0.1); color: var(--gold); }

.wd-hist-panel {

  background: var(--inset);

  border: 1px solid var(--line);

  border-radius: 14px;

  min-height: 220px;

  padding: 8px;

}

.wd-hist-empty { display: grid; place-items: center; min-height: 204px; color: var(--muted); font-size: 14px; }

.wd-hist-row {

  display: grid;

  grid-template-columns: 56px 1fr 110px 110px 130px;

  align-items: center;

  gap: 12px;

  padding: 10px 12px;

  border-radius: 10px;

  transition: background 0.15s ease;

}

.wd-hist-row:hover { background: rgba(135, 93, 244, 0.06); }

.wd-hist-row + .wd-hist-row { margin-top: 2px; }

.whr-img { position: relative; width: 56px; height: 44px; display: grid; place-items: center; }

.whr-img::before { content: ""; position: absolute; inset: 15% 0; border-radius: 9px; background: var(--rc); opacity: 0.16; }

.whr-img img { position: relative; z-index: 1; max-height: 40px; max-width: 52px; object-fit: contain; }

.whr-img img.fail { display: none; }

.whr-name { display: flex; flex-direction: column; min-width: 0; }

.whr-name span { color: var(--muted-hi); font-size: 12px; }

.whr-name b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.whr-price { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; font-weight: 800; font-size: 13px; color: var(--text-soft); }

.whr-status { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }

.whr-status.ok { color: var(--green); }

.whr-time { text-align: right; color: var(--muted); font-size: 12.5px; }

/* Persistent withdrawal history cards and detail dialog. */
.wd-hist-panel[aria-busy="true"] { opacity: .72; }
.wd-hist-row {
  width: 100%;
  grid-template-columns: 56px minmax(150px, 1fr) 120px 116px 130px 24px;
  color: inherit;
  text-align: left;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: transform .22s var(--ease-spring), border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.wd-hist-row:hover {
  transform: translateY(-1px);
  border-color: rgba(135, 93, 244, .34);
  background: linear-gradient(90deg, rgba(135, 93, 244, .1), rgba(255, 203, 71, .035));
  box-shadow: 0 10px 24px rgba(5, 7, 15, .2), inset 3px 0 0 var(--rc);
}
.wd-hist-row:focus-visible { border-color: rgba(255, 203, 71, .55); box-shadow: 0 0 0 3px rgba(255, 203, 71, .1); }
.whr-status.pending { color: var(--gold); }
.whr-status.approved { color: #8f9dff; }
.whr-status.completed { color: var(--green); }
.whr-status.rejected { color: #ff7474; }
.whr-open { color: #8c94b2; font-size: 26px; line-height: 1; text-align: right; transition: color .2s ease, transform .2s ease; }
.wd-hist-row:hover .whr-open { color: var(--gold); transform: translateX(2px); }

.wd-detail-overlay { z-index: 90; overflow-y: auto; backdrop-filter: blur(9px); }
.wd-detail {
  position: relative;
  isolation: isolate;
  width: min(860px, 100%);
  max-height: min(880px, calc(100vh / var(--pz, 1) - 40px));
  overflow: auto;
  border: 1px solid rgba(135, 93, 244, .34);
  border-radius: 20px;
  background:
    radial-gradient(600px 260px at 88% -8%, rgba(135, 93, 244, .25), transparent 66%),
    radial-gradient(420px 220px at 0 100%, rgba(255, 203, 71, .08), transparent 70%),
    linear-gradient(155deg, #262b45, #191d31 58%, #14182a);
  box-shadow: 0 34px 100px rgba(3, 5, 13, .72), inset 0 1px 0 rgba(255, 255, 255, .07);
  animation: resultPop .42s var(--ease-spring) both;
}
.wd-detail-close {
  position: absolute;
  z-index: 4;
  top: 17px;
  right: 17px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220, 224, 236, .15);
  border-radius: 11px;
  color: #aeb6d4;
  background: rgba(9, 12, 24, .42);
  font-size: 24px;
  line-height: 1;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.wd-detail-close:hover { color: #fff; border-color: rgba(255, 82, 82, .55); background: rgba(255, 82, 82, .1); transform: rotate(4deg); }
.wd-detail-head { padding: 25px 72px 20px 27px; border-bottom: 1px solid rgba(220, 224, 236, .1); }
.wd-detail-head > span { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.wd-detail-head h2 { margin: 5px 0 3px; font-family: Benzin, Rubik, sans-serif; font-size: clamp(20px, 3vw, 27px); letter-spacing: .02em; }
.wd-detail-head p { margin: 0; color: var(--muted-hi); font-size: 12px; }
.wd-detail-body { padding: 22px 27px 27px; }
.wdd-hero { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 18px; }
.wdd-avatar { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255, 203, 71, .38); border-radius: 15px; color: var(--gold); background: rgba(255, 203, 71, .08); font-size: 20px; font-weight: 900; box-shadow: 0 9px 24px rgba(5, 7, 15, .34); }
.wdd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wdd-hero-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wdd-hero-copy span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.wdd-hero-copy b { overflow: hidden; color: #f5f6ff; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.wdd-status { padding: 7px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; background: rgba(255, 255, 255, .025); }
.wdd-status.pending { color: var(--gold); }
.wdd-status.approved { color: #8f9dff; }
.wdd-status.completed { color: #46d98a; }
.wdd-status.rejected { color: #ff7474; }
.wdd-items { display: grid; grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); align-items: stretch; margin-bottom: 18px; }
.wdd-transfer { display: grid; place-items: center; color: #6f789c; font-size: 22px; }
.wdd-item { position: relative; min-width: 0; min-height: 210px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; padding: 14px; border: 1px solid rgba(220, 224, 236, .11); border-radius: 15px; background: linear-gradient(160deg, rgba(53, 57, 84, .78), rgba(19, 23, 39, .9)); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--rc) 70%, transparent); }
.wdd-item::before { content: ""; position: absolute; inset: 35% 10% -35%; background: var(--rc); opacity: .12; filter: blur(30px); pointer-events: none; }
.wdd-item-label { position: relative; z-index: 1; color: #8e97b9; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.wdd-item-art { position: relative; z-index: 1; min-height: 106px; display: grid; place-items: center; }
.wdd-item-art img { width: 92%; height: 108px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .5)); }
.wdd-item-copy { position: relative; z-index: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.wdd-item-copy span { grid-column: 1 / -1; color: #9099ba; font-size: 10px; text-transform: uppercase; }
.wdd-item-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wdd-item-copy small { color: var(--gold); font-weight: 800; white-space: nowrap; }
.wdd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.wdd-fact { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 10px 13px; border: 1px solid rgba(220, 224, 236, .09); border-radius: 11px; background: rgba(8, 11, 22, .28); }
.wdd-fact span { color: var(--muted); font-size: 11px; }
.wdd-fact b { overflow-wrap: anywhere; color: #e7eafa; font-size: 12px; text-align: right; }
.wdd-fact.accent b { color: var(--gold); }
.wdd-note { margin-top: 12px; padding: 13px 15px; border: 1px solid rgba(255, 203, 71, .18); border-radius: 12px; background: rgba(255, 203, 71, .055); }
.wdd-note span { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.wdd-note p { margin: 5px 0 0; color: var(--text-soft); white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 900px) {

  .acc-tabs { grid-template-columns: repeat(2, 1fr); }

  .wd-info { grid-template-columns: 1fr; }

  .wd-hist-row { grid-template-columns: 48px minmax(0, 1fr) 90px 24px; }

  .whr-status, .whr-time { display: none; }

  .acc-subbar { flex-wrap: wrap; }

}

@media (max-width: 620px) {
  .wd-detail-overlay { padding: 10px; align-items: flex-start; }
  .wd-detail { max-height: calc(100vh / var(--pz, 1) - 20px); border-radius: 16px; }
  .wd-detail-head { padding: 21px 58px 17px 18px; }
  .wd-detail-body { padding: 16px 18px 20px; }
  .wdd-hero { grid-template-columns: 48px minmax(0, 1fr); }
  .wdd-avatar { width: 48px; height: 48px; border-radius: 12px; }
  .wdd-status { grid-column: 1 / -1; justify-self: start; }
  .wdd-items { grid-template-columns: 1fr; gap: 8px; }
  .wdd-transfer { min-height: 24px; transform: rotate(90deg); }
  .wdd-item { min-height: 185px; }
  .wdd-item-art, .wdd-item-art img { min-height: 90px; height: 90px; }
  .wdd-facts { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {

  .acc-tab { padding: 12px 8px; font-size: 11px; }

  .hc-side-tiles { max-width: none; }

  .wd-hist-panel { padding: 5px; }
  .wd-hist-row { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 9px; padding: 9px; }
  .whr-price { display: none; }
  .whr-img { width: 44px; }
  .whr-name b { font-size: 12.5px; }

}



/* ---------- account tabs v2: stretch, compact history, ucard ---------- */

.acc-tabs { grid-template-columns: repeat(3, 1fr); }

.acc-tab { width: 100%; }

.acc-count { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-hi); font-size: 13px; white-space: nowrap; }

.acc-count b {

  display: inline-grid; place-items: center;

  min-width: 24px; height: 22px; padding: 0 7px;

  border-radius: 6px; background: #3a3f5c; color: #fff;

  font-size: 12.5px; font-weight: 800;

}



/* compact cases history: small square tiles, one per item */

.hist-compact {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));

  gap: 9px;

}

.ccard {

  position: relative;

  isolation: isolate;

  overflow: hidden;

  aspect-ratio: 1 / 1;

  border-radius: 11px;

  background: linear-gradient(180deg, #2c3049, #22263a);

  border: 1px solid rgba(220, 224, 236, 0.08);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 4px;

  padding: 8px 6px;

  cursor: default;

  animation: cardIn 0.35s var(--ease-spring) both;

}

.ccard::before {

  content: "";

  position: absolute;

  inset: auto 0 0 0;

  height: 60%;

  z-index: -1;

  opacity: 0.22;

  background: linear-gradient(transparent, var(--rc));

}

.ccard img { height: 46px; max-width: 88%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(4,6,12,0.5)); }

.ccard img.fail { display: none; }

.ccard-p { position: relative; z-index: 1; color: var(--green); font-size: 12px; font-weight: 800; }



/* upgrader card — screenshot layout */

.ucard { max-width: 640px; }

.ucard .uc-head {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 16px;

  padding: 12px 14px 2px;

}

.ucard .uc-head .hc-meta b { color: var(--green); }

.uc-body {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;

  padding: 8px 14px 14px;

}

.uc-col { display: flex; flex-direction: column; gap: 8px; }

.uc-cap {

  text-align: center;

  font-size: 13px;

  font-weight: 600;

  letter-spacing: 0.1em;

  color: var(--text-soft);

  text-transform: uppercase;

}

.uc-tiles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.uc-tiles .htile {

  width: 158px;

  min-height: 168px;

  justify-content: flex-start;

  padding: 9px 8px 12px;

}

.uc-tiles .htile img { height: 74px; }

.uc-tiles .htile-price { align-self: flex-end; font-size: 12.5px; }

.uc-tiles .htile-w { margin-top: auto; font-size: 12px; min-height: 15px; }

.uc-tiles .htile-s { font-size: 14px; }

.uc-foot {

  display: grid;

  grid-template-columns: 1fr 1fr;

  border-top: 1px solid var(--line);

}

.uc-chance, .uc-res {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 5px;

  padding: 13px 10px;

  font-size: 12.5px;

  font-weight: 800;

  letter-spacing: 0.06em;

  text-transform: uppercase;

}

.uc-chance { color: var(--muted-hi); border-right: 1px solid var(--line); }

.uc-chance b { color: var(--gold); }

.uc-res { color: #ff6b6b; }

.ucard.won .uc-res { color: #35d67f; }

.ucard.won .htile-price { color: var(--green); }

.ucard.lost .htile-price { color: #ff6b6b; }

.ucard.lost .uc-tiles .htile:last-child::before { opacity: 0.45; }



/* ---------- history v3: case rows + horizontal compact upgrader ---------- */

.hist-rows { display: flex; flex-direction: column; gap: 7px; }

.crow {

  position: relative;

  isolation: isolate;

  overflow: hidden;

  display: grid;

  grid-template-columns: 74px minmax(0, 1.3fr) minmax(0, 1fr) 100px;

  align-items: center;

  gap: 14px;

  padding: 8px 14px 8px 8px;

  border-radius: 11px;

  background: linear-gradient(180deg, rgba(44, 48, 73, 0.7), rgba(34, 38, 58, 0.7));

  border: 1px solid rgba(220, 224, 236, 0.08);

  animation: cardIn 0.3s var(--ease-spring) both;

}

.crow::before {

  content: "";

  position: absolute;

  left: 0; top: 0; bottom: 0;

  width: 74px;

  z-index: -1;

  opacity: 0.16;

  background: linear-gradient(90deg, var(--rc), transparent);

}

.crow-img { display: grid; place-items: center; }

.crow-img img { height: 44px; max-width: 70px; object-fit: contain; filter: drop-shadow(0 5px 7px rgba(4,6,12,0.5)); }

.crow-img img.fail { display: none; }

.crow-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }

.crow-name b { font-size: 13.5px; }

.crow-name span { font-size: 12px; color: var(--muted-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.crow-case {

  font-size: 12px;

  color: var(--muted-hi);

  display: inline-flex;

  align-items: center;

  gap: 6px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}

.crow-case::before { content: "Кейс:"; color: var(--muted); }

.crow-price { text-align: right; color: var(--green); font-size: 13.5px; font-weight: 800; }



/* flat tile variant (gold-only stake) */

.htile-flat { justify-content: center; min-height: 118px; gap: 6px; }



/* compact horizontal upgrader card */

.ucard { max-width: 640px; }

.ucard .uc-head { padding: 10px 14px 0; }

.uc-row {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 14px;

  padding: 8px 14px 10px;

}

.uc-cell { display: flex; flex-direction: column; gap: 6px; }

.uc-cell .htile {

  width: 128px;

  min-height: 118px;

  justify-content: flex-start;

  padding: 8px 8px 10px;

}

.uc-cell .htile img { height: 52px; }

.uc-cell .htile-price { font-size: 12px; }

.uc-cell .htile-w { font-size: 11px; min-height: 13px; }

.uc-cell .htile-s { font-size: 12.5px; }

.uc-dir { color: var(--muted); font-size: 18px; flex: 0 0 auto; }

.uc-foot .uc-chance, .uc-foot .uc-res { padding: 10px 8px; }



@media (max-width: 640px) {

  .crow { grid-template-columns: 56px minmax(0, 1fr) 84px; }

  .crow-case { display: none; }

  .crow-img img { height: 36px; max-width: 52px; }

  .uc-row { flex-wrap: wrap; }

}



/* ---------- history v4: inventory-like case cards + ref-style mini upgrader cards ---------- */

.hist-compact {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));

  gap: 10px;

}

.ccard {

  position: relative;

  isolation: isolate;

  overflow: hidden;

  display: flex;

  flex-direction: column;

  border-radius: 12px;

  background: linear-gradient(180deg, #2c3049, #22263a);

  border: 1px solid rgba(220, 224, 236, 0.08);

  padding: 7px 9px 9px;

  cursor: default;

  animation: cardIn 0.35s var(--ease-spring) both;

}

.ccard::before {

  content: "";

  position: absolute;

  inset: auto 0 0 0;

  height: 58%;

  z-index: -1;

  opacity: 0.24;

  background: linear-gradient(transparent, var(--rc));

}

.ccard-case {

  position: relative;

  z-index: 1;

  align-self: flex-start;

  display: inline-flex;

  align-items: center;

  gap: 5px;

  max-width: 100%;

  padding: 3px 8px 3px 4px;

  border-radius: 20px;

  background: rgba(11, 14, 26, 0.55);

  border: 1px solid rgba(220, 224, 236, 0.1);

  color: var(--muted-hi);

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.03em;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}

.ccard-case img { width: 16px; height: 16px; object-fit: contain; flex: 0 0 auto; }

.ccard-case img.fail { display: none; }

.ccard-art { position: relative; z-index: 1; height: 64px; display: grid; place-items: center; }

.ccard-art img { max-height: 58px; max-width: 88%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(4,6,12,0.5)); }

.ccard-art img.fail { display: none; }

.ccard-w { position: relative; z-index: 1; font-size: 11px; color: rgba(214,219,233,0.55); line-height: 1.3; }

.ccard-s { position: relative; z-index: 1; font-size: 12.5px; color: #f2f4fb; line-height: 1.3; }

.ccard-p { position: relative; z-index: 1; margin-top: 3px; font-size: 12.5px; font-weight: 800; color: var(--green); }



/* mini upgrader cards flowing left to right */

.uc-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));

  gap: 10px;

}

.ucard {

  display: flex;

  flex-direction: column;

  border-radius: 13px;

  overflow: hidden;

  background: linear-gradient(180deg, rgba(48, 52, 78, 0.6), rgba(37, 41, 62, 0.6));

  border: 1px solid var(--line);

  animation: cardIn 0.35s var(--ease-spring) both;

}

.uc-caps {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 8px;

  padding: 10px 10px 0;

  text-align: center;

}

.uc-caps span { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--text-soft); text-transform: uppercase; }

.uc-mhead {

  display: grid;

  grid-template-columns: 22px 1fr 22px auto;

  align-items: center;

  gap: 8px;

  padding: 10px 10px 0;

}

.uc-mhead .hc-arrow { width: 20px; height: 20px; font-size: 12px; }

.uc-mhead .hc-meta span { font-size: 10px; }

.uc-mhead .hc-meta b { font-size: 13px; }

.uc-cap-r { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--text-soft); text-transform: uppercase; justify-self: end; align-self: center; padding-right: 2px; }

.uc-body2 {

  flex: 1;

  display: flex;

  align-items: stretch;

  gap: 8px;

  padding: 8px 10px 10px;

}

.uc-strip {

  display: flex;

  gap: 6px;

  min-width: 0;

  flex: 1.05;

}

.uc-strip .htile { min-width: 0; }

.uc-body2 > .htile { flex: 1.05; min-width: 0; }

.uc-body2 .htile {

  width: auto;

  min-height: 108px;

  border-radius: 9px;

  padding: 6px 7px 8px;

}

.uc-body2 .htile img { height: 46px; }

.uc-body2 .htile-price { font-size: 11px; }

.uc-body2 .htile-w { font-size: 10.5px; min-height: 12px; }

.uc-body2 .htile-s { font-size: 12px; }

.uc-foot {

  display: grid;

  grid-template-columns: 1fr 1fr;

  border-top: 1px solid var(--line);

}

.uc-foot .uc-chance, .uc-foot .uc-res {

  display: flex; align-items: center; justify-content: center; gap: 4px;

  padding: 9px 6px;

  font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;

}

.uc-foot .uc-chance { color: var(--muted-hi); border-right: 1px solid var(--line); }

.uc-foot .uc-chance b { color: var(--gold); }

.uc-foot .uc-res { color: #ff6b6b; }

.ucard.won .uc-res { color: #35d67f; }

.ucard.won .htile-price { color: var(--green); }

.ucard.lost .htile-price { color: #ff6b6b; }



@media (max-width: 640px) {

  .uc-grid { grid-template-columns: 1fr; }

  .hist-compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

}


/* ---------- upgrader history: split item / target cards ---------- */
.uc-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.ucard { background: linear-gradient(180deg, rgba(38, 41, 62, 0.92), rgba(25, 27, 43, 0.96)); border-color: rgba(220, 224, 236, 0.1); }
.uc-body2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 12px; }
.uc-pane { min-width: 0; padding: 10px 8px 8px; border: 1px solid rgba(220, 224, 236, 0.08); border-radius: 10px; background: rgba(14, 16, 28, 0.42); }
.uc-pane-head { min-height: 26px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 7px; color: var(--text-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.uc-input-head { justify-content: space-between; }
.uc-input-meta { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.uc-input-meta span { font-size: 10px; color: var(--muted-hi); white-space: nowrap; }
.uc-input-meta b { color: var(--green); font-size: 12px; letter-spacing: 0; }
.uc-arrow { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(220, 224, 236, 0.13); border-radius: 50%; background: rgba(255, 255, 255, 0.07); color: var(--text-soft); font-size: 19px; line-height: 1; overflow: visible; }
.uc-arrow:hover { background: rgba(135, 93, 244, 0.28); color: #fff; }
.uc-carousel-slot, .uc-target-slot { min-width: 0; display: flex; }
.uc-carousel-slot { overflow: hidden; }
.uc-carousel-track { display: flex; gap: 6px; width: max-content; }
.uc-carousel-track > .htile { width: 108px; min-width: 108px; flex: 0 0 108px; }
.uc-carousel-slot > .htile, .uc-target-slot > .htile { width: 100%; min-width: 0; min-height: 136px; box-sizing: border-box; }
.uc-body2 .htile { border-color: rgba(220, 224, 236, 0.08); }
.uc-body2 .htile img { height: 58px; }
.uc-body2 .htile-s { font-size: 12.5px; }
.uc-target-pane .uc-pane-head { color: var(--gold); }
.uc-foot { border-top-color: rgba(220, 224, 236, 0.08); }
@media (max-width: 640px) {
  .uc-grid { grid-template-columns: 1fr; }
  .uc-body2 { padding: 9px; gap: 6px; }
  .uc-pane { padding-left: 6px; padding-right: 6px; }
}

/* ---------- history card hierarchy: one strong outer card ---------- */
.ucard { border: 1px solid rgba(201, 209, 235, 0.15); background: linear-gradient(145deg, #303651 0%, #20253d 55%, #191d31 100%); box-shadow: 0 14px 30px rgba(3, 5, 16, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.uc-body2 { gap: 0; padding: 14px 14px 12px; }
.uc-pane { min-width: 0; padding: 0 10px; border: none; border-radius: 0; background: transparent; box-shadow: none; }
.uc-input-pane { padding-left: 0; }
.uc-target-pane { padding-right: 0; border-left: 1px solid rgba(210, 216, 238, 0.12); }
.uc-pane-head { min-height: 26px; margin-bottom: 7px; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35); }
.uc-input-pane .uc-pane-head { color: rgba(238, 235, 255, 0.9); }
.uc-target-pane .uc-pane-head { color: var(--gold); }
.uc-pane .htile, .uc-target-pane .htile { border: 1px solid rgba(220, 224, 236, 0.08); background: linear-gradient(165deg, rgba(30, 34, 54, 0.96), rgba(21, 25, 42, 0.98)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045); }
.uc-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 14px 12px; padding: 8px 0 0; border-top: 1px solid rgba(210, 216, 238, 0.12); background: transparent; }
.uc-foot .uc-chance, .uc-foot .uc-res { min-height: 30px; padding: 6px 8px; border: none; border-radius: 0; background: transparent; box-shadow: none; }
.uc-foot .uc-chance { border-right: 1px solid rgba(210, 216, 238, 0.12); color: var(--muted-hi); }
.uc-foot .uc-res { color: #ff8996; }
.ucard.won .uc-res { background: transparent; color: #6ee9a1; }

/* ---------- top roulette: full-height rarity tint + bottom stripe ---------- */
.drop-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 26%, #171d31) 0%, color-mix(in srgb, var(--rc) 11%, #121725) 100%);
}
.drop-card .drop-glow {
  top: 0;
  bottom: 0;
  height: auto;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 20%, transparent), transparent 58%, color-mix(in srgb, var(--rc) 46%, transparent));
  opacity: 1;
}
.drop-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 7px;
  right: 7px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--rc);
  box-shadow: 0 0 8px color-mix(in srgb, var(--rc), transparent 34%);
}

/* Remove the aligned lower-section seams across panels and history cards. */
.panel-foot, .hc-foot, .uc-foot { border-top: none !important; }
.panel:hover .panel-foot { border-color: transparent; }

/* Keep the right-edge header fade above tile rarity stripes. */
.ticker-frame::after { z-index: 4; }
.online { z-index: 5; }

/* Withdrawal confirmation tracking screen — screenshot-matched structure. */
.wd-process { max-width: 720px; margin: 0 auto; animation: wd-panel-in .28s ease both; }
.wd-process-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 30px; text-align: left; }
.wd-process-success { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border-radius: 50%; color: #10271a; background: #7ce6a5; box-shadow: 0 0 0 7px rgba(16,183,89,.1), 0 0 28px rgba(16,183,89,.22); font-size: 29px; font-weight: 900; }
.wd-process-head h2 { margin: 0 0 5px; color: #8aefae; font-family: Benzin, Rubik, sans-serif; font-size: clamp(20px,3vw,29px); letter-spacing: .025em; }
.wd-process-head p { margin: 0; color: var(--muted-hi); font-size: 13px; }
.wd-process-layout { display: grid; grid-template-columns: 178px minmax(0,1fr); gap: 14px; }
.wd-process-summary { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg,rgba(47,51,73,.98),rgba(25,29,45,.98)); box-shadow: 0 20px 46px rgba(5,7,15,.34); }
.wd-process-summary-cell { position: relative; min-height: 105px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-bottom: 1px solid rgba(220,224,236,.075); }
.wd-process-summary-cell:last-child { border-bottom: 0; }
.wd-process-summary-cell img { width: 92px; height: 56px; object-fit: contain; filter: drop-shadow(0 7px 9px rgba(0,0,0,.42)); }
.wd-process-summary-cell img.wd-process-avatar { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.wd-process-summary-cell b { max-width: 100%; color: #f4f5ff; font-size: 12px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-process-summary-cell small { color: var(--muted-hi); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wd-process-summary-value b { color: var(--gold); font-size: 17px; }
.wd-process-summary-value:last-child b { color: #f5f6ff; }
.wd-process-check { position: absolute; top: 9px; right: 9px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #173322; background: #70e19b; font-size: 10px; font-weight: 900; }
.wd-process-guides { display: grid; grid-template-rows: repeat(3,minmax(0,1fr)); gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg,var(--panel-hi),var(--panel-lo)); box-shadow: 0 20px 46px rgba(5,7,15,.34); }
.wd-process-guide { min-height: 0; height: 100%; display: grid; grid-template-columns: 56px minmax(0,1fr); align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid rgba(220,224,236,.07); border-radius: 13px; background: rgba(9,12,23,.42); }
.wd-process-guide-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: var(--gold); background: rgba(255,203,71,.1); }
.wd-process-guide-icon svg { width: 27px; height: 27px; }
.wd-process-guide p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.48; }
.wd-process-guide p b { color: var(--gold); }
.wd-process-guide button { margin-top: 9px; padding: 6px 11px; border: 1px solid rgba(135,93,244,.25); border-radius: 7px; color: #c9b8ff; background: rgba(135,93,244,.1); font-size: 10px; font-weight: 700; }
.wd-process-guide button:hover { border-color: rgba(255,203,71,.35); color: var(--gold); }
.wd-process-go { width: 100%; min-height: 53px; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 16px; border: 0; border-radius: 16px; outline: 0; box-shadow: none; }

/* Withdrawal history: compact row with an inline four-cell expansion. */
.wd-hist-panel { min-height: 220px; padding: 8px; }
.wd-history-entry { width: min(650px,100%); overflow: hidden; border: 1px solid rgba(220,224,236,.08); border-radius: 12px; background: linear-gradient(160deg,rgba(35,39,58,.96),rgba(20,23,37,.98)); box-shadow: inset 3px 0 0 color-mix(in srgb,var(--rc) 75%,transparent),0 12px 28px rgba(5,7,15,.18); }
.wd-history-entry + .wd-history-entry { margin-top: 8px; }
.wd-hist-row { width: 100%; min-height: 82px; display: grid; grid-template-columns: 78px minmax(0,1fr) 110px 46px; align-items: center; gap: 14px; padding: 9px 13px; border: 0; border-radius: 0; color: inherit; text-align: left; background: transparent; box-shadow: none; transition: background .2s ease; }
.wd-hist-row:hover { transform: none; border-color: transparent; background: rgba(135,93,244,.07); box-shadow: none; }
.wd-hist-row:focus-visible { outline: 2px solid rgba(255,203,71,.5); outline-offset: -3px; box-shadow: none; }
.whr-img { width: 72px; height: 58px; }
.whr-img::before { inset: 9%; border-radius: 50%; background: radial-gradient(circle,var(--rc),transparent 68%); opacity: .22; }
.whr-img img { max-width: 68px; max-height: 50px; filter: drop-shadow(0 7px 8px rgba(0,0,0,.45)); }
.whr-name b { color: #f3f4ff; font-size: 14px; }
.whr-price { justify-content: center; color: #fff; font-size: 16px; }
.whr-state { width: 36px; height: 36px; display: grid; place-items: center; justify-self: end; border-radius: 50%; color: var(--gold); background: rgba(255,203,71,.08); }
.whr-state svg { width: 22px; height: 22px; }
.wd-hist-details { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) 44px; min-height: 122px; border-top: 1px solid rgba(220,224,236,.075); background: rgba(9,12,23,.36); }
.wdh-detail-cell { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-right: 1px solid rgba(220,224,236,.065); }
.wdh-detail-cell small { color: var(--muted-hi); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wdh-detail-art { width: 78px; height: 62px; display: grid; place-items: center; }
.wdh-detail-art img { max-width: 76px; max-height: 58px; object-fit: contain; filter: drop-shadow(0 7px 8px rgba(0,0,0,.4)); }
.wdh-detail-art img[alt="Аватар для вывода"] { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; }
.wdh-detail-art img.fail { display: none; }
.wdh-detail-value b { color: #f3f4ff; font-size: 17px; }
.wdh-detail-value.accent b { color: var(--gold); }
.wdh-collapse { display: grid; place-items: center; border: 0; color: var(--gold); background: transparent; font-size: 23px; }
.wdh-collapse:hover { background: rgba(255,203,71,.06); }

@media (max-width: 700px) {
  .wd-process-head { align-items: flex-start; }
  .wd-process-layout { grid-template-columns: 1fr; }
  .wd-process-summary { display: grid; grid-template-columns: repeat(5,minmax(105px,1fr)); overflow-x: auto; }
  .wd-process-summary-cell { min-height: 108px; border-right: 1px solid rgba(220,224,236,.075); border-bottom: 0; }
  .wd-process-guide { grid-template-columns: 44px minmax(0,1fr); gap: 12px; padding: 14px; }
  .wd-process-guide-icon { width: 42px; height: 42px; }
  .wd-hist-row { grid-template-columns: 64px minmax(0,1fr) 74px 36px; gap: 8px; padding-inline: 8px; }
  .whr-img { width: 60px; }
  .whr-price { display: inline-flex; font-size: 14px; }
  .wd-hist-details { grid-template-columns: repeat(4,minmax(105px,1fr)) 40px; overflow-x: auto; }
}

/* Sub-25 G withdrawal notice — reference structure in OFFGRADER styling. */
.wd-unavailable-overlay { z-index: 95; background: rgba(8, 10, 20, .88); backdrop-filter: blur(7px); }
.wd-unavailable-card {
  position: relative; isolation: isolate; overflow: hidden; width: min(540px, 100%); padding: 44px 46px 40px;
  border: 1px solid rgba(135, 93, 244, .3); border-radius: 22px; text-align: center;
  background: radial-gradient(370px 185px at 50% 8%, rgba(151, 86, 240, .18), transparent 72%), linear-gradient(155deg, #292d47, #1c2035 64%, #171b2d);
  box-shadow: 0 36px 100px rgba(3, 5, 14, .76), inset 0 1px 0 rgba(255, 255, 255, .07);
  animation: resultPop .42s var(--ease-spring) both;
}
.wd-unavailable-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(250px 150px at 50% 35%, rgba(255, 203, 71, .07), transparent 72%); pointer-events: none; }
.wd-unavailable-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(220, 224, 236, .16); border-radius: 50%; color: #7f88aa; background: rgba(9, 12, 24, .2); font-size: 25px; font-weight: 300; line-height: 1; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.wd-unavailable-close:hover { color: #fff; border-color: rgba(255, 203, 71, .55); background: rgba(255, 203, 71, .08); transform: rotate(5deg); }
.wd-unavailable-icon { width: 84px; height: 84px; margin: 0 auto 22px; display: grid; place-items: center; border: 3px solid var(--gold); border-radius: 50%; color: #211a08; background: var(--grad-gold); box-shadow: 0 0 0 1px rgba(255, 203, 71, .2), 0 0 32px rgba(255, 203, 71, .22), 0 0 60px rgba(135, 93, 244, .16); font: 900 44px/1 Georgia, serif; }
.wd-unavailable-card h2 { margin: 0 0 16px; font-family: Benzin, Rubik, sans-serif; font-size: clamp(21px, 3.5vw, 30px); line-height: 1.15; letter-spacing: .025em; text-transform: uppercase; background: linear-gradient(110deg, #ffd76a, #f5b52e 46%, #b98aff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 5px 18px rgba(151, 86, 240, .14)); }
.wd-unavailable-card > p { max-width: 420px; margin: 0 auto 26px; color: #d5dbef; font-size: 15.5px; line-height: 1.5; }
.wd-unavailable-card > p strong { color: var(--gold); white-space: nowrap; }
.wd-unavailable-support { width: min(380px, 100%); min-height: 58px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 10px 18px; border: 1px solid rgba(255, 203, 71, .2); border-radius: 13px; color: #d9c797; background: linear-gradient(105deg, rgba(255, 203, 71, .08), rgba(135, 93, 244, .1)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); transition: transform .22s var(--ease-spring), border-color .2s ease, background .2s ease; }
.wd-unavailable-support span { color: #b7bfdc; font-size: 13px; }
.wd-unavailable-support b { color: var(--gold); font-size: 14px; }
.wd-unavailable-support i { width: 30px; height: 27px; display: grid; place-items: center; border-radius: 50% 50% 50% 8px; color: #211a08; background: var(--grad-gold); font-size: 16px; font-style: normal; font-weight: 900; }
.wd-unavailable-support:hover { transform: translateY(-2px); border-color: rgba(255, 203, 71, .45); background: linear-gradient(105deg, rgba(255, 203, 71, .13), rgba(135, 93, 244, .15)); }
@media (max-width: 600px) {
  .wd-unavailable-card { padding: 40px 18px 27px; border-radius: 18px; }
  .wd-unavailable-close { top: 13px; right: 13px; width: 34px; height: 34px; }
  .wd-unavailable-icon { width: 72px; height: 72px; margin-bottom: 19px; font-size: 38px; }
  .wd-unavailable-card > p { font-size: 14.5px; }
  .wd-unavailable-support { flex-wrap: wrap; gap: 5px 9px; padding-inline: 13px; }
}

/* ---------- case-page action alignment and insufficient balance ---------- */
.casepage-head > .cp-actions {
  --cp-side-gap: 64px;
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 32px !important;
  width: auto !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  margin: 0 !important;
  transform: none !important;
}
.casepage-head > .cp-actions .qty-group {
  grid-column: 1 !important;
  justify-self: end !important;
  margin: 0 var(--cp-side-gap) 0 0 !important;
}
.casepage-head > .cp-actions #cpOpen {
  grid-column: 2 !important;
  justify-self: center !important;
  min-width: 260px;
}
.casepage-head > .cp-actions #cpFast {
  grid-column: 3 !important;
  justify-self: start !important;
  width: auto;
  min-width: 0;
  margin: 0 0 0 var(--cp-side-gap) !important;
  padding: 0 26px;
  white-space: nowrap;
}
.qty-group.is-disabled {
  opacity: .3;
  filter: grayscale(1);
  border-color: rgba(150, 155, 180, .2);
}
.qty:disabled { cursor: not-allowed; }
.qty-group.is-disabled .qty { color: #777d91; background: rgba(120, 124, 144, .08); }
.qty-group.is-disabled .qty.on { color: #979cac; box-shadow: none; }
#cpFast:disabled {
  opacity: .28;
  filter: grayscale(1);
  box-shadow: none;
}
#cpOpen.needs-funds {
  min-width: 280px;
  color: #fff;
  background: linear-gradient(135deg, #ff6b7d, #df3f66 58%, #bc315a);
  box-shadow: 0 12px 32px rgba(223, 63, 102, .32), inset 0 1px 0 rgba(255,255,255,.28);
}
#cpOpen.needs-funds:hover {
  box-shadow: 0 16px 40px rgba(223, 63, 102, .42), 0 0 24px rgba(255, 107, 125, .18);
}
.cp-wallet-icon { width: 20px; height: 20px; flex: 0 0 auto; }
@media (max-width: 900px) and (min-width: 701px) {
  .casepage-head > .cp-actions { --cp-side-gap: 22px; }
  .casepage-head > .cp-actions #cpOpen { min-width: 220px; }
  .casepage-head > .cp-actions #cpOpen.needs-funds { min-width: 250px; }
}
@media (max-width: 700px) {
  .casepage-head > .cp-actions {
    position: static !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 12px 0 0 !important;
  }
  .casepage-head > .cp-actions .qty-group,
  .casepage-head > .cp-actions #cpOpen,
  .casepage-head > .cp-actions #cpFast {
    grid-column: 1 !important;
    justify-self: center !important;
    margin: 0 !important;
  }
  .casepage-head > .cp-actions #cpOpen,
  .casepage-head > .cp-actions #cpOpen.needs-funds { width: min(100%, 300px); min-width: 0; }
}

/* ---------- compact case header ---------- */
.casepage-head {
  min-height: 220px;
  padding: 14px 18px !important;
  margin-bottom: 12px;
}
.casepage-art {
  width: 175px;
  height: 135px;
}
.casepage-art img { max-height: 105px; }
.casepage-art img.art-hero,
.casepage-art:has(img.art-hero) img.art-hero {
  height: 165px;
  margin-top: -32px;
}
.casepage-art:has(img.art-hero) {
  width: 220px;
  height: 180px;
}
.casepage-info { align-self: center; padding-bottom: 52px; }
.casepage-info h1 { margin-bottom: 0; }
.casepage-head > .cp-actions { bottom: 14px !important; }
@media (max-width: 700px) {
  .casepage-head { min-height: 0; }
  .casepage-art { width: 160px; height: 120px; align-self: center; }
  .casepage-art img { max-height: 96px; }
  .casepage-art:has(img.art-hero) { width: 190px; height: 150px; align-self: center; }
  .casepage-art img.art-hero,
  .casepage-art:has(img.art-hero) img.art-hero { height: 140px; margin-top: -20px; }
  .casepage-info { align-self: center; padding-bottom: 0; text-align: center; }
}

/* ---------- refined compact case-header composition ---------- */
.casepage-head {
  min-height: 220px;
  overflow: hidden;
}
.casepage-art {
  width: 205px;
  height: 170px;
  overflow: visible;
}
.casepage-art img { max-height: 145px; max-width: 100%; }
.casepage-art:has(img.art-hero) {
  width: 250px;
  height: 200px;
}
.casepage-art img.art-hero,
.casepage-art:has(img.art-hero) img.art-hero {
  height: 215px;
  margin-top: -18px;
}
.casepage-info {
  align-self: flex-start;
  padding: 20px 0 0;
}
.casepage-info h1 { line-height: 1.12; }
.casepage-head > .cp-actions {
  --cp-side-gap: 38px;
  bottom: 30px !important;
}
@media (max-width: 900px) and (min-width: 701px) {
  .casepage-head > .cp-actions { --cp-side-gap: 18px; }
  .casepage-art:has(img.art-hero) { width: 220px; }
}
@media (max-width: 700px) {
  .casepage-head { overflow: visible; }
  .casepage-art { width: 190px; height: 145px; }
  .casepage-art img { max-height: 125px; }
  .casepage-art:has(img.art-hero) { width: 220px; height: 170px; }
  .casepage-art img.art-hero,
  .casepage-art:has(img.art-hero) img.art-hero { height: 170px; margin-top: -14px; }
  .casepage-info { align-self: center; padding: 0; }
}

/* Keep the compact card height; scale only the artwork. */
@media (min-width: 701px) {
  .casepage-head {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
  }
  .casepage-art:has(img.art-hero) { height: 180px; }
  .casepage-art img.art-hero,
  .casepage-art:has(img.art-hero) img.art-hero {
    height: 215px;
    margin-top: 0;
  }
}

/* ---------- final case-header spacing ---------- */
@media (min-width: 701px) {
  .casepage-art { margin-left: -4px; }
  .casepage-art:has(img.art-hero) {
    width: 230px;
    height: 192px;
    align-self: center;
  }
  .casepage-art img.art-hero,
  .casepage-art:has(img.art-hero) img.art-hero {
    height: 190px;
    margin-top: 0;
    transform: translateX(-12px);
  }
  .casepage-info { padding-top: 58px; }
  .casepage-info h1 {
    font-size: 30px;
    line-height: 1.08;
  }
  .casepage-head > .cp-actions { bottom: 38px !important; }
}

/* ============================================================
   WELVURA PARITY THEME — final consistency layer
   Solid surfaces, deliberate outlines, restrained decoration.
   ============================================================ */
:root {
  --bg: #202335;
  --bg-deep: #202335;
  --panel: #2e314a;
  --panel-hi: #383b5a;
  --panel-lo: #2e314a;
  --inset: #202335;
  --line: rgba(66, 71, 109, 0.92);
  --line-strong: #42476d;
  --muted: #6c779e;
  --muted-hi: #9f8ff8;
  --text-soft: #abb2de;
  --grad-btn: linear-gradient(45deg, #a34ef4, #7265fd);
  --grad-vio: linear-gradient(45deg, #a34ef4, #7265fd);
  --radius: 10px;
}
body {
  background: #202335;
  background-image: none;
  font-family: Rubik, "Segoe UI", sans-serif;
}
button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid rgba(159, 143, 248, 0.86);
  outline-offset: 2px;
}
.rail {
  background: #202335;
  border-right: 0.8px solid #42476d;
  box-shadow: none;
  padding: 18px 14px;
}
.rail-logo { border-radius: 10px; }
.rail-word { -webkit-text-stroke: 0.52px currentColor; }
.tab {
  min-height: 46px;
  border: 0.8px solid transparent;
  border-radius: 8px;
  color: #6c779e;
}
.tab svg {
  width: 34px; height: 34px; padding: 7px; border-radius: 7px;
  background: #2e314a; border: 0.8px solid #42476d;
}
.tab:hover { background: #2e314a; transform: none; }
.tab[aria-current="page"] {
  background: #2e314a;
  border-color: #42476d;
}
.tab[aria-current="page"] svg { background: var(--grad-btn); border-color: transparent; box-shadow: 0 5px 18px rgba(163, 78, 244, 0.3); }
.top {
  height: 72px;
  background: #2e314a;
  border-bottom: 0.8px solid #42476d;
}
.app { background: #202335; }
main { background: #202335; }
.panel, .title-window, .case-section, .casepage-drops, .account-card, .history-card {
  background: #2e314a;
  border: 0.8px solid #42476d;
  border-radius: 10px;
  box-shadow: none;
}
.panel {
  min-height: 560px;
  box-shadow: none;
}
.panel::before, .panel::after { display: none; }
.panel:hover { border-color: #42476d; box-shadow: none; }
.panel h2, .panel-head h2 { color: #fff; font-size: 14px; letter-spacing: 0; text-transform: none; }
.step-index { border-color: #42476d; background: #363954; border-radius: 6px; }
.panel-head > span { background: rgba(159,143,248,.1); border-color: rgba(159,143,248,.32); border-radius: 7px; }
.tools input, .gold-add input, select, .tb-search, .tb-price {
  background: #202335;
  border: 0.8px solid #42476d;
  border-radius: 8px;
}
.tools input:focus { background: #202335; box-shadow: 0 0 0 3px rgba(159,143,248,.12); }
.panel-foot { border-top: 0.8px solid #42476d; }
.skin {
  background: #383b5a;
  border: 0.8px solid #42476d;
  border-radius: 8px;
  box-shadow: none;
}
.skin:hover { border-color: #9f8ff8; box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.skin.sel { background: #363954; border-color: #9f8ff8; box-shadow: 0 8px 22px rgba(159,143,248,.18); }
.skin::before { background: rgba(159,143,248,.12); }
.skin .art { border-radius: 6px; }
.chips button, .mini, .qty, .tb-btn, .tb-select select {
  background: #363954;
  border: 0.8px solid #42476d;
  border-radius: 7px;
}
.chips button.on, .mini.on, .qty.on, .tb-btn.on { background: var(--grad-btn); border-color: transparent; }
.btn-go, .buttonMain { background: var(--grad-btn); border: 0; border-radius: 8px; box-shadow: 0 5px 23px rgba(163,78,244,.3); }
.btn-alt, .btn-ghost { background: #363954; border: 0.8px solid #42476d; border-radius: 7px; }
.duel-slot, .drop-tile, .gcard, .acc-tab, .acc-pane, .hist-card, .ucard, .wd-info-item {
  background: #383b5a;
  border: 0.8px solid #42476d;
  border-radius: 8px;
  box-shadow: none;
}
.duel-arrow { color: #9f8ff8; }
.gcard:hover, .drop-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.gcard-art { background: #363954; }
.gcard-name { color: #fff; font-weight: 600; }
.gcard-price { background: rgba(159,143,248,.9); border-radius: 5px; }
.case-toolbar { background: #2e314a; border: 0.8px solid #42476d; border-radius: 10px; }
.howto, details { background: #2e314a; border: 0.8px solid #42476d; border-radius: 8px; }
.overlay .auth-card, .auth-card { border: 0.8px solid #42476d; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.toast { border: 0.8px solid #42476d; border-radius: 8px; }
@media (max-width: 900px) {
  .rail { width: 74px; flex-basis: 74px; padding: 14px 8px; }
  .rail-logo { justify-content: center; padding: 5px; }
  .rail-word { display: none; }
  .tab { justify-content: center; padding: 5px; }
  .tab span { display: none; }
  .top { height: 64px; }
}

/* ============================================================
   LOGIN / AUTH — site-themed (violet×gold), GGStand-shaped
   ============================================================ */
.meta-login {
  height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(200, 190, 255, 0.45);
  border-radius: 12px;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(90, 62, 240, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform .22s var(--ease-spring), filter .2s ease;
}
.meta-login:hover { transform: translateY(-1px); filter: brightness(1.08); }
.meta-login:active { transform: scale(0.97); }

/* display:flex/grid overrides the hidden attribute — force it off */
.meta-avatar[hidden], .meta-login[hidden], .balance[hidden] { display: none !important; }

/* ---------- auth modal ---------- */
.overlay,
#authModal {
  z-index: 950 !important;
  background: rgba(10, 12, 22, 0.86) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.overlay .auth-card,
.auth-card {
  position: relative;
  width: min(410px, calc(100vw / var(--pz, 1) - 32px)) !important;
  min-height: min(360px, calc(42vh / var(--pz, 1)));
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  border-radius: 22px !important;
  background: #323654 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden !important;
  animation: resultPop 0.35s var(--ease-spring) both;
}

/* Close button on top-right */
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 !important;
  transition: background 0.18s ease, transform 0.2s var(--ease-spring);
}
.auth-close:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  transform: scale(1.08);
}
.auth-close:active {
  transform: scale(0.94);
}
.auth-close:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}
.auth-close:focus-visible {
  outline: 2px solid rgba(159, 143, 248, 0.7) !important;
  outline-offset: 2px !important;
  border-radius: 50% !important;
}

/* Top banner: same color as top-left of page (#25283d) */
.auth-card-top {
  position: relative;
  background: #25283d;
  padding: 38px 24px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.auth-card-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(159, 143, 248, 0.08), transparent 70%);
  pointer-events: none;
}
.auth-brand-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.auth-top-logo {
  height: 38px;
  width: auto;
  max-width: 82%;
  aspect-ratio: 2913.43 / 390;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

/* Bottom section: lighter color (#323654) */
.auth-card-bottom {
  background: #323654;
  padding: 24px 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.auth-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  font-family: Rubik, sans-serif;
}

/* Row of 3 social sign-in buttons */
.auth-btns-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
  width: 100%;
}
.auth-btn-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease-spring), filter 0.2s ease, box-shadow 0.2s ease;
  flex: 0 0 54px;
}
.auth-btn-icon:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.auth-btn-icon:active {
  transform: scale(0.94);
}
.auth-btn-icon svg {
  display: block;
}

/* Telegram button */
.auth-btn-icon.auth-tg {
  background: #29A9EB !important;
}

/* Google button */
.auth-btn-icon.auth-google {
  background: #ffffff !important;
}

.auth-btn-icon.na {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Disclaimer text */
.auth-disclaimer {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.48;
  color: #8b94b2;
  font-family: Rubik, sans-serif;
  text-align: center;
  padding: 0 4px;
}
.auth-disclaimer a,
.auth-legal-link {
  color: #9f8ff8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}
.auth-disclaimer a:hover,
.auth-legal-link:hover {
  color: #bfb2ff;
  text-decoration: underline;
}

/* Toast high z-index to stay above darkened modal */
.toast {
  z-index: 2000 !important;
}

/* ---------- deposit ---------- */
body.deposit-open { overflow: hidden; }
#walletModal { z-index: 65; padding: 24px; background: rgba(7, 9, 19, .88); backdrop-filter: blur(8px); }
.deposit-card {
  position: relative;
  overflow: hidden;
  width: min(920px, 100%);
  max-height: calc(100dvh / var(--pz, 1) - 48px);
  border: 1px solid rgba(153, 135, 255, .32);
  border-radius: 18px;
  background: linear-gradient(180deg, #242943 0%, #181d31 100%);
  box-shadow: 0 36px 100px rgba(2, 4, 12, .78), 0 0 46px rgba(108, 84, 240, .12);
  animation: resultPop .42s var(--ease-spring) both;
}
.deposit-head {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0 74px 0 26px;
  border-bottom: 1px solid rgba(190, 177, 255, .26);
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 203, 71, .14), transparent 24%),
    linear-gradient(105deg, #4a416b 0%, #3f385f 44%, #2d3151 100%);
}
.deposit-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .22;
  background: repeating-linear-gradient(120deg, transparent 0 28px, rgba(255,255,255,.06) 28px 29px);
}
.deposit-head-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-right: 13px;
  border: 1px solid rgba(255, 211, 103, .38);
  border-radius: 11px;
  color: var(--gold);
  background: rgba(255, 193, 52, .1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}
.deposit-head-icon svg { width: 21px; height: 21px; }
.deposit-head h2 {
  margin: 0;
  color: #fff;
  font-family: Benzin, Rubik, sans-serif;
  font-size: 18px;
  letter-spacing: .08em;
}
.deposit-close {
  position: absolute;
  top: 50%;
  right: 22px;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  color: #b9bfd6;
  background: rgba(12, 15, 29, .34);
  font-size: 25px;
  line-height: 1;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.deposit-close:hover { color: #fff; border-color: rgba(255,255,255,.24); background: rgba(12,15,29,.55); transform: translateY(-50%) rotate(4deg); }
.deposit-body { overflow-y: auto; display: grid; gap: 15px; max-height: calc(100dvh / var(--pz, 1) - 120px); padding: 22px; }
.deposit-section,
.deposit-selected {
  border: 1px solid rgba(157, 165, 205, .13);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(48, 53, 81, .82), rgba(32, 36, 58, .88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 12px 28px rgba(6,8,18,.16);
}
.deposit-section { padding: 18px; }
.deposit-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.deposit-section-head > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.deposit-section-head > div > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #201807;
  background: var(--grad-gold);
  font-size: 10px;
  font-weight: 900;
}
.deposit-section-head h3 { margin: 0; color: #f4f5fb; font-size: 13px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.deposit-section-head > small { color: #818aa8; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.deposit-amount-head > small b { color: var(--gold); }
.deposit-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.deposit-method {
  position: relative;
  min-width: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 34px 14px 14px;
  border: 1px solid rgba(160, 168, 205, .15);
  border-radius: 12px;
  background: rgba(19, 23, 40, .48);
  cursor: pointer;
  transition: transform .2s var(--ease-spring), border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.deposit-method:hover { transform: translateY(-2px); border-color: rgba(140, 122, 255, .45); background: rgba(92, 76, 181, .12); }
.deposit-method:has(input:checked) { border-color: rgba(255, 202, 72, .64); background: linear-gradient(135deg, rgba(255,193,52,.12), rgba(113,92,237,.12)); box-shadow: 0 0 0 1px rgba(255,203,71,.08), 0 12px 28px rgba(5,7,16,.22); }
.deposit-method input { position: absolute; opacity: 0; pointer-events: none; }
.deposit-method input:focus-visible ~ .deposit-check { outline: 2px solid rgba(255,203,71,.55); outline-offset: 3px; }
.deposit-check { position: absolute; top: 10px; right: 10px; width: 17px; height: 17px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(8,11,22,.55); }
.deposit-method input:checked + .deposit-check { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 4px #332810; }
.deposit-method-logo { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; }
.deposit-method-logo svg { width: 33px; height: 33px; }
.deposit-logo-sbp { color: #80e2c4; background: linear-gradient(135deg, rgba(82,225,171,.18), rgba(121,96,244,.17)); }
.deposit-logo-stars { color: #ffd951; background: rgba(255, 180, 0, .14); }
.deposit-logo-crypto { color: #ffc94d; background: linear-gradient(135deg, rgba(255,193,52,.18), rgba(245,139,37,.11)); }
.deposit-method > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.deposit-method b { overflow: hidden; color: #f4f5fb; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.deposit-method small { overflow: hidden; color: #858da9; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.deposit-selected { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 15px 18px; }
.deposit-selected > div { display: flex; flex-direction: column; gap: 6px; }
.deposit-selected small { color: #8088a4; font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.deposit-selected b { color: #fff; font-family: Benzin, Rubik, sans-serif; font-size: 18px; letter-spacing: .04em; }
.deposit-selected-badge { max-width: 45%; overflow: hidden; padding: 8px 12px; border: 1px solid rgba(255,203,71,.28); border-radius: 10px; color: var(--gold); background: rgba(255,193,52,.08); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.deposit-presets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.deposit-presets button { min-width: 0; min-height: 42px; border: 1px solid rgba(156,164,201,.13); border-radius: 9px; color: #c9cee1; background: rgba(19,23,40,.52); font-size: 12px; font-weight: 800; transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease; }
.deposit-presets button:hover { transform: translateY(-1px); color: #fff; border-color: rgba(138,119,255,.4); }
.deposit-presets button.on { color: #261b05; border-color: rgba(255,211,102,.75); background: var(--grad-gold); box-shadow: 0 8px 20px rgba(251,177,0,.18); }
.deposit-input-wrap { display: flex; align-items: center; min-height: 56px; margin-top: 11px; border: 1px solid rgba(155,164,202,.17); border-radius: 11px; background: rgba(13,17,31,.5); transition: border-color .2s ease, box-shadow .2s ease; }
.deposit-input-wrap:focus-within { border-color: rgba(139,120,255,.72); box-shadow: 0 0 0 3px rgba(125,103,245,.1); }
.deposit-coin { width: 31px; height: 31px; display: grid; place-items: center; margin-left: 12px; flex: 0 0 auto; border-radius: 50%; color: #332508; background: var(--grad-gold); font-size: 12px; font-weight: 900; box-shadow: 0 5px 13px rgba(251,177,0,.23); }
.deposit-input-wrap input { min-width: 0; width: 100%; height: 54px; padding: 0 12px; border: 0; outline: 0; color: #fff; background: transparent; font-size: 20px; font-weight: 800; }
.deposit-input-wrap input::-webkit-inner-spin-button { display: none; }
.deposit-input-wrap em { padding-right: 16px; color: var(--gold); font-style: normal; font-size: 13px; font-weight: 900; }
.deposit-input-help { display: block; margin: 7px 2px 0; color: #747d9d; font-size: 10px; }
.deposit-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 13px 14px; border: 1px solid rgba(255,203,71,.16); border-radius: 10px; background: linear-gradient(90deg, rgba(255,193,52,.07), rgba(108,84,235,.08)); }
.deposit-total span { color: #929ab5; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.deposit-total output { color: var(--gold); font-size: 18px; font-weight: 900; }
.deposit-terms { display: flex; align-items: center; gap: 10px; margin-top: 15px; color: #aeb5cb; font-size: 11px; cursor: pointer; }
.deposit-terms input { position: absolute; opacity: 0; pointer-events: none; }
.deposit-terms > i { position: relative; width: 19px; height: 19px; flex: 0 0 19px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: rgba(9,12,23,.56); }
.deposit-terms input:checked + i { border-color: var(--gold); background: var(--gold); }
.deposit-terms input:checked + i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #30240b; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.deposit-terms input:focus-visible + i { outline: 2px solid rgba(255,203,71,.5); outline-offset: 3px; }
.deposit-terms button { padding: 0; border: 0; color: var(--gold); background: none; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.deposit-submit { min-height: 55px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid rgba(255,216,117,.52); border-radius: 12px; color: #281d07; background: var(--grad-gold); box-shadow: 0 14px 34px rgba(251,177,0,.22), inset 0 1px 0 rgba(255,255,255,.35); font-family: Benzin, Rubik, sans-serif; font-size: 14px; font-weight: 900; letter-spacing: .06em; transition: transform .2s var(--ease-spring), filter .2s ease, opacity .2s ease; }
.deposit-submit svg { width: 22px; height: 22px; }
.deposit-submit:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.07); }
.deposit-submit:disabled { cursor: not-allowed; opacity: .38; filter: grayscale(.3); box-shadow: none; }
.deposit-note { margin: -4px 0 0; color: #737c9a; font-size: 10px; text-align: center; }

@media (max-width: 700px) {
  #walletModal { align-items: flex-start; padding: 10px; }
  .deposit-card { width: 100%; max-height: calc(100dvh / var(--pz, 1) - 20px); border-radius: 14px; }
  .deposit-head { min-height: 62px; padding: 0 60px 0 16px; }
  .deposit-head-icon { width: 34px; height: 34px; }
  .deposit-head h2 { font-size: 15px; }
  .deposit-close { right: 12px; width: 34px; height: 34px; }
  .deposit-body { max-height: calc(100dvh / var(--pz, 1) - 82px); gap: 11px; padding: 11px; }
  .deposit-section { padding: 13px; }
  .deposit-section-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .deposit-methods { grid-template-columns: 1fr; }
  .deposit-method { min-height: 66px; }
  .deposit-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deposit-selected { min-height: 68px; padding: 13px; }
  .deposit-selected b { font-size: 15px; }
  .deposit-total { align-items: flex-start; flex-direction: column; gap: 6px; }
  .deposit-terms { align-items: flex-start; line-height: 1.45; }
}

/* ---------- announcement banner ---------- */
.announce-bar {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: min(680px, calc(100vw / var(--pz, 1) - 40px));
  padding: 10px 18px;
  background: linear-gradient(90deg, rgba(151, 86, 240, 0.22), rgba(251, 177, 0, 0.16)), rgba(20, 24, 40, 0.92);
  border: 1px solid rgba(151, 86, 240, 0.4);
  border-radius: 12px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  box-shadow: 0 14px 44px rgba(4, 6, 14, 0.55);
  backdrop-filter: blur(6px);
}
.announce-ico { color: var(--gold); }
.announce-close {
  margin-left: auto; background: none; border: 0; color: var(--muted);
  font-size: 17px; line-height: 1; cursor: pointer;
}
.announce-close:hover { color: #fff; }

/* ---------- routed deposit page ---------- */
.deposit-page {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding-bottom: 24px;
}
.deposit-page-title {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 14px;
  padding: 0 24px;
  border: 1px solid rgba(164, 147, 255, .3);
  border-radius: 14px;
  background: linear-gradient(105deg, #4a416b 0%, #3f385f 44%, #2d3151 100%);
  box-shadow: 0 18px 42px rgba(4, 6, 15, .26), inset 0 1px 0 rgba(255,255,255,.05);
}
.deposit-page-title::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .2;
  background: repeating-linear-gradient(120deg, transparent 0 28px, rgba(255,255,255,.07) 28px 29px);
}
.deposit-page-title > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 211, 103, .4);
  border-radius: 11px;
  color: var(--gold);
  background: rgba(255, 193, 52, .1);
}
.deposit-page-title svg { width: 22px; height: 22px; }
.deposit-page-title h1 {
  margin: 0;
  font-family: Benzin, Rubik, sans-serif;
  font-size: 19px;
  letter-spacing: .08em;
}
.deposit-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: start;
  gap: 14px;
}
.deposit-payments-panel,
.deposit-promo-panel,
.deposit-page-selected,
.deposit-amount-panel {
  border: 1px solid rgba(157, 165, 205, .13);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(48, 53, 81, .86), rgba(30, 34, 56, .92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 14px 34px rgba(6,8,18,.18);
}
.deposit-payments-panel { min-height: auto; padding: 20px; }
.deposit-block-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}
.deposit-block-title > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #211906;
  background: var(--grad-gold);
  font-size: 10px;
  font-weight: 900;
}
.deposit-block-title h2,
.deposit-amount-title h2 { margin: 0; color: #f6f7fc; font-size: 13px; font-weight: 800; letter-spacing: .045em; }
.deposit-block-title small { display: block; margin-top: 3px; color: #7f88a6; font-size: 10px; }
.deposit-page-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.deposit-page-method {
  position: relative;
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 38px 17px 16px;
  border: 1px solid rgba(160, 168, 205, .15);
  border-radius: 13px;
  background: rgba(15, 19, 34, .5);
  cursor: pointer;
  transition: transform .2s var(--ease-spring), border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.deposit-page-method:hover { transform: translateY(-2px); border-color: rgba(140, 122, 255, .45); background: rgba(92, 76, 181, .12); }
.deposit-page-method:has(input:checked) { border-color: rgba(255, 202, 72, .68); background: linear-gradient(135deg, rgba(255,193,52,.12), rgba(113,92,237,.13)); box-shadow: 0 0 0 1px rgba(255,203,71,.08), 0 12px 28px rgba(5,7,16,.22); }
.deposit-page-method input { position: absolute; opacity: 0; pointer-events: none; }
.deposit-page-method input:focus-visible + .deposit-check { outline: 2px solid rgba(255,203,71,.58); outline-offset: 3px; }
.deposit-page-method input:checked + .deposit-check { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 4px #332810; }
.deposit-page-method .deposit-method-logo { width: 54px; height: 54px; border-radius: 14px; }
.deposit-page-method .deposit-method-logo svg { width: 37px; height: 37px; }
.deposit-page-method > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.deposit-page-method b { overflow: hidden; color: #f6f7fc; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.deposit-page-method small { color: #858da9; font-size: 10px; }
.deposit-check { top: 12px; right: 12px; }
.deposit-checkout-column { display: grid; gap: 14px; }
.deposit-promo-panel { overflow: hidden; padding: 16px; }
.deposit-bonus-banner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 193, 52, .18);
  border-radius: 11px;
  background: linear-gradient(105deg, rgba(63, 48, 50, .82), rgba(100, 67, 45, .4), rgba(65, 50, 71, .64));
}
.deposit-bonus-banner > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #382806;
  background: var(--grad-gold);
  font-weight: 900;
  box-shadow: 0 7px 20px rgba(251,177,0,.24);
}
.deposit-bonus-banner div { display: flex; flex-direction: column; gap: 4px; }
.deposit-bonus-banner b { color: #fff; font-size: 12px; letter-spacing: .025em; }
.deposit-bonus-banner small { color: var(--gold); font-size: 9px; font-weight: 800; }
.deposit-promo-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.deposit-promo-row label { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid rgba(158,166,204,.15); border-radius: 10px; background: rgba(13,17,31,.52); }
.deposit-promo-row label > span { color: #777f9c; font-size: 18px; font-weight: 900; }
.deposit-promo-row input { width: 100%; min-width: 0; border: 0; outline: 0; color: #fff; background: transparent; font-size: 12px; }
.deposit-promo-row button { padding: 0 18px; border: 1px solid rgba(156,164,201,.18); border-radius: 10px; color: #b9c0d8; background: rgba(66, 65, 94, .7); font-size: 10px; font-weight: 900; }
.deposit-promo-row button:hover { color: #fff; border-color: rgba(255,203,71,.36); }
.deposit-page-selected { min-height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; }
.deposit-page-selected > div { display: flex; flex-direction: column; gap: 6px; }
.deposit-page-selected small { color: #8088a4; font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.deposit-page-selected b { color: #fff; font-family: Benzin, Rubik, sans-serif; font-size: 18px; letter-spacing: .04em; }
.deposit-page-selected-badge { max-width: 48%; overflow: hidden; padding: 9px 13px; border: 1px solid rgba(255,203,71,.28); border-radius: 10px; color: var(--gold); background: rgba(255,193,52,.08); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.deposit-amount-panel { padding: 18px; }
.deposit-amount-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.deposit-amount-title small { color: #818aa8; font-size: 10px; font-weight: 700; }
.deposit-amount-title small b { color: var(--gold); }
.deposit-page-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.deposit-page-presets button { min-height: 42px; border: 1px solid rgba(156,164,201,.13); border-radius: 9px; color: #c9cee1; background: rgba(19,23,40,.52); font-size: 11px; font-weight: 800; transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease; }
.deposit-page-presets button:hover { transform: translateY(-1px); color: #fff; border-color: rgba(138,119,255,.4); }
.deposit-page-presets button.on { color: #261b05; border-color: rgba(255,211,102,.75); background: var(--grad-gold); box-shadow: 0 8px 20px rgba(251,177,0,.18); }
.deposit-page-input { min-height: 56px; display: flex; align-items: center; margin-top: 11px; border: 1px solid rgba(155,164,202,.17); border-radius: 11px; background: rgba(13,17,31,.5); transition: border-color .2s ease, box-shadow .2s ease; }
.deposit-page-input:focus-within { border-color: rgba(139,120,255,.72); box-shadow: 0 0 0 3px rgba(125,103,245,.1); }
.deposit-page-input input { min-width: 0; width: 100%; height: 54px; padding: 0 12px; border: 0; outline: 0; color: #fff; background: transparent; font-size: 20px; font-weight: 800; }
.deposit-page-input input::-webkit-inner-spin-button { display: none; }
.deposit-page-input em { padding-right: 16px; color: var(--gold); font-style: normal; font-size: 13px; font-weight: 900; }
.deposit-bonus-pill { width: fit-content; display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border-radius: 99px; color: #53e5ac; background: rgba(31, 158, 111, .24); font-size: 11px; font-weight: 800; }
.deposit-bonus-pill[hidden] { display: none; }
.deposit-bonus-pill i { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #153525; background: #53e5ac; font-style: normal; }
.deposit-page-total { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: #929ab5; font-size: 10px; font-weight: 800; }
.deposit-page-total output { color: #53e5ac; font-size: 15px; font-weight: 900; }
.deposit-page-terms { display: flex; align-items: center; gap: 10px; margin-top: 17px; color: #aeb5cb; font-size: 11px; cursor: pointer; }
.deposit-page-terms input { position: absolute; opacity: 0; pointer-events: none; }
.deposit-page-terms > i { position: relative; width: 19px; height: 19px; flex: 0 0 19px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: rgba(9,12,23,.56); }
.deposit-page-terms input:checked + i { border-color: var(--gold); background: var(--gold); }
.deposit-page-terms input:checked + i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #30240b; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.deposit-page-terms input:focus-visible + i { outline: 2px solid rgba(255,203,71,.5); outline-offset: 3px; }
.deposit-page-terms button { padding: 0; border: 0; color: var(--gold); background: none; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.deposit-page-submit { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid rgba(255,216,117,.52); border-radius: 12px; color: #281d07; background: var(--grad-gold); box-shadow: 0 14px 34px rgba(251,177,0,.22), inset 0 1px 0 rgba(255,255,255,.35); font-family: Benzin, Rubik, sans-serif; font-size: 14px; font-weight: 900; letter-spacing: .06em; transition: transform .2s var(--ease-spring), filter .2s ease, opacity .2s ease; }
.deposit-page-submit svg { width: 22px; height: 22px; }
.deposit-page-submit:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.07); }
.deposit-page-submit:disabled { cursor: not-allowed; opacity: .38; filter: grayscale(.3); box-shadow: none; }
.deposit-page-note { margin: -6px 0 0; color: #737c9a; font-size: 10px; text-align: center; }
@media (max-width: 1050px) {
  .deposit-page-grid { grid-template-columns: 1fr; }
  .deposit-payments-panel { min-height: 0; }
  .deposit-page-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deposit-page-method { min-height: 92px; padding: 13px 30px 13px 12px; }
  .deposit-page-method .deposit-method-logo { width: 44px; height: 44px; }
}
@media (max-width: 700px) {
  .deposit-page-title { min-height: 62px; padding: 0 16px; }
  .deposit-page-title > span { width: 35px; height: 35px; }
  .deposit-page-title h1 { font-size: 15px; }
  .deposit-payments-panel { padding: 14px; }
  .deposit-page-methods { grid-template-columns: 1fr; }
  .deposit-page-method { min-height: 70px; }
  .deposit-promo-panel, .deposit-amount-panel { padding: 13px; }
  .deposit-promo-row { grid-template-columns: 1fr; }
  .deposit-promo-row button { min-height: 43px; }
  .deposit-page-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deposit-page-selected { min-height: 72px; padding: 13px; }
  .deposit-page-selected b { font-size: 15px; }
  .deposit-page-terms { align-items: flex-start; line-height: 1.45; }
}

/* ============================================================
   OFFGRADER — WELVURA-INSPIRED REDESIGN 2026
   Final visual layer. Solid nested surfaces, no card outlines.
   ============================================================ */
:root {
  --wv-bg: #202335;
  --wv-bg-deep: #1b1e2f;
  --wv-sidebar: #25283d;
  --wv-header: #2e314a;
  --wv-panel: #2e314a;
  --wv-panel-2: #383b5a;
  --wv-panel-3: #43486a;
  --wv-input: #26293f;
  --wv-violet: #9f8ff8;
  --wv-violet-2: #826ff1;
  --wv-violet-soft: rgba(159,143,248,.13);
  --wv-gold: #ffc94f;
  --wv-text: #f8f8fc;
  --wv-soft: #c1c5dc;
  --wv-muted: #858aa8;
  --wv-danger: #ff646f;
  --wv-success: #38d28a;
  --wv-blue: #43a8ff;
  --wv-shadow: 0 14px 34px rgba(12,14,25,.22);
  --wv-shadow-soft: 0 8px 22px rgba(12,14,25,.15);
  --wv-r-sm: 8px;
  --wv-r: 10px;
  --wv-r-lg: 14px;
  --wv-r-xl: 18px;
  --bg: var(--wv-bg);
  --bg-deep: var(--wv-bg-deep);
  --panel: var(--wv-panel);
  --panel-hi: var(--wv-panel-2);
  --panel-lo: var(--wv-input);
  --inset: var(--wv-input);
  --line: transparent;
  --line-strong: transparent;
  --text: var(--wv-text);
  --text-soft: var(--wv-soft);
  --muted: var(--wv-muted);
  --muted-hi: #a8acc3;
  --vio-a: var(--wv-violet);
  --vio-b: #927ff5;
  --vio-c: var(--wv-violet-2);
  --grad-vio: linear-gradient(135deg,#a99afb 0%,#927ff5 50%,#7c68ed 100%);
  --grad-btn: linear-gradient(135deg,#a99afb 0%,#927ff5 52%,#7c68ed 100%);
  --gold: var(--wv-gold);
  --radius: var(--wv-r);
}

html { background: var(--wv-bg); min-height: 100%; min-height: calc(100vh / var(--pz, 1)); }
body {
  position: relative !important;
  min-height: 100%;
  min-height: calc(100vh / var(--pz, 1));
  background: var(--wv-bg) !important;
  color: var(--wv-text);
  font: 400 14px/1.45 Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font-family: inherit; }
button:focus, input:focus, select:focus, textarea:focus, summary:focus,
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: none !important;
}
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(159,143,248,.14) !important;
}

/* APP CHROME */
.rail {
  width: 68px !important;
  flex: 0 0 68px !important;
  position: absolute !important;
  top: 121px !important;
  bottom: 0 !important;
  left: 0 !important;
  height: auto;
  border-radius: 0 16px 0 0 !important;
  padding: 16px 6px 20px !important;
  gap: 12px !important;
  align-items: center !important;
  background: var(--wv-panel) !important;
  border: 0 !important;
  box-shadow: 0 -4px 22px rgba(10, 12, 24, 0.22) !important;
  z-index: 50 !important;
}
.rail-logo {
  display: none !important;
}
.rail-word { display: none !important; }
.rail-nav { gap: 9px !important; align-items: center; width: 100%; }
.tab {
  width: 54px !important;
  min-height: 52px !important;
  height: 52px;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  border: 0 !important;
  border-radius: 12px !important;
  color: #777d9d !important;
  background: transparent !important;
  overflow: visible;
}
.tab span {
  position: absolute;
  left: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(-5px);
  z-index: 20;
  padding: 8px 11px;
  border-radius: 8px;
  background: #434665;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: var(--wv-shadow-soft);
  transition: .16s ease;
  white-space: nowrap;
}
.tab:hover span { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.tab svg {
  width: 42px !important;
  height: 42px !important;
  padding: 10px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--wv-panel) !important;
  box-shadow: none !important;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.tab:hover { color: #b9b0fb !important; transform: none !important; }
.tab:hover svg { background: #383b59 !important; transform: translateY(-1px); }
.tab[aria-current="page"] { background: transparent !important; border: 0 !important; color: #fff !important; }
.tab[aria-current="page"] svg { background: var(--grad-btn) !important; box-shadow: 0 8px 20px rgba(126,105,239,.3) !important; }

.app {
  min-width: 0;
  min-height: calc(100vh / var(--pz, 1)) !important;
  display: flex !important;
  flex-direction: column !important;
  background: var(--wv-bg) !important;
}
.top {
  height: 76px !important;
  min-height: 76px;
  padding: 0 22px !important;
  gap: 18px;
  background: var(--wv-header) !important;
  border: 0 !important;
  box-shadow: 0 8px 24px rgba(13,15,28,.13) !important;
}
.feed-wrap { min-width: 0; }
.ticker-frame { height: 58px; }
.ticker { gap: 8px !important; }
.ticker .drop, .ticker > *:not(.online) {
  background: #383b5a !important;
  border: 0 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}
.online {
  padding: 7px 11px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(159,143,248,.1) !important;
  color: var(--wv-violet) !important;
}
.online i { background: #50d49a !important; box-shadow: 0 0 0 4px rgba(80,212,154,.1); }
.online em { color: #858aa8 !important; }
.top-meta { gap: 11px !important; }
.balance { gap: 8px !important; }
.meta-plus {
  width: 36px !important;
  height: 36px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--grad-btn) !important;
  color: #fff !important;
  box-shadow: 0 7px 17px rgba(126,105,239,.28) !important;
}
.balance-val {
  min-height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 9px;
  background: #383b5a;
}
.balance-val strong { color: #fff !important; font-size: 14px !important; }
.balance-val em { color: var(--wv-gold) !important; font-size: 14px !important; }
.meta-avatar, .meta-login {
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--grad-btn) !important;
  box-shadow: 0 7px 17px rgba(126,105,239,.25) !important;
}
.meta-avatar { width: 38px !important; height: 38px !important; }
.meta-login { height: 38px !important; padding: 0 17px !important; }

main {
  flex: 1 0 auto !important;
  min-height: calc(100vh / var(--pz, 1) - 76px + 20px) !important;
  padding: 25px 25px 42px !important;
  background: var(--wv-bg) !important;
}
/* WELVURA HALF-CARD FOOTER */
.site-footer {
  width: auto !important;
  margin-top: 25px !important;
  margin-left: 25px !important;
  margin-right: 25px !important;
  margin-bottom: 0 !important;
  padding: 38px 48px 40px 48px !important;
  background: var(--wv-panel) !important;
  border-radius: 16px 16px 0 0 !important;
  box-shadow: 0 -6px 24px rgba(12, 14, 25, 0.16) !important;
  border: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 32px !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
}
.site-footer-brand {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  padding-top: 2px;
}
.site-footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.94;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.site-footer-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.site-footer-logo img {
  height: 28px;
  width: auto;
  aspect-ratio: 2913.43 / 390;
  display: block;
}
.site-footer-columns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-left: clamp(48px, 8vw, 120px);
}
.site-footer-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.site-footer-title {
  margin: 0 0 12px 0;
  padding: 0;
  font-family: Rubik, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
}
.site-footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer-link {
  display: inline-block;
  font-family: Rubik, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: #f0f2fa;
  text-decoration: none;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0;
  text-align: left;
  cursor: pointer;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: color 0.18s ease;
}
.site-footer-link:hover {
  color: var(--wv-violet, #9f8ff8) !important;
}
@media (max-width: 960px) {
  .site-footer {
    padding: 30px 24px 32px !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    gap: 28px !important;
  }
  .site-footer-columns {
    margin-left: 28px;
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .site-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 24px 20px 28px !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
    border-radius: 14px 14px 0 0 !important;
    gap: 24px !important;
  }
  .site-footer-columns {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    gap: 20px;
    width: 100%;
  }
  .site-footer-col {
    width: 100%;
  }
  /* Comfortable tap targets + readable headings on touch screens */
  .site-footer-list { gap: 4px; }
  .site-footer-link { padding: 10px 0 !important; }
  .site-footer-title { color: rgba(255, 255, 255, 0.6); }
}

/* MENUS */
.user-menu {
  top: 66px !important;
  right: 20px !important;
  width: 240px !important;
  padding: 8px !important;
  background: #383b5a !important;
  border: 0.8px solid #42476d !important;
  border-radius: 13px !important;
  box-shadow: 0 18px 42px rgba(10,12,23,.34) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.um-links {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.um-links button {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 38px !important;
  padding: 8px 10px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #cfd3e8 !important;
  font: 500 13px Rubik, sans-serif !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background 0.16s ease, color 0.16s ease !important;
  transform: none !important;
  box-sizing: border-box !important;
}
.um-links button svg { width: 22px !important; height: 22px !important; color: #b6a6ff !important; flex-shrink: 0 !important; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.um-links button:hover { background: rgba(159,143,248,.15) !important; color: #fff !important; transform: none !important; }
.um-links .um-out svg { color: #ff6e78 !important; }
.um-links .um-out:hover { background: rgba(255,100,111,.14) !important; color: #ff8e95 !important; transform: none !important; }

/* COMMON SURFACES */
.panel, .case-section, .casepage-head, .casepage-drops, .acc-pane,
.wd-card, .wd-process, .deposit-payments-panel, .deposit-promo-panel,
.deposit-page-selected, .deposit-amount-panel, .doc, .profile-head,
.profile-recent, .howto, details, .history-card, .account-card {
  background: var(--wv-panel) !important;
  border: 0 !important;
  border-radius: var(--wv-r-lg) !important;
  box-shadow: none !important;
}
.panel:hover, .case-section:hover, .casepage-drops:hover { border: 0 !important; box-shadow: none !important; }
.panel::before, .panel::after { display: none !important; }
.panel-head > span, .acc-badge, .hs-n {
  border: 0 !important;
  background: var(--wv-violet-soft) !important;
  color: var(--wv-violet) !important;
  border-radius: 7px !important;
}
.panel-foot, .hc-foot, .uc-foot { border: 0 !important; }
.empty {
  border: 0 !important;
  border-radius: 10px !important;
  background: #383b5a !important;
  color: #8f94af !important;
}

/* INPUTS / SMALL CONTROLS */
.tools input, input[type="search"], input[type="number"], input[type="text"], select,
.tb-search, .tb-price, .gold-add, .wd-price-copy-field, .wd-pattern-field,
.deposit-page-input, .deposit-promo-row label {
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--wv-input) !important;
  color: var(--wv-text) !important;
  box-shadow: none !important;
}
.tools input:hover, input:hover, select:hover { background: #292d45 !important; }
.tools input:focus, input:focus, select:focus { background: #292d45 !important; }
::placeholder { color: #696e8c !important; }
.chips button, .mini, .qty, .tb-btn, .tb-select select, .hist-sub,
.wd-back, .wd-upload, .deposit-page-presets button, .deposit-promo-row button {
  border: 0 !important;
  border-radius: 8px !important;
  background: #383b5a !important;
  color: #aeb2cb !important;
  box-shadow: none !important;
}
.chips button:hover, .mini:hover, .qty:hover, .tb-btn:hover, .hist-sub:hover,
.deposit-page-presets button:hover { background: #43486a !important; color: #fff !important; }
.chips button.on, .mini.on, .qty.on, .tb-btn.on, .hist-sub.on,
.deposit-page-presets button.on {
  border: 0 !important;
  background: var(--grad-btn) !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(126,105,239,.24) !important;
}

/* PRIMARY ACTIONS */
.btn-go, .buttonMain, .wd-next, .deposit-page-submit, .wd-process-go,
.meta-login, .auth-btn {
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--grad-btn) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(126,105,239,.27) !important;
}
.btn-go:hover, .buttonMain:hover, .wd-next:hover, .deposit-page-submit:hover,
.wd-process-go:hover { transform: translateY(-1px) !important; filter: brightness(1.05); box-shadow: 0 11px 25px rgba(126,105,239,.32) !important; }
.btn-go:disabled, .deposit-page-submit:disabled { background: #43465f !important; color: #777b98 !important; box-shadow: none !important; }
.btn-fast { border: 0 !important; border-radius: 9px !important; background: linear-gradient(135deg,#ffcf5c,#f0a83e) !important; color: #30220a !important; box-shadow: 0 8px 20px rgba(244,174,63,.22) !important; }
.btn-alt, .btn-ghost { border: 0 !important; border-radius: 9px !important; background: #43486a !important; color: #fff !important; box-shadow: none !important; }
.btn-sellall { border: 0 !important; border-radius: 9px !important; background: #ff646f !important; box-shadow: 0 8px 18px rgba(255,100,111,.18) !important; }

/* UPGRADE */
.upgrade-grid { gap: 14px !important; grid-template-columns: minmax(245px,.9fr) minmax(430px,1.35fr) minmax(245px,.9fr) !important; }
.panel { min-height: 590px !important; padding: 15px !important; }
.panel.center { background: #333651 !important; }
.panel-head { margin-bottom: 10px !important; }
.panel h2, .panel-head h2, .mode-title { text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; font-weight: 600 !important; }
.tools { gap: 8px !important; }
.tools input { height: 39px !important; padding: 0 11px !important; }
.skins { gap: 8px !important; padding-right: 3px !important; }
.skin {
  min-height: 154px !important;
  padding: 9px 8px 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #383b5a !important;
  box-shadow: none !important;
}
.skin:hover { transform: translateY(-2px) !important; background: #3e4262 !important; box-shadow: var(--wv-shadow-soft) !important; }
.skin.sel { border: 0 !important; background: #45476a !important; box-shadow: inset 0 -4px 0 var(--wv-violet), 0 9px 20px rgba(14,16,29,.2) !important; }
.skin::after { display: none !important; }
.skin::before { opacity: .62 !important; background: linear-gradient(180deg,transparent 55%,rgba(159,143,248,.09)) !important; }
.skin .art { border: 0 !important; border-radius: 8px !important; background: #30334d !important; }
.skin .n { color: #a6abc3 !important; font-size: 11px !important; }
.skin .s { color: #fff !important; font-size: 12px !important; }
.skin .p { color: var(--wv-gold) !important; }
.skin .p::before { display: none !important; }
.mode-row { padding: 0 4px !important; }
.switch i { border: 0 !important; background: #24273c !important; }
.switch input:checked + i { background: var(--wv-violet) !important; }
.wheel-stage { margin: 8px auto 2px !important; }
.wheel {
  border: 2px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(10, 12, 23, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  background: #23263b !important;
}
.wheel::before {
  display: none !important;
}
.wheel::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 2px !important;
  z-index: 3 !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 18px rgba(5, 7, 15, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
  pointer-events: none !important;
}
.ticks {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 50% !important;
  background: repeating-conic-gradient(from -90deg, rgba(255, 255, 255, 0.22) 0 1deg, transparent 1deg 6deg) !important;
  pointer-events: none !important;
  z-index: 2 !important;
  opacity: 0.75 !important;
}
.hub {
  inset: 54px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 50% 25%, #2c304d, #1e2136 70%) !important;
  border: 1px solid rgba(220, 224, 236, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(4, 6, 14, 0.4) !important;
}
.hub::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 7px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(220, 224, 236, 0.08) !important;
  pointer-events: none !important;
}
.pointer {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)) !important;
  border-top: 15px solid #fff !important;
  border-left: 9px solid transparent !important;
  border-right: 9px solid transparent !important;
}
.pct {
  font-size: 38px !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.5px !important;
}
.pct small {
  color: #ffd15c !important;
  font-size: 20px !important;
}

#view-upgrade .panel.center .duel-summary,
.duel-summary {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 38px 1fr !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 126px !important;
  height: 126px !important;
  max-height: 126px !important;
  margin: 6px 0 !important;
  box-sizing: border-box !important;
}
.duel-kicker { display: none !important; }

#view-upgrade .panel.center .duel-arrow,
#view-upgrade .duel-arrow,
.duel-arrow {
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  margin: auto !important;
  align-self: center !important;
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  transform: none !important;
  color: #9f8ff8 !important;
}
#view-upgrade .panel.center .duel-arrow i,
#view-upgrade .duel-arrow i,
.duel-arrow i {
  display: none !important;
}
#view-upgrade .panel.center .duel-arrow span,
#view-upgrade .duel-arrow span,
.duel-arrow span {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: rgba(159, 143, 248, 0.12) !important;
  border: 1px solid rgba(159, 143, 248, 0.28) !important;
  color: #9f8ff8 !important;
  box-shadow: 0 4px 14px rgba(126, 105, 239, 0.16) !important;
  transform: none !important;
}
.duel-arrow svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  stroke: #9f8ff8 !important;
}

#view-upgrade .panel.center .duel-slot,
.duel-slot {
  width: 100% !important;
  min-height: 126px !important;
  height: 126px !important;
  max-height: 126px !important;
  padding: 8px 10px 8px !important;
  border: 0.8px solid #42476d !important;
  border-radius: 12px !important;
  background-color: #383b5a !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Empty slot card - centered question mark & placeholder */
.duel-slot:not(.has-value) .duel-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  height: 100% !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}
.duel-slot:not(.has-value) .duel-art {
  width: 50px !important;
  height: 50px !important;
  margin: 0 auto !important;
  border: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}
.duel-slot:not(.has-value) .duel-art img {
  display: none !important;
}
.duel-slot .duel-art span,
.duel-slot:not(.has-value) .duel-art span {
  display: none !important;
}
.duel-slot:not(.has-value) .duel-copy {
  width: 100% !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
.duel-slot:not(.has-value) .duel-copy b,
.duel-slot:not(.has-value) .duel-placeholder {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #8c93b4 !important;
  text-align: center !important;
  display: block !important;
  line-height: 1.3 !important;
  margin: 0 auto !important;
}
.duel-slot:not(.has-value) .duel-copy small {
  display: none !important;
}

/* Selected slot card - matching site card styling */
.duel-slot.has-value {
  border-color: rgba(159, 143, 248, 0.35) !important;
  box-shadow: 0 6px 18px rgba(10, 12, 23, 0.25) !important;
}
.duel-slot.has-value::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--slot-rarity, #9f8ff8) 28%, transparent), transparent 70%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
.duel-slot.has-value::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 3px !important;
  background: var(--slot-rarity, #9f8ff8) !important;
  box-shadow: 0 0 10px var(--slot-rarity, #9f8ff8) !important;
  border-radius: 0 0 12px 12px !important;
  z-index: 5 !important;
}
.duel-slot.has-value .duel-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  height: 100% !important;
  gap: 2px !important;
  position: relative !important;
  z-index: 3 !important;
  box-sizing: border-box !important;
}
.duel-slot.has-value .duel-art {
  width: 100% !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 auto !important;
}
.duel-slot.has-value .duel-art img {
  width: auto !important;
  height: auto !important;
  max-width: 90% !important;
  max-height: 52px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6)) !important;
  margin: 0 auto !important;
}
.duel-count-badge {
  display: none !important;
}
.duel-slot.has-value .duel-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 1px !important;
}
.duel-slot.has-value .duel-copy b {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-weight: normal !important;
}
.duel-gun-type {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #8c93b4 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 95% !important;
  margin: 0 auto !important;
  display: block !important;
}
.duel-skin-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 95% !important;
  margin: 0 auto !important;
  display: block !important;
}
.duel-placeholder {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #8c93b4 !important;
  line-height: 1.3 !important;
  text-align: center !important;
  margin: 0 auto !important;
}
.duel-slot.has-value .duel-art span {
  display: none !important;
}
.duel-slot.has-value .duel-copy small {
  display: block !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffd15c !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 2px auto 0 !important;
  text-align: center !important;
  width: auto !important;
}
.duel-arrow { color: var(--wv-violet) !important; }
.chips { gap: 7px !important; }
.chips button { min-height: 35px !important; }
.panel-foot { background: transparent !important; }
.gold-range input[type="range"] { background: #22253a !important; }

/* CASES */
.case-toolbar {
  padding: 11px !important;
  gap: 8px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--wv-panel) !important;
  box-shadow: none !important;
}
.tb-btn, .tb-search, .tb-price, .tb-select select { min-height: 40px !important; }
.tb-dropdown { position: relative; display: inline-flex; vertical-align: middle; }
#tbCatDropdown { width: 192px; flex: 0 0 192px; }
#tbSortDropdown { width: 118px; flex: 0 0 118px; }
.tb-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 8px !important;
  border: 0.8px solid #42476d !important;
  background: #383b5a !important;
  color: #fff !important;
  font: 500 13px Rubik, sans-serif !important;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
  user-select: none;
  white-space: nowrap;
}
.tb-dropdown-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  text-align: left;
}
.tb-dropdown-btn:hover {
  background: #43486a !important;
  border-color: #555b88 !important;
  color: #fff !important;
}
.tb-dropdown-btn.is-placeholder {
  color: #7b80a0 !important;
  background: #2b2e46 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  opacity: 0.72;
}
.tb-dropdown-btn.is-placeholder:hover {
  opacity: 0.95;
  color: #9ea5cf !important;
  background: #333754 !important;
}
.tb-dropdown-arrow {
  width: 14px;
  height: 14px;
  color: #8e93b5;
  flex-shrink: 0;
  margin-left: 6px;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}
.tb-dropdown.open .tb-dropdown-arrow {
  transform: rotate(180deg);
}
.tb-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 120;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: 10px;
  background: #282a42;
  border: 1px solid rgba(159, 143, 248, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: tbDropIn 0.15s ease-out;
}
@keyframes tbDropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.tb-dropdown.open .tb-dropdown-menu {
  display: flex;
}
#tbSortDropdown .tb-dropdown-menu {
  left: auto;
  right: 0;
  width: 100%;
  min-width: 100%;
}
.tb-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font: 500 13px Rubik, sans-serif;
  color: #c4c8e2;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
  white-space: nowrap;
  box-sizing: border-box;
}
.tb-dropdown-item:hover {
  background: rgba(159, 143, 248, 0.18);
  color: #fff;
  transform: translateX(2px);
}
.tb-dropdown-item.selected {
  background: rgba(159, 143, 248, 0.28);
  color: #fff;
  font-weight: 600;
}
.tb-dropdown-item .cs-ico {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}
@media (max-width: 620px) {
  #tbCatDropdown,
  #tbSortDropdown,
  .tb-dropdown { width: 100% !important; flex: 1 1 100% !important; }
  .tb-dropdown-btn { width: 100% !important; justify-content: space-between; }
  .tb-dropdown-menu { width: 100% !important; min-width: 100% !important; }
}

.case-section { padding: 18px !important; margin-bottom: 16px !important; }
.case-section h2, .case-title-row h2 { font-family: Rubik,sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
.case-grid { gap: 12px !important; grid-template-columns: repeat(auto-fill,minmax(165px,1fr)) !important; }
.gcard {
  padding: 10px 10px 13px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.gcard:hover { transform: translateY(-3px) !important; border: 0 !important; box-shadow: none !important; background: rgba(56,59,90,.55) !important; }
.gcard-art {
  min-height: 155px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #383b5a !important;
  box-shadow: none !important;
}
.gcard:hover .gcard-art { border: 0 !important; background: #3f4263 !important; box-shadow: 0 12px 25px rgba(12,14,25,.2) !important; }
.gcard-price {
  bottom: 8px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: var(--wv-violet) !important;
  color: #fff !important;
  box-shadow: 0 5px 13px rgba(126,105,239,.23) !important;
}
.gcard-name { color: #f6f6fb !important; font-weight: 500 !important; }
.card-heart { border: 0 !important; background: rgba(32,35,53,.72) !important; border-radius: 8px !important; }
.gcard.faved .card-heart { border: 0 !important; background: rgba(255,95,126,.16) !important; }
.rarity-strip { border: 0 !important; opacity: .72; }
.casepage-head { padding: 18px 22px 26px !important; }
.back-btn { border: 0 !important; border-radius: 8px !important; background: #383b5a !important; color: #b9bdd3 !important; }
.casepage-art { border: 0 !important; background: #383b5a !important; border-radius: 12px !important; box-shadow: none !important; }
.casepage-info h1 { font-family: Rubik,sans-serif !important; letter-spacing: 0 !important; }
.qty-group { border: 0 !important; background: #282b42 !important; border-radius: 9px !important; padding: 4px !important; }
.spinner-stack, .reel-frame { border: 0 !important; border-radius: 12px !important; background: #2e314a !important; box-shadow: none !important; }
.reel-item { border: 0 !important; background: #383b5a !important; border-radius: 9px !important; }
.casepage-drops { padding: 18px !important; }
.drops-grid { gap: 9px !important; grid-template-columns: repeat(auto-fill,minmax(135px,1fr)) !important; }
.drop-tile {
  min-height: 140px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #383b5a !important;
  box-shadow: inset 0 -3px 0 var(--c) !important;
}
.drop-tile::before { display: none !important; }
.drop-tile:hover { transform: translateY(-2px) !important; border: 0 !important; background: #3e4262 !important; box-shadow: inset 0 -3px 0 var(--c),var(--wv-shadow-soft) !important; }

/* ACCOUNT / INVENTORY / HISTORY */
.acc-tabs {
  gap: 6px !important;
  padding: 6px !important;
  margin-bottom: 12px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--wv-panel) !important;
}
.acc-tab {
  min-height: 47px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #9095b1 !important;
  box-shadow: none !important;
}
.acc-tab:hover { background: #383b5a !important; color: #fff !important; }
.acc-tab.on { border: 0 !important; background: var(--grad-btn) !important; color: #fff !important; box-shadow: 0 7px 18px rgba(126,105,239,.22) !important; }
.acc-tab::after { display: none !important; }
.acc-pane { padding: 15px !important; }
.acc-subbar { border: 0 !important; background: #383b5a !important; border-radius: 10px !important; }
.acc-toggle i { border: 0 !important; background: #25283d !important; }
.acc-toggle input:checked + i { background: var(--wv-violet) !important; }
.hist-subtabs { border: 0 !important; background: #383b5a !important; border-radius: 9px !important; padding: 5px !important; }
.hist-card, .ucard, .ccard, .htile, .wd-hist-row {
  border: 0 !important;
  border-radius: 10px !important;
  background: #383b5a !important;
  box-shadow: none !important;
}
.uc-head, .uc-foot { background: #323550 !important; border: 0 !important; }
.uc-col + .uc-col { border-left: 0 !important; }
.htile { box-shadow: inset 0 -3px 0 var(--rc,var(--wv-violet)) !important; }
.ccard { box-shadow: inset 0 -3px 0 var(--rc,var(--wv-violet)) !important; }
.wd-info { gap: 8px !important; }
.wd-info-item { border: 0 !important; background: #383b5a !important; border-radius: 9px !important; }

/* WITHDRAW */
.wd-page { max-width: 960px !important; }
.wd-head h1, .deposit-page-title h1 { font-family: Rubik,sans-serif !important; letter-spacing: 0 !important; }
.wd-steps { background: var(--wv-panel) !important; border: 0 !important; border-radius: 12px !important; padding: 12px !important; }
.wd-step::before, .wd-step::after { border: 0 !important; }
.wd-step i { border: 0 !important; background: #43486a !important; }
.wd-step.on i, .wd-step.done i { background: var(--grad-btn) !important; box-shadow: 0 5px 14px rgba(126,105,239,.23) !important; }
.wd-card { padding: 22px !important; }
.wd-avrow, .wd-last, .wd-offer-grid, .wd-offer-preview, .wd-price-fields,
.wd-price-skin, .wd-confirmations, .wd-skinrow, .wd-process-summary,
.wd-process-guide {
  border: 0 !important;
  border-radius: 11px !important;
  background: #383b5a !important;
  box-shadow: none !important;
}
.wd-avbox, .wd-avatar-list button, .wd-offer-grid button, .wd-skin-tile, .wd-steptile {
  border: 0 !important;
  border-radius: 9px !important;
  background: #2c2f48 !important;
}
.wd-avatar-list button.on, .wd-offer-grid button.on { border: 0 !important; box-shadow: inset 0 -4px 0 var(--wv-violet) !important; background: #43486a !important; }
.wd-confirm-row i { border: 0 !important; background: #25283d !important; }
.wd-confirm-row input:checked + i { background: var(--wv-violet) !important; }
.wd-process-head { border: 0 !important; background: rgba(56,210,138,.1) !important; border-radius: 10px !important; }
.wd-process-guide-icon { border: 0 !important; background: var(--wv-violet-soft) !important; }
.wd-unavailable-card { border: 0 !important; border-radius: 14px !important; background: #2e314a !important; box-shadow: 0 20px 50px rgba(8,10,20,.38) !important; }
.wd-unavailable-close, .wd-unavailable-support { border: 0 !important; }

/* DEPOSIT */
.deposit-page { max-width: 1050px !important; }
.deposit-page-grid { gap: 14px !important; }
.deposit-payments-panel, .deposit-promo-panel, .deposit-page-selected, .deposit-amount-panel { padding: 18px !important; }
.deposit-page-methods { gap: 8px !important; }
.deposit-page-method {
  border: 0 !important;
  border-radius: 10px !important;
  background: #383b5a !important;
  box-shadow: none !important;
}
.deposit-page-method:hover { background: #404361 !important; }
.deposit-page-method:has(input:checked) { border: 0 !important; background: #45486a !important; box-shadow: inset 0 -4px 0 var(--wv-violet) !important; }
.deposit-check { border: 0 !important; background: #26293f !important; }
.deposit-page-method input:checked + .deposit-check { background: var(--wv-violet) !important; }
.deposit-method-logo { border: 0 !important; background: #2a2d45 !important; border-radius: 9px !important; }
.deposit-bonus-banner { border: 0 !important; border-radius: 10px !important; background: linear-gradient(135deg,rgba(159,143,248,.2),rgba(159,143,248,.06)) !important; }
.deposit-page-selected-badge, .deposit-bonus-pill { border: 0 !important; border-radius: 8px !important; }
.deposit-page-total { border: 0 !important; border-radius: 9px !important; background: #383b5a !important; }
.deposit-page-terms i { border: 0 !important; background: #26293f !important; }
.deposit-page-terms input:checked + i { background: var(--wv-violet) !important; }

/* PROFILE / DOCUMENTS */
.profile-head { padding: 18px !important; }
.profile-avatar img { border: 0 !important; }
.xp-bar { border: 0 !important; background: #24273b !important; }
.stat-grid { gap: 10px !important; }
.stat-card { border: 0 !important; border-radius: 10px !important; background: var(--wv-panel) !important; box-shadow: none !important; }
.profile-recent { padding: 18px !important; }
.page-head { padding: 0 3px; }
.page-head h1 { font-family: Rubik,sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
.doc { padding: 20px !important; }
.doc details { border: 0 !important; border-radius: 9px !important; background: #383b5a !important; }
.doc details:hover, .doc details[open] { border: 0 !important; background: #3e4262 !important; }

/* MODALS / AUTH / TOAST */
.overlay { background: rgba(20,22,35,.8) !important; }
.reel-box, .case-detail {
  border: 0 !important;
  border-radius: 14px !important;
  background: #2e314a !important;
  box-shadow: 0 22px 55px rgba(8,10,20,.42) !important;
}
.case-close { border: 0 !important; background: #383b5a !important; border-radius: 8px !important; }
.auth-close { border: 0 !important; background: rgba(255, 255, 255, 0.16) !important; border-radius: 50% !important; }
.auth-btn-icon.auth-tg { background: #29A9EB !important; }
.auth-btn-icon.auth-google { background: #ffffff !important; }
.toast {
  border: 0 !important;
  border-radius: 10px !important;
  background: #43486a !important;
  box-shadow: 0 15px 36px rgba(8,10,20,.34) !important;
}

/* Decorative outlines from legacy theme */
[class*="card"]::before, [class*="panel"]::before { border-color: transparent; }

/* RESPONSIVE */
@media (max-width: 1180px) {
  .upgrade-grid { grid-template-columns: 1fr 1.25fr !important; }
  .upgrade-grid > .panel:last-child { grid-column: 1 / -1; min-height: auto !important; }
  .upgrade-grid > .panel:last-child .skins { grid-template-columns: repeat(auto-fill,minmax(125px,1fr)); max-height: 390px; }
}
@media (max-width: 900px) {
  .rail { width: 72px !important; flex-basis: 72px !important; padding: 12px 6px !important; }
  .rail-logo { width: 56px; }
  .tab { width: 56px !important; }
  .tab span { display: none !important; }
  .top { height: 66px !important; min-height: 66px; padding: 0 12px !important; }
  main { padding: 16px 14px 32px !important; }
  .upgrade-grid { grid-template-columns: 1fr !important; }
  .upgrade-grid > .panel:last-child { grid-column: auto; }
  .panel { min-height: auto !important; }
  .case-grid { grid-template-columns: repeat(auto-fill,minmax(145px,1fr)) !important; }
  .deposit-page-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 620px) {
  body { display: block !important; padding-bottom: 70px; }
  .rail {
    position: fixed !important;
    left: 0; right: 0; bottom: 0; top: auto !important;
    width: 100% !important; height: 66px !important; z-index: 100;
    padding: 7px 14px !important;
    flex-direction: row !important;
    justify-content: center;
    box-shadow: 0 -10px 30px rgba(13,15,28,.22) !important;
  }
  .rail-logo { display: none !important; }
  .rail-nav { flex-direction: row !important; justify-content: space-around; gap: 12px !important; }
  .tab { height: 52px !important; min-height: 52px !important; }
  .app { width: 100%; }
  .feed-wrap { display: none !important; }
  .top { justify-content: flex-end; }
  .balance-val { padding: 0 9px; }
  .case-toolbar { grid-template-columns: 1fr 1fr !important; }
  .case-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 7px !important; }
  .gcard-art { min-height: 125px !important; }
  .acc-tabs { gap: 3px !important; }
  .acc-tab { font-size: 11px !important; padding: 0 5px !important; }
  .acc-subbar { align-items: stretch !important; }
  .acc-sub-right { width: 100%; }
  .duel-summary { grid-template-columns: 1fr !important; }
  .duel-arrow { transform: rotate(90deg); }
}

/* hidden always wins over display rules */
[hidden] { display: none !important; }
[aria-hidden="true"].result-flash:not(.show) { pointer-events: none; }

/* Small legacy accents: keep the surfaces flat and borderless too. */
.gold-range, .duel-copy small::before,
.duel-item > span, .currency-suffix, .tb-price .currency-suffix,
.step-index, .casepage-art::after, .cp-opening, .spin-dot {
  border: 0 !important;
}
.gold-range { background: var(--wv-input) !important; }

.deposit-page-title, .deposit-page-title > span { border: 0 !important; }
.deposit-page-title { border-radius: 12px !important; background: var(--wv-panel) !important; box-shadow: none !important; }
.deposit-page-title > span { background: var(--grad-btn) !important; box-shadow: 0 7px 18px rgba(126,105,239,.22) !important; }

.auth-online, .auth-feats svg { border: 0 !important; }
.auth-online { background: rgba(56,210,138,.11) !important; }
.auth-feats svg { background: var(--wv-violet-soft) !important; border-radius: 9px !important; }

/* Rendered inventory cards use a dedicated class family. */
.icard {
  border: 0 !important;
  border-radius: 10px !important;
  background: #383b5a !important;
  box-shadow: inset 0 -3px 0 var(--rc,var(--wv-violet)) !important;
}
.icard:hover { transform: translateY(-2px) !important; background: #3e4262 !important; box-shadow: inset 0 -3px 0 var(--rc,var(--wv-violet)),var(--wv-shadow-soft) !important; }
.icard-art { border: 0 !important; border-radius: 8px !important; background: #30334d !important; }
.ic-get { border: 0 !important; border-radius: 8px !important; background: var(--grad-btn) !important; color: #fff !important; box-shadow: 0 7px 17px rgba(126,105,239,.22) !important; }
.ic-price { border: 0 !important; background: rgba(32,35,53,.72) !important; }

/* image placeholders: any broken generated case/item uses local case artwork */
img.case-placeholder { object-fit: contain; opacity: .9; }

/* =========================================================
   PROFILE VIEW REDESIGN (2-PANEL LAYOUT)
   ========================================================= */
#view-profile {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  box-sizing: border-box;
}

.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .profile-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* LEFT PANEL (Sidebar) */
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: auto;
  align-self: start;
  box-sizing: border-box;
}

.profile-card {
  background: #2e314a;
  border: 0.8px solid #42476d;
  border-radius: 14px;
  padding: 18px;
  box-sizing: border-box;
}

.profile-user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 18px 20px;
}

.profile-avatar-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin-bottom: 12px;
}

.profile-avatar-large {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--grad-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(126,105,239,.32);
}

.profile-avatar-large:has(img) {
  background: transparent;
  box-shadow: none;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-user-meta {
  width: 100%;
}

.profile-nickname {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: -0.2px;
  word-break: break-all;
}

.profile-id-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #8c93b4;
}

.profile-id-row i {
  font-style: normal;
  color: #b7bde0;
  font-weight: 500;
}

.um-copy, #profCopyId {
  padding: 0 !important;
  margin: 0 !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(220, 224, 236, 0.14) !important;
  color: #8c93b4 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.um-copy svg, #profCopyId svg {
  width: 13px !important;
  height: 13px !important;
  display: block !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.um-copy:hover, #profCopyId:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(220, 224, 236, 0.28) !important;
}

/* Stats 2 boxes */
.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-stat-box {
  background: #2e314a;
  border: 0.8px solid #42476d;
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.profile-stat-box .ps-label {
  font-size: 11px;
  font-weight: 600;
  color: #8c93b4;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.profile-stat-box .ps-val {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

/* Best drop card */
.profile-best-card {
  padding: 16px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.pbc-content {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pbc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #f7c948;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.pbc-header svg {
  width: 16px;
  height: 16px;
  color: #f7c948;
}

.pbc-empty {
  padding: 24px 12px;
  text-align: center;
  font-size: 13px;
  color: #797f9e;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
}

/* Best item display in site style */
.best-drop-display {
  position: relative;
  background: #383b5a;
  border: 0.8px solid #42476d;
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.best-drop-display::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--bdd-rc, #9f8ff8) 38%, transparent), transparent 70%);
  pointer-events: none;
}

.best-drop-art {
  width: 140px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.best-drop-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.45));
}

.best-drop-meta {
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.best-drop-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.best-drop-sub {
  font-size: 12px;
  color: #9ea5cf;
  margin-top: 2px;
}

.best-drop-price {
  margin-top: 8px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(159,143,248,0.2);
  border: 1px solid rgba(159,143,248,0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* RIGHT PANEL (Main) */
/* RIGHT PANEL (Main) */
.profile-main-panel {
  background: #2e314a;
  border: 0.8px solid #42476d;
  border-radius: 14px;
  padding: 22px;
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Tabs */
.profile-tabs-nav {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  gap: 6px;
  background: #24273c;
  padding: 5px;
  border-radius: 10px;
  border: 0.8px solid #3d4264;
  margin-bottom: 22px;
}

.profile-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #8c93b4;
  font: 600 13px Rubik, sans-serif;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.profile-tab-btn svg {
  width: 16px;
  height: 16px;
}

.profile-tab-btn:hover {
  color: #fff;
}

.profile-tab-btn.active {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 4px 14px rgba(126,105,239,.26);
}

.profile-tab-pane {
  display: none;
  flex: 1;
}

.profile-tab-pane.active {
  display: flex;
  flex-direction: column;
  animation: tbDropIn 0.18s ease-out;
}

/* TAB 1: Settings Form */
.settings-profile-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

.settings-avatar-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.settings-avatar-preview {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--grad-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(126,105,239,.3);
}

.settings-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-avatar-upload-badge {
  position: absolute;
  bottom: -2px;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c63ff, #a58bff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  border: 2px solid #2e314a;
  transition: all 0.18s ease;
}

.settings-avatar-upload-badge:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #8d77ff, #b59fff);
  box-shadow: 0 4px 14px rgba(126,105,239,.5);
}

.settings-avatar-upload-badge svg {
  width: 14px;
  height: 14px;
}

.settings-nick-group {
  flex: 1;
  min-width: 260px;
}

.pane-section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pane-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pane-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #8c93b4;
  margin-bottom: 8px;
}

.pane-input-row {
  display: flex;
  gap: 10px;
  max-width: 440px;
}

.pane-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #24273c;
  border: 1px solid #3d4264;
  border-radius: 9px;
  padding: 0 12px;
  min-height: 42px;
}

.pane-input-wrap svg {
  width: 17px;
  height: 17px;
  color: #7980a3;
  flex-shrink: 0;
}

.pane-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font: 500 14px Rubik, sans-serif;
  outline: 0;
}

/* Sound toggles grid */
.sound-toggles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 540px;
}

.sound-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #24273c;
  border: 1px solid #3d4264;
  border-radius: 10px;
}

.sound-toggle-item .st-info {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #cfd3ea;
}

.sound-toggle-item .st-info svg {
  width: 18px;
  height: 18px;
  color: #9f8ff8;
}

/* TAB 2: Transactions Table */
.tx-filters-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tx-dropdown .tb-dropdown-btn {
  background: #24273c !important;
}

.tx-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: #26293e;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.tx-table th {
  padding: 12px 16px;
  color: #8c93b4;
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.tx-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #cdd2ec;
}

.tx-table tr:last-child td {
  border-bottom: 0;
}

.tx-table td.credit {
  color: #4cd964;
  font-weight: 700;
}

.tx-table td.debit {
  color: #ff5f7e;
  font-weight: 700;
}

.tx-table td.res-tag {
  color: #4cd964;
  font-weight: 600;
}

/* TAB 3: Promo Codes */
.promo-creator-card {
  background: #26293e;
  border: 1px solid #3d4264;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}

.pc-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.pc-desc {
  margin: 0 0 16px;
  font-size: 12px;
  color: #8c93b4;
}

.promo-form-single-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.promo-form-single-row .pf-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 110px;
}

.promo-form-single-row .pf-field-code {
  flex: 1.4;
  min-width: 140px;
}

.promo-form-single-row .pf-field-amt,
.promo-form-single-row .pf-field-uses {
  flex: 1;
  min-width: 95px;
}

.promo-form-single-row .pf-field-dur {
  flex: 1.2;
  min-width: 130px;
}

.promo-form-single-row .pf-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #8c93b4;
  margin-bottom: 6px;
  white-space: nowrap;
}

.promo-form-single-row .pf-field input {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #171927 !important;
  border: 1px solid #373c60 !important;
  border-radius: 9px !important;
  padding: 0 12px !important;
  min-height: 42px !important;
  color: #fff !important;
  font: 500 13px Rubik, sans-serif !important;
  outline: 0 !important;
  transition: all 0.15s ease !important;
}

.promo-form-single-row .pf-field input:focus {
  background: #121420 !important;
  border-color: #7c63ff !important;
  box-shadow: 0 0 0 3px rgba(126, 105, 239, 0.2) !important;
}

.promo-dur-dropdown {
  width: 100%;
  position: relative;
}

.promo-dur-dropdown .tb-dropdown-btn {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  background: #171927 !important;
  border: 1px solid #373c60 !important;
  border-radius: 9px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #fff !important;
  font: 500 13px Rubik, sans-serif !important;
  cursor: pointer !important;
  gap: 8px !important;
  transition: all 0.15s ease !important;
}

.promo-dur-dropdown .tb-dropdown-btn:hover {
  border-color: #7c63ff !important;
}

.promo-dur-dropdown .tb-dropdown-menu {
  top: calc(100% + 5px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 130px !important;
  background: #25283e !important;
  border: 1px solid #444a72 !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4) !important;
  padding: 5px !important;
  z-index: 100 !important;
}

.promo-dur-dropdown .tb-dropdown-item {
  padding: 8px 10px !important;
  font-size: 12.5px !important;
  border-radius: 6px !important;
  color: #cbd0ec !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.promo-dur-dropdown .tb-dropdown-item:hover {
  background: rgba(126,105,239,0.18) !important;
  color: #fff !important;
}

.promo-dur-dropdown .tb-dropdown-item.selected {
  background: var(--grad-btn) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.pf-submit-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding-bottom: 0;
  flex-shrink: 0;
}

.pf-submit-cell .promo-total-cost {
  white-space: nowrap;
}

.pf-submit-cell .btn-go {
  min-height: 42px;
  padding: 0 20px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.promo-redeem-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #24273c;
  border: 1px solid #3d4264;
  border-radius: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.prs-copy b {
  display: block;
  color: #fff;
  font-size: 14px;
}

.prs-copy span {
  font-size: 12px;
  color: #8c93b4;
}

.prs-input-wrap {
  display: flex;
  gap: 8px;
}

.prs-input-wrap input {
  background: #171927 !important;
  border: 1px solid #373c60 !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  min-height: 38px !important;
  color: #fff !important;
  font: 500 13px Rubik, sans-serif !important;
  outline: 0 !important;
  transition: all 0.15s ease !important;
}

.prs-input-wrap input:focus {
  background: #121420 !important;
  border-color: #7c63ff !important;
  box-shadow: 0 0 0 3px rgba(126, 105, 239, 0.2) !important;
}

.deposit-promo-row label,
.deposit-promo-row input,
#depositPromoCode {
  background: #171927 !important;
  border: 1px solid #373c60 !important;
  color: #fff !important;
}
.deposit-promo-row input:focus,
#depositPromoCode:focus {
  background: #121420 !important;
  border-color: #7c63ff !important;
  box-shadow: 0 0 0 3px rgba(126, 105, 239, 0.2) !important;
}

.mps-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.my-promos-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.promo-item-card {
  background: #26293e;
  border: 1px solid #3d4264;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.pic-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pic-code {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.8px;
  background: rgba(159,143,248,0.14);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px dashed rgba(159,143,248,0.4);
}

.pic-details {
  font-size: 12.5px;
  color: #a2a8ca;
}

.pic-details b {
  color: #ffd15c;
}

.pic-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pic-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  text-transform: uppercase;
}

.pic-badge.active {
  background: rgba(76, 217, 100, 0.15);
  color: #4cd964;
}

.pic-badge.cancelled {
  background: rgba(255, 95, 126, 0.15);
  color: #ff5f7e;
}

.pic-claims-summary {
  width: 100%;
  font-size: 12px;
  color: #8c93b4;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.pic-claims-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pic-claim-chip {
  background: #1e2133;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  color: #c4c9e4;
  border: 1px solid rgba(255,255,255,0.05);
}

/* UPGRADER EMPTY INVENTORY STATE (CENTERED + SITE STYLE) */
#invPick:has(.inv-empty-state) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  min-height: 380px !important;
}

.inv-empty-state {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 360px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: auto !important;
  padding: 30px 16px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.ies-icon,
.ies-icon.ies-red-arrow,
.ies-icon.ies-error-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ff5f7e !important;
  margin: 0 auto 16px !important;
  background: rgba(255, 95, 126, 0.12) !important;
  border: 1.5px solid rgba(255, 95, 126, 0.35) !important;
  box-shadow: 0 8px 24px rgba(255, 95, 126, 0.22) !important;
}

.ies-icon svg,
.ies-icon.ies-red-arrow svg,
.ies-icon.ies-error-icon svg {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
  stroke: #ff5f7e !important;
}
.ies-error-icon svg line {
  stroke: #ff5f7e !important;
}
.ies-error-icon svg circle {
  fill: #ff5f7e !important;
  stroke: none !important;
}

.ies-title {
  margin: 0 0 6px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  color: #fff !important;
  text-transform: uppercase !important;
  font-family: Rubik, sans-serif !important;
}

.ies-subtitle {
  margin: 0 0 22px !important;
  font-size: 13px !important;
  color: #8c93b4 !important;
  font-weight: 500 !important;
  font-family: Rubik, sans-serif !important;
  max-width: 260px !important;
}

.ies-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 32px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  background: var(--grad-btn) !important;
  color: #fff !important;
  border: 0 !important;
  cursor: pointer !important;
  box-shadow: 0 7px 18px rgba(126, 105, 239, 0.35) !important;
  transition: all 0.18s ease !important;
}

.ies-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px rgba(126, 105, 239, 0.45) !important;
}

.ies-btn svg {
  display: none !important;
}

/* ============================================================
   WELVURA CARD SYSTEM — unified across every catalogue
   ============================================================ */
:root {
  --card-shell: #333650;
  --card-stage: #3b3e5c;
  --card-stage-hover: #424663;
  --card-footer: #2c2f47;
  --card-muted: #9297b3;
  --card-radius: 10px;
}

/* Upgrade item cards */
.skin {
  min-height: 178px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-rows: 112px auto auto !important;
  align-content: start;
  overflow: hidden !important;
  background: var(--card-shell) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: none !important;
}
.skin .glow { left: 0 !important; right: 0 !important; bottom: 0 !important; height: 55px !important; opacity: .42 !important; }
.skin .art {
  grid-row: 1;
  width: 100%;
  height: 112px !important;
  min-height: 112px !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center;
  overflow: hidden;
  background: var(--card-stage) !important;
  border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
}
.skin .art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42px;
  background: linear-gradient(transparent,rgba(26,28,44,.38));
  pointer-events: none;
}
.skin .art img { width: 92% !important; height: 90px !important; max-height: 90px !important; object-fit: contain !important; z-index: 2; }
.skin .ghost { z-index: 1; font-size: 25px !important; opacity: .055 !important; }
.skin .n, .skin .s {
  position: relative;
  z-index: 3;
  margin: 0 !important;
  padding: 0 10px !important;
  background: var(--card-footer);
  text-align: left !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.skin .n { grid-row: 2; padding-top: 10px !important; color: var(--card-muted) !important; font-size: 11px !important; line-height: 15px !important; }
.skin .s { grid-row: 3; padding-top: 1px !important; padding-bottom: 28px !important; color: #f8f8fc !important; font-size: 12px !important; font-weight: 600 !important; line-height: 17px !important; }
.skin .p {
  position: absolute !important;
  z-index: 5 !important;
  left: 10px !important;
  bottom: 8px !important;
  margin: 0 !important;
  color: var(--wv-gold) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}
.skin:hover { transform: translateY(-3px) !important; background: var(--card-shell) !important; box-shadow: 0 10px 22px rgba(12,14,25,.22) !important; }
.skin:hover .art { background: var(--card-stage-hover) !important; }
.skin:hover .art img { transform: scale(1.06) translateY(-2px) !important; }
.skin.sel { background: var(--card-shell) !important; box-shadow: inset 0 -4px 0 var(--wv-violet),0 10px 24px rgba(12,14,25,.22) !important; }
.skin.sel .art { background: #454966 !important; }

/* Case catalogue cards — same shell, larger artwork */
.gcard, .gcard.bare {
  padding: 0 0 11px !important;
  overflow: hidden !important;
  border-radius: var(--card-radius) !important;
  background: var(--card-shell) !important;
}
.gcard:hover, .gcard.bare:hover { background: var(--card-shell) !important; box-shadow: 0 11px 24px rgba(12,14,25,.2) !important; transform: translateY(-3px) !important; }
.gcard-art, .gcard.bare .gcard-art {
  height: 160px !important;
  min-height: 160px !important;
  margin: 0 !important;
  padding: 10px !important;
  border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
  background: var(--card-stage) !important;
}
.gcard:hover .gcard-art, .gcard.bare:hover .gcard-art { background: var(--card-stage-hover) !important; box-shadow: none !important; }
.gcard-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55px;
  background: linear-gradient(transparent,rgba(26,28,44,.3));
  pointer-events: none;
}
.gcard-art > img, .gcard-art > img.art-hero { z-index: 1; max-height: 140px !important; max-width: 94% !important; }
.gcard-name, .gcard.bare .gcard-name {
  margin: 0 !important;
  padding: 10px 10px 2px !important;
  min-height: 37px;
  background: var(--card-footer);
  color: #f8f8fc !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-align: left !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gcard-price, .gcard.bare .gcard-price {
  z-index: 4;
  left: 9px !important;
  right: auto !important;
  bottom: 8px !important;
  padding: 5px 8px !important;
  border-radius: 7px !important;
  background: var(--wv-violet) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}
.rarity-strip, .gcard.bare .rarity-strip { margin: 0 !important; height: 3px !important; border-radius: 0 !important; opacity: .85 !important; }
.card-heart { top: 8px !important; right: 8px !important; z-index: 5; }
/* City art stays frameless inside the catalogue's shared shell. */
.gcard.bare .gcard-art { padding: 2px !important; }
.gcard.bare .gcard-art > img.art-hero { width: 96% !important; height: 154px !important; max-height: 154px !important; }

/* Inventory catalogue cards */
.icard {
  height: 232px !important;
  padding: 0 0 12px !important;
  overflow: hidden !important;
  background: var(--card-shell) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: inset 0 -3px 0 var(--rc,var(--wv-violet)) !important;
}
.icard .glow { height: 68px !important; opacity: .35 !important; }
.ic-top { z-index: 6 !important; top: 8px !important; left: 8px !important; right: 8px !important; }
.ic-sell, .ic-price {
  border: 0 !important;
  border-radius: 7px !important;
  background: rgba(38,41,63,.86) !important;
  color: #d8daea !important;
  box-shadow: none !important;
}
.ic-sell { font-size: 9px !important; }
.ic-price { color: var(--wv-gold) !important; }
.ic-art {
  height: 160px !important;
  min-height: 160px !important;
  margin: 0 !important;
  border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
  background: var(--card-stage) !important;
  overflow: hidden;
}
.ic-art img { max-width: 90% !important; max-height: 112px !important; object-fit: contain !important; }
.ic-get {
  left: 8px !important;
  right: 8px !important;
  bottom: 8px !important;
  width: calc(100% - 16px) !important;
  height: 34px !important;
  font-size: 10px !important;
  opacity: 0;
  transform: translateY(5px);
  transition: .18s ease;
}
.icard:hover .ic-get { opacity: 1; transform: translateY(0); }
.icard:hover { transform: translateY(-3px) !important; background: var(--card-shell) !important; box-shadow: inset 0 -3px 0 var(--rc,var(--wv-violet)),0 11px 24px rgba(12,14,25,.22) !important; }
.icard:hover .ic-art { background: var(--card-stage-hover) !important; }
.ic-w, .ic-sn {
  margin: 0 !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  background: var(--card-footer);
  text-align: left !important;
}
.ic-w { padding-top: 9px !important; color: var(--card-muted) !important; font-size: 11px !important; }
.ic-sn { padding-top: 1px !important; color: #fff !important; font-size: 12px !important; font-weight: 600 !important; }
.ic-bar { left: 0 !important; right: 0 !important; bottom: 0 !important; border-radius: 0 !important; }

/* Case contents / small drop catalogue */
.drop-tile {
  min-height: 164px !important;
  padding: 0 0 10px !important;
  display: grid !important;
  grid-template-rows: 102px auto auto !important;
  align-content: start;
  overflow: hidden !important;
  background: var(--card-shell) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: inset 0 -3px 0 var(--c) !important;
}
.drop-tile img {
  grid-row: 1;
  align-self: stretch;
  width: 100% !important;
  height: 102px !important;
  max-height: 102px !important;
  margin: 0 !important;
  padding: 14px 10px 8px;
  object-fit: contain !important;
  background: var(--card-stage);
}
.drop-tile b, .drop-tile small {
  margin: 0 !important;
  padding-left: 9px !important;
  padding-right: 9px !important;
  background: var(--card-footer);
  text-align: left !important;
}
.drop-tile b { padding-top: 8px !important; color: var(--card-muted) !important; font-size: 10px !important; font-weight: 500 !important; }
.drop-tile small { padding-top: 1px !important; padding-bottom: 25px !important; color: #fff !important; font-size: 11px !important; font-weight: 600 !important; }
.drop-tile .dt-g { left: 9px !important; bottom: 7px !important; color: var(--wv-gold) !important; font-size: 10px !important; }
.drop-tile .dt-p { right: 8px !important; bottom: 7px !important; border: 0 !important; background: rgba(159,143,248,.12) !important; color: var(--wv-violet) !important; }
.drop-tile:hover { transform: translateY(-2px) !important; background: var(--card-shell) !important; box-shadow: inset 0 -3px 0 var(--c),0 9px 20px rgba(12,14,25,.2) !important; }
.drop-tile:hover img { background: var(--card-stage-hover); }

/* Reel and compact history inherit the same material */
.reel-item, .ccard, .htile {
  overflow: hidden !important;
  border-radius: var(--card-radius) !important;
  background: var(--card-shell) !important;
}
.reel-item .reel-art, .reel-item > img, .ccard img, .htile img { background: var(--card-stage) !important; }
.ccard, .htile { box-shadow: inset 0 -3px 0 var(--rc,var(--wv-violet)) !important; }
.ccard:hover, .htile:hover { background: var(--card-stage-hover) !important; transform: translateY(-2px); }

@media (max-width: 620px) {
  .skin { min-height: 166px !important; grid-template-rows: 102px auto auto !important; }
  .skin .art { height: 102px !important; min-height: 102px !important; }
  .skin .art img { height: 82px !important; }
  .gcard-art, .gcard.bare .gcard-art { height: 132px !important; min-height: 132px !important; }
  .gcard.bare .gcard-art > img.art-hero { height: 126px !important; max-height: 126px !important; }
  .gcard-name, .gcard.bare .gcard-name { font-size: 11px !important; }
  .icard { height: 218px !important; }
  .ic-art { height: 148px !important; min-height: 148px !important; }
}

/* ============================================================
   CASE SCALE + RARITY + LATEST-DROP RIBBON FIX
   ============================================================ */

/* Larger case catalogue: deliberately fewer, much bigger cards per row. */
#view-cases .case-section { padding: 8px 12px 29px !important; margin-bottom: 12px !important; }
#view-cases .case-grid {
  grid-template-columns: repeat(auto-fill,minmax(250px,1fr)) !important;
  gap: 20px !important;
}
#view-cases .gcard,
#view-cases .gcard.bare {
  min-height: 326px !important;
  padding-bottom: 0 !important;
  border-radius: 14px !important;
  background: #333650 !important;
  box-shadow: inset 0 -5px 0 var(--case-rarity,var(--r-epic)) !important;
}
#view-cases .gcard:hover,
#view-cases .gcard.bare:hover {
  transform: translateY(-5px) !important;
  box-shadow: inset 0 -5px 0 var(--case-rarity,var(--r-epic)),0 18px 36px rgba(10,12,23,.27) !important;
}
#view-cases .gcard-art,
#view-cases .gcard.bare .gcard-art {
  height: 252px !important;
  min-height: 252px !important;
  padding: 15px !important;
  border-radius: 14px 14px 0 0 !important;
  background:
    radial-gradient(circle at 50% 75%,color-mix(in srgb,var(--case-rarity) 22%,transparent),transparent 54%),
    #3b3e5c !important;
}
#view-cases .gcard:hover .gcard-art,
#view-cases .gcard.bare:hover .gcard-art {
  background:
    radial-gradient(circle at 50% 75%,color-mix(in srgb,var(--case-rarity) 30%,transparent),transparent 58%),
    #424663 !important;
}
#view-cases .gcard-art::after {
  height: 92px !important;
  background: linear-gradient(transparent,color-mix(in srgb,var(--case-rarity) 12%,rgba(24,26,41,.42))) !important;
}
#view-cases .gcard-art > img,
#view-cases .gcard-art > img.art-hero {
  max-height: 220px !important;
  max-width: 98% !important;
  filter: drop-shadow(0 16px 22px rgba(8,10,20,.42));
}
#view-cases .gcard.bare .gcard-art { padding: 5px !important; }
#view-cases .gcard.bare .gcard-art > img.art-hero {
  width: 100% !important;
  height: 242px !important;
  max-height: 242px !important;
}
#view-cases .gcard-name,
#view-cases .gcard.bare .gcard-name {
  min-height: 70px !important;
  padding: 17px 15px 20px !important;
  display: flex;
  align-items: center;
  background: #2c2f47 !important;
  color: #fff !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
}
#view-cases .gcard-price,
#view-cases .gcard.bare .gcard-price {
  left: 14px !important;
  bottom: 13px !important;
  padding: 8px 12px !important;
  border-radius: 9px !important;
  background: var(--case-rarity,var(--wv-violet)) !important;
  color: #fff !important;
  font-size: 13px !important;
  box-shadow: 0 7px 18px color-mix(in srgb,var(--case-rarity) 30%,transparent) !important;
}
#view-cases .rarity-strip { height: 5px !important; }
#view-cases .card-heart { width: 36px !important; height: 36px !important; top: 13px !important; right: 13px !important; border-radius: 10px !important; }

/* Explicit rarity identity on item/inventory/drop/history cards. */
.skin { box-shadow: inset 0 -4px 0 var(--rc,var(--r-common)) !important; }
.skin .art {
  background:
    radial-gradient(circle at 50% 100%,color-mix(in srgb,var(--rc,var(--r-common)) 20%,transparent),transparent 58%),
    var(--card-stage) !important;
}
.skin:hover { box-shadow: inset 0 -4px 0 var(--rc,var(--r-common)),0 10px 22px rgba(12,14,25,.22) !important; }
.skin.sel { box-shadow: inset 0 -5px 0 var(--rc,var(--wv-violet)),0 10px 24px rgba(12,14,25,.22) !important; }
.icard { box-shadow: inset 0 -4px 0 var(--rc,var(--r-common)) !important; }
.ic-art {
  background:
    radial-gradient(circle at 50% 100%,color-mix(in srgb,var(--rc,var(--r-common)) 20%,transparent),transparent 58%),
    var(--card-stage) !important;
}
.drop-tile { box-shadow: inset 0 -4px 0 var(--c,var(--r-common)) !important; }
.drop-tile img {
  background:
    radial-gradient(circle at 50% 100%,color-mix(in srgb,var(--c,var(--r-common)) 22%,transparent),transparent 65%),
    var(--card-stage) !important;
}
.ccard,.htile { box-shadow: inset 0 -4px 0 var(--rc,var(--r-common)) !important; }

/* Latest drops: compact ribbon, visible LIVE label, rarity colors, right-edge fade only. */
.top { overflow: visible !important; }
.feed-wrap { height: 58px !important; overflow: hidden; }
.ticker-frame {
  height: 58px !important;
  min-width: 0;
  display: grid !important;
  grid-template-columns: 60px minmax(0,1fr) auto;
  align-items: stretch !important;
  gap: 8px;
  overflow: hidden;
}
.ticker-live {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 60px;
  color: #f4f5fb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.ticker-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #50d49a;
  box-shadow: 0 0 0 4px rgba(80,212,154,.1);
  animation: ticker-live-pulse 1.8s ease-in-out infinite;
}
@keyframes ticker-live-pulse { 50% { opacity: .55; transform: scale(.82); } }
.ticker {
  grid-column: 2;
  min-width: 0;
  height: 58px !important;
  gap: 5px !important;
  padding: 4px 0 !important;
  align-items: stretch !important;
  overflow: hidden !important;
  mask-image: linear-gradient(90deg,#000 0,#000 calc(100% - 42px),transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,#000 0,#000 calc(100% - 42px),transparent 100%);
}
.ticker-frame::after { display: none !important; }
.drop-card,
.ticker .drop-card {
  flex: 0 0 128px !important;
  width: 128px !important;
  height: 50px !important;
  padding: 0 !important;
  display: block !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 9px !important;
  background:
    linear-gradient(90deg,color-mix(in srgb,var(--rc) 15%,#373a57),#373a57 68%) !important;
  box-shadow: inset 0 -3px 0 var(--rc) !important;
}
.drop-card .drop-box {
  width: 100% !important;
  max-width: none !important;
  height: 50px;
  padding: 4px 7px !important;
  display: grid !important;
  grid-template-columns: 50px minmax(0,1fr);
  align-items: center !important;
  gap: 7px !important;
}
.drop-card img {
  width: 50px !important;
  height: 38px !important;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.38));
}
.drop-card .drop-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
}
.drop-card .drop-copy small {
  width: 100%;
  color: #999eb8;
  font-size: 8.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drop-card .drop-name {
  width: 100%;
  max-width: none !important;
  color: #fff !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drop-card .drop-glow {
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 54px !important;
  height: 50px !important;
  opacity: .18 !important;
  background: radial-gradient(circle at 40% 70%,var(--rc),transparent 70%) !important;
}
.drop-card.enter { animation: drop-ribbon-in .34s cubic-bezier(.34,1.56,.64,1) backwards !important; }
@keyframes drop-ribbon-in { from { opacity:0; transform:translateX(-18px); } to { opacity:1; transform:none; } }
.online {
  position: relative !important;
  grid-column: 3;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  align-self: center;
  z-index: 7 !important;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  #view-cases .case-grid { grid-template-columns: repeat(auto-fill,minmax(220px,1fr)) !important; gap: 15px !important; }
  #view-cases .gcard,#view-cases .gcard.bare { min-height: 292px !important; }
  #view-cases .gcard-art,#view-cases .gcard.bare .gcard-art { height: 220px !important; min-height: 220px !important; }
  #view-cases .gcard-art > img,#view-cases .gcard-art > img.art-hero { max-height: 190px !important; }
  #view-cases .gcard.bare .gcard-art > img.art-hero { height: 210px !important; max-height: 210px !important; }
  .drop-card,.ticker .drop-card { flex-basis: 114px !important; width: 114px !important; }
}
@media (max-width: 700px) {
  #view-cases .case-section { padding: 12px !important; }
  #view-cases .case-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  #view-cases .gcard,#view-cases .gcard.bare { min-height: 310px !important; }
  #view-cases .gcard-art,#view-cases .gcard.bare .gcard-art { height: 240px !important; min-height: 240px !important; }
  #view-cases .gcard-art > img,#view-cases .gcard-art > img.art-hero { max-height: 210px !important; }
  #view-cases .gcard.bare .gcard-art > img.art-hero { height: 230px !important; max-height: 230px !important; }
  .ticker-frame { grid-template-columns: 48px minmax(0,1fr) auto; gap: 4px; }
  .ticker-live { min-width: 48px; }
  .drop-card,.ticker .drop-card { flex-basis: 105px !important; width: 105px !important; }
}

/* ============================================================
   SCREENSHOT CORRECTIONS — prices, header, tall cases, gold slider
   ============================================================ */

/* Header must be one full-height strip reaching the viewport right edge. */
body { width: 100%; overflow-x: clip; }
.app { width: calc(100vw / var(--pz, 1) - 68px) !important; max-width: none !important; }
.top {
  width: 100% !important;
  height: 96px !important;
  min-height: 96px !important;
  padding: 0 20px 0 14px !important;
  align-items: stretch !important;
  background: #2e314a !important;
  overflow: hidden !important;
}
.feed-wrap {
  height: 96px !important;
  min-height: 96px;
  flex: 1 1 auto !important;
  align-items: stretch !important;
  overflow: hidden !important;
}
.ticker-frame {
  width: 100%;
  height: 96px !important;
  display: flex !important;
  align-items: stretch !important;
  gap: 10px !important;
  overflow: hidden;
}
.ticker-live { display: none !important; }
.ticker {
  flex: 1 1 auto !important;
  width: auto !important;
  height: 96px !important;
  padding: 8px 0 !important;
  gap: 7px !important;
  align-items: stretch !important;
  mask-image: linear-gradient(90deg,#000 0,#000 calc(100% - 26px),transparent 100%) !important;
  -webkit-mask-image: linear-gradient(90deg,#000 0,#000 calc(100% - 26px),transparent 100%) !important;
}
.drop-card,.ticker .drop-card {
  flex: 1 1 150px !important;
  width: auto !important;
  min-width: 132px !important;
  max-width: 190px !important;
  height: 80px !important;
  border-radius: 11px !important;
}
.drop-card .drop-box {
  height: 80px !important;
  padding: 7px 10px !important;
  grid-template-columns: 66px minmax(0,1fr) !important;
  gap: 9px !important;
}
.drop-card img { width: 66px !important; height: 58px !important; }
.drop-card .drop-copy small { font-size: 10px !important; }
.drop-card .drop-name { font-size: 11px !important; }
.drop-card .drop-glow { width: 76px !important; height: 80px !important; }
.online {
  flex: 0 0 auto;
  align-self: center !important;
  margin-left: 0;
}
.top-meta {
  flex: 0 0 auto !important;
  height: 96px !important;
  align-items: center !important;
  padding-left: 12px;
}

/* Old case-price rule used left:50% + translateX(-50%); cancel it completely. */
#view-cases .gcard-price,
#view-cases .gcard.bare .gcard-price {
  left: 16px !important;
  right: auto !important;
  bottom: 16px !important;
  transform: none !important;
  max-width: calc(100% - 32px) !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

/* Taller case cards: give artwork and footer breathing room. */
#view-cases .gcard,
#view-cases .gcard.bare {
  min-height: 392px !important;
  height: 392px !important;
}
#view-cases .gcard-art,
#view-cases .gcard.bare .gcard-art {
  height: 304px !important;
  min-height: 304px !important;
}
#view-cases .gcard-art > img,
#view-cases .gcard-art > img.art-hero { max-height: 274px !important; }
#view-cases .gcard.bare .gcard-art > img.art-hero {
  height: 292px !important;
  max-height: 292px !important;
}
#view-cases .gcard-name,
#view-cases .gcard.bare .gcard-name {
  min-height: 83px !important;
  padding: 19px 17px 24px !important;
  font-size: 17px !important;
}

/* Welvura-like add-balance row: flat section, no nested card-in-card. */
.balance-slider-panel {
  margin: 0 -15px -15px !important;
  padding: 15px 16px 16px !important;
  background: #292c43 !important;
  border-radius: 0 0 14px 14px !important;
}
.gold-add {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  grid-template-areas: "title slider value";
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
  filter: none !important;
}
.gold-slider-head {
  grid-area: title;
  margin: 0 !important;
  justify-content: flex-start !important;
}
.gold-slider-head > span {
  color: #c5c9db !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}
.gold-range {
  grid-area: slider;
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.gold-range > span { display: none !important; }
.gold-range input[type="range"] {
  width: 100% !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg,var(--wv-violet) 0 var(--gold-fill),#3b3f5c var(--gold-fill) 100%) !important;
  box-shadow: none !important;
}
.gold-range input[type="range"]::-webkit-slider-runnable-track {
  height: 7px !important;
  background: transparent !important;
}
.gold-range input[type="range"]::-webkit-slider-thumb {
  width: 18px !important;
  height: 18px !important;
  margin-top: -5.5px !important;
  border: 3px solid #fff !important;
  background: var(--wv-violet) !important;
  box-shadow: 0 0 0 3px rgba(159,143,248,.18) !important;
}
.gold-range-values {
  grid-area: value;
  margin: 0 !important;
  justify-content: flex-end !important;
}
.gold-range-values output {
  min-width: 56px;
  color: var(--wv-gold) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: right;
  white-space: nowrap;
}
.gold-add.is-disabled { opacity: .62 !important; filter: none !important; }

@media (max-width: 1200px) {
  #view-cases .gcard,#view-cases .gcard.bare { min-height: 350px !important; height: 350px !important; }
  #view-cases .gcard-art,#view-cases .gcard.bare .gcard-art { height: 266px !important; min-height: 266px !important; }
  #view-cases .gcard-art > img,#view-cases .gcard-art > img.art-hero { max-height: 238px !important; }
  #view-cases .gcard.bare .gcard-art > img.art-hero { height: 255px !important; max-height: 255px !important; }
  .drop-card,.ticker .drop-card { min-width: 118px !important; }
}
@media (max-width: 900px) {
  .app { width: calc(100vw / var(--pz, 1) - 72px) !important; }
  .top,.feed-wrap,.ticker-frame,.ticker,.top-meta { height: 78px !important; min-height: 78px !important; }
  .drop-card,.ticker .drop-card { height: 64px !important; min-width: 112px !important; }
  .drop-card .drop-box { height: 64px !important; grid-template-columns: 52px minmax(0,1fr) !important; }
  .drop-card img { width: 52px !important; height: 46px !important; }
  .drop-card .drop-glow { height: 64px !important; }
}
@media (max-width: 700px) {
  .app { width: 100% !important; }
  #view-cases .gcard,#view-cases .gcard.bare { min-height: 378px !important; height: 378px !important; }
  #view-cases .gcard-art,#view-cases .gcard.bare .gcard-art { height: 292px !important; min-height: 292px !important; }
  #view-cases .gcard-art > img,#view-cases .gcard-art > img.art-hero { max-height: 260px !important; }
  #view-cases .gcard.bare .gcard-art > img.art-hero { height: 280px !important; max-height: 280px !important; }
  .gold-add { grid-template-columns: 1fr auto; grid-template-areas: "title value" "slider slider"; gap: 8px 12px; }
}

/* ============================================================
   RARITY VISIBILITY + FULL-WIDTH RIBBON FINAL PASS
   ============================================================ */

/* Ribbon occupies every pixel before account controls. Online floats over it. */
.top { gap: 0 !important; }
.feed-wrap { margin: 0 !important; padding: 0 !important; }
.ticker-frame {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 96px !important;
  overflow: hidden !important;
}
.ticker {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 96px !important;
  padding: 8px 0 !important;
  display: flex !important;
  gap: 7px !important;
  overflow: hidden !important;
  /* Fade only at the final edge, directly before the account controls. */
  mask-image: linear-gradient(90deg,#000 0,#000 calc(100% - 72px),transparent 100%) !important;
  -webkit-mask-image: linear-gradient(90deg,#000 0,#000 calc(100% - 72px),transparent 100%) !important;
}
.online {
  position: absolute !important;
  z-index: 12 !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  background: #43486a !important;
  color: #fff !important;
  opacity: 1 !important;
  box-shadow: 0 8px 20px rgba(12,14,25,.38) !important;
}
.top-meta {
  margin: 0 !important;
  padding-left: 14px !important;
}

/* Ribbon rarity is a broad colored material, not a faint one-pixel hint. */
.drop-card,.ticker .drop-card {
  border-radius: 11px !important;
  background:
    radial-gradient(circle at 25% 100%,color-mix(in srgb,var(--rc) 54%,transparent),transparent 68%),
    linear-gradient(100deg,color-mix(in srgb,var(--rc) 24%,#383b5a),#383b5a 72%) !important;
  box-shadow:
    inset 0 -5px 0 var(--rc),
    inset 0 0 30px color-mix(in srgb,var(--rc) 12%,transparent) !important;
}
.drop-card .drop-glow {
  width: 82px !important;
  opacity: .48 !important;
  background: radial-gradient(circle at 38% 75%,var(--rc),transparent 72%) !important;
}
.drop-card img { filter: drop-shadow(0 7px 10px color-mix(in srgb,var(--rc) 38%,rgba(0,0,0,.42))) !important; }

/* Upgrade cards: large rarity field through the whole image stage. */
.skin {
  box-shadow: inset 0 -6px 0 var(--rc,var(--r-common)) !important;
}
.skin .art {
  background:
    radial-gradient(ellipse at 50% 115%,color-mix(in srgb,var(--rc,var(--r-common)) 60%,transparent),transparent 68%),
    linear-gradient(180deg,color-mix(in srgb,var(--rc,var(--r-common)) 13%,var(--card-stage)),var(--card-stage)) !important;
}
.skin .glow {
  height: 88px !important;
  opacity: .68 !important;
  background: linear-gradient(transparent,var(--rc,var(--r-common))) !important;
}
.skin:hover {
  box-shadow: inset 0 -6px 0 var(--rc,var(--r-common)),0 12px 26px color-mix(in srgb,var(--rc,var(--r-common)) 20%,rgba(12,14,25,.3)) !important;
}
.skin.sel {
  box-shadow: inset 0 -7px 0 var(--rc,var(--r-common)),0 12px 28px color-mix(in srgb,var(--rc,var(--r-common)) 28%,rgba(12,14,25,.34)) !important;
}

/* Inventory cards get the same clear rarity field. */
.icard {
  box-shadow: inset 0 -6px 0 var(--rc,var(--r-common)) !important;
}
.icard .glow { height: 104px !important; opacity: .62 !important; background: linear-gradient(transparent,var(--rc,var(--r-common))) !important; }
.ic-art {
  background:
    radial-gradient(ellipse at 50% 115%,color-mix(in srgb,var(--rc,var(--r-common)) 58%,transparent),transparent 68%),
    linear-gradient(180deg,color-mix(in srgb,var(--rc,var(--r-common)) 13%,var(--card-stage)),var(--card-stage)) !important;
}
.icard:hover {
  box-shadow: inset 0 -6px 0 var(--rc,var(--r-common)),0 12px 27px color-mix(in srgb,var(--rc,var(--r-common)) 22%,rgba(12,14,25,.3)) !important;
}

/* Case cards: dominant-rarity stage color, thick accent, colored price. */
#view-cases .gcard,#view-cases .gcard.bare {
  box-shadow: inset 0 -8px 0 var(--case-rarity,var(--r-epic)) !important;
}
#view-cases .gcard-art,#view-cases .gcard.bare .gcard-art {
  background:
    radial-gradient(ellipse at 50% 110%,color-mix(in srgb,var(--case-rarity) 62%,transparent),transparent 70%),
    linear-gradient(180deg,color-mix(in srgb,var(--case-rarity) 15%,#3b3e5c),#3b3e5c) !important;
}
#view-cases .gcard-art::after {
  height: 135px !important;
  background: linear-gradient(transparent,color-mix(in srgb,var(--case-rarity) 36%,rgba(24,26,41,.5))) !important;
}
#view-cases .gcard:hover,#view-cases .gcard.bare:hover {
  box-shadow: inset 0 -8px 0 var(--case-rarity,var(--r-epic)),0 18px 38px color-mix(in srgb,var(--case-rarity) 24%,rgba(10,12,23,.32)) !important;
}
#view-cases .rarity-strip { height: 8px !important; opacity: 1 !important; }
#view-cases .gcard-price,#view-cases .gcard.bare .gcard-price {
  box-shadow: 0 8px 22px color-mix(in srgb,var(--case-rarity) 48%,transparent) !important;
}

/* Case contents/history: obvious rarity wash and thick base. */
.drop-tile {
  box-shadow: inset 0 -6px 0 var(--c,var(--r-common)) !important;
}
.drop-tile img {
  background:
    radial-gradient(ellipse at 50% 115%,color-mix(in srgb,var(--c,var(--r-common)) 58%,transparent),transparent 72%),
    linear-gradient(180deg,color-mix(in srgb,var(--c,var(--r-common)) 12%,var(--card-stage)),var(--card-stage)) !important;
}
.ccard,.htile { box-shadow: inset 0 -6px 0 var(--rc,var(--r-common)) !important; }

@media (max-width:900px) {
  .ticker-frame,.ticker { height:78px !important; }
  .ticker { mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 58px),transparent 100%) !important; -webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 58px),transparent 100%) !important; }
}

/* ============================================================
   FINAL COMPONENT CORRECTIONS
   Header, selection, inventory, case catalogue, case detail.
   ============================================================ */

/* The ribbon owns the full header. Controls float above it. */
.app { width: calc(100vw / var(--pz, 1) - 68px) !important; }
.top {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  background: #2e314a !important;
  overflow: hidden !important;
}
.feed-wrap,.ticker-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 96px !important;
}
.ticker {
  inset: 0 !important;
  width: 100% !important;
  padding: 8px 0 8px 14px !important;
}
/* Logged-in: fade directly before +. Logged-out: fade before login. */
.top:has(.balance:not([hidden])) .ticker {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
.top:has(.balance[hidden]) .ticker {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
.balance { padding: 0 !important; gap: var(--top-ctrl-gap, 10px) !important; }
.top-meta { gap: var(--top-ctrl-gap, 10px) !important; }
.online { right: calc(var(--top-meta-w, 160px) + var(--top-meta-right, 18px) + var(--top-ctrl-gap, 10px)) !important; }
.top:has(.balance[hidden]) .online { right: calc(var(--top-meta-w, 85px) + var(--top-meta-right, 18px) + var(--top-ctrl-gap, 10px)) !important; }
.top-meta {
  position: absolute !important;
  z-index: 20 !important;
  top: 0 !important;
  right: 18px !important;
  height: 96px !important;
  padding: 0 !important;
  background: transparent !important;
}

/* No inset rarity shadow: it curls up rounded bottom corners. */
.skin,.skin:hover,.skin.sel,.icard,.icard:hover,.drop-tile,.drop-tile:hover,
.ccard,.htile,#view-cases .gcard,#view-cases .gcard:hover,
#view-cases .gcard.bare,#view-cases .gcard.bare:hover {
  box-shadow: none !important;
}
.skin::after,.icard::after,.drop-tile::after,.ccard::after,.htile::after {
  content: "" !important;
  position: absolute !important;
  z-index: 8 !important;
  left: 9px !important;
  right: 9px !important;
  bottom: 0 !important;
  width: auto !important;
  height: 5px !important;
  border: 0 !important;
  border-radius: 5px 5px 0 0 !important;
  background: var(--rc,var(--c,var(--r-common))) !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none;
}
.drop-tile::after { background: var(--c,var(--r-common)) !important; }

/* Selected upgrade card retains its original rarity material. */
.skin.sel { transform: translateY(-3px) scale(1.015) !important; z-index: 10 !important; }
.skin.sel::after { height: 7px !important; left: 6px !important; right: 6px !important; }
.skin.sel .art::before {
  content: none !important;
  display: none !important;
}
.skin.sel .art {
  background:
    radial-gradient(ellipse at 50% 115%,color-mix(in srgb,var(--rc,var(--r-common)) 68%,transparent),transparent 68%),
    linear-gradient(180deg,color-mix(in srgb,var(--rc,var(--r-common)) 19%,var(--card-stage)),var(--card-stage)) !important;
}
.skin.sel .art::before {
  content: "✓";
  position: absolute;
  z-index: 9;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 6px 14px rgba(114,101,253,.35);
  font-size: 12px;
  font-weight: 800;
}
.skin.sel .n,.skin.sel .s { background: color-mix(in srgb,var(--rc) 9%,var(--card-footer)) !important; }

/* Inventory: cleaner vertical card and always-visible translucent action. */
.icard {
  height: 246px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-rows: 158px 1fr !important;
  background: #333650 !important;
}
.ic-top { position:absolute !important; margin:0 !important; }
.ic-sell {
  padding: 6px 9px !important;
  background: rgba(38,41,63,.72) !important;
  color: #bfc3d8 !important;
  font-size: 9px !important;
  opacity: .82;
}
.ic-price {
  padding: 6px 9px !important;
  background: rgba(38,41,63,.76) !important;
  color: var(--wv-gold) !important;
  font-size: 11px !important;
}
.ic-art {
  grid-row: 1;
  height: 158px !important;
  min-height: 158px !important;
  margin: 0 !important;
}
.ic-art img { max-height: 102px !important; }
.ic-get {
  left: 10px !important;
  right: 10px !important;
  bottom: 9px !important;
  width: calc(100% - 20px) !important;
  height: 32px !important;
  padding: 0 9px !important;
  border: 0 !important;
  transform: none !important;
  opacity: .48 !important;
  background: var(--grad-btn) !important;
  color: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.icard:hover .ic-get,.ic-get:hover { opacity: .92 !important; transform: none !important; }
.ic-get:active { transform: scale(.98) !important; }
.ic-w,.ic-sn {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 4 !important;
  padding-left: 11px !important;
  padding-right: 11px !important;
  background: #2c2f47 !important;
}
.ic-w { top:158px !important; padding-top:9px !important; height:27px; }
.ic-sn { top:185px !important; height:61px; padding-top:0 !important; padding-bottom:37px !important; }
.ic-bar { display:none !important; }

/* Case catalogue: artwork floats freely, no rectangular card shell. */
#view-cases .gcard,#view-cases .gcard.bare {
  height: 382px !important;
  min-height: 382px !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border-radius: 0 !important;
}
#view-cases .gcard-art,#view-cases .gcard.bare .gcard-art {
  height: 300px !important;
  min-height: 300px !important;
  padding: 8px !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
}
#view-cases .gcard-art::after {
  left: 8%; right: 8%; bottom: 4%; height: 52%;
  border-radius: 50%;
  filter: blur(23px);
  background: var(--case-rarity) !important;
  opacity: .22;
}
#view-cases .gcard:hover,#view-cases .gcard.bare:hover { background:transparent !important; transform:translateY(-4px) !important; }
#view-cases .gcard:hover .gcard-art,#view-cases .gcard.bare:hover .gcard-art { background:transparent !important; }
#view-cases .gcard-art > img,#view-cases .gcard-art > img.art-hero { max-height:278px !important; }
#view-cases .gcard.bare .gcard-art > img.art-hero { height:292px !important; max-height:292px !important; }
#view-cases .rarity-strip { width:54% !important; height:5px !important; margin:0 auto !important; border-radius:5px !important; }
#view-cases .gcard-name,#view-cases .gcard.bare .gcard-name {
  min-height: 42px !important;
  padding: 12px 8px 0 !important;
  display:block !important;
  background:transparent !important;
  text-align:center !important;
  font-size:16px !important;
}
#view-cases .gcard-price,#view-cases .gcard.bare .gcard-price {
  left:50% !important;
  right:auto !important;
  bottom:10px !important;
  transform:translateX(-50%) !important;
  background:var(--case-rarity) !important;
}
#view-cases .card-heart { top:16px !important; right:16px !important; }

/* Inside a case: no shell around the hero artwork. */
.casepage-head { background:transparent !important; border-radius:0 !important; padding-left:0 !important; padding-right:0 !important; }
.casepage-art {
  background:transparent !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
}
.casepage-art::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:20% 4% 4%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(159,143,248,.28),transparent 70%);
  filter:blur(12px);
}

@media(max-width:900px){
  .app{width:calc(100vw / var(--pz, 1) - 72px)!important}
  .top-meta{height:78px!important;right:10px!important}
  .top:has(.balance:not([hidden])) .ticker{mask-image:none!important;-webkit-mask-image:none!important}
  .online{right:calc(var(--top-meta-w, 160px) + var(--top-meta-right, 10px) + 10px)!important}
}
@media(max-width:700px){.app{width:100%!important}.feed-wrap{display:none!important}.top{display:flex!important}.top-meta{position:relative!important;right:auto!important;margin-left:auto!important}}

/* ============================================================
   WITHDRAW + DEPOSIT WELVURA PASS
   Flat nested surfaces; zero one-pixel outline cards.
   ============================================================ */

#view-withdraw,#view-deposit { --page-card:#2e314a; --page-sub:#383b5a; --page-inset:#26293f; }
.wd-page,.deposit-page { max-width:1120px !important; padding:10px 0 52px !important; }
.wd-head,.deposit-page-title {
  margin:0 0 16px !important;
  min-height:auto !important;
  padding:0 4px 14px !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:space-between !important;
  text-align:left !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.wd-head h1,.deposit-page-title h1 { margin:0 !important; font:700 clamp(24px,3vw,34px)/1 Rubik,sans-serif !important; letter-spacing:-.02em !important; color:#fff !important; }
.wd-head p { margin:0 !important; color:#8e94b0 !important; font-size:13px !important; }
.deposit-page-title > span { width:44px !important; height:44px !important; border:0 !important; border-radius:10px !important; background:var(--grad-btn) !important; }
.deposit-page-title::after { display:none !important; }

/* progress is a flat navigation strip */
.wd-steps {
  margin:0 0 12px !important;
  padding:7px !important;
  min-height:64px !important;
  display:grid !important;
  grid-template-columns:repeat(4,1fr) !important;
  gap:6px !important;
  background:var(--page-card) !important;
  border:0 !important;
  border-radius:12px !important;
}
.wd-step {
  min-height:50px;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:9px !important;
  border:0 !important;
  border-radius:9px !important;
  background:transparent !important;
}
.wd-step::before,.wd-step::after { display:none !important; }
.wd-step.on { background:var(--grad-btn) !important; color:#fff !important; }
.wd-step.done { background:rgba(159,143,248,.12) !important; color:#c9c1ff !important; }
.wd-step i { width:9px !important; height:9px !important; border:0 !important; box-shadow:none !important; background:#656b8b !important; }
.wd-step.on i { background:#fff !important; }

.wd-card {
  padding:26px !important;
  background:var(--page-card) !important;
  border:0 !important;
  border-radius:14px !important;
  box-shadow:none !important;
}
.wd-panel h2 { margin-bottom:6px !important; text-align:left !important; font:600 21px/1.2 Rubik,sans-serif !important; color:#fff !important; }
.wd-sub { max-width:none !important; margin:0 0 22px !important; text-align:left !important; color:#8e94b0 !important; }
.wd-avrow,.wd-last,.wd-offer-grid,.wd-offer-preview,.wd-price-fields,.wd-price-skin,.wd-confirmations,.wd-skinrow,.wd-process-summary,.wd-process-guides,.wd-process-guide {
  border:0 !important;
  border-radius:11px !important;
  box-shadow:none !important;
}
.wd-avrow { padding:18px !important; background:var(--page-sub) !important; }
.wd-avbox { background:var(--page-inset) !important; border:0 !important; }
.wd-upload { border:0 !important; background:var(--grad-btn) !important; color:#fff !important; box-shadow:0 7px 18px rgba(114,101,253,.24) !important; }
.wd-actions { margin-top:18px !important; }
.wd-next { width:auto !important; min-width:180px !important; margin-left:auto !important; padding:0 30px !important; }
.wd-back { border:0 !important; background:var(--page-sub) !important; }
.wd-offer-grid,.wd-offer-preview,.wd-price-fields,.wd-price-skin,.wd-confirmations { background:var(--page-sub) !important; }
.wd-offer,.wd-avatar-list button,.wd-steptile,.wd-skin-tile { border:0 !important; background:var(--page-inset) !important; box-shadow:none !important; }
.wd-offer.on,.wd-avatar-list button.on { box-shadow:inset 0 -4px 0 var(--wv-violet) !important; }
.wd-price-copy-field,.wd-pattern-field { border:0 !important; background:var(--page-inset) !important; }
.wd-process { padding:22px !important; background:var(--page-card) !important; }
.wd-process-summary,.wd-process-guides { background:var(--page-sub) !important; }
.wd-process-summary-cell,.wdh-detail-cell,.wd-hist-details,.uc-target-pane,.uc-foot .uc-chance { border:0 !important; }
.wd-history-entry,.wd-hist-row,.wd-detail,.wdd-item,.wdd-fact,.wdd-note,.ucard,.uc-pane,.htile {
  border:0 !important;
  box-shadow:none !important;
}

/* Deposit: two clean columns, coherent cards and controls. */
.deposit-page-title {
  justify-content:flex-start !important;
  text-align:left !important;
  align-items:center !important;
  gap:12px !important;
  background:transparent !important;
  border-radius:0 !important;
  padding:0 2px !important;
  margin-bottom:16px !important;
}
.deposit-page-grid { grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr) !important; gap:12px !important; }
.deposit-checkout-column { display:contents !important; }
.deposit-payments-panel,.deposit-amount-panel {
  padding:16px !important;
  background:var(--page-card) !important;
  border:0 !important;
  border-radius:14px !important;
  box-shadow:none !important;
}
.deposit-payments-panel {
  grid-column:1 !important;
  grid-row:1 / span 4 !important;
  height:100% !important;
  min-height:0 !important;
  align-self:stretch !important;
  box-sizing:border-box !important;
}
.deposit-amount-panel { grid-column:2 !important; grid-row:1 !important; }
.deposit-promo-row { grid-column:2 !important; grid-row:2 !important; }
.deposit-page-terms { grid-column:2 !important; grid-row:3 !important; }
.deposit-page-submit { grid-column:2 !important; grid-row:4 !important; }
.deposit-page-note { display: none !important; }
.deposit-block-title { margin-bottom:13px !important; }
.deposit-block-title > span { border:0 !important; background:var(--wv-violet-soft) !important; color:var(--wv-violet) !important; }
.deposit-page-methods { display:grid !important; gap:8px !important; }
.deposit-page-method {
  min-height:60px !important;
  padding:10px 13px !important;
  border:0 !important;
  border-radius:11px !important;
  background:var(--page-sub) !important;
  box-shadow:none !important;
}
.deposit-page-method:has(input:checked) { background:color-mix(in srgb,var(--wv-violet) 13%,var(--page-sub)) !important; box-shadow:inset 0 -3px 0 var(--wv-violet) !important; }
.deposit-method-logo,.deposit-check { border:0 !important; background:var(--page-inset) !important; }
.deposit-promo-row { border:0 !important; background:var(--page-card) !important; border-radius:14px !important; }
.deposit-promo-row label,.deposit-page-input { border:0 !important; background:var(--page-inset) !important; }
.deposit-promo-row button { border:0 !important; background:var(--page-sub) !important; }
.deposit-page-presets { gap:6px !important; }
.deposit-page-presets button { border:0 !important; background:var(--page-sub) !important; }
.deposit-bonus-pill,.deposit-page-total { border:0 !important; box-shadow:none !important; }
.deposit-page-submit { border:0 !important; }

/* Remove subtle old corner/edge outlines from all lower cards. */
#view-upgrade .panel,#view-inv .acc-pane,#view-inv .acc-tabs,
#view-withdraw *,#view-deposit *,#view-casepage .casepage-drops,
#view-casepage .drop-tile,#view-cases .case-section {
  border-color:transparent !important;
}
#view-upgrade .panel::before,#view-upgrade .panel::after,
#view-withdraw [class*="card"]::before,#view-withdraw [class*="card"]::after,
#view-deposit [class*="panel"]::before,#view-deposit [class*="panel"]::after {
  border:0 !important;
}

@media(max-width:900px){
  .wd-page,.deposit-page{max-width:100%!important}
  .deposit-page-grid{grid-template-columns:1fr!important}
}
@media(max-width:620px){
  .wd-head{display:block!important}.wd-head p{margin-top:7px!important}
  .wd-steps{grid-template-columns:repeat(2,1fr)!important}
  .wd-avrow{grid-template-columns:64px minmax(0,1fr)!important}
  .wd-upload{grid-column:1/-1!important;width:100%!important}
  .wd-next{width:100%!important}
}

/* ============================================================
   CASE PAGE + ROULETTE + WITHDRAW STATE POLISH
   ============================================================ */

/* Keep the large case header card; remove only the inner image tile. */
.casepage-head {
  background:#2e314a !important;
  border-radius:14px !important;
  padding:22px 24px 28px !important;
  box-shadow:none !important;
}
.casepage-art {
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
}
.casepage-art::before { inset:18% 0 0 !important; }
.casepage-info h1 { font-size:clamp(26px,3vw,42px) !important; }

/* Static contents match the main inventory card language. */
.casepage-drops { padding:22px !important; background:#2e314a !important; }
.drops-grid { grid-template-columns:repeat(auto-fill,minmax(155px,1fr)) !important; gap:11px !important; }
.drop-tile {
  min-height:190px !important;
  grid-template-rows:122px auto auto !important;
  padding:0 !important;
  background:#333650 !important;
  border:0 !important;
  border-radius:10px !important;
  box-shadow:none !important;
}
.drop-tile img {
  width:100% !important;
  height:122px !important;
  max-height:122px !important;
  padding:17px 12px 10px !important;
}
.drop-tile b,.drop-tile small { padding-left:11px !important; padding-right:11px !important; }
.drop-tile b { padding-top:10px !important; font-size:11px !important; }
.drop-tile small { padding-bottom:31px !important; font-size:12px !important; }
.drop-tile .dt-g { left:11px !important; bottom:9px !important; font-size:11px !important; }
.drop-tile .dt-p { right:10px !important; bottom:8px !important; }

/* Roulette frame is one Welvura panel; items are true cards with gaps. */
.spinner-stack { display:grid !important; gap:10px !important; background:transparent !important; }
.spinner-frame {
  height:208px !important;
  padding:10px 0 !important;
  border:0 !important;
  border-radius:13px !important;
  background:#292c43 !important;
  box-shadow:none !important;
}
.spinner-frame::before,.spinner-frame::after { border:0 !important; }
.spinner { gap:8px !important; align-items:center !important; }
.spinner-item {
  flex:0 0 170px !important;
  width:170px !important;
  height:184px !important;
  padding:0 0 11px !important;
  display:grid !important;
  grid-template-rows:116px auto auto !important;
  align-content:start !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:10px !important;
  background:#333650 !important;
  box-shadow:none !important;
}
.spinner-item::after {
  content:"";
  position:absolute;
  z-index:5;
  left:9px;right:9px;bottom:0;
  height:5px;
  border-radius:5px 5px 0 0;
  background:var(--rc,var(--r-common));
}
.spinner-item .glow {
  position:absolute !important;
  z-index:0 !important;
  left:0;right:0;top:0;
  height:116px !important;
  opacity:.68 !important;
  background:radial-gradient(ellipse at 50% 110%,color-mix(in srgb,var(--rc) 68%,transparent),transparent 70%) !important;
}
.spinner-item img {
  grid-row:1;
  align-self:center;
  justify-self:center;
  z-index:2;
  height:92px !important;
  max-width:145px !important;
  margin:0 !important;
}
.spinner-item b {
  z-index:2;
  margin:0 !important;
  padding:0 11px !important;
  background:#2c2f47;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:left !important;
}
.spinner-item b.wn { padding-top:9px !important; color:#979cb7 !important; font-size:11px !important; font-weight:500 !important; }
.spinner-item b.sn { padding-top:1px !important; padding-bottom:11px !important; color:#fff !important; font-size:12px !important; font-weight:800 !important; }
.spinner.revealed .spinner-item.is-win {
  transform:scale(1.045) !important;
  box-shadow:0 10px 28px color-mix(in srgb,var(--rc) 38%,rgba(10,12,23,.34)) !important;
}
.spinner-marker { z-index:12 !important; }

/* Withdraw price step: less giant empty shell, better grouped form. */
.wd-price-layout { grid-template-columns:minmax(0,1fr) 330px !important; gap:14px !important; }
.wd-price-fields { padding:18px !important; background:#383b5a !important; }
.wd-price-fields > label { margin:0 0 7px !important; color:#aeb3ca !important; font-size:12px !important; font-weight:600 !important; }
.wd-price-copy-field,.wd-pattern-field { min-height:58px !important; margin-bottom:16px !important; border:0 !important; border-radius:9px !important; background:#26293f !important; }
.wd-field-coin { width:32px !important; height:32px !important; border:0 !important; background:var(--wv-gold) !important; }
.wd-price-skin {
  min-height:260px !important;
  padding:18px !important;
  background:
    radial-gradient(ellipse at 50% 100%,rgba(114,101,253,.38),transparent 70%),
    #383b5a !important;
}
.wd-price-skin img { max-height:150px !important; }
.wd-confirmations { margin-top:12px !important; padding:8px !important; display:grid !important; gap:5px !important; background:#383b5a !important; }
.wd-confirm-row { min-height:44px !important; padding:9px 11px !important; border:0 !important; border-radius:8px !important; background:#30334d !important; }

/* Process state becomes a complete success panel, not a loose banner. */
.wd-process { max-width:1120px !important; padding:24px !important; border-radius:14px !important; background:#2e314a !important; }
.wd-process-head {
  min-height:108px !important;
  margin:0 0 14px !important;
  padding:18px 22px !important;
  justify-content:flex-start !important;
  border:0 !important;
  border-radius:11px !important;
  background:linear-gradient(100deg,rgba(56,210,138,.17),rgba(56,210,138,.04)) !important;
}
.wd-process-success { width:58px !important;height:58px !important;flex-basis:58px !important;box-shadow:0 0 0 8px rgba(56,210,138,.09) !important; }
.wd-process-head h2 { font:700 clamp(22px,3vw,34px)/1.08 Rubik,sans-serif !important; letter-spacing:-.02em !important; text-transform:none !important; }
.wd-process-layout { grid-template-columns:220px minmax(0,1fr) !important; gap:12px !important; }
.wd-process-summary,.wd-process-guides { border:0 !important; border-radius:11px !important; background:#383b5a !important; box-shadow:none !important; }
.wd-process-summary-cell { border:0 !important; background:#30334d !important; margin:7px !important; border-radius:8px !important; }
.wd-process-guide { border:0 !important; background:#30334d !important; }
.wd-process-go { border-radius:9px !important; }

@media(max-width:760px){
 .drops-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .spinner-item{flex-basis:145px!important;width:145px!important}
 .wd-price-layout,.wd-process-layout{grid-template-columns:1fr!important}
}

/* ============================================================
   UNIFIED ONE-SURFACE ITEM CARDS
   One material per card. No image/footer split backgrounds.
   ============================================================ */
:root {
  --item-card:#25242b;
  --item-card-hover:#2b2a33;
  --item-muted:#b1adbd;
}

/* Shared single material and rarity treatment. */
.skin,.icard,.drop-tile,.spinner-item,.ccard,.htile,.drop-card {
  position:relative !important;
  isolation:isolate !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:12px !important;
  background:var(--item-card) !important;
  box-shadow:none !important;
}
.skin::before,.icard::before,.drop-tile::before,.spinner-item::before,.ccard::before,.htile::before,.drop-card::before {
  content:"" !important;
  position:absolute !important;
  z-index:0 !important;
  inset:36% 0 0 !important;
  display:block !important;
  border:0 !important;
  background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--rc,var(--c,var(--r-common))) 48%,transparent)) !important;
  opacity:.76 !important;
  pointer-events:none;
}
.skin::after,.icard::after,.drop-tile::after,.spinner-item::after,.ccard::after,.htile::after {
  content:"" !important;
  position:absolute !important;
  z-index:7 !important;
  left:18% !important;
  right:18% !important;
  bottom:0 !important;
  width:auto !important;
  height:5px !important;
  border:0 !important;
  border-radius:6px 6px 0 0 !important;
  background:var(--rc,var(--c,var(--r-common))) !important;
  opacity:1 !important;
  transform:none !important;
}
.skin:hover,.icard:hover,.drop-tile:hover,.ccard:hover,.htile:hover {
  transform:translateY(-3px) !important;
  background:var(--item-card-hover) !important;
  box-shadow:0 14px 30px rgba(8,9,15,.28) !important;
}

/* Upgrade item and target cards. */
.skin {
  min-height:190px !important;
  height:190px !important;
  padding:0 !important;
  display:block !important;
}
.skin .art {
  position:absolute !important;
  z-index:2 !important;
  left:8px !important;right:8px !important;top:32px !important;
  width:auto !important;height:100px !important;min-height:0 !important;
  margin:0 !important;
  display:grid !important;place-items:center;
  overflow:visible !important;
  border:0 !important;border-radius:0 !important;
  background:transparent !important;
}
.skin .art::after { display:none !important; }
.skin .art img { width:94% !important;height:88px !important;max-height:88px !important;object-fit:contain !important; }
.skin .ghost { opacity:.045 !important;font-size:25px !important; }
.skin .glow { display:none !important; }
.skin .n,.skin .s {
  position:absolute !important;z-index:3 !important;left:0 !important;right:0 !important;
  margin:0 !important;padding:0 10px !important;
  background:transparent !important;text-align:center !important;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.skin .n { top:139px !important;color:var(--item-muted) !important;font-size:11px !important;font-weight:400 !important;line-height:16px !important; }
.skin .s { top:157px !important;color:#fff !important;font-size:12px !important;font-weight:800 !important;line-height:17px !important; }
.skin .p {
  position:absolute !important;z-index:5 !important;top:9px !important;right:10px !important;left:auto !important;bottom:auto !important;
  margin:0 !important;padding:0 !important;color:#84f3af !important;font-size:11px !important;font-weight:800 !important;
}
.skin.sel {
  transform:translateY(-3px) scale(1.018) !important;
  background:color-mix(in srgb,var(--rc) 12%,var(--item-card)) !important;
  box-shadow:0 13px 29px color-mix(in srgb,var(--rc) 25%,rgba(8,9,15,.32)) !important;
}
.skin.sel::before { opacity:.95 !important;inset:24% 0 0 !important; }
.skin.sel::after { height:7px !important;left:12% !important;right:12% !important; }
.skin.sel .art,.skin.sel .n,.skin.sel .s { background:transparent !important; }
.skin.sel .art::before { content:none !important;display:none !important; }

/* Inventory cards use the reference control hierarchy on one material. */
.icard {
  height:286px !important;min-height:286px !important;padding:0 !important;display:block !important;
}
.icard .glow { display:none !important; }
.ic-top { position:absolute !important;z-index:6 !important;top:11px !important;left:11px !important;right:11px !important;margin:0 !important; }
.ic-sell {
  padding:7px 10px !important;border:0 !important;border-radius:8px !important;
  background:#86d6a1 !important;color:#103322 !important;font-size:9px !important;font-weight:800 !important;opacity:1 !important;
}
.ic-price { padding:6px 0 !important;background:transparent !important;color:#84f3af !important;font-size:11px !important;font-weight:800 !important; }
.ic-art {
  position:absolute !important;z-index:2 !important;left:8px !important;right:8px !important;top:48px !important;
  width:auto !important;height:132px !important;min-height:0 !important;margin:0 !important;
  display:flex !important;align-items:center;justify-content:center;
  overflow:visible !important;border:0 !important;border-radius:0 !important;background:transparent !important;
}
.ic-art img { max-width:92% !important;max-height:104px !important; }
.ic-get {
  position:absolute !important;z-index:7 !important;left:16% !important;right:16% !important;bottom:-38px !important;
  width:auto !important;height:36px !important;padding:0 10px !important;
  border:0 !important;border-radius:8px !important;transform:none !important;
  background:rgba(159,143,248,.28) !important;color:#ffe2b5 !important;opacity:.68 !important;box-shadow:none !important;
}
.icard:hover .ic-get,.ic-get:hover { opacity:1 !important;background:rgba(159,143,248,.46) !important; }
.ic-w,.ic-sn {
  position:absolute !important;z-index:4 !important;left:0 !important;right:0 !important;margin:0 !important;padding:0 12px !important;
  background:transparent !important;text-align:center !important;
}
.ic-w { top:210px !important;height:auto !important;color:var(--item-muted) !important;font-size:12px !important;font-weight:400 !important; }
.ic-sn { top:232px !important;height:auto !important;padding:0 12px !important;color:#fff !important;font-size:13px !important;font-weight:800 !important; }
.ic-bar { display:none !important; }

/* Case-content cards, no split. */
.drop-tile {
  min-height:224px !important;height:224px !important;padding:0 !important;display:block !important;
}
.drop-tile img {
  position:absolute !important;z-index:2 !important;left:8px !important;right:8px !important;top:35px !important;
  width:calc(100% - 16px) !important;height:112px !important;max-height:112px !important;margin:0 !important;padding:0 !important;
  object-fit:contain !important;background:transparent !important;
}
.drop-tile b,.drop-tile small {
  position:absolute !important;z-index:3 !important;left:0 !important;right:0 !important;margin:0 !important;padding:0 10px !important;
  background:transparent !important;text-align:center !important;
}
.drop-tile b { top:158px !important;color:var(--item-muted) !important;font-size:11px !important;font-weight:400 !important; }
.drop-tile small { top:179px !important;color:#fff !important;font-size:12px !important;font-weight:800 !important; }
.drop-tile .dt-g { position:absolute !important;z-index:5 !important;top:10px !important;right:10px !important;left:auto !important;bottom:auto !important;color:#84f3af !important;font-size:11px !important;font-weight:800 !important; }
.drop-tile .dt-p { position:absolute !important;z-index:5 !important;top:9px !important;left:10px !important;right:auto !important;bottom:auto !important;padding:3px 6px !important;border:0 !important;background:rgba(255,255,255,.06) !important;color:#d5d1de !important;font-size:9px !important; }

/* Roulette cards use identical one-surface language. */
.spinner-item {
  flex:0 0 176px !important;width:176px !important;height:188px !important;padding:0 !important;display:block !important;
}
.spinner-item .glow { display:none !important; }
.spinner-item img {
  position:absolute !important;z-index:2 !important;left:10px !important;right:10px !important;top:25px !important;
  width:calc(100% - 20px) !important;height:105px !important;max-width:none !important;margin:0 !important;object-fit:contain !important;
}
.spinner-item b {
  position:absolute !important;z-index:3 !important;left:0 !important;right:0 !important;margin:0 !important;padding:0 10px !important;
  background:transparent !important;text-align:center !important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.spinner-item b.wn { top:139px !important;color:var(--item-muted) !important;font-size:11px !important;font-weight:500 !important; }
.spinner-item b.sn { top:158px !important;color:#fff !important;font-size:12px !important;font-weight:800 !important; }
.spinner.revealed .spinner-item.is-win { background:color-mix(in srgb,var(--rc) 12%,var(--item-card)) !important;box-shadow:0 13px 28px color-mix(in srgb,var(--rc) 30%,rgba(8,9,15,.3)) !important; }

/* Compact history cards stay one surface too. */
.ccard,.htile { background:var(--item-card) !important; }
.ccard img,.htile img { background:transparent !important; }

/* Ribbon is already one surface; retain its horizontal composition. */
.drop-card::before { inset:0 !important;opacity:.34 !important;background:radial-gradient(circle at 25% 90%,var(--rc),transparent 66%) !important; }
.drop-card::after { display:none !important; }
.drop-card .drop-box,.drop-card .drop-copy,.drop-card .drop-copy small,.drop-card .drop-name { background:transparent !important; }

@media(max-width:700px){
 .skin{height:180px!important;min-height:180px!important}.skin .art{top:28px!important;height:94px!important}.skin .n{top:130px!important}.skin .s{top:148px!important}
 .icard{height:270px!important;min-height:270px!important}.ic-w{top:198px!important}.ic-sn{top:219px!important}
 .drop-tile{height:210px!important;min-height:210px!important}.drop-tile b{top:148px!important}.drop-tile small{top:168px!important}
}

/* ============================================================
   WELVURA COLOR TUNE — one-surface cards
   Brighter blue-violet material; hover stays chromatic, never gray.
   ============================================================ */
:root {
  --item-card:#333650;
  --item-card-hover:#3a3d5b;
  --item-muted:#aeb3cd;
}

/* Shared base: Welvura navy-violet, still one continuous surface. */
.skin,.icard,.drop-tile,.spinner-item,.ccard,.htile {
  background-color:#383b5a !important;
  background-image:linear-gradient(155deg,rgba(255,255,255,.035),transparent 44%) !important;
}
.skin::before,.icard::before,.drop-tile::before,.spinner-item::before,.ccard::before,.htile::before {
  inset:28% 0 0 !important;
  background:
    radial-gradient(ellipse at 50% 108%,color-mix(in srgb,var(--rc,var(--c,var(--r-common))) 62%,transparent),transparent 72%),
    linear-gradient(180deg,transparent 18%,color-mix(in srgb,var(--rc,var(--c,var(--r-common))) 24%,transparent)) !important;
  opacity:.86 !important;
}

/* Hover follows rarity + brand violet rather than desaturating to gray. */
.skin:hover,.icard:hover,.drop-tile:hover,.ccard:hover,.htile:hover {
  background-color:color-mix(in srgb,var(--rc,var(--c,var(--wv-violet))) 10%,#3f4263) !important;
  background-image:linear-gradient(145deg,rgba(159,143,248,.12),transparent 48%) !important;
  box-shadow:0 14px 30px color-mix(in srgb,var(--rc,var(--c,var(--wv-violet))) 18%,rgba(10,12,23,.3)) !important;
}

/* Selected is a stronger version of its own rarity, not another material. */
.skin.sel {
  background-color:color-mix(in srgb,var(--rc) 16%,#3b3e5c) !important;
  background-image:linear-gradient(145deg,rgba(255,255,255,.045),transparent 46%) !important;
  box-shadow:0 14px 31px color-mix(in srgb,var(--rc) 25%,rgba(10,12,23,.34)) !important;
}
.skin.sel::before { opacity:1 !important; }

/* Keep text integrated into the same lighter card material. */
.skin .n,.skin .s,.ic-w,.ic-sn,.drop-tile b,.drop-tile small,
.spinner-item b,.ccard span,.htile span {
  background:transparent !important;
}
.skin .n,.ic-w,.drop-tile b,.spinner-item b.wn { color:#b8bdd4 !important; }

/* Inventory action remains visible and uses Welvura violet translucency. */
.ic-get {
  background:rgba(159,143,248,.32) !important;
  color:#fff1d4 !important;
  opacity:.72 !important;
}
.icard:hover .ic-get,.ic-get:hover { background:rgba(159,143,248,.52) !important;opacity:1 !important; }
.ic-sell { background:#87d9a3 !important; }

/* Case content and roulette use the same color temperature. */
.spinner-frame { background:#2e314a !important; }
.spinner-item:hover {
  background-color:color-mix(in srgb,var(--rc) 10%,#3f4263) !important;
  background-image:linear-gradient(145deg,rgba(159,143,248,.11),transparent 48%) !important;
}
.spinner.revealed .spinner-item.is-win {
  background-color:color-mix(in srgb,var(--rc) 17%,#3b3e5c) !important;
  background-image:linear-gradient(145deg,rgba(255,255,255,.05),transparent 45%) !important;
}

/* Ribbon uses a more Welvura-like navy-purple base too. */
.drop-card,.ticker .drop-card {
  background:
    radial-gradient(circle at 25% 100%,color-mix(in srgb,var(--rc) 52%,transparent),transparent 68%),
    linear-gradient(110deg,color-mix(in srgb,var(--rc) 15%,#383b5a),#383b5a 74%) !important;
}

/* ============================================================
   GRADIENT / HOVER / SELECTION CORRECTIONS
   ============================================================ */

/* Smooth full-card rarity wash. Legacy .drop-tile::before had height:3px. */
.skin::before,.icard::before,.drop-tile::before,.spinner-item::before,.ccard::before,.htile::before {
  inset:0 !important;
  top:0 !important;
  right:0 !important;
  bottom:0 !important;
  left:0 !important;
  width:auto !important;
  height:auto !important;
  border:0 !important;
  border-radius:inherit !important;
  background:
    radial-gradient(ellipse 110% 72% at 50% 108%,color-mix(in srgb,var(--rc,var(--c,var(--r-common))) 64%,transparent) 0%,color-mix(in srgb,var(--rc,var(--c,var(--r-common))) 30%,transparent) 42%,transparent 72%) !important;
  opacity:.9 !important;
}

/* Never reveal the old gray inner artwork tile on hover/selection. */
.skin:hover .art,.skin.sel .art,.skin.sel:hover .art,
.icard:hover .ic-art,.drop-tile:hover img,.spinner-item:hover img {
  background-color:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
}

/* Hover stays blue-violet with a restrained rarity tint. */
.skin:hover,.icard:hover,.drop-tile:hover,.ccard:hover,.htile:hover {
  background-color:color-mix(in srgb,var(--rc,var(--c,var(--wv-violet))) 10%,#3b3e5c) !important;
  background-image:linear-gradient(145deg,rgba(159,143,248,.1),transparent 55%) !important;
}

/* Selected: same size and rounded shape, rarity ring + glow only. */
.skin.sel,.skin.sel:hover {
  transform:translateY(-2px) !important;
  border-radius:12px !important;
  background-color:#383b5a !important;
  background-image:linear-gradient(145deg,color-mix(in srgb,var(--rc) 12%,transparent),transparent 58%) !important;
  outline:none !important;
  box-shadow:
    0 0 0 2px var(--rc),
    0 11px 28px color-mix(in srgb,var(--rc) 34%,rgba(8,9,15,.34)),
    inset 0 0 26px color-mix(in srgb,var(--rc) 12%,transparent) !important;
}
.skin.sel::before { opacity:1 !important; }
.skin.sel::after { height:6px !important;left:15% !important;right:15% !important; }
.skin.sel .art::before { content:none !important;display:none !important; }

/* Site currency is gold everywhere; rarity remains in the card glow/accent. */
.skin .p,.ic-price,.drop-tile .dt-g,.ccard .cc-price,.htile .ht-price,
.hr-price,.duel-copy small,.whr-price,.wd-steptile-value {
  color:var(--gold) !important;
}
.ic-price,.drop-tile .dt-g,.skin .p { text-shadow:0 0 12px rgba(255,201,79,.14); }

/* Keep the individual-case drop cards free of the old horizontal separator. */
#view-casepage .drop-tile::before {
  inset:0 !important;
  width:auto !important;
  height:auto !important;
  background:radial-gradient(ellipse 115% 75% at 50% 108%,color-mix(in srgb,var(--c) 66%,transparent),color-mix(in srgb,var(--c) 26%,transparent) 44%,transparent 74%) !important;
}
#view-casepage .drop-tile img { border:0 !important;box-shadow:none !important; }

/* Roulette uses the same seamless fade. */
.spinner-item::before {
  background:radial-gradient(ellipse 115% 76% at 50% 108%,color-mix(in srgb,var(--rc) 64%,transparent),color-mix(in srgb,var(--rc) 25%,transparent) 46%,transparent 74%) !important;
}

/* ============================================================
   FINAL UPGRADER CARD + RIBBON COMPOSITION
   Welvura blue-violet, one surface, unclipped selection.
   ============================================================ */

/* Two useful columns instead of three cramped, truncated cards. */
#view-upgrade .panel:not(.center) .skins {
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px !important;
  padding:2px 5px 10px 2px !important;
}

/* Balanced card: price top-right, large centered art, centered labels. */
#view-upgrade .skin {
  width:100% !important;
  height:224px !important;
  min-height:224px !important;
  border:0 !important;
  border-radius:12px !important;
  background-color:#383b5a !important;
  background-image:linear-gradient(145deg,rgba(159,143,248,.07),transparent 48%) !important;
  box-shadow:none !important;
  transform:none !important;
}
#view-upgrade .skin::before {
  inset:0 !important;
  width:auto !important;
  height:auto !important;
  border-radius:inherit !important;
  background:radial-gradient(ellipse 125% 76% at 50% 108%,color-mix(in srgb,var(--rc) 68%,transparent),color-mix(in srgb,var(--rc) 26%,transparent) 48%,transparent 75%) !important;
  opacity:.92 !important;
}
#view-upgrade .skin::after {
  left:17% !important;
  right:17% !important;
  bottom:0 !important;
  height:5px !important;
  border-radius:5px 5px 0 0 !important;
}
#view-upgrade .skin .art,
#view-upgrade .skin:hover .art,
#view-upgrade .skin.sel .art,
#view-upgrade .skin.sel:hover .art {
  left:10px !important;
  right:10px !important;
  top:38px !important;
  width:auto !important;
  height:120px !important;
  min-height:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
#view-upgrade .skin .art img {
  width:96% !important;
  height:108px !important;
  max-height:108px !important;
  filter:drop-shadow(0 10px 13px rgba(8,10,20,.42)) !important;
}
#view-upgrade .skin .ghost { font-size:28px !important;opacity:.045 !important; }
#view-upgrade .skin .p {
  top:11px !important;
  right:12px !important;
  color:var(--gold) !important;
  font-size:12px !important;
  line-height:18px !important;
  text-shadow:0 0 13px rgba(255,201,79,.18) !important;
}
#view-upgrade .skin .n,
#view-upgrade .skin .s {
  left:8px !important;
  right:8px !important;
  padding:0 !important;
  background:transparent !important;
  text-align:center !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
#view-upgrade .skin .n {
  top:169px !important;
  color:#b9bed5 !important;
  font-size:12px !important;
  line-height:17px !important;
  font-weight:400 !important;
}
#view-upgrade .skin .s {
  top:188px !important;
  color:#fff !important;
  font-size:13px !important;
  line-height:18px !important;
  font-weight:800 !important;
}

/* Chromatic hover; no gray tile and no shape change. */
#view-upgrade .skin:hover {
  border-radius:12px !important;
  background-color:color-mix(in srgb,var(--rc) 9%,#414462) !important;
  background-image:linear-gradient(145deg,rgba(159,143,248,.13),transparent 52%) !important;
  box-shadow:0 12px 25px color-mix(in srgb,var(--rc) 20%,rgba(8,10,20,.3)) !important;
  transform:translateY(-2px) !important;
}

/* Selection ring is inset, so scroll containers can never cut it off. */
#view-upgrade .skin.sel,
#view-upgrade .skin.sel:hover {
  border-radius:12px !important;
  background-color:color-mix(in srgb,var(--rc) 12%,#3d405e) !important;
  background-image:linear-gradient(145deg,rgba(255,255,255,.045),transparent 50%) !important;
  outline:0 !important;
  transform:translateY(-1px) !important;
  box-shadow:
    inset 0 0 0 2px var(--rc),
    inset 0 0 30px color-mix(in srgb,var(--rc) 17%,transparent),
    0 11px 24px color-mix(in srgb,var(--rc) 25%,rgba(8,10,20,.32)) !important;
}
#view-upgrade .skin.sel::before { opacity:1 !important; }
#view-upgrade .skin.sel::after { left:13% !important;right:13% !important;height:6px !important; }

/* Latest-drop ribbon: compact horizontal version of the exact same card. */
.ticker { gap:8px !important; }
.drop-card,
.ticker .drop-card {
  flex:0 0 168px !important;
  width:168px !important;
  min-width:168px !important;
  max-width:168px !important;
  height:80px !important;
  border:0 !important;
  border-radius:12px !important;
  background-color:#383b5a !important;
  background-image:linear-gradient(145deg,rgba(159,143,248,.07),transparent 54%) !important;
  box-shadow:none !important;
  transform:none !important;
}
.drop-card::before,
.ticker .drop-card::before {
  content:"" !important;
  position:absolute !important;
  z-index:0 !important;
  inset:0 !important;
  display:block !important;
  width:auto !important;
  height:auto !important;
  border:0 !important;
  border-radius:inherit !important;
  background:radial-gradient(ellipse 88% 120% at 26% 112%,color-mix(in srgb,var(--rc) 64%,transparent),color-mix(in srgb,var(--rc) 22%,transparent) 48%,transparent 76%) !important;
  opacity:.9 !important;
}
.drop-card::after,
.ticker .drop-card::after {
  content:"" !important;
  position:absolute !important;
  z-index:8 !important;
  left:14px !important;
  right:14px !important;
  bottom:0 !important;
  display:block !important;
  width:auto !important;
  height:4px !important;
  border-radius:5px 5px 0 0 !important;
  background:var(--rc) !important;
}
.drop-card .drop-box {
  position:relative !important;
  z-index:2 !important;
  width:100% !important;
  height:80px !important;
  padding:7px 10px !important;
  display:grid !important;
  grid-template-columns:66px minmax(0,1fr) !important;
  align-items:center !important;
  gap:9px !important;
  background:transparent !important;
}
.drop-card img {
  width:66px !important;
  height:58px !important;
  filter:drop-shadow(0 8px 10px rgba(8,10,20,.4)) !important;
}
.drop-card .drop-copy {
  position:relative !important;
  z-index:3 !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:2px !important;
  background:transparent !important;
}
.drop-card .drop-copy small {
  width:100% !important;
  color:#b8bdd3 !important;
  font-size:10px !important;
  font-weight:400 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.drop-card .drop-name {
  width:100% !important;
  color:#fff !important;
  font-size:11px !important;
  font-weight:800 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.drop-card .drop-glow { display:none !important; }
.drop-card,
.ticker .drop-card {
  pointer-events: none !important;
  cursor: default !important;
}
.drop-card:hover,
.ticker .drop-card:hover {
  background-color: #383b5a !important;
  background-image: linear-gradient(145deg,rgba(159,143,248,.07),transparent 54%) !important;
  box-shadow: none !important;
  transform: none !important;
}

@media(max-width:1180px){
  #view-upgrade .panel:not(.center) .skins{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #view-upgrade .skin{height:205px!important;min-height:205px!important}
  #view-upgrade .skin .art{top:34px!important;height:108px!important}
  #view-upgrade .skin .art img{height:96px!important}
  #view-upgrade .skin .n{top:153px!important}
  #view-upgrade .skin .s{top:172px!important}
}
@media(max-width:900px){
  #view-upgrade .panel:not(.center) .skins{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important}
}

/* ============================================================
   CASE HEADER REDESIGN + COMPACT UPGRADER RESTORE
   ============================================================ */

/* Restore compact three-column upgrader catalogues. */
#view-upgrade .panel:not(.center) .skins {
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:8px !important;
  padding:2px 4px 8px 2px !important;
}
#view-upgrade .skin {
  height:184px !important;
  min-height:184px !important;
  border-radius:10px !important;
}
#view-upgrade .skin .art,
#view-upgrade .skin:hover .art,
#view-upgrade .skin.sel .art,
#view-upgrade .skin.sel:hover .art {
  top:29px !important;
  left:6px !important;
  right:6px !important;
  height:98px !important;
}
#view-upgrade .skin .art img { height:84px !important;max-height:84px !important; }
#view-upgrade .skin .ghost { font-size:23px !important; }
#view-upgrade .skin .p { top:8px !important;right:9px !important;font-size:10px !important; }
#view-upgrade .skin .n { top:137px !important;left:6px !important;right:6px !important;font-size:10px !important;line-height:15px !important; }
#view-upgrade .skin .s { top:154px !important;left:6px !important;right:6px !important;font-size:11px !important;line-height:16px !important; }
#view-upgrade .skin.sel,#view-upgrade .skin.sel:hover {
  border-radius:10px !important;
  transform:none !important;
  box-shadow:inset 0 0 0 2px var(--rc),inset 0 0 24px color-mix(in srgb,var(--rc) 15%,transparent),0 8px 18px color-mix(in srgb,var(--rc) 20%,rgba(8,10,20,.26)) !important;
}

/* Large case header follows the supplied horizontal reference. */
.casepage-head {
  position:relative !important;
  min-height:276px !important;
  height:276px !important;
  display:grid !important;
  grid-template-columns:300px minmax(0,1fr) !important;
  grid-template-rows:1fr !important;
  gap:26px !important;
  align-items:center !important;
  padding:20px 34px !important;
  margin-bottom:18px !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:16px !important;
  background:
    radial-gradient(ellipse 45% 90% at 68% 100%,rgba(114,101,253,.16),transparent 75%),
    #2e314a !important;
  box-shadow:none !important;
}
.casepage-head::before {
  content:"";
  position:absolute;
  z-index:0;
  inset:auto 0 0;
  height:4px;
  background:linear-gradient(90deg,transparent 8%,var(--wv-violet) 38%,var(--wv-violet) 62%,transparent 92%);
  opacity:.5;
}
.casepage-art,
.casepage-art:has(img.art-hero) {
  position:relative !important;
  z-index:2 !important;
  grid-column:1 !important;
  grid-row:1 !important;
  width:300px !important;
  height:236px !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.casepage-art::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:22% 5% 4%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(159,143,248,.24),transparent 70%);
  filter:blur(16px);
}
.casepage-art img { max-width:96% !important;max-height:210px !important;object-fit:contain !important; }
.casepage-art img.art-hero,
.casepage-art:has(img.art-hero) img.art-hero {
  width:auto !important;
  height:238px !important;
  max-width:none !important;
  max-height:238px !important;
  margin:0 !important;
  filter:drop-shadow(0 16px 22px rgba(8,10,20,.44)) !important;
}
.casepage-info {
  position:relative !important;
  z-index:3 !important;
  grid-column:2 !important;
  grid-row:1 !important;
  align-self:center !important;
  width:100% !important;
  height:auto !important;
  min-height:164px !important;
  padding:0 0 72px !important;
  display:flex !important;
  align-items:center !important;
}
.casepage-info h1 {
  margin:0 !important;
  color:#fff !important;
  font:700 clamp(34px,4vw,52px)/1 Rubik,sans-serif !important;
  letter-spacing:-.025em !important;
  text-transform:none !important;
}
.casepage-head > .cp-actions {
  position:absolute !important;
  z-index:5 !important;
  left:360px !important;
  right:34px !important;
  bottom:50px !important;
  width:auto !important;
  height:58px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:68px !important;
  padding:0 !important;
  transform:none !important;
}
.casepage-head > .cp-actions .qty-group {
  flex:0 0 auto !important;
  width:200px !important;
  height:58px !important;
  margin:0 !important;
  padding:4px !important;
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  border:0 !important;
  border-radius:11px !important;
  background:#26293f !important;
  box-shadow:none !important;
}
.casepage-head > .cp-actions .qty {
  width:auto !important;
  height:50px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:8px !important;
  background:transparent !important;
  color:#aeb3cc !important;
  font-size:15px !important;
  font-weight:700 !important;
}
.casepage-head > .cp-actions .qty.on {
  background:var(--grad-btn) !important;
  color:#fff !important;
  box-shadow:0 7px 17px rgba(114,101,253,.26) !important;
}
.casepage-head > .cp-actions #cpOpen {
  flex:0 0 auto !important;
  width:auto !important;
  min-width:326px !important;
  height:58px !important;
  margin:0 !important;
  padding:0 34px !important;
  border-radius:11px !important;
  font-size:15px !important;
  font-weight:800 !important;
  letter-spacing:.06em !important;
}
.casepage-head > .cp-actions #cpFast {
  flex:0 0 auto !important;
  width:auto !important;
  min-width:182px !important;
  height:58px !important;
  margin:0 !important;
  padding:0 28px !important;
  border-radius:11px !important;
  font-size:15px !important;
  letter-spacing:.06em !important;
}
.casepage-head > .cp-actions #cpResult { height:58px !important;align-items:center !important;gap:12px !important; }
.casepage-head > .cp-actions .cp-opening { height:58px !important;align-items:center !important; }

@media(max-width:1250px){
 .casepage-head>.cp-actions{gap:24px!important}
 .casepage-head>.cp-actions #cpOpen{min-width:260px!important}
 .casepage-head>.cp-actions #cpFast{min-width:150px!important}
}
@media(max-width:900px){
 #view-upgrade .panel:not(.center) .skins{grid-template-columns:repeat(auto-fill,minmax(125px,1fr))!important}
 .casepage-head{height:auto!important;min-height:410px!important;grid-template-columns:220px minmax(0,1fr)!important;padding:20px!important}
 .casepage-art,.casepage-art:has(img.art-hero){width:220px!important}
 .casepage-head>.cp-actions{left:20px!important;right:20px!important;bottom:22px!important;gap:12px!important;justify-content:center!important}
 .casepage-head>.cp-actions .qty-group{width:170px!important}
 .casepage-head>.cp-actions #cpOpen{min-width:220px!important}
}
@media(max-width:650px){
 .casepage-head{display:flex!important;flex-direction:column!important;min-height:560px!important;padding:18px!important;text-align:center!important}
 .casepage-info{padding:0!important;min-height:auto!important;justify-content:center!important}
 .casepage-head>.cp-actions{height:auto!important;display:grid!important;grid-template-columns:1fr!important;bottom:18px!important}
 .casepage-head>.cp-actions .qty-group,.casepage-head>.cp-actions #cpOpen,.casepage-head>.cp-actions #cpFast{width:100%!important;min-width:0!important}
}

/* ============================================================
   UPGRADER BALANCE + DUEL SUMMARY FINAL REDESIGN
   ============================================================ */

/* Balance control belongs to the inventory panel, not its own card. */
#view-upgrade .panel:first-child .balance-slider-panel {
  margin:auto 0 0 !important;
  padding:18px 4px 2px !important;
  min-height:72px !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
#view-upgrade .panel:first-child .gold-add {
  width:100% !important;
  min-height:52px !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-rows:auto 18px !important;
  grid-template-areas:
    "title value"
    "slider slider" !important;
  align-items:center !important;
  column-gap:12px !important;
  row-gap:8px !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  opacity:1 !important;
  filter:none !important;
}
#view-upgrade .panel:first-child .gold-slider-head {
  grid-area:title !important;
  margin:0 !important;
  justify-content:flex-start !important;
}
#view-upgrade .panel:first-child .gold-slider-head > span {
  color:#b9bed3 !important;
  font-size:11px !important;
  line-height:16px !important;
  font-weight:600 !important;
  letter-spacing:0 !important;
}
#view-upgrade .panel:first-child .gold-range-values {
  grid-area:value !important;
  margin:0 !important;
  justify-content:flex-end !important;
}
#view-upgrade .panel:first-child .gold-range-values output {
  min-width:0 !important;
  color:var(--gold) !important;
  font-size:12px !important;
  line-height:16px !important;
  font-weight:800 !important;
}
#view-upgrade .panel:first-child .gold-range {
  grid-area:slider !important;
  width:100% !important;
  min-height:18px !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
#view-upgrade .panel:first-child .gold-range > span { display:none !important; }
#view-upgrade .panel:first-child .gold-range input[type="range"] {
  width:100% !important;
  height:6px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:99px !important;
  background:linear-gradient(90deg,var(--wv-violet) 0 var(--gold-fill),#454966 var(--gold-fill) 100%) !important;
  box-shadow:none !important;
}
#view-upgrade .panel:first-child .gold-range input[type="range"]::-webkit-slider-runnable-track {
  height:6px !important;
  border:0 !important;
  border-radius:99px !important;
  background:transparent !important;
}
#view-upgrade .panel:first-child .gold-range input[type="range"]::-webkit-slider-thumb {
  width:16px !important;
  height:16px !important;
  margin-top:-5px !important;
  border:3px solid #dcd7ff !important;
  border-radius:50% !important;
  background:var(--wv-violet) !important;
  box-shadow:0 0 0 4px rgba(159,143,248,.13) !important;
}
#view-upgrade .panel:first-child .gold-add.is-disabled {
  opacity:.56 !important;
  filter:none !important;
}

/* Middle deposit/target cards use the same one-surface card language. */
#view-upgrade .duel-summary {
  width: 100% !important;
  height: 126px !important;
  min-height: 126px !important;
  max-height: 126px !important;
  margin: 6px 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: transparent !important;
  border: 0 !important;
  box-sizing: border-box !important;
}
#view-upgrade .duel-kicker {
  display: none !important;
}
#view-upgrade .duel-slot {
  position: relative !important;
  width: 100% !important;
  height: 126px !important;
  min-height: 126px !important;
  max-height: 126px !important;
  padding: 8px 10px 8px !important;
  overflow: hidden !important;
  border: 0.8px solid #42476d !important;
  border-radius: 12px !important;
  background-color: #383b5a !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
#view-upgrade .duel-slot::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--slot-rarity, #9f8ff8) 26%, transparent), transparent 70%) !important;
  opacity: 0.9 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
#view-upgrade .duel-slot::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 3px !important;
  border-radius: 0 0 12px 12px !important;
  background: var(--slot-rarity, #9f8ff8) !important;
  box-shadow: 0 0 10px var(--slot-rarity, #9f8ff8) !important;
  pointer-events: none !important;
  z-index: 5 !important;
}
#view-upgrade .duel-slot.has-value {
  border-color: rgba(159, 143, 248, 0.35) !important;
}
#view-upgrade .duel-item {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 2px !important;
  box-sizing: border-box !important;
}
#view-upgrade .duel-slot:not(.has-value) .duel-item {
  justify-content: space-between !important;
  padding: 10px 4px 10px !important;
}
#view-upgrade .duel-art {
  position: relative !important;
  width: 100% !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 auto !important;
}
#view-upgrade .duel-art-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #c2c7e4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  cursor: pointer !important;
  z-index: 10 !important;
  transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, transform 0.12s ease !important;
  outline: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
#view-upgrade .duel-art-nav:hover:not(:disabled):not(.is-disabled) {
  background: rgba(159, 143, 248, 0.28) !important;
  border-color: rgba(159, 143, 248, 0.5) !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.08) !important;
}
#view-upgrade .duel-art-nav:active:not(:disabled):not(.is-disabled) {
  transform: translateY(-50%) scale(0.94) !important;
}
#view-upgrade .duel-art-nav svg {
  width: 13px !important;
  height: 13px !important;
  stroke: currentColor !important;
  pointer-events: none !important;
}
#view-upgrade .duel-art-prev {
  left: 4px !important;
}
#view-upgrade .duel-art-next {
  right: 4px !important;
}
#view-upgrade .duel-art-nav:disabled,
#view-upgrade .duel-art-nav.is-disabled {
  opacity: 0.22 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #5a5f78 !important;
}
#view-upgrade .duel-art-nav[hidden] {
  display: none !important;
}
#view-upgrade .duel-art img[hidden],
#view-upgrade .duel-slot:not(.has-value) .duel-art img {
  display: none !important;
}
#view-upgrade .duel-slot.has-value .duel-art img {
  max-width: 90% !important;
  max-height: 52px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6)) !important;
  display: block !important;
  margin: 0 auto !important;
}
#view-upgrade .duel-slot.has-value .duel-art span {
  display: none !important;
}
#view-upgrade .duel-slot:not(.has-value) .duel-art span {
  width: 50px !important;
  height: 50px !important;
  border-radius: 12px !important;
  background: rgba(159, 143, 248, 0.12) !important;
  border: 1.2px solid rgba(159, 143, 248, 0.24) !important;
  color: #9f8ff8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 14px rgba(126, 105, 239, 0.15) !important;
  margin: 0 auto !important;
  padding-top: 3px !important;
}
#view-upgrade .duel-copy {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 1px !important;
}
#view-upgrade .duel-copy b {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-weight: normal !important;
}
#view-upgrade .duel-gun-type {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #8c93b4 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 95% !important;
  margin: 0 auto !important;
}
#view-upgrade .duel-skin-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 95% !important;
  margin: 0 auto !important;
}
#view-upgrade .duel-slot:not(.has-value) .duel-copy {
  margin-top: auto !important;
  margin-bottom: 2px !important;
}
#view-upgrade .duel-slot:not(.has-value) .duel-art {
  margin-top: 2px !important;
}
#view-upgrade .duel-placeholder {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #8c93b4 !important;
  line-height: 1.3 !important;
  text-align: center !important;
  margin: 0 auto !important;
}
#view-upgrade .duel-copy small {
  display: block !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffd15c !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 2px auto 0 !important;
  text-align: center !important;
  width: auto !important;
}
#view-upgrade .duel-slot:not(.has-value) .duel-copy small {
  display: none !important;
}
#view-upgrade .duel-arrow {
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  justify-self: center !important;
  margin: auto !important;
  color: #9f8ff8 !important;
}
#view-upgrade .duel-arrow i { display:none !important; }
#view-upgrade .duel-arrow span {
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 50% !important;
  background: rgba(159,143,248,.12) !important;
  border: 1px solid rgba(159,143,248,.28) !important;
  color: #9f8ff8 !important;
  box-shadow: 0 4px 14px rgba(126, 105, 239, 0.16) !important;
}
#view-upgrade .duel-arrow svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  stroke: #9f8ff8 !important;
}

@media(max-width:620px){
  #view-upgrade .duel-summary{grid-template-columns:1fr!important;gap:7px!important}
  #view-upgrade .duel-arrow{width:100%!important;height:28px!important;transform:none!important}
  #view-upgrade .duel-arrow span{width:30px!important;height:30px!important;transform:rotate(90deg)!important}
}

/* 2026-09-28: stake arrows (2+ items) match the upgrade-history arrows — a small dark disc with a white chevron
   on the card edges, centred on the skin; larger invisible hit area on touch screens. Loaded rules below win over
   responsive.css (same selectors, later + !important). */
html body #view-upgrade .duel-slot .duel-art-nav {
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(22, 24, 42, .78) 0 13.5px, transparent 14.5px) !important;
  box-shadow: none !important;
  color: #eef0fb !important;
  opacity: 1 !important;
  display: grid !important; place-items: center !important;
  transition: background .15s ease, opacity .15s ease !important;
}
html body #view-upgrade .duel-slot .duel-art-nav svg { width: 14px !important; height: 14px !important; stroke-width: 3 !important; }
html body #view-upgrade .duel-slot .duel-art-prev { left: -6px !important; right: auto !important; }
html body #view-upgrade .duel-slot .duel-art-next { right: -6px !important; left: auto !important; }
html body #view-upgrade .duel-slot .duel-art-nav:hover:not(:disabled):not(.is-disabled) {
  background: radial-gradient(circle, rgba(106, 86, 200, .92) 0 13.5px, transparent 14.5px) !important;
  transform: translateY(-50%) !important;
}
html body #view-upgrade .duel-slot .duel-art-nav:active:not(:disabled):not(.is-disabled) { transform: translateY(-50%) !important; }
/* At the first/last item the arrow stays in place but faded, so the pair always reads as a pager. */
html body #view-upgrade .duel-slot .duel-art-nav:disabled,
html body #view-upgrade .duel-slot .duel-art-nav.is-disabled {
  opacity: .35 !important;
  background: radial-gradient(circle, rgba(22, 24, 42, .6) 0 13.5px, transparent 14.5px) !important;
  color: #aab0cc !important;
  border: 0 !important;
}
html body #view-upgrade .duel-slot .duel-art-nav[hidden] { display: none !important; }
@media (max-width: 760px), (pointer: coarse) {
  html body #view-upgrade .duel-slot .duel-art-nav { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; }
  html body #view-upgrade .duel-slot .duel-art-prev { left: -10px !important; }
  html body #view-upgrade .duel-slot .duel-art-next { right: -10px !important; }
}

/* ============================================================
   CASE PAGE V2 — title bar, idle case stage, tall reel, controls below
   ============================================================ */
#view-casepage { max-width:none; }
.casepage-topline {
  min-height:52px;
  display:grid;
  grid-template-columns:52px minmax(0,1fr) 52px;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}
.casepage-topline h1 {
  height:52px !important;
  min-height:52px !important;
  max-height:52px !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  box-sizing:border-box !important;
  align-self:center !important;
  color:#fff;
  font:500 clamp(20px,2.5vw,36px)/1 Rubik,sans-serif;
  letter-spacing:-.025em;
}
.casepage-topline .back-btn,
.casepage-fav {
  width:52px !important;
  height:52px !important;
  min-width:52px !important;
  max-width:52px !important;
  min-height:52px !important;
  max-height:52px !important;
  margin:0 !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
  align-self:center !important;
  border:0 !important;
  border-radius:11px !important;
  background:#2e314a !important;
  color:#aeb3ca !important;
  box-shadow:none !important;
}
.casepage-topline .back-btn svg,.casepage-fav svg { width:22px;height:22px; }
.casepage-topline .back-btn:hover,.casepage-fav:hover { color:#fff !important;background:#383b5a !important; }
.casepage-fav { justify-self:end; }
.casepage-fav.on { color:#ff6f9f !important;background:rgba(255,92,174,.13) !important; }
.casepage-fav.on path { fill:currentColor; }

.casepage-stage {
  position:relative;
  min-height:330px;
  margin-bottom:14px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:0;
  border-radius:14px;
  background:
    radial-gradient(ellipse 38% 70% at 50% 80%,rgba(159,143,248,.18),transparent 72%),
    #2e314a;
}
.casepage-stage .casepage-art,
.casepage-stage .casepage-art:has(img.art-hero) {
  position:relative !important;
  inset:auto !important;
  width:min(430px,44vw) !important;
  height:300px !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
.casepage-stage .casepage-art img { max-width:96% !important;max-height:280px !important; }
.casepage-stage .casepage-art img.art-hero,
.casepage-stage .casepage-art:has(img.art-hero) img.art-hero { height:300px !important;max-height:300px !important;margin:0 !important; }

/* Idle: one case. Opening/result: reel replaces it. */
#view-casepage .spinner-stack { display:none !important; }
#view-casepage.is-opening .casepage-art,
#view-casepage.has-result .casepage-art { display:none !important; }
#view-casepage.is-opening .spinner-stack,
#view-casepage.has-result .spinner-stack {
  position:absolute !important;
  inset:0 !important;
  z-index:4;
  width:100% !important;
  height:100% !important;
  padding:0 !important;
  display:grid !important;
  align-content:center;
  gap:8px !important;
  background:transparent !important;
}
.casepage-stage .spinner-frame {
  width:100% !important;
  height:270px !important;
  padding:19px 0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.casepage-stage .spinner-item {
  height:232px !important;
  flex-basis:205px !important;
  width:205px !important;
}
.casepage-stage .spinner-item img {
  top:34px !important;
  left:12px !important;
  right:12px !important;
  width:calc(100% - 24px) !important;
  height:125px !important;
}
.casepage-stage .spinner-item b.wn { top:173px !important;font-size:12px !important; }
.casepage-stage .spinner-item b.sn { top:194px !important;font-size:13px !important; }
.casepage-stage .spinner-marker { top:0 !important;bottom:0 !important; }

.casepage-controls {
  min-height:80px;
  margin-bottom:20px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.casepage-controls .cp-actions {
  position:static !important;
  width:auto !important;
  height:58px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:34px !important;
  padding:0 !important;
  transform:none !important;
}
.casepage-controls .qty-group {
  width:310px !important;
  height:58px !important;
  padding:4px !important;
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  border:0 !important;
  border-radius:11px !important;
  background:#292c43 !important;
}
.casepage-controls .qty {
  width:auto !important;height:50px !important;padding:0 !important;
  border:0 !important;border-radius:8px !important;background:transparent !important;
  color:#9fa4be !important;font-size:14px !important;font-weight:700 !important;
}
.casepage-controls .qty.on { background:#383b5a !important;color:#fff !important;box-shadow:inset 0 -3px 0 var(--wv-violet) !important; }
.casepage-controls #cpOpen {
  width:auto !important;min-width:324px !important;height:58px !important;margin:0 !important;padding:0 32px !important;
  border-radius:11px !important;font-size:14px !important;font-weight:800 !important;
}
.casepage-controls #cpFast {
  width:auto !important;min-width:178px !important;height:58px !important;margin:0 !important;padding:0 27px !important;
  border-radius:11px !important;font-size:14px !important;
}
.casepage-controls .cp-opening { height:58px !important; }
.casepage-controls #cpResult { height:58px !important;align-items:center !important;gap:12px !important; }

/* Retire old header structure completely. */
.casepage-head,.casepage-info { display:none !important; }

@media(max-width:900px){
 .casepage-stage{min-height:300px}
 .casepage-controls .cp-actions{gap:12px!important}
 .casepage-controls .qty-group{width:210px!important}
 .casepage-controls #cpOpen{min-width:230px!important}
 .casepage-controls #cpFast{min-width:140px!important}
}
@media(max-width:650px){
 .casepage-topline{grid-template-columns:44px minmax(0,1fr) 44px;min-height:44px!important}
 .casepage-topline .back-btn,.casepage-fav{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important}
 .casepage-topline h1{height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;display:flex!important;align-items:center!important}
 .casepage-stage{min-height:270px}
 .casepage-stage .casepage-art,.casepage-stage .casepage-art:has(img.art-hero){width:94%!important;height:250px!important}
 .casepage-controls{min-height:auto!important}
 .casepage-controls .cp-actions{width:100%!important;height:auto!important;display:grid!important;grid-template-columns:var(--cp-side-btn-w, 92px) minmax(0, 1fr) var(--cp-side-btn-w, 92px)!important}
 .casepage-controls .qty-group,.casepage-controls #cpOpen,.casepage-controls #cpFast{width:100%!important;min-width:0!important}
 .casepage-stage .spinner-frame{height:230px!important;padding:14px 0!important}
 .casepage-stage .spinner-item{height:202px!important;flex-basis:165px!important;width:165px!important}
}

/* ============================================================
   CASE OPENING STATES + BORDERLESS ROULETTE + 4-UP CASE GRID
   ============================================================ */

/* Exactly four large cases on desktop with compact, tight spacing. */
#view-cases .case-section {
  padding: 8px 12px 29px !important;
  margin-bottom: 12px !important;
}
#view-cases .cs-head {
  margin-bottom: 6px !important;
}
#view-cases .case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  column-gap: 10px !important;
  row-gap: 8px !important;
}
#view-cases .gcard,
#view-cases .gcard.bare {
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 0 !important;
}
#view-cases .gcard-art,
#view-cases .gcard.bare .gcard-art {
  height: 380px !important;
  min-height: 380px !important;
  padding: 4px !important;
}
#view-cases .gcard-art > img,
#view-cases .gcard-art > img.art-hero {
  max-height: 370px !important;
}
#view-cases .gcard.bare .gcard-art > img.art-hero {
  height: 370px !important;
  max-height: 370px !important;
  width: auto !important;
  max-width: 100% !important;
}
#view-cases .gcard-price,
#view-cases .gcard.bare .gcard-price {
  bottom: 8px !important;
}
#view-cases .gcard-name,
#view-cases .gcard.bare .gcard-name {
  min-height: 0 !important;
  padding: 6px 4px 2px !important;
  font-size: 16px !important;
}

/* Idle stage remains the case-image panel. During spin, remove the panel entirely. */
#view-casepage.is-opening .casepage-stage,
#view-casepage.has-result .casepage-stage {
  min-height:232px !important;
  height:232px !important;
  overflow:hidden !important;
  border-radius:12px !important;
  background:transparent !important;
}
#view-casepage.is-opening .spinner-stack,
#view-casepage.has-result .spinner-stack {
  overflow:hidden !important;
  border:0 !important;
  border-radius:12px !important;
  background:transparent !important;
  box-shadow:none !important;
  height:232px !important;
}
.casepage-stage .spinner-frame {
  height:232px !important;
  min-height:232px !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:12px !important;
  background:transparent !important;
}
/* Reel edges are clipped exactly to item-card height/radius; no outer card surface. */
.casepage-stage .spinner {
  height:232px !important;
  margin:0 !important;
  align-items:stretch !important;
  gap:8px !important;
}
.casepage-stage .spinner-item {
  height:232px !important;
  border-radius:12px !important;
}
.casepage-stage .spinner-marker {
  top:0 !important;
  bottom:0 !important;
  height:232px !important;
}

/* Winner keeps the exact same dimensions as every reel card. */
#view-casepage .spinner.revealed .spinner-item.is-win {
  width:205px !important;
  height:232px !important;
  transform:none !important;
  border-radius:12px !important;
  box-shadow:inset 0 0 24px color-mix(in srgb,var(--rc) 18%,transparent) !important;
}

/* All control states are truly centered. */
.casepage-controls { position:relative; }
.casepage-controls .cp-actions {
  width:100% !important;
  justify-content:center !important;
}
#view-casepage.is-opening .casepage-controls .cp-actions,
#view-casepage.has-result .casepage-controls .cp-actions {
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
}
#view-casepage.is-opening .qty-group,
#view-casepage.is-opening #cpOpen,
#view-casepage.is-opening #cpFast,
#view-casepage.is-opening #cpResult,
#view-casepage.has-result .qty-group,
#view-casepage.has-result #cpOpen,
#view-casepage.has-result #cpFast,
#view-casepage.has-result .cp-opening {
  display:none !important;
}
#view-casepage.is-opening .cp-opening {
  width:240px !important;
  height:58px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:11px !important;
  margin:0 auto !important;
  border:0 !important;
  border-radius:11px !important;
  background:#383b5a !important;
  color:#fff !important;
  font-family:Rubik,sans-serif !important;
  font-size:13px !important;
  font-weight:700 !important;
  letter-spacing:.06em !important;
  box-shadow:none !important;
}
#view-casepage.is-opening .cp-opening .spin-dot {
  width:18px !important;
  height:18px !important;
  border:2px solid rgba(255,255,255,.24) !important;
  border-top-color:var(--wv-violet) !important;
}
#view-casepage.has-result #cpResult {
  width:min(500px,100%) !important;
  max-width:500px !important;
  height:58px !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  justify-content:center !important;
  align-items:center !important;
  gap:14px !important;
  margin:0 auto !important;
}
#view-casepage.has-result #cpResult .btn {
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:58px !important;
  min-height:58px !important;
  padding:0 16px !important;
  box-sizing:border-box !important;
  border:0 !important;
  border-radius:11px !important;
  color:#fff !important;
  font-family:Rubik,sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
  letter-spacing:.045em !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}
/* Welvura result actions. */
#view-casepage.has-result #cpSell {
  background:linear-gradient(135deg,#a34ef4,#7265fd) !important;
  box-shadow:0 9px 22px rgba(114,101,253,.30) !important;
}
#view-casepage.has-result #cpAgain {
  background:#e23a3d !important;
  color:#fff !important;
  box-shadow:none !important;
}
#view-casepage.has-result #cpSell:is(:hover,:active),
#view-casepage.has-result #cpAgain:is(:hover,:active) {
  transform:none !important;
  box-shadow:none !important;
  filter:none !important;
}

@media(max-width:1200px){
  #view-cases .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 10px !important;
    row-gap: 8px !important;
  }
  #view-cases .gcard, #view-cases .gcard.bare { height: auto !important; min-height: 0 !important; }
  #view-cases .gcard-art, #view-cases .gcard.bare .gcard-art { height: 340px !important; min-height: 340px !important; }
  #view-cases .gcard-art > img, #view-cases .gcard-art > img.art-hero { max-height: 330px !important; }
  #view-cases .gcard.bare .gcard-art > img.art-hero { height: 330px !important; max-height: 330px !important; }
}
@media(max-width:800px){
  #view-cases .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
  }
  #view-cases .gcard, #view-cases .gcard.bare { height: auto !important; min-height: 0 !important; }
  #view-cases .gcard-art, #view-cases .gcard.bare .gcard-art { height: 290px !important; min-height: 290px !important; }
  #view-cases .gcard-art > img, #view-cases .gcard-art > img.art-hero { max-height: 280px !important; }
  #view-cases .gcard.bare .gcard-art > img.art-hero { height: 280px !important; max-height: 280px !important; }
}
@media(max-width:520px){
  #view-cases .case-grid {
    grid-template-columns: 1fr !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
  }
  #view-cases .gcard, #view-cases .gcard.bare { height: auto !important; min-height: 0 !important; }
  #view-cases .gcard-art, #view-cases .gcard.bare .gcard-art { height: 310px !important; min-height: 310px !important; }
  #view-cases .gcard-art > img, #view-cases .gcard-art > img.art-hero { max-height: 300px !important; }
  #view-cases .gcard.bare .gcard-art > img.art-hero { height: 300px !important; max-height: 300px !important; }
  #view-casepage.has-result #cpResult { grid-template-columns: 1fr !important; height: auto !important; }
  .casepage-controls { min-height: 150px !important; }
}

/* ============================================================
   TRUE SHARED CASE / ROULETTE STAGE
   Idle, opening and result are exactly one reel-card height.
   ============================================================ */
:root { --cp-stage-h:232px; }

#view-casepage .casepage-stage,
#view-casepage.is-opening .casepage-stage,
#view-casepage.has-result .casepage-stage {
  width:100% !important;
  height:var(--cp-stage-h) !important;
  min-height:var(--cp-stage-h) !important;
  max-height:var(--cp-stage-h) !important;
  margin:0 0 14px !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:12px !important;
  box-sizing:border-box !important;
}
/* The shared stage panel exists while idle for the case artwork. */
#view-casepage:not(.is-opening):not(.has-result) .casepage-stage {
  background:
    radial-gradient(ellipse 36% 80% at 50% 95%,rgba(159,143,248,.19),transparent 72%),
    #2e314a !important;
}
/* During roulette, card surfaces themselves are the only background. */
#view-casepage.is-opening .casepage-stage,
#view-casepage.has-result .casepage-stage { background:transparent !important; }

#view-casepage .casepage-stage .casepage-art,
#view-casepage .casepage-stage .casepage-art:has(img.art-hero) {
  width:min(360px,42vw) !important;
  height:var(--cp-stage-h) !important;
  min-height:var(--cp-stage-h) !important;
  max-height:var(--cp-stage-h) !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
#view-casepage .casepage-stage .casepage-art img {
  max-width:96% !important;
  max-height:216px !important;
  object-fit:contain !important;
}
#view-casepage .casepage-stage .casepage-art img.art-hero,
#view-casepage .casepage-stage .casepage-art:has(img.art-hero) img.art-hero {
  width:auto !important;
  height:224px !important;
  max-height:224px !important;
  margin:0 !important;
}

#view-casepage.is-opening .spinner-stack,
#view-casepage.has-result .spinner-stack,
#view-casepage .casepage-stage .spinner-frame,
#view-casepage .casepage-stage .spinner,
#view-casepage .casepage-stage .spinner-item {
  height:var(--cp-stage-h) !important;
  min-height:var(--cp-stage-h) !important;
  max-height:var(--cp-stage-h) !important;
  margin:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  box-sizing:border-box !important;
}
#view-casepage.is-opening .spinner-stack,
#view-casepage.has-result .spinner-stack {
  inset:0 !important;
  width:100% !important;
  overflow:hidden !important;
  border-radius:12px !important;
}
#view-casepage .casepage-stage .spinner-frame {
  width:100% !important;
  overflow:hidden !important;
  border-radius:12px !important;
}
#view-casepage .casepage-stage .spinner {
  width:max-content !important;
  align-items:stretch !important;
}
#view-casepage .casepage-stage .spinner-marker {
  top:0 !important;
  bottom:0 !important;
  height:var(--cp-stage-h) !important;
}

/* Center the control group on the same vertical marker axis. */
#view-casepage .casepage-controls {
  width:100% !important;
  min-height:80px !important;
  display:grid !important;
  place-items:center !important;
}
#view-casepage .casepage-controls .cp-actions {
  position:relative !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  justify-self:center !important;
  margin:0 auto !important;
}

@media(max-width:650px){
 :root{--cp-stage-h:202px}
 #view-casepage .casepage-stage .casepage-art img{max-height:190px!important}
 #view-casepage .casepage-stage .casepage-art img.art-hero{height:198px!important;max-height:198px!important}
}

/* ============================================================
   CASE CONTROLS — STRUCTURAL CENTER + WELVURA MATERIAL
   ============================================================ */

/* Variables for symmetric controls sizing */
:root {
  --cp-side-btn-w: 160px;
  --cp-ctrl-h: 52px;
}

#view-casepage .casepage-controls {
  width: 100% !important;
  height: auto !important;
  min-height: var(--cp-ctrl-h) !important;
  max-height: none !important;
  padding: 0 !important;
  margin: var(--page-gap, 23px) 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
#view-casepage:not(.is-opening):not(.has-result) .casepage-controls .cp-actions {
  position:static !important;
  width:100% !important;
  height:var(--cp-ctrl-h) !important;
  margin:0 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;
  align-items:center !important;
  gap:14px !important;
  flex-wrap:nowrap !important;
  box-sizing:border-box !important;
}

/* Equal size for both left amount selector and right quick button */
#view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpQty,
#view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpFast {
  width:var(--cp-side-btn-w) !important;
  min-width:var(--cp-side-btn-w) !important;
  max-width:var(--cp-side-btn-w) !important;
  height:var(--cp-ctrl-h) !important;
  min-height:var(--cp-ctrl-h) !important;
  max-height:var(--cp-ctrl-h) !important;
  box-sizing:border-box !important;
  border:0 !important;
  border-radius:12px !important;
}

#view-casepage:not(.is-opening):not(.has-result) #cpQty {
  grid-column:1 !important;
  justify-self:end !important;
  padding:4px !important;
  margin:0 !important;
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:3px !important;
  background:#30334d !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025) !important;
}
#view-casepage:not(.is-opening):not(.has-result) #cpQty .qty {
  height:100% !important;
  min-height:0 !important;
  width:100% !important;
  min-width:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:9px !important;
  background:transparent !important;
  color:#949ab9 !important;
  font:700 13px/1 Rubik,sans-serif !important;
  letter-spacing:.01em !important;
  box-shadow:none !important;
  transition:background-color .18s ease,color .18s ease,box-shadow .18s ease !important;
}
#view-casepage:not(.is-opening):not(.has-result) #cpQty .qty:hover {
  background:rgba(159,143,248,.09) !important;
  color:#d9d5ff !important;
}
#view-casepage:not(.is-opening):not(.has-result) #cpQty .qty.on {
  background:#454967 !important;
  color:#fff !important;
  box-shadow:inset 0 -3px 0 #9f8ff8,0 5px 12px rgba(10,12,25,.18) !important;
}

#view-casepage:not(.is-opening):not(.has-result) #cpOpen {
  grid-column:2 !important;
  justify-self:center !important;
  width:auto !important;
  min-width:240px !important;
  max-width:320px !important;
  height:var(--cp-ctrl-h) !important;
  min-height:var(--cp-ctrl-h) !important;
  max-height:var(--cp-ctrl-h) !important;
  margin:0 !important;
  padding:0 28px !important;
  border:0 !important;
  border-radius:12px !important;
  background:linear-gradient(135deg,#a293f8 0%,#806de9 100%) !important;
  color:#fff !important;
  font:800 13px/1 Rubik,sans-serif !important;
  letter-spacing:.055em !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  box-shadow:0 10px 24px rgba(114,101,253,.25),inset 0 1px 0 rgba(255,255,255,.17) !important;
  transform:none !important;
  transition:filter .18s ease,transform .18s ease,box-shadow .18s ease !important;
  box-sizing:border-box !important;
}
#view-casepage:not(.is-opening):not(.has-result) #cpOpen:hover {
  filter:brightness(1.065) saturate(1.04) !important;
  transform:translateY(-1px) !important;
  box-shadow:0 13px 28px rgba(114,101,253,.32),inset 0 1px 0 rgba(255,255,255,.2) !important;
}
#view-casepage:not(.is-opening):not(.has-result) #cpOpen:active { transform:translateY(0) !important; }

#view-casepage:not(.is-opening):not(.has-result) #cpFast {
  grid-column:3 !important;
  justify-self:start !important;
  margin:0 !important;
  padding:0 16px !important;
  gap:8px !important;
  border:0 !important;
  border-radius:12px !important;
  background:#efbd55 !important;
  color:#272333 !important;
  font:800 12px/1 Rubik,sans-serif !important;
  letter-spacing:.07em !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-shadow:0 10px 22px rgba(239,189,85,.17),inset 0 1px 0 rgba(255,255,255,.24) !important;
  transform:none !important;
  transition:filter .18s ease,transform .18s ease,box-shadow .18s ease !important;
}
#view-casepage:not(.is-opening):not(.has-result) #cpFast svg { width:16px !important;height:16px !important; }
#view-casepage:not(.is-opening):not(.has-result) #cpFast:hover {
  filter:brightness(1.055) !important;
  transform:translateY(-1px) !important;
  box-shadow:0 13px 25px rgba(239,189,85,.23),inset 0 1px 0 rgba(255,255,255,.28) !important;
}

/* The reel must fully replace the case image. This selector is later and
   more specific than the shared idle-stage flex rule. */
#view-casepage.is-opening .casepage-stage > .casepage-art,
#view-casepage.has-result .casepage-stage > .casepage-art,
#view-casepage.is-opening .casepage-stage > #cpArt,
#view-casepage.has-result .casepage-stage > #cpArt {
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}
#view-casepage.is-opening .casepage-stage > .spinner-stack,
#view-casepage.has-result .casepage-stage > .spinner-stack {
  z-index:10 !important;
}

/* State-only controls also sit precisely on the marker axis. */
#view-casepage.is-opening .casepage-controls,
#view-casepage.has-result .casepage-controls {
  width: 100% !important;
  height: auto !important;
  min-height: var(--cp-ctrl-h) !important;
  max-height: none !important;
  padding: 0 !important;
  margin: var(--page-gap, 23px) 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

#view-casepage.is-opening .casepage-controls .cp-actions,
#view-casepage.has-result .casepage-controls .cp-actions {
  position: static !important;
  width: 100% !important;
  height: var(--cp-ctrl-h) !important;
  min-height: var(--cp-ctrl-h) !important;
  max-height: var(--cp-ctrl-h) !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

#view-casepage.is-opening .cp-opening {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--cp-ctrl-h) !important;
  min-height: var(--cp-ctrl-h) !important;
  max-height: var(--cp-ctrl-h) !important;
  width: auto !important;
  min-width: 240px !important;
  margin: 0 auto !important;
  padding: 0 28px !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}

#view-casepage.has-result #cpResult {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  width: min(100%, 460px) !important;
  max-width: 460px !important;
  height: var(--cp-ctrl-h) !important;
  min-height: var(--cp-ctrl-h) !important;
  max-height: var(--cp-ctrl-h) !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

#view-casepage.has-result #cpResult .btn,
#view-casepage.has-result #cpResult #cpSell,
#view-casepage.has-result #cpResult #cpAgain {
  height: var(--cp-ctrl-h) !important;
  min-height: var(--cp-ctrl-h) !important;
  max-height: var(--cp-ctrl-h) !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  font-size: 13px !important;
}

@media (max-width: 900px) {
  :root {
    --cp-side-btn-w: 140px;
    --cp-ctrl-h: 50px;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls .cp-actions {
    gap: 12px !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) #cpOpen {
    min-width: 220px !important;
    max-width: 280px !important;
    padding: 0 20px !important;
  }
}

@media (max-width: 600px) {
  :root {
    --cp-side-btn-w: 92px;
    --cp-ctrl-h: 44px;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls .cp-actions {
    grid-template-columns: var(--cp-side-btn-w, 92px) minmax(0, 1fr) var(--cp-side-btn-w, 92px) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpQty,
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpFast {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: var(--cp-ctrl-h, 44px) !important;
    min-height: var(--cp-ctrl-h, 44px) !important;
    max-height: var(--cp-ctrl-h, 44px) !important;
    justify-self: stretch !important;
    border-radius: 10px !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpOpen {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: var(--cp-ctrl-h, 44px) !important;
    min-height: var(--cp-ctrl-h, 44px) !important;
    max-height: var(--cp-ctrl-h, 44px) !important;
    justify-self: stretch !important;
    border-radius: 10px !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpQty {
    padding: 2px !important;
    gap: 2px !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) #cpQty .qty {
    font-size: 11px !important;
    border-radius: 7px !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpFast {
    padding: 0 4px !important;
    font-size: 10.5px !important;
    letter-spacing: .03em !important;
    gap: 4px !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpOpen {
    padding: 0 10px !important;
    font-size: 11.5px !important;
    letter-spacing: .02em !important;
    gap: 6px !important;
  }
  #view-casepage.is-opening .cp-opening {
    min-width: 0 !important;
    height: var(--cp-ctrl-h, 44px) !important;
    min-height: var(--cp-ctrl-h, 44px) !important;
    max-height: var(--cp-ctrl-h, 44px) !important;
    padding: 0 16px !important;
    font-size: 11.5px !important;
    border-radius: 10px !important;
  }
  #view-casepage.has-result #cpResult {
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: var(--cp-ctrl-h, 44px) !important;
    min-height: var(--cp-ctrl-h, 44px) !important;
    max-height: var(--cp-ctrl-h, 44px) !important;
  }
  #view-casepage.has-result #cpResult .btn,
  #view-casepage.has-result #cpResult #cpSell,
  #view-casepage.has-result #cpResult #cpAgain {
    height: var(--cp-ctrl-h, 44px) !important;
    min-height: var(--cp-ctrl-h, 44px) !important;
    max-height: var(--cp-ctrl-h, 44px) !important;
    border-radius: 10px !important;
    font-size: 11.5px !important;
    padding: 0 10px !important;
  }
}

@media (max-width: 350px) {
  :root {
    --cp-side-btn-w: 80px;
    --cp-ctrl-h: 42px;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls .cp-actions {
    grid-template-columns: var(--cp-side-btn-w, 80px) minmax(0, 1fr) var(--cp-side-btn-w, 80px) !important;
    gap: 4px !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) #cpQty .qty {
    font-size: 10px !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpFast {
    padding: 0 2px !important;
    font-size: 9.5px !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpOpen {
    padding: 0 6px !important;
    font-size: 10px !important;
  }
  #view-casepage.is-opening .cp-opening {
    height: var(--cp-ctrl-h, 42px) !important;
    min-height: var(--cp-ctrl-h, 42px) !important;
    max-height: var(--cp-ctrl-h, 42px) !important;
    padding: 0 10px !important;
    font-size: 10px !important;
  }
  #view-casepage.has-result #cpResult {
    height: var(--cp-ctrl-h, 42px) !important;
    min-height: var(--cp-ctrl-h, 42px) !important;
    max-height: var(--cp-ctrl-h, 42px) !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #view-casepage.has-result #cpResult .btn,
  #view-casepage.has-result #cpResult #cpSell,
  #view-casepage.has-result #cpResult #cpAgain {
    height: var(--cp-ctrl-h, 42px) !important;
    min-height: var(--cp-ctrl-h, 42px) !important;
    max-height: var(--cp-ctrl-h, 42px) !important;
    font-size: 10px !important;
    padding: 0 6px !important;
  }
}


/* ============================================================
   CASE ACTIONS V2 — FULL WELVURA REDESIGN
   ============================================================ */



/* Needs-funds remains the same component rather than reverting to legacy styling. */
#view-casepage:not(.is-opening):not(.has-result) #cpOpen.needs-funds {
  background:linear-gradient(125deg,#8f83e2,#7064cc) !important;
}
#view-casepage #cpOpen .cp-wallet-icon { display:none !important; }



/* Clean case actions: no underline selection and no icon badges. */
#view-casepage:not(.is-opening):not(.has-result) #cpQty .qty.on {
  background:linear-gradient(145deg,#625d87,#514d74) !important;
  color:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 9px 20px rgba(19,17,42,.2) !important;
}
#view-casepage:not(.is-opening):not(.has-result) #cpQty .qty.on::before {
  opacity:.65 !important;
  background:radial-gradient(circle at 50% 100%,rgba(159,143,248,.16),transparent 72%) !important;
}

#view-casepage:not(.is-opening):not(.has-result) #cpOpen {
  padding:0 30px !important;
  justify-content:center !important;
  text-align:center !important;
}
#view-casepage:not(.is-opening):not(.has-result) #cpOpen::before {
  content:none !important;
  display:none !important;
}

#view-casepage:not(.is-opening):not(.has-result) #cpFast {
  padding:0 24px !important;
  justify-content:center !important;
  text-align:center !important;
  color:#f4cf75 !important;
}
#view-casepage:not(.is-opening):not(.has-result) #cpFast svg {
  display:none !important;
}

/* ============================================================
   MULTI-ROW CASE STAGE + DISTINCT QUICK ACTION
   ============================================================ */

/* Quantity stacks full-height case/reel rows vertically. */
#view-casepage[data-cp-rows] > .casepage-stage,
#view-casepage[data-cp-rows].is-opening > .casepage-stage,
#view-casepage[data-cp-rows].has-result > .casepage-stage {
  height:var(--cp-stage-total,232px) !important;
  min-height:var(--cp-stage-total,232px) !important;
  max-height:var(--cp-stage-total,232px) !important;
  transition:none !important;
}

/* Idle previews occupy the exact future reel rows. */
#view-casepage .casepage-stage > .casepage-art,
#view-casepage .casepage-stage > #cpArt {
  width:100% !important;
  height:var(--cp-stage-total,232px) !important;
  min-height:var(--cp-stage-total,232px) !important;
  max-height:var(--cp-stage-total,232px) !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  grid-template-rows:repeat(var(--cp-rows,1),232px) !important;
  gap:8px !important;
  overflow:hidden !important;
}
#view-casepage .cp-idle-case {
  position:relative;
  width:100%;
  height:232px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
#view-casepage .cp-idle-case::before {
  content:"";
  position:absolute;
  inset:18% 31% 3%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(159,143,248,.22),transparent 71%);
  filter:blur(13px);
}
#view-casepage .cp-idle-case img {
  position:relative;
  z-index:1;
  width:auto !important;
  height:224px !important;
  max-width:min(430px,85%) !important;
  max-height:224px !important;
  margin:0 !important;
  object-fit:contain !important;
}

/* Opening/result reels stack as full-width vertical rows. */
#view-casepage.is-opening .spinner-stack,
#view-casepage.has-result .spinner-stack {
  height:var(--cp-stage-total,232px) !important;
  min-height:var(--cp-stage-total,232px) !important;
  max-height:var(--cp-stage-total,232px) !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  grid-template-rows:repeat(var(--cp-rows,1),232px) !important;
  align-content:start !important;
  gap:8px !important;
}
#view-casepage .casepage-stage .spinner-frame {
  width:100% !important;
  min-width:0 !important;
  height:232px !important;
  min-height:232px !important;
  max-height:232px !important;
}

/* Quick Open: vivid warm Welvura action, still clean and text-only. */
#view-casepage:not(.is-opening):not(.has-result) #cpFast {
  position:relative !important;
  isolation:isolate !important;
  overflow:hidden !important;
  background:linear-gradient(135deg,#f3c55f 0%,#e7a73f 58%,#da8e31 100%) !important;
  color:#2b2330 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.18) !important;
  box-shadow:0 12px 26px rgba(218,142,49,.24),inset 0 1px 0 rgba(255,255,255,.32),inset 0 -1px 0 rgba(142,79,25,.16) !important;
}
#view-casepage:not(.is-opening):not(.has-result) #cpFast::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:linear-gradient(110deg,transparent 15%,rgba(255,255,255,.2) 46%,transparent 70%);
  transform:translateX(-120%);
  transition:transform .55s ease;
}
#view-casepage:not(.is-opening):not(.has-result) #cpFast::after {
  content:none !important;
  display:none !important;
}
#view-casepage:not(.is-opening):not(.has-result) #cpFast:hover {
  background:linear-gradient(135deg,#ffd572 0%,#efb34a 58%,#e19a36 100%) !important;
  color:#241d2a !important;
  transform:translateY(-2px) !important;
  box-shadow:0 16px 31px rgba(218,142,49,.32),inset 0 1px 0 rgba(255,255,255,.38) !important;
}
#view-casepage:not(.is-opening):not(.has-result) #cpFast:hover::before { transform:translateX(120%); }

@media(max-width:650px){
 #view-casepage .casepage-stage,
 #view-casepage.is-opening .casepage-stage,
 #view-casepage.has-result .casepage-stage{
  height:calc(var(--cp-rows,1) * 202px + (var(--cp-rows,1) - 1) * 8px)!important;
  min-height:calc(var(--cp-rows,1) * 202px + (var(--cp-rows,1) - 1) * 8px)!important;
  max-height:calc(var(--cp-rows,1) * 202px + (var(--cp-rows,1) - 1) * 8px)!important
 }
 #view-casepage .casepage-stage>.casepage-art,
 #view-casepage .casepage-stage>#cpArt,
 #view-casepage.is-opening .spinner-stack,
 #view-casepage.has-result .spinner-stack{grid-template-columns:1fr!important;grid-template-rows:repeat(var(--cp-rows,1),202px)!important}
 #view-casepage .cp-idle-case{height:202px}
 #view-casepage .cp-idle-case img{height:198px!important;max-height:198px!important}
}

/* ============================================================
   UPGRADER CENTER PANEL V2
   Larger wheel, action anchored to panel bottom.
   ============================================================ */

#view-upgrade .panel.center {
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  height:100% !important;
  box-sizing:border-box !important;
  padding-bottom:0 !important;
}
#view-upgrade .panel.center .mode-row {
  flex:0 0 28px !important;
  height:28px !important;
  min-height:28px !important;
  margin:0 !important;
}
#view-upgrade .panel.center .wheel-stage {
  flex:0 0 292px !important;
  width:292px !important;
  height:292px !important;
  min-height:292px !important;
  margin:10px auto 4px !important;
}
#view-upgrade .panel.center .wheel-stage .wheel {
  width:292px !important;
  height:292px !important;
}
#view-upgrade .panel.center .wheel-stage .hub {
  width:206px !important;
  height:206px !important;
}
#view-upgrade .panel.center .wheel-stage .pct {
  font-size:38px !important;
  white-space:nowrap !important;
}

#view-upgrade .panel.center .chips {
  flex:0 0 30px !important;
  height:30px !important;
  min-height:30px !important;
  margin:0 0 6px !important;
}
#view-upgrade .panel.center .chips button {
  height:30px !important;
  min-height:30px !important;
}
#view-upgrade .panel.center #go {
  flex:0 0 54px !important;
  width:100% !important;
  height:54px !important;
  min-height:54px !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
}

/* Keep the full wheel/detail stack inside short laptop viewports. */
@media(max-height:780px) and (min-width:901px){
 #view-upgrade .panel.center .wheel-stage,
 #view-upgrade .panel.center .wheel-stage .wheel{width:268px!important;height:268px!important;min-height:268px!important;flex-basis:268px!important}
 #view-upgrade .panel.center .wheel-stage .hub{width:184px!important;height:184px!important}

}

/* ============================================================
   SEPARATE SHORT CASE / ROULETTE ROW CARDS
   ============================================================ */
:root { --cp-row-h:196px; --cp-row-gap:12px; }

/* Shared container is only layout — no visible giant card. */
#view-casepage[data-cp-rows] > .casepage-stage,
#view-casepage[data-cp-rows].is-opening > .casepage-stage,
#view-casepage[data-cp-rows].has-result > .casepage-stage {
  height:var(--cp-stage-total,196px) !important;
  min-height:var(--cp-stage-total,196px) !important;
  max-height:var(--cp-stage-total,196px) !important;
  overflow:visible !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
#view-casepage[data-cp-rows]:not(.is-opening):not(.has-result) > .casepage-stage {
  background:transparent !important;
  background-image:none !important;
}

/* Idle preview layout. */
#view-casepage:not(.is-opening):not(.has-result) .casepage-stage > .casepage-art,
#view-casepage:not(.is-opening):not(.has-result) .casepage-stage > #cpArt {
  width:100% !important;
  height:var(--cp-stage-total,196px) !important;
  min-height:var(--cp-stage-total,196px) !important;
  max-height:var(--cp-stage-total,196px) !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  grid-template-rows:repeat(var(--cp-rows,1),var(--cp-row-h)) !important;
  gap:var(--cp-row-gap) !important;
  overflow:visible !important;
}
#view-casepage:not(.is-opening):not(.has-result) .casepage-stage > #cpArt::before,
#view-casepage:not(.is-opening):not(.has-result) .casepage-stage > .casepage-art::before {
  content:none !important;
  display:none !important;
  filter:none !important;
  background:none !important;
}
#view-casepage:not(.is-opening):not(.has-result) .cp-idle-case {
  position:relative !important;
  grid-area:auto !important;
  width:100% !important;
  height:var(--cp-row-h) !important;
  min-height:var(--cp-row-h) !important;
  max-height:var(--cp-row-h) !important;
  transform:none !important;
  filter:none !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:13px !important;
  background:
    radial-gradient(ellipse 34% 105% at 50% 90%,rgba(159,143,248,.23),transparent 72%),
    #2e314a !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}
#view-casepage:not(.is-opening):not(.has-result) .cp-idle-case::before {
  content:"" !important;
  display:block !important;
  inset:16px 28% 16px !important;
  border-radius:50% !important;
  background:radial-gradient(ellipse at center,rgba(159,143,248,.18) 0%,rgba(159,143,248,.07) 46%,transparent 74%) !important;
  filter:none !important;
  opacity:1 !important;
}
#view-casepage:not(.is-opening):not(.has-result) .cp-idle-case img,
#view-casepage:not(.is-opening):not(.has-result) .cp-idle-case img.art-hero {
  display:block !important;
  margin:0 auto !important;
  width:auto !important;
  height:190px !important;
  max-width:min(390px,84%) !important;
  max-height:190px !important;
  object-fit:contain !important;
}

/* Opening/result rows become separate rounded roulette cards. */
#view-casepage.is-opening .casepage-stage > .spinner-stack,
#view-casepage.has-result .casepage-stage > .spinner-stack {
  position:static !important;
  inset:auto !important;
  width:100% !important;
  height:var(--cp-stage-total,196px) !important;
  min-height:var(--cp-stage-total,196px) !important;
  max-height:var(--cp-stage-total,196px) !important;
  display:grid !important;
  grid-template-columns:1fr !important;
  grid-template-rows:repeat(var(--cp-rows,1),var(--cp-row-h)) !important;
  gap:var(--cp-row-gap) !important;
  overflow:visible !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
}
#view-casepage .casepage-stage .spinner-frame {
  width:100% !important;
  height:var(--cp-row-h) !important;
  min-height:var(--cp-row-h) !important;
  max-height:var(--cp-row-h) !important;
  overflow:hidden !important;
  border:0 !important;
  border-radius:13px !important;
  background:#2e314a !important;
  box-shadow:none !important;
}
#view-casepage .casepage-stage .spinner {
  height:var(--cp-row-h) !important;
  min-height:var(--cp-row-h) !important;
  max-height:var(--cp-row-h) !important;
  margin:0 !important;
  gap:8px !important;
}
#view-casepage .casepage-stage .spinner-item,
#view-casepage .spinner.revealed .spinner-item.is-win {
  width:176px !important;
  flex:0 0 176px !important;
  height:var(--cp-row-h) !important;
  min-height:var(--cp-row-h) !important;
  max-height:var(--cp-row-h) !important;
  border-radius:11px !important;
  transform:none !important;
}
#view-casepage .casepage-stage .spinner-item img {
  top:24px !important;
  height:108px !important;
}
#view-casepage .casepage-stage .spinner-item b.wn { top:143px !important; }
#view-casepage .casepage-stage .spinner-item b.sn { top:164px !important; }
#view-casepage .casepage-stage .spinner-marker {
  height:var(--cp-row-h) !important;
  top:0 !important;
  bottom:0 !important;
}

@media(max-width:650px){
 :root{--cp-row-h:176px;--cp-row-gap:9px}
 #view-casepage:not(.is-opening):not(.has-result) .cp-idle-case img,
 #view-casepage:not(.is-opening):not(.has-result) .cp-idle-case img.art-hero{height:172px!important;max-height:172px!important}
 #view-casepage .casepage-stage .spinner-item,
 #view-casepage .spinner.revealed .spinner-item.is-win{width:150px!important;flex-basis:150px!important}
}

/* ============================================================
   RESTORED UPGRADER CENTER LAYOUT
   Baseline composition retained; wheel enlarged, action anchored low.
   ============================================================ */

#view-upgrade .panel.center {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:0 !important;
  min-height:0 !important;
  height:100% !important;
  max-height:100% !important;
  box-sizing:border-box !important;
  padding:12px 12px 0 !important;
  overflow:hidden !important;
}
#view-upgrade .panel.center .mode-row {
  flex:0 0 28px !important;
  height:28px !important;
  min-height:28px !important;
  margin:0 !important;
  padding:0 3px !important;
}

/* Larger wheel, but still leaves room for every playable control. */
#view-upgrade .panel.center .wheel-stage,
#view-upgrade .panel.center .wheel-stage .wheel {
  flex:0 0 300px !important;
  width:300px !important;
  height:300px !important;
  min-width:300px !important;
  min-height:300px !important;
  max-width:300px !important;
  max-height:300px !important;
}
#view-upgrade .panel.center .wheel-stage {
  margin:8px auto 4px !important;
  overflow:visible !important;
}
#view-upgrade .panel.center .wheel-stage .hub {
  width:206px !important;
  height:206px !important;
}
#view-upgrade .panel.center .wheel-stage .pct {
  font-size:38px !important;
  white-space:nowrap !important;
}

/* Keep the middle summary compact like the restored reference. */


/* Compact selector rows stay above the bottom action. */
#view-upgrade .panel.center .chips {
  flex:0 0 29px !important;
  height:29px !important;
  min-height:29px !important;
  margin:0 0 5px !important;
  gap:7px !important;
}
#view-upgrade .panel.center .chips button {
  height:29px !important;
  min-height:29px !important;
  padding:0 13px !important;
}

/* Main upgrade action is always the final element at the panel bottom. */
#view-upgrade .panel.center #go {
  flex:0 0 52px !important;
  width:100% !important;
  height:52px !important;
  min-height:52px !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
  border-radius:12px !important;
}

/* Restore the same proportions on short desktop laptop viewports. */
@media(max-height:780px) and (min-width:901px){
  #view-upgrade .panel.center .wheel-stage,
  #view-upgrade .panel.center .wheel-stage .wheel {
    flex-basis:300px !important;
    width:300px !important;
    height:300px !important;
    min-width:300px !important;
    min-height:300px !important;
    max-width:300px !important;
    max-height:300px !important;
  }
  #view-upgrade .panel.center .wheel-stage .hub { width:184px !important;height:184px !important; }

  #view-upgrade .panel.center #go { flex-basis:52px !important;height:52px !important;min-height:52px !important; }
}

@media(max-width:900px){
  #view-upgrade .panel.center { overflow:visible !important;max-height:none !important; }
  #view-upgrade .panel.center .wheel-stage,
  #view-upgrade .panel.center .wheel-stage .wheel {
    flex-basis:300px !important;
    width:300px !important;
    height:300px !important;
    min-width:300px !important;
    min-height:300px !important;
    max-width:300px !important;
    max-height:300px !important;
  }
}
@media(max-width:520px){
  #view-upgrade .panel.center .wheel-stage,
  #view-upgrade .panel.center .wheel-stage .wheel {
    flex-basis:260px !important;
    width:260px !important;
    height:260px !important;
    min-width:260px !important;
    min-height:260px !important;
    max-width:260px !important;
    max-height:260px !important;
  }
  #view-upgrade .panel.center .wheel-stage .hub { width:160px !important;height:160px !important; }
}

/* ============================================================
   UPGRADER CENTER GEOMETRY — FINAL v2
   Glued stack: every element touches the next with one EQUAL gap.
   Order: mode-row / wheel / duel slots / chance chips / mults / CTA.
   ============================================================ */

#view-upgrade .panel.center,
#view-upgrade #wheelPanel.panel.center {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:10px !important;
  padding:12px !important;
  height:100% !important;
  max-height:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

#view-upgrade .panel.center .mode-row {
  flex:0 0 28px !important;
  height:28px !important;
  min-height:28px !important;
  margin:0 !important;
  padding:0 3px !important;
}

/* Wheel assembly — enlarged to close the dead space above the slots. */
#view-upgrade .panel.center .wheel-stage,
#view-upgrade .panel.center .wheel-stage .wheel {
  flex:0 0 340px !important;
  width:340px !important;
  height:340px !important;
  min-width:340px !important;
  min-height:340px !important;
  max-width:340px !important;
  max-height:340px !important;
}
#view-upgrade .panel.center .wheel-stage {
  position:relative !important;
  align-self:center !important;
  margin:0 auto !important;
  overflow:visible !important;
}
#view-upgrade .panel.center .wheel-stage .hub {
  position:absolute !important;
  inset:auto !important;
  left:50% !important;
  top:50% !important;
  width:206px !important;
  height:206px !important;
  transform:translate(-50%,-50%) !important;
  transform-origin:center !important;
}
#view-upgrade .panel.center .wheel-stage.is-spinning .hub,
#view-upgrade .panel.center .wheel-stage .hub.win,
#view-upgrade .panel.center .wheel-stage .hub.lose {
  transform:translate(-50%,-50%) !important;
}
#view-upgrade .panel.center .wheel-stage .pct {
  font-size:38px !important;
  letter-spacing:-0.01em !important;
  white-space:nowrap !important;
}
#view-upgrade .panel.center .wheel-stage .pct small {
  font-size:16px !important;
  margin-left:2px !important;
}

/* Duel slots — aligned grid with centered arrow */
#view-upgrade .panel.center .duel-summary {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 38px 1fr !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 126px !important;
  height: 126px !important;
  max-height: 126px !important;
  margin: 6px 0 !important;
  box-sizing: border-box !important;
}
#view-upgrade .panel.center .duel-slot {
  min-height: 126px !important;
  height: 126px !important;
  max-height: 126px !important;
  padding: 8px 10px 8px !important;
  box-sizing: border-box !important;
}
#view-upgrade .panel.center .duel-arrow {
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  align-self: center !important;
  justify-self: center !important;
  margin: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Chips rows — uniform 10px gaps, equal-height rows, equal columns. */
#view-upgrade .panel.center .chips {
  flex:0 0 38px !important;
  height:38px !important;
  min-height:38px !important;
  max-height:38px !important;
  margin:0 !important;
  gap:10px !important;
  display:grid !important;
  grid-template-columns:repeat(3, 1fr) !important;
}
#view-upgrade .panel.center .chips button {
  height:38px !important;
  min-height:38px !important;
  max-height:38px !important;
  padding:0 12px !important;
}

/* CTA — final element, glued with the same 8px gap (no margin-top:auto). */
#view-upgrade .panel.center #go {
  flex:0 0 52px !important;
  width:100% !important;
  height:52px !important;
  min-height:52px !important;
  margin:0 !important;
  border-radius:12px !important;
}

/* Short desktop viewports: keep proportions, shrink wheel only. */
@media(max-height:820px) and (min-width:901px){
  #view-upgrade .panel.center .wheel-stage,
  #view-upgrade .panel.center .wheel-stage .wheel {
    flex-basis:300px !important;
    width:300px !important;
    height:300px !important;
    min-width:300px !important;
    min-height:300px !important;
    max-width:300px !important;
    max-height:300px !important;
  }
  #view-upgrade .panel.center .wheel-stage .hub {
    width:184px !important;
    height:184px !important;
  }
  #view-upgrade .panel.center .wheel-stage .pct {
    font-size:35px !important;
  }
}
@media(max-width:900px){
  #view-upgrade .panel.center .wheel-stage,
  #view-upgrade .panel.center .wheel-stage .wheel {
    flex-basis:300px !important;
    width:300px !important;
    height:300px !important;
    min-width:300px !important;
    min-height:300px !important;
    max-width:300px !important;
    max-height:300px !important;
  }
  #view-upgrade .panel.center .wheel-stage .hub {
    width:184px !important;
    height:184px !important;
  }
  #view-upgrade .panel.center .wheel-stage .pct {
    font-size:35px !important;
  }
}
@media(max-width:520px){
  #view-upgrade .panel.center .wheel-stage,
  #view-upgrade .panel.center .wheel-stage .wheel {
    flex-basis:260px !important;
    width:260px !important;
    height:260px !important;
    min-width:260px !important;
    min-height:260px !important;
    max-width:260px !important;
    max-height:260px !important;
  }
  #view-upgrade .panel.center .wheel-stage .hub {
    width:160px !important;
    height:160px !important;
  }
  #view-upgrade .panel.center .wheel-stage .pct {
    font-size:30px !important;
  }
}

/* ============================================================
   TOP-RIBBON BRAND — logo + OFFGRADER wordmark pinned to the
   ABSOLUTE left of the window (the ribbon extends across the
   sidebar column; the rail below slides down 96px so the logo
   zone above it shares the exact sidebar background). Drops
   fade into the wordmark on the left like into the controls
   on the right.
   ============================================================ */

/* ribbon spans the full window width: topbar escapes the app container
   (the rail is position:fixed, so no layout shift — it just slides
   under the ribbon and its background shows behind the logo) */
.top {
  position: relative;
  left: -68px !important;
  width: calc(100vw / var(--pz, 1)) !important;
  min-width: calc(100vw / var(--pz, 1)) !important;
  background: #25283d !important;
  z-index: 200 !important;
}

/* sidebar rendered as an elevated card below top ribbon */

/* brand lockup, pinned to the window edge */
.top-brand {
  position: absolute !important;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 15 !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 14px;
  text-decoration: none;
  background: transparent !important;
  pointer-events: auto;
}
.top-brand img {
  height: 26px;
  width: auto;
  aspect-ratio: 2913.43 / 390;
  filter: none !important;
  transition: transform 0.35s var(--ease-spring);
}
.top-brand:hover img {
  transform: translateY(-1px);
}

/* ticker boundaries & overlay variables */
:root {
  --ticker-offset: 4px;
  --ticker-start: 206px;
  --ticker-fade: 60px;
  --top-meta-right: 18px;
  --top-meta-w: 160px;
  --top-ctrl-gap: 10px;
}
@media (max-width: 1240px) {
  :root {
    --ticker-start: 206px;
    --ticker-fade: 60px;
  }
}
@media (max-width: 900px) {
  :root {
    --top-meta-right: 10px;
    --top-ctrl-gap: 8px;
  }
}

/* The space where items can appear: padding starts right after the logo */
.ticker {
  padding: 8px 0 8px var(--ticker-start) !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
.top .ticker,
.top:has(.balance:not([hidden])) .ticker,
.top:has(.balance[hidden]) .ticker {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

/* 1. START (left) OVERLAY ON TOP OF CARDS:
   Solid ribbon background color (#25283D) covering the logo zone (0 to var(--ticker-start)),
   then smoothly fading to transparent on top of the cards across --ticker-fade. */
.ticker-frame::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: calc(var(--ticker-start) + var(--ticker-fade)) !important;
  background: linear-gradient(90deg,
    #25283d 0,
    #25283d var(--ticker-start),
    rgba(37, 40, 61, 0) calc(var(--ticker-start) + var(--ticker-fade))
  ) !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

/* 2. FINISH (right) OVERLAY ON TOP OF CARDS:
   Items scroll right up to the plus button before vanishing. The fading gradient
   smoothly covers 60px leading up to the plus button, reaching 100% solid background
   (#25283d) directly at the plus button to cleanly mask cards behind top controls. */
.ticker-frame::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: calc(var(--top-meta-w, 160px) + var(--top-meta-right, 18px) + 60px) !important;
  background: linear-gradient(90deg,
    rgba(37, 40, 61, 0) 0,
    #25283d 60px,
    #25283d 100%
  ) !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

/* Logged-out state adjustment for finish overlay: ends right at login button */
.top:has(.balance[hidden]) .ticker-frame::after {
  width: calc(var(--top-meta-w, 85px) + var(--top-meta-right, 18px) + 60px) !important;
  background: linear-gradient(90deg,
    rgba(37, 40, 61, 0) 0,
    #25283d 60px,
    #25283d 100%
  ) !important;
}

/* Ensure equal, uniform spacing between all top control icons/badges:
   gap(online -> plus) == gap(plus -> balance) == gap(balance -> avatar) */
.balance {
  padding: 0 !important;
  gap: var(--top-ctrl-gap, 10px) !important;
}

.top-meta {
  gap: var(--top-ctrl-gap, 10px) !important;
  z-index: 20 !important;
  pointer-events: auto !important;
}

/* Position online cloud badge with the exact same equal spacing */
.online {
  right: calc(var(--top-meta-w, 160px) + var(--top-meta-right, 18px) + var(--top-ctrl-gap, 10px)) !important;
  z-index: 15 !important;
  pointer-events: auto !important;
}
.top:has(.balance[hidden]) .online {
  right: calc(var(--top-meta-w, 85px) + var(--top-meta-right, 18px) + var(--top-ctrl-gap, 10px)) !important;
}

/* Narrower desktop adjustments */
@media (max-width: 1240px) {
  .top-brand { padding-right: 14px; }
  .ticker { padding-left: var(--ticker-start) !important; }
}

/* Mobile brand: strictly hidden on desktop (>1080px), displayed only on mobile (<=1080px) */
.mobile-brand {
  display: none !important;
}

@media (max-width: 1080px) {
  .top-brand { display: none !important; }
  .ticker-frame::before { display: none !important; }
  .ticker { padding-left: 8px !important; }
  .top { left: 0; width: 100% !important; min-width: 0 !important; }
  .rail { padding-top: 18px !important; }
  .mobile-brand {
    display: flex !important;
    align-items: center;
    text-decoration: none;
  }
  .mobile-brand img {
    height: 24px;
    width: auto;
    aspect-ratio: 2913.43 / 390;
  }
}

/* User profile dropdown menu: must sit above the 96px top ribbon (z-index 200) without being overlapped */
.user-menu {
  top: 96px !important;
  z-index: 300 !important;
}

@media (max-width: 1080px) {
  .user-menu {
    top: 66px !important;
  }
}


/* ============================================================
   OFFGRADER CARD WATERMARK SYSTEM
   Pure code-based SVG subtle branding watermark on cards
   ============================================================ */

/* 1. Upgrader item cards (Inventory selection & Target cards) */
#view-upgrade .skin {
  background-image:
    linear-gradient(145deg, rgba(159, 143, 248, 0.07), transparent 48%) !important;
  background-position: 0 0 !important;
  background-size: auto !important;
  background-repeat: no-repeat !important;
}
#view-upgrade .skin:hover {
  background-image:
    linear-gradient(145deg, rgba(159, 143, 248, 0.13), transparent 52%) !important;
  background-position: 0 0 !important;
  background-size: auto !important;
  background-repeat: no-repeat !important;
}
#view-upgrade .skin.sel {
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 50%) !important;
  background-position: 0 0 !important;
  background-size: auto !important;
  background-repeat: no-repeat !important;
}
#view-upgrade .skin .art,
#view-upgrade .skin:hover .art,
#view-upgrade .skin.sel .art,
#view-upgrade .skin.sel:hover .art {
  background-image: url("ui/offgrader-mark-subtle.svg") !important;
  background-position: center center !important;
  background-size: 72% auto !important;
  background-repeat: no-repeat !important;
}

/* 2. Inside the Upgrader Wheel (centered behind the percentage number and result reveal) */
#view-upgrade .panel.center .wheel-stage .hub,
#view-upgrade .panel.center .wheel-stage .hub.win,
#view-upgrade .panel.center .wheel-stage .hub.lose {
  background-image:
    url("ui/offgrader-mark-subtle.svg"),
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.06), transparent 42%),
    linear-gradient(180deg, #20244a, #0d0f22) !important;
  background-position: center center, 0 0, 0 0 !important;
  background-size: 60% auto, auto, auto !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
}
#view-upgrade .panel.center .wheel-stage .hub-main {
  position: relative !important;
  z-index: 2 !important;
}
#view-upgrade .panel.center .wheel-stage .hub-result,
#view-upgrade .panel.center .wheel-stage .hub.win .hub-result {
  background-image:
    url("ui/offgrader-mark-subtle.svg"),
    radial-gradient(circle at 50% 30%, rgba(16, 183, 89, 0.35), rgba(8, 24, 16, 0.94) 72%),
    linear-gradient(180deg, #0f241a, #0a1410) !important;
  background-position: center center, 0 0, 0 0 !important;
  background-size: 60% auto, auto, auto !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  transform: none !important;
  transition: opacity 0.25s ease !important;
}
#view-upgrade .panel.center .wheel-stage .hub.lose .hub-result {
  background-image:
    url("ui/offgrader-mark-subtle.svg"),
    radial-gradient(circle at 50% 32%, rgba(255, 82, 82, 0.22), rgba(20, 8, 10, 0.95) 72%),
    linear-gradient(180deg, #240e13, #140a0c) !important;
  background-position: center center, 0 0, 0 0 !important;
  background-size: 60% auto, auto, auto !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  transform: none !important;
  transition: opacity 0.25s ease !important;
}
#view-upgrade .panel.center .wheel-stage .hub-result img,
.hub-result img {
  position: relative !important;
  z-index: 20 !important;
  mix-blend-mode: normal !important;
  width: 120px !important;
  height: 60px !important;
  aspect-ratio: 2 / 1 !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

/* 3. Cards below the upgrader wheel (#fromSlot and #toSlot duel cards) */
#view-upgrade .duel-slot {
  background-image: none !important;
}
#view-upgrade .panel.center .duel-art,
#view-upgrade .duel-slot .duel-art,
#view-upgrade .duel-art {
  height: 58px !important;
  min-height: 58px !important;
  background-image: url("ui/offgrader-mark-subtle.svg") !important;
  background-position: center center !important;
  background-size: 50px auto !important;
  background-repeat: no-repeat !important;
  overflow: visible !important;
}
#view-upgrade .duel-slot .duel-art span,
.duel-slot .duel-art span {
  display: none !important;
}

/* 4. Inventory item cards */
#view-inv .icard,
.icard {
  background-image: none !important;
}
.ic-art {
  background-image: url("ui/offgrader-mark-subtle.svg") !important;
  background-position: center center !important;
  background-size: 92px auto !important;
  background-repeat: no-repeat !important;
}

/* 5. Case contents drop tiles */
.drop-tile {
  background-image: url("ui/offgrader-mark-subtle.svg") !important;
  background-position: center 34px !important;
  background-size: 68% auto !important;
  background-repeat: no-repeat !important;
}
.drop-tile img {
  background: transparent !important;
}

/* 6. Case opening roulette cards */
.spinner-item {
  background-image: url("ui/offgrader-mark-subtle.svg") !important;
  background-position: center 24px !important;
  background-size: 68% auto !important;
  background-repeat: no-repeat !important;
}
.spinner-item img {
  background: transparent !important;
}

/* 7. Latest drops ticker ribbon cards: watermark exactly centered on skin image */
.drop-card,
.ticker .drop-card {
  background-image:
    url("ui/offgrader-mark-subtle.svg"),
    linear-gradient(145deg, rgba(159, 143, 248, 0.07), transparent 54%) !important;
  background-position: 13px center, 0 0 !important;
  background-size: 60px auto, auto !important;
  background-repeat: no-repeat, no-repeat !important;
}

/* 8. History cards (Case opens, upgrader outcomes, compact tiles) */
.ccard,
.ucard {
  background-image: none !important;
}
.ccard-art {
  background-image: url("ui/offgrader-mark-subtle.svg") !important;
  background-position: center center !important;
  background-size: 52px auto !important;
  background-repeat: no-repeat !important;
}
.htile {
  background-image: url("ui/offgrader-mark-subtle.svg") !important;
  background-position: center 27px !important;
  background-size: 50px auto !important;
  background-repeat: no-repeat !important;
}
.htile.htile-flat {
  background-image: none !important;
}
.ccard img,
.htile img {
  background: transparent !important;
}

/* 9. Withdraw flow cards (Offer cards, skin preview tile, skin progress card) */
.wd-offer,
.wd-skin-tile {
  background-image: url("ui/offgrader-mark-subtle.svg") !important;
  background-position: center 28px !important;
  background-size: 68% auto !important;
  background-repeat: no-repeat !important;
}
.wd-price-skin {
  background-image:
    url("ui/offgrader-mark-subtle.svg"),
    radial-gradient(ellipse at 50% 100%, rgba(114, 101, 253, 0.38), transparent 70%) !important;
  background-position: center 32px, 0 0 !important;
  background-size: 130px auto, auto !important;
  background-repeat: no-repeat, no-repeat !important;
}
.whr-img {
  background-image: url("ui/offgrader-mark-subtle.svg") !important;
  background-position: center center !important;
  background-size: 42px auto !important;
  background-repeat: no-repeat !important;
}

/* 10. Deposit payment method cards */
.deposit-page-method {
  background-image: url("ui/offgrader-mark-subtle.svg") !important;
  background-position: right 14px center !important;
  background-size: 58px auto !important;
  background-repeat: no-repeat !important;
}

/* 11. Profile cards & Best Drop card */
.profile-card,
.profile-user-card,
.profile-best-card {
  background-image: none !important;
}
.best-drop-art {
  background-image: url("ui/offgrader-mark-subtle.svg") !important;
  background-position: center center !important;
  background-size: 88px auto !important;
  background-repeat: no-repeat !important;
}

/* CASES: Explicitly no watermark behind cases as requested */
#view-cases .gcard,
#view-cases .gcard.bare,
#view-casepage .cp-idle-case {
  background-image: none !important;
}

/* 12. Upgrade & Spinning button vector logo */
.btn-go .go-arrow {
  display: none !important;
}
.btn-go .go-icon {
  width: 17px !important;
  height: 16px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  fill: currentColor !important;
  position: relative !important;
  z-index: 2 !important;
  margin-right: 2px !important;
}

/* ============================================================
   13. WIDE EMPTY STATE BANNER (Full tab width)
   Coral info badge + violet upgrader-style action button
   ============================================================ */
.wide-empty-banner {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 24px 18px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  grid-column: 1 / -1 !important;
}

#invGrid.empty-grid {
  display: block !important;
  width: 100% !important;
}

.web-left {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.web-icon {
  width: 54px !important;
  height: 54px !important;
  flex: 0 0 54px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ff5f7e !important;
  margin: 0 !important;
  background: rgba(255, 95, 126, 0.12) !important;
  border: 1.5px solid rgba(255, 95, 126, 0.35) !important;
  box-shadow: 0 8px 24px rgba(255, 95, 126, 0.22) !important;
}

.web-icon svg {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
  stroke: #ff5f7e !important;
}

.web-icon svg line {
  stroke: #ff5f7e !important;
}

.web-icon svg circle {
  fill: #ff5f7e !important;
  stroke: none !important;
}

.web-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.web-title {
  font-family: Rubik, -apple-system, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #ff5f7e !important;
}

.web-sub {
  font-family: Rubik, -apple-system, sans-serif !important;
  font-size: 13px !important;
  color: #8c92aa !important;
}

.web-btn {
  font-family: Rubik, -apple-system, sans-serif !important;
  background: var(--grad-btn) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 9px !important;
  padding: 11px 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(126, 105, 239, 0.28) !important;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease !important;
  flex-shrink: 0 !important;
}

.web-btn:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.08) !important;
  box-shadow: 0 11px 26px rgba(126, 105, 239, 0.38) !important;
}

.web-btn svg {
  width: 14px !important;
  height: 14px !important;
  stroke: currentColor !important;
  stroke-width: 2.8 !important;
}

@media (max-width: 600px) {
  .wide-empty-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 16px 4px !important;
  }
  .web-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Empty withdrawal history card - full tab width with centered text */
.wd-hist-empty-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  min-height: 220px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #8c92aa !important;
  font-family: Rubik, -apple-system, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: center !important;
  padding: 20px !important;
  margin: auto 0 !important;
  box-shadow: none !important;
}

/* ============================================================
   14. REDESIGNED WITHDRAWAL PAGE (#ipane-wd)
   Full tab length cards, sleek navy/violet surfaces, refined info
   ============================================================ */
#ipane-wd:not([hidden]) {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 380px !important;
}

#ipane-wd[hidden],
#ipane-inv[hidden],
#ipane-hist[hidden] {
  display: none !important;
}

.wd-info {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wd-info-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #c4c9dc !important;
  font-family: Rubik, -apple-system, sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  background: #202336 !important;
  border: 1px solid rgba(135, 93, 244, 0.15) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  box-shadow: 0 6px 18px rgba(5, 7, 15, 0.2) !important;
  box-sizing: border-box !important;
}

.wd-info-item:nth-child(1) svg {
  background: rgba(255, 203, 71, 0.12) !important;
  color: var(--gold) !important;
}
.wd-info-item:nth-child(2) svg {
  background: rgba(151, 86, 240, 0.12) !important;
  color: #a77ffc !important;
}
.wd-info-item:nth-child(3) svg {
  background: rgba(94, 186, 255, 0.12) !important;
  color: #63bcff !important;
}

.wd-info-item svg {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  padding: 8px !important;
  box-sizing: content-box !important;
  border-radius: 10px !important;
}

.wd-hist-panel {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wd-history-entry {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border: 1px solid rgba(135, 93, 244, 0.18) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #22253a 0%, #1a1c2c 100%) !important;
  box-shadow: inset 4px 0 0 var(--rc), 0 8px 24px rgba(5, 7, 15, 0.24) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.wd-history-entry:hover {
  border-color: rgba(135, 93, 244, 0.35) !important;
  box-shadow: inset 4px 0 0 var(--rc), 0 10px 28px rgba(5, 7, 15, 0.32) !important;
}

.wd-history-entry.expanded {
  border-color: rgba(135, 93, 244, 0.4) !important;
}

.wd-hist-row {
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 76px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 12px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: inherit !important;
  text-align: left !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.wd-hist-row:hover {
  background: rgba(135, 93, 244, 0.05) !important;
}

.whr-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.whr-img {
  width: 68px !important;
  height: 52px !important;
  flex: 0 0 68px !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-image: url("ui/offgrader-mark-subtle.svg") !important;
  background-position: center center !important;
  background-size: 42px auto !important;
  background-repeat: no-repeat !important;
}

.whr-img img {
  max-width: 64px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)) !important;
  position: relative !important;
  z-index: 2 !important;
}

.whr-name {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.whr-name b {
  color: #ffffff !important;
  font-family: Rubik, -apple-system, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.whr-right {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  flex-shrink: 0 !important;
}

.whr-price {
  color: var(--gold) !important;
  font-family: Rubik, -apple-system, sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

.whr-state {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
  color: var(--gold) !important;
  background: rgba(255, 203, 71, 0.1) !important;
  border: 1px solid rgba(255, 203, 71, 0.2) !important;
  transition: transform 0.2s ease !important;
}

.whr-state svg {
  width: 18px !important;
  height: 18px !important;
}

/* Expanded details */
.wd-hist-details {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr 1fr 48px !important;
  align-items: center !important;
  min-height: 110px !important;
  border-top: 1px solid rgba(135, 93, 244, 0.14) !important;
  background: #171926 !important;
  padding: 8px 12px !important;
}

.wdh-detail-cell {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px !important;
  border-right: 1px solid rgba(135, 93, 244, 0.1) !important;
}

.wdh-detail-cell small {
  color: #8c92aa !important;
  font-family: Rubik, -apple-system, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

.wdh-detail-art {
  width: 68px !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wdh-detail-art img {
  max-width: 64px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)) !important;
}

.wdh-detail-art img[alt="Аватар для вывода"] {
  width: 50px !important;
  height: 50px !important;
  border-radius: 9px !important;
  object-fit: cover !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.wdh-detail-value b {
  color: #ffffff !important;
  font-family: Rubik, -apple-system, sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

.wdh-detail-value.accent b {
  color: var(--gold) !important;
}

.wdh-collapse {
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: #8c92aa !important;
  background: rgba(135, 93, 244, 0.08) !important;
  font-size: 18px !important;
  cursor: pointer !important;
  justify-self: center !important;
  transition: color 0.2s ease, background 0.2s ease !important;
}

.wdh-collapse:hover {
  color: #ffffff !important;
  background: rgba(135, 93, 244, 0.18) !important;
}

/* ============================================================
   15. CONTRASTING UPGRADER HISTORY CARDS (.ucard)
   Contrasting card surface that elevates .htile item cards
   ============================================================ */
.ucard {
  background: #202336 !important;
  border: 1px solid rgba(135, 93, 244, 0.18) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(5, 7, 15, 0.22) !important;
}

.uc-foot {
  background: rgba(14, 16, 26, 0.45) !important;
  border-top: 1px solid rgba(135, 93, 244, 0.12) !important;
}

.uc-pane .htile,
.uc-target-pane .htile {
  background-color: #383b5a !important;
  border: 1px solid rgba(220, 224, 236, 0.08) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(5, 7, 15, 0.18), inset 0 -3px 0 var(--rc, var(--wv-violet)) !important;
}

.uc-pane-head {
  color: #9ba1ba !important;
}

.uc-target-pane .uc-pane-head {
  color: var(--gold) !important;
}




/* ============================================================
   HISTORY VIEWS — WELVURA LIGHT REDESIGN
   Withdrawals history + upgrader history cards re-themed to the
   site's lighter Welvura surfaces. Loads LAST so it wins every
   earlier !important cascade (styles.css / redesign.css /
   component-final.css all own .ucard / .wd-* rules).
   Surfaces:  panel  #2e314a → rows  #343853 → tiles  #3a3e5c
   Text:      #eef0fb / labels  #b1b5cd / gold #ffc94f
   Accents:   violet #9f8ff8, green #35d67f, red #ff7070
   ============================================================ */

/* ---------- shared tile (item image + name + price) ---------- */
#view-inv .htile,
.htile {
  background: linear-gradient(160deg, #40456a 0%, #353a58 100%) !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 12px rgba(8,10,22,.18) !important;
}
#view-inv .htile::before,
.htile::before { opacity: .5 !important; }             /* rarity wash, softened */
#view-inv .htile-price,
.htile-price { color: #ffd479 !important; text-shadow: none !important; }
#view-inv .htile-s,
.htile-s { color: #f2f4fd !important; }
#view-inv .htile-w,
.htile-w { color: #aeb3cf !important; }

/* ============================================================
   1. WITHDRAWALS HISTORY (#ipane-wd)
   ============================================================ */

/* Info banners: lighter panel chips with soft icon discs */
#ipane-wd .wd-info-item {
  background: #343853 !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  color: #c6cbe2 !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}
#ipane-wd .wd-info-item svg {
  background: rgba(255,201,79,.14) !important;
  color: #ffd479 !important;
  border-radius: 10px !important;
}
#ipane-wd .wd-info-item:nth-child(2) svg { background: rgba(159,143,248,.16) !important; color: #b7abf9 !important; }
#ipane-wd .wd-info-item:nth-child(3) svg { background: rgba(33,212,224,.13) !important; color: #5fe3ef !important; }

/* History list */
#ipane-wd .wd-hist-panel { background: transparent !important; border: 0 !important; }
#ipane-wd .wd-hist-empty,
#ipane-wd .wd-hist-empty-card {
  background: #343853 !important;
  border-radius: 12px !important;
  color: #8f94b2 !important;
  border: 0 !important;
}

/* One withdrawal entry = one light card */
#ipane-wd .wd-history-entry {
  background: #343853 !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 20px rgba(8,10,22,.18) !important;
  overflow: hidden !important;
}
/* rarity accent: soft left rail instead of the harsh red inset bar */
#ipane-wd .wd-history-entry::before {
  content: "" !important;
  position: absolute !important;
  left: 0; top: 10px; bottom: 10px !important;
  width: 3px !important;
  border-radius: 3px !important;
  background: var(--rc, #9f8ff8) !important;
  opacity: .85 !important;
}
#ipane-wd .wd-history-entry { position: relative !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important; }
#ipane-wd .wd-history-entry + .wd-history-entry { margin-top: 8px !important; }

#ipane-wd .wd-hist-row {
  background: transparent !important;
  border: 0 !important;
  border-radius: 14px !important;
  padding: 10px 14px 10px 16px !important;
  min-height: 60px !important;
}
#ipane-wd .wd-hist-row:hover { background: rgba(255,255,255,.035) !important; box-shadow: none !important; }
#ipane-wd .wd-hist-row:focus-visible { box-shadow: 0 0 0 2px rgba(159,143,248,.5) !important; border: 0 !important; }

#ipane-wd .whr-img {
  background: #3a3e5c !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}
#ipane-wd .whr-name b { color: #eef0fb !important; font-weight: 600 !important; }
#ipane-wd .whr-price {
  color: #ffd479 !important;
  font-weight: 700 !important;
  background: rgba(255,201,79,.1) !important;
  border-radius: 8px !important;
  padding: 4px 10px !important;
}
#ipane-wd .whr-state {
  background: #3a3e5c !important;
  color: #9fa5c4 !important;
  border: 0 !important;
  border-radius: 50% !important;
}
#ipane-wd .whr-open { color: #9fa5c4 !important; }
#ipane-wd .wd-hist-row:hover .whr-open { color: #b7abf9 !important; transform: none !important; }

/* Expanded details strip */
#ipane-wd .wd-hist-details {
  background: #2f3349 !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 0 0 14px 14px !important;
}
#ipane-wd .wdh-detail-cell {
  background: #3a3e5c !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}
#ipane-wd .wdh-detail-cell small { color: #9ba0c0 !important; }
#ipane-wd .wdh-detail-value b { color: #eef0fb !important; }
#ipane-wd .wdh-detail-value.accent b { color: #ffd479 !important; }
#ipane-wd .wdh-collapse {
  background: #3a3e5c !important;
  color: #9fa5c4 !important;
  border: 0 !important;
  border-radius: 8px !important;
}
#ipane-wd .wdh-collapse:hover { color: #eef0fb !important; background: #41466a !important; }

/* ============================================================
   2. UPGRADER HISTORY CARDS (.ucard in #histList)
   ============================================================ */
#view-inv .ucard,
#histList .ucard {
  background: #343853 !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 20px rgba(8,10,22,.16) !important;
  max-width: 640px !important;
}

#view-inv .ucard .uc-pane,
#histList .ucard .uc-pane {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#view-inv .ucard .uc-pane-head,
#histList .ucard .uc-pane-head {
  background: transparent !important;
  border: 0 !important;
}
#view-inv .ucard .uc-pane-head span,
#histList .ucard .uc-pane-head span {
  color: #9ba0c0 !important;
  font-size: 11px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  background: transparent !important;
  border: 0 !important;
}
#view-inv .ucard .uc-input-meta b,
#histList .ucard .uc-input-meta b { color: #ffd479 !important; }
#view-inv .ucard .uc-input-meta span,
#histList .ucard .uc-input-meta span { color: #9ba0c0 !important; }
#view-inv .ucard .uc-arrow,
#histList .ucard .uc-arrow {
  background: #3a3e5c !important;
  border: 0 !important;
  color: #b1b5cd !important;
  border-radius: 8px !important;
}
#view-inv .ucard .uc-arrow:hover,
#histList .ucard .uc-arrow:hover { background: #41466a !important; color: #eef0fb !important; }

/* footer split: Шанс | result — light strip, no hard divider */
#view-inv .ucard .uc-foot,
#histList .ucard .uc-foot {
  background: #2f3349 !important;
  border: 0 !important;
  border-radius: 10px !important;
  margin: 0 12px 12px !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#view-inv .uc-foot .uc-chance,
#view-inv .uc-foot .uc-res,
#histList .uc-foot .uc-chance,
#histList .uc-foot .uc-res {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #9ba0c0 !important;
  padding: 9px 8px !important;
}
#view-inv .uc-foot .uc-chance { border-right: 1px solid rgba(255,255,255,.07) !important; }
#view-inv .uc-foot .uc-chance b,
#histList .uc-foot .uc-chance b { color: #ffd479 !important; }
#view-inv .ucard.won .uc-res,
#histList .ucard.won .uc-res { color: #3ddc84 !important; }
#view-inv .ucard.lost .uc-res,
#histList .ucard.lost .uc-res { color: #ff7a7a !important; }
#view-inv .ucard.won .htile-price,
#histList .ucard.won .htile-price { color: #3ddc84 !important; }
#view-inv .ucard.lost .uc-input-pane .htile-price,
#histList .ucard.lost .uc-input-pane .htile-price { color: #ff9d9d !important; }

/* win/lose tint on the card itself — no visible outline, wash only */
#view-inv .ucard.won,
#histList .ucard.won { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 20px rgba(8,10,22,.16), inset 0 0 42px rgba(61,220,132,.07) !important; }
#view-inv .ucard.lost,
#histList .ucard.lost { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 20px rgba(8,10,22,.16), inset 0 0 42px rgba(255,122,122,.055) !important; }

/* ============================================================
   3. HISTORY SUB-TABS — readable count badge on the active tab
   (subtle slate chip, lighter than the tab, white number)
   ============================================================ */
#histSub .hist-sub.on .hs-n,
.hist-sub.on .hs-n {
  background: rgba(35, 39, 60, .55) !important;
  color: #f2f4fd !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22) !important;
}
#histSub .hist-sub .hs-n {
  background: #2b2f47 !important;
  color: #c6cbe2 !important;
  box-shadow: none !important;
}

/* ============================================================
   4. WITHDRAWAL EXPANDED DETAILS — separated cards
   The entry card stays on top; the 5 info cells are standalone
   cards in a row below it, visually linked only by the entry's
   left rarity rail continuing down.
   ============================================================ */
#ipane-wd .wd-history-entry {
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
/* rarity rail spans BOTH the row card and the cards row below */
#ipane-wd .wd-history-entry::before {
  top: 10px !important;
  bottom: 10px !important;
}
#ipane-wd .wd-hist-row {
  background: #343853 !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 20px rgba(8,10,22,.18) !important;
  margin-left: 10px !important;   /* clear of the rarity rail on the far left */
  width: calc(100% - 10px) !important;
  box-sizing: border-box !important;
}
#ipane-wd .wd-hist-row:hover { background: #3a3f5c !important; }
#ipane-wd .wd-hist-details {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 96px !important;
  gap: 10px !important;
  padding: 10px 0 0 10px !important;  /* align the card row with the card above */
  background: transparent !important;
  border: 0 !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  min-height: 0 !important;
}
#ipane-wd .wdh-detail-cell {
  min-width: 0 !important;
  height: 96px !important;
  min-height: 96px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 8px !important;
  background: #3a3e5c !important;
  border: 0 !important;
  border-right: 0 !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
  box-sizing: border-box !important;
}
#ipane-wd .wdh-detail-cell small {
  color: #9ba0c0 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
#ipane-wd .wdh-detail-art {
  width: 100% !important;
  height: 56px !important;
  display: grid !important;
  place-items: center !important;
}
#ipane-wd .wdh-detail-art img {
  max-width: 86px !important;
  max-height: 54px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 7px 8px rgba(0,0,0,.35)) !important;
}
#ipane-wd .wdh-detail-art img[alt="Аватар для вывода"] {
  width: 52px !important;
  height: 52px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
}
#ipane-wd .wdh-detail-value b { color: #eef0fb !important; font-size: 16px !important; }
#ipane-wd .wdh-detail-value.accent b { color: #ffd479 !important; }

/* Collapse control: same-height cell, plain chevron — no disc.
   The chevron is anchored exactly on the button's middle: the
   pseudo-element's own box is centered at 50%/50% and only rotated
   (no extra offset), so the ⌃ sits dead-center both axes. */
#ipane-wd .wdh-collapse {
  position: relative !important;
  height: 96px !important;
  min-height: 96px !important;
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  background: #3a3e5c !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
  color: #b7abf9 !important;
  font-size: 0 !important;               /* hide the text glyph */
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: background .18s ease, color .18s ease !important;
}
#ipane-wd .wdh-collapse::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 14px !important;
  height: 14px !important;
  border-top: 2.4px solid currentColor !important;
  border-right: 2.4px solid currentColor !important;
  border-radius: 1.5px !important;
  /* rotate about the pseudo-element's own center so the shape stays
     centered on the button's exact middle — no optical offset */
  transform: translate(-50%, -50%) rotate(-45deg) !important;
  transform-origin: center !important;
  margin: 0 !important;
}
#ipane-wd .wdh-collapse:hover {
  background: #41466a !important;
  color: #e6e0ff !important;
}

/* Status icon by state (JS adds .is-*) */
#ipane-wd .whr-state.is-completed {
  background: rgba(61,220,132,.12) !important;
  color: #3ddc84 !important;
}
#ipane-wd .whr-state.is-approved {
  background: rgba(159,143,248,.14) !important;
  color: #b7abf9 !important;
}
#ipane-wd .whr-state.is-rejected {
  background: rgba(255,122,122,.12) !important;
  color: #ff8f8f !important;
}
#ipane-wd .whr-state.is-pending {
  background: rgba(255,201,79,.12) !important;
  color: #ffd479 !important;
}

/* Mobile: the expanded withdrawal details (4 cells + collapse) can't fit in one
   5-column row — wrap to 2 columns and let the collapse button span full width. */
@media (max-width: 620px) {
  #ipane-wd .wd-hist-details {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 8px 0 0 10px !important;
  }
  #ipane-wd .wdh-detail-cell {
    height: 84px !important;
    min-height: 84px !important;
  }
  #ipane-wd .wdh-collapse {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 10px !important;
  }
}

/* Upgrade history: amount won beside «Выигрыш». */
#view-inv .uc-foot .uc-res .uc-won,
#histList .uc-foot .uc-res .uc-won { color: inherit; font-weight: 800; white-space: nowrap; }

/* ============================================================
   DEPOSIT PAGE + WITHDRAWAL-UNAVAILABLE MODAL — WELVURA FINAL
   Owns every .deposit-* and .wd-unavailable-* selector.
   Flat nested Welvura surfaces, Rubik UI, gold×violet duotone,
   zero one-pixel outlines. MUST load last in index.html.
   ============================================================ */

#view-deposit {
  --dp-card: #2e314a;
  --dp-sub: #383b5a;
  --dp-inset: #26293f;
  --dp-text: #f8f8fc;
  --dp-soft: #c1c5dc;
  --dp-muted: #858aa8;
}

/* ---------- page frame ---------- */
#view-deposit .deposit-page {
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 8px 4px 48px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#view-deposit .deposit-page-title {
  margin: 0 0 16px !important;
  padding: 0 2px !important;
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 12px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#view-deposit .deposit-page-title::after { display: none !important; }
#view-deposit .deposit-page-title > span {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--grad-btn) !important;
  color: #fff !important;
  box-shadow: 0 7px 16px rgba(126, 105, 239, .3) !important;
}
#view-deposit .deposit-page-title > span svg { width: 20px !important; height: 20px !important; }
#view-deposit .deposit-page-title h1 {
  margin: 0 !important;
  font: 700 clamp(20px, 2.6vw, 26px)/1.05 Rubik, sans-serif !important;
  letter-spacing: -.01em !important;
  text-transform: uppercase !important;
  color: #fff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  filter: none !important;
}

#view-deposit .deposit-page-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important;
  gap: 12px !important;
  align-items: start !important;
}
#view-deposit .deposit-checkout-column {
  display: contents !important;
}

/* ---------- shared card surfaces ---------- */
#view-deposit .deposit-payments-panel,
#view-deposit .deposit-amount-panel {
  position: relative !important;
  margin: 0 !important;
  padding: 16px !important;
  background: var(--dp-card) !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
#view-deposit .deposit-payments-panel {
  grid-column: 1 !important;
  grid-row: 1 / span 4 !important;
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
}
#view-deposit .deposit-amount-panel {
  grid-column: 2 !important;
  grid-row: 1 !important;
}
#view-deposit .deposit-promo-row {
  grid-column: 2 !important;
  grid-row: 2 !important;
}
#view-deposit .deposit-page-terms {
  grid-column: 2 !important;
  grid-row: 3 !important;
}
#view-deposit .deposit-page-submit {
  grid-column: 2 !important;
  grid-row: 4 !important;
}
#view-deposit .deposit-page-note {
  display: none !important;
}
#view-deposit .deposit-payments-panel::before,
#view-deposit .deposit-payments-panel::after,
#view-deposit .deposit-amount-panel::before,
#view-deposit .deposit-amount-panel::after {
  display: none !important;
  content: none !important;
}

/* ---------- 01 · payment methods ---------- */
#view-deposit .deposit-block-title {
  margin: 0 0 13px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#view-deposit .deposit-block-title > span {
  display: none !important;
}
#view-deposit .deposit-block-title h2 {
  margin: 0 !important;
  font: 600 14.5px/1.2 Rubik, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #fff !important;
}
#view-deposit .deposit-block-title small {
  display: block !important;
  margin-top: 2px !important;
  font: 400 11.5px/1.3 Rubik, sans-serif !important;
  color: var(--dp-muted) !important;
}

#view-deposit .deposit-page-methods {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
#view-deposit .deposit-page-method {
  position: relative !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 10px 13px !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--dp-sub) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background .18s ease, box-shadow .18s ease !important;
}
#view-deposit .deposit-page-method:hover { background: #3e4262 !important; }
#view-deposit .deposit-page-method input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* custom radio */
#view-deposit .deposit-check {
  order: -1 !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  border: 1.5px solid rgba(255, 255, 255, .22) !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: border-color .15s ease, background .15s ease !important;
}
#view-deposit .deposit-check::after {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: transparent !important;
  transition: background .15s ease !important;
}
#view-deposit .deposit-page-method:has(input:checked) {
  background: color-mix(in srgb, var(--wv-violet) 14%, var(--dp-sub)) !important;
  box-shadow: inset 0 -3px 0 var(--wv-violet) !important;
}
#view-deposit .deposit-page-method:has(input:checked) .deposit-check {
  border-color: var(--wv-violet) !important;
  background: var(--wv-violet) !important;
  box-shadow: none !important;
}
#view-deposit .deposit-page-method:has(input:checked) .deposit-check::after { background: #fff !important; }

#view-deposit .deposit-method-logo {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
#view-deposit .deposit-method-logo svg { width: 22px !important; height: 22px !important; }
#view-deposit .deposit-logo-sbp { background: rgba(255, 255, 255, .08) !important; }
#view-deposit .deposit-logo-stars { background: rgba(255, 180, 0, .14) !important; }
#view-deposit .deposit-logo-crypto { background: rgba(247, 147, 26, .16) !important; }
#view-deposit .deposit-page-method span:last-child {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}
#view-deposit .deposit-page-method b {
  font: 600 13.5px/1.15 Rubik, sans-serif !important;
  color: #fff !important;
  letter-spacing: 0 !important;
}
#view-deposit .deposit-page-method small {
  font: 400 11px/1.25 Rubik, sans-serif !important;
  color: var(--dp-muted) !important;
}

/* ---------- promo row (compact, below amount card) ---------- */
#view-deposit .deposit-promo-row {
  margin: 0 !important;
  padding: 10px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  background: var(--dp-card) !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
#view-deposit .deposit-promo-row label {
  margin: 0 !important;
  height: 40px !important;
  padding: 0 13px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--dp-inset) !important;
  box-shadow: none !important;
}
#view-deposit .deposit-promo-row label > span {
  color: var(--wv-violet) !important;
  font: 700 14px/1 Rubik, sans-serif !important;
}
#view-deposit .deposit-promo-row input {
  flex: 1 !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--dp-text) !important;
  font: 500 13px/1.2 Rubik, sans-serif !important;
  box-shadow: none !important;
}
#view-deposit .deposit-promo-row button {
  height: 40px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--dp-sub) !important;
  color: var(--dp-soft) !important;
  font: 700 11px/1 Rubik, sans-serif !important;
  letter-spacing: .07em !important;
  box-shadow: none !important;
  transition: background .18s ease, color .18s ease !important;
}
#view-deposit .deposit-promo-row button:hover { background: #43486a !important; color: #fff !important; }

/* ---------- amount panel ---------- */
#view-deposit .deposit-amount-title {
  margin: 0 0 12px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: transparent !important;
  border: 0 !important;
}
#view-deposit .deposit-amount-title h2 {
  margin: 0 !important;
  font: 700 15px/1.1 Rubik, sans-serif !important;
  letter-spacing: .03em !important;
  color: #fff !important;
}
#view-deposit .deposit-amount-title small {
  font: 500 11.5px/1.2 Rubik, sans-serif !important;
  letter-spacing: .06em !important;
  color: var(--dp-muted) !important;
}
#view-deposit .deposit-amount-title small b { color: var(--gold) !important; font-weight: 700 !important; }

#view-deposit .deposit-page-presets {
  margin: 0 0 11px !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
#view-deposit .deposit-page-presets button {
  height: 38px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--dp-sub) !important;
  color: var(--dp-soft) !important;
  font: 600 11.5px/1 Rubik, sans-serif !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
#view-deposit .deposit-page-presets button:hover {
  background: #43486a !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}
#view-deposit .deposit-page-presets button.on {
  background: var(--grad-btn) !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(126, 105, 239, .3) !important;
}

#view-deposit .deposit-page-input {
  margin: 0 !important;
  height: 50px !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--dp-inset) !important;
  box-shadow: none !important;
  transition: box-shadow .18s ease !important;
}
#view-deposit .deposit-page-input:focus-within {
  box-shadow: 0 0 0 2px rgba(159, 143, 248, .4) !important;
}
#view-deposit .deposit-coin {
  display: none !important;
}
#view-deposit .deposit-page-input input {
  flex: 1 !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font: 700 20px/1 Rubik, sans-serif !important;
  box-shadow: none !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}
#view-deposit .deposit-page-input input::-webkit-outer-spin-button,
#view-deposit .deposit-page-input input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
#view-deposit .deposit-page-input em {
  font: 700 17px/1 Rubik, sans-serif !important;
  font-style: normal !important;
  color: var(--gold) !important;
}
#view-deposit .deposit-input-help {
  display: block !important;
  margin: 7px 2px 0 !important;
  font: 400 11px/1.3 Rubik, sans-serif !important;
  color: var(--dp-muted) !important;
}

#view-deposit .deposit-bonus-pill {
  margin: 11px 0 0 !important;
  padding: 9px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(56, 210, 138, .1) !important;
  box-shadow: none !important;
}
#view-deposit .deposit-bonus-pill[hidden] { display: flex !important; }
#view-deposit .deposit-bonus-pill i {
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--wv-success) !important;
  color: #0c2417 !important;
  font: 800 10.5px/1 Rubik, sans-serif !important;
  font-style: normal !important;
}
#view-deposit .deposit-bonus-pill span {
  font: 600 12px/1.3 Rubik, sans-serif !important;
  color: #7fe3b2 !important;
}

#view-deposit .deposit-page-total {
  margin: 11px 0 0 !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--dp-sub) !important;
  box-shadow: none !important;
}
#view-deposit .deposit-page-total span {
  font: 700 10px/1.3 Rubik, sans-serif !important;
  letter-spacing: .08em !important;
  color: var(--dp-muted) !important;
}
#view-deposit .deposit-page-total output {
  font: 800 20px/1 Rubik, sans-serif !important;
  color: var(--wv-success) !important;
}

/* terms */
#view-deposit .deposit-page-terms {
  margin: 0 !important;
  padding: 2px 4px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  background: transparent !important;
  border: 0 !important;
}
#view-deposit .deposit-page-terms input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
}
#view-deposit .deposit-page-terms i {
  animation: none !important;
  filter: none !important;
  position: relative !important;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #2a2d44 !important;
  box-shadow: inset 0 0 0 1.5px #5a6088 !important;
  transition: background .18s ease, box-shadow .18s ease !important;
}
#view-deposit .deposit-page-terms i::before,
#view-deposit .deposit-page-terms i::after {
  content: none !important;
}
#view-deposit .deposit-page-terms:has(input:checked) i {
  background: linear-gradient(135deg, #a34ef4, #7265fd) !important;
  box-shadow: none !important;
}
#view-deposit .deposit-page-terms:has(input:checked) i::before {
  content: "" !important;
  width: 10px !important;
  height: 6px !important;
  margin-top: -1px !important;
  border: solid #fff !important;
  border-width: 0 0 2px 2px !important;
  border-radius: 0 !important;
  background: none !important;
  transform: rotate(-45deg) !important;
  opacity: 1 !important;
}
#view-deposit .deposit-page-terms:has(input:focus-visible) i {
  outline: 2px solid #d9ceff !important;
  outline-offset: 3px !important;
}
#view-deposit .deposit-page-terms:has(input:disabled) {
  cursor: not-allowed !important;
}
#view-deposit .deposit-page-terms:has(input:disabled) i {
  opacity: .5 !important;
}
#view-deposit .deposit-page-terms span {
  font: 400 12px/1.4 Rubik, sans-serif !important;
  color: var(--dp-soft) !important;
}
#view-deposit .deposit-page-terms button {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--gold) !important;
  font: 600 12px/1.4 Rubik, sans-serif !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
#view-deposit .deposit-page-terms button:hover { text-decoration: underline !important; }

/* ---------- submit ---------- */
#view-deposit .deposit-page-submit {
  width: 100% !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--grad-btn) !important;
  color: #fff !important;
  font: 700 13.5px/1 Rubik, sans-serif !important;
  letter-spacing: .09em !important;
  box-shadow: 0 9px 22px rgba(126, 105, 239, .34) !important;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease !important;
}
#view-deposit .deposit-page-submit svg { width: 19px !important; height: 19px !important; }
#view-deposit .deposit-page-submit:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  filter: brightness(1.06) !important;
  box-shadow: 0 12px 26px rgba(126, 105, 239, .4) !important;
}
#view-deposit .deposit-page-submit:disabled {
  background: #43465f !important;
  color: #777b98 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}
/* Payment status panel: exists only while an invoice is unfinished (auth-app.js PaymentStatus). */
#view-deposit .deposit-payment-status { display: grid !important; gap: 12px !important; grid-column: 2 !important; grid-row: 5 !important; min-width: 0 !important; }
#view-deposit .deposit-payment-status:not(:has(> .ps:not([hidden]))) { display: none !important; }
#view-deposit .ps {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  background: var(--dp-card) !important;
  color: var(--dp-text) !important;
  font: 400 13px/1.45 Rubik, sans-serif !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  --ps-c: #c4b5fd;
}
#view-deposit .ps[hidden] { display: none !important; }
#view-deposit .ps[data-phase="offline"], #view-deposit .ps[data-phase="unconfirmed"], #view-deposit .ps[data-phase="review"], #view-deposit .ps[data-phase="signin"] { --ps-c: #f5b642; }
#view-deposit .ps[data-phase="credited"] { --ps-c: #3ddc84; }
#view-deposit .ps[data-phase="expired"], #view-deposit .ps[data-phase="failed"], #view-deposit .ps[data-phase="refunded"], #view-deposit .ps[data-phase="closed"] { --ps-c: #9ea7b8; }
#view-deposit .ps-head { display: flex !important; align-items: center !important; gap: 9px !important; min-width: 0 !important; }
#view-deposit .ps-ind { display: block !important; flex: 0 0 8px !important; width: 8px !important; height: 8px !important; border-radius: 50% !important; background: var(--ps-c) !important; }
#view-deposit .ps.is-live .ps-ind {
  flex-basis: 12px !important; width: 12px !important; height: 12px !important;
  background: conic-gradient(var(--ps-c) 0 28%, color-mix(in srgb, var(--ps-c) 28%, transparent) 0) !important;
  -webkit-mask: radial-gradient(circle, transparent 3.5px, #000 4px);
  mask: radial-gradient(circle, transparent 3.5px, #000 4px);
  animation: ps-spin 1s linear infinite;
}
@keyframes ps-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #view-deposit .ps.is-live .ps-ind { animation: none; } }
#view-deposit .ps-title { font: 700 12px/1.2 Rubik, sans-serif !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--ps-c) !important; }
#view-deposit .ps-sum { margin-left: auto !important; white-space: nowrap !important; font: 500 13px/1.2 Rubik, sans-serif !important; color: var(--dp-soft) !important; }
#view-deposit .ps-sum b { color: #ffcb47 !important; font-weight: 700 !important; }
#view-deposit .ps-text { margin: 0 !important; color: var(--dp-soft) !important; }
#view-deposit .ps-actions { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
#view-deposit .ps-actions[hidden], #view-deposit .ps-btn[hidden] { display: none !important; }
#view-deposit .ps-btn {
  flex: 1 1 150px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
  min-height: 40px !important; padding: 0 14px !important; border: 0 !important; border-radius: 10px !important;
  font: 600 12.5px/1 Rubik, sans-serif !important; color: #fff !important; text-decoration: none !important;
  background: var(--dp-sub) !important; cursor: pointer !important;
}
#view-deposit .ps-btn.pri { background: var(--wv-violet-2, #8470ec) !important; }
#view-deposit .ps-btn:hover { filter: brightness(1.08) !important; }
#view-deposit .ps-btn:focus-visible { outline: 2px solid #aa96f4 !important; outline-offset: 2px !important; }
@media (max-width: 620px) { #view-deposit .ps-btn { min-height: 44px !important; } }
#view-deposit .deposit-page-note {
  display: none !important;
}
#view-deposit .deposit-payments-panel::before,
#view-deposit .deposit-payments-panel::after,
#view-deposit .deposit-amount-panel::before,
#view-deposit .deposit-amount-panel::after {
  display: none !important;
  content: none !important;
}

/* ---------- 01 · payment methods ---------- */
#view-deposit .deposit-block-title {
  margin: 0 0 13px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#view-deposit .deposit-block-title > span {
  display: none !important;
}
#view-deposit .deposit-block-title h2 {
  margin: 0 !important;
  font: 600 14.5px/1.2 Rubik, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #fff !important;
}
#view-deposit .deposit-block-title small {
  display: block !important;
  margin-top: 2px !important;
  font: 400 11.5px/1.3 Rubik, sans-serif !important;
  color: var(--dp-muted) !important;
}

#view-deposit .deposit-page-methods {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
#view-deposit .deposit-page-method {
  position: relative !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 10px 13px !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--dp-sub) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background .18s ease, box-shadow .18s ease !important;
}
#view-deposit .deposit-page-method:hover { background: #3e4262 !important; }
#view-deposit .deposit-page-method input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* custom radio */
#view-deposit .deposit-check {
  order: -1 !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  border: 1.5px solid rgba(255, 255, 255, .22) !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: border-color .15s ease, background .15s ease !important;
}
#view-deposit .deposit-check::after {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: transparent !important;
  transition: background .15s ease !important;
}
#view-deposit .deposit-page-method:has(input:checked) {
  background: color-mix(in srgb, var(--wv-violet) 14%, var(--dp-sub)) !important;
  box-shadow: inset 0 -3px 0 var(--wv-violet) !important;
}
#view-deposit .deposit-page-method:has(input:checked) .deposit-check {
  border-color: var(--wv-violet) !important;
  background: var(--wv-violet) !important;
  box-shadow: none !important;
}
#view-deposit .deposit-page-method:has(input:checked) .deposit-check::after { background: #fff !important; }

#view-deposit .deposit-method-logo {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
#view-deposit .deposit-method-logo svg { width: 22px !important; height: 22px !important; }
#view-deposit .deposit-logo-sbp { background: rgba(255, 255, 255, .08) !important; }
#view-deposit .deposit-logo-stars { background: rgba(255, 180, 0, .14) !important; }
#view-deposit .deposit-logo-crypto { background: rgba(247, 147, 26, .16) !important; }
#view-deposit .deposit-page-method span:last-child {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}
#view-deposit .deposit-page-method b {
  font: 600 13.5px/1.15 Rubik, sans-serif !important;
  color: #fff !important;
  letter-spacing: 0 !important;
}
#view-deposit .deposit-page-method small {
  font: 400 11px/1.25 Rubik, sans-serif !important;
  color: var(--dp-muted) !important;
}

/* ---------- promo row (compact, below amount card) ---------- */
#view-deposit .deposit-promo-row {
  margin: 0 !important;
  padding: 10px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  background: var(--dp-card) !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
#view-deposit .deposit-promo-row label {
  margin: 0 !important;
  height: 40px !important;
  padding: 0 13px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--dp-inset) !important;
  box-shadow: none !important;
}
#view-deposit .deposit-promo-row label > span {
  color: var(--wv-violet) !important;
  font: 700 14px/1 Rubik, sans-serif !important;
}
#view-deposit .deposit-promo-row input {
  flex: 1 !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--dp-text) !important;
  font: 500 13px/1.2 Rubik, sans-serif !important;
  box-shadow: none !important;
}
#view-deposit .deposit-promo-row button {
  height: 40px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--dp-sub) !important;
  color: var(--dp-soft) !important;
  font: 700 11px/1 Rubik, sans-serif !important;
  letter-spacing: .07em !important;
  box-shadow: none !important;
  transition: background .18s ease, color .18s ease !important;
}
#view-deposit .deposit-promo-row button:hover { background: #43486a !important; color: #fff !important; }

/* ---------- amount panel ---------- */
#view-deposit .deposit-amount-title {
  margin: 0 0 12px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: transparent !important;
  border: 0 !important;
}
#view-deposit .deposit-amount-title h2 {
  margin: 0 !important;
  font: 700 15px/1.1 Rubik, sans-serif !important;
  letter-spacing: .03em !important;
  color: #fff !important;
}
#view-deposit .deposit-amount-title small {
  font: 500 11.5px/1.2 Rubik, sans-serif !important;
  letter-spacing: .06em !important;
  color: var(--dp-muted) !important;
}
#view-deposit .deposit-amount-title small b { color: var(--gold) !important; font-weight: 700 !important; }

#view-deposit .deposit-page-presets {
  margin: 0 0 11px !important;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
#view-deposit .deposit-page-presets button {
  height: 38px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--dp-sub) !important;
  color: var(--dp-soft) !important;
  font: 600 11.5px/1 Rubik, sans-serif !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
#view-deposit .deposit-page-presets button:hover {
  background: #43486a !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}
#view-deposit .deposit-page-presets button.on {
  background: var(--grad-btn) !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(126, 105, 239, .3) !important;
}

#view-deposit .deposit-page-input {
  margin: 0 !important;
  height: 50px !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--dp-inset) !important;
  box-shadow: none !important;
  transition: box-shadow .18s ease !important;
}
#view-deposit .deposit-page-input:focus-within {
  box-shadow: 0 0 0 2px rgba(159, 143, 248, .4) !important;
}
#view-deposit .deposit-coin {
  display: none !important;
}
#view-deposit .deposit-page-input input {
  flex: 1 !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font: 700 20px/1 Rubik, sans-serif !important;
  box-shadow: none !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}
#view-deposit .deposit-page-input input::-webkit-outer-spin-button,
#view-deposit .deposit-page-input input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
#view-deposit .deposit-page-input em {
  font: 700 17px/1 Rubik, sans-serif !important;
  font-style: normal !important;
  color: var(--gold) !important;
}
#view-deposit .deposit-input-help {
  display: block !important;
  margin: 7px 2px 0 !important;
  font: 400 11px/1.3 Rubik, sans-serif !important;
  color: var(--dp-muted) !important;
}

#view-deposit .deposit-bonus-pill {
  margin: 11px 0 0 !important;
  padding: 9px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(56, 210, 138, .1) !important;
  box-shadow: none !important;
}
#view-deposit .deposit-bonus-pill[hidden] { display: flex !important; }
#view-deposit .deposit-bonus-pill i {
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--wv-success) !important;
  color: #0c2417 !important;
  font: 800 10.5px/1 Rubik, sans-serif !important;
  font-style: normal !important;
}
#view-deposit .deposit-bonus-pill span {
  font: 600 12px/1.3 Rubik, sans-serif !important;
  color: #7fe3b2 !important;
}

#view-deposit .deposit-page-total {
  margin: 11px 0 0 !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--dp-sub) !important;
  box-shadow: none !important;
}
#view-deposit .deposit-page-total span {
  font: 700 10px/1.3 Rubik, sans-serif !important;
  letter-spacing: .08em !important;
  color: var(--dp-muted) !important;
}
#view-deposit .deposit-page-total output {
  font: 800 20px/1 Rubik, sans-serif !important;
  color: var(--wv-success) !important;
}

/* terms */
#view-deposit .deposit-page-terms {
  margin: 0 !important;
  padding: 2px 4px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  background: transparent !important;
  border: 0 !important;
}
#view-deposit .deposit-page-terms input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
}
#view-deposit .deposit-page-terms i {
  animation: none !important;
  filter: none !important;
  position: relative !important;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #2a2d44 !important;
  box-shadow: inset 0 0 0 1.5px #5a6088 !important;
  transition: background .18s ease, box-shadow .18s ease !important;
}
#view-deposit .deposit-page-terms i::before,
#view-deposit .deposit-page-terms i::after {
  content: none !important;
}
#view-deposit .deposit-page-terms:has(input:checked) i {
  background: linear-gradient(135deg, #a34ef4, #7265fd) !important;
  box-shadow: none !important;
}
#view-deposit .deposit-page-terms:has(input:checked) i::before {
  content: "" !important;
  width: 10px !important;
  height: 6px !important;
  margin-top: -1px !important;
  border: solid #fff !important;
  border-width: 0 0 2px 2px !important;
  border-radius: 0 !important;
  background: none !important;
  transform: rotate(-45deg) !important;
  opacity: 1 !important;
}
#view-deposit .deposit-page-terms:has(input:focus-visible) i {
  outline: 2px solid #d9ceff !important;
  outline-offset: 3px !important;
}
#view-deposit .deposit-page-terms:has(input:disabled) {
  cursor: not-allowed !important;
}
#view-deposit .deposit-page-terms:has(input:disabled) i {
  opacity: .5 !important;
}
#view-deposit .deposit-page-terms span {
  font: 400 12px/1.4 Rubik, sans-serif !important;
  color: var(--dp-soft) !important;
}
#view-deposit .deposit-page-terms button {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--gold) !important;
  font: 600 12px/1.4 Rubik, sans-serif !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
#view-deposit .deposit-page-terms button:hover { text-decoration: underline !important; }

/* ---------- submit ---------- */
#view-deposit .deposit-page-submit {
  width: 100% !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--grad-btn) !important;
  color: #fff !important;
  font: 700 13.5px/1 Rubik, sans-serif !important;
  letter-spacing: .09em !important;
  box-shadow: 0 9px 22px rgba(126, 105, 239, .34) !important;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease !important;
}
#view-deposit .deposit-page-submit svg { width: 19px !important; height: 19px !important; }
#view-deposit .deposit-page-submit:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  filter: brightness(1.06) !important;
  box-shadow: 0 12px 26px rgba(126, 105, 239, .4) !important;
}
#view-deposit .deposit-page-submit:disabled {
  background: #43465f !important;
  color: #777b98 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}
#view-deposit .deposit-page-note {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font: 400 11px/1.4 Rubik, sans-serif !important;
  color: var(--dp-muted) !important;
  background: transparent !important;
  border: 0 !important;
}

/* kill any stray outlines inside the view */
#view-deposit * { border-color: transparent !important; }
#view-deposit .deposit-page-method,
#view-deposit .deposit-page-input,
#view-deposit .deposit-promo-row label,
#view-deposit .deposit-page-terms i {
  border: 0 !important;
}
#view-deposit .deposit-page-terms:has(input:checked) i::before {
  border-color: #fff !important;
}

@media (max-width: 900px) {
  #view-deposit .deposit-page { max-width: 100% !important; }
  #view-deposit .deposit-page-grid { grid-template-columns: 1fr !important; }
  #view-deposit .deposit-payments-panel,
  #view-deposit .deposit-amount-panel,
  #view-deposit .deposit-promo-row,
  #view-deposit .deposit-page-terms,
  #view-deposit .deposit-page-submit,
  #view-deposit .deposit-payment-status,
  #view-deposit .deposit-page-note {
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto !important;
  }
}
@media (max-width: 620px) {
  #view-deposit .deposit-payments-panel,
  #view-deposit .deposit-amount-panel { padding: 14px !important; }
  #view-deposit .deposit-page-presets { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  #view-deposit .deposit-page-presets button { min-height: 44px !important; }
  #view-deposit .deposit-page-total { flex-wrap: wrap !important; gap: 8px !important; }
}
@media (max-width: 480px) {
  #view-deposit .deposit-page-methods { grid-template-columns: 1fr !important; }
}

/* ============================================================
   WITHDRAWAL-UNAVAILABLE MODAL — one Welvura surface, red error
   icon/title (inventory empty-state style), violet support CTA.
   No outlines, no near-black panels.
   ============================================================ */
.wd-unavailable-overlay {
  z-index: 95 !important;
  background: rgba(16, 19, 33, .82) !important;
  backdrop-filter: none !important;
}
.wd-unavailable-card {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  width: min(520px, 100%) !important;
  padding: 46px 44px 40px !important;
  border: 0 !important;
  border-radius: 20px !important;
  text-align: center !important;
  background: #2e314a !important;
  box-shadow: 0 30px 80px rgba(6, 8, 18, .55) !important;
  animation: resultPop .42s var(--ease-spring) both !important;
}
.wd-unavailable-card::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  inset: 0 !important;
  background: radial-gradient(300px 180px at 50% 0%, rgba(159, 143, 248, .13), transparent 70%) !important;
  pointer-events: none !important;
  border: 0 !important;
}
.wd-unavailable-card::after { display: none !important; content: none !important; }

.support-mail-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: #b6a6ff;
}
.support-email {
  display: block;
  padding: 16px 12px;
  border-radius: 13px;
  background: #383b5a;
  color: #c4b5fd;
  font: 600 clamp(15px, 3.8vw, 19px)/1.4 Rubik, sans-serif;
  text-decoration: none;
  text-transform: none;
  overflow-wrap: anywhere;
  transition: background .18s ease;
}
.support-email:hover { background: #40446a; }
.support-email:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .support-card { animation: none !important; }
}

.wd-unavailable-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #858aa8 !important;
  background: #383b5a !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transition: color .18s ease, background .18s ease !important;
}
.wd-unavailable-close:hover {
  color: #fff !important;
  background: #43486a !important;
  transform: none !important;
}

.wd-unavailable-icon {
  width: 76px !important;
  height: 76px !important;
  margin: 0 auto 20px !important;
  display: grid !important;
  place-items: center !important;
  border: 1.5px solid rgba(255, 95, 126, .35) !important;
  border-radius: 50% !important;
  color: #ff5f7e !important;
  background: rgba(255, 95, 126, .12) !important;
  box-shadow: 0 8px 24px rgba(255, 95, 126, .22) !important;
  font: 800 38px/1 Rubik, sans-serif !important;
}

.wd-unavailable-card h2 {
  margin: 0 0 14px !important;
  font: 700 clamp(20px, 3.2vw, 27px)/1.18 Rubik, sans-serif !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: #fff !important;
  filter: none !important;
}
.wd-unavailable-card > p {
  max-width: 400px !important;
  margin: 0 auto 26px !important;
  color: #c1c5dc !important;
  font: 400 15px/1.55 Rubik, sans-serif !important;
}
.wd-unavailable-card > p strong { color: #ff5f7e !important; white-space: nowrap !important; font-weight: 700 !important; }

.wd-unavailable-support {
  width: min(380px, 100%) !important;
  min-height: 56px !important;
  margin: 0 auto !important;
  padding: 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #383b5a !important;
  color: inherit !important;
  box-shadow: none !important;
  transition: background .18s ease, transform .18s ease !important;
}
.wd-unavailable-support:hover {
  transform: translateY(-1px) !important;
  background: #40446a !important;
}
.wd-unavailable-support span {
  color: #9ba0c0 !important;
  font: 400 13px/1.2 Rubik, sans-serif !important;
}
.wd-unavailable-support b {
  color: #b98aff !important;
  font: 600 14px/1.2 Rubik, sans-serif !important;
}
.wd-unavailable-support i {
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: var(--grad-btn) !important;
  box-shadow: 0 6px 16px rgba(126, 105, 239, .35) !important;
  font: 800 15px/1 Rubik, sans-serif !important;
  font-style: normal !important;
}

@media (max-width: 600px) {
  .wd-unavailable-card { padding: 38px 20px 26px !important; border-radius: 16px !important; }
  .wd-unavailable-close { top: 12px !important; right: 12px !important; width: 34px !important; height: 34px !important; }
  .wd-unavailable-icon { width: 66px !important; height: 66px !important; margin-bottom: 17px !important; font-size: 32px !important; }
  .wd-unavailable-card > p { font-size: 14px !important; }
  .wd-unavailable-support { flex-wrap: wrap !important; gap: 5px 9px !important; padding-inline: 13px !important; }
}

/* One-time account notice (app.js syncAccountNotice): same card as the support popup, gold amount, violet button. */
.notice-icon {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  color: #b6a6ff;
}
html .notice-card .notice-icon { color: var(--refresh-accent, #b6a6ff) !important; }
.notice-card > p { margin-bottom: 20px !important; white-space: pre-line !important; overflow-wrap: anywhere !important; }
.notice-amount {
  display: grid;
  gap: 4px;
  margin: 0 auto 22px;
  padding: 14px 12px;
  border-radius: 12px;
  background: #383b5a;
}
.notice-amount[hidden] { display: none !important; }
.notice-amount span { color: #9ba0c0; font: 400 13px/1.2 Rubik, sans-serif; }
.notice-amount b { color: #ffcb47; font: 700 30px/1.15 Benzin, Rubik, sans-serif; letter-spacing: .01em; }
.notice-ok {
  width: min(320px, 100%);
  min-height: 50px;
  margin: 0 auto;
  display: block;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--grad-btn);
  font: 600 15px/1 Rubik, sans-serif;
  cursor: pointer;
}
.notice-ok:hover { filter: brightness(1.06); }

/* ============================================================
   WITHDRAW WIZARD — WELVURA FINAL PASS
   One surface family for the whole #view-withdraw flow:
   steps bar, wizard card, all four tab panels, progress strip
   and the success/process screen. Loads LAST so it wins every
   earlier !important cascade (styles.css / finance-final.css /
   case-withdraw-final.css / deposit-welvura-final.css).
   Surfaces:  card #2e314a → panel #383b5a → cell #30334d → input #26293f
   Item rows/cards reuse the site's --item-card material + rarity wash.
   Text:      #eef0fb / body #c6cbe2 / labels #8e94b0
   Accents:   violet #9f8ff8, purple var(--grad-btn), gold #ffc94f,
              green #35d67f, red #ff7070
   ============================================================ */

#view-withdraw {
  --wd-card:#2e314a;
  --wd-sub:#383b5a;
  --wd-panel-hi:#4a5079;
  --wd-panel-lo:#3d426a;
  --wd-cell:#3a3e5c;
  --wd-input:#26293f;
}

/* ---------- page head ---------- */
.wd-head { margin:0 0 14px !important; padding:0 2px 12px !important; }
.wd-head h1 {
  font:700 clamp(24px,3vw,32px)/1 Rubik,sans-serif !important;
  letter-spacing:-.02em !important;
  text-transform:uppercase !important;
  background:none !important;
  -webkit-background-clip:initial !important;
  background-clip:initial !important;
  color:#fff !important;
}
.wd-head p { color:#8e94b0 !important; font-size:13px !important; }

/* ---------- steps bar: one flat strip, purple active segment ---------- */
.wd-steps {
  margin:0 0 12px !important;
  padding:7px !important;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:6px !important;
  background:var(--wd-card) !important;
  border:0 !important;
  border-radius:14px !important;
  box-shadow:none !important;
}
.wd-step {
  min-height:52px !important;
  flex-direction:row !important;
  gap:9px !important;
  border:0 !important;
  border-radius:10px !important;
  background:var(--wd-sub) !important;
  color:#9fa5c4 !important;
  font:600 13px/1 Rubik,sans-serif !important;
  transition:background .2s ease,color .2s ease,box-shadow .2s ease !important;
}
.wd-step i {
  width:8px !important;
  height:8px !important;
  border:0 !important;
  border-radius:50% !important;
  background:#656b8b !important;
  box-shadow:none !important;
  order:0 !important;
}
.wd-step.on {
  background:var(--grad-btn) !important;
  color:#fff !important;
  box-shadow:0 6px 16px rgba(114,101,253,.28) !important;
}
.wd-step.on i { background:#fff !important; box-shadow:0 0 8px rgba(255,255,255,.65) !important; }
.wd-step.done { background:rgba(159,143,248,.13) !important; color:#c9c1ff !important; }
.wd-step.done i { background:#35d67f !important; box-shadow:0 0 7px rgba(53,214,127,.55) !important; }

/* ---------- wizard card ---------- */
.wd-card {
  padding:26px 28px 24px !important;
  background:var(--wd-card) !important;
  border:0 !important;
  border-radius:18px !important;
  box-shadow:0 20px 50px rgba(6,8,18,.35) !important;
  text-align:left !important;
}
.wd-card h2 {
  margin:0 0 6px !important;
  font:600 20px/1.25 Rubik,sans-serif !important;
  letter-spacing:-.01em !important;
  color:#fff !important;
}
.wd-sub { max-width:none !important; margin:0 0 22px !important; color:#8e94b0 !important; font-size:13.5px !important; text-align:left !important; }

/* ---------- TAB 1 · avatar ---------- */
.wd-avrow {
  gap:16px !important;
  padding:16px !important;
  background:linear-gradient(160deg,var(--wd-panel-hi),var(--wd-panel-lo)) !important;
  border:0 !important;
  border-radius:13px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.wd-avbox {
  width:72px !important;
  height:72px !important;
  border:0 !important;
  border-radius:12px !important;
  background:var(--wd-input) !important;
}
.wd-avbox span { color:var(--wv-violet) !important; font-size:24px !important; }
.wd-avtext b { color:#eef0fb !important; font-size:15px !important; }
.wd-avtext span { color:#8e94b0 !important; font-size:12.5px !important; }
.wd-upload {
  padding:12px 18px !important;
  border:0 !important;
  border-radius:10px !important;
  background:var(--grad-btn) !important;
  color:#fff !important;
  box-shadow:0 7px 18px rgba(114,101,253,.28) !important;
  font:700 13.5px/1 Rubik,sans-serif !important;
  transition:transform .18s ease,filter .18s ease,box-shadow .18s ease !important;
}
.wd-upload:hover { transform:translateY(-1px) !important; filter:brightness(1.06) !important; }
.wd-upload svg { width:15px !important; height:15px !important; }

.wd-last {
  margin-top:10px !important;
  padding:12px 14px !important;
  background:linear-gradient(160deg,var(--wd-panel-hi),var(--wd-panel-lo)) !important;
  border:0 !important;
  border-radius:12px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.wd-lasttext b { color:#eef0fb !important; font-size:13.5px !important; }
.wd-lasttext span { color:#8e94b0 !important; font-size:11.5px !important; }
.wd-avatar-list { gap:8px !important; }
.wd-avatar-choice {
  width:46px !important;
  height:46px !important;
  border:2px solid transparent !important;
  border-radius:10px !important;
  background:var(--wd-input) !important;
  box-shadow:none !important;
}
.wd-avatar-choice img { border-radius:8px !important; }
.wd-avatar-choice:hover {
  border-color:rgba(159,143,248,.55) !important;
  transform:translateY(-1px) !important;
  box-shadow:0 8px 18px rgba(8,10,22,.28) !important;
}
.wd-avatar-choice:focus-visible { outline:2px solid rgba(159,143,248,.6) !important; outline-offset:2px !important; }
.wd-avatar-choice.selected {
  border-color:var(--wv-violet) !important;
  box-shadow:0 0 0 3px rgba(159,143,248,.18),0 0 16px rgba(159,143,248,.3) !important;
}
.wd-avatar-choice.selected .wd-avatar-check {
  display:grid !important;
  border:2px solid var(--wd-card) !important;
  background:var(--grad-btn) !important;
  color:#fff !important;
}

/* ---------- TAB 2 · skin choice: offer rows are true item cards ---------- */
/* the big base containers stay light — same family as the htile cards */
.wd-offer-layout,
.wd-price-layout {
  border:0 !important;
  border-radius:13px !important;
  background:linear-gradient(160deg,var(--wd-sub),color-mix(in srgb,var(--wd-sub) 82%,#4a4f78)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.wd-offer-grid { gap:8px !important; background:transparent !important; }
.wd-offer {
  position:relative !important;
  overflow:hidden !important;
  padding:10px 13px !important;
  border:0 !important;
  border-radius:11px !important;
  background-color:color-mix(in srgb,var(--wd-rarity,var(--wv-violet)) 9%,var(--wd-panel-hi)) !important;
  background-image:
    url("ui/offgrader-mark-subtle.svg"),
    linear-gradient(155deg,rgba(255,255,255,.05),transparent 46%) !important;
  background-position:center 50%,0 0 !important;
  background-size:92px auto,auto !important;
  background-repeat:no-repeat,no-repeat !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
  transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease !important;
}
/* rarity wash covers the whole card and fades out smoothly */
.wd-offer::before {
  inset:0 !important;
  background:
    radial-gradient(ellipse 120% 90% at 50% 118%,color-mix(in srgb,var(--wd-rarity,var(--wv-violet)) 52%,transparent),transparent 68%),
    linear-gradient(180deg,color-mix(in srgb,var(--wd-rarity,var(--wv-violet)) 9%,transparent) 0%,transparent 42%,color-mix(in srgb,var(--wd-rarity,var(--wv-violet)) 16%,transparent) 100%) !important;
  opacity:.9 !important;
}
.wd-offer:hover {
  transform:translateX(2px) !important;
  background-color:color-mix(in srgb,var(--wd-rarity,var(--wv-violet)) 12%,#4a4f78) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 22px color-mix(in srgb,var(--wd-rarity,var(--wv-violet)) 16%,rgba(10,12,23,.3)) !important;
}
.wd-offer-copy { position:relative !important; z-index:1 !important; }
.wd-offer-copy small { color:#9299bb !important; font-size:10px !important; }
.wd-offer-copy b { color:#fff !important; font-size:13px !important; }
.wd-offer-radio {
  position:relative !important;
  z-index:1 !important;
  width:16px !important;
  height:16px !important;
  border:2px solid #4a506d !important;
  background:transparent !important;
  box-shadow:none !important;
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease !important;
}
.wd-offer.selected {
  background-color:color-mix(in srgb,var(--wd-rarity,var(--wv-violet)) 14%,#3b3e5c) !important;
  box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--wd-rarity,var(--wv-violet)) 75%,transparent),0 10px 24px color-mix(in srgb,var(--wd-rarity,var(--wv-violet)) 20%,rgba(10,12,23,.32)) !important;
}
.wd-offer.selected .wd-offer-radio {
  border-color:var(--wd-rarity,var(--wv-violet)) !important;
  background:var(--wd-rarity,var(--wv-violet)) !important;
  box-shadow:inset 0 0 0 3px #333650 !important;
}
.wd-offer:focus-visible {
  outline:0 !important;
  box-shadow:inset 0 0 0 1.5px rgba(159,143,248,.75),0 0 0 3px rgba(159,143,248,.18) !important;
}

.wd-offer-preview {
  border:0 !important;
  border-radius:13px !important;
  background-color:var(--wd-sub) !important;
  background-image:
    url("ui/offgrader-mark-subtle.svg"),
    linear-gradient(160deg,var(--wd-panel-hi),var(--wd-panel-lo)) !important;
  background-position:center 44%,0 0 !important;
  background-size:56% auto,auto !important;
  background-repeat:no-repeat,no-repeat !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.wd-offer-preview-placeholder { color:#8e94b0 !important; }
.wd-offer-preview-placeholder svg { color:var(--wv-violet) !important; opacity:.5 !important; }
.wd-offer-preview-weapon { color:#9aa1bf !important; }
.wd-offer-preview > b { color:#fff !important; }

/* ---------- TAB 3 · price ---------- */
.wd-price-layout { gap:14px !important; }
.wd-price-fields {
  padding:16px !important;
  background:linear-gradient(160deg,var(--wd-panel-hi),var(--wd-panel-lo)) !important;
  border:0 !important;
  border-radius:13px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.wd-price-fields > label { color:#aeb3cd !important; font-size:12px !important; font-weight:600 !important; }
.wd-price-copy-field,
.wd-pattern-field {
  min-height:56px !important;
  border:0 !important;
  border-radius:10px !important;
  background:var(--wd-input) !important;
  box-shadow:none !important;
  transition:box-shadow .18s ease !important;
}
.wd-price-copy-field:focus-within,
.wd-pattern-field:focus-within {
  box-shadow:inset 0 0 0 1.5px rgba(159,143,248,.55),0 0 0 3px rgba(159,143,248,.1) !important;
}
.wd-field-coin {
  width:auto !important;
  height:auto !important;
  min-width:30px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#ffd479 !important;
  font:900 16px/1 Rubik,sans-serif !important;
}
.wd-price-copy-field input { color:#ffd479 !important; }
.wd-price-copy-field button {
  border:0 !important;
  border-radius:8px !important;
  color:#9fa5c4 !important;
  background:transparent !important;
  transition:color .18s ease,background .18s ease !important;
}
.wd-price-copy-field button:hover { color:var(--wv-violet) !important; background:rgba(159,143,248,.14) !important; }
.wd-pattern-field { color:var(--wv-violet) !important; }
.wd-pattern-field input { color:#eef0fb !important; }
.wd-pattern-field input::placeholder { color:#5d6484 !important; }
.wd-price-fields > small { color:#747c9e !important; font-size:10.5px !important; }

.wd-price-skin {
  border:0 !important;
  border-radius:13px !important;
  background-color:var(--wd-sub) !important;
  background-image:
    url("ui/offgrader-mark-subtle.svg"),
    radial-gradient(ellipse at 50% 100%,rgba(114,101,253,.3),transparent 70%),
    linear-gradient(160deg,var(--wd-panel-hi),var(--wd-panel-lo)) !important;
  background-position:center 40%,0 0,0 0 !important;
  background-size:56% auto,auto,auto !important;
  background-repeat:no-repeat,no-repeat,no-repeat !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.wd-price-skin span:not(.wd-price-skin-glow) { color:#9aa1bf !important; }
.wd-price-skin b { color:#fff !important; }

.wd-confirmations {
  margin:12px 0 0 !important;
  padding:8px !important;
  gap:6px !important;
  background:var(--wd-sub) !important;
  border:0 !important;
  border-radius:13px !important;
}
.wd-confirm-row {
  min-height:46px !important;
  padding:10px 13px !important;
  border:0 !important;
  border-radius:9px !important;
  background:var(--wd-cell) !important;
  color:#c6cbe2 !important;
  font-size:12.5px !important;
}
.wd-confirm-row:hover { background:#363a56 !important; }
.wd-confirm-row i {
  width:18px !important;
  height:18px !important;
  flex:0 0 18px !important;
  border:0 !important;
  border-radius:5px !important;
  background:var(--wd-input) !important;
  box-shadow:none !important;
  transition:background .18s ease !important;
}
.wd-confirm-row input:checked + i { background:var(--grad-btn) !important; }
.wd-confirm-row input:checked + i::after {
  left:6px !important;
  top:2px !important;
  width:4px !important;
  height:8px !important;
  border-color:#fff !important;
  border-width:0 2px 2px 0 !important;
}
.wd-confirm-row input:focus-visible + i { outline:2px solid rgba(159,143,248,.55) !important; outline-offset:2px !important; }

/* ---------- actions ---------- */
.wd-actions { margin-top:20px !important; gap:10px !important; }
.wd-next {
  flex:1 !important;
  min-height:54px !important;
  margin-top:0 !important;
  border:0 !important;
  border-radius:12px !important;
  box-shadow:0 10px 26px rgba(163,78,244,.3) !important;
  font:800 14px/1 Rubik,sans-serif !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
}
.wd-back {
  width:54px !important;
  min-height:54px !important;
  border:0 !important;
  border-radius:12px !important;
  background:var(--wd-sub) !important;
  color:#c6cbe2 !important;
  font-size:19px !important;
  transition:background .18s ease,color .18s ease,transform .18s ease !important;
}
.wd-back:hover { background:#43486a !important; color:#fff !important; transform:none !important; }
.wd-next:disabled { opacity:1 !important; color:#9aa1c2 !important; background:#3a3f5c !important; box-shadow:none !important; filter:none !important; cursor:not-allowed; }

/* ---------- progress strip (item + 3 step tiles) ---------- */
.wd-skinrow { margin:14px 0 0 !important; gap:6px !important; }
.wd-skin-tile,
.wd-steptile,
.wd-skin-arrow {
  min-height:116px !important;
  background:var(--wd-card) !important;
  border:0 !important;
  box-shadow:none !important;
}
.wd-skin-tile { border-radius:14px 8px 8px 14px !important; }
#view-withdraw #wdSkinCard .wd-skin-tile { background-image:none !important; }
#view-withdraw #wdSkinCard .wd-skin-art {
  background: url("ui/offgrader-mark-subtle.svg") center / auto 48px no-repeat !important;
}
.wd-skin-tile::after {
  height:3px !important;
  border-radius:3px 3px 0 0 !important;
  background:var(--rc,var(--wv-violet)) !important;
  box-shadow:0 0 12px color-mix(in srgb,var(--rc,var(--wv-violet)) 60%,transparent) !important;
}
.wd-skin-tile b { color:#f2f4fd !important; font-size:11.5px !important; }
.wd-skin-arrow {
  border-radius:8px !important;
  background:transparent !important;
  color:#7c83a5 !important;
}
.wd-steptile {
  border-radius:8px !important;
  color:#767d9e !important;
  display:grid !important;
  grid-template-rows:46px 12px;
  align-content:center;
  justify-items:center;
  gap:7px !important;
  justify-content:center !important;
}
.wd-skinrow:has(.wd-steptile-value:not([hidden])) .wd-steptile { grid-template-rows:46px 12px 12px; }
.wd-steptile-lb, .wd-steptile-value { line-height:12px; }
.wd-steptile:last-child { border-radius:8px 14px 14px 8px !important; }
.wd-steptile::after { inset:auto 14px 0 !important; height:3px !important; border-radius:3px 3px 0 0 !important; }
.wd-steptile-ic {
  position:relative !important;
  flex:0 0 46px;
  width:46px !important;
  height:46px !important;
  border-radius:12px !important;
  background:var(--wd-cell) !important;
}
#view-withdraw .wd-avatar-step { display:block !important; padding:0 !important; overflow:hidden; }
#view-withdraw .wd-avatar-step > img {
  position:absolute !important;
  inset:0 !important;
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  object-fit:cover !important;
  object-position:center !important;
  border-radius:inherit;
  transform:none !important;
}
#view-withdraw .wd-avatar-step > span { position:absolute; inset:0; display:grid; place-items:center; }
#view-withdraw .wd-avatar-step > [hidden] { display:none !important; }
#view-withdraw .wd-akr-icon {
  display:block;
  width:34px;
  height:22px;
  flex-shrink:0;
  color:#9fa5c4;
  background:currentColor;
  -webkit-mask:url("ui/skins/akr-necro.webp") center / contain no-repeat;
  mask:url("ui/skins/akr-necro.webp") center / contain no-repeat;
}
#view-withdraw .wd-offer-preview-placeholder .wd-akr-icon { width:88px; height:44px; }
#view-withdraw .wd-steptile.on .wd-akr-icon,
#view-withdraw .wd-steptile.done .wd-akr-icon { color:#b7abf9; }
#view-withdraw .wd-price-step { background:transparent !important; box-shadow:none !important; }
#view-withdraw .wd-step-gold { color:var(--wv-gold, #ffd479); font-size:26px; font-style:normal; font-weight:800; line-height:1; }
.wd-steptile-ic svg { color:#9fa5c4 !important; opacity:1 !important; }
.wd-steptile-lb { color:#8e94b0 !important; font-size:10px !important; }
.wd-steptile-value { margin-top:0; color:var(--wv-gold) !important; font-size:10.5px !important; }
.wd-steptile.on {
  background:color-mix(in srgb,var(--wv-violet) 11%,var(--wd-card)) !important;
  color:#fff !important;
  box-shadow:none !important;
}
.wd-steptile.on::after {
  background:var(--wv-violet) !important;
  box-shadow:0 0 12px rgba(159,143,248,.6) !important;
}
.wd-steptile.on .wd-steptile-ic { background:rgba(159,143,248,.16) !important; }
.wd-steptile.on .wd-steptile-ic svg { color:#b7abf9 !important; }
.wd-steptile.on .wd-steptile-lb { color:#c9c1ff !important; }
.wd-steptile.done { color:#c9c1ff !important; background:var(--wd-card) !important; }
.wd-steptile.done::after {
  background:var(--wv-violet) !important;
  box-shadow:0 0 10px rgba(159,143,248,.45) !important;
}
.wd-steptile.done .wd-steptile-ic { background:rgba(159,143,248,.12) !important; }
.wd-steptile.done .wd-steptile-ic svg { color:#b7abf9 !important; }

/* ---------- success / process screen ---------- */
.wd-process {
  padding:22px !important;
  background:var(--wd-card) !important;
  border:0 !important;
  border-radius:18px !important;
  box-shadow:0 20px 50px rgba(6,8,18,.35) !important;
}
.wd-process-head {
  margin:0 0 12px !important;
  padding:16px 20px !important;
  border:0 !important;
  border-radius:13px !important;
  background:linear-gradient(100deg,rgba(53,214,127,.16),rgba(53,214,127,.04)) !important;
}
.wd-process-success {
  background:#35d67f !important;
  color:#0d2417 !important;
  box-shadow:0 0 0 8px rgba(53,214,127,.1),0 0 26px rgba(53,214,127,.3) !important;
}
.wd-process-head h2 { color:#fff !important; letter-spacing:-.01em !important; }
.wd-process-head p { color:#9fe7bd !important; }
.wd-process-layout { gap:12px !important; }
.wd-process-summary,
.wd-process-guides {
  border:0 !important;
  border-radius:13px !important;
  background:var(--wd-sub) !important;
  box-shadow:none !important;
}
.wd-process-summary-cell {
  border:0 !important;
  margin:7px !important;
  border-radius:10px !important;
  background:var(--wd-cell) !important;
}
.wd-process-summary-cell small { color:#8e94b0 !important; }
.wd-process-summary-value b { color:var(--wv-gold) !important; }
.wd-process-check {
  background:#35d67f !important;
  color:#0d2417 !important;
}
.wd-process-guide {
  border:0 !important;
  border-radius:10px !important;
  background:var(--wd-cell) !important;
}
.wd-process-guide p { color:#c6cbe2 !important; }
.wd-process-guide p b { color:#ffd479 !important; }
.wd-process-guide-icon {
  border-radius:12px !important;
  background:rgba(159,143,248,.14) !important;
  color:#b7abf9 !important;
}
.wd-process-guide:nth-child(1) .wd-process-guide-icon {
  background:rgba(255,201,79,.14) !important;
  color:#ffd479 !important;
}
.wd-process-guide:nth-child(3) .wd-process-guide-icon {
  background:rgba(63,227,239,.12) !important;
  color:#5fe3ef !important;
}
.wd-process-guide button {
  margin-top:9px !important;
  padding:7px 13px !important;
  border:0 !important;
  border-radius:8px !important;
  background:rgba(159,143,248,.16) !important;
  color:#c9b8ff !important;
  font:700 11px/1 Rubik,sans-serif !important;
  transition:background .18s ease,color .18s ease !important;
}
.wd-process-guide button:hover { background:rgba(159,143,248,.28) !important; color:#fff !important; }
.wd-process-go {
  min-height:54px !important;
  margin-top:14px !important;
  border:0 !important;
  border-radius:12px !important;
  box-shadow:0 10px 26px rgba(163,78,244,.3) !important;
  font:800 13.5px/1 Rubik,sans-serif !important;
  letter-spacing:.05em !important;
  text-transform:uppercase !important;
}

/* ---------- responsive ---------- */
@media (max-width: 620px) {
  .wd-steps { grid-template-columns:repeat(2,1fr) !important; }
  .wd-step { min-height:46px !important; }
  .wd-card { padding:20px 16px 18px !important; border-radius:15px !important; }
  .wd-next, .wd-back { min-height:50px !important; height:50px !important; }
  .wd-back { width:50px !important; }
  /* Avatar row wraps: box + text on the first line, upload button full-width below. */
  .wd-avrow { flex-wrap: wrap !important; gap: 12px !important; padding: 14px !important; }
  .wd-avtext { flex: 1 1 150px !important; min-width: 0 !important; }
  .wd-upload {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  /* Progress strip: skin tile on its own row, the 3 step tiles fill the row below —
     no horizontal scrolling on mobile. */
  .wd-skinrow {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow-x: visible !important;
    gap: 6px !important;
  }
  .wd-skin-tile { grid-column: 1 / -1 !important; min-height: 96px !important; }
  .wd-skin-arrow { display: none !important; }
  .wd-steptile { min-height: 84px !important; }
}

/* Responsive layout authority. Keep last in index.html.
   Component skins remain in the existing theme files; sizing lives here.
   No fixed viewport-height budget: short screens scroll instead of clipping. */
:root {
  color-scheme: dark;
  --nav-size: 4.5rem;
  --header-height: 5.5rem;
  /* The outer shell fills the area beside the rail; inner content is centered. */
  --content-max: 88.125rem;
  --header-offset: var(--measured-header, var(--header-height));
  --bottom-nav: 0px;
  --page-gap: clamp(.75rem, 1.6vw, 1.75rem);
  --panel-gap: clamp(.75rem, 1.2vw, 1.25rem);
  --panel-pad: clamp(.75rem, 1.25vw, 1.25rem);
  --control-size: 2.75rem;
  --wv-muted: #b9bdd4;
  --muted: #b9bdd4;
  --cp-row-h: clamp(10.5rem, 22vw, 14rem);
  --cp-row-gap: var(--panel-gap);
}
* { box-sizing: border-box; }
html, body, html:has(#view-upgrade:not([hidden])), body:has(#view-upgrade:not([hidden])) {
  height: auto !important; min-height: 100% !important; max-height: none !important;
  overflow-x: clip !important;
}
/* Only the root owns page scrolling; an overflow:auto body would capture
   sticky positioning without actually being the scrolling element. */
html:not(:has(body.modal-open)) { overflow-y: auto !important; }
body:not(.modal-open) { overflow-y: visible !important; }
/* The desktop rail is anchored to this full document-height containing block,
   not the viewport, so its navigation scrolls with the page. */
body { position: relative; display: block !important; margin: 0; font-size: 16px; }
html { scroll-padding-top: calc(var(--header-offset) + var(--page-gap)); scroll-padding-bottom: calc(var(--bottom-nav) + var(--page-gap)); }
#go { scroll-margin-block: 1rem; }
.switch:has(input:focus-visible), .tb-toggle:has(input:focus-visible) { outline: 2px solid #ddd4ff; outline-offset: 3px; border-radius: .375rem; }
button, a, input, select, summary { touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
:where(button, a, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid #ddd4ff !important; outline-offset: 3px !important;
}
input, select, textarea { font-size: 16px !important; max-width: 100%; }
img { max-width: 100%; }
/* Touch-target floor: keep frequently used interactive controls above the 36 px
   threshold even when their parent themes specify smaller sizes. The hidden
   .switch inputs are intentionally left at 1×1 since the visible wrapper
   (.switch / .tb-toggle) carries the real hit area. */
.um-copy, #profCopyId { min-width: 36px !important; min-height: 36px !important; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; }
#settingNick, #settingEmail, #settingLang, .pf-field input:not([type="checkbox"]):not([type="radio"]) { min-height: 36px !important; }
.tb-btn.tb-icon { min-width: 36px !important; min-height: var(--control-size) !important; padding-inline: .375rem !important; }
.cs-collapse { min-height: 36px !important; padding-block: .375rem !important; }
#depositPageTermsLink, .deposit-terms-link, .deposit-payments-row a { min-height: 28px !important; display: inline-flex !important; align-items: center; }
:where(main, section, .app, .panel, .tools, .duel-copy, .profile-main-panel, .profile-sidebar) { min-width: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; transform: translateY(-150%); z-index: 2000; padding: 12px 16px; background: #eee8ff; color: #202335; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

/* One full-width header, with brand/feed/account in separate layout cells. */
.app { display: flex !important; flex-direction: column; margin: 0 !important; width: 100% !important; max-width: none !important; min-height: calc(100vh / var(--pz, 1)) !important; }
.top {
  /* The top ribbon scrolls with the page (no sticky/fixed). The desktop
     navigation rail is anchored to the body and follows the same scroll. */
  position: relative !important; inset: auto !important; transform: none !important;
  display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: var(--page-gap) !important; width: 100% !important; min-width: 0 !important;
  height: auto !important; min-height: 5.5rem !important; padding: .5rem var(--page-gap) !important;
  padding-top: max(.5rem, env(safe-area-inset-top)) !important;
  background: #25283d !important; z-index: 200 !important;
}
.top .top-brand { position: static !important; display: flex !important; padding: 0 !important; min-width: 0; min-height: var(--control-size); }
.top .top-brand img { width: clamp(8rem, 15vw, 12.5rem) !important; height: auto !important; object-fit: contain; }
.mobile-brand { display: none !important; }
.top .feed-wrap { display: block !important; position: relative !important; width: 100% !important; min-width: 0 !important; overflow: hidden !important; margin: 0 !important; }
.top .ticker-frame { width: 100% !important; min-width: 0 !important; overflow: hidden !important; }
/* Recent drops fade to transparent at both ribbon edges.
   This MUST use the #ticker id: top-brand-ribbon.css and component-final.css set
   `mask-image: none !important` on higher-specificity :has() selectors such as
   `.top:has(.balance:not([hidden])) .ticker` (0,4,0), which would beat any pure
   class selector here even though responsive.css loads last. */
.top .ticker, .top #ticker {
  padding: .5rem 0 !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5rem, #000 calc(100% - 6rem), transparent 100%) !important;
  mask-image: linear-gradient(90deg, transparent 0, #000 2.5rem, #000 calc(100% - 6rem), transparent 100%) !important;
}
.top .ticker-frame::before, .top .ticker-frame::after { display: none !important; }
.top .online, .top:has(.balance[hidden]) .online { right: 0 !important; }
.top .top-meta { position: static !important; display: flex !important; height: auto !important; min-height: 0 !important; padding: 0 !important; gap: .5rem !important; background: transparent !important; }
.top .balance { gap: .5rem !important; padding: 0 !important; min-width: 0; }
.top .balance-val { min-width: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.top .balance-val strong { font-size: clamp(.85rem, 1.3vw, 1.125rem) !important; }
.meta-plus, .meta-avatar, .meta-login { min-width: var(--control-size) !important; min-height: var(--control-size) !important; }
.user-menu { position: fixed !important; top: calc(var(--header-offset) + .5rem) !important; right: var(--page-gap) !important; width: min(21rem, calc(100% - 2 * var(--page-gap))) !important; max-height: calc(100dvh / var(--pz, 1) - var(--header-offset) - 6rem); overflow-y: auto; z-index: 300 !important; }
.um-links button { min-height: var(--control-size); }
.rail {
  position: absolute !important;
  /* Same top offset the upgrader panels get from main's padding, so the rail
     starts level with the board instead of hugging the ribbon. */
  top: calc(var(--header-offset) + var(--page-gap)) !important;
  right: auto !important; bottom: 0 !important; left: 0 !important;
  width: var(--nav-size) !important; height: auto !important; margin: 0 !important;
  padding: 1rem .375rem !important;
  border-radius: 0 .875rem 0 0 !important;
  background: var(--wv-panel, #2e314a) !important;
  /* Scrolled navigation goes beneath the sticky header, never over it. */
  z-index: 190 !important;
}
.rail-nav { width: 100% !important; flex-direction: column !important; gap: .5rem !important; }
.rail-nav .tab { width: 100% !important; min-height: 3.5rem !important; color: var(--muted) !important; }
.rail-nav .tab[aria-current="page"] { color: #fff !important; }
main, body:has(#view-upgrade:not([hidden])) main {
  flex: 0 0 auto !important; width: calc(100% - var(--nav-size)) !important;
  margin: 0 0 0 var(--nav-size) !important; padding: var(--page-gap) !important;
  height: auto !important; min-height: calc(100vh / var(--pz, 1) - 76px) !important;
  /* Reset the inherited 1460px cap from styles.css: the capped element is
     the inner content column, so the shell itself fills the remaining width. */
  max-width: none !important; max-height: none !important; overflow: visible !important;
}
main > section { max-width: var(--content-max); margin-inline: auto !important; }
.site-footer, body:has(#view-upgrade:not([hidden])) .site-footer {
  width: min(var(--content-max), calc(100% - var(--nav-size) - 2 * var(--page-gap))) !important;
  max-width: var(--content-max); height: auto !important;
  /* Footer sits after the content with a 10% viewport-height gap. */
  position: static !important; flex: 0 0 auto !important; margin-top: calc(10vh / var(--pz, 1)) !important; margin-bottom: 0 !important;
  border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important;
  margin-left: calc(var(--nav-size) + max(var(--page-gap), (100% - var(--nav-size) - var(--content-max)) / 2)) !important;
  margin-right: auto !important;
  padding: clamp(1rem, 3vw, 2rem) !important;
}

/* Three columns on roomy displays; a full-width board above two pickers on tablets. */
#view-upgrade:not([hidden]), #view-upgrade .upgrade-grid { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
#view-upgrade .upgrade-grid {
  display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(20rem, 1.15fr) minmax(0, 1fr) !important;
  grid-template-rows: auto !important; align-items: stretch !important; gap: var(--panel-gap) !important;
}
#view-upgrade .panel, #view-upgrade .panel.center, #view-upgrade #wheelPanel.panel.center {
  display: flex !important; flex-direction: column !important; padding: var(--panel-pad) !important;
  height: auto !important; min-height: 0 !important; max-height: none !important; min-width: 0 !important;
  overflow: visible !important; grid-column: auto !important; grid-row: auto !important;
}
#view-upgrade .panel.center, #view-upgrade #wheelPanel.panel.center { gap: .75rem !important; align-items: stretch !important; }
/* The desktop board uses the available first viewport, then the footer
   remains reachable below it. Intrinsic content can grow on very short views. */
@media (min-width: 1200px) {
  #view-upgrade {
    --panel-pad: 1rem;
    /* The extra half-gap is deliberate: the board stops short of the viewport
       bottom, leaving a visible band of space (and the first line of the
       footer) on the first screen instead of the card touching the edge. */
    --upgrade-available-height: calc(100svh / var(--pz, 1) - var(--header-offset) - 2.5 * var(--page-gap));
  }
  #view-upgrade .upgrade-grid { min-height: var(--upgrade-available-height) !important; }
  #view-upgrade #wheelPanel.panel.center .wheel-stage {
    /* Target 40-50% of the card height for the wheel across desktop sizes:
       a clear portion of available height, reduced modestly by the measured
       controls so very tall controls still leave room for the wheel. */
    width: min(100%, 28rem, max(13rem, calc(var(--upgrade-available-height) * .5 - var(--upgrade-controls-height, 26rem) * .1))) !important;
  }
}
@media (min-width: 1200px) and (max-height: 900px) {
  #view-upgrade { --panel-pad: .75rem; }
  #view-upgrade #wheelPanel.panel.center { gap: .5rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-slot { min-height: 6rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-art { height: 2.75rem !important; min-height: 0 !important; }
  #view-upgrade #wheelPanel.panel.center .duel-art img { max-height: 2.75rem !important; }
}
/* Short desktop viewports: the wheel keeps its share, so the control stack is
   what has to give. Compress padding, gaps, mode row, duel slots and chips so
   the whole card — including the bottom-aligned Upgrade action — fits the first
   screen without page scrolling. Spare height still accumulates above the
   summary/action stack (see .duel-summary margin-top:auto), so the CTA stays
   pinned to the card's padded bottom. */
@media (min-width: 1200px) and (max-height: 800px) {
  #view-upgrade { --panel-pad: .625rem; }
  #view-upgrade #wheelPanel.panel.center { gap: .375rem !important; }
  #view-upgrade #wheelPanel.panel.center .mode-row { min-height: 2.25rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-slot { min-height: 4.75rem !important; padding: .375rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-art { height: 2.25rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-art img { max-height: 2.25rem !important; }
  #view-upgrade #wheelPanel.panel.center .chips button { min-height: 2.25rem !important; padding: .25rem !important; }
  #view-upgrade #wheelPanel.panel.center .wheel-stage { margin: 0 auto !important; }
}
/* Around 720p the intrinsic content is taller than the shrunken board, so the
   fixed parts give a little more: mode row, duel slots and chips. The wheel is
   untouched, so it keeps (and slightly gains) its 40-55% share. */
@media (min-width: 1200px) and (max-height: 780px) {
  #view-upgrade #wheelPanel.panel.center .mode-row { min-height: 2rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-slot { min-height: 4rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-art { height: 2rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-art img { max-height: 2rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-copy b { font-size: .6875rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-copy small { font-size: .625rem !important; }
  #view-upgrade #wheelPanel.panel.center .chips button { min-height: 2rem !important; }
}
@media (min-width: 1200px) and (max-height: 700px) {
  #view-upgrade { --panel-pad: .5rem; }
  #view-upgrade #wheelPanel.panel.center { gap: .25rem !important; }
  #view-upgrade #wheelPanel.panel.center .mode-row { min-height: 2rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-slot { min-height: 3.75rem !important; padding: .25rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-art { height: 1.75rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-art img { max-height: 1.75rem !important; }
  #view-upgrade #wheelPanel.panel.center .chips button { min-height: 2rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-copy b { font-size: .6875rem !important; }
  #view-upgrade #wheelPanel.panel.center .duel-copy small { font-size: .625rem !important; }
}
#view-upgrade .panel:not(.center) .panel-head { flex: 0 0 auto; margin-bottom: .75rem; }
#view-upgrade .tools { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(5rem, .65fr) !important; gap: .5rem !important; }
#view-upgrade .tools input { width: 100% !important; min-width: 0 !important; height: var(--control-size) !important; flex: auto !important; }
#view-upgrade .panel:not(.center) .skins {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.25rem), 1fr)) !important;
  grid-auto-rows: max-content !important; align-content: start !important; gap: .5rem !important;
  /* Wider catalogs grow wider cards instead of stretching art away from text. */
  grid-auto-flow: row dense;
  flex: 1 1 0 !important; height: auto !important; min-height: 16rem !important; max-height: none !important;
  overflow-y: auto !important; overflow-x: hidden !important; scrollbar-gutter: stable; overscroll-behavior-y: auto;
}
#view-upgrade .panel:not(.center) > .panel-foot {
  flex: 0 0 auto !important; margin: .75rem 0 0 !important; padding: .75rem 0 0 !important;
  width: 100% !important; height: auto !important; min-height: 0 !important; gap: .5rem; flex-wrap: wrap;
}
#goldBet { touch-action: pan-y; }

/* ===== Add-Gold control ("Добавить баланс") ==============================
   The theme skins paint the progress gradient on the range input itself
   (upgrader-components-final.css sets height:6px), but the generic control
   floor gave #goldBet a min-height of one control-size, so the gradient
   filled a 44px block instead of a track. Rebuilt here as a compact foot:
   title + live value on one row, a real 6px track with an 18px thumb below.
   Selectors carry the #upgradeInventory id so they outrank the theme files. */
#view-upgrade #upgradeInventory > .balance-slider-panel {
  flex: 0 0 auto !important; display: block !important;
  width: 100% !important; height: auto !important; min-height: 0 !important;
  margin: .75rem 0 0 !important; padding: .5rem .75rem .625rem !important;
  border: 1px solid rgba(159, 143, 248, .18) !important;
  border-radius: .75rem !important;
  background: rgba(32, 35, 53, .42) !important;
  box-shadow: none !important;
}
#view-upgrade #upgradeInventory .gold-add {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  grid-template-areas: "title value" "slider slider" !important;
  align-items: center !important; column-gap: .625rem !important; row-gap: .375rem !important;
  width: 100% !important; min-height: 0 !important; padding: 0 !important;
  background: transparent !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; opacity: 1 !important; filter: none !important;
}
#view-upgrade #upgradeInventory .gold-slider-head {
  grid-area: title !important; margin: 0 !important; justify-content: flex-start !important;
}
#view-upgrade #upgradeInventory .gold-slider-head > span {
  display: block !important; min-width: 0 !important;
  color: #a9aec6 !important; font-size: .6875rem !important; line-height: 1rem !important;
  font-weight: 600 !important; letter-spacing: .02em !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#view-upgrade #upgradeInventory .gold-range-values {
  grid-area: value !important; margin: 0 !important; justify-content: flex-end !important;
}
#view-upgrade #upgradeInventory .gold-range-values output {
  display: block !important; min-width: 4.25rem !important; text-align: right !important;
  color: #ffcb47 !important; font-size: .8125rem !important; line-height: 1rem !important;
  font-weight: 800 !important; font-variant-numeric: tabular-nums; white-space: nowrap;
}
#view-upgrade #upgradeInventory .gold-range {
  grid-area: slider !important; display: block !important;
  width: 100% !important; min-height: 0 !important; padding: 0 !important;
  background: transparent !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important;
}
#view-upgrade #upgradeInventory .gold-range > span { display: none !important; }
#view-upgrade #upgradeInventory .gold-range input[type="range"] {
  -webkit-appearance: none !important; appearance: none !important;
  display: block !important; width: 100% !important;
  height: 1.5rem !important; min-height: 0 !important; max-height: none !important;
  margin: 0 !important; padding: 0 !important;
  /* The bar is painted by the track pseudo-element, never by the input box. */
  background: transparent !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; cursor: pointer; touch-action: pan-y;
}
#view-upgrade #upgradeInventory .gold-range input[type="range"]::-webkit-slider-runnable-track {
  height: 6px !important; border: 0 !important; border-radius: 99px !important;
  background: linear-gradient(90deg, var(--wv-violet, #9f8ff8) 0 var(--gold-fill, 0%), #454966 var(--gold-fill, 0%) 100%) !important;
}
#view-upgrade #upgradeInventory .gold-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important; appearance: none !important;
  width: 1.125rem !important; height: 1.125rem !important; margin-top: -.375rem !important;
  border: 3px solid #dcd7ff !important; border-radius: 50% !important;
  background: var(--wv-violet, #9f8ff8) !important;
  box-shadow: 0 0 0 4px rgba(159, 143, 248, .16) !important;
}
#view-upgrade #upgradeInventory .gold-range input[type="range"]::-moz-range-track {
  height: 6px !important; border: 0 !important; border-radius: 99px !important; background: #454966 !important;
}
#view-upgrade #upgradeInventory .gold-range input[type="range"]::-moz-range-progress {
  height: 6px !important; border-radius: 99px !important; background: var(--wv-violet, #9f8ff8) !important;
}
#view-upgrade #upgradeInventory .gold-range input[type="range"]::-moz-range-thumb {
  width: 1.125rem !important; height: 1.125rem !important; box-sizing: border-box !important;
  border: 3px solid #dcd7ff !important; border-radius: 50% !important;
  background: var(--wv-violet, #9f8ff8) !important;
}
#view-upgrade #upgradeInventory .gold-range input[type="range"]:disabled { cursor: not-allowed; }
#view-upgrade #upgradeInventory .gold-add:has(input[type="range"]:disabled) { opacity: .55 !important; filter: none !important; }
#view-upgrade .panel.center .mode-row { flex: 0 0 auto !important; height: auto !important; min-height: var(--control-size) !important; margin: 0 !important; }
.switch { min-height: var(--control-size); }
#view-upgrade .panel.center .wheel-stage {
  /* Restore the original wheel prominence on roomy screens while staying
     constrained by the stage width; it shrinks with the container. */
  --wheel-size: min(100%, 23.25rem);
  width: var(--wheel-size) !important; height: auto !important; aspect-ratio: 1;
  min-width: 0 !important; min-height: 0 !important; max-width: none !important; max-height: none !important;
  flex: 0 0 auto !important; align-self: center !important; margin: .25rem auto !important;
  position: relative !important; overflow: visible !important; container-type: inline-size;
}
#view-upgrade .panel.center .wheel-stage .wheel {
  position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
  min-width: 0 !important; min-height: 0 !important; max-width: none !important; max-height: none !important;
}
#view-upgrade .panel.center .wheel-stage .hub,
#view-upgrade .panel.center .wheel-stage .hub.win,
#view-upgrade .panel.center .wheel-stage .hub.lose {
  position: absolute !important; inset: auto !important; top: 50% !important; left: 50% !important;
  width: 60% !important; height: 60% !important; min-width: 0 !important; min-height: 0 !important;
  transform: translate(-50%, -50%) !important; background-size: 60% auto, auto, auto !important;
  /* Crisp opaque rim so the tick ring can't bleed into the hub at the cardinal points. */
  border: 1px solid #1a1d30 !important;
  box-shadow: 0 0 0 1px #1a1d30, inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(4, 6, 14, 0.4) !important;
}
#view-upgrade .panel.center .wheel-stage .hub-result,
#view-upgrade .panel.center .wheel-stage .hub.win .hub-result,
#view-upgrade .panel.center .wheel-stage .hub.lose .hub-result {
  background-size: 60% auto, auto, auto !important;
  transform: none !important;
}
#view-upgrade .panel.center .wheel-stage .pct { font-size: clamp(1.75rem, 11cqi, 2.5rem) !important; white-space: nowrap; }
#view-upgrade .panel.center .wheel-stage .pct small { font-size: .45em !important; }
#view-upgrade .panel.center .duel-summary { display: grid !important; grid-template-columns: minmax(0, 1fr) 1.75rem minmax(0, 1fr) !important; gap: .5rem !important; height: auto !important; min-height: 0 !important; max-height: none !important; flex: 0 0 auto !important; margin: auto 0 0 !important; }
#view-upgrade .panel.center .duel-slot { height: auto !important; min-height: 7.25rem !important; max-height: none !important; padding: .5rem !important; }
#view-upgrade .panel.center .duel-item { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: .25rem !important; height: auto !important; min-width: 0; text-align: center; }
#view-upgrade .panel.center .duel-art { position: relative !important; display: flex !important; align-items: center; justify-content: center; width: 100% !important; height: 3.25rem !important; margin: 0 auto !important; }
#view-upgrade .duel-art img { width: auto !important; max-height: 3.25rem !important; object-fit: contain; }
#view-upgrade .duel-slot .duel-art span, #view-upgrade .duel-slot:not(.has-value) .duel-art img { display: none !important; }
#view-upgrade .duel-copy b { display: block !important; font-size: .75rem !important; line-height: 1.35 !important; overflow-wrap: anywhere; }
#view-upgrade .duel-copy small { display: block; margin-top: .25rem; padding: 0 !important; background: none !important; color: #ffd15c !important; overflow-wrap: anywhere; }
#view-upgrade .panel.center .duel-arrow, #view-upgrade .panel.center .duel-arrow span { width: 1.75rem !important; height: 1.75rem !important; min-height: 0 !important; max-height: none !important; align-self: center; transform: none !important; margin: auto !important; }
#view-upgrade .duel-art-nav { position: absolute !important; top: 50%; transform: translateY(-50%); width: var(--control-size) !important; height: var(--control-size) !important; padding: .625rem !important; border: 0; border-radius: .5rem; background: rgba(32,35,53,.75); color: #eee8ff; z-index: 2; }
#view-upgrade .duel-art-prev { left: -.25rem !important; }
#view-upgrade .duel-art-next { right: -.25rem !important; }
#view-upgrade .duel-art-nav:disabled { opacity: .3; }
#view-upgrade .duel-art-nav[hidden], #view-upgrade .duel-art img[hidden] { display: none !important; }
#view-upgrade .panel.center .chips, #view-upgrade #wheelPanel .chips { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: .5rem !important; height: auto !important; min-height: 0 !important; max-height: none !important; flex: 0 0 auto !important; margin: 0 !important; }
#view-upgrade .panel.center .chips button, #view-upgrade #wheelPanel .chips button { width: 100% !important; height: auto !important; min-height: var(--control-size) !important; max-height: none !important; padding: .5rem !important; margin: 0 !important; }
/* Spare height is above the summary/action stack. The CTA remains the last
   normal-flow child at the card's padded bottom, never viewport-fixed. */
#view-upgrade .panel.center #go, #view-upgrade #wheelPanel #go { flex: 0 0 auto !important; height: auto !important; min-height: 3.25rem !important; max-height: none !important; width: 100% !important; margin: 0 !important; align-self: end !important; }
.upgrade-panel-actions, .upgrade-panel-jump { display: none !important; }
.upgrade-workflow { display: none; }
#view-upgrade.upgrade-narrow .upgrade-grid {
  position: relative; grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
}
#view-upgrade.upgrade-narrow .upgrade-grid > .panel:not(.center) {
  position: absolute !important; inset: 0 !important; margin: 0 !important;
}
#view-upgrade.upgrade-narrow .panel:not(.center) .skins {
  flex: 1 1 0 !important; min-height: 0 !important; max-height: none !important;
}
#view-upgrade.upgrade-narrow .panel:not(.center) > :is(.panel-head, .tools, .panel-foot) {
  flex: 0 0 auto !important;
}
#view-upgrade.upgrade-narrow .upgrade-panel-actions {
  display: block !important;
  margin-top: .75rem;
}
#view-upgrade.upgrade-narrow[data-upgrade-panel="play"] .upgrade-panel-jump[data-for="play"],
#view-upgrade.upgrade-narrow[data-upgrade-panel="inventory"] .upgrade-panel-jump[data-for="inventory"],
#view-upgrade.upgrade-narrow[data-upgrade-panel="target"] .upgrade-panel-jump[data-for="target"] {
  display: flex !important;
  width: 100% !important;
  min-height: 3.25rem !important;
  margin: 0 !important;
  background: #43486a !important;
  color: #d7d4ea !important;
  box-shadow: none !important;
}
#view-upgrade.upgrade-narrow .upgrade-panel-jump:hover {
  filter: brightness(1.08);
}
#view-upgrade.upgrade-narrow[data-upgrade-panel="inventory"] #wheelPanel.panel.center,
#view-upgrade.upgrade-narrow[data-upgrade-panel="target"] #wheelPanel.panel.center {
  visibility: hidden !important; pointer-events: none !important;
}
#view-upgrade.upgrade-narrow[data-upgrade-panel="inventory"] #upgradeTarget,
#view-upgrade.upgrade-narrow[data-upgrade-panel="play"] #upgradeInventory,
#view-upgrade.upgrade-narrow[data-upgrade-panel="play"] #upgradeTarget,
#view-upgrade.upgrade-narrow[data-upgrade-panel="target"] #upgradeInventory { display: none !important; }
.tgt-empty { padding: 1rem; border: 1px dashed rgba(159,143,248,.3); border-radius: .625rem; color: var(--muted); text-align: center; grid-column: 1 / -1; }
.skin, .icard, .gcard, .drop-tile { min-width: 0 !important; }
.skin .n, .skin .s, .ic-name, .gcard-name { overflow-wrap: anywhere; }
/* One proportional layout for idle, hovered AND selected cards. Legacy
   selected/hover offsets must not shift the art into the labels or price. */
#view-upgrade :is(.skin, .skin:hover, .skin.sel, .skin.sel:hover) {
  display: grid !important; grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(3.5rem, 1fr) auto auto !important;
  gap: .125rem !important; align-content: stretch !important;
  aspect-ratio: .78; height: auto !important; min-height: 0 !important;
  padding: .5rem .375rem .75rem !important; transform: none !important;
}
#view-upgrade :is(.skin, .skin:hover, .skin.sel, .skin.sel:hover) .art {
  grid-column: 1 !important; grid-row: 2 !important; position: relative !important;
  inset: auto !important; width: 100% !important; height: auto !important;
  min-height: 0 !important; max-height: none !important; margin: 0 !important;
  padding: 0 !important; align-self: stretch !important; transform: none !important;
}
#view-upgrade :is(.skin, .skin:hover, .skin.sel, .skin.sel:hover) .art img {
  position: absolute !important; inset: 5% !important; width: 90% !important; height: 90% !important;
  min-height: 0 !important; max-height: none !important; max-width: none !important;
  margin: 0 !important; object-fit: contain !important; object-position: center !important;
  transform: none !important;
}
#view-upgrade :is(.skin, .skin:hover, .skin.sel, .skin.sel:hover) :is(.n, .s, .p) {
  position: relative !important; inset: auto !important; grid-column: 1 !important;
  width: 100% !important; height: auto !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; transform: none !important;
}
#view-upgrade .skin .p { grid-row: 1 !important; text-align: right !important; }
#view-upgrade .skin .n { grid-row: 3 !important; }
#view-upgrade .skin .s { grid-row: 4 !important; }
#view-upgrade .skin .ghost { display: none !important; }
#view-upgrade .skin.sel { outline: 2px solid #b7a6ff; outline-offset: -2px; }

/* Case library and filters grow by available width, never a fixed column count. */
#view-cases .case-grid, #view-cases .case-grid.bare-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)) !important; gap: var(--panel-gap) !important; }
#view-cases .case-grid > .gcard { grid-column: auto !important; width: 100% !important; }
#view-cases .gcard-art, #view-cases .gcard.bare .gcard-art {
  position: relative !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important;
  height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: 1.15;
  margin: 0 !important; padding: .5rem !important;
}
#view-cases .gcard-art > img, #view-cases .gcard-art > img.art-hero, #view-cases .gcard.bare .gcard-art > img.art-hero {
  position: absolute !important; inset: 5% !important; width: 90% !important; height: 90% !important;
  max-width: 90% !important; max-height: 90% !important; object-fit: contain !important;
}
#view-cases .card-heart { top: .25rem !important; right: .25rem !important; }
.case-toolbar { display: flex !important; flex-wrap: wrap !important; height: auto !important; gap: .625rem !important; }
.case-toolbar > * { min-width: 0 !important; }
.case-toolbar .tb-search { flex: 1 1 12rem !important; width: auto !important; }
.case-toolbar .tb-price { display: flex; flex: 1 1 12rem !important; width: auto !important; gap: .5rem; }
.case-toolbar .tb-price input { flex: 1 1 0 !important; min-width: 0 !important; width: 0 !important; }
.case-toolbar input, .tb-dropdown-btn, .tb-btn, .tb-toggle { min-height: var(--control-size) !important; }
.tb-dropdown { min-width: 0; }
.tb-dropdown-btn { max-width: 100%; }
.tb-dropdown-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-dropdown-menu { max-width: min(22rem, calc(100vw / var(--pz, 1) - 2rem)) !important; max-height: min(22rem, calc(60dvh / var(--pz, 1))) !important; overflow-y: auto; }
.tb-dropdown-item { min-height: var(--control-size); display: flex; align-items: center; }
.card-heart { opacity: 1 !important; min-width: var(--control-size) !important; min-height: var(--control-size) !important; }

/* Case preview and reels share the SAME responsive grid and row-size token.
   Quantity changes content, not a JS-computed pixel height. */
#view-casepage .casepage-topline {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) 52px !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 0 var(--page-gap, 20px) 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 52px !important;
  box-sizing: border-box !important;
}
#view-casepage .casepage-topline .back-btn,
#view-casepage .casepage-topline #caseBack,
#view-casepage .casepage-topline .casepage-fav,
#view-casepage .casepage-topline #cpFav {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  align-self: center !important;
  border-radius: 11px !important;
  border: 0 !important;
  background: #2e314a !important;
  color: #aeb3ca !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}
#view-casepage .casepage-topline #cpName {
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  align-self: center !important;
  font: 500 clamp(20px, 2.5vw, 36px) / 1 Rubik, sans-serif !important;
  letter-spacing: -.02em !important;
  color: #fff !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  min-width: 0 !important;
}
#view-casepage[data-cp-rows] > .casepage-stage,
#view-casepage[data-cp-rows].is-opening > .casepage-stage,
#view-casepage[data-cp-rows].has-result > .casepage-stage {
  display: block !important; height: auto !important; min-height: 0 !important; max-height: none !important;
  padding: 0 !important; overflow: visible !important; margin: 0 !important;
}
#view-casepage:not(.is-opening):not(.has-result) .casepage-stage > #cpArt,
#view-casepage.is-opening .casepage-stage > .spinner-stack,
#view-casepage.has-result .casepage-stage > .spinner-stack {
  position: static !important; inset: auto !important; display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)) !important;
  grid-template-rows: none !important; grid-auto-rows: var(--cp-row-h) !important; gap: var(--cp-row-gap) !important;
  height: auto !important; min-height: 0 !important; max-height: none !important; width: 100% !important;
  transform: none !important; overflow: visible !important;
}
#view-casepage.is-opening .casepage-stage > #cpArt,
#view-casepage.has-result .casepage-stage > #cpArt,
#view-casepage:not(.is-opening):not(.has-result) .casepage-stage > .spinner-stack { display: none !important; }
#view-casepage:not(.is-opening):not(.has-result) .cp-idle-case,
#view-casepage .casepage-stage .spinner-frame,
#view-casepage .casepage-stage .spinner {
  height: var(--cp-row-h) !important; min-height: 0 !important; max-height: none !important;
}
#view-casepage:not(.is-opening):not(.has-result) .cp-idle-case img,
#view-casepage:not(.is-opening):not(.has-result) .cp-idle-case img.art-hero { height: calc(var(--cp-row-h) - 1rem) !important; max-height: none !important; max-width: 90% !important; width: auto !important; margin: auto !important; object-fit: contain; }
#view-casepage .casepage-stage .spinner-frame { min-width: 0 !important; overflow: hidden !important; position: relative !important; }
#view-casepage .casepage-stage .spinner-item,
#view-casepage .spinner.revealed .spinner-item.is-win { width: clamp(8rem, 18vw, 11rem) !important; flex: 0 0 clamp(8rem, 18vw, 11rem) !important; height: var(--cp-row-h) !important; min-height: 0 !important; max-height: none !important; }
#view-casepage .casepage-stage .spinner-marker { height: 100% !important; }
#view-casepage .casepage-stage .spinner-item img { position: absolute !important; inset: .75rem auto auto 50% !important; transform: translateX(-50%) !important; width: calc(100% - 1.5rem) !important; height: calc(100% - 4.75rem) !important; max-height: none !important; object-fit: contain !important; margin: 0 !important; }
#view-casepage .casepage-stage .spinner-item b.wn, #view-casepage .casepage-stage .spinner-item b.sn { position: absolute !important; top: auto !important; left: 0 !important; right: 0 !important; height: auto !important; padding: 0 .5rem !important; margin: 0 !important; line-height: 1.2 !important; }
#view-casepage .casepage-stage .spinner-item b.wn { bottom: 2.5rem !important; }
#view-casepage .casepage-stage .spinner-item b.sn { bottom: .625rem !important; max-height: 2.4em !important; white-space: normal !important; overflow: hidden !important; }
#view-casepage .casepage-controls { width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; padding: 0 !important; margin: var(--page-gap) 0 !important; }
#view-casepage:not(.is-opening):not(.has-result) .casepage-controls .cp-actions { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important; align-items: center !important; justify-content: center !important; gap: 14px !important; height: auto !important; min-height: 0 !important; width: 100% !important; margin: 0 !important; flex-wrap: nowrap !important; }
#view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpQty,
#view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpFast { width: var(--cp-side-btn-w, 160px) !important; min-width: var(--cp-side-btn-w, 160px) !important; max-width: var(--cp-side-btn-w, 160px) !important; height: var(--cp-ctrl-h, 52px) !important; min-height: var(--cp-ctrl-h, 52px) !important; max-height: var(--cp-ctrl-h, 52px) !important; box-sizing: border-box !important; }
#view-casepage:not(.is-opening):not(.has-result) #cpQty { grid-column: 1 !important; justify-self: end !important; display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 3px !important; margin: 0 !important; padding: 4px !important; background: #30334d !important; border-radius: 12px !important; border: 0 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important; }
#view-casepage #cpQty .qty { height: 100% !important; min-height: 0 !important; width: 100% !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 9px !important; background: transparent !important; color: #949ab9 !important; font: 700 13px/1 Rubik,sans-serif !important; letter-spacing: .01em !important; box-shadow: none !important; }
#view-casepage #cpQty .qty::before { content: none !important; display: none !important; }
#view-casepage #cpQty .qty.on { background: #454967 !important; color: #fff !important; box-shadow: inset 0 -3px 0 #9f8ff8,0 5px 12px rgba(10,12,25,.18) !important; }
#view-casepage #cpQty .qty:hover { background: rgba(159,143,248,.09) !important; color: #d9d5ff !important; }
#view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpOpen { grid-column: 2 !important; justify-self: center !important; position: static !important; transform: none !important; width: auto !important; min-width: 240px !important; max-width: 320px !important; height: var(--cp-ctrl-h, 52px) !important; min-height: var(--cp-ctrl-h, 52px) !important; max-height: var(--cp-ctrl-h, 52px) !important; margin: 0 !important; padding: 0 28px !important; white-space: nowrap !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
#view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpFast { grid-column: 3 !important; justify-self: start !important; position: static !important; transform: none !important; margin: 0 !important; padding: 0 16px !important; white-space: nowrap !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
#view-casepage.is-opening .casepage-controls,
#view-casepage.has-result .casepage-controls {
  width: 100% !important;
  height: auto !important;
  min-height: var(--cp-ctrl-h, 52px) !important;
  max-height: none !important;
  padding: 0 !important;
  margin: var(--page-gap) 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
#view-casepage.is-opening .casepage-controls .cp-actions,
#view-casepage.has-result .casepage-controls .cp-actions {
  position: static !important;
  width: 100% !important;
  height: var(--cp-ctrl-h, 52px) !important;
  min-height: var(--cp-ctrl-h, 52px) !important;
  max-height: var(--cp-ctrl-h, 52px) !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
#view-casepage.is-opening .cp-opening {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--cp-ctrl-h, 52px) !important;
  min-height: var(--cp-ctrl-h, 52px) !important;
  max-height: var(--cp-ctrl-h, 52px) !important;
  width: auto !important;
  min-width: 240px !important;
  margin: 0 auto !important;
  padding: 0 28px !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}
#view-casepage.has-result #cpResult {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  width: min(100%, 460px) !important;
  max-width: 460px !important;
  height: var(--cp-ctrl-h, 52px) !important;
  min-height: var(--cp-ctrl-h, 52px) !important;
  max-height: var(--cp-ctrl-h, 52px) !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}
#view-casepage.has-result #cpResult .btn,
#view-casepage.has-result #cpResult #cpSell,
#view-casepage.has-result #cpResult #cpAgain {
  height: var(--cp-ctrl-h, 52px) !important;
  min-height: var(--cp-ctrl-h, 52px) !important;
  max-height: var(--cp-ctrl-h, 52px) !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}
#view-casepage .casepage-drops { margin-top: 1.5rem !important; }
#cpDropsGrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)) !important; gap: .75rem !important; }

/* Inventory actions and labels are always in flow and accessible without hover. */
#view-inv .icard { display: flex !important; flex-direction: column !important; gap: .5rem !important; height: auto !important; min-height: 0 !important; padding: .625rem !important; grid-template-rows: none !important; }
#view-inv .icard .ic-top { position: relative !important; inset: auto !important; display: flex !important; flex-wrap: wrap !important; align-items: center; justify-content: space-between; gap: .25rem; margin: 0 !important; width: 100% !important; }
#view-inv .icard .ic-sell { min-height: var(--control-size) !important; }
#view-inv .icard .ic-art { position: relative !important; inset: auto !important; flex: none !important; height: 8rem !important; min-height: 0 !important; max-height: none !important; margin: 0 !important; padding: 0 !important; }
#view-inv .icard .ic-art img { max-height: 7rem !important; max-width: 100% !important; object-fit: contain; }
#view-inv .icard .ic-w, #view-inv .icard .ic-sn { position: relative !important; inset: auto !important; height: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; background: transparent !important; line-height: 1.3 !important; overflow-wrap: anywhere; }
#view-inv .icard .ic-bar { display: none !important; }
#view-inv .icard .ic-get { position: relative !important; inset: auto !important; transform: none !important; width: 100% !important; height: auto !important; min-height: var(--control-size) !important; margin: auto 0 0 !important; padding: .5rem .25rem !important; opacity: 1 !important; font-size: .7rem !important; letter-spacing: 0 !important; white-space: normal !important; }
.acc-tabs, .acc-subbar, .acc-sub-right { flex-wrap: wrap !important; gap: .5rem !important; }
.acc-tab, .hist-sub, .mini, .btn-sellall { min-height: var(--control-size) !important; max-width: 100%; }

/* Secondary screens and dialogs use natural flow too. */
.overlay { padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)) !important; overflow-y: auto !important; overscroll-behavior: contain; z-index: 950 !important; }
.overlay > :is(.auth-card, .case-detail, .wd-unavailable-card) { max-width: 100%; max-height: calc(100dvh / var(--pz, 1) - 2rem); overflow-y: auto; }
body.modal-open, html:has(body.modal-open) { overflow: hidden !important; }
.toast { max-width: calc(100vw / var(--pz, 1) - 2rem) !important; white-space: normal !important; overflow-wrap: anywhere; z-index: 2000 !important; }
.case-close, .wd-unavailable-close, .auth-close { min-width: var(--control-size) !important; min-height: var(--control-size) !important; }
.profile-layout { grid-template-columns: minmax(14rem, .7fr) minmax(0, 2fr) !important; gap: var(--page-gap) !important; }
.profile-tabs-nav { display: flex !important; flex-wrap: wrap !important; gap: .375rem !important; }
.profile-tab-btn { flex: 1 1 auto; min-height: var(--control-size); min-width: 0 !important; white-space: normal !important; }
.tx-table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; }
.promo-form-single-row, .promo-redeem-strip, .settings-profile-row, .tx-filters-bar { flex-wrap: wrap !important; }
.pf-field, .pf-submit-cell { min-width: 0 !important; max-width: 100%; }
.deposit-page-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) !important; }
.deposit-page-grid > *, .deposit-checkout-column, .deposit-promo-row > * { min-width: 0; }
.deposit-page-presets { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.deposit-page-presets button { min-height: var(--control-size); }
.deposit-promo-row, .deposit-page-total, .wd-avrow { flex-wrap: wrap !important; }
.wd-process-summary, .wd-price-fields { min-width: 0; max-width: 100%; }
.doc { line-height: 1.75; font-size: 1rem; }
.doc p { max-width: 75ch; }

@media (max-width: 1199px) and (min-width: 761px) {
  #view-upgrade .upgrade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #view-upgrade #wheelPanel.panel.center { grid-column: 1 / -1 !important; grid-row: 1 !important; display: grid !important; grid-template-columns: minmax(12rem, 1fr) minmax(0, 1fr) !important; align-items: center !important; }
  #view-upgrade .panel.center .mode-row { grid-column: 1 / -1; }
  #view-upgrade .panel.center .wheel-stage { grid-column: 1; grid-row: 2 / 6; width: min(100%, 19rem) !important; }
  #view-upgrade .panel.center .duel-summary, #view-upgrade .panel.center .chips, #view-upgrade .panel.center #go { grid-column: 2; }
  #view-upgrade .panel:not(.center) .skins { flex: 0 1 auto !important; max-height: 28rem !important; }
}
@media (max-width: 960px) {
  .profile-layout, .deposit-page-grid, .wd-offer-layout, .wd-price-layout, .wd-process-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .profile-sidebar { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--panel-gap); }
}
@media (max-width: 760px), (max-width: 960px) and (max-height: 500px) and (pointer: coarse) {
  :root { --nav-size: 0rem; --header-height: 4.5rem; --page-gap: clamp(.625rem, 3vw, 1rem); --mobile-safe-bottom: env(safe-area-inset-bottom, 0px); --bottom-nav: calc(4.5rem + var(--mobile-safe-bottom)); }
  html { background: var(--wv-panel, #2e314a); }
  body { padding-bottom: 0 !important; }
  .site-footer, body:has(#view-upgrade:not([hidden])) .site-footer {
    position: relative !important;
    overflow: visible;
    padding-bottom: calc(clamp(1rem, 3vw, 2rem) + var(--bottom-nav)) !important;
  }
  .site-footer::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 0;
    pointer-events: none;
    box-shadow: 0 0 0 100vmax var(--wv-panel, #2e314a);
    clip-path: inset(0 0 -100vmax);
  }
  .app { min-height: calc(100vh / var(--pz, 1) - var(--bottom-nav)) !important; }
  .top { grid-template-columns: minmax(0, 1fr) auto !important; min-height: 4.5rem !important; gap: .5rem !important; }
  .top .top-brand img {
    height: clamp(19px, 5.6vw, 24px) !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }
  .top .feed-wrap { display: none !important; }
  .rail { position: fixed !important; inset: auto 0 0 !important; border-radius: 0 !important; z-index: 210 !important; width: 100% !important; height: var(--bottom-nav) !important; padding: .375rem .5rem calc(.625rem + var(--mobile-safe-bottom)) .5rem !important; border-top: 1px solid rgba(255,255,255,.08); }
  .rail-nav { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; height: 100% !important; gap: .5rem !important; }
  .rail-nav .tab { display: flex !important; flex-direction: column !important; justify-content: center; gap: .25rem !important; width: 100% !important; min-width: 0 !important; min-height: 3.5rem !important; padding: .375rem !important; }
  .rail-nav .tab svg { width: 1.25rem; height: 1.25rem; }
  .rail-nav .tab span { display: block !important; position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; border: 0 !important; font-size: .6875rem !important; white-space: nowrap; }
  .rail-nav .tab span::before { display: none !important; }
  .user-menu { max-height: calc(100dvh / var(--pz, 1) - var(--header-offset) - var(--bottom-nav) - 1rem); }
  #view-upgrade .upgrade-grid { grid-template-columns: minmax(0, 1fr) !important; }
  #view-upgrade .panel.center .wheel-stage { width: min(100%, 13rem, calc(30svh / var(--pz, 1))) !important; }
  #view-upgrade .panel:not(.center) .skins { flex: 0 1 auto !important; min-height: 12rem !important; max-height: calc(44svh / var(--pz, 1)) !important; }
  #view-upgrade .panel.center .duel-slot { min-height: 6.5rem !important; }
  #view-upgrade .panel.center .duel-art { height: 2.75rem !important; }
  .upgrade-workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; padding: .375rem; margin-bottom: .75rem; border-radius: .875rem; background: #25283d; }
  .upgrade-workflow button { min-height: var(--control-size); padding: .5rem .25rem; border: 0; border-radius: .625rem; color: #c5c8dd; background: transparent; font: inherit; font-size: .8rem; font-weight: 600; }
  .upgrade-workflow button[aria-pressed="true"] { background: #9f8ff8; color: #171527; }
  .case-toolbar { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .case-toolbar .tb-search, .case-toolbar .tb-price { grid-column: 1 / -1 !important; width: 100% !important; }
  .case-toolbar .tb-dropdown, .case-toolbar .tb-dropdown-btn { width: 100% !important; }
  .case-toolbar .tb-toggle { font-size: .75rem; }
  #view-cases .case-grid, #view-cases .case-grid.bare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #view-cases .gcard-name { font-size: .875rem !important; }
  #view-casepage .casepage-topline {
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    min-height: 44px !important;
    gap: 10px !important;
    margin-bottom: var(--page-gap) !important;
  }
  #view-casepage .casepage-topline .back-btn,
  #view-casepage .casepage-topline #caseBack,
  #view-casepage .casepage-topline .casepage-fav,
  #view-casepage .casepage-topline #cpFav {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }
  #view-casepage .casepage-topline #cpName {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    font-size: clamp(16px, 4.6vw, 22px) !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls .cp-actions {
    display: grid !important;
    grid-template-columns: var(--cp-side-btn-w, 92px) minmax(0, 1fr) var(--cp-side-btn-w, 92px) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpQty,
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpFast {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: var(--cp-ctrl-h, 44px) !important;
    min-height: var(--cp-ctrl-h, 44px) !important;
    max-height: var(--cp-ctrl-h, 44px) !important;
    border-radius: 10px !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpQty {
    grid-column: 1 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    padding: 2px !important;
    gap: 2px !important;
    background: #30334d !important;
  }
  #view-casepage #cpQty .qty {
    min-width: 0 !important;
    font-size: 11px !important;
    border-radius: 7px !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpOpen {
    grid-column: 2 !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: var(--cp-ctrl-h, 44px) !important;
    min-height: var(--cp-ctrl-h, 44px) !important;
    max-height: var(--cp-ctrl-h, 44px) !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
    letter-spacing: .02em !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpFast {
    grid-column: 3 !important;
    padding: 0 4px !important;
    font-size: 10.5px !important;
    letter-spacing: .03em !important;
    gap: 4px !important;
  }
  #view-casepage.is-opening .cp-opening {
    height: var(--cp-ctrl-h, 44px) !important;
    min-height: var(--cp-ctrl-h, 44px) !important;
    max-height: var(--cp-ctrl-h, 44px) !important;
    border-radius: 10px !important;
    font-size: 11.5px !important;
  }
  #view-casepage.has-result #cpResult {
    width: 100% !important;
    max-width: 100% !important;
    height: var(--cp-ctrl-h, 44px) !important;
    min-height: var(--cp-ctrl-h, 44px) !important;
    max-height: var(--cp-ctrl-h, 44px) !important;
    gap: 6px !important;
  }
  #view-casepage.has-result #cpResult .btn,
  #view-casepage.has-result #cpResult #cpSell,
  #view-casepage.has-result #cpResult #cpAgain {
    height: var(--cp-ctrl-h, 44px) !important;
    min-height: var(--cp-ctrl-h, 44px) !important;
    max-height: var(--cp-ctrl-h, 44px) !important;
    border-radius: 10px !important;
    font-size: 11.5px !important;
  }
  #cpDropsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .auth-left { display: none !important; }
  .auth-card { width: 100% !important; grid-template-columns: minmax(0, 1fr) !important; }
  .auth-right { padding: 3rem 1.25rem 1.5rem !important; }
  .auth-title { font-size: 1.5rem !important; }
  .toast { bottom: calc(var(--bottom-nav) + .75rem) !important; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #view-inv #histSub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: .375rem; }
  #view-inv #histSub .hist-sub { min-width: 0; min-height: 2.75rem; justify-content: center; padding: .5rem !important; gap: .375rem; font-size: .75rem; }
  #view-inv #histSub .hs-n { flex-shrink: 0; min-width: 1.25rem; font-size: .6875rem; }
  #view-inv #histList { min-width: 0; }
  #view-inv #histList .hist-compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: .625rem; }
  #view-inv #histList .ccard { min-width: 0; padding: .625rem !important; gap: .25rem; }
  #view-inv #histList .ccard-case { max-width: 100%; font-size: .6875rem; overflow: hidden; text-overflow: ellipsis; }
  #view-inv #histList .ccard-art { height: 5rem; }
  #view-inv #histList .ccard-art img { max-height: 4.5rem; }
  #view-inv #histList .ccard-w, #view-inv #histList .ccard-s { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
  #view-inv #histList .ccard-s { font-size: .8125rem; }
  #view-inv #histList .ccard-p { margin-top: auto; padding-top: .375rem; font-size: .8125rem; }
  #view-inv #histList .uc-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: .875rem; }
  #view-inv #histList .ucard { min-width: 0; width: 100%; max-width: none !important; }
  #view-inv #histList .uc-body2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; padding: .625rem !important; }
  #view-inv #histList .uc-pane { display: flex; flex-direction: column; min-width: 0; padding: 0 !important; gap: .5rem; }
  #view-inv #histList .uc-pane-head, #view-inv #histList .uc-input-meta { min-height: 2.5rem; margin: 0; }
  #view-inv #histList .uc-pane-head span { font-size: .6875rem !important; letter-spacing: .025em !important; white-space: normal; }
  #view-inv #histList .uc-input-meta { justify-content: center; gap: .25rem; }
  #view-inv #histList .uc-input-meta b { max-width: 100%; overflow-wrap: anywhere; font-size: .75rem; }
  #view-inv #histList .uc-input-pane:has(.uc-input-head) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr) auto; }
  #view-inv #histList .uc-input-head { display: contents; }
  #view-inv #histList .uc-input-meta { grid-column: 1 / -1; grid-row: 1; }
  #view-inv #histList .uc-prev { grid-column: 1; grid-row: 3; justify-self: start; }
  #view-inv #histList .uc-next { grid-column: 2; grid-row: 3; justify-self: end; }
  #view-inv #histList .uc-arrow { width: 2.75rem; height: 2.75rem; min-width: 2.75rem; min-height: 2.75rem; flex-basis: 2.75rem; font-size: 1.5rem; }
  #view-inv #histList .uc-carousel-slot { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; }
  #view-inv #histList .uc-carousel-slot, #view-inv #histList .uc-target-slot { flex: 1; min-width: 0; }
  #view-inv #histList .uc-carousel-track { width: 100%; min-width: 100%; flex: 0 0 100%; gap: .5rem; }
  #view-inv #histList .uc-carousel-track > .htile { flex: 0 0 100%; width: 100%; min-width: 0; scroll-snap-align: start; }
  #view-inv #histList .htile { display: flex; flex-direction: column; align-items: stretch; min-height: 10rem; padding: .625rem !important; gap: .375rem; box-sizing: border-box; }
  #view-inv #histList .htile-price { display: block; align-self: stretch; text-align: right; font-size: .75rem; overflow-wrap: anywhere; }
  #view-inv #histList .htile img { height: 3.75rem; max-width: 100%; align-self: center; }
  #view-inv #histList .htile-w { margin-top: auto; font-size: .6875rem; overflow-wrap: anywhere; }
  #view-inv #histList .htile-s { font-size: .8125rem; line-height: 1.3; overflow-wrap: anywhere; }
  #view-inv #histList .htile-flat { justify-content: center; }
  #view-inv #histList .uc-foot { margin: 0 .625rem .625rem !important; }
  #view-inv #histList .uc-chance, #view-inv #histList .uc-res { display: flex; align-items: center; justify-content: center; gap: .375rem; flex-wrap: wrap; min-height: 2.75rem; padding: .5rem !important; font-size: .75rem; line-height: 1.3; }
  .profile-layout { gap: 1rem !important; }
  .profile-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .75rem !important; }
  .profile-user-card, .profile-best-card, .profile-stats-grid, .profile-sidebar > [data-account-guest] { grid-column: 1 / -1; }
  .profile-user-card { flex-direction: row !important; justify-content: flex-start !important; gap: 1rem !important; padding: 1rem !important; }
  .profile-user-meta { min-width: 0; text-align: left !important; }
  .profile-nickname { overflow-wrap: anywhere; font-size: 1.125rem !important; }
  .profile-id-row { justify-content: flex-start !important; flex-wrap: wrap; }
  .profile-avatar-large { width: 100% !important; height: 100% !important; font-size: 1.5rem !important; }
  .profile-avatar-wrap { margin: 0 !important; flex-shrink: 0; }
  .profile-stat-box { min-width: 0; padding: 1rem .75rem !important; }
  .profile-main-panel { min-width: 0; padding: .75rem !important; min-height: 0 !important; }
  .profile-tabs-nav { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem !important; padding: .25rem !important; margin-bottom: 1rem !important; }
  .profile-tab-btn { min-width: 0; min-height: 4.25rem; flex-direction: column; gap: .375rem !important; padding: .5rem .25rem !important; font-size: .75rem !important; white-space: normal !important; line-height: 1.25; }
  .profile-tab-btn svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
  .profile-tab-pane { min-width: 0; padding: .25rem !important; }
  .settings-profile-row { gap: 1rem !important; padding-bottom: 1.25rem !important; margin-bottom: 1.25rem !important; }
  .settings-nick-group { min-width: 0 !important; flex: 1 1 100%; }
  .pane-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; max-width: none; gap: .5rem; }
  .pane-input-wrap, .pane-input-wrap input { min-width: 0; width: 100%; }
  .pane-input-wrap { min-height: 2.75rem; padding-inline: .625rem; gap: .5rem; }
  #btnSaveNick { min-height: 2.75rem; padding-inline: .75rem !important; font-size: .6875rem; }
  .settings-avatar-upload-badge { width: 2.75rem; height: 2.75rem; bottom: -.25rem; right: -.5rem; }
  .settings-avatar-upload-badge svg { width: 1.125rem; height: 1.125rem; }
  .sound-toggles-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.75rem), 1fr)); width: 100%; max-width: none; }
  .sound-toggle-item { min-width: 0; min-height: 4rem; padding: .75rem !important; gap: .75rem; }
  .sound-toggle-item .st-info { min-width: 0; gap: .5rem; line-height: 1.4; }
  .sound-toggle-item .st-info svg, .sound-toggle-item .switch { flex-shrink: 0; }
  .tx-filters-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .tx-dropdown, .tx-dropdown .tb-dropdown-btn { width: 100%; min-width: 0; }
  .tx-dropdown .tb-dropdown-btn { min-height: 3rem; gap: .375rem; padding: .5rem !important; font-size: .75rem; }
  .tx-dropdown .tb-dropdown-btn span { flex: 1; min-width: 0; white-space: normal; line-height: 1.25; }
  .tx-dropdown .tb-dropdown-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
  .tx-table-wrap { overflow: visible; border: 0; background: transparent; }
  .tx-table { display: block; width: 100%; }
  .tx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tx-table tbody { display: grid; gap: .625rem; width: 100%; }
  .tx-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem .75rem; padding: .875rem; border: 1px solid var(--wv-border, #3d4264); border-radius: .75rem; background: var(--wv-input-bg, #26293e); }
  .tx-table td { min-width: 0; padding: 0 !important; border: 0; white-space: normal; overflow-wrap: anywhere; font-size: .8125rem; }
  .tx-table .tx-cell-title, .tx-table .tx-cell-date, .tx-table td[colspan] { grid-column: 1 / -1; }
  .tx-table .tx-cell-date { color: var(--muted); font-size: .75rem; }
  .tx-cell-amount::before, .tx-cell-result::before { content: attr(data-label); display: block; color: var(--muted); font-size: .6875rem; font-weight: 500; margin-bottom: .25rem; }
  .tx-table td[colspan] { padding: 1rem 0 !important; }
  .promo-creator-card, .promo-redeem-strip, .promo-item-card { min-width: 0; padding: .875rem !important; }
  .promo-form-single-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .875rem .625rem; }
  .pf-field, .pf-submit-cell { min-width: 0 !important; width: 100% !important; }
  .pf-field-code, .pf-field-dur, .pf-submit-cell { grid-column: 1 / -1; }
  .pf-field input, .promo-dur-dropdown, .promo-dur-dropdown .tb-dropdown-btn { min-width: 0; width: 100%; min-height: 2.75rem !important; }
  .pf-submit-cell { flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
  .pf-submit-cell .promo-total-cost { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .pf-submit-cell .btn-go { flex: 1 1 7rem; min-height: 2.75rem; }
  .promo-redeem-strip { gap: .875rem; }
  .prs-input-wrap { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; gap: .5rem; }
  .prs-input-wrap input, .prs-input-wrap button { min-width: 0; width: 100%; min-height: 2.75rem !important; }
  .pic-row, .pic-left, .pic-right { min-width: 0; width: 100%; flex-wrap: wrap; gap: .625rem; }
  .pic-right { justify-content: space-between; }
  .pic-code { max-width: 100%; overflow-wrap: anywhere; font-size: .875rem; }
  .pic-details, .pic-claims-summary, .pic-claim-chip { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .pic-right button { min-height: 2.75rem; max-width: 100%; white-space: normal; }
  .deposit-amount-panel, .deposit-payments-panel, .wd-card { padding: var(--panel-pad) !important; }
  .wd-step span { font-size: .7rem !important; }
  .wd-process-go, .wd-upload { max-width: 100%; white-space: normal !important; }
}
/* Touch landscape keeps the same three-step workflow but uses a compact
   two-column board. Intrinsic content can still grow and scroll vertically.
   The pointer:coarse guard is removed so the same compact layout applies in
   any narrow landscape (short laptop preview, device-emulation debugging). */
@media (min-width: 640px) and (max-width: 960px) and (max-height: 500px) {
  :root { --header-height: 3.5rem; }
  .top { min-height: 3.5rem !important; padding-block: .25rem !important; }
  #view-upgrade #wheelPanel.panel.center { column-gap: 1.25rem !important; row-gap: .5rem !important; }
  /* Wheel has to stay above the fixed bottom nav so its hub (chance indicator)
     is visible at the first glance. The mode row and switch shrink to the
     36px touch floor, and the wheel stops spanning the right-column stack
     (grid-row 2/6 in the base tablet rules) so it only takes the height
     it actually needs. */
  #view-upgrade .panel.center .mode-row { min-height: 2.25rem !important; }
  #view-upgrade .panel.center .switch { min-height: 2.25rem !important; }
  #view-upgrade .panel.center .wheel-stage {
    width: min(100%, 8rem) !important;
    grid-row: 2 / 3 !important;
    margin: 0 auto !important;
  }
  #view-upgrade .panel.center .duel-slot { min-height: 4.5rem !important; }
  #view-upgrade .panel.center .duel-art { height: 2.25rem !important; min-height: 0 !important; }
}
@media (max-width: 380px) {
  .top .top-meta, .top .balance { gap: .25rem !important; }
  .top .balance-val strong { font-size: .75rem !important; }
  .acc-tab { flex: 1 1 40%; padding-inline: .375rem !important; font-size: .75rem !important; }
}
@media (max-width: 350px) {
  :root {
    --cp-side-btn-w: 80px;
    --cp-ctrl-h: 42px;
  }
  #view-casepage .casepage-topline {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    min-height: 42px !important;
    gap: 8px !important;
  }
  #view-casepage .casepage-topline .back-btn,
  #view-casepage .casepage-topline #caseBack,
  #view-casepage .casepage-topline .casepage-fav,
  #view-casepage .casepage-topline #cpFav {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    border-radius: 9px !important;
  }
  #view-casepage .casepage-topline #cpName {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    font-size: 15px !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls .cp-actions {
    grid-template-columns: var(--cp-side-btn-w, 80px) minmax(0, 1fr) var(--cp-side-btn-w, 80px) !important;
    gap: 4px !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpFast {
    padding: 0 2px !important;
    font-size: 9.5px !important;
  }
  #view-casepage:not(.is-opening):not(.has-result) .casepage-controls #cpOpen {
    padding: 0 6px !important;
    font-size: 10px !important;
  }
  #view-casepage.is-opening .cp-opening {
    height: var(--cp-ctrl-h, 42px) !important;
    min-height: var(--cp-ctrl-h, 42px) !important;
    max-height: var(--cp-ctrl-h, 42px) !important;
    padding: 0 10px !important;
    font-size: 10px !important;
  }
  #view-casepage.has-result #cpResult {
    height: var(--cp-ctrl-h, 42px) !important;
    min-height: var(--cp-ctrl-h, 42px) !important;
    max-height: var(--cp-ctrl-h, 42px) !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #view-casepage.has-result #cpResult .btn,
  #view-casepage.has-result #cpResult #cpSell,
  #view-casepage.has-result #cpResult #cpAgain {
    height: var(--cp-ctrl-h, 42px) !important;
    min-height: var(--cp-ctrl-h, 42px) !important;
    max-height: var(--cp-ctrl-h, 42px) !important;
    font-size: 10px !important;
    padding: 0 6px !important;
  }
}
@media (hover: none) {
  .skin:hover, .gcard:hover, .skin:hover .art img { transform: none !important; }
}
#view-casepage[data-cp-guest="true"] .casepage-controls:not([hidden]),
#view-casepage[data-cp-guest="true"] .casepage-controls:not([hidden]) .cp-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 20rem) !important;
  justify-content: center !important;
}
#view-casepage[data-cp-guest="true"] .casepage-controls:not([hidden]) :is(#cpQty, #cpFast, #cpResult, .cp-opening, button)[hidden] {
  display: none !important;
}
#view-casepage[data-cp-guest="true"] .casepage-controls:not([hidden]) #cpOpen {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 2.75rem !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* The native HTML hidden attribute wins over every component rule. */
[hidden]:not([hidden="until-found"]) { display: none !important; }

/* ============================================================
   CASE CARDS — rounded, full-bleed artwork, name-left / price-right
   (loaded last; owns the catalogue card look)
   ============================================================ */

/* Four large cards per row on desktop; minimum 2 per row on mobile */
#view-cases .case-grid,
#view-cases .case-grid.bare-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  column-gap: 10px !important;
  row-gap: 10px !important;
}
@media (max-width: 1240px) { #view-cases .case-grid, #view-cases .case-grid.bare-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 800px)  { #view-cases .case-grid, #view-cases .case-grid.bare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

#view-cases .gcard,
#view-cases .gcard.bare {
  border: 0 !important;
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #3f4566 !important;
  box-shadow: 0 12px 28px rgba(6, 8, 18, 0.45) !important;
}

/* Full-bleed artwork — image fills its frame edge-to-edge */
#view-cases .gcard-art,
#view-cases .gcard.bare .gcard-art {
  position: relative !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: var(--card-stage) !important;
  box-shadow: none !important;
}
#view-cases .gcard-art > img,
#view-cases .gcard-art > img.art-hero {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  transform: none !important;
  filter: none !important;
}
/* Hover: subtle zoom only — the art frame must NOT translate (keeps image bottom + heart anchored) */
#view-cases .gcard:hover .gcard-art,
#view-cases .gcard.bare:hover .gcard-art {
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
#view-cases .gcard:hover .gcard-art > img,
#view-cases .gcard:hover .gcard-art > img.art-hero {
  transform: scale(1.05) !important;
  filter: brightness(1.05) !important;
  transition: transform 0.4s ease !important;
}

/* Bottom bar: case name left, price right */
#view-cases .gcard-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  background: #3f4566 !important;
}
#view-cases .gcard-name,
#view-cases .gcard.bare .gcard-name {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  background: transparent !important;
  color: #c4b5fd !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#view-cases .gcard-price,
#view-cases .gcard.bare .gcard-price {
  position: static !important;
  transform: none !important;
  z-index: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--gold) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* No rarity strip, no extra sub-text */
#view-cases .gcard .rarity-strip,
#view-cases .gcard.bare .rarity-strip {
  display: none !important;
}

/* Favorite heart: solid, equal spacing from top/right edges, no hover jump */
#view-cases .card-heart {
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  bottom: auto !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: #202335 !important;
  color: #c4b5fd !important;
  opacity: 1 !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 2px 10px rgba(6, 8, 18, 0.5) !important;
}
#view-cases .card-heart svg { width: 17px !important; height: 17px !important; }
#view-cases .gcard.faved .card-heart { background: #ff5f7e !important; color: #fff !important; }
#view-cases .gcard.faved .card-heart svg path { fill: currentColor !important; }

/* ============================================================
   CASE PAGE — opaque roulette card + edge-stretched blurred sides
   ============================================================ */

/* Left/right edge-stretch: 20% of the image stretched to fill each side, blurred.
   Solid through the middle (behind the sharp art), fading only at the card edge. */
#view-casepage:not(.is-opening):not(.has-result) .cp-idle-case::before,
#view-casepage:not(.is-opening):not(.has-result) .cp-idle-case::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: auto !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 50% !important;
  z-index: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: var(--art, none) !important;
  background-size: 1000% 100% !important;
  background-repeat: no-repeat !important;
  filter: blur(38px) saturate(1.1) !important;
  opacity: 1 !important;
  pointer-events: none !important;
}
#view-casepage:not(.is-opening):not(.has-result) .cp-idle-case::before {
  left: 0 !important;
  right: auto !important;
  background-position: left center !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 100%) !important;
  mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 100%) !important;
}
#view-casepage:not(.is-opening):not(.has-result) .cp-idle-case::after {
  right: 0 !important;
  left: auto !important;
  background-position: right center !important;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 16%, #000 100%) !important;
  mask-image: linear-gradient(to left, transparent 0%, #000 16%, #000 100%) !important;
}

/* Sharp case art: centred, gradual fade into the stretched sides */
#view-casepage:not(.is-opening):not(.has-result) .cp-idle-case img {
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
  height: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  max-width: min(460px, 68%) !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 72%, transparent 100%) !important;
  mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 72%, transparent 100%) !important;
}

/* Item cards inside a case + roulette items: not hoverable */
.drop-tile,
.spinner-item {
  pointer-events: none !important;
}

/* Mobile case-toolbar: compact 3-zone row (favourites | category | more),
   detailed filters collapse into a neat "more" card. Loads LAST. */

/* Desktop: keep the toolbar exactly as before. The more-panel wrapper is
   transparent (display:contents) so its children stay direct flex items;
   mobile-only bits (section labels, segmented sort, price labels, "more"
   button, random text label) are hidden. */
#tbMorePanel { display: contents; }
#tbMore,
.tb-sec-label,
.tb-sort-seg,
.tb-price-label { display: none; }
#tbRandom .tb-random-label { display: none; }

@media (max-width: 760px), (max-width: 960px) and (max-height: 500px) and (pointer: coarse) {
  .case-toolbar {
    display: grid !important;
    grid-template-columns: var(--control-size) minmax(0, 1fr) var(--control-size) !important;
    align-items: stretch !important;
    gap: .5rem !important;
    flex-wrap: nowrap !important;
  }

  /* Default row: heart | category | more */
  #tbFav,
  #tbMore {
    grid-row: 1;
    display: inline-flex !important;
    width: var(--control-size) !important;
    min-width: var(--control-size) !important;
    max-width: var(--control-size) !important;
    height: var(--control-size) !important;
    min-height: var(--control-size) !important;
    padding: 0 !important;
    border-radius: .625rem !important;
  }
  #tbFav { grid-column: 1; }
  #tbMore { grid-column: 3; }

  #tbCatDropdown {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    flex: 0 0 auto !important;
  }
  #tbCatDropdown .tb-dropdown-btn {
    width: 100% !important;
    height: var(--control-size) !important;
    min-height: var(--control-size) !important;
  }

  /* Collapse detailed filters + random behind the "more" button */
  #tbMorePanel { display: none !important; }
  #tbRandom { display: none !important; }

  /* --- Expanded "more" card --- */
  .case-toolbar.more-open #tbMorePanel {
    display: grid !important;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem !important;
    padding: .875rem !important;
    border: 1px solid rgba(66, 71, 109, 0.6) !important;
    border-radius: .875rem !important;
    background: #25283d !important;
    box-shadow: 0 12px 30px rgba(13, 15, 28, 0.4) !important;
  }

  /* Reading order: search → price → sort → toggle */
  #tbMorePanel .tb-search { order: 1 !important; }
  #tbMorePanel .tb-sec-price { order: 2 !important; }
  #tbMorePanel .tb-price { order: 3 !important; }
  #tbMorePanel .tb-sec-sort { order: 4 !important; }
  #tbMorePanel .tb-sort-seg { order: 5 !important; }
  #tbMorePanel .tb-toggle { order: 6 !important; }

  /* Section labels */
  .tb-sec-label {
    display: block !important;
    margin-top: .25rem !important;
    font: 600 .6875rem/1 Rubik, sans-serif !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    color: #7b80a0 !important;
  }

  /* Search */
  #tbMorePanel .tb-search {
    display: flex !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    min-height: var(--control-size) !important;
  }

  /* Price row: one pill with От / До labels */
  #tbMorePanel .tb-price {
    display: flex !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    min-height: var(--control-size) !important;
    gap: .5rem !important;
  }
  #tbMorePanel .tb-price .tb-price-label {
    display: block !important;
    color: #7b80a0 !important;
    font: 500 .75rem/1 Rubik, sans-serif !important;
    align-self: center !important;
    flex: 0 0 auto !important;
  }
  #tbMorePanel .tb-price input {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
  }

  /* Sort: segmented two-button control */
  .tb-sort-seg {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: .25rem !important;
    padding: .25rem !important;
    border-radius: .625rem !important;
    background: #1b1e33 !important;
  }
  .tb-sort-seg button {
    min-height: 2.25rem !important;
    border: 0 !important;
    border-radius: .5rem !important;
    background: transparent !important;
    color: #c5c8dd !important;
    font: 500 .8125rem Rubik, sans-serif !important;
    cursor: pointer !important;
    transition: background 0.18s ease, color 0.18s ease !important;
  }
  .tb-sort-seg button.selected {
    background: #9f8ff8 !important;
    color: #171527 !important;
  }

  /* The desktop sort dropdown is replaced by the segmented control */
  #tbMorePanel #tbSortDropdown { display: none !important; }

  /* Toggle: clean full-width row, label left / switch right */
  #tbMorePanel .tb-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: var(--control-size) !important;
    padding: 0 .25rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  #tbMorePanel .tb-toggle span {
    order: -1;
    font-size: .8125rem !important;
    color: #c5c8dd !important;
  }

  /* Random: full-width action button under the card */
  .case-toolbar.more-open #tbRandom {
    display: flex !important;
    grid-column: 1 / -1;
    grid-row: 3;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100% !important;
    min-height: var(--control-size) !important;
    border-color: rgba(135, 93, 244, 0.4) !important;
    background: rgba(135, 93, 244, 0.1) !important;
  }
  .case-toolbar.more-open #tbRandom .tb-random-label {
    display: inline;
    font-size: .8125rem;
    font-weight: 500;
  }

  /* Active "more" state */
  #tbMore.on {
    color: #fff !important;
    border-color: rgba(135, 93, 244, 0.55) !important;
    background: rgba(135, 93, 244, 0.12) !important;
  }
}

/* Inventory subbar polish: calmer sell-all button (all devices) and a
   compact single-row layout on mobile too. Loads LAST. */

/* Less intense sell-all: muted rose gradient + weaker glow (was neon coral). */
.btn-sellall {
  background: linear-gradient(180deg, #cf6472, #bb4c5e) !important;
  box-shadow: 0 4px 12px rgba(187, 76, 94, 0.16) !important;
}
.btn-sellall:hover { filter: brightness(1.05); }

@media (max-width: 760px), (max-width: 960px) and (max-height: 500px) and (pointer: coarse) {
  .acc-subbar {
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: .5rem !important;
  }
  .acc-total {
    display: flex !important;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    font-size: .75rem !important;
    white-space: nowrap;
  }
  .acc-total-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .acc-total b {
    flex: 0 0 auto;
    margin-left: .5rem !important;
    height: 20px !important;
    min-width: 24px !important;
    font-size: .6875rem !important;
  }
  .acc-sub-right {
    width: auto !important;
    flex: 0 0 auto;
    margin-left: auto;
  }
  .btn-sellall {
    display: flex !important;
    width: auto !important;
    justify-content: center !important;
    min-height: var(--control-size) !important;
    padding: 0 .6875rem !important;
    gap: .375rem !important;
    font-size: .6875rem !important;
  }
  .btn-sellall svg { display: none !important; }
  .btn-sellall-total {
    padding-left: .375rem !important;
    margin-left: 0 !important;
    font-size: .6563rem !important;
  }
}

/* Mobile grid columns (revised):
   - case catalogue (.case-grid): unchanged (2 per row)
   - casepage drop cards (.drops-grid / #cpDropsGrid): 3 per row
   - upgrader side panels (.skins #invPick/#targets): 3 per row
   - inventory (#invGrid): 3 per row on normal mobile (>=430px), 2 per row on very small
     screens (<430px); the sell button + price always sit on ONE row regardless of width.

   Loaded last; overrides the legacy 2-column / auto-fill mobile rules in
   case-withdraw-final.css, responsive.css, styles.css, card-layout-final.css and
   case-header-final.css. */

@media (max-width: 760px) {
  #view-upgrade .panel:not(.center) .skins {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #cpDropsGrid,
  #cpDropsGrid.drops-grid,
  .drops-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  /* Casepage drop card: compact chance% + price chips so they fit in a 3-up card. */
  #view-casepage .drop-tile .dt-p {
    left: 6px !important;
    font-size: 8px !important;
    padding: 2px 4px !important;
  }
  #view-casepage .drop-tile .dt-g {
    right: 6px !important;
    font-size: 9px !important;
  }
}

/* Inventory: 3-up only where the card is wide enough for "ПРОДАТЬ" + price on one row. */
@media (min-width: 430px) and (max-width: 700px) {
  #invGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Inventory card header: sell button + price stay on ONE row at every width.
   Compact the sell button so it fits next to the price in a 3-column card. */
@media (max-width: 760px) {
  #view-inv .icard .ic-top {
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }
  #view-inv .icard .ic-sell {
    flex: 0 0 auto !important;
    padding: 6px 8px !important;
    font-size: 8.5px !important;
    letter-spacing: 0.03em !important;
  }
  #view-inv .icard .ic-price {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 11px !important;
  }
}

/* ============================================================
   UX FINAL — account-section + withdrawal-flow fixes.
   Loaded last so these overrides win the cascade.
   ============================================================ */

/* Keep one native scroll owner. Unsupported chain values fall back to auto.
   Dialogs retain their independent scroll containment. */
#mainContent .skins,
#invGrid,
#mainContent .drops-grid,
#mainContent .tb-dropdown-menu,
#mainContent .tx-table-wrap,
#mainContent .wd-skinrow,
#mainContent .wd-process-summary,
#mainContent .wd-hist-details,
#userMenu {
  overscroll-behavior-y: auto !important;
  overscroll-behavior-y: chain !important;
}

/* Upgrader wheel spin: drop the saturation filter on the pie so the
   rAF rotation stays a cheap compositor transform (fixes lag). */
.pie { filter: none !important; }

@media (pointer: coarse), (max-width: 900px) {
  #view-upgrade .wheel-stage.is-spinning .pointer,
  #view-upgrade .wheel-stage.is-spinning .hub,
  #view-upgrade .wheel-stage.is-spinning .pct,
  #view-upgrade .wheel-stage.result-win .wheel,
  #view-upgrade .wheel-stage.result-lose .wheel {
    animation: none !important;
    filter: none !important;
  }
  #view-upgrade .wheel-stage .wheel::before {
    animation: none !important;
  }
  #view-upgrade .wheel-stage .hub.win,
  #view-upgrade .wheel-stage .hub.lose {
    animation: none !important;
  }
}

@media (max-width: 900px) {

  /* Account tabs — 3 tabs stay on one line; the «Выводы» badge never wraps. */
  .acc-tabs { gap: 4px !important; padding: 5px !important; }
  .acc-tab {
    gap: 6px !important;
    padding: 0 4px !important;
    font-size: 10.5px !important;
    letter-spacing: 0.03em !important;
    min-width: 0 !important;
  }
  .acc-tab svg { width: 15px !important; height: 15px !important; }
  .acc-tab span { white-space: nowrap !important; }
  .acc-badge {
    flex: 0 0 auto !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    font-size: 9px !important;
  }

  /* Game history sub-tabs — two equal buttons fill the row, no dead space. */
  .hist-subtabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .hist-sub { width: 100% !important; justify-content: center !important; }

  /* Withdrawals info cards — stack into one column (card-watermarks.css
     forces 3 columns with !important, which overflows on narrow screens). */
  .wd-info { grid-template-columns: 1fr !important; gap: 8px !important; }
}

/* ===== Withdrawal flow — price step + process page (all viewports) ===== */

/* Offer cards: rarity wash spans the full card, not just the left ~38%. */
.wd-offer::before { width: auto !important; }

/* Price + pattern input cards: lighten to match the site's inset cards. */
.wd-price-copy-field,
.wd-pattern-field {
  background: #343853 !important;
}
/* The inputs themselves are still painted #26293f by a generic
   input[type="text"] rule — make them transparent so they match. */
.wd-price-copy-field input,
.wd-pattern-field input {
  background: transparent !important;
}

/* Gold "G" coin: restore a clean circular coin, drop the square ring. */
.wd-field-coin {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  flex: 0 0 24px !important;
  border-radius: 50% !important;
  background: var(--grad-gold) !important;
  color: #30240b !important;
  box-shadow: none !important;
  font-size: 12px !important;
}

/* Chosen-skin tile: add the subtle OFFGRADER watermark behind the art. */
.wd-skin-art {
  background-image: url("ui/offgrader-mark-subtle.svg") !important;
  background-position: center !important;
  background-size: 72% auto !important;
  background-repeat: no-repeat !important;
}

/* Process page: keep the success checkmark on top of the summary images. */
.wd-process-check { z-index: 2 !important; }

#toast.toast-warning {
  animation: none;
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  bottom: auto !important;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw / var(--pz, 1) - 32px) !important;
  box-sizing: border-box;
  padding: 16px 20px;
  border: 0;
  border-radius: 16px !important;
  background: #383b5a !important;
  color: #f3f1ff;
  box-shadow: 0 12px 40px rgba(12, 13, 28, .38) !important;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  pointer-events: auto;
}
.toast-warning-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(244, 202, 98, .14);
  color: var(--gold, #f4ca62);
  font-size: 22px;
  font-weight: 800;
}

/* success variant of the top notice (e.g. welcome bonus claimed) */
#toast.toast-ok .toast-warning-icon { background: rgba(86, 214, 140, .16); color: #56d68c; }

#launchBonusBanner,
#balanceTopupBanner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 104px;
  margin: 0 0 var(--page-gap, 20px);
  padding: 16px 140px 16px 24px;
  border: 0;
  border-radius: 22px;
  background: radial-gradient(ellipse at 76% 20%, rgba(244,196,104,.8), transparent 46%), linear-gradient(110deg,#9452e9 0%,#9959eb 40%,#7864e9 100%);
  box-shadow: none;
  color: #fff;
  font-family: Rubik, sans-serif;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  transition: filter .18s ease;
}
#launchBonusBanner[hidden],
#balanceTopupBanner[hidden] { display: none !important; }
#launchBonusBanner::before,
#balanceTopupBanner::before {
  content: "";
  position: absolute;
  inset: -70% 4% -90% auto;
  z-index: -1;
  width: 330px;
  background: url("ui/offgrader-mark-white.svg") center/contain no-repeat;
  opacity: .13;
  transform: rotate(-17deg);
  filter: blur(3px);
}
#launchBonusBanner::after,
#balanceTopupBanner::after { content: none; }
#launchBonusBanner:hover:not(:disabled),
#balanceTopupBanner:hover:not(:disabled) { filter: brightness(1.06); }
#launchBonusBanner:focus-visible,
#balanceTopupBanner:focus-visible { outline: none; box-shadow: 0 0 0 3px #25283d, 0 0 0 6px #d6c6ff; }
#launchBonusBanner:disabled,
#balanceTopupBanner:disabled { cursor: default; opacity: 1; }
.launch-bonus-copy { display: grid; gap: 5px; min-width: 0; }
#launchBonusAction,
#balanceTopupBanner .launch-bonus-copy > span { font-size: 15px; line-height: 1.25; font-weight: 500; }
#launchBonusTitle,
#balanceTopupBanner .launch-bonus-copy > strong { font-size: clamp(25px,2.3vw,36px); line-height: 1.08; font-weight: 800; }
.launch-bonus-countdown { display: grid; gap: 5px; flex: 0 0 auto; }
.launch-bonus-countdown > span { font-size: 11px; opacity: .85; }
#launchBonusTimer { font-size: 20px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.launch-bonus-logo {
  position: absolute;
  right: 28px;
  top: 50%;
  width: 78px;
  height: 78px;
  object-fit: contain;
  transform: translateY(-50%) rotate(12deg);
  filter: drop-shadow(0 3px 2px rgba(69, 35, 94, .26)) drop-shadow(0 11px 10px rgba(77, 39, 115, .38));
  pointer-events: none;
}
.balance-topup-mark { justify-items: start; }
.balance-topup-mark img {
  display: block;
  width: min(168px, 46vw);
  height: auto;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, .35))
    drop-shadow(0 3px 2px rgba(28, 8, 48, .72))
    drop-shadow(0 8px 10px rgba(36, 10, 62, .55))
    drop-shadow(0 16px 18px rgba(18, 6, 36, .42));
}
/* One-time +20% skin top-up bonus (design D): offer on the left, dark bonus panel with timer on the right. */
.balance-topup-short,
.balance-topup-nofee,
.balance-topup-so2,
.balance-topup-offer { display: none; }
#balanceTopupBanner.has-offer { align-items: stretch; gap: 0; padding: 0 0 0 24px; }
#balanceTopupBanner.has-offer .launch-bonus-copy { align-content: center; gap: 8px; padding: 16px 16px 16px 0; }
#balanceTopupBanner.has-offer .balance-topup-plain,
#balanceTopupBanner.has-offer .balance-topup-mark,
#balanceTopupBanner.has-offer .launch-bonus-logo { display: none; }
#balanceTopupBanner.has-offer .balance-topup-short { display: block; }
#balanceTopupBanner.has-offer:not(.is-promo) .balance-topup-nofee { display: block; margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 700; line-height: 1.2; color: #ffd76a; text-align: center; }
#balanceTopupBanner.has-offer .balance-topup-so2 {
  display: block; width: 150px; height: auto;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .35)) drop-shadow(0 3px 2px rgba(28, 8, 48, .72)) drop-shadow(0 8px 10px rgba(36, 10, 62, .55));
}
#balanceTopupBanner.has-offer .balance-topup-offer {
  display: grid; flex: 0 0 auto; align-content: center; justify-items: center; gap: 2px;
  min-width: 210px; margin: 0 -1px 0 auto; padding: 14px 22px;
  background: linear-gradient(160deg, #35246a, #241a47);
}
.balance-topup-offer > b { font-family: Benzin, Rubik, sans-serif; font-size: 40px; line-height: 1; font-weight: 700; color: #ffd76a; }
.balance-topup-offer > span { font-size: 13px; opacity: .9; }
.balance-topup-offer > .balance-topup-timer { margin-top: 6px; font-size: 18px; font-weight: 700; opacity: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) {
  #launchBonusBanner,
  #balanceTopupBanner { gap: 8px; min-height: 104px; padding: 14px 88px 14px 16px; border-radius: 20px; flex-direction: column; align-items: flex-start; justify-content: center; }
  #launchBonusAction,
  #balanceTopupBanner .launch-bonus-copy > span { font-size: 11px; }
  #launchBonusTitle,
  #balanceTopupBanner .launch-bonus-copy > strong { font-size: 24px; }
  .launch-bonus-countdown { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; }
  .launch-bonus-countdown > span { font-size: 10px; }
  #launchBonusTimer { font-size: 14px; }
  .launch-bonus-logo { right: 16px; width: 62px; height: 62px; }
  #balanceTopupBanner .balance-topup-words { display: none; }
  #balanceTopupBanner.has-offer { flex-direction: row; align-items: stretch; justify-content: flex-start; gap: 0; padding: 0 0 0 16px; }
  #balanceTopupBanner.has-offer .launch-bonus-copy { padding: 14px 10px 14px 0; }
  #balanceTopupBanner.has-offer .launch-bonus-copy > strong { font-size: 21px; }
  #balanceTopupBanner.has-offer:not(.is-promo) .balance-topup-nofee { margin-top: 6px; font-size: 11px; }
  #balanceTopupBanner.has-offer .balance-topup-so2 { width: 108px; }
  #balanceTopupBanner.has-offer .balance-topup-offer { min-width: 118px; padding: 12px 10px; }
  .balance-topup-offer > b { font-size: 28px; }
  .balance-topup-offer > span { font-size: 11px; }
  .balance-topup-offer > .balance-topup-timer { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #launchBonusBanner,
  #balanceTopupBanner { transition: none; }
}
.balance-topup-offer > .balance-topup-timer:empty { display: none; }

/* Rewards page («Награды»), the small 10 G welcome offer at the bottom of the content, the header level chip,
   the nav dot and the level-up notice. Mobile-game reward screen in the site's brand: violet gradients, gold only for
   amounts, rank emblems in the server's rank colours, one slow glow on things that can be claimed right now.
   Loaded before welvura-refresh.css, so page-level rules carry the `html body` / `#view-rewards` prefix. */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- navigation: red dot on the «Награды» tab when something can be claimed ---------- */
html body .rail-nav .tab { position: relative; }
html body .rail-nav .tab .tab-dot { position: absolute; top: 11px; left: calc(50% + 7px); width: 10px; height: 10px; border-radius: 50%; background: #e23a3d; box-shadow: 0 0 0 2px var(--wv-panel, #303047); pointer-events: none; }
html body .rail-nav .tab .tab-dot[hidden] { display: none; }
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px) { html body .rail-nav .tab .tab-dot { top: 6px; left: calc(50% + 11px); } }

/* ---------- header level chip: same square family as «+», balance and avatar ---------- */
html body .level-chip {
  --p: 0;
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; flex: 0 0 44px;
  width: 44px; height: 44px; margin-right: 8px; padding: 0 0 3px; overflow: hidden; border: 0; border-radius: 11px;
  background: var(--wv-panel, #303047); color: var(--wv-text, #f5f3ff); font-family: Rubik, sans-serif; cursor: pointer; transition: background .15s ease;
}
html body .level-chip[hidden] { display: none; }
html body .level-chip:hover { background: #3a3a55; }
html body .level-chip:focus-visible { outline: 2px solid #d6c6ff; outline-offset: 2px; }
html body .level-chip small { color: var(--wv-muted, #b8b6d0); font-size: 9px; font-weight: 700; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
html body .level-chip .level-num { font-size: 17px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
html body .level-chip .level-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
html body .level-chip .level-bar u { display: block; width: calc(var(--p) * 100%); height: 100%; background: linear-gradient(90deg, #a34ef4, #7265fd); text-decoration: none; transition: width .4s ease; }
html body .level-chip .level-dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #e23a3d; }
html body .level-chip .level-dot[hidden] { display: none; }
/* phones: the header is too tight, the level stays on the Награды page and in the account menu */
@media (max-width: 760px) { html body .level-chip { display: none; } }

/* ---------- shared bits ---------- */
#view-rewards .rw-page { display: grid; gap: 16px; width: 100%; max-width: 1080px; margin: 0 auto; padding: 4px 0 8px; font-family: Rubik, sans-serif; color: var(--wv-text, #f5f3ff); }
#view-rewards .rw-card { position: relative; display: grid; gap: 18px; min-width: 0; padding: 22px; border: 0; border-radius: 18px; background: var(--wv-panel, #303047); box-shadow: none; }
#view-rewards .rw-card[hidden] { display: none; }
#view-rewards h2 { margin: 0; color: #fff; font-family: Rubik, sans-serif; text-transform: none; letter-spacing: normal; }
#view-rewards .rw-ico { display: inline-flex; flex: 0 0 auto; width: 18px; height: 18px; }
#view-rewards .rw-ico svg, #view-rewards .rw-stamp svg, #view-rewards .rw-loot-lock svg { display: block; width: 100%; height: 100%; }
#view-rewards .rw-emblem { display: block; width: 100%; height: auto; }
#view-rewards .rw-mini-em { display: inline-flex; flex: 0 0 auto; width: 30px; }
#view-rewards .rw-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 52px; padding: 0 22px; border: 0; border-radius: 14px;
  background: linear-gradient(115deg, #a34ef4, #7265fd); color: #fff; font: 800 16px Rubik, sans-serif; text-transform: none; letter-spacing: normal;
  box-shadow: 0 8px 22px rgba(130, 80, 240, .32); cursor: pointer; transition: filter .15s ease;
}
#view-rewards .rw-btn:hover:not(:disabled) { filter: brightness(1.08); }
#view-rewards :is(.rw-btn, .rw-stat, .rw-day.now, .rw-loot):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#view-rewards .is-busy { opacity: .6; pointer-events: none; }
#view-rewards .rw-head { display: flex; align-items: center; gap: 14px; }
#view-rewards .rw-head-ico { width: 44px; height: 44px; padding: 11px; border-radius: 13px; background: #6a58e6; color: #fff; }
#view-rewards .rw-head-t { display: grid; gap: 3px; min-width: 0; }
#view-rewards .rw-head-t h2 { font-size: 20px; font-weight: 800; }
#view-rewards .rw-head-t p { margin: 0; color: var(--wv-muted, #b8b6d0); font-size: 13.5px; line-height: 1.4; }
#view-rewards .rw-stamp { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: #8f62f5; color: #fff; box-shadow: 0 6px 18px rgba(143, 98, 245, .45); left: 50%; top: 50%; transform: translate(-50%, -50%); }
#view-rewards .just .rw-stamp { animation: rw-stamp .35s ease-out both; }

/* ---------- hero ---------- */
/* Flat, "Band" layout (owner-picked 2026-10-03): the emblem stands free on a slanted band in the rank colour (the slant echoes the
   logo chevrons), then the rank, level and a slim XP bar, and two plain rows that say what is waiting. No plate, glow or icon boxes. */
#view-rewards .rw-hero {
  --rank: #9aa4b2;
  grid-template-columns: 290px minmax(0, 1fr) 300px; grid-template-rows: auto auto; gap: 14px 26px; align-items: center;
  overflow: hidden; isolation: isolate; padding: 26px 22px 16px 0;
}
#view-rewards .rw-hero::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 300px; background: color-mix(in srgb, var(--rank) 16%, #25253a); clip-path: polygon(0 0, 100% 0, calc(100% - 56px) 100%, 0 100%); }
#view-rewards .rw-hero::after { content: ""; position: absolute; z-index: -1; right: -70px; top: -80px; width: 340px; height: 340px; background: url("ui/offgrader-mark-white.svg") center / contain no-repeat; opacity: .035; transform: rotate(-14deg); }
#view-rewards .rw-hero-main { display: contents; }
#view-rewards .rw-hero-em { grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center; align-self: stretch; padding-right: 20px; }
#view-rewards .rw-hero-em .rw-emblem { width: 200px; }
#view-rewards .rw-hero-info { grid-column: 2; grid-row: 1; }
#view-rewards .rw-hero-side { grid-column: 3; grid-row: 1; }
#view-rewards .rw-hero-foot { grid-column: 2 / 4; grid-row: 2; }
#view-rewards .rw-hero:not(:has(.rw-hero-side)) .rw-hero-info { grid-column: 2 / 4; }
#view-rewards .rw-hero-info { display: grid; gap: 4px; flex: 1 1 auto; min-width: 0; }
#view-rewards .rw-hero-rank { color: var(--rank); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
#view-rewards .rw-hero-info h2 { font-size: 34px; font-weight: 800; line-height: 1.1; }
#view-rewards .rw-hero-sub { margin: 4px 0 10px; color: var(--wv-muted, #b8b6d0); font-size: 14.5px; }
#view-rewards .rw-hero-info .rw-btn { width: auto; max-width: 260px; }
#view-rewards .rw-xpbar { height: 10px; margin-top: 12px; overflow: hidden; border-radius: 3px; background: #23233a; }
#view-rewards .rw-xpbar i { display: block; min-width: 14px; height: 100%; background: var(--rank); clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); transition: width .6s ease; }
#view-rewards .rw-xp { display: flex; justify-content: space-between; gap: 12px; color: var(--wv-muted, #b8b6d0); font-size: 13px; font-variant-numeric: tabular-nums; }
#view-rewards .rw-xp span:first-child { color: #fff; font-weight: 700; }
#view-rewards .rw-nextrank { display: flex; align-items: center; gap: 9px; margin-top: 8px; color: var(--wv-muted, #b8b6d0); font-size: 13px; }
#view-rewards .rw-hero-side { display: grid; gap: 8px; }
#view-rewards .rw-stat {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px;
  background: #25253a; color: #fff; font-family: Rubik, sans-serif; text-align: left; cursor: pointer; transition: background .15s ease;
}
#view-rewards .rw-stat:hover { background: #2c2c44; }
#view-rewards .rw-stat-ico { width: 26px; height: 26px; color: #aa96f4; }
#view-rewards .rw-stat-t { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
#view-rewards .rw-stat-t span { color: var(--wv-muted, #b8b6d0); font-size: 12.5px; }
#view-rewards .rw-stat-t b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
#view-rewards .rw-stat-go { width: 16px; height: 16px; color: #6f6c92; }
#view-rewards .rw-stat.is-ready { background: #4b3b99; animation: rw-glow-soft 2.6s ease-in-out infinite; }
#view-rewards .rw-stat.is-ready:hover { background: #54439f; }
#view-rewards .rw-stat.is-ready .rw-stat-ico, #view-rewards .rw-stat.is-ready .rw-stat-go { color: #fff; }
#view-rewards .rw-stat.is-ready .rw-stat-t span { color: #e3dbff; }
#view-rewards .rw-stat-dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #e23a3d; }
#view-rewards .rw-hero-foot { margin: 0; color: #8f8cab; font-size: 12.5px; }

/* ---------- daily calendar ---------- */
/* streak scoreboard: two slanted blocks (the slant echoes the logo and the rank band), streak and record */
#view-rewards .rw-score { display: flex; flex: none; gap: 6px; margin-left: auto; }
#view-rewards .rw-blk { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 26px 11px 22px; background: #25253a; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
#view-rewards .rw-blk.cur { background: color-mix(in srgb, #ff8a3d 20%, #25253a); }
#view-rewards .rw-blk.cur.at { background: color-mix(in srgb, #ffc83d 22%, #25253a); }
#view-rewards .rw-blk.cur.zero { background: #25253a; }
#view-rewards .rw-blk .rw-ico { width: 30px; height: 30px; }
#view-rewards .rw-num { color: #fff; font-size: 32px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
#view-rewards .rw-blk.zero .rw-num { color: #6f6c92; }
#view-rewards .rw-lb { display: grid; gap: 1px; color: var(--wv-muted, #b8b6d0); font-size: 12.5px; line-height: 1.25; white-space: nowrap; }
#view-rewards .rw-lb b { color: #fff; font-size: 13px; font-weight: 700; }
#view-rewards .rw-blk.at .rw-lb .sub { color: #ffc83d; font-weight: 700; }
#view-rewards .rw-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.8fr); gap: 10px; }
#view-rewards .rw-day {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 6px; min-height: 136px; padding: 14px 6px; overflow: hidden; isolation: isolate;
  border: 0; border-radius: 16px; background: linear-gradient(180deg, #3e3e5e, #33334e); color: var(--wv-muted, #b8b6d0); font-family: Rubik, sans-serif; text-align: center;
}
#view-rewards .rw-day-n { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
#view-rewards .rw-day-g, #view-rewards .rw-loot-g { color: #ffd76a; font-size: 28px; font-weight: 800; line-height: 1; text-shadow: 0 2px 14px rgba(255, 196, 70, .28); white-space: nowrap; }
#view-rewards .rw-day-g i, #view-rewards .rw-loot-g i { margin-left: 3px; font-size: .5em; font-style: normal; }
#view-rewards .rw-day-xp { color: #8d8aa8; font-size: 11.5px; }
#view-rewards .rw-day.big { background: radial-gradient(80% 70% at 50% 0%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(140deg, #9a4cf2, #6a5cf6); color: #efe9ff; }
#view-rewards .rw-day.big::before { content: ""; position: absolute; z-index: -1; right: -26px; bottom: -36px; width: 150px; height: 150px; background: url("ui/offgrader-mark-white.svg") center / contain no-repeat; opacity: .14; transform: rotate(-14deg); }
#view-rewards .rw-day.big .rw-day-g { font-size: 40px; }
#view-rewards .rw-day.big .rw-day-xp { color: #ddd3ff; }
#view-rewards .rw-day.done { background: #29293f; }
#view-rewards .rw-day.done .rw-day-n { opacity: .45; }
#view-rewards .rw-day.done :is(.rw-day-g, .rw-day-xp) { visibility: hidden; }
#view-rewards .rw-day.now { cursor: pointer; background: linear-gradient(180deg, #5d40b8, #41358a); color: #fff; animation: rw-glow-soft 2.6s ease-in-out infinite; transition: filter .15s ease; }
#view-rewards .rw-day.now:hover { filter: brightness(1.08); }
#view-rewards .rw-day.big.now { background: radial-gradient(80% 70% at 50% 0%, rgba(255, 255, 255, .22), transparent 70%), linear-gradient(140deg, #a855f7, #6d5ff8); }
#view-rewards .rw-loot-cta { padding: 5px 14px; border-radius: 99px; background: #fff; color: #5b34d6; font-size: 12.5px; font-weight: 800; }
#view-rewards .rw-daily-foot .rw-timer { display: flex; align-items: center; justify-content: center; gap: 12px; height: 52px; border-radius: 14px; background: #272739; color: var(--wv-muted, #b8b6d0); font-size: 14px; }
#view-rewards .rw-timer b { color: #fff; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- reward track ---------- */
#view-rewards .rw-track-scroll { margin: 0 -22px; padding: 4px 22px 6px 22px; scroll-padding-left: 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #4b4868 transparent; }
#view-rewards .rw-track { --top: 154px; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(100px, 1fr)); min-width: calc(var(--n) * 100px); }
#view-rewards .rw-col { display: grid; grid-template-rows: 26px 108px 44px 18px; row-gap: 10px; justify-items: center; padding: 0 5px; scroll-snap-align: start; }
#view-rewards .rw-col-rank { display: flex; align-items: center; gap: 5px; color: #d6c6ff; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
#view-rewards .rw-loot {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 10px; width: 100%; height: 108px; padding: 0; overflow: hidden;
  border: 0; border-radius: 16px; background: linear-gradient(180deg, #3e3e5e, #33334e); color: #fff; font-family: Rubik, sans-serif;
}
#view-rewards .rw-loot-g { font-size: 24px; }
#view-rewards .rw-loot-lock { width: 18px; height: 18px; color: #8d8aa8; }
#view-rewards .rw-col.ready .rw-loot { cursor: pointer; background: linear-gradient(180deg, #5d40b8, #41358a); animation: rw-glow-soft 2.6s ease-in-out infinite; }
#view-rewards .rw-col.claimed .rw-loot { background: #29293f; }
#view-rewards .rw-col.claimed .rw-loot > :not(.rw-stamp) { visibility: hidden; }
#view-rewards .rw-col.claimed .rw-stamp { width: 40px; height: 40px; padding: 10px; }
#view-rewards .rw-node { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #272739; color: #b8b6d0; font-size: 15px; font-weight: 800; box-shadow: 0 0 0 5px var(--wv-panel, #303047); }
#view-rewards .rw-col.reached .rw-node { background: linear-gradient(135deg, #a34ef4, #7265fd); color: #fff; }
#view-rewards .rw-col-sub { color: #8d8aa8; font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
#view-rewards .rw-col.ready .rw-col-sub { color: #d6c6ff; font-weight: 800; }
#view-rewards .rw-line { position: absolute; left: 0; right: 0; top: calc(var(--top) + 18px); height: 8px; border-radius: 99px; background: #272739; }
#view-rewards .rw-line i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a34ef4, #7265fd); box-shadow: 0 0 12px rgba(163, 78, 244, .55); transition: width .6s ease; }
#view-rewards .rw-you { position: absolute; z-index: 2; top: calc(var(--top) + 22px); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #25253a; box-shadow: 0 0 0 4px var(--wv-panel, #303047); transform: translate(-50%, -50%); }
#view-rewards .rw-you .rw-emblem { width: 28px; }

/* ---------- floating "+X G" after a claim ---------- */
.rw-float { position: fixed; z-index: 1400; color: #ffd76a; font: 800 24px Rubik, sans-serif; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); pointer-events: none; transform: translate(-50%, 0); animation: rw-float 1.1s ease-out forwards; }

/* ---------- level-up notice ---------- */
.level-pop {
  position: fixed; left: 50%; top: 84px; z-index: 1300; display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 12px;
  border-radius: 16px; background: linear-gradient(135deg, #3a3960, #2b2a45); color: #fff; box-shadow: 0 14px 36px rgba(12, 10, 25, .5);
  transform: translateX(-50%); cursor: pointer; font-family: Rubik, sans-serif; animation: wp-pop-in .25s ease-out; transition: opacity .35s ease;
}
.level-pop.out { opacity: 0; }
.level-pop-em { display: block; width: 52px; }
.level-pop-em .rw-emblem { display: block; width: 52px; height: auto; }
.level-pop-text { display: grid; gap: 2px; }
.level-pop-text b { font-size: 16px; font-weight: 800; }
.level-pop-text span { color: var(--wv-muted, #b8b6d0); font-size: 12.5px; }

/* ---------- 10 G offer: top of the regular pages, bottom of the rewards page ----------
   Same family as the Creators Lab banner above it (22px radius, gradient, white logo watermark) but darker, so it reads as the
   second banner. Gold "+10 G", a nickname plate that shows the task at a glance, white CTA, ✕ in the corner rejects the offer. */
html body #welcomeBonusBanner.wb {
  position: relative; display: block; isolation: isolate; overflow: hidden; margin: 24px 0 0; border-radius: 22px; color: #fff; font-family: Rubik, sans-serif;
  background: radial-gradient(38% 170% at 0% 50%, rgba(255, 196, 70, .26), transparent 72%), linear-gradient(110deg, #2a2347 0%, #372a66 52%, #4a35a0 100%);
}
html body #welcomeBonusBanner.wb[hidden] { display: none !important; }
html body #welcomeBonusBanner.wb.at-top { margin: 0 0 var(--page-gap, 20px); }
/* on the rewards page the offer lines up with the page column */
html body:has(#view-rewards:not([hidden])) #welcomeBonusBanner.wb { max-width: 1080px; margin-left: auto; margin-right: auto; }
#welcomeBonusBanner::before { content: ""; position: absolute; z-index: -1; right: 150px; top: 50%; width: 210px; height: 210px; margin-top: -105px; background: url("ui/offgrader-mark-white.svg") center / contain no-repeat; opacity: .07; transform: rotate(-14deg); pointer-events: none; }
#welcomeBonusBanner .wb-row { display: flex; align-items: center; gap: 22px; min-height: 88px; padding: 14px 58px 14px 26px; }
#welcomeBonusBanner .wb-amount { display: flex; flex: 0 0 auto; align-items: baseline; gap: 3px; color: #ffd76a; line-height: 1; text-shadow: 0 2px 18px rgba(255, 186, 60, .45); }
#welcomeBonusBanner .wb-amount b { font-size: 40px; font-weight: 800; letter-spacing: -.01em; }
#welcomeBonusBanner .wb-amount i { font-size: 19px; font-style: normal; font-weight: 800; }
#welcomeBonusBanner .wb-copy { display: grid; flex: 1 1 auto; justify-items: start; gap: 7px; min-width: 0; }
#welcomeBonusBanner .wb-copy > b { color: #fff; font-size: 19px; font-weight: 800; line-height: 1.15; }
#welcomeBonusBanner .wb-status { color: #d8d0f5; font-size: 13.5px; }
#welcomeBonusBanner .wb-status:empty { display: none; }
#welcomeBonusBanner :is(.wb-cta, .wb-send) {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 26px; border: 0; border-radius: 13px;
  background: #fff; color: #5b34d6; font: 800 15px Rubik, sans-serif; text-transform: none; letter-spacing: normal;
  box-shadow: 0 8px 20px rgba(10, 6, 30, .28); cursor: pointer; transition: background .15s ease;
}
#welcomeBonusBanner :is(.wb-cta, .wb-send):hover:not(:disabled) { background: #efe9ff; }
#welcomeBonusBanner .wb-cta[hidden] { display: none; }
#welcomeBonusBanner.is-open .wb-cta { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
#welcomeBonusBanner.is-open .wb-cta:hover { background: rgba(255, 255, 255, .2); }
#welcomeBonusBanner .wb-x {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .66); cursor: pointer; transition: background .15s ease, color .15s ease;
}
#welcomeBonusBanner .wb-x svg { width: 14px; height: 14px; }
#welcomeBonusBanner .wb-x:hover { background: rgba(255, 255, 255, .18); color: #fff; }
#welcomeBonusBanner :is(.wb-cta, .wb-x, .wb-send, .wb-copy-btn):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html body #welcomeBonusBanner.wb.is-done { background: radial-gradient(38% 170% at 0% 50%, rgba(80, 220, 140, .24), transparent 72%), linear-gradient(110deg, #232a40 0%, #2d3157 52%, #393a85 100%); }
#welcomeBonusBanner.is-done .wb-amount { color: #7fe0a0; text-shadow: 0 2px 18px rgba(80, 220, 140, .35); }
/* expanded form: two numbered step cards, then the consent row and the white CTA */
#welcomeBonusBanner .wb-body { padding: 2px 26px 24px; }
#welcomeBonusBanner .wb-body[hidden] { display: none; }
#welcomeBonusBanner .wb-form { display: grid; gap: 16px; }
#welcomeBonusBanner .wb-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
#welcomeBonusBanner .wb-step { display: grid; align-content: start; gap: 16px; min-width: 0; padding: 18px; border-radius: 16px; background: rgba(12, 9, 30, .34); }
#welcomeBonusBanner .wb-step-head { display: flex; align-items: center; gap: 13px; }
#welcomeBonusBanner .wb-step-n { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 11px; background: #fff; color: #4f2fc4; font-size: 17px; font-weight: 800; }
#welcomeBonusBanner .wb-step-n i { font-style: normal; }
#welcomeBonusBanner .wb-step-n svg { display: none; width: 19px; height: 19px; }
#welcomeBonusBanner .wb-step.is-done .wb-step-n { background: #7fe0a0; color: #123b25; }
#welcomeBonusBanner .wb-step.is-done .wb-step-n i { display: none; }
#welcomeBonusBanner .wb-step.is-done .wb-step-n svg { display: block; }
#welcomeBonusBanner .wb-step-text { display: grid; gap: 2px; min-width: 0; }
#welcomeBonusBanner .wb-step-text b { color: #fff; font-size: 17px; font-weight: 800; line-height: 1.2; }
#welcomeBonusBanner .wb-step-text .wb-example code { color: #ffd76a; font: 700 13px ui-monospace, Consolas, monospace; white-space: nowrap; }
#welcomeBonusBanner .wb-step-text span { color: #cfc7ee; font-size: 13.5px; line-height: 1.35; }
/* step 1: the tag and its copy button live in one chip */
#welcomeBonusBanner .wb-tag { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; padding: 8px 8px 8px 18px; border-radius: 13px; background: rgba(12, 9, 30, .5); }
#welcomeBonusBanner .wb-tag code { min-width: 0; color: #ffd76a; font: 800 21px ui-monospace, Consolas, monospace; letter-spacing: .02em; }
#welcomeBonusBanner .wb-copy-btn { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; font: 700 13.5px Rubik, sans-serif; cursor: pointer; transition: background .15s ease, color .15s ease; }
#welcomeBonusBanner .wb-copy-btn:hover { background: rgba(255, 255, 255, .24); }
#welcomeBonusBanner .wb-copy-btn.is-copied { background: #7fe0a0; color: #123b25; }
#welcomeBonusBanner .wb-copy-btn .rw-ico { display: inline-flex; width: 16px; height: 16px; }
#welcomeBonusBanner .rw-ico svg { width: 100%; height: 100%; }
/* step 2: the screenshot drop zone, the same height as the tag chip so the cards line up */
#welcomeBonusBanner .wb-drop { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 14px; border-radius: 13px; background: rgba(12, 9, 30, .5); cursor: pointer; transition: background .15s ease; }
#welcomeBonusBanner .wb-drop:hover { background: rgba(12, 9, 30, .64); }
#welcomeBonusBanner .wb-drop.is-over { background: rgba(255, 255, 255, .16); }
#welcomeBonusBanner .wb-drop:has(input:focus-visible) { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75); }
#welcomeBonusBanner .wb-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#welcomeBonusBanner .wb-drop-ico { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 11px; border-radius: 11px; background: rgba(255, 255, 255, .14); color: #fff; }
#welcomeBonusBanner .wb-drop.has-shot .wb-drop-ico { display: none; }
#welcomeBonusBanner .wb-preview { flex: 0 0 auto; width: 78px; height: 48px; border-radius: 8px; object-fit: cover; }
#welcomeBonusBanner .wb-preview[hidden] { display: none; }
#welcomeBonusBanner .wb-drop-text { display: grid; gap: 2px; min-width: 0; }
#welcomeBonusBanner .wb-drop-text b { color: #fff; font-size: 14.5px; font-weight: 700; }
#welcomeBonusBanner .wb-drop-text small { color: #bdb4e4; font-size: 12.5px; }
#welcomeBonusBanner .wb-drop-text small:empty { display: none; }
/* consent + send */
#welcomeBonusBanner .wb-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
#welcomeBonusBanner .wb-agree { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; color: #ffc9d3; font-size: 14px; font-weight: 600; line-height: 1.35; cursor: pointer; }
#welcomeBonusBanner .wb-agree input { position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin: -12px 0 0; opacity: 0; cursor: pointer; }
#welcomeBonusBanner .wb-box { position: relative; flex: 0 0 24px; height: 24px; border-radius: 8px; background: rgba(255, 255, 255, .16); transition: background .15s ease; }
#welcomeBonusBanner .wb-box::after { content: ""; position: absolute; left: 8.5px; top: 3.5px; width: 6px; height: 12px; border: solid #4f2fc4; border-width: 0 3px 3px 0; transform: rotate(45deg); opacity: 0; }
#welcomeBonusBanner .wb-agree input:checked + .wb-box { background: #fff; }
#welcomeBonusBanner .wb-agree input:checked + .wb-box::after { opacity: 1; }
#welcomeBonusBanner .wb-agree input:focus-visible + .wb-box { outline: 2px solid #fff; outline-offset: 2px; }
#welcomeBonusBanner .wb-send { flex: 0 0 auto; height: 50px; padding: 0 32px; }
#welcomeBonusBanner .wb-send:disabled, #welcomeBonusBanner .wb-send.is-wait { opacity: .45; }
#welcomeBonusBanner .wb-send:disabled { cursor: not-allowed; }
#welcomeBonusBanner .wb-error { margin: 0; color: #ff9db0; font-size: 13.5px; }
#welcomeBonusBanner .wb-error[hidden] { display: none; }

/* ---------- motion: one slow glow on claimable things; claims stamp and float, never bounce ---------- */
@keyframes rw-glow-soft { 0%, 100% { box-shadow: 0 0 0 0 rgba(170, 150, 244, 0); } 50% { box-shadow: 0 0 24px 1px rgba(170, 150, 244, .45); } }
@keyframes rw-stamp { from { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes rw-float { 0% { opacity: 0; transform: translate(-50%, 6px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -52px); } }
@keyframes wp-pop-in { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  /* Band becomes a banner above the text */
  #view-rewards .rw-hero { --hp: 22px; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 14px; padding: 0 0 16px; }
  #view-rewards .rw-hero::before { inset: 0 0 auto 0; width: auto; height: 156px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 34px)); }
  #view-rewards .rw-hero-em { grid-column: 1; grid-row: auto; height: 150px; padding: 0 0 8px; }
  #view-rewards .rw-hero-em .rw-emblem { width: 168px; }
  #view-rewards .rw-hero .rw-hero-info, #view-rewards .rw-hero:not(:has(.rw-hero-side)) .rw-hero-info, #view-rewards .rw-hero .rw-hero-side, #view-rewards .rw-hero .rw-hero-foot { grid-column: 1; grid-row: auto; margin: 0 var(--hp); }
  #view-rewards .rw-hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-rewards .rw-stat { padding: 13px 14px; }
}
@media (max-width: 760px) {
  #view-rewards .rw-page { gap: 12px; }
  #view-rewards .rw-card { gap: 16px; padding: 16px; border-radius: 16px; }
  #view-rewards .rw-hero { --hp: 16px; padding: 0 0 16px; }
  #view-rewards .rw-hero-info h2 { font-size: 27px; }
  #view-rewards .rw-hero-side { grid-template-columns: minmax(0, 1fr); }
  #view-rewards .rw-stat { gap: 12px; padding: 12px 14px; }
  #view-rewards .rw-stat-t b { font-size: 15px; }
  #view-rewards .rw-head { flex-wrap: wrap; gap: 12px; }
  #view-rewards .rw-head-ico { width: 38px; height: 38px; padding: 9px; }
  #view-rewards .rw-head-t { flex: 1 1 200px; }
  #view-rewards .rw-head-t h2 { font-size: 18px; }
  #view-rewards .rw-head-t p { font-size: 12.5px; }
  #view-rewards .rw-score { flex: 1 1 100%; margin-left: 0; }
  #view-rewards .rw-blk { flex: 1 1 0; gap: 9px; padding: 10px 18px 10px 20px; }
  #view-rewards .rw-blk .rw-ico { width: 24px; height: 24px; }
  #view-rewards .rw-num { font-size: 28px; }
  #view-rewards .rw-lb { white-space: normal; }
  #view-rewards .rw-lb .sub { display: none; }
  #view-rewards .rw-days { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  #view-rewards .rw-day { min-height: 108px; padding: 10px 2px; gap: 4px; }
  #view-rewards .rw-day.big { grid-column: span 2; }
  #view-rewards .rw-day-n { font-size: 11px; }
  #view-rewards .rw-day-g { font-size: 22px; }
  #view-rewards .rw-day.big .rw-day-g { font-size: 32px; }
  #view-rewards .rw-day-xp { font-size: 10.5px; }
  #view-rewards .rw-day.done .rw-stamp { width: 36px; height: 36px; padding: 9px; }
  #view-rewards .rw-loot-cta { padding: 4px 11px; font-size: 12px; }
  #view-rewards .rw-track-scroll { margin: 0 -16px; padding: 4px 16px 6px 22px; scroll-padding-left: 22px; }
  #view-rewards .rw-hero-foot { font-size: 12px; }
}
@media (max-width: 760px) {
  #welcomeBonusBanner .wb-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  #welcomeBonusBanner::before { display: none; }
  #welcomeBonusBanner .wb-row { gap: 12px; min-height: 76px; padding: 12px 44px 12px 14px; }
  #welcomeBonusBanner .wb-amount b { font-size: 28px; }
  #welcomeBonusBanner .wb-amount i { font-size: 14px; }
  #welcomeBonusBanner .wb-copy { gap: 5px; }
  #welcomeBonusBanner .wb-copy > b { font-size: 15.5px; }
  #welcomeBonusBanner .wb-cta { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
  #welcomeBonusBanner .wb-cta span { display: none; }
  #welcomeBonusBanner .wb-cta::before {
    content: ""; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .2s ease;
  }
  #welcomeBonusBanner.is-open .wb-cta::before { transform: rotate(-90deg); }
  #welcomeBonusBanner .wb-x { top: 8px; right: 8px; width: 26px; height: 26px; }
  #welcomeBonusBanner .wb-x svg { width: 12px; height: 12px; }
  #welcomeBonusBanner .wb-body { padding: 0 14px 16px; }
  #welcomeBonusBanner .wb-form { gap: 14px; }
  #welcomeBonusBanner .wb-step { gap: 14px; padding: 14px; border-radius: 14px; }
  #welcomeBonusBanner .wb-step-n { flex-basis: 32px; height: 32px; border-radius: 10px; font-size: 15px; }
  #welcomeBonusBanner .wb-step-text b { font-size: 16px; }
  #welcomeBonusBanner .wb-tag { min-height: 60px; padding: 8px 8px 8px 14px; }
  #welcomeBonusBanner .wb-tag code { font-size: 18px; }
  #welcomeBonusBanner .wb-drop { min-height: 60px; padding: 8px 12px; }
  #welcomeBonusBanner .wb-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  #welcomeBonusBanner .wb-agree { font-size: 13.5px; }
  #welcomeBonusBanner .wb-send { width: 100%; height: 52px; }
  html body .level-chip { margin-right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  #view-rewards .rw-day.now, #view-rewards .rw-col.ready .rw-loot { animation: none; box-shadow: 0 0 18px 1px rgba(170, 150, 244, .4); }
  #view-rewards .rw-stat.is-ready, #view-rewards .just .rw-stamp, .level-pop { animation: none; }
  .rw-float { animation-duration: .01s; }
  .level-bar u, #view-rewards .rw-xpbar i, #view-rewards .rw-line i, .level-pop { transition: none; }
}

/* Creators Lab: top banner (same family as the launch banner, sits above it) and the lab page.
   Flat Welvura panels, no decorative outlines, quiet controls. */
#creatorLabBanner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 104px;
  margin: 0 0 var(--page-gap, 20px);
  padding: 16px 140px 16px 24px;
  border: 0;
  border-radius: 22px;
  background: radial-gradient(ellipse at 78% 18%, rgba(255, 128, 214, .55), transparent 46%), linear-gradient(110deg, #5c3edf 0%, #7a48e6 46%, #a24fe6 100%);
  box-shadow: none;
  color: #fff;
  font-family: Rubik, sans-serif;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  transition: filter .18s ease;
}
#creatorLabBanner[hidden] { display: none !important; }
#creatorLabBanner::before {
  content: "";
  position: absolute;
  inset: -70% 4% -90% auto;
  z-index: -1;
  width: 330px;
  background: url("ui/offgrader-mark-white.svg") center/contain no-repeat;
  opacity: .13;
  transform: rotate(-17deg);
  filter: blur(3px);
}
#creatorLabBanner::after { content: none; }
#creatorLabBanner:hover { filter: brightness(1.06); }
#creatorLabBanner:focus-visible { outline: none; box-shadow: 0 0 0 3px #25283d, 0 0 0 6px #d6c6ff; }
#creatorLabBanner .launch-bonus-copy > span { font-size: 15px; line-height: 1.25; font-weight: 500; }
#creatorLabBanner .launch-bonus-copy > strong { font-size: clamp(25px, 2.3vw, 36px); line-height: 1.08; font-weight: 800; }
.creator-lab-short { display: none; }
.creator-lab-chip {
  display: grid;
  flex: 0 0 auto;
  justify-items: center;
  gap: 1px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(33, 22, 72, .42);
}
.creator-lab-chip > b { font-size: 20px; line-height: 1.1; font-weight: 800; color: #ffd76a; }
.creator-lab-chip > span { font-size: 13px; opacity: .9; }
.creator-lab-logo {
  position: absolute;
  right: 28px;
  top: 50%;
  width: 78px;
  height: 78px;
  object-fit: contain;
  transform: translateY(-50%) rotate(12deg);
  filter: drop-shadow(0 3px 2px rgba(69, 35, 94, .26)) drop-shadow(0 11px 10px rgba(77, 39, 115, .38));
  pointer-events: none;
}

/* ---- page ---- */
#view-creators .creators-page { max-width: 1040px; margin: 0 auto; padding: 4px 0 48px; display: grid; gap: 16px; }
#view-creators h1, #view-creators h2 { margin: 0; color: var(--wv-text, #f5f3ff); font-family: Rubik, sans-serif; text-transform: none; letter-spacing: normal; }
#view-creators h2 { font-size: 17px; font-weight: 700; color: #d9d0ff; }
#view-creators .creators-card,
#view-creators .creators-hero { border: 0; border-radius: 12px; background: var(--wv-panel, #303047); box-shadow: none; }
#view-creators .creators-card { padding: 20px; display: grid; gap: 14px; }

#view-creators .creators-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: center;
  padding: 24px;
}
#view-creators .creators-hero::before {
  content: "";
  position: absolute;
  inset: -40% auto -60% 30%;
  z-index: -1;
  width: 360px;
  background: url("ui/offgrader-mark-white.svg") center/contain no-repeat;
  opacity: .04;
  transform: rotate(-17deg);
}
#view-creators .creators-kicker { display: inline-block; margin-bottom: 8px; color: var(--wv-violet, #aa96f4); font-size: 13px; font-weight: 700; }
#view-creators .creators-hero h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; font-weight: 800; }
#view-creators .creators-hero p { max-width: 520px; margin: 10px 0 0; color: var(--wv-muted, #b8b6d0); font-size: 15px; line-height: 1.45; }

#view-creators .creators-wallet { display: grid; gap: 6px; padding: 18px; border-radius: 12px; background: var(--wv-bg-deep, #202030); }
#view-creators .creators-wallet-label { color: var(--wv-muted, #b8b6d0); font-size: 13px; }
#view-creators .creators-wallet strong { font-size: 32px; line-height: 1.05; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
#view-creators .creators-wallet strong em { font-style: normal; font-size: 20px; color: #ffd76a; }
#view-creators .creators-wallet-sub { color: var(--wv-muted, #b8b6d0); font-size: 12.5px; }
#view-creators .creators-wallet-row { display: flex; gap: 8px; margin-top: 8px; }
#view-creators .creators-amount { position: relative; flex: 1 1 auto; min-width: 0; }
#view-creators .creators-amount input { width: 100%; padding-right: 30px; }
#view-creators .creators-amount em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 800; color: #ffd76a; pointer-events: none; }

#view-creators input[type="number"],
#view-creators input[type="url"],
#view-creators .creators-video-actions input {
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--wv-input, #272739);
  color: var(--wv-text, #f5f3ff);
  font: 500 15px Rubik, sans-serif;
  box-shadow: none;
  outline: none;
  -moz-appearance: textfield;
}
#view-creators input::-webkit-outer-spin-button,
#view-creators input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#view-creators input:focus-visible { box-shadow: inset 0 0 0 2px #aa96f4; }
#view-creators input::placeholder { color: #8d8aa8; }

#view-creators .creators-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--grad-btn, linear-gradient(115deg, #a34ef4, #7265fd));
  color: #fff;
  font: 700 14.5px Rubik, sans-serif;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: filter .15s ease;
}
#view-creators .creators-btn:hover:not(:disabled) { filter: brightness(1.08); }
#view-creators .creators-btn.is-ghost { background: var(--wv-raised, #3a3a55); }
#view-creators .creators-btn:disabled { opacity: .5; cursor: default; }
#view-creators .creators-btn:focus-visible,
#view-creators .creators-link:focus-visible,
#view-creators .creators-video-link:focus-visible { outline: 2px solid #d6c6ff; outline-offset: 2px; }
#view-creators .creators-link {
  justify-self: start;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--wv-violet, #aa96f4);
  font: 600 13.5px Rubik, sans-serif;
  text-transform: none;
  cursor: pointer;
}
#view-creators .creators-link:hover:not(:disabled) { color: #c8bbff; }
#view-creators .creators-link:disabled { opacity: .5; cursor: default; }

/* guide */
#view-creators .creators-guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
#view-creators .creators-preview { margin: 0; display: grid; gap: 12px; }
#view-creators .creators-preview video { display: block; width: 100%; aspect-ratio: 2 / 1; border-radius: 12px; background: var(--wv-bg-deep, #202030); object-fit: cover; }
#view-creators .creators-preview figcaption { display: grid; }
#view-creators .creators-preview figcaption .creators-btn { width: 100%; height: 48px; font-size: 15px; }
#view-creators .creators-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
#view-creators .creators-steps > li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 3px; }
#view-creators .creators-steps > li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--wv-violet-soft, rgba(170, 150, 244, .14));
  color: #d6c6ff;
  font-weight: 800;
  font-size: 14px;
}
#view-creators .creators-steps > li > b { color: #fff; font-size: 15px; font-weight: 700; }
#view-creators .creators-steps > li > span { color: var(--wv-muted, #b8b6d0); font-size: 13.5px; line-height: 1.45; }
#view-creators .creators-steps code { padding: 1px 5px; border-radius: 5px; background: var(--wv-input, #272739); color: #ff9df0; font-size: 12.5px; }

/* form */
#view-creators .creators-form { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 12px; align-items: end; }
#view-creators .creators-field { display: grid; gap: 6px; min-width: 0; }
#view-creators .creators-field > span { color: var(--wv-muted, #b8b6d0); font-size: 12.5px; }
#view-creators .creators-field input { width: 100%; }
#view-creators .creators-consent { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: flex-start; gap: 10px; color: var(--wv-soft, #cfccdf); font-size: 13.5px; line-height: 1.35; cursor: pointer; }
#view-creators .creators-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: #8f62f5; }
#view-creators .creators-form .creators-btn { grid-column: 3; grid-row: 1; }

/* my videos */
#view-creators .creators-list { display: grid; gap: 10px; }
#view-creators .creators-empty { display: grid; justify-items: start; gap: 10px; margin: 0; color: var(--wv-muted, #b8b6d0); font-size: 14px; }
#view-creators .creators-empty p { margin: 0; }
#view-creators .creators-video { display: grid; gap: 10px; padding: 14px 16px; border-radius: 10px; background: var(--wv-raised, #3a3a55); }
#view-creators .creators-video-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
#view-creators .creators-video-link { flex: 0 0 auto; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
#view-creators .creators-video-link[href]:hover { color: #d6c6ff; }
#view-creators .creators-video-url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wv-muted, #b8b6d0); font-size: 13px; }
#view-creators .creators-status { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(170, 150, 244, .16); color: #d6c6ff; }
#view-creators .creators-status.is-approved { background: rgba(52, 199, 123, .16); color: #6fe3a4; }
#view-creators .creators-status.is-rejected { background: rgba(226, 58, 61, .16); color: #ff8a8c; }
#view-creators .creators-video-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#view-creators .creators-video-facts > div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: rgba(32, 32, 48, .55); }
#view-creators .creators-video-facts span { color: var(--wv-muted, #b8b6d0); font-size: 11.5px; }
#view-creators .creators-video-facts b { color: #fff; font-size: 14.5px; font-variant-numeric: tabular-nums; }
#view-creators .creators-video-facts .is-gold b { color: #ffd76a; }
#view-creators .creators-video-note { margin: 0; color: #ffb3b4; font-size: 13px; line-height: 1.4; }
#view-creators .creators-video-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#view-creators .creators-video-actions input { width: 190px; height: 40px; }
#view-creators .creators-video-actions .creators-btn { height: 40px; }
#view-creators .creators-muted { color: var(--wv-muted, #b8b6d0); font-size: 12.5px; }

@media (max-width: 900px) {
  #view-creators .creators-hero { grid-template-columns: 1fr; }
  #view-creators .creators-guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #creatorLabBanner { gap: 8px; min-height: 104px; padding: 14px 88px 14px 16px; border-radius: 20px; flex-direction: column; align-items: flex-start; justify-content: center; }
  #creatorLabBanner .launch-bonus-copy > span { font-size: 11px; }
  #creatorLabBanner .launch-bonus-copy > strong { font-size: clamp(18px, 5.4vw, 24px); white-space: nowrap; }
  .creator-lab-chip { display: flex; align-items: baseline; gap: 5px; padding: 0; background: transparent; }
  .creator-lab-chip > b { font-size: 14px; }
  .creator-lab-chip > span { font-size: 12px; }
  .creator-lab-logo { right: 16px; width: 62px; height: 62px; }
  #view-creators .creators-page { gap: 12px; }
  #view-creators .creators-hero,
  #view-creators .creators-card { padding: 16px; }
  #view-creators .creators-form { grid-template-columns: 1fr; }
  #view-creators .creators-consent { grid-row: auto; }
  #view-creators .creators-form .creators-btn { grid-column: 1; grid-row: auto; width: 100%; }
  #view-creators .creators-preview figcaption .creators-btn { flex: 1 1 auto; }
  #view-creators .creators-video-actions input { flex: 1 1 140px; width: auto; }
}
/* Phones: the phrase splits across the two lines — «Снимай видео по Standoff 2» / «Заработай голду». */
@media (max-width: 760px) {
  #creatorLabBanner .creator-lab-full { display: none; }
  #creatorLabBanner .creator-lab-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  #creatorLabBanner, #view-creators .creators-btn { transition: none; }
}

/* Dropdowns under the four steps: «Примеры» and «Как добавить в CapCut». */
#view-creators .creators-drops { display: grid; gap: 8px; }
#view-creators .creators-drop { border-radius: 10px; background: var(--wv-bg-deep, #202030); transition: background .15s ease; }
#view-creators .creators-drop > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}
#view-creators .creators-drop > summary::-webkit-details-marker { display: none; }
#view-creators .creators-drop > summary::before {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--wv-violet-soft, rgba(170, 150, 244, .14)) center / 16px no-repeat;
}
#view-creators #creatorsExamples > summary::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6c6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m10 9.5 5 2.5-5 2.5z' fill='%23d6c6ff'/%3E%3C/svg%3E"); }
#view-creators #creatorsHowto > summary::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6c6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h10M4 18h13'/%3E%3C/svg%3E"); }
#view-creators .creators-drop > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: -4px 4px 0 auto;
  border-right: 2px solid #aa96f4;
  border-bottom: 2px solid #aa96f4;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
#view-creators .creators-drop[open] > summary::after { margin-top: 4px; transform: rotate(-135deg); }
#view-creators .creators-drop:not([open]):hover { background: #26263a; }
#view-creators .creators-drop > summary:focus-visible { outline: 2px solid #d6c6ff; outline-offset: 2px; }
#view-creators .creators-drop-body { padding: 2px 18px 18px 60px; }
#view-creators .creators-drop figure { margin: 0; display: grid; gap: 6px; }
#view-creators .creators-drop svg { display: block; width: 100%; height: auto; font-family: Rubik, sans-serif; }
#view-creators .creators-drop figcaption { color: var(--wv-muted, #b8b6d0); font-size: 12px; line-height: 1.35; }
#view-creators .creators-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; padding: 4px 18px 20px; }
#view-creators .creators-examples figure { width: 300px; }
#view-creators .creators-examples figcaption { text-align: center; }
#view-creators .creators-howto-steps { margin: 0; padding-left: 20px; columns: 2; column-gap: 36px; color: var(--wv-muted, #b8b6d0); font-size: 13.5px; line-height: 1.5; }
#view-creators .creators-howto-steps li { break-inside: avoid; margin-bottom: 10px; }
#view-creators .creators-howto-steps li::marker { color: #aa96f4; font-weight: 700; }
#view-creators .creators-howto-steps b { color: #fff; font-weight: 700; }
#view-creators .creators-howto-steps em { font-style: normal; color: #d6c6ff; }
@media (max-width: 760px) {
  #view-creators .creators-drop > summary { padding: 0 14px; }
  #view-creators .creators-drop-body { padding: 2px 14px 16px; }
  #view-creators .creators-howto-steps { columns: 1; }
  #view-creators .creators-examples { padding: 4px 14px 16px; }
  #view-creators .creators-examples figure { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { #view-creators .creators-drop, #view-creators .creators-drop > summary::after { transition: none; } }

/* Crash page («Краш», crash.js). Layout follows the owner's reference screenshots (top bar with sound / rules / motion
   buttons, colour-coded round history and «История игр»; space stage with the big multiplier; bet window below) in the
   site palette: blue-violet surfaces, lilac accents, the site's violet gradient button, logo red for the flyer and crashes.
   Only one bet window (owner request 2026-10-09). */

/* mobile bottom nav: five tabs since Краш was added */
@media (max-width: 760px), (max-width: 960px) and (max-height: 500px) and (pointer: coarse) {
  html body .rail-nav { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: .25rem !important; }
}

#view-crash .crash-page { width: 100%; max-width: 1280px; margin: 0 auto; font-family: Rubik, sans-serif; color: #f5f3ff; }
#view-crash .cr-game { position: relative; display: grid; gap: 10px; padding: 10px; border-radius: 18px; background: #1d1c2e; }
#view-crash button { font-family: inherit; cursor: pointer; }
#view-crash button:disabled { cursor: default; }

/* ---- stage ---- */
/* always the full width of the game frame; only the height adapts (an aspect-ratio + max-height pair shrank the width on wide, short screens) */
#view-crash .cr-stage { position: relative; overflow: hidden; width: 100%; height: clamp(300px, 44vw, 64vh); border-radius: 12px 12px 0 0; background: #1d1c31; isolation: isolate; }
#view-crash .cr-canvas { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
#view-crash .cr-top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 8px; }
#view-crash .cr-ico { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 9px; background: rgba(22, 20, 40, .82); color: #ebe8ff; transition: background-color .15s ease, color .15s ease; }
#view-crash .cr-ico svg { width: 20px; height: 20px; }
#view-crash .cr-ico:hover { background: rgba(48, 46, 74, .9); }
#view-crash .cr-pills { flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
#view-crash .cr-pill { flex: 0 0 auto; display: inline-flex; align-items: center; height: 34px; padding: 0 10px; border-radius: 7px; color: #fff; font: 700 14px/1 Rubik, sans-serif; font-variant-numeric: tabular-nums; }
#view-crash .cr-pill.is-low { background: #e23a3d; }
#view-crash .cr-pill.is-calm { background: #4a78d4; }
#view-crash .cr-pill.is-mid { background: #9a4ef0; }
#view-crash .cr-pill.is-good { background: #47b06f; }
#view-crash .cr-pill.is-top { background: #f2c14e; color: #2a1f3a; }
#view-crash .cr-pill.is-new { animation: crPillIn .35s cubic-bezier(.22, .61, .36, 1) backwards; }
@keyframes crPillIn { from { opacity: 0; transform: translateX(-14px); } }
#view-crash .cr-histbtn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: rgba(22, 20, 40, .82); color: #ebe8ff; font: 700 12px/1 Rubik, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
#view-crash .cr-histbtn svg { width: 18px; height: 18px; }
#view-crash .cr-histbtn:hover { background: rgba(48, 46, 74, .9); }

#view-crash .cr-center { position: absolute; left: 50%; top: 17%; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); text-align: center; pointer-events: none; }
/* the number is always the first line, so it never moves; bar, «До начала игры» / «Игра окончена» and the result chip sit below it */
/* label: the original look (white, bold); its line is always reserved, empty in flight, so the result chip below it never moves */
#view-crash .cr-label { display: block; min-height: 1.2em; color: #fff; font: 700 clamp(14px, 1.35vw, 18px)/1.2 Rubik, sans-serif; text-shadow: 0 1px 8px rgba(8, 6, 20, .6); }
#view-crash .cr-mult { color: #a99bff; font: 400 clamp(44px, 6.6vw, 88px)/1 Benzin, Rubik, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .01em; text-shadow: 0 3px 18px rgba(8, 6, 20, .55); white-space: nowrap; }
#view-crash .cr-mult.is-count { color: #9d8cf5; }
/* «Загрузка»: the number and the bar stand dimmed where the round will appear, with a light sweep across the glyphs */
#view-crash .cr-mult.is-ghost { color: transparent; text-shadow: none; background: linear-gradient(100deg, rgba(169, 155, 255, .2) 38%, rgba(236, 232, 255, .55) 50%, rgba(169, 155, 255, .2) 62%) 100% 0 / 250% 100% no-repeat; -webkit-background-clip: text; background-clip: text; animation: crGhost 1.6s ease-in-out infinite; }
#view-crash .cr-mult.is-ghost.is-err { animation: none; background: none; color: rgba(169, 155, 255, .2); }
@keyframes crGhost { to { background-position: 0 0; } }
#view-crash .cr-bar.is-ghost { position: relative; background: rgba(157, 140, 245, .2); }
#view-crash .cr-bar.is-ghost i { display: none; }
#view-crash .cr-bar.is-ghost::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .2) 50%, transparent 70%); transform: translateX(-100%); animation: crSweep 1.6s ease-in-out infinite; }
#view-crash .cr-bar.is-ghost.is-err::after { animation: none; opacity: 0; }
@keyframes crSweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { #view-crash .cr-mult.is-ghost, #view-crash .cr-bar.is-ghost::after { animation: none; } }
#view-crash .cr-bar { display: block; width: clamp(170px, 20vw, 250px); height: 12px; overflow: hidden; border-radius: 6px; background: rgba(157, 140, 245, .28); }
#view-crash .cr-bar[hidden] { display: none; }
#view-crash .cr-bar i { display: block; height: 100%; border-radius: inherit; background: #8f7bff; transform-origin: left center; }
/* result chip: flat, site palette, one line — small caption, amount, multiplier */
#view-crash .cr-win { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; border-radius: 10px; background: #262539; white-space: nowrap; animation: crWinIn .3s cubic-bezier(.22, .61, .36, 1) backwards; }
#view-crash .cr-win[hidden] { display: none; }
#view-crash .cr-win.is-gone { opacity: 0; transition: opacity .35s ease; }
#view-crash .cr-win em { color: #9c97ba; font: 600 11px/1 Rubik, sans-serif; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
#view-crash .cr-win b { color: #fff; font: 800 18px/1 Rubik, sans-serif; font-variant-numeric: tabular-nums; }
#view-crash .cr-win b i { color: #f2c14e; font-style: normal; }
#view-crash .cr-win small { padding: 4px 7px; border-radius: 6px; background: rgba(71, 176, 111, .22); color: #8be3ac; font: 700 13px/1 Rubik, sans-serif; font-variant-numeric: tabular-nums; }
#view-crash .cr-win.is-win { background: rgba(71, 176, 111, .16); }
#view-crash .cr-win.is-win em { color: #8be3ac; }
#view-crash .cr-win.is-lost { background: rgba(226, 58, 61, .14); }
#view-crash .cr-win.is-lost em { color: #ff9a9c; }
#view-crash .cr-win.is-lost b { color: #ff9a9c; }
#view-crash .cr-win.is-lost b i { color: #ff9a9c; }
@keyframes crWinIn { from { opacity: 0; transform: translateY(-4px); } }
#view-crash .cr-ping { position: absolute; right: 14px; bottom: 24px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; color: #ebe8ff; font: 700 12px/1 Rubik, sans-serif; letter-spacing: .02em; }
#view-crash .cr-ping[hidden] { display: none; }
#view-crash .cr-ping i { width: 11px; height: 11px; border-radius: 50%; background: #f2c14e; box-shadow: 0 0 0 3px rgba(242, 193, 78, .22); }
#view-crash .cr-ping.is-good i { background: #47b06f; box-shadow: 0 0 0 3px rgba(71, 176, 111, .22); }
#view-crash .cr-ping.is-bad i { background: #e23a3d; box-shadow: 0 0 0 3px rgba(226, 58, 61, .22); }

/* ---- bet window ---- */
/* one bet window across the full width of the frame, laid out like one reference panel (owner, 2026-10-09):
   top row Автоставка / Автовывод + the target field, bottom row amount | button in two equal halves. */
/* the stage art runs straight down to this panel (owner 2026-10-09): no gap, the two share one edge */
#view-crash .cr-panel { display: grid; gap: 12px; width: 100%; margin-top: -10px; padding: 14px; border-radius: 0 0 12px 12px; background: #262539; }
#view-crash .cr-row { min-width: 0; }
/* left inset = the amount card's padding, so the first checkbox lines up with «−» / «−50» inside the card below (as in the reference) */
#view-crash .cr-opts { display: flex; align-items: center; gap: 20px; padding-left: 8px; }
#view-crash .cr-check { position: relative; display: inline-flex; align-items: center; gap: 10px; color: #6f6b8a; font: 500 15px/1 Rubik, sans-serif; cursor: pointer; user-select: none; }
#view-crash .cr-check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#view-crash .cr-box { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #2c2b40; color: transparent; transition: background-color .15s ease; }
#view-crash .cr-check:hover { color: #9692b0; }
#view-crash .cr-check:hover .cr-box { background: #35334c; }
#view-crash .cr-box svg { width: 15px; height: 15px; }
#view-crash .cr-check input:checked + .cr-box { background: linear-gradient(115deg, #a34ef4, #7265fd); color: #fff; }
#view-crash .cr-check input:checked ~ span:last-child { color: #f5f3ff; }
#view-crash .cr-check input:focus-visible + .cr-box { box-shadow: 0 0 0 2px #aa96f4; }
/* less than 1 G: both options are greyed and cannot be clicked */
#view-crash .cr-check.is-locked { opacity: .45; cursor: not-allowed; }
#view-crash .cr-check.is-locked:hover { color: #6f6b8a; }
#view-crash .cr-check.is-locked:hover .cr-box { background: #2c2b40; }
/* the target field sits above the right part of the button, ~65% of its width, as in the reference */
#view-crash .cr-x { display: flex; align-items: center; justify-content: flex-end; gap: 6px; width: calc((100% - 12px) / 2 * .65); height: 56px; margin-left: auto; padding: 0 16px; border-radius: 10px; background: #1d1c2e; cursor: text; }
#view-crash .cr-x input { width: 100%; min-width: 0; height: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; color: #fff; font: 700 24px/1 Rubik, sans-serif; font-variant-numeric: tabular-nums; text-align: right; }
/* the digits render at 16px on every screen (a site-wide input font rule wins over the size above), so the «x» keeps one size everywhere:
   at 22px its height matches the digits; a smaller phone size made it look top-aligned (owner 2026-10-09) */
#view-crash .cr-x em { color: #77738f; font: 700 22px/1 Rubik, sans-serif; font-style: normal; transform: translateY(-2px); }
#view-crash .cr-x.is-off { opacity: .45; cursor: not-allowed; }
#view-crash .cr-x.is-off input { color: #77738f; cursor: not-allowed; -webkit-text-fill-color: #77738f; }
#view-crash .cr-x:focus-within { box-shadow: inset 0 0 0 2px #aa96f4; }
/* one focus ring only: the field's own; the site-wide input outline (welvura-refresh.css, !important) drew a second frame inside it */
html #view-crash .cr-x input:focus-visible, html #view-crash .cr-val input:focus-visible { outline: none !important; }
#view-crash .cr-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
#view-crash .cr-amount { display: grid; gap: 8px; padding: 8px; border-radius: 10px; background: #1d1c2e; }
#view-crash .cr-amount-top { display: flex; align-items: center; gap: 8px; }
#view-crash .cr-step { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: #aa96f4; color: #fff; font: 800 20px/1 Rubik, sans-serif; }
#view-crash .cr-step:hover { background: #b8a7f7; }
#view-crash .cr-val { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; height: 36px; border-radius: 8px; cursor: text; }
#view-crash .cr-val input { width: 7ch; min-width: 0; height: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; color: #fff; font: 800 21px/1 Rubik, sans-serif; font-variant-numeric: tabular-nums; text-align: right; }
#view-crash .cr-val em { color: #f2c14e; font: 800 19px/1 Rubik, sans-serif; font-style: normal; }
#view-crash .cr-val:focus-within { box-shadow: inset 0 0 0 2px #aa96f4; }
#view-crash .cr-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#view-crash .cr-quick button { height: 40px; padding: 0; border: 0; border-radius: 8px; background: #2f2e46; color: #e6e3f7; font: 600 14px/1 Rubik, sans-serif; }
#view-crash .cr-quick button:hover { background: #3a3955; }
#view-crash .cr-go { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 92px; padding: 10px 16px; border: 0; border-radius: 12px; background: linear-gradient(115deg, #a34ef4, #7265fd); color: #fff; transition: background .15s ease, opacity .15s ease; }
#view-crash .cr-go b { font: 400 20px/1 Benzin, Rubik, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
#view-crash .cr-go small { font: 600 14px/1.1 Rubik, sans-serif; opacity: .9; font-variant-numeric: tabular-nums; }
#view-crash .cr-go small[hidden] { display: none; }
#view-crash .cr-go[data-mode="cash"] { background: #67c98a; color: #fff; }
#view-crash .cr-go[data-mode="cancel"] { background: #ee6360; }
/* «Ожидание»: a pressed, final button (owner reference 2026-10-10) */
#view-crash .cr-go[data-mode="pending"], #view-crash .cr-go[data-mode="pending"]:disabled { background: #1b1a36; box-shadow: inset 0 0 0 1px #3f3c66, inset 0 2px 8px rgba(0,0,0,.35); opacity: 1; cursor: default; }
#view-crash .cr-go[data-mode="wait"] { background: #43465f; }
#view-crash .cr-go:disabled { opacity: .72; }
#view-crash .cr-go:focus-visible, #view-crash .cr-quick button:focus-visible, #view-crash .cr-step:focus-visible, #view-crash .cr-ico:focus-visible, #view-crash .cr-histbtn:focus-visible { outline: 2px solid #aa96f4; outline-offset: 2px; }

/* ---- popovers: rules and round history ---- */
#view-crash .cr-pop { position: absolute; top: 62px; z-index: 5; display: grid; gap: 12px; width: min(420px, calc(100% - 20px)); max-height: min(560px, calc(100% - 72px)); overflow: auto; padding: 18px; border-radius: 14px; background: #2b2a41; box-shadow: 0 18px 40px rgba(8, 6, 20, .5); overscroll-behavior: contain; }
#view-crash #crHist { right: 22px; }
#view-crash #crRules { left: 22px; }
#view-crash .cr-pop[hidden] { display: none; }
#view-crash .cr-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#view-crash .cr-pop h2 { margin: 0; color: #fff; font: 700 17px/1.2 Rubik, sans-serif; text-transform: none; letter-spacing: normal; }
#view-crash .cr-pop-x { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: #36354f; color: #cfccdf; font-size: 14px; }
#view-crash .cr-pop-note { margin: 0; color: #b8b6d0; font-size: 13px; line-height: 1.45; }
#view-crash .cr-rules { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: cr; }
#view-crash .cr-rules li { position: relative; display: grid; gap: 3px; padding-left: 36px; counter-increment: cr; }
#view-crash .cr-rules li::before { content: counter(cr); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #aa96f4; color: #fff; font: 700 13px/1 Rubik, sans-serif; }
#view-crash .cr-rules b { color: #fff; font-size: 14px; }
#view-crash .cr-rules span { color: #b8b6d0; font-size: 13px; line-height: 1.4; }
#view-crash .cr-hpanel { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5; display: grid; gap: 16px; max-height: calc(100% - 20px); overflow: auto; padding: 18px 20px 20px; border-radius: 12px; background: #1b1a2c; box-shadow: 0 18px 40px rgba(8, 6, 20, .5); overscroll-behavior: contain; }
#view-crash .cr-hpanel[hidden] { display: none; }
#view-crash .cr-hhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#view-crash .cr-hhead h2 { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: #fff; font: 700 17px/1 Rubik, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
#view-crash .cr-hhead h2 svg { width: 24px; height: 24px; color: #cfccdf; }
#view-crash .cr-hclose { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: #35344f; color: #ebe8ff; font: 700 12px/1 Rubik, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
#view-crash .cr-hclose:hover { background: #413f5e; }
#view-crash .cr-hclose:focus-visible { outline: 2px solid #aa96f4; outline-offset: 2px; }
#view-crash .cr-hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 12px 10px; }
#view-crash .cr-hpill { justify-content: center; height: 36px; padding: 0 6px; font-size: 14px; }
#view-crash .cr-hempty { color: #b8b6d0; font-size: 13px; }

/* ---- tablets / phones ---- */
@media (max-width: 960px) {
  #view-crash .cr-stage { height: clamp(280px, 58vw, 64vh); }
}
@media (max-width: 760px) {
  #view-crash .cr-game { padding: 8px; gap: 8px; border-radius: 14px; }
  #view-crash .cr-stage { aspect-ratio: auto; height: clamp(270px, 82vw, 360px); min-height: 0; }
  #view-crash .cr-top { top: 8px; left: 8px; right: 8px; gap: 6px; }
  #view-crash .cr-ico, #view-crash .cr-histbtn { width: 34px; height: 34px; border-radius: 8px; }
  #view-crash .cr-histbtn { justify-content: center; padding: 0; }
  #view-crash .cr-histbtn span { display: none; }
  #view-crash .cr-pill { height: 30px; padding: 0 8px; font-size: 12px; }
  #view-crash .cr-center { top: 22%; }
  #view-crash .cr-ping { right: 10px; bottom: 20px; font-size: 11px; }
  #view-crash .cr-panel { margin-top: -8px; }
  #view-crash .cr-hpanel { top: 8px; left: 8px; right: 8px; max-height: calc(100% - 16px); gap: 12px; padding: 14px; }
  #view-crash .cr-hhead h2 { font-size: 15px; }
  #view-crash .cr-hhead h2 svg { width: 20px; height: 20px; }
  #view-crash .cr-hclose { height: 34px; padding: 0 12px; }
  #view-crash .cr-hgrid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
  #view-crash .cr-hpill { height: 32px; font-size: 13px; }
  #view-crash .cr-panel { gap: 10px; padding: 10px; }
  /* phones: Автоставка, Автовывод and the target field share ONE row (owner, 2026-10-09); the field takes what is left */
  #view-crash .cr-opts { flex-wrap: nowrap; gap: 12px; }
  #view-crash .cr-check { flex: 0 0 auto; gap: 7px; font-size: 13px; }
  #view-crash .cr-box { width: 22px; height: 22px; }
  #view-crash .cr-x { flex: 1 1 auto; width: auto; min-width: 72px; height: 44px; padding: 0 10px; }
  #view-crash .cr-x input { font-size: 20px; }
  #view-crash .cr-main { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #view-crash .cr-go { min-height: 64px; }
  #view-crash .cr-go b { font-size: 18px; }
  #view-crash .cr-pop { top: 50px; left: 10px !important; right: 10px !important; width: auto; max-height: calc(100% - 60px); }
}
@media (max-width: 360px) {
  #view-crash .cr-opts { gap: 5px; }
  #view-crash .cr-check { gap: 4px; font-size: 12px; }
  #view-crash .cr-box { width: 19px; height: 19px; }
  #view-crash .cr-x { min-width: 60px; gap: 3px; padding: 0 6px; }
  #view-crash .cr-x input { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  #view-crash .cr-pill.is-new, #view-crash .cr-win { animation: none; }
}

#view-upgrade .search-intro {
  margin: 16px 0 0;
  border: 0;
  border-radius: 12px;
  background: var(--refresh-panel, #303047);
  color: var(--refresh-muted, #b8b6d0);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#view-upgrade .search-intro > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--refresh-accent, #aa96f4);
}
#view-upgrade .search-intro > summary::-webkit-details-marker { display: none; }
#view-upgrade .search-intro h1 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: inherit;
}
#view-upgrade .search-intro > summary > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#view-upgrade .search-intro[open] > summary > svg { transform: rotate(180deg); }
#view-upgrade .search-intro-body { padding: 0 18px 14px; }
#view-upgrade .search-intro p { max-width: 80ch; margin: 0 0 10px; }
#view-upgrade .search-intro a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--refresh-accent, #aa96f4);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#view-upgrade .search-intro > summary:hover { color: var(--refresh-text, #f5f3ff); }
#view-upgrade .search-intro :is(summary, a):focus-visible,
#view-faq #faq-upgrader > summary:focus-visible {
  outline: 2px solid var(--refresh-accent, #aa96f4);
  outline-offset: -3px;
  border-radius: 8px;
}
#view-faq #faq-upgrader { scroll-margin-top: 20px; }
#view-faq #faq-upgrader p { max-width: 80ch; }

#view-deposit[data-skin-payment="true"] .deposit-checkout-column { display:none !important; }
#view-deposit .deposit-logo-skins img { width:100%; height:100%; object-fit:contain; }
#skinDeposit { min-width:0; color:#f5f3ff; }
#skinDeposit [hidden], #skinDeposit[hidden] { display:none !important; }
#skinDeposit .sd-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:0 0 12px; padding:6px; list-style:none; border-radius:12px; background:#303047; }
#skinDeposit .sd-steps li { display:flex; align-items:center; justify-content:center; min-height:48px; padding:8px 4px; border-radius:8px; background:#3a3a55; color:#b8b6d0; font-size:13px; font-weight:600; }
#skinDeposit .sd-steps [aria-current="step"] { color:#fff; background:var(--grad-btn,linear-gradient(120deg,#a34ef4,#7265fd)); }
#skinDeposit .sd-steps .done { color:#c5b8ff; background:#3d3657; }
#skinDeposit .sd-card { min-width:0; margin-bottom:12px; padding:24px; border-radius:12px; background:#303047; }
#skinDeposit h2 { margin:0 0 12px; color:#c5b8ff; font-size:18px; line-height:1.3; font-weight:600; }
#skinDeposit p { color:#b8b6d0; font-size:13px; line-height:1.6; margin:0 0 18px; }
#skinDeposit .sd-proof { color:#f3efe4; font-weight:600; }
#skinDeposit .sd-reservation .sd-secondary,
#skinDeposit #sdCancelReservation {
  grid-column:1 / -1;
  width:100%;
  box-sizing:border-box;
  display:block;
  margin-top:4px;
}
#skinDeposit .sd-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0; }
#skinDeposit button, #skinDeposit .sd-upload { min-height:44px; border:0; border-radius:9px; font:600 13px/1.4 Rubik,sans-serif; color:#f5f3ff; cursor:pointer; box-shadow:none; transform:none; transition:background-color .15s,color .15s; }
#skinDeposit button::before, #skinDeposit button::after { content:none; }
#skinDeposit button:focus-visible, #skinDeposit .sd-upload:focus-within, #skinDeposit input:focus-visible, #skinDeposit a:focus-visible, #skinDeposit summary:focus-visible { outline:2px solid #c5b8ff; outline-offset:3px; }
#skinDeposit button:disabled { opacity:.45; cursor:not-allowed; }
#skinDeposit .sd-option { display:grid; place-items:center; min-height:76px; padding:20px 10px; background:#3a3a55; text-align:center; }
#skinDeposit .sd-option b { color:#ffcf75; font-size:23px; line-height:1.25; overflow-wrap:anywhere; }
#skinDeposit .sd-option[aria-pressed="true"] { background:#494063; box-shadow:inset 0 0 0 2px #aa96f4; opacity:1; }
#skinDeposit .sd-primary, #skinDeposit .sd-upload { background:var(--grad-btn,linear-gradient(120deg,#a34ef4,#7265fd)); padding:12px 20px; }
#skinDeposit .sd-secondary { background:#3a3a55; padding:10px 16px; }
#skinDeposit button:not(:disabled):hover { filter:brightness(1.06); }
#skinDeposit .sd-actions { display:flex; flex-wrap:wrap; gap:10px; }
#skinDeposit .sd-reservation { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px 16px; padding:14px 18px; margin-bottom:12px; background:#303047; border-radius:12px; font-size:13px; }
#skinDeposit .sd-reservation > span { color:#c5b8ff; }
#skinDeposit .sd-reservation strong { color:#ffcf75; font-size:20px; font-variant-numeric:tabular-nums; }
#skinDeposit .sd-reservation small { grid-column:1/-1; color:#b8b6d0; font-size:11px; line-height:1.6; }
#skinDeposit .sd-reservation.is-urgent strong { color:#eda4ad; }
#skinDeposit .sd-upload-row { display:flex; align-items:center; flex-wrap:wrap; gap:18px; padding:18px; border-radius:12px; background:#3a3a55; }
#skinDeposit .sd-avatar { position:relative; overflow:hidden; display:grid; place-items:center; flex:0 0 64px; width:64px; height:64px; border-radius:50%; background:#272739; color:#b8b6d0; font-size:28px; }
#skinDeposit .sd-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
#skinDeposit .sd-upload { position:relative; display:inline-flex; align-items:center; overflow:hidden; }
#skinDeposit .sd-upload input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
#skinDeposit .sd-saved-avatars { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 16px; }
#skinDeposit .sd-saved-avatar { display:grid; place-items:center; flex:0 0 58px; width:58px; height:58px; padding:4px; background:#3a3a55; border-radius:50%; }
#skinDeposit .sd-saved-avatar img { display:block; width:50px; height:50px; border-radius:50%; object-fit:cover; }
#skinDeposit .sd-saved-avatar[aria-pressed="true"] { box-shadow:0 0 0 2px #aa96f4; opacity:1; }
#skinDeposit .sd-agree { display:flex; align-items:flex-start; gap:10px; margin:20px 0; color:#c9c6dc; font-size:13px; line-height:1.6; cursor:pointer; }
#skinDeposit .sd-agree input { flex:0 0 20px; width:20px; height:20px; margin:0; accent-color:#aa96f4; }
#skinDeposit a { color:#c5b8ff; text-decoration:underline; }
#skinDeposit .sd-item { display:grid; grid-template-columns:128px minmax(0,1fr); align-items:center; gap:20px; padding:22px; border-radius:12px; background:#383b5a; }
#skinDeposit .sd-item-visual { display:grid; place-items:center; min-width:0; height:130px; }
#skinDeposit .sd-item-art { display:block; max-width:100%; width:128px; height:130px; object-fit:contain; }
#skinDeposit .sd-item-details { min-width:0; }
#skinDeposit .sd-item-name { display:block; color:#f5f3ff; font-size:20px; line-height:1.4; overflow-wrap:anywhere; }
#skinDeposit .sd-fields { display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); gap:16px; margin:18px 0 0; }
#skinDeposit .sd-fields dt { color:#b8b6d0; font-size:11px; line-height:1.5; margin-bottom:6px; }
#skinDeposit .sd-fields dd { margin:0; font-weight:600; font-size:21px; color:#ffcf75; overflow-wrap:anywhere; }
#skinDeposit #sdBuyItem .sd-item { border-radius:12px 12px 0 0; }
#skinDeposit .sd-seller { display:flex; align-items:center; gap:14px; padding:16px 22px; background:#34374f; border-radius:0 0 12px 12px; }
#skinDeposit .sd-seller img { flex:0 0 56px; width:56px; height:56px; border-radius:14px; object-fit:contain; }
#skinDeposit .sd-seller div { display:grid; gap:5px; min-width:0; }
#skinDeposit .sd-seller b { color:#f5f3ff; font-size:13px; font-weight:500; }
#skinDeposit .sd-seller span { color:#b8b6d0; font-size:12px; line-height:1.5; }
#skinDeposit .sd-review-icon { display:block; color:#c5b8ff; font-size:40px; margin-bottom:8px; }
#skinDeposit .sd-history-head { position:relative; min-width:0; }
#skinDeposit .sd-history { padding:0; }
#skinDeposit summary { cursor:pointer; list-style:none; }
#skinDeposit summary::-webkit-details-marker { display:none; }
#skinDeposit summary::marker { content:""; }
#skinDeposit .sd-history > summary { display:flex; align-items:center; gap:10px; min-height:68px; padding:16px 116px 16px 20px; color:#c5b8ff; font-weight:600; font-size:15px; line-height:1.45; }
#skinDeposit .sd-history > summary > span:first-child { flex:1; min-width:0; }
#skinDeposit .sd-count { display:grid; place-items:center; min-width:22px; height:22px; padding:0 5px; border-radius:6px; background:#3a3a55; color:#b8b6d0; font-size:11px; }
#skinDeposit .sd-chevron { display:block; flex:0 0 7px; width:7px; height:7px; margin:0 3px 3px; border-right:2px solid #b8b6d0; border-bottom:2px solid #b8b6d0; transform:rotate(45deg); }
#skinDeposit details[open] > summary > .sd-chevron { transform:rotate(225deg); margin-bottom:-3px; }
#skinDeposit .sd-refresh { position:absolute; top:12px; right:12px; }
#skinDeposit #sdHistory { padding:0 16px 16px; }
#skinDeposit .sd-history-row { margin-top:8px; background:#3a3a55; border-radius:10px; overflow:hidden; }
#skinDeposit .sd-history-meta { display:grid; grid-template-columns:minmax(0,1fr) auto 10px; align-items:center; gap:12px; min-height:76px; padding:14px 16px; }
#skinDeposit .sd-history-title { display:grid; gap:5px; min-width:0; }
#skinDeposit .sd-history-title b { color:#ffcf75; font-size:17px; font-weight:600; }
#skinDeposit .sd-history-title small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#b8b6d0; font-size:12px; }
#skinDeposit .sd-status { white-space:nowrap; font-size:11px; color:#c5b8ff; }
#skinDeposit .sd-status.is-approved { color:#78dda9; }
#skinDeposit .sd-status.is-rejected { color:#eda4ad; }
#skinDeposit .sd-history-detail { padding:0 12px 12px; }
#skinDeposit .sd-history-detail .sd-item { grid-template-columns:76px minmax(0,1fr); padding:14px; gap:14px; }
#skinDeposit .sd-history-detail .sd-item-visual, #skinDeposit .sd-history-detail .sd-item-art { width:76px; height:86px; }
#skinDeposit .sd-history-detail .sd-item-name { font-size:14px; }
#skinDeposit .sd-history-detail .sd-fields { margin-top:12px; }
#skinDeposit .sd-history-detail .sd-fields dd { font-size:15px; }
#skinDeposit .sd-history-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 2px 0; }
#skinDeposit .sd-history-avatar { display:block; width:36px; height:36px; object-fit:cover; border-radius:50%; }
#skinDeposit .sd-reference { margin-left:auto; color:#9693ad; font-size:11px; }
#skinDeposit .sd-note { margin:12px 2px 0; overflow-wrap:anywhere; }
#skinDeposit .sd-message { background:#3a3249; border-radius:10px; padding:16px; margin-bottom:12px; color:#efd0a2; font-size:13px; line-height:1.5; }
#skinDeposit .sd-empty { grid-column:1/-1; margin:12px 0 0; }
@media(max-width:1100px) {
  #skinDeposit .sd-item { grid-template-columns:100px minmax(0,1fr); gap:14px; padding:20px 16px; }
  #skinDeposit .sd-item-art { width:100px; }
  #skinDeposit .sd-item-name { font-size:18px; }
  #skinDeposit .sd-fields dd { font-size:18px; }
}
@media(max-width:600px) {
  #skinDeposit .sd-card { padding:18px 14px; }
  #skinDeposit .sd-steps li { font-size:12px; }
  #skinDeposit .sd-item { grid-template-columns:1fr; gap:6px; padding:18px; }
  #skinDeposit .sd-item-visual { height:105px; }
  #skinDeposit .sd-item-art { width:170px; height:105px; }
  #skinDeposit .sd-item-name { text-align:center; font-size:19px; }
  #skinDeposit .sd-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
  #skinDeposit .sd-fields dd { font-size:20px; }
  #skinDeposit .sd-seller { padding:14px; gap:12px; }
  #skinDeposit .sd-seller img { width:48px; height:48px; flex-basis:48px; border-radius:12px; }
  #skinDeposit .sd-history { padding:0; }
  #skinDeposit .sd-history > summary { padding:14px 105px 14px 14px; gap:8px; font-size:13px; min-height:76px; }
  #skinDeposit .sd-refresh { top:16px; right:10px; padding:10px 12px; font-size:12px; }
  #skinDeposit #sdHistory { padding:0 10px 10px; }
  #skinDeposit .sd-history-meta { padding:12px; gap:8px; }
  #skinDeposit .sd-history-title b { font-size:15px; }
  #skinDeposit .sd-history-detail { padding:0 8px 10px; }
  #skinDeposit .sd-history-detail .sd-item { grid-template-columns:1fr; padding:14px 12px; gap:8px; }
  #skinDeposit .sd-history-detail .sd-item-visual { width:auto; height:76px; }
  #skinDeposit .sd-history-detail .sd-item-art { width:130px; height:76px; }
  #skinDeposit .sd-history-detail .sd-item-name { font-size:14px; }
  #skinDeposit #sdConfirm { max-width:100%; white-space:normal; }
}

/* One-time +20% top-up bonus: method tag, bonus bar with timer, per-amount bonus. */
#view-deposit .deposit-method-bonus { order:1; margin-left:auto; flex:0 0 auto; padding:3px 8px; border-radius:999px; background:linear-gradient(120deg,#f5b52e,#ffd76a 48%,#f5a92e); color:#3a2100; font:800 11px/1.2 Rubik,sans-serif; font-style:normal; }
#view-deposit .deposit-method-bonus[hidden] { display:none; }
#skinDeposit .sd-bonus { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; margin-bottom:12px; padding:14px 18px; border-radius:12px; background:linear-gradient(160deg,#35246a,#241a47); }
#skinDeposit .sd-bonus[hidden] { display:none; }
#skinDeposit .sd-bonus > b { font-family:Benzin,Rubik,sans-serif; font-size:30px; line-height:1; color:#ffd76a; }
#skinDeposit .sd-bonus-copy { display:grid; gap:3px; min-width:0; }
#skinDeposit .sd-bonus-copy strong { font-size:15px; color:#fff; }
#skinDeposit .sd-bonus-copy small { font-size:11.5px; line-height:1.4; color:#c9c2e8; }
#skinDeposit .sd-bonus-time { display:grid; justify-items:end; gap:2px; }
#skinDeposit .sd-bonus-time small { font-size:11px; color:#c9c2e8; }
#skinDeposit .sd-bonus-time strong { font-size:20px; color:#fff; font-variant-numeric:tabular-nums; white-space:nowrap; }
#skinDeposit .sd-option.has-bonus { gap:2px; align-content:center; }
#skinDeposit .sd-option-bonus { color:#ffd76a; font-size:12.5px; font-weight:700; }
@media (max-width:600px) {
  #skinDeposit .sd-bonus { grid-template-columns:auto minmax(0,1fr); gap:6px 12px; padding:12px 14px; }
  #skinDeposit .sd-bonus > b { font-size:24px; grid-row:span 2; }
  #skinDeposit .sd-bonus-time { grid-column:2; justify-items:start; display:flex; align-items:baseline; gap:6px; }
  #skinDeposit .sd-bonus-time strong { font-size:16px; }
}
#skinDeposit .sd-credit-bonus { grid-column:1/-1; }
#skinDeposit .sd-credit-split { display:block; margin-top:3px; color:#ffd76a; font-size:12px; font-weight:600; }
/* Promo code inside the Standoff 2 flow; same component as the payment column's promo row.
   deposit-welvura-final.css pins every promo row to margin 0 and a checkout-grid cell, so reset both here. */
#view-deposit #skinDeposit .sd-promo-row { margin:0 0 12px !important; grid-row:auto !important; grid-column:auto !important; }
/* Both promo fields: no floating focus pill around the text; the whole field shows the inset focus ring instead. */
#view-deposit .deposit-promo-row input:focus,
#view-deposit .deposit-promo-row input:focus-visible { outline:none !important; }
#view-deposit .deposit-promo-row label:has(input:focus-visible) { box-shadow:inset 0 0 0 2px #aa96f4 !important; }

/* One-time +20% top-up bonus in the Stars/CryptoBot checkout column (same material as #skinDeposit .sd-bonus). */
#view-deposit .deposit-topup-pill { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; margin:11px 0 0; padding:10px 14px; border-radius:10px; background:linear-gradient(160deg,#35246a,#241a47); }
#view-deposit .deposit-topup-pill[hidden] { display:none; }
#view-deposit .deposit-topup-pill > b { font-family:Benzin,Rubik,sans-serif; font-size:20px; line-height:1; color:#ffd76a; }
#view-deposit .deposit-topup-pill > span { font:600 12px/1.3 Rubik,sans-serif; color:#c9c2e8; min-width:0; }
#view-deposit .deposit-topup-pill strong { color:#ffd76a; white-space:nowrap; }
#view-deposit .deposit-topup-pill .deposit-topup-time { font:700 14px/1 Rubik,sans-serif; color:#fff; font-variant-numeric:tabular-nums; white-space:nowrap; }

/* History status pills with icons + visible rejection reason */
#skinDeposit .sd-status { display:inline-flex; align-items:center; gap:6px; padding:5px 10px 5px 7px; border-radius:999px; background:rgba(197,184,255,.12); font-size:12px; font-weight:700; line-height:1; }
#skinDeposit .sd-status.is-approved { background:rgba(120,221,169,.14); }
#skinDeposit .sd-status.is-rejected { background:rgba(255,107,110,.14); color:#ff9a9d; }
#skinDeposit .sd-status-icon { display:grid; place-items:center; width:16px; height:16px; }
#skinDeposit .sd-status-icon svg { width:16px; height:16px; }
#skinDeposit .sd-history-title .sd-reject-line { color:#f0a7ab; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#skinDeposit .sd-reject { display:grid; gap:4px; margin:12px 2px 0; padding:12px 14px; border-radius:10px; background:rgba(255,107,110,.1); box-shadow:inset 3px 0 0 #ff6b6e; }
#skinDeposit .sd-reject b { color:#ff9a9d; font-size:12px; font-weight:700; }
#skinDeposit .sd-reject p { margin:0; color:#fff; font-size:14px; font-weight:600; line-height:1.4; overflow-wrap:anywhere; white-space:pre-wrap; }
#skinDeposit .sd-reject small { color:#b8b6d0; font-size:12px; line-height:1.4; }
@media (max-width:600px) { #skinDeposit .sd-status { padding:4px 8px 4px 5px; font-size:11px; } }

/* Promo-code deposit bonus: a quiet pill matching the green «+50 G» one (not the big +20% bar). */
#view-deposit .deposit-promo-bonus { width:fit-content; max-width:100%; display:flex; align-items:center; gap:9px; margin:8px 0 0; padding:9px 12px; border-radius:10px; background:rgba(255,212,121,.09); }
#view-deposit .deposit-promo-bonus[hidden] { display:none; }
#view-deposit .deposit-promo-bonus > i { width:19px; height:19px; flex:0 0 auto; display:grid; place-items:center; border-radius:50%; background:#ffd479; color:#3a2a06; font:800 11px/1 Rubik,sans-serif; font-style:normal; }
#view-deposit .deposit-promo-bonus > span { min-width:0; font:600 12px/1.3 Rubik,sans-serif; color:#f3dca6; }
#view-deposit .deposit-promo-bonus b { color:#ffd479; font-weight:800; }
#view-deposit .deposit-promo-bonus > small { margin-left:auto; flex:0 0 auto; font:600 11px/1 Rubik,sans-serif; color:#9ba0c0; font-variant-numeric:tabular-nums; white-space:nowrap; }

#skinDeposit .sd-howto { padding:0; }
#skinDeposit .sd-howto > summary { display:flex; align-items:center; gap:10px; min-height:56px; padding:14px 20px; color:#c5b8ff; font-weight:600; font-size:15px; line-height:1.45; }
#skinDeposit .sd-howto > summary > span:first-child { flex:1; min-width:0; }
#skinDeposit .sd-howto-list { counter-reset:sdhow; display:grid; gap:10px; margin:0; padding:0 20px 20px; list-style:none; }
#skinDeposit .sd-howto-list li { counter-increment:sdhow; display:grid; grid-template-columns:28px minmax(0,1fr); align-items:start; gap:12px; color:#e4e0f7; font-size:14px; line-height:1.5; }
#skinDeposit .sd-howto-list li::before { content:counter(sdhow); display:grid; place-items:center; width:28px; height:28px; border-radius:8px; background:#3a3a55; color:#c5b8ff; font-size:13px; font-weight:700; }
@media (max-width: 760px) {
  #skinDeposit .sd-howto > summary { padding:12px 14px; }
  #skinDeposit .sd-howto-list { padding:0 14px 16px; }
}
#skinDeposit .sd-howto > summary > .sd-chevron { border-right:2px solid #b8b6d0 !important; border-bottom:2px solid #b8b6d0 !important; border-top:0 !important; border-left:0 !important; }
#skinDeposit .sd-howto-list li > div { display:grid; gap:10px; min-width:0; }
#skinDeposit .sd-howto-list li > div > img { display:block; width:100%; height:auto; border-radius:10px; background:#25253a; }


/* How-to dropdown inside the buy step: flat block, screenshots open full screen */
#skinDeposit .sd-howto { margin:16px 0 4px; border-radius:12px; background:#3a3a55; }
#skinDeposit .sd-howto > summary { min-height:52px; padding:12px 16px; }
.sd-shot { position:relative; display:block; width:100%; padding:0; border:0; border-radius:10px; overflow:hidden; background:#25253a; cursor:zoom-in; }
.sd-shot img { display:block; width:100%; height:auto; }
.sd-shot-zoom { position:absolute; right:8px; bottom:8px; padding:6px 10px; border-radius:8px; background:rgba(20,20,34,.82); color:#fff; font-size:12px; font-weight:600; }
.sd-lightbox { position:fixed; inset:0; z-index:100000; display:grid; place-items:center; overflow:auto; overscroll-behavior:contain; background:rgba(10,10,20,.985); cursor:zoom-out; }
.sd-lightbox img { display:block; width:min(1600px, 100vw); max-width:none; height:auto; margin:auto; }
.sd-lightbox-close { position:fixed; top:12px; right:12px; z-index:1; width:44px; height:44px; padding:0; border:0; border-radius:12px; background:#3a3a55; color:#fff; font-size:26px; line-height:1; cursor:pointer; }
@media (max-width: 760px) {
  /* phones: the screenshot is wider than the screen so the small text is readable; drag to look around */
  .sd-lightbox img { width:220vw; }
}


/* How-to: a visible card nested in the buy card, between the seller block and the checkbox */
/* redesign.css forces every <details> to the panel colour with !important, so this needs !important too */
#skinDeposit .sd-howto { margin:18px 0 8px; border-radius:12px !important; background:#413a72 !important; }
#skinDeposit .sd-howto > summary { min-height:60px; padding:14px 18px; color:#fff; font-size:16px; }
#skinDeposit .sd-howto > summary::before { content:"?"; display:grid; place-items:center; flex:0 0 28px; width:28px; height:28px; border-radius:50%; background:var(--grad-btn,linear-gradient(120deg,#a34ef4,#7265fd)); color:#fff; font-size:16px; font-weight:700; }
#skinDeposit .sd-howto .sd-howto-list { padding:0 18px 18px; }
@media (max-width: 760px) {
  #skinDeposit .sd-howto > summary { padding:12px 14px; }
  #skinDeposit .sd-howto .sd-howto-list { padding:0 14px 16px; }
}

/* ============================================================
   ACCOUNT GATES — ban screen + free daily cases (app.js syncBanOverlay / renderFreeCasesSection)
   ============================================================ */

/* ---- Ban screen: covers the whole site, only support mail + logout are usable ---- */
html.is-banned, html.is-banned body { overflow: hidden !important; }
.ban-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(14, 16, 30, .9);
  animation: ban-in .24s ease-out both;
}
@keyframes ban-in { from { opacity: 0; } to { opacity: 1; } }
.ban-card {
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 16px;
  background: #2c3050;
  box-shadow: 0 24px 60px rgba(4, 6, 16, .6);
  text-align: center;
  color: #e9e8f6;
}
.ban-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(226, 58, 61, .16);
  color: #ff6b6e;
}
.ban-icon svg { width: 30px; height: 30px; }
.ban-card h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; color: #fff; }
.ban-lead { margin: 0 0 16px; font-size: 14px; line-height: 1.45; color: #b8bdd4; }
.ban-reason {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #383b5a;
  text-align: left;
}
.ban-reason span { font-size: 12px; color: #b8bdd4; }
.ban-reason b { font-size: 15px; font-weight: 700; color: #fff; overflow-wrap: anywhere; white-space: pre-wrap; }
.ban-help { margin: 14px 0 18px; font-size: 13px; line-height: 1.45; color: #b8bdd4; }
.ban-help a { color: #c4b5fd; font-weight: 700; text-decoration: none; }
.ban-help a:hover { text-decoration: underline; }
.ban-logout {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #3f4566;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.ban-logout:hover { background: #4a5178; }
.ban-logout:disabled { opacity: .6; cursor: default; }

/* ---- Free daily cases: first section of the catalogue ---- */
#view-cases .free-cases .cs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#view-cases .free-cases-note { color: #b8bdd4; font-size: 13px; font-weight: 600; white-space: nowrap; }
#view-cases .gcard-free.is-ready .gcard-price,
#view-cases .gcard-free.is-guest .gcard-price { color: #4ade80 !important; }
#view-cases .gcard-free.is-wait .gcard-price { color: #c4b5fd !important; font-variant-numeric: tabular-nums; }
#view-cases .gcard-free.is-locked .gcard-price { color: #b8bdd4 !important; }
#view-cases .gcard-free.is-locked .gcard-art > img,
#view-cases .gcard-free.is-wait .gcard-art > img { filter: saturate(.55) brightness(.72) !important; }
#view-cases .gcard-free.is-locked:hover .gcard-art > img,
#view-cases .gcard-free.is-wait:hover .gcard-art > img { filter: saturate(.65) brightness(.8) !important; }
#view-cases .free-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  color: #fff;
  text-align: center;
  pointer-events: none;
  background: rgba(18, 20, 38, .38);
}
#view-cases .free-lock svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
#view-cases .free-lock span { font-size: 13px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
#view-cases .free-progress {
  display: block;
  width: min(140px, 80%);
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
#view-cases .free-progress b { display: block; height: 100%; border-radius: inherit; background: var(--gold, #ffc94d); }
@media (max-width: 800px) {
  #view-cases .gcard-free .gcard-bar { flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; padding: 10px 12px !important; }
  #view-cases .gcard-free .gcard-name { width: 100%; }
  #view-cases .free-lock span { font-size: 11.5px; }
  #view-cases .free-lock svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ban-overlay { animation: none; } }

/* ============================================================
   HISTORY CARDS — FINAL OWNER (2026-09-28)
   Case-history tiles (.ccard) and upgrade-history tiles (.htile) in
   #histList take the approved upgrader item-card material: one
   blue-violet surface, the subtle Offgrader watermark behind the
   artwork, a soft rarity wash and a slim centered rarity bar.
   Also owns the declined skin-withdrawal reason (#ipane-wd).
   Loaded after welvura-refresh.css, which otherwise wipes the
   watermark with its shared background-image rule.
   ============================================================ */

/* ---------- shared tile material ---------- */
html body #view-inv #histList .ccard,
html body #view-inv #histList .htile {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate;
  background-color: var(--item-card, #383b5a) !important;
  background-image: linear-gradient(145deg, rgba(170,150,244,.05), transparent 60%) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  transform: none !important;
}
html body #view-inv #histList .ccard::before,
html body #view-inv #histList .htile::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  width: auto !important; height: auto !important;
  z-index: -1 !important;
  background: radial-gradient(ellipse 120% 70% at 50% 112%,
    color-mix(in srgb, var(--rc, var(--r-common)) 34%, transparent),
    color-mix(in srgb, var(--rc, var(--r-common)) 10%, transparent) 52%,
    transparent 80%) !important;
  opacity: 1 !important;
  border: 0 !important;
  pointer-events: none;
}
html body #view-inv #histList .ccard::after,
html body #view-inv #histList .htile::after {
  content: "" !important;
  position: absolute !important;
  top: auto !important;
  bottom: 0 !important;
  left: 34% !important; right: 34% !important;
  width: auto !important;
  height: 4px !important;
  border: 0 !important;
  border-radius: 4px 4px 0 0 !important;
  background: var(--rc, var(--r-common)) !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--rc, var(--r-common)) 45%, transparent) !important;
  opacity: 1 !important;
  transform: none !important;
}
html body #view-inv #histList .ccard:hover,
html body #view-inv #histList .htile:hover {
  background-color: color-mix(in srgb, var(--rc, var(--r-common)) 6%, var(--item-card, #383b5a)) !important;
  transform: none !important;
}
html body #view-inv #histList .ccard-glow,
html body #view-inv #histList .htile-glow { display: none !important; }

/* ---------- case history grid ---------- */
html body #view-inv #histList .hist-compact {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: stretch !important;
  gap: 10px !important;
}

html body #view-inv #histList .ccard > * { flex: 0 0 auto !important; }
html body #view-inv #histList .ccard {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: auto !important;
  padding: 8px 8px 12px !important;
  text-align: center !important;
}
/* Case name: a quiet caption, not a pill */
html body #view-inv #histList .ccard-case {
  position: relative !important;
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  max-width: 100% !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #9ba0c0 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  inset: auto !important;
}
html body #view-inv #histList .ccard-case img {
  width: 16px !important; height: 16px !important;
  flex: 0 0 16px !important;
  border-radius: 4px !important;
  object-fit: cover !important;
  filter: none !important;
}
/* Artwork stage: large contained art over the watermark */
html body #view-inv #histList .ccard > .ccard-art {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  margin: 2px 0 4px !important;
  display: grid !important;
  place-items: center !important;
  background: url("ui/offgrader-mark-subtle.svg") center center / auto 76% no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body #view-inv #histList .ccard > .ccard-art img {
  position: static !important;
  width: 90% !important;
  height: 90% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  inset: auto !important;
  object-fit: contain !important;
  background: transparent !important;
  filter: drop-shadow(0 8px 12px rgba(4,6,14,.45)) !important;
}
html body #view-inv #histList .ccard-art img.fail { visibility: hidden !important; }
html body #view-inv #histList .ccard-w {
  width: 100% !important;
  color: var(--item-muted, #b8bdd4) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html body #view-inv #histList .ccard-s {
  width: 100% !important;
  color: #f4f5fc !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html body #view-inv #histList .ccard-p {
  margin-top: 5px !important;
  padding: 0 !important;
  color: #ffd479 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  background: transparent !important;
}

/* ---------- upgrade history tiles ---------- */
html body #view-inv #histList .ucard .htile {
  aspect-ratio: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 8px 8px 12px !important;
}
/* The watermark sits on the image box itself, so its middle is always the skin's middle — also when the target
   card is stretched taller than its content (several input items with arrows on the left). */
html body #view-inv #histList .ucard .htile:not(.htile-flat) {
  background-image: linear-gradient(145deg, rgba(170,150,244,.05), transparent 60%) !important;
}
html body #view-inv #histList .ucard .htile-flat::after { display: none !important; }
html body #view-inv #histList .ucard .htile img {
  flex: 1 1 84px !important;
  width: 88% !important;
  height: auto !important;
  min-height: 84px !important;
  max-width: none !important;
  margin: 2px auto 4px !important;
  object-fit: contain !important;
  background: url("ui/offgrader-mark-subtle.svg") center center / auto 76px no-repeat !important;
  filter: drop-shadow(0 8px 12px rgba(4,6,14,.45)) !important;
}
html body #view-inv #histList .ucard .htile-w {
  width: 100% !important;
  margin-top: auto !important;
  font-size: 11.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html body #view-inv #histList .ucard .htile-s {
  width: 100% !important;
  font-size: 13.5px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden !important;
}

/* ---------- phones ---------- */
@media (max-width: 600px) {
  html body #view-inv #histList .hist-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  html body #view-inv #histList .ccard { padding: 7px 6px 10px !important; }
  html body #view-inv #histList .ccard-case { font-size: 10px !important; gap: 4px !important; height: 14px !important; line-height: 14px !important; }
  html body #view-inv #histList .ccard-case img { width: 14px !important; height: 14px !important; flex-basis: 14px !important; }
  html body #view-inv #histList .ccard > .ccard-art { aspect-ratio: 4 / 3; margin: 2px 0 3px !important; }
  html body #view-inv #histList .ccard-w { font-size: 10.5px !important; }
  html body #view-inv #histList .ccard-s { font-size: 12px !important; }
  html body #view-inv #histList .ccard-p { margin-top: 3px !important; font-size: 12px !important; }
  html body #view-inv #histList .ccard::after, html body #view-inv #histList .htile::after { left: 30% !important; right: 30% !important; height: 3px !important; }
  html body #view-inv #histList .ucard .htile img { min-height: 72px !important; flex-basis: 72px !important; background-size: auto 64px !important; }
}
@media (max-width: 359px) {
  html body #view-inv #histList .hist-compact { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ============================================================
   DECLINED SKIN WITHDRAWAL — icon + reason
   ============================================================ */
html body #ipane-wd .whr-state.is-rejected {
  color: #ff7a86 !important;
  background: rgba(255, 92, 110, .14) !important;
}
html body #ipane-wd .wd-history-entry.is-rejected {
  background-image: linear-gradient(90deg, rgba(255, 92, 110, .07), transparent 55%) !important;
}
html body #ipane-wd .wd-reject {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0 12px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 92, 110, .09);
  color: #e9ebf7;
  text-align: left;
}
html body #ipane-wd .wd-reject-ico {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 92, 110, .16);
  color: #ff8a95;
}
html body #ipane-wd .wd-reject-ico svg { width: 18px; height: 18px; display: block; }
html body #ipane-wd .wd-reject-copy { display: grid; gap: 3px; min-width: 0; }
html body #ipane-wd .wd-reject-copy b {
  color: #ff9aa4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html body #ipane-wd .wd-reject-copy p {
  margin: 0;
  color: #eef0fb;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
html body #ipane-wd .wd-reject-copy small {
  color: #9ba0c0;
  font-size: 12px;
  line-height: 1.4;
}
@media (max-width: 600px) {
  html body #ipane-wd .wd-reject { margin: 0 8px 8px; padding: 9px 10px; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; }
  html body #ipane-wd .wd-reject-ico { width: 26px; height: 26px; }
  html body #ipane-wd .wd-reject-ico svg { width: 16px; height: 16px; }
  html body #ipane-wd .wd-reject-copy p { font-size: 13px; }
}

/* The target card keeps its own height instead of stretching to the input pane (which also holds the ‹ › arrows when
   several items were staked), so both cards are the same height side by side. */
html body #view-inv #histList .ucard .uc-target-slot { align-items: flex-start !important; }
html body #view-inv #histList .ucard .uc-target-slot > .htile { height: auto !important; align-self: flex-start !important; }
/* PC: the two-line «N ПРЕДМЕТА / сумма» header must not push the left card lower than the right one. */
@media (min-width: 761px) {
  html body #view-inv #histList .ucard .uc-pane-head { min-height: 34px !important; box-sizing: border-box; }
}
/* PC, gold-only upgrade: the flat «Gold» card fills the same height as the target card next to it
   (phones already match; their input pane is a grid with the arrows and must stay one). */
@media (min-width: 761px) {
  html body #view-inv #histList .ucard .uc-input-pane { display: flex !important; flex-direction: column !important; }
  html body #view-inv #histList .ucard .uc-input-pane > .uc-carousel-slot { flex: 1 1 auto !important; }
  html body #view-inv #histList .ucard .uc-carousel-slot > .htile-flat { align-self: stretch !important; height: auto !important; }
}

/* ‹ › for several staked items sit INSIDE the left card (edges, vertically centred), not in a row under it.
   Same grid on every width: row 1 = «N ПРЕДМЕТА / сумма», row 2 = the card with both arrows on top of it. */
html body #view-inv #histList .ucard .uc-input-pane:has(.uc-input-head) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  align-items: stretch !important;
}
html body #view-inv #histList .ucard .uc-input-head { display: contents !important; }
html body #view-inv #histList .ucard .uc-input-meta { grid-column: 1 / -1 !important; grid-row: 1 !important; }
html body #view-inv #histList .ucard .uc-carousel-slot { grid-column: 1 / -1 !important; grid-row: 2 !important; }
html body #view-inv #histList .ucard .uc-arrow {
  grid-row: 2 !important;
  align-self: center !important;
  z-index: 3;
  position: relative;
  width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; flex-basis: auto !important;
  margin: 0 4px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  /* visible 28px disc inside a larger hit area */
  background: radial-gradient(circle, rgba(22, 24, 42, .78) 0 13.5px, transparent 14.5px) !important;
  box-shadow: none !important;
  color: #eef0fb !important;
  font-size: 20px !important;
  line-height: 1 !important;
  display: grid !important; place-items: center !important;
}
html body #view-inv #histList .ucard .uc-arrow:hover { background: radial-gradient(circle, rgba(106, 86, 200, .92) 0 13.5px, transparent 14.5px) !important; }
html body #view-inv #histList .ucard .uc-prev { grid-column: 1 !important; justify-self: start !important; }
html body #view-inv #histList .ucard .uc-next { grid-column: 2 !important; justify-self: end !important; }
@media (min-width: 761px) {
  html body #view-inv #histList .ucard .uc-input-meta { min-height: 34px !important; margin-bottom: 7px !important; } /* = .uc-pane-head margin */
}
@media (max-width: 760px), (pointer: coarse) {
  /* touch: 44px hit area, arrows hug the card edges */
  html body #view-inv #histList .ucard .uc-arrow { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; margin: 0 !important; }
}
/* PC too: one staked item at a time, full card width (the arrows page through them), like on phones. */
html body #view-inv #histList .ucard .uc-carousel-slot:has(.uc-carousel-track) { overflow-x: auto !important; overflow-y: hidden !important; scroll-snap-type: x mandatory; scrollbar-width: none; }
html body #view-inv #histList .ucard .uc-carousel-slot:has(.uc-carousel-track)::-webkit-scrollbar { display: none; }
html body #view-inv #histList .ucard .uc-carousel-track { display: flex !important; width: 100% !important; min-width: 100% !important; flex: 0 0 100% !important; gap: 8px !important; }
html body #view-inv #histList .ucard .uc-carousel-track > .htile { flex: 0 0 100% !important; width: 100% !important; min-width: 0 !important; scroll-snap-align: start; }

/* ============================================================
   Laptop scale — the whole UI at 84% on laptop-sized desktop screens
   (13–15" laptops with 125–200% Windows scaling, MacBooks): 1200–1600 CSS px
   wide and ≤ 1000 px tall, mouse/trackpad only. Looks like Ctrl − at ~85%,
   but the content column still fills the screen like at 100%.
   Gate: html.lz is set in <head> only where CSS zoom is standardized
   (Element.currentCSSZoom: Chrome/Edge 128+, Firefox 126+); elsewhere 100%.
   Contract for the rest of the CSS/JS:
   - --pz is the active scale (1 when off). Viewport units are scaled by zoom,
     so every vh/vw/svh/dvh length is written as calc(100vh / var(--pz, 1)).
   - getBoundingClientRect()/clientX are zoomed; app.js divides by pageZoom()
     before mixing them with layout px (reels, ripple, header measurement).
   Loaded last.
   ============================================================ */
@media (min-width: 1200px) and (max-width: 1600px) and (max-height: 1000px) and (hover: hover) and (pointer: fine) {
  html.lz {
    zoom: .84;
    --pz: .84;
    /* keep the content column as wide on screen as at 100% (88.125rem cap / scale) */
    --content-max: calc(88.125rem / .84);
  }
}
