:root {
  --bg: #080907;
  --bg-2: #11130f;
  --card: rgba(245, 240, 230, 0.055);
  --card-2: rgba(245, 240, 230, 0.095);
  --line: rgba(216, 189, 133, 0.18);
  --text: #f5f0e6;
  --muted: #a49d8e;
  --gold: #e8b44a;
  --gold-2: #ffd98b;
  --green: #2fd6a1;
  --red: #e45b4e;
  --violet: #2fd6a1;
  --violet-2: #8cf5ce;
  --cyan: #8cf5ce;
  --orange: #d97a3a;
  --jade: #2fd6a1;
  --jade-2: #8cf5ce;
  --bronze: #8a5a24;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(255, 255, 255, 0.1) 0%, rgba(5, 5, 5, 0) 60%),
    radial-gradient(80% 50% at 85% 100%, rgba(255, 255, 255, 0.055) 0%, rgba(5, 5, 5, 0) 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}

button {
  font-family: inherit;
  touch-action: manipulation;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.14em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 6px 16px calc(104px + var(--safe-bottom));
}

.view:not([hidden]) {
  animation: view-in 0.3s ease both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(16px + var(--safe-top)) 16px 10px;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 21px;
  border-radius: 13px;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.12);
}

.brand-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s ease, background 0.15s ease;
}

.balance-pill:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.16);
}

.balance-icon {
  font-size: 15px;
  display: flex;
  color: var(--gold);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0) 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0) 55%),
    #101010;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero::before {
  width: 120px;
  height: 120px;
  right: -30px;
  top: 20px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  animation: float-a 7s ease-in-out infinite;
}

.hero::after {
  width: 150px;
  height: 150px;
  left: -50px;
  bottom: -70px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  animation: float-b 9s ease-in-out infinite;
}

.hero > * {
  position: relative;
  z-index: 1;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 14px); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -10px); }
}

.hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 300px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07125);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.stat b {
  font-size: 15px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.section-title {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 14px 15px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #161616, #0d0d0d);
  color: var(--text);
  text-align: left;
  transition: transform 0.12s ease, border-color 0.15s ease;
  animation: card-in 0.45s ease both;
}

.game-card:nth-child(2) { animation-delay: 0.05s; }
.game-card:nth-child(3) { animation-delay: 0.1s; }
.game-card:nth-child(4) { animation-delay: 0.15s; }
.game-card:nth-child(5) { animation-delay: 0.2s; }
.game-card:nth-child(6) { animation-delay: 0.25s; }

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.game-card:active {
  transform: scale(0.97);
}

.game-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 22px;
  margin-bottom: 7px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease;
}

.game-card:active .game-ico {
  transform: scale(0.9) rotate(-6deg);
}

.g-crash .game-ico { color: #d4d4d4; background: rgba(170, 170, 170, 0.12); }
.g-wheel .game-ico { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.g-mines .game-ico { color: #d4d4d4; background: rgba(255, 255, 255, 0.14); }
.g-dice .game-ico { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.g-roulette .game-ico { color: #d4d4d4; background: rgba(255, 255, 255, 0.12); }
.g-coin .game-ico { color: #d4d4d4; background: rgba(255, 255, 255, 0.12); }

.game-card b {
  font-size: 15px;
}

.game-card span:last-child {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.fair-note {
  margin: 18px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.8;
}


.game-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 14px;
}

.game-head h2 {
  margin: 0;
  font-size: 19px;
  flex: 1;
}

.icon-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease;
}

.icon-btn:active {
  transform: scale(0.92);
}

.icon-btn:disabled {
  opacity: 0.4;
}

.game-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.game-balance .icon {
  font-size: 15px;
}

.stage {
  position: relative;
  min-height: 252px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(255, 255, 255, 0.13), rgba(0, 0, 0, 0) 65%),
    linear-gradient(165deg, #121212, #0a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

.stage.shake {
  animation: stage-shake 0.45s ease;
}

@keyframes stage-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

.stage.explode::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(170, 170, 170, 0.45), transparent 65%);
  animation: explode-flash 0.65s ease forwards;
  pointer-events: none;
}

@keyframes explode-flash {
  from { opacity: 0.9; }
  to { opacity: 0; }
}


.crash-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.crash-rocket {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.5);
  animation: rocket-float 3.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}

@keyframes rocket-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-5px, 6px) rotate(-4deg); }
}

.stage.explode .crash-rocket {
  animation: none;
  transform: translate(30px, -40px) rotate(28deg) scale(0.7);
  opacity: 0.4;
}

.crash-mult {
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ffffff, #ffffff 55%, #8a8a8a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
  transition: transform 0.15s ease;
}

.crash-mult.crashed {
  background: linear-gradient(135deg, #bdbdbd, #8a8a8a 60%, #4a4a4a);
  -webkit-background-clip: text;
  background-clip: text;
  animation: crash-pop 0.35s ease;
}

@keyframes crash-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.crash-pot {
  font-size: 13px;
  color: var(--muted);
}

.crash-pot b {
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.crash-bar {
  width: 100%;
  max-width: 260px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  margin-top: 12px;
  overflow: hidden;
}

.crash-bar > div {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, #ffffff 60%, #8a8a8a);
  transition: width 0.12s linear;
}

.crash-state {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}


.dice-stage,
.coin-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.die3d {
  width: 120px;
  height: 120px;
  color: var(--gold);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 16px 30px rgba(255, 255, 255, 0.18));
  will-change: transform;
}

.dice-svg {
  width: 112px;
  height: 112px;
  display: block;
}

.dice-svg.mini {
  width: 26px;
  height: 26px;
}

.stage-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}


.coin-stage {
  perspective: 900px;
}

.coin3d {
  position: relative;
  width: 132px;
  height: 132px;
  transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(0.25, 0.8, 0.3, 1);
  will-change: transform;
}

.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  color: #101010;
  background: radial-gradient(circle at 32% 26%, #ffffff, #d4d4d4 62%, #8a8a8a);
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 18px 40px rgba(255, 255, 255, 0.22),
    inset 0 -6px 18px rgba(0, 0, 0, 0.22),
    inset 0 6px 14px rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.coin-face .icon {
  width: 46px;
  height: 46px;
}

.coin-face.tails {
  transform: rotateY(180deg);
  background: radial-gradient(circle at 32% 26%, #f2f2f2, #bfbfbf 62%, #7a7a7a);
}


.roulette-stage {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.roulette-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  font-size: 196px;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.roulette-spinner.spinning {
  animation: spin-center 1.1s linear infinite;
}

@keyframes spin-center {
  from { transform: translate(-50%, -58%) rotate(0deg); }
  to { transform: translate(-50%, -58%) rotate(360deg); }
}

.roulette-num {
  position: relative;
  z-index: 2;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: #1a1a1a;
  border: 4px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.roulette-num.red {
  background: linear-gradient(160deg, #d4d4d4, #3d3d3d);
  border-color: rgba(170, 170, 170, 0.55);
}

.roulette-num.black {
  background: linear-gradient(160deg, #1d1d1d, #0a0a0a);
  border-color: rgba(255, 255, 255, 0.18);
}

.roulette-num.green {
  background: linear-gradient(160deg, #8a8a8a, #5a5a5a);
  border-color: rgba(255, 255, 255, 0.55);
}


.mines-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mines-head {
  text-align: center;
}

.mines-mult {
  font-size: 34px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  line-height: 1.1;
}

.mines-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.mines-sub b {
  color: var(--text);
}

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 300px;
}

.mine-tile {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #181818, #121212);
  color: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
  position: relative;
}

.mine-tile::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: opacity 0.15s ease;
}

.mine-tile:active {
  transform: scale(0.94);
}

.mine-tile.open {
  animation: tile-pop 0.26s ease;
  cursor: default;
}

.mine-tile.open::after {
  opacity: 0;
}

.mine-tile.safe {
  color: var(--green);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.mine-tile.boom,
.mine-tile.revealed-mine {
  color: var(--red);
  background: rgba(170, 170, 170, 0.14);
  border-color: rgba(170, 170, 170, 0.4);
}

.mine-tile.boom {
  animation: bomb-pop 0.4s ease;
}

.mine-tile .icon {
  width: 58%;
  height: 58%;
}

.mines-grid:not(.active) .mine-tile {
  cursor: default;
  opacity: 0.85;
}

@keyframes tile-pop {
  0% { transform: scale(0.8); }
  60% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@keyframes bomb-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18) rotate(-6deg); }
  70% { transform: scale(0.96) rotate(4deg); }
  100% { transform: scale(1); }
}


.wheel-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.wheel-pointer {
  position: relative;
  z-index: 4;
  font-size: 22px;
  color: var(--gold);
  transform: translateY(6px);
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.4));
}

.wheel-wrap {
  position: relative;
  width: 232px;
  height: 232px;
}

.wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  will-change: transform;
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.16),
    inset 0 0 22px rgba(0, 0, 0, 0.6),
    0 22px 48px rgba(0, 0, 0, 0.45);
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 52%);
  pointer-events: none;
}

.wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 10px;
  font-weight: 900;
  color: #f5f5f5;
  letter-spacing: 0.02em;
  padding: 1px 4px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  white-space: nowrap;
}

.wheel-label.zero {
  color: var(--muted);
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 20px;
  background: #121212;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.wheel-mult {
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-height: 28px;
}

.wheel-mult.win { color: var(--green); }
.wheel-mult.lose { color: var(--red); }

.wheel-mult.spinning {
  color: var(--gold);
  animation: pulse 0.9s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}


.bet-box {
  margin-top: 14px;
}

.bet-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.bet-label b {
  color: var(--text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #161616;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease,
    transform 0.12s ease;
}

.chip.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}

.chip:active {
  transform: scale(0.95);
}

.chip:disabled {
  opacity: 0.3;
}

.controls {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  min-width: 0;
}

.controls > * {
  min-width: 0;
  max-width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--line);
  transition: transform 0.12s ease, opacity 0.15s ease, box-shadow 0.2s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff, var(--gold) 45%, var(--gold-2));
  color: #050505;
  border: 0;
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.32);
}

.btn-lg {
  padding: 16px;
  font-size: 17px;
  border-radius: 17px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(170, 170, 170, 0.35);
  color: #bdbdbd;
  width: 100%;
  margin-top: 10px;
}

.dice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dice-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #161616;
  color: var(--text);
  font-size: 24px;
  transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}

.pick-btn small {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 700;
}

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

.pick-btn:disabled {
  opacity: 0.4;
}

.pick-btn.wide {
  flex-direction: row;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  gap: 7px;
  padding: 13px 10px;
}

.pick-red { border-color: rgba(170, 170, 170, 0.3); }
.pick-black { border-color: rgba(255, 255, 255, 0.16); }
.pick-green { border-color: rgba(255, 255, 255, 0.35); }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
  box-shadow: 0 0 8px currentColor;
}

.dot-red { background: #d4d4d4; color: #d4d4d4; }
.dot-black { background: #1d1d1d; color: #1d1d1d; border: 1px solid rgba(255, 255, 255, 0.3); }
.dot-green { background: #8a8a8a; color: #8a8a8a; }

.mines-setup {
  display: flex;
  gap: 6px;
}

.mines-setup .chip {
  flex: 1;
  padding: 9px 6px;
  font-size: 12px;
  text-align: center;
}


.result {
  margin-top: 13px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #101010;
  animation: result-pop 0.22s ease;
}

@keyframes result-pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.result.win {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.result.lose {
  border-color: rgba(170, 170, 170, 0.35);
  background: rgba(170, 170, 170, 0.07);
}

.result-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 3px;
}

.result-title .icon {
  width: 19px;
  height: 19px;
}

.result.win .result-title { color: var(--green); }
.result.lose .result-title { color: var(--red); }

.result-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.fair {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05225);
  padding: 11px 14px;
  font-size: 12px;
}

.fair summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
  list-style: none;
}

.fair summary::-webkit-details-marker {
  display: none;
}

.fair-details {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  word-break: break-all;
}

.fair-details code {
  color: var(--gold);
  font-size: 10.5px;
}

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


.panel {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05225);
  padding: 18px;
}

.panel h3 {
  margin: 18px 0 6px;
  font-size: 15px;
}

.panel h3:first-child {
  margin-top: 0;
}

.panel p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rule-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.rule-list .icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  margin-top: 1px;
}

.rule-list b {
  color: var(--text);
}


.toast {
  position: fixed;
  left: 50%;
  bottom: calc(94px + var(--safe-bottom));
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  background: #1a1a1a;
  border: 1px solid var(--line);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  max-width: min(90%, 420px);
  text-align: center;
  z-index: 60;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: rgba(8, 8, 8, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  z-index: 40;
}

.bottom-nav button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font-size: 20px;
  transition: color 0.15s ease, background 0.15s ease;
}

.bottom-nav button span {
  font-size: 10.5px;
  font-weight: 700;
}

.bottom-nav button.active {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.bottom-nav button.active .icon {
  animation: icon-pop 0.35s ease;
}

@keyframes icon-pop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}


.balance-pill .icon {
  font-size: 15px;
}

.task-head-count {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-variant-numeric: tabular-nums;
}

.nav-badge {
  position: absolute;
  top: 1px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 800;
  border: 2px solid rgba(8, 8, 8, 0.9);
}

.balance-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0) 58%),
    radial-gradient(80% 120% at 0% 100%, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0) 60%),
    #101010;
}

.balance-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.balance-big {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 34px;
  font-weight: 900;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.balance-big .icon {
  font-size: 27px;
}

.balance-usd {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.balance-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.balance-actions .btn {
  flex: 1;
  padding: 12px 10px;
  font-size: 13px;
}

.btn-bordered {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--gold);
}

.wallet-note {
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

.tasks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 2px 10px;
}

.tasks-head h3 {
  margin: 0;
  font-size: 14px;
}

.tasks-head span {
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.op-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.057);
  color: var(--text);
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.op-row:active {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.0855);
}

.op-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.op-title .icon {
  font-size: 16px;
  color: var(--gold);
}

.op-meta {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
}

.op-right {
  text-align: right;
  flex: none;
}

.op-amount {
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.op-status {
  font-size: 10px;
  color: var(--gold);
  margin-top: 2px;
}

.panel.slim {
  padding: 4px 16px;
}

.limit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.limit-row:last-child {
  border-bottom: 0;
}

.limit-row b {
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}

.tasks-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12));
  margin-bottom: 4px;
}

.tasks-summary div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tasks-summary b {
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
}

.tasks-summary span {
  font-size: 10.5px;
  color: var(--muted);
}

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

.task-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.0589);
  margin-bottom: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.task-card.ready {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 26px rgba(255, 255, 255, 0.06);
}

.task-ico {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.task-main {
  flex: 1;
  min-width: 0;
}

.task-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.task-reward {
  color: var(--gold);
  font-size: 11.5px;
  white-space: nowrap;
}

.task-desc {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0 8px;
  line-height: 1.3;
}

.task-bar,
.xp-bar,
.achievement-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.task-bar i,
.xp-bar i,
.achievement-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transition: width 0.3s ease;
}

.task-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.task-action {
  align-self: center;
  flex: none;
}

.task-claim {
  min-width: 74px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  transition: transform 0.12s ease;
}

.task-claim:active {
  transform: scale(0.95);
}

.task-claim:disabled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.task-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}

.task-done .icon {
  font-size: 12px;
}

.profile-card {
  position: relative;
  text-align: center;
  padding: 22px 18px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 255, 255, 0.22), rgba(15, 22, 38, 0) 65%),
    #101010;
}

.avatar {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 900;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.avatar .lvl {
  position: absolute;
  right: -6px;
  bottom: -4px;
  min-width: 26px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  background: var(--gold);
  color: #050505;
  border: 2px solid #101010;
}

.profile-name {
  margin: 0;
  font-size: 20px;
}

.profile-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.xp {
  margin-top: 14px;
  text-align: left;
}

.xp-text {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}

.stats-2 {
  grid-template-columns: repeat(2, 1fr);
  margin: 12px 0;
}

.profile-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-actions .btn {
  flex: 1;
  padding: 11px 8px;
  font-size: 12.5px;
}

.achievement-bar {
  margin-bottom: 4px;
}

.hist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05225);
  margin-bottom: 7px;
}

.hist-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 15px;
}

.hist-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hist-main b {
  font-size: 12.5px;
}

.hist-main span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

.hist-amt {
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hist-amt.plus {
  color: var(--green);
}

.hist-amt.minus {
  color: var(--red);
}

.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 12px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
}

.empty .icon {
  font-size: 16px;
  opacity: 0.8;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: min(100%, 480px);
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #161616, #0c0c0c);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: sheet-in 0.26s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes sheet-in {
  from { transform: translateY(28px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.modal-head h3 {
  margin: 0;
  font-size: 18px;
}

.modal-card .btn-lg {
  width: 100%;
}

.modal-note {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

.field {
  margin-bottom: 14px;
}

.field > label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 7px;
}

.methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.0665);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.method .icon {
  font-size: 20px;
}

.method.active {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 9px;
}

.amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.0665);
  color: var(--text);
}

.amount b {
  font-size: 13px;
}

.amount span {
  font-size: 9px;
  color: var(--muted);
}

.amount.active {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.amount.active b {
  color: var(--gold);
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  outline: none;
  -webkit-appearance: none;
}

.input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.field-hint {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

.deposit-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.deposit-summary b {
  color: var(--green);
  font-size: 15px;
}

.invoice {
  text-align: center;
}

.invoice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.inv-method {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.inv-method .icon {
  color: var(--gold);
  font-size: 16px;
}

.invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-size: 9.5px;
  font-weight: 700;
}

.invoice-status .icon {
  font-size: 10px;
}

.inv-amount {
  font-size: 30px;
  font-weight: 900;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.inv-amount small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.inv-usd {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.qr {
  width: 180px;
  height: 180px;
  margin: 0 auto 10px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
}

.qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

.addr {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  margin-bottom: 10px;
}

.addr code {
  flex: 1;
  font-size: 10px;
  color: var(--text);
  word-break: break-all;
  text-align: left;
}

.copy-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--gold);
  font-size: 14px;
}

.inv-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
}

.inv-timer .icon {
  font-size: 12px;
}

.invoice .btn-bordered {
  width: 100%;
}

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 55;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: 34%;
  border-radius: 2px;
  animation: confetti-fall 1.5s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), 440px) rotate(var(--rot));
  }
}

@media (min-width: 560px) {
  .app {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: rgba(8, 8, 8, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .view:not([hidden]) {
    animation: none;
  }
}

/* Monochrome glass theme */
.app {
  background: rgba(255, 255, 255, 0.012);
}

.brand-icon,
.balance-pill,
.icon-btn,
.chip,
.pick-btn,
.panel,
.stage,
.hero,
.game-card,
.stat,
.balance-card,
.profile-card,
.task-card,
.tasks-summary,
.op-row,
.hist-row,
.result,
.modal-card,
.bottom-nav,
.number-grid .num-btn,
.outside-btn,
.reel-window,
.admin-box {
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
}

.brand-icon {
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-title {
  color: #fff;
}

.balance-pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.25);
}

.balance-pill:active {
  background: rgba(255, 255, 255, 0.12);
}

.balance-icon,
.game-balance,
.game-balance .icon {
  color: #fff;
}

.hero {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, 0.13), rgba(5, 5, 5, 0) 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(255, 255, 255, 0.07), rgba(5, 5, 5, 0) 55%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.28);
}

.hero-badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.game-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 14px 30px rgba(0, 0, 0, 0.22);
}

.g-crash .game-ico,
.g-wheel .game-ico,
.g-mines .game-ico,
.g-dice .game-ico,
.g-roulette .game-ico,
.g-coin .game-ico,
.g-case .game-ico,
.g-upgrade .game-ico,
.g-jackpot .game-ico {
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.13);
}

.stage {
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(255, 255, 255, 0.09), rgba(5, 5, 5, 0) 65%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 18px 44px rgba(0, 0, 0, 0.28);
}

.panel,
.stat,
.result,
.task-card,
.tasks-summary,
.op-row,
.hist-row {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.chip,
.pick-btn,
.num-btn,
.outside-btn {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}

.chip.active,
.num-btn:active,
.outside-btn:active,
.pick-btn:active {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.result.win {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.075);
}

.result.lose {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.btn {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff, #e6e6e6 45%, #b8b8b8);
  color: #050505;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.16);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.24);
}

.btn-bordered {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.bottom-nav {
  background: rgba(5, 5, 5, 0.68);
  border-top-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.35);
}

.bottom-nav button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal {
  background: rgba(0, 0, 0, 0.62);
}

.modal-card {
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.92), rgba(10, 10, 10, 0.94));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.balance-card {
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(255, 255, 255, 0.16), rgba(5, 5, 5, 0) 58%),
    radial-gradient(80% 120% at 0% 100%, rgba(255, 255, 255, 0.055), rgba(5, 5, 5, 0) 60%),
    rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.17);
}

.balance-big {
  color: #fff;
}

.profile-card {
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 255, 255, 0.14), rgba(15, 15, 15, 0) 65%),
    rgba(255, 255, 255, 0.035);
}

.avatar {
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.24);
}

.avatar .lvl {
  background: #fff;
  color: #050505;
  border-color: #111;
}

.tasks-summary {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
  border-color: rgba(255, 255, 255, 0.16);
}

.tasks-summary b,
.task-reward,
.task-claim,
.task-head-count {
  color: #fff;
}

.task-card.ready {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 30px rgba(255, 255, 255, 0.04);
}

.task-ico {
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.14);
}

.task-claim {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.11);
}

.task-claim:disabled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.task-done {
  color: #fff;
}

.task-bar i,
.xp-bar i,
.achievement-bar i {
  background: linear-gradient(90deg, #6f6f6f, #ffffff);
}

.op-title .icon,
.money,
.mines-mult,
.crash-pot b,
.balance-big,
.inv-amount,
.deposit-summary b,
.op-amount {
  color: #fff;
}

.op-amount,
.hist-amt.plus {
  color: #ffffff;
}

.hist-amt.minus {
  color: #8a8a8a;
}

.dot-red { background: #ffffff; color: #ffffff; }
.dot-black { background: #151515; color: #151515; border-color: rgba(255, 255, 255, 0.4); }
.dot-green { background: #8a8a8a; color: #8a8a8a; }

.pick-red,
.pick-green { border-color: rgba(255, 255, 255, 0.18); }
.pick-black { border-color: rgba(255, 255, 255, 0.1); }

.wheel-pointer {
  color: #fff;
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.25));
}

.wheel {
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.12),
    inset 0 0 24px rgba(0, 0, 0, 0.7),
    0 24px 54px rgba(0, 0, 0, 0.5);
}

.wheel-label {
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wheel-hub {
  color: #fff;
  background: #0c0c0c;
  border-color: rgba(255, 255, 255, 0.28);
}

.wheel-mult.win { color: #fff; }
.wheel-mult.lose { color: #8a8a8a; }
.wheel-mult.spinning { color: #fff; }

.crash-mult {
  font-size: 50px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.75));
  background: linear-gradient(135deg, #ffffff, #d6d6d6 55%, #8a8a8a);
  -webkit-background-clip: text;
  background-clip: text;
}

.crash-mult.crashed {
  background: linear-gradient(135deg, #d4d4d4, #8a8a8a 60%, #3d3d3d);
  -webkit-background-clip: text;
  background-clip: text;
}

.coin-face {
  color: #101010;
  background: radial-gradient(circle at 32% 26%, #ffffff, #d4d4d4 62%, #8a8a8a);
  box-shadow:
    0 18px 40px rgba(255, 255, 255, 0.12),
    inset 0 -6px 18px rgba(0, 0, 0, 0.2),
    inset 0 6px 14px rgba(255, 255, 255, 0.4);
}

.coin-face.tails {
  background: radial-gradient(circle at 32% 26%, #f2f2f2, #bfbfbf 62%, #7a7a7a);
}

.die3d {
  color: #fff;
  filter: drop-shadow(0 16px 30px rgba(255, 255, 255, 0.12));
}

/* Crash graph */
.crash-stage {
  position: relative;
  display: block;
  width: 100%;
  min-height: 238px;
  padding: 0;
}

.crash-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
}

.crash-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
  padding: 22px;
  text-align: center;
}

.crash-marker {
  position: absolute;
  left: 22px;
  top: calc(100% - 22px);
  z-index: 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  transform: translate(-50%, -50%) rotate(32deg);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  transition: left 0.12s linear, top 0.12s linear, opacity 0.2s ease;
  pointer-events: none;
}

.crash-marker.crashed {
  opacity: 0.35;
  filter: none;
  transform: translate(-50%, -50%) rotate(60deg) scale(0.8);
}

.crash-state {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 3;
  margin: 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  pointer-events: none;
}

/* Roulette reel and number bets */
.roulette-stage {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 11px;
  padding: 14px 0 4px;
}

.reel-window {
  position: relative;
  width: 100%;
  height: 92px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 30px rgba(0, 0, 0, 0.35);
}

.reel-track {
  display: flex;
  height: 100%;
  align-items: stretch;
  will-change: transform;
}

.reel-cell {
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  color: #8a8a8a;
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease, background 0.2s ease;
}

.reel-cell.hit {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 0 26px rgba(255, 255, 255, 0.09);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
}

.reel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid #ffffff;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}

.reel-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52px;
  z-index: 3;
  pointer-events: none;
}

.reel-edge.left {
  left: 0;
  background: linear-gradient(90deg, #0b0b0b 10%, rgba(11, 11, 11, 0));
}

.reel-edge.right {
  right: 0;
  background: linear-gradient(-90deg, #0b0b0b 10%, rgba(11, 11, 11, 0));
}

.roulette-status {
  min-height: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
  margin-bottom: 9px;
}

.num-btn {
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: background 0.12s ease, transform 0.12s ease, border-color 0.12s ease;
}

.num-btn.zero {
  grid-column: span 9;
  height: 31px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.num-btn:active {
  transform: scale(0.94);
}

.num-btn:disabled {
  opacity: 0.4;
}

.outside-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.outside-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 2px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
}

.outside-btn b {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.outside-btn .dot {
  width: 8px;
  height: 8px;
  box-shadow: none;
}

/* Admin top-up */
.admin-box {
  margin-top: 14px;
  padding: 13px;
  border-radius: 15px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.modal-divider {
  margin: 16px 0 10px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-badge {
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-weight: 900;
}

.admin-desc {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 9px;
}

.admin-box .btn {
  width: 100%;
  padding: 11px;
  font-size: 13px;
}

@media (max-width: 360px) {
  .num-btn {
    height: 31px;
    font-size: 11px;
  }
  .outside-btn {
    font-size: 8px;
  }
}

/* === Новые фичи: лента, инвентарь, кейсы, апгрейд, джекпот === */

.live-wrap {
  margin-top: 14px;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.inv-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-align: left;
}

.inv-name {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
}

.inv-price {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}

/* NFT-подарки: бейджи редкости и залога */
.inv-card {
  flex-wrap: wrap;
}

.inv-tag {
  margin-top: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.inv-tag-escrow {
  color: #ffcf6b;
  border-color: rgba(255, 207, 107, 0.4);
  background: rgba(255, 207, 107, 0.12);
}

.inv-locked {
  opacity: 0.92;
}

.rarity-common {
  color: #c7ccd6;
}

.rarity-uncommon {
  color: #6ee7a8;
}

.rarity-rare {
  color: #63b3ff;
}

.rarity-epic {
  color: #c084fc;
}

.rarity-legendary {
  color: #ffb545;
}

.nft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-align: left;
}

.nft-row:active {
  transform: scale(0.99);
}

.modal-error {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.12);
  color: #ff9b9b;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 320px;
  overflow-y: auto;
  margin: 10px 0;
}

.item-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 250px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.09), transparent 62%),
    linear-gradient(180deg, #1a1a1a, #0d0d0d);
}

.item-preview img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
}

.item-preview-icon {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: #f5f5f5;
}

.item-preview-icon .icon {
  width: 58px;
  height: 58px;
  opacity: 0.9;
  stroke-width: 1.35;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.item-preview-glyph {
  position: absolute;
  z-index: 0;
  font-size: 54px;
  line-height: 1;
  opacity: 0.34;
  filter: brightness(0) invert(1) drop-shadow(0 10px 26px rgba(0, 0, 0, 0.5));
}

.item-preview-glyph.big {
  position: static;
  opacity: 1;
  font-size: 66px;
}

.item-detail {
  padding: 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 10px;
}

.item-detail-name {
  font-size: 13px;
  font-weight: 800;
}

.item-detail-price {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
}

.case-reel-window {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0) 70%),
    rgba(255, 255, 255, 0.03);
  padding: 16px 0;
}

.case-reel-window::before,
.case-reel-window::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 34px;
  pointer-events: none;
}

.case-reel-window::before {
  left: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0));
}

.case-reel-window::after {
  right: 0;
  background: linear-gradient(270deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0));
}

.case-reel {
  display: flex;
  gap: 8px;
  padding: 0;
  will-change: transform;
}

.case-cell {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--cell-accent, var(--line));
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  color: var(--cell-accent, var(--text));
}

.case-cell-fallback {
  position: relative;
  z-index: 0;
  font-size: 30px;
  line-height: 1;
  opacity: 0.8;
}

.case-cell-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  border-radius: inherit;
  background: transparent;
  transform: scale(1.04);
  transform-origin: center;
}

.case-cell.zero {
  opacity: 0.35;
  border-color: var(--line);
}

.case-cell.gold {
  border-color: #fff;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.2),
    0 0 26px -2px var(--cell-accent, #fff);
  transform: translateY(-2px) scale(1.02);
}

.case-stage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.case-reels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.case-reels.multi .case-reel-window {
  padding: 8px 0;
}

.case-reels.multi .case-cell {
  width: 74px;
  height: 74px;
  border-radius: 13px;
}

.case-reels.multi[data-count="4"] .case-cell,
.case-reels.multi[data-count="5"] .case-cell {
  width: 66px;
  height: 66px;
}

/* --- Витрина кейсов: сетка карточек ------------------------------------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

/* Разделитель перед линейкой NFT-кейсов */
.case-sep {
  margin: 16px 0 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8b93b5;
}

/* NFT-кейсы: по одной карточке в ряд — подпись с коллекциями не влезает в половину */
.case-grid-nft {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 14px;
}

.case-grid-nft .case-card {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 12px 14px;
}

.case-grid-nft .case-card-emoji {
  font-size: 26px;
}

.case-grid-nft .case-card-name {
  flex: 1 1 auto;
  font-size: 15px;
}

/* Подпись с ценовым диапазоном коллекций — только у NFT-кейсов */
.case-card-tagline {
  display: block;
  flex: 1 1 100%;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.68);
}

.case-grid-nft .case-card-price {
  margin-top: 0;
}

.case-grid-nft .case-card-nft {
  order: 5;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 13px 11px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(150deg, var(--case-from, #1f2937), var(--case-to, #374151));
  color: #fff;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.case-card-glow {
  position: absolute;
  top: -46px;
  right: -30px;
  width: 114px;
  height: 114px;
  border-radius: 50%;
  background: var(--case-accent, #fff);
  opacity: 0.24;
  filter: blur(20px);
  pointer-events: none;
}

.case-card-emoji {
  font-size: 24px;
  line-height: 1.1;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

.case-card-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.case-card-mult {
  font-size: 11px;
  font-weight: 700;
  color: var(--case-accent, #fff);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.case-card-price {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 900;
}

.case-card-price::after {
  content: ' фишек';
  font-size: 10px;
  font-weight: 600;
  opacity: 0.72;
  margin-left: 2px;
}

.case-card-rtp {
  font-size: 10px;
  opacity: 0.66;
}

.case-card-nft {
  display: block;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.7;
}

.case-select {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-select-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.case-select-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.1px;
}

.case-select-sub {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.case-select-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 800;
  color: #d7d7d7;
}

.case-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.case-detail-title {
  font-size: 17px;
  font-weight: 900;
}

.case-detail-sub {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.case-detail-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 800;
  color: #d7d7d7;
}

.case-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-open-main {
  width: 100%;
}

.case-pool {
  margin-top: 2px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.case-pool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.case-pool-head span:last-child {
  font-size: 9.5px;
  font-weight: 700;
  opacity: 0.8;
  text-transform: none;
  letter-spacing: 0;
}

.case-pool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.case-pool-item {
  min-width: 0;
}

.case-pool-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  overflow: hidden;
}

.case-pool-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0.34;
}

.case-pool-fallback .icon {
  width: 34px;
  height: 34px;
}

.case-pool-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transform: scale(1.04);
  transform-origin: center;
}

.case-pool-chance {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 1;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.case-pool-name {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
  line-height: 1.2;
  color: var(--muted);
}

.case-multi {
  padding: 11px 12px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.case-multi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.case-multi-head b {
  font-size: 14px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.case-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.case-count {
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.case-count.active {
  border-color: var(--text);
  background: var(--text);
  color: #050505;
  box-shadow: 0 6px 18px -8px rgba(255, 255, 255, 0.7);
}

.case-open-sticky {
  position: sticky;
  bottom: calc(76px + var(--safe-bottom, 0px));
  z-index: 15;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.55);
}

.case-spin-ui {
  display: grid;
  gap: 10px;
}

.case-spin-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
  font-size: 12px;
  color: var(--muted);
}

.case-spin-counter {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.case-spin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.case-speed-btn {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
}

.case-speed-btn:disabled {
  opacity: 0.65;
}

.case-back-btn {
  color: var(--muted);
}

#caseSpeed[hidden] + .case-back-btn {
  grid-column: 1 / -1;
}

.case-result-list {
  display: grid;
  gap: 7px;
  margin-top: 11px;
  max-height: 210px;
  overflow-y: auto;
}

.case-result-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.case-result-thumb {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.case-result-info {
  flex: 1;
  min-width: 0;
}

.case-result-info b,
.case-result-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-result-info b {
  font-size: 12px;
}

.case-result-info span {
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}

.case-result-row > strong {
  flex: 0 0 auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* Выбор кейса и прокрутка — два разных состояния одного экрана */
#view-game.case-select-mode .stage {
  display: none;
}

#view-game.case-select-mode .case-open-sticky {
  bottom: calc(76px + var(--safe-bottom, 0px));
}

#view-game.case-spin-mode .stage {
  min-height: 0;
  padding: 14px;
  align-items: stretch;
}

.case-card.active {
  border-color: var(--case-accent, #fff);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px var(--case-accent, #fff), 0 0 0 1px var(--case-accent, #fff) inset;
}

.case-card:active {
  transform: translateY(0) scale(0.985);
}

@media (max-width: 360px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* Каталог NFT-подарков: превью с CDN Fragment + цена */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 2px;
}

.nft-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-align: left;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.nft-card:active {
  transform: scale(0.975);
  border-color: var(--accent, #e8b44a);
}

.nft-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.nft-card-name {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nft-card-price {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent, #e8b44a);
}

.nft-card-market {
  font-weight: 600;
  opacity: 0.6;
}

/* Превью подарка в карточке оценки */
.nft-hero {
  display: flex;
  justify-content: center;
  padding: 4px 0 12px;
}

.nft-hero img {
  width: 168px;
  height: 168px;
  object-fit: contain;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 35%, rgba(232, 180, 74, 0.2), transparent 70%);
}

@media (max-width: 360px) {
  .nft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.upgrade-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.upgrade-vs {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.upgrade-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.upgrade-side .icon {
  width: 22px;
  height: 22px;
}

.upgrade-arrow .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.upgrade-chance {
  font-size: 15px;
  font-weight: 900;
}

/* Апгрейд предметов: колесо, инвентарь и пресеты */
.upg-stage {
  width: 100%;
  min-width: 0;
  gap: 6px;
  padding: 2px 0;
}

.upg-wheel {
  position: relative;
  width: min(200px, 58vw);
  aspect-ratio: 1;
  flex: none;
  margin: 2px auto 0;
}

.upg-wheel-ticks {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: repeating-conic-gradient(from -0.5deg, rgba(255, 255, 255, 0.24) 0 1deg, transparent 1deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 0 88%, #000 89%);
  mask: radial-gradient(circle, transparent 0 88%, #000 89%);
  opacity: 0.72;
}

.upg-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.upg-ring-track,
.upg-ring-fill {
  fill: none;
  stroke-width: 11;
}

.upg-ring-track {
  stroke: rgba(255, 255, 255, 0.08);
}

.upg-ring-fill {
  stroke: #f4f4f4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.32));
  transition: stroke-dashoffset 0.35s ease;
}

.upg-wheel-core {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.upg-wheel-core b {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.upg-wheel-core span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.upg-wheel-core small {
  margin-top: 4px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.upg-pointer-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.upg-wheel-pointer {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  border-top: 10px solid var(--gold);
  filter: drop-shadow(0 0 7px rgba(255, 215, 120, 0.35));
}

.upg-wheel.spinning .upg-pointer-orbit {
  animation: upg-pointer-orbit-spin 3.8s cubic-bezier(0.08, 0.72, 0.1, 1) both;
  will-change: transform;
}

.upg-wheel.spinning .upg-ring-fill {
  animation: upg-ring-glow 0.5s ease-in-out infinite alternate;
}

.upg-wheel.spinning .upg-wheel-core {
  animation: upg-core-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes upg-ring-glow {
  from { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.25)); }
  to { filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.7)); }
}

@keyframes upg-core-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

@keyframes upg-pointer-orbit-spin {
  from { transform: rotate(var(--upg-spin-from, 0deg)); }
  to { transform: rotate(var(--upg-spin-end, 1440deg)); }
}

.upg-items {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.upg-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  text-align: left;
}

.upg-item-source {
  cursor: pointer;
}

.upg-item-source:active {
  transform: scale(0.99);
}

.upg-item-target {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.upg-item .item-preview {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 11px;
}

.upg-item .item-preview img {
  padding: 0;
  object-fit: cover;
}

.upg-item .item-preview-glyph {
  font-size: 26px;
  opacity: 1;
}

.upg-item .item-preview-icon .icon {
  width: 26px;
  height: 26px;
}

.upg-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upg-item-info b {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.18;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.upg-item-info span {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
}

.upg-arrow {
  display: flex;
  align-items: center;
  color: var(--muted);
}

.upg-arrow .icon {
  width: 18px;
  height: 18px;
}

.upg-controls {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.upg-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.upg-kicker,
.upg-preset-label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.upg-inventory {
  display: flex;
  gap: 7px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.upg-inventory::-webkit-scrollbar {
  display: none;
}

.upg-inv {
  flex: 0 0 116px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  text-align: left;
}

.upg-inv.active {
  border-color: rgba(255, 215, 120, 0.7);
  background: rgba(255, 215, 120, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 120, 0.18);
}

.upg-inv .item-preview {
  width: 100%;
  height: 104px;
  margin: 0;
  border-radius: 9px;
}

.upg-inv .item-preview img {
  padding: 0;
  object-fit: cover;
}

.upg-inv .item-preview-glyph {
  font-size: 30px;
  opacity: 1;
}

.upg-inv .item-preview-icon .icon {
  width: 31px;
  height: 31px;
}

.upg-inv-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.upg-inv-price {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
}

.upg-empty {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 11px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.upg-empty .icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.upg-presets {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.upg-preset-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.upg-preset-label {
  flex: 0 0 62px;
}

.upg-chances,
.upg-mults {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.upg-preset {
  padding: 8px 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 10.5px;
  font-weight: 800;
}

.upg-preset.active {
  border-color: rgba(255, 215, 120, 0.7);
  color: var(--gold);
  background: rgba(255, 215, 120, 0.1);
}

.upg-go {
  margin-top: 2px;
}

@media (max-width: 360px) {
  .upg-wheel {
    width: 180px;
  }
  .upg-item .item-preview {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }
  .upg-item-info b {
    font-size: 9.5px;
  }
  .upg-preset-label {
    flex-basis: 54px;
  }
}

.jackpot-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.jackpot-pot {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.jackpot-entries {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.jpot-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 11px;
}

.jpot-entry b {
  font-size: 10.5px;
  color: var(--muted);
}

.jackpot-timer {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}


/* --- Витрина кейсов v2: коллаж призов и яркие карточки ------------------- */

.case-card {
  height: 220px;
  display: block;
  padding: 0;
  border-radius: 20px;
  background:
    radial-gradient(80% 75% at 85% 5%, rgba(255, 255, 255, 0.24), transparent 55%),
    linear-gradient(155deg, var(--case-from, #1f2937), var(--case-to, #374151));
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%);
  pointer-events: none;
}

.case-card-glow {
  top: -54px;
  right: -48px;
  width: 158px;
  height: 158px;
  opacity: 0.5;
  filter: blur(22px);
}

.case-card-art {
  position: absolute;
  inset: 0 0 31% 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.case-card-emoji {
  position: absolute;
  right: 4px;
  bottom: -4px;
  z-index: 0;
  font-size: 64px;
  line-height: 1;
  opacity: 0.24;
  filter: grayscale(1) brightness(2);
}

.case-art-img {
  position: absolute;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
  -webkit-mask-image: radial-gradient(circle at 50% 47%, #000 64%, transparent 88%);
  mask-image: radial-gradient(circle at 50% 47%, #000 64%, transparent 88%);
}

.case-art-img.a {
  z-index: 3;
  top: -1%;
  right: -3%;
  width: 65%;
  transform: rotate(7deg);
}

.case-art-img.b {
  z-index: 2;
  top: 14%;
  left: -7%;
  width: 52%;
  transform: rotate(-11deg);
}

.case-art-img.c {
  z-index: 1;
  top: 33%;
  right: 19%;
  width: 38%;
  opacity: 0.9;
  transform: rotate(-4deg);
}

.case-card-top {
  position: absolute;
  top: 8px;
  right: 8px;
  left: 8px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  pointer-events: none;
}

.case-card-badge,
.case-card-rtp {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.case-card-rtp {
  font-size: 8.5px;
  color: var(--case-accent, #fff);
  background: rgba(0, 0, 0, 0.45);
}

.case-card-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 30px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52) 28%, rgba(0, 0, 0, 0.72));
}

.case-card-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.05px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-card-tagline {
  display: -webkit-box;
  min-height: 23px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.case-card-price {
  margin-top: 3px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.case-card-price::after {
  content: ' фишек';
  margin-left: 2px;
  font-size: 8.5px;
  font-weight: 700;
  opacity: 0.7;
}

.case-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.case-card-open {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.case-card-open .icon {
  width: 11px;
  height: 11px;
  transform: rotate(-90deg);
}

.case-card.active {
  border-color: var(--case-accent, #fff);
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px -12px var(--case-accent, #fff),
    0 0 0 1px var(--case-accent, #fff) inset;
}

@media (max-width: 360px) {
  .case-card {
    height: 236px;
  }

  .case-card-art {
    inset: 0 0 34% 0;
  }

  .case-art-img.a {
    width: 58%;
  }
}

/* --- Home v2: компактная лента и игровые превью ------------------------- */

#homeHero[hidden] + .stats {
  margin-top: 4px;
}

.section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 10px;
}

.section-row .section-title {
  margin: 0;
}

.section-note {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.home-live {
  margin-top: 16px;
}

.home-live .tasks-head {
  margin-bottom: 8px;
}

.live-feed.compact {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 3px 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.032);
  scroll-snap-type: x proximity;
  scroll-padding-left: 3px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.live-feed.compact::-webkit-scrollbar {
  display: none;
}

.live-card {
  flex: 0 0 96px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  scroll-snap-align: start;
}

.live-card-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.live-card-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0.3;
}

.live-card-fallback .icon {
  width: 28px;
  height: 28px;
}

.live-card-price {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.live-card-name {
  overflow: hidden;
  padding: 0 1px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-card-gift {
  overflow: hidden;
  padding: 0 1px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-card.mine {
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 18px -10px rgba(255, 255, 255, 0.6);
}

.live-card.mine .live-card-name {
  color: #fff;
}

.live-card.enter {
  animation: live-card-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes live-card-in {
  from {
    opacity: 0;
    transform: translateX(-14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.games {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.game-card {
  --art-a: #343434;
  --art-b: #111;
  --art-glow: rgba(255, 255, 255, 0.24);
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 0.79;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #111;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 12px 26px rgba(0, 0, 0, 0.28);
}

.game-card:active {
  transform: scale(0.965);
}

.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16), transparent 35%);
}

.game-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(75% 58% at 50% 31%, var(--art-glow) 0%, transparent 68%),
    linear-gradient(155deg, var(--art-a), var(--art-b));
}

.game-preview::before {
  content: '';
  position: absolute;
  inset: -28%;
  background: conic-gradient(from 215deg, transparent 0 63%, rgba(255, 255, 255, 0.2) 76%, transparent 88%);
  opacity: 0.6;
  transform: rotate(-10deg);
}

.game-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.8;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.7px),
    radial-gradient(circle at 76% 17%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.7px),
    radial-gradient(circle at 84% 68%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.7px);
}

.game-ico {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 18px;
  color: #fff;
  background: rgba(4, 4, 4, 0.27);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: transform 0.2s ease;
}

.game-ico .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.45;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.42));
}

.game-card:active .game-ico {
  transform: scale(0.9) rotate(-5deg);
}

.game-badge {
  position: absolute;
  z-index: 4;
  top: 7px;
  left: 7px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.game-name {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  padding: 26px 9px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.g-crash {
  --art-a: #f2683b;
  --art-b: #471006;
  --art-glow: rgba(255, 180, 90, 0.58);
}

.g-crash .game-preview::before {
  inset: -24%;
  background: repeating-linear-gradient(118deg, transparent 0 13px, rgba(255, 255, 255, 0.2) 14px 15px, transparent 16px 30px);
  transform: rotate(-7deg);
}

.g-wheel {
  --art-a: #c9902f;
  --art-b: #3a2503;
  --art-glow: rgba(255, 201, 92, 0.62);
}

.g-wheel .game-preview::before,
.g-roulette .game-preview::before {
  inset: 14%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.3) 0 4deg, transparent 4deg 24deg);
  -webkit-mask: radial-gradient(circle, transparent 0 56%, #000 57% 70%, transparent 71%);
  mask: radial-gradient(circle, transparent 0 56%, #000 57% 70%, transparent 71%);
  opacity: 0.45;
  transform: none;
}

.g-mines {
  --art-a: #138b75;
  --art-b: #042c28;
  --art-glow: rgba(66, 255, 204, 0.45);
}

.g-mines .game-preview::before {
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 19px 19px;
  opacity: 0.18;
  transform: none;
}

.g-dice {
  --art-a: #298bd4;
  --art-b: #061b40;
  --art-glow: rgba(92, 190, 255, 0.55);
}

.g-dice .game-preview::before {
  inset: 11%;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 55%);
  transform: rotate(12deg);
}

.g-roulette {
  --art-a: #c24646;
  --art-b: #250505;
  --art-glow: rgba(255, 113, 113, 0.48);
}

.g-coin {
  --art-a: #c58a1d;
  --art-b: #3b2004;
  --art-glow: rgba(255, 210, 83, 0.62);
}

.g-coin .game-preview::before {
  inset: 13%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 50%, rgba(255, 255, 255, 0.23) 51% 53%, transparent 54% 61%, rgba(255, 255, 255, 0.15) 62% 64%, transparent 65%);
  opacity: 0.9;
  transform: none;
}

.g-case {
  --art-a: #1f9b79;
  --art-b: #06342a;
  --art-glow: rgba(229, 119, 255, 0.55);
}

.g-case .game-preview::before {
  inset: 10%;
  border-radius: 20px;
  background: radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.28), transparent 34%);
  transform: rotate(-8deg);
}

.g-upgrade {
  --art-a: #138d9b;
  --art-b: #062a31;
  --art-glow: rgba(67, 239, 255, 0.45);
}

.g-upgrade .game-preview::before {
  inset: 15%;
  background: linear-gradient(145deg, transparent 36%, rgba(255, 255, 255, 0.18) 37% 39%, transparent 40% 47%, rgba(255, 255, 255, 0.18) 48% 50%, transparent 51%);
  transform: rotate(8deg);
}

.g-jackpot {
  --art-a: #d3a01e;
  --art-b: #3a2400;
  --art-glow: rgba(255, 208, 77, 0.65);
}

.g-jackpot .game-preview::before {
  inset: 7%;
  background: repeating-conic-gradient(from 12deg, rgba(255, 255, 255, 0.28) 0 2deg, transparent 2deg 22deg);
  -webkit-mask: radial-gradient(circle, transparent 0 44%, #000 45%);
  mask: radial-gradient(circle, transparent 0 44%, #000 45%);
  opacity: 0.42;
  transform: none;
}

@media (max-width: 360px) {
  .games {
    gap: 6px;
  }

  .game-ico {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .game-ico .icon {
    width: 27px;
    height: 27px;
  }

  .game-name {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 11px;
  }

  .game-badge {
    top: 6px;
    left: 6px;
    font-size: 7.5px;
  }
}

/* --- Защита от огромных чисел в шапке, статах и операциях --------------- */

.balance-pill {
  min-width: 0;
  max-width: 62%;
}

#balance,
.walletBalanceTop,
.game-balance span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-balance {
  min-width: 0;
  max-width: 52%;
}

.balance-big {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-row,
.op-right,
.op-left {
  min-width: 0;
}

.op-amount {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.op-right {
  max-width: 54%;
}

.hist-amt,
.inv-amount {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === GRAILDROP: black gold, jade light, soft glass ====================== */

body {
  background:
    radial-gradient(95% 58% at 50% -12%, rgba(232, 180, 74, 0.34) 0%, rgba(8, 9, 7, 0) 64%),
    radial-gradient(65% 45% at 108% 22%, rgba(47, 214, 161, 0.12) 0%, rgba(8, 9, 7, 0) 62%),
    radial-gradient(75% 52% at -15% 72%, rgba(255, 191, 87, 0.12) 0%, rgba(8, 9, 7, 0) 66%),
    var(--bg);
}

.app {
  max-width: 540px;
}

.topbar {
  padding: calc(15px + var(--safe-top)) 18px 12px;
}

.brand {
  gap: 11px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #ffd98b 0%, #d99a32 48%, #6d4a13 100%);
  border: 1px solid rgba(255, 226, 166, 0.5);
  box-shadow: 0 9px 26px -8px rgba(232, 180, 74, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-title {
  color: #fff;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.brand-title span {
  color: var(--gold);
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: #a59d8b;
  font-size: 10.5px;
  font-weight: 600;
}

.online-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 214, 161, 0.1), 0 0 12px rgba(47, 214, 161, 0.9);
}

.balance-pill {
  padding: 10px 14px;
  border: 1px solid rgba(232, 180, 74, 0.34);
  color: #fff;
  background: linear-gradient(135deg, rgba(232, 180, 74, 0.24), rgba(47, 214, 161, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 10px 26px -14px rgba(232, 180, 74, 0.8);
}

.balance-pill:active {
  background: linear-gradient(135deg, rgba(232, 180, 74, 0.38), rgba(47, 214, 161, 0.14));
}

.balance-icon {
  color: #ffd98b;
}

.hero {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 19px 20px 15px;
  border-radius: 30px;
  border: 1px solid rgba(216, 189, 133, 0.25);
  background:
    radial-gradient(72% 105% at 105% -5%, rgba(255, 191, 87, 0.48) 0%, rgba(30, 24, 10, 0) 60%),
    radial-gradient(62% 88% at -10% 110%, rgba(47, 214, 161, 0.2) 0%, rgba(8, 14, 9, 0) 62%),
    linear-gradient(145deg, #1a160d 0%, #12100a 47%, #070705 100%);
  box-shadow: 0 34px 76px -34px rgba(232, 180, 74, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  isolation: isolate;
}

.hero::before {
  width: 290px;
  height: 290px;
  right: -100px;
  top: -125px;
  background: radial-gradient(circle, rgba(255, 191, 87, 0.36) 0%, rgba(255, 191, 87, 0) 67%);
  filter: blur(3px);
  animation: hero-orbit 11s ease-in-out infinite;
}

.hero::after {
  width: 230px;
  height: 230px;
  left: -120px;
  bottom: -135px;
  background: radial-gradient(circle, rgba(47, 214, 161, 0.21) 0%, rgba(47, 214, 161, 0) 68%);
  animation: hero-orbit 14s ease-in-out infinite reverse;
}

@keyframes hero-orbit {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-13px, 12px) scale(1.08); }
}

.hero > .hero-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0.35;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.65px, transparent 0.8px);
  background-size: 13px 13px;
  -webkit-mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.1) 10%, #000 100%);
  mask-image: linear-gradient(125deg, rgba(0, 0, 0, 0.1) 10%, #000 100%);
}

.hero > .hero-art {
  position: absolute;
  top: 10px;
  right: -2px;
  z-index: 1;
  width: 47%;
  height: 210px;
  pointer-events: none;
}

.hero-halo {
  position: absolute;
  top: 9px;
  right: 0;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 139, 0.42) 0%, rgba(232, 180, 74, 0.14) 46%, transparent 70%);
  filter: blur(8px);
}

.hero-nft-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 11px;
  border-radius: 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}

.hero-nft-card::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  right: -22px;
  top: -25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  filter: blur(13px);
}

.hero-nft-card .icon {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  color: #fff;
  stroke-width: 1.5;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.35));
}

.hero-nft-card b {
  margin-top: auto;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.hero-nft-card i {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.hero-nft-card.n1 {
  top: 7px;
  right: 17px;
  width: 86px;
  height: 112px;
  background: linear-gradient(155deg, rgba(255, 221, 150, 0.82), rgba(154, 94, 20, 0.92));
  transform: rotate(7deg);
  animation: hero-card-float 6.5s ease-in-out infinite;
}

.hero-nft-card.n2 {
  top: 94px;
  right: 58px;
  left: auto;
  width: 65px;
  height: 87px;
  background: linear-gradient(155deg, rgba(87, 239, 195, 0.56), rgba(12, 104, 78, 0.8));
  transform: rotate(-9deg);
  animation: hero-card-float 7.8s ease-in-out infinite reverse;
}

.hero-nft-card.n3 {
  right: 5px;
  top: 132px;
  width: 69px;
  height: 78px;
  background: linear-gradient(155deg, rgba(255, 191, 105, 0.54), rgba(151, 72, 26, 0.74));
  transform: rotate(4deg);
  animation: hero-card-float 9s ease-in-out infinite;
}

@keyframes hero-card-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

.hero-slides {
  position: relative;
  z-index: 3;
  display: grid;
  width: 75%;
  min-height: 158px;
  margin-top: auto;
}

.hero-slide {
  grid-area: 1 / 1;
  align-self: end;
  opacity: 0;
  pointer-events: none;
  transform: translateY(9px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  padding: 6px 9px;
  border: 1px solid rgba(244, 221, 173, 0.22);
  border-radius: 999px;
  color: #ffe3ad;
  background: rgba(232, 180, 74, 0.16);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1;
}

.hero-kicker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(47, 214, 161, 0.95);
}

.hero h1 {
  max-width: 280px;
  margin: 0;
  color: #fff;
  font-family: "Arial Black", "Segoe UI", Roboto, sans-serif;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 8px 30px rgba(10, 8, 4, 0.45);
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(100deg, #fff 4%, #ffe2a6 42%, #8cf5ce 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-slide p {
  max-width: 270px;
  margin: 9px 0 0;
  color: #b6ae9c;
  font-size: 12.5px;
  line-height: 1.45;
}

.hero-actions {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.hero .btn-primary {
  flex: 0 1 auto;
  min-height: 43px;
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 15px;
  color: #171006;
  background: linear-gradient(135deg, #ffe2a0 0%, #e8b44a 48%, #b87920 100%);
  font-size: 13px;
  box-shadow: 0 13px 30px -12px rgba(232, 180, 74, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero .btn-primary .icon {
  width: 17px;
  height: 17px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 1px;
}

.hero-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.hero-dots button.is-active {
  width: 20px;
  background: linear-gradient(90deg, #ffd98b, #2fd6a1);
  box-shadow: 0 0 12px rgba(232, 180, 74, 0.75);
}

.stats {
  gap: 8px;
  margin: 12px 0 18px;
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 11px 8px;
  border: 1px solid rgba(216, 189, 133, 0.14);
  border-radius: 17px;
  color: #99917f;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.022));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font-size: 10.5px;
}

.stat::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24%;
  right: 24%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 217, 139, 0.8), transparent);
}

.stat b {
  color: #fff;
  font-size: 15.5px;
  font-weight: 900;
}

.section-row {
  margin: 20px 1px 12px;
}

.section-title {
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-note {
  padding: 5px 8px;
  border: 1px solid rgba(216, 189, 133, 0.18);
  border-radius: 999px;
  color: #e4cd9a;
  background: rgba(232, 180, 74, 0.1);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-live {
  margin-top: 18px;
}

.home-live .tasks-head {
  margin: 0 2px 9px;
}

.home-live .tasks-head h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.home-live .tasks-head span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-live .tasks-head span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(47, 214, 161, 0.9);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}

.live-feed.compact {
  gap: 9px;
  padding: 2px 1px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.live-card {
  flex: 0 0 112px;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(216, 189, 133, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 13px 24px -20px rgba(0, 0, 0, 0.9);
}

.live-card-art {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px 17px 10px 10px;
  background: linear-gradient(160deg, rgba(232, 180, 74, 0.15), rgba(47, 214, 161, 0.06));
}

.live-card-price {
  right: 5px;
  bottom: 5px;
  padding: 3px 6px;
  color: #fff;
  background: rgba(10, 7, 25, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 8px;
}

.live-card-name {
  padding: 6px 8px 0;
  color: #fff;
  font-size: 11px;
}

.live-card-gift {
  padding: 2px 8px 8px;
  color: #a69d8b;
  font-size: 8.5px;
}

.live-card.mine {
  border-color: rgba(255, 217, 139, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 217, 139, 0.18), 0 14px 30px -17px rgba(232, 180, 74, 0.95);
}

.live-card.mine .live-card-name {
  color: #ffe4ac;
}

.games {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 12px;
}

.game-card {
  aspect-ratio: 0.84;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 25px;
  background: #121021;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 36px -22px rgba(0, 0, 0, 0.85);
}

.game-card::before {
  content: "↗";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(10, 8, 4, 0.38);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.game-card::after {
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.17), transparent 38%);
}

.game-preview {
  background:
    radial-gradient(70% 54% at 50% 32%, var(--art-glow) 0%, transparent 70%),
    linear-gradient(158deg, var(--art-a), var(--art-b));
}

.game-ico {
  width: 66px;
  height: 66px;
  border-radius: 21px;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(10, 8, 4, 0.38);
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.17);
}

.game-ico .icon {
  width: 33px;
  height: 33px;
}

.g-crash .game-ico {
  color: #ffd7c2;
  background: rgba(92, 25, 7, 0.42);
  border-color: rgba(255, 170, 120, 0.38);
}

.g-wheel .game-ico {
  color: #ffe3ad;
  background: rgba(91, 57, 7, 0.5);
  border-color: rgba(255, 217, 139, 0.4);
}

.g-mines .game-ico {
  color: #b5ffea;
  background: rgba(3, 61, 52, 0.48);
  border-color: rgba(80, 255, 208, 0.34);
}

.g-dice .game-ico {
  color: #c3edff;
  background: rgba(4, 42, 83, 0.48);
  border-color: rgba(111, 206, 255, 0.36);
}

.g-roulette .game-ico {
  color: #ffc8cc;
  background: rgba(83, 12, 16, 0.44);
  border-color: rgba(255, 129, 136, 0.34);
}

.g-coin .game-ico {
  color: #ffe6a8;
  background: rgba(83, 50, 4, 0.46);
  border-color: rgba(255, 216, 112, 0.38);
}

.g-case .game-ico {
  color: #ffe0a3;
  background: rgba(71, 13, 91, 0.46);
  border-color: rgba(229, 145, 255, 0.38);
}

.g-upgrade .game-ico {
  color: #bff9ff;
  background: rgba(4, 58, 68, 0.46);
  border-color: rgba(97, 242, 255, 0.34);
}

.g-jackpot .game-ico {
  color: #fff0b8;
  background: rgba(77, 48, 2, 0.48);
  border-color: rgba(255, 222, 123, 0.4);
}

.game-badge {
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(10, 8, 4, 0.5);
  font-size: 8.5px;
}

.game-info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 34px 11px 11px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 7, 4, 0.38) 38%, rgba(8, 7, 4, 0.82) 100%);
}

.game-name {
  position: static;
  overflow: visible;
  padding: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-overflow: clip;
  white-space: normal;
  background: none;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.game-sub {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.games .game-card:last-child:nth-child(odd) {
  grid-column: span 2;
  aspect-ratio: 1.92;
}

.games .game-card:last-child:nth-child(odd) .game-ico {
  width: 76px;
  height: 76px;
  border-radius: 24px;
}

.games .game-card:last-child:nth-child(odd) .game-ico .icon {
  width: 38px;
  height: 38px;
}

.games .game-card:last-child:nth-child(odd) .game-info {
  right: auto;
  width: 72%;
}

.games .game-card:last-child:nth-child(odd) .game-name {
  font-size: 19px;
}

.btn {
  border-color: rgba(216, 189, 133, 0.17);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.btn-primary {
  border: 1px solid rgba(255, 255, 255, 0.19);
  color: #171006;
  background: linear-gradient(135deg, #ffe2a0 0%, #e8b44a 48%, #b87920 100%);
  box-shadow: 0 13px 30px -12px rgba(232, 180, 74, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 16px 38px -10px rgba(232, 180, 74, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  border-color: rgba(216, 189, 133, 0.24);
  color: #b8af9c;
}

.chip.active,
.num-btn:active,
.outside-btn:active,
.pick-btn:active {
  border-color: rgba(255, 217, 139, 0.82);
  color: #fff;
  background: linear-gradient(180deg, rgba(232, 180, 74, 0.42), rgba(232, 180, 74, 0.17));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 8px 20px -14px rgba(232, 180, 74, 0.9);
}

.chip {
  border-color: rgba(216, 189, 133, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.game-head h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.icon-btn {
  border-color: rgba(216, 189, 133, 0.2);
  color: #f5f0e6;
  background: rgba(232, 180, 74, 0.12);
}

.stage {
  border-color: rgba(216, 189, 133, 0.18);
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(232, 180, 74, 0.16), rgba(8, 9, 7, 0) 66%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 46px -30px rgba(0, 0, 0, 0.9);
}

.panel,
.task-card,
.tasks-summary,
.balance-card,
.profile-card,
.op-row,
.hist-row,
.result,
.modal-card {
  border-color: rgba(216, 189, 133, 0.17);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.021));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.result.win {
  border-color: rgba(47, 214, 161, 0.42);
  background: linear-gradient(145deg, rgba(47, 214, 161, 0.1), rgba(47, 214, 161, 0.035));
}

.result.lose {
  border-color: rgba(255, 101, 132, 0.26);
  background: linear-gradient(145deg, rgba(255, 101, 132, 0.07), rgba(255, 101, 132, 0.025));
}

.modal {
  background: rgba(4, 4, 3, 0.72);
}

.modal-card {
  background: linear-gradient(180deg, rgba(30, 27, 17, 0.96), rgba(9, 10, 7, 0.98));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.bottom-nav {
  bottom: calc(10px + var(--safe-bottom));
  left: 50%;
  width: min(calc(100% - 24px), 500px);
  gap: 3px;
  padding: 7px 8px;
  border: 1px solid rgba(216, 189, 133, 0.22);
  border-radius: 24px;
  background: rgba(14, 15, 10, 0.9);
  box-shadow: 0 24px 52px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bottom-nav button {
  gap: 3px;
  padding: 8px 4px;
  border-radius: 18px;
  color: #918a79;
  font-size: 19px;
}

.bottom-nav button span {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.bottom-nav button.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(232, 180, 74, 0.36), rgba(232, 180, 74, 0.11));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px -16px rgba(232, 180, 74, 0.9);
}

.nav-badge {
  color: #fff;
  background: linear-gradient(135deg, #d99a32, #b87920);
  box-shadow: 0 3px 10px rgba(232, 180, 74, 0.5);
}

main {
  padding: 8px 16px calc(112px + var(--safe-bottom));
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-slides {
    width: 84%;
  }

  .hero-nft-card.n2 {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero {
    min-height: 284px;
    padding: 17px 16px 13px;
    border-radius: 27px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero-slides {
    width: 82%;
    min-height: 152px;
  }

  .hero-slide p {
    font-size: 11.5px;
  }

  .hero > .hero-art {
    right: -18px;
    opacity: 0.72;
  }

  .hero-nft-card.n1 {
    right: 10px;
    width: 78px;
    height: 101px;
  }

  .hero-nft-card.n3 {
    right: 1px;
    top: 124px;
    width: 64px;
    height: 72px;
  }

  .hero .btn-primary {
    padding-right: 14px;
    padding-left: 14px;
    font-size: 12.5px;
  }

  .games {
    gap: 8px;
  }

  .game-card {
    aspect-ratio: 0.82;
    border-radius: 22px;
  }

  .game-ico {
    width: 58px;
    height: 58px;
    border-radius: 19px;
  }

  .game-ico .icon {
    width: 29px;
    height: 29px;
  }

  .game-name {
    font-size: 14px;
  }

  .game-sub {
    font-size: 8.5px;
  }

  .games .game-card:last-child:nth-child(odd) .game-name {
    font-size: 18px;
  }

  .section-title {
    font-size: 21px;
  }

  main {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 340px) {
  .hero h1 {
    font-size: 25px;
  }

  .hero > .hero-art {
    opacity: 0.45;
    right: -30px;
  }

  .hero-slides {
    width: 90%;
  }

  .game-sub {
    display: none;
  }
}

@media (min-width: 560px) {
  .app {
    border-color: rgba(216, 189, 133, 0.16);
    background: rgba(11, 12, 8, 0.32);
  }
}


/* === GRAILDROP mode cards: generated art slot + live player count ======== */

.game-card::before {
  content: none;
}

.game-badge {
  right: 10px;
  left: auto;
}

.game-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  background: #0a0b08;
}

.game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.03);
}

.game-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 7, 5, 0.08) 0%, rgba(6, 7, 5, 0.06) 46%, rgba(6, 7, 5, 0.72) 100%),
    linear-gradient(90deg, rgba(6, 7, 5, 0.18), transparent 46%);
}

.game-card.has-art .game-preview {
  opacity: 1;
  background: none;
}

.game-card.has-art .game-preview::before,
.game-card.has-art .game-preview::after {
  display: none;
}

.game-card.has-art .game-ico {
  display: none;
}

.game-live {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 76px);
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(8, 7, 4, 0.5);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.game-live i {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(47, 214, 161, 0.9);
}

.game-card.has-art .game-badge {
  color: #171006;
  background: rgba(255, 217, 139, 0.9);
  border-color: rgba(255, 239, 198, 0.65);
}

.games .game-card:last-child:nth-child(odd) .game-live {
  max-width: calc(100% - 110px);
}

.games .game-card:last-child:nth-child(odd) .game-art img {
  object-position: 58% center;
}

/* === GRAILDROP raster logo in topbar ==================================== */

.brand-icon {
  padding: 0;
  overflow: hidden;
  background: #050504;
  border-color: rgba(232, 180, 74, 0.52);
  box-shadow: 0 9px 24px -10px rgba(232, 180, 74, 0.75), inset 0 0 0 1px rgba(255, 217, 139, 0.08);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 11px;
}

.games {
  gap: 10px;
}

.game-card {
  border-radius: 12px;
  border-color: rgba(232, 180, 74, 0.22);
  background: #090a08;
  box-shadow: 0 18px 34px -24px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-art::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 2;
  border: 1px solid rgba(232, 180, 74, 0.16);
  border-radius: 6px;
  pointer-events: none;
}

.game-art::after {
  background:
    linear-gradient(180deg, rgba(6, 7, 5, 0.1) 0%, rgba(6, 7, 5, 0.03) 34%, rgba(6, 7, 5, 0.9) 100%),
    linear-gradient(90deg, rgba(6, 7, 5, 0.16), transparent 46%);
}

.game-info {
  padding: 38px 11px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 8, 6, 0.58) 30%, rgba(7, 8, 6, 0.95) 100%);
}

.game-info::before {
  content: "";
  position: absolute;
  top: 0;
  right: 11px;
  left: 11px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 180, 74, 0.34), transparent);
  pointer-events: none;
}

.game-name {
  font-size: 16px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.game-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 8.5px;
  letter-spacing: 0.015em;
}

.game-live,
.game-badge {
  border-radius: 4px;
}

.game-live {
  padding: 5px 6px;
  font-size: 7.5px;
  letter-spacing: 0.03em;
}

.game-card.has-art .game-badge {
  color: #ffd98b;
  background: rgba(8, 7, 4, 0.64);
  border-color: rgba(232, 180, 74, 0.4);
  border-radius: 4px;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero {
  border-radius: 18px;
}

.hero-badge {
  border-radius: 6px;
}

.hero-nft-card {
  border-radius: 12px;
}

.balance-pill {
  border-radius: 8px;
}

.bottom-nav {
  border-radius: 14px;
}

.bottom-nav button {
  border-radius: 8px;
}

.bottom-nav button.active {
  background: rgba(232, 180, 74, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-badge {
  border-radius: 5px;
  box-shadow: none;
}

.chip {
  border-radius: 7px;
}

.btn {
  border-radius: 10px;
}

.btn-lg {
  border-radius: 12px;
}

.modal-card {
  border-radius: 14px;
}

.games .game-card:last-child:nth-child(odd) .game-name {
  font-size: 17px;
}

.hero .btn-primary {
  border-radius: 10px;
  box-shadow: 0 10px 24px -16px rgba(232, 180, 74, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.stat {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.stat::after {
  right: 18%;
  left: 18%;
  opacity: 0.55;
}

.section-title {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.live-card {
  border-radius: 10px;
}

.live-card-art {
  border-radius: 8px 8px 4px 4px;
}

.hero {
  border-radius: 14px;
  background:
    radial-gradient(85% 120% at 100% 0%, rgba(232, 180, 74, 0.14), rgba(5, 5, 5, 0) 55%),
    linear-gradient(145deg, #17140c 0%, #0d0d09 52%, #070705 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 50px -34px #000;
}

.hero::before {
  opacity: 0.45;
}

.hero::after {
  opacity: 0.28;
}

.hero-kicker {
  border-radius: 4px;
  background: rgba(8, 7, 4, 0.36);
  color: #ffd98b;
  letter-spacing: 0.13em;
}

.hero h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-shadow: none;
}

.hero h1 em {
  color: #ffd98b;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-style: italic;
}

.hero-slide p {
  color: #b9b09c;
  font-size: 12px;
}

.hero-art {
  top: 14px;
  right: 4px;
  width: 46%;
  height: 188px;
  opacity: 0.2;
  background: url(art/brand/logo-icon.png) center / contain no-repeat;
  filter: grayscale(1) sepia(0.35) saturate(0.75);
}

.hero-art > * {
  display: none;
}

.hero .btn-primary {
  border-radius: 8px;
  background: linear-gradient(180deg, #f3cd7e, #dca63a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
}

.section-note {
  border-radius: 4px;
}

:root {
  --serif-display: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia,
    "Times New Roman", serif;
  --serif-text: Georgia, "Times New Roman", serif;
  --gold-line: rgba(232, 180, 74, 0.32);
  --gold-line-soft: rgba(232, 180, 74, 0.16);
}

body {
  font-family: var(--serif-text);
  font-variant-numeric: lining-nums tabular-nums;
}

.brand-title {
  font-family: var(--serif-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--serif-text);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-icon {
  border-radius: 3px;
  border-color: rgba(232, 180, 74, 0.5);
  box-shadow: 0 0 0 1px rgba(232, 180, 74, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.65);
}

.brand-logo {
  border-radius: 2px;
}

.balance-pill {
  border-radius: 3px;
  border-color: rgba(232, 180, 74, 0.32);
  background: rgba(10, 8, 4, 0.58);
  font-family: var(--serif-text);
  font-size: 14px;
  letter-spacing: 0.03em;
  box-shadow: inset 0 0 0 1px rgba(232, 180, 74, 0.08), 0 10px 24px -18px #000;
}

.hero {
  border-radius: 6px;
  border-color: rgba(232, 180, 74, 0.36);
  background:
    linear-gradient(rgba(232, 180, 74, 0.42), rgba(232, 180, 74, 0.42)) left 9px top 9px / 22px 1px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.42), rgba(232, 180, 74, 0.42)) left 9px top 9px / 1px 22px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.42), rgba(232, 180, 74, 0.42)) right 9px top 9px / 22px 1px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.42), rgba(232, 180, 74, 0.42)) right 9px top 9px / 1px 22px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.42), rgba(232, 180, 74, 0.42)) left 9px bottom 9px / 22px 1px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.42), rgba(232, 180, 74, 0.42)) left 9px bottom 9px / 1px 22px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.42), rgba(232, 180, 74, 0.42)) right 9px bottom 9px / 22px 1px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.42), rgba(232, 180, 74, 0.42)) right 9px bottom 9px / 1px 22px no-repeat,
    radial-gradient(85% 120% at 100% 0%, rgba(232, 180, 74, 0.14), rgba(5, 5, 5, 0) 55%),
    linear-gradient(145deg, #17140c 0%, #0d0d09 52%, #070705 100%);
  box-shadow:
    inset 0 0 0 1px rgba(232, 180, 74, 0.08),
    inset 0 0 0 5px rgba(5, 6, 4, 0.42),
    inset 0 0 0 6px rgba(232, 180, 74, 0.08),
    0 24px 50px -34px #000;
}

.hero::before {
  opacity: 0.3;
}

.hero::after {
  opacity: 0.18;
}

.hero-kicker {
  border-radius: 2px;
  border-color: rgba(232, 180, 74, 0.3);
  background: rgba(8, 7, 4, 0.48);
  color: #ffd98b;
  font-family: var(--serif-text);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--serif-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.hero h1 em {
  color: #ffd98b;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-style: italic;
}

.hero-slide p {
  color: #b9ae96;
  font-family: var(--serif-text);
  font-size: 12px;
  line-height: 1.45;
}

.hero-art {
  opacity: 0.16;
}

.hero-actions {
  border-top: 1px solid rgba(232, 180, 74, 0.16);
  padding-top: 12px;
}

.hero-actions::before {
  content: "◆";
  position: absolute;
  top: -5px;
  left: 50%;
  color: rgba(232, 180, 74, 0.6);
  font-size: 6px;
  line-height: 1;
  transform: translateX(-50%);
}

.hero .btn-primary {
  border-radius: 3px;
  font-family: var(--serif-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-color: rgba(255, 239, 198, 0.58);
  background: linear-gradient(180deg, #f2cc7a, #c99531);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.hero-dots button {
  border-radius: 0;
  background: rgba(232, 180, 74, 0.32);
  transform: rotate(45deg);
}

.hero-dots button.is-active {
  width: 6px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(232, 180, 74, 0.55);
}

.stat {
  border-radius: 3px;
  border-color: rgba(232, 180, 74, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.12));
  font-family: var(--serif-text);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(232, 180, 74, 0.05);
}

.stat b {
  font-family: var(--serif-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums tabular-nums;
}

.stat::after {
  right: 22%;
  left: 22%;
  opacity: 0.45;
}

.section-row {
  border-bottom: 1px solid rgba(232, 180, 74, 0.14);
  padding-bottom: 8px;
}

.section-title {
  font-family: var(--serif-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-title::before {
  content: "✦";
  margin-right: 8px;
  color: var(--gold);
  font-size: 11px;
  vertical-align: 1px;
}

.section-note {
  border-radius: 2px;
  border-color: rgba(232, 180, 74, 0.24);
  background: rgba(8, 7, 4, 0.58);
  color: #e4cd9a;
  font-family: var(--serif-text);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.home-live .tasks-head h3 {
  font-family: var(--serif-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-live .tasks-head h3::before {
  content: "✦";
  margin-right: 6px;
  color: var(--gold);
  font-size: 9px;
}

.home-live .tasks-head span {
  font-family: var(--serif-text);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.live-card {
  border-radius: 4px;
  border-color: rgba(232, 180, 74, 0.2);
  background: #0a0b08;
  box-shadow: inset 0 0 0 1px rgba(232, 180, 74, 0.05), 0 13px 24px -20px #000;
}

.live-card-art {
  border-radius: 2px 2px 0 0;
  border-bottom: 1px solid rgba(232, 180, 74, 0.14);
}

.live-card-price {
  border: 1px solid rgba(232, 180, 74, 0.24);
  border-radius: 2px;
  background: rgba(8, 7, 4, 0.8);
  color: #ffe3ad;
  font-family: var(--serif-text);
}

.live-card-name {
  font-family: var(--serif-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.live-card-gift {
  color: #a99d84;
  font-family: var(--serif-text);
  font-size: 8.5px;
  font-style: italic;
}

.games {
  gap: 10px;
}

.game-card {
  border-radius: 4px;
  border-color: rgba(232, 180, 74, 0.28);
  background: #070806;
  box-shadow:
    0 0 0 1px rgba(232, 180, 74, 0.1),
    0 0 0 4px #070806,
    0 0 0 5px rgba(232, 180, 74, 0.06),
    0 18px 34px -24px #000;
}

.game-card::after {
  display: none;
}

.game-art::before {
  inset: 6px;
  border: 1px solid rgba(232, 180, 74, 0.22);
  border-radius: 2px;
  background:
    linear-gradient(rgba(232, 180, 74, 0.46), rgba(232, 180, 74, 0.46)) left top / 16px 1px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.46), rgba(232, 180, 74, 0.46)) left top / 1px 16px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.46), rgba(232, 180, 74, 0.46)) right top / 16px 1px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.46), rgba(232, 180, 74, 0.46)) right top / 1px 16px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.46), rgba(232, 180, 74, 0.46)) left bottom / 16px 1px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.46), rgba(232, 180, 74, 0.46)) left bottom / 1px 16px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.46), rgba(232, 180, 74, 0.46)) right bottom / 16px 1px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.46), rgba(232, 180, 74, 0.46)) right bottom / 1px 16px no-repeat;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.32), inset 0 0 0 4px rgba(232, 180, 74, 0.08);
}

.game-info {
  padding: 38px 11px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 6, 4, 0.64) 28%, rgba(5, 6, 4, 0.96) 100%);
}

.game-info::before {
  right: 11px;
  left: 11px;
  background: linear-gradient(90deg, transparent, rgba(232, 180, 74, 0.38), transparent);
}

.game-info::after {
  content: "◆";
  position: absolute;
  top: -4px;
  left: 50%;
  color: rgba(232, 180, 74, 0.7);
  font-size: 6px;
  line-height: 1;
  transform: translateX(-50%);
}

.game-name {
  font-family: var(--serif-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.game-sub {
  color: #b6a98b;
  font-family: var(--serif-text);
  font-size: 8.5px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.game-live,
.game-badge {
  border-radius: 0;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  font-family: var(--serif-text);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.game-live {
  border-color: rgba(232, 180, 74, 0.24);
  background: rgba(8, 7, 4, 0.66);
}

.game-card.has-art .game-badge {
  color: #ffd98b;
  border-color: rgba(232, 180, 74, 0.4);
  border-radius: 0;
  background: rgba(8, 7, 4, 0.72);
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px rgba(232, 180, 74, 0.08);
}

.games .game-card:last-child:nth-child(odd) .game-name {
  font-size: 16px;
}

.btn {
  border-radius: 3px;
  font-family: var(--serif-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-color: rgba(232, 180, 74, 0.3);
  background: rgba(255, 255, 255, 0.035);
}

.btn-primary {
  color: #171006;
  border: 1px solid rgba(255, 239, 198, 0.55);
  background: linear-gradient(180deg, #f2cc7a, #c99531);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.btn-lg {
  border-radius: 3px;
  font-size: 14px;
}

.chip {
  border-radius: 3px;
  border-color: rgba(232, 180, 74, 0.22);
  background: rgba(8, 7, 4, 0.5);
  font-family: var(--serif-text);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.chip.active {
  border-color: rgba(232, 180, 74, 0.55);
  background: rgba(232, 180, 74, 0.16);
  color: #ffe3ad;
}

.icon-btn {
  border-radius: 3px;
  border-color: rgba(232, 180, 74, 0.3);
  background: rgba(232, 180, 74, 0.08);
}

.game-head h2 {
  font-family: var(--serif-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.game-balance {
  font-family: var(--serif-text);
  font-size: 14px;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}

.stage {
  border-radius: 6px;
  border-color: rgba(232, 180, 74, 0.24);
  background:
    linear-gradient(rgba(232, 180, 74, 0.34), rgba(232, 180, 74, 0.34)) left 7px top 7px / 18px 1px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.34), rgba(232, 180, 74, 0.34)) left 7px top 7px / 1px 18px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.34), rgba(232, 180, 74, 0.34)) right 7px top 7px / 18px 1px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.34), rgba(232, 180, 74, 0.34)) right 7px top 7px / 1px 18px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.34), rgba(232, 180, 74, 0.34)) left 7px bottom 7px / 18px 1px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.34), rgba(232, 180, 74, 0.34)) left 7px bottom 7px / 1px 18px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.34), rgba(232, 180, 74, 0.34)) right 7px bottom 7px / 18px 1px no-repeat,
    linear-gradient(rgba(232, 180, 74, 0.34), rgba(232, 180, 74, 0.34)) right 7px bottom 7px / 1px 18px no-repeat,
    radial-gradient(90% 90% at 50% 0%, rgba(232, 180, 74, 0.16), rgba(8, 9, 7, 0) 66%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow:
    inset 0 0 0 1px rgba(232, 180, 74, 0.06),
    inset 0 0 0 4px rgba(5, 6, 4, 0.35),
    inset 0 0 0 5px rgba(232, 180, 74, 0.06),
    0 22px 46px -30px #000;
}

.modal-card {
  border-radius: 6px;
  border-color: rgba(232, 180, 74, 0.22);
}

.bottom-nav {
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 10px calc(12px + var(--safe-bottom));
  border: 0;
  border-top: 1px solid rgba(232, 180, 74, 0.3);
  border-radius: 0;
  background: rgba(8, 9, 7, 0.97);
  box-shadow: 0 -4px 0 rgba(5, 6, 4, 0.96), 0 -5px 0 rgba(232, 180, 74, 0.16), 0 -18px 40px rgba(0, 0, 0, 0.55);
  transform: none;
}

.bottom-nav button {
  border-radius: 0;
  font-family: var(--serif-text);
  font-size: 19px;
}

.bottom-nav button span {
  font-family: var(--serif-text);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bottom-nav button.active {
  color: var(--gold);
  background: transparent;
  box-shadow: none;
}

.bottom-nav button.active::before {
  content: "";
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 180, 74, 0.85), transparent);
}

.nav-badge {
  border-radius: 2px;
  background: #b87920;
  box-shadow: none;
}

.panel,
.task-card,
.tasks-summary,
.balance-card,
.profile-card,
.op-row,
.hist-row,
.inv-card,
.result,
.invoice,
.admin-box,
.case-select,
.case-detail,
.case-pool,
.case-result-row,
.upgrade-side,
.jpot-entry {
  border-radius: 4px;
  border-color: rgba(232, 180, 74, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.16));
  box-shadow: inset 0 0 0 1px rgba(232, 180, 74, 0.045), 0 14px 28px -24px #000;
}

.panel h3,
.modal-head h3,
.case-select-title,
.case-detail-title,
.profile-name,
.balance-label {
  font-family: var(--serif-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel h3 {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(232, 180, 74, 0.12);
  font-size: 14px;
}

.panel p {
  color: #b6a98b;
  font-family: var(--serif-text);
  font-size: 11.5px;
  line-height: 1.55;
}

.rule-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(232, 180, 74, 0.1);
}

.rule-list li:last-child {
  border-bottom: 0;
}

.rule-list .icon {
  color: var(--gold);
}

.rule-list b {
  color: var(--gold-2);
}

.tasks-head {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(232, 180, 74, 0.12);
}

.tasks-head h3 {
  font-family: var(--serif-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tasks-head h3::before {
  content: "✦";
  margin-right: 6px;
  color: var(--gold);
  font-size: 9px;
}

.tasks-head span {
  color: #8f8571;
  font-family: var(--serif-text);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tasks-summary {
  background: linear-gradient(180deg, rgba(232, 180, 74, 0.08), rgba(0, 0, 0, 0.18));
  border-color: rgba(232, 180, 74, 0.3);
}

.tasks-summary b {
  color: var(--gold-2);
  font-family: var(--serif-display);
  font-size: 28px;
  font-weight: 600;
}

.tasks-summary span {
  color: #9e937d;
  font-family: var(--serif-text);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.task-card {
  padding: 11px;
  border-color: rgba(232, 180, 74, 0.22);
  background: #0a0b08;
}

.task-card.ready {
  border-color: rgba(232, 180, 74, 0.55);
  box-shadow: inset 0 0 0 1px rgba(232, 180, 74, 0.12);
}

.task-ico {
  border-radius: 2px;
  color: var(--gold);
  background: rgba(232, 180, 74, 0.08);
  border-color: rgba(232, 180, 74, 0.26);
}

.task-title {
  font-family: var(--serif-display);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.task-reward {
  color: var(--gold);
  font-family: var(--serif-text);
}

.task-desc {
  color: #a99d84;
  font-size: 10.5px;
  line-height: 1.4;
}

.task-bar {
  height: 3px;
  border-radius: 0;
  background: rgba(232, 180, 74, 0.12);
}

.task-bar i {
  background: linear-gradient(90deg, #8a5a24, #e8b44a);
}

.task-meta {
  color: #8f8571;
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.task-claim {
  border-radius: 2px;
  border-color: rgba(232, 180, 74, 0.4);
  background: rgba(232, 180, 74, 0.12);
  color: #ffe3ad;
  font-family: var(--serif-text);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.task-claim:disabled {
  border-color: rgba(232, 180, 74, 0.12);
  background: rgba(0, 0, 0, 0.12);
  color: #7f7663;
}

.task-done {
  color: var(--gold);
  font-family: var(--serif-text);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.task-head-count {
  color: var(--gold);
  font-family: var(--serif-display);
}

.profile-card {
  padding: 18px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(232, 180, 74, 0.1), rgba(8, 9, 7, 0) 65%),
    rgba(8, 9, 7, 0.6);
  border-color: rgba(232, 180, 74, 0.3);
}

.avatar {
  border-radius: 2px;
  color: #171006;
  background: linear-gradient(180deg, #f2cc7a, #8a5a24);
  border-color: rgba(232, 180, 74, 0.65);
  font-family: var(--serif-display);
  font-size: 30px;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.avatar .lvl {
  border-radius: 1px;
  color: var(--gold);
  background: #0a0b08;
  border-color: rgba(232, 180, 74, 0.6);
  font-family: var(--serif-text);
}

.profile-name {
  font-size: 24px;
  letter-spacing: 0.05em;
}

.profile-sub {
  color: #b6a98b;
  font-family: var(--serif-text);
  font-size: 10.5px;
  font-style: italic;
}

.xp-bar {
  height: 3px;
  border-radius: 0;
  background: rgba(232, 180, 74, 0.12);
}

.xp-bar i {
  background: linear-gradient(90deg, #8a5a24, #e8b44a);
}

.xp-text {
  color: #8f8571;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.achievement-bar {
  height: 3px;
  border-radius: 0;
  background: rgba(232, 180, 74, 0.12);
}

.achievement-bar i {
  background: linear-gradient(90deg, #8a5a24, #e8b44a);
}

.hist-row {
  padding: 9px 10px;
  border-color: rgba(232, 180, 74, 0.16);
  background: rgba(0, 0, 0, 0.14);
}

.hist-ico {
  width: 30px;
  height: 30px;
  border-radius: 2px;
  color: var(--gold);
  background: rgba(232, 180, 74, 0.08);
  border: 1px solid rgba(232, 180, 74, 0.22);
}

.hist-main b {
  font-family: var(--serif-display);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.hist-main span {
  color: #9e937d;
  font-size: 8.5px;
}

.hist-amt {
  color: var(--gold);
  font-family: var(--serif-text);
  font-size: 11px;
}

.hist-amt.plus {
  color: var(--green);
}

.hist-amt.minus {
  color: var(--red);
}

.balance-card {
  padding: 18px;
  border-color: rgba(232, 180, 74, 0.3);
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(232, 180, 74, 0.12), rgba(5, 5, 5, 0) 58%),
    rgba(8, 9, 7, 0.66);
}

.balance-label {
  color: #9e937d;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.balance-big {
  color: var(--gold-2);
  font-family: var(--serif-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.balance-usd {
  color: #a99d84;
  font-family: var(--serif-text);
  font-size: 10px;
  font-style: italic;
}

.wallet-note {
  color: #8f8571;
  font-family: var(--serif-text);
  font-size: 9px;
  font-style: italic;
}

.op-row {
  border-color: rgba(232, 180, 74, 0.16);
  background: rgba(0, 0, 0, 0.14);
}

.op-title {
  font-family: var(--serif-display);
  font-size: 11.5px;
}

.op-meta {
  color: #8f8571;
  font-size: 8.5px;
}

.op-amount {
  color: var(--gold);
  font-family: var(--serif-text);
}

.op-status {
  color: #9e937d;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inv-grid {
  gap: 6px;
}

.inv-card {
  border-radius: 3px;
  border-color: rgba(232, 180, 74, 0.18);
  background: #0a0b08;
}

.inv-name {
  font-family: var(--serif-display);
  font-size: 11px;
}

.inv-price {
  color: var(--gold);
  font-family: var(--serif-text);
}

.inv-tag {
  border-radius: 1px;
  border: 1px solid rgba(232, 180, 74, 0.24);
  background: rgba(232, 180, 74, 0.08);
  color: #d8c49a;
  font-family: var(--serif-text);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.empty {
  border-radius: 3px;
  border: 1px dashed rgba(232, 180, 74, 0.22);
  background: rgba(0, 0, 0, 0.14);
  color: #8f8571;
  font-family: var(--serif-text);
  font-style: italic;
}

.limit-row {
  color: #9e937d;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.limit-row b {
  color: var(--text);
  font-family: var(--serif-text);
}

.modal-card {
  border-radius: 4px;
  border-color: rgba(232, 180, 74, 0.3);
  background: linear-gradient(180deg, #13140f, #070806);
  box-shadow: inset 0 0 0 1px rgba(232, 180, 74, 0.08), 0 36px 90px rgba(0, 0, 0, 0.7);
}

.modal-head h3 {
  font-size: 18px;
  letter-spacing: 0.05em;
}

.field > label {
  color: #9e937d;
  font-family: var(--serif-text);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.method,
.amount {
  border-radius: 3px;
  border-color: rgba(232, 180, 74, 0.18);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--serif-text);
}

.method.active,
.amount.active {
  border-color: rgba(232, 180, 74, 0.55);
  background: rgba(232, 180, 74, 0.12);
  color: var(--gold-2);
}

.input {
  border-radius: 3px;
  border-color: rgba(232, 180, 74, 0.22);
  background: rgba(0, 0, 0, 0.5);
  font-family: var(--serif-text);
}

.field-hint {
  color: #8f8571;
  font-family: var(--serif-text);
  font-size: 9px;
  font-style: italic;
}

.deposit-summary b {
  color: var(--gold);
  font-family: var(--serif-display);
}

.inv-amount {
  color: var(--gold);
  font-family: var(--serif-display);
}

.modal-divider {
  color: #8f8571;
  font-family: var(--serif-text);
}

.admin-box {
  border: 1px dashed rgba(232, 180, 74, 0.24);
  background: rgba(0, 0, 0, 0.14);
}

.result {
  font-family: var(--serif-text);
}

.result.win {
  border-color: rgba(47, 214, 161, 0.4);
  background: linear-gradient(145deg, rgba(47, 214, 161, 0.1), rgba(47, 214, 161, 0.03));
}

.result.lose {
  border-color: rgba(228, 91, 78, 0.3);
  background: linear-gradient(145deg, rgba(228, 91, 78, 0.07), rgba(228, 91, 78, 0.02));
}

.toast {
  border-radius: 3px;
  border: 1px solid rgba(232, 180, 74, 0.28);
  font-family: var(--serif-text);
}

.bet-label {
  color: #9e937d;
  font-family: var(--serif-text);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bet-label b {
  color: var(--gold-2);
  font-family: var(--serif-display);
}

.stage-hint {
  color: #8f8571;
  font-family: var(--serif-text);
  font-size: 10px;
  font-style: italic;
  line-height: 1.45;
}

.crash-canvas {
  border-radius: 4px;
}

.crash-mult {
  background: linear-gradient(135deg, #fff2c9, #e8b44a 52%, #8a5a24);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--serif-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.75));
}

.crash-mult.crashed {
  background: linear-gradient(135deg, #ffd0c2, #e45b4e 55%, #7a2a20);
  -webkit-background-clip: text;
  background-clip: text;
}

.crash-pot b {
  color: var(--gold-2);
  font-family: var(--serif-display);
}

.crash-bar {
  border-radius: 0;
  background: rgba(232, 180, 74, 0.12);
}

.crash-bar > div {
  border-radius: 0;
  background: linear-gradient(90deg, #8a5a24, #e8b44a);
}

.crash-marker {
  color: var(--gold-2);
  filter: drop-shadow(0 0 10px rgba(232, 180, 74, 0.5));
}

.crash-state {
  color: #9e937d;
  font-family: var(--serif-text);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.die3d {
  color: var(--gold-2);
  filter: drop-shadow(0 16px 30px rgba(232, 180, 74, 0.16));
}

.pick-btn {
  border-radius: 3px;
  border-color: rgba(232, 180, 74, 0.22);
  background: #0a0b08;
  color: var(--gold-2);
}

.pick-btn small {
  color: #9e937d;
  font-family: var(--serif-text);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pick-btn.wide {
  font-family: var(--serif-display);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pick-red,
.pick-black,
.pick-green {
  border-color: rgba(232, 180, 74, 0.22);
}

.coin-face {
  color: #171006;
  background: radial-gradient(circle at 32% 26%, #ffe9b5, #e8b44a 55%, #8a5a24 100%);
  border: 3px solid rgba(255, 239, 198, 0.55);
  box-shadow: 0 18px 40px rgba(232, 180, 74, 0.16), inset 0 -6px 18px rgba(0, 0, 0, 0.2), inset 0 6px 14px rgba(255, 255, 255, 0.26);
}

.coin-face.tails {
  background: radial-gradient(circle at 32% 26%, #f2cc7a, #b87920 55%, #5c3c12 100%);
}

.coin-face .icon {
  color: #171006;
}

.mines-mult {
  color: var(--gold-2);
  font-family: var(--serif-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mines-sub {
  color: #9e937d;
  font-family: var(--serif-text);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mines-grid {
  gap: 5px;
}

.mine-tile {
  border-radius: 2px;
  border-color: rgba(232, 180, 74, 0.24);
  background: linear-gradient(155deg, #10120d, #070806);
}

.mine-tile::after {
  width: 5px;
  height: 5px;
  border-radius: 0;
  background: rgba(232, 180, 74, 0.38);
  transform: rotate(45deg);
}

.mine-tile.safe {
  color: var(--green);
  background: rgba(47, 214, 161, 0.12);
  border-color: rgba(47, 214, 161, 0.42);
}

.mine-tile.boom,
.mine-tile.revealed-mine {
  color: var(--red);
  background: rgba(228, 91, 78, 0.12);
  border-color: rgba(228, 91, 78, 0.4);
}

.wheel-pointer {
  color: var(--gold-2);
  filter: drop-shadow(0 4px 8px rgba(232, 180, 74, 0.3));
}

.wheel {
  box-shadow: inset 0 0 0 6px rgba(232, 180, 74, 0.18), inset 0 0 0 9px rgba(0, 0, 0, 0.4), inset 0 0 24px rgba(0, 0, 0, 0.7), 0 24px 54px rgba(0, 0, 0, 0.5);
}

.wheel-label {
  border: 1px solid rgba(232, 180, 74, 0.24);
  border-radius: 1px;
  color: var(--gold-2);
  background: rgba(8, 7, 4, 0.55);
  font-family: var(--serif-text);
  font-size: 8px;
  text-transform: uppercase;
}

.wheel-label.zero {
  color: #171006;
  background: rgba(255, 217, 139, 0.92);
  border-color: rgba(255, 239, 198, 0.65);
}

.wheel-hub {
  color: var(--gold-2);
  background: #080907;
  border-color: rgba(232, 180, 74, 0.45);
}

.wheel-mult {
  color: var(--gold-2);
  font-family: var(--serif-display);
}

.wheel-mult.win {
  color: var(--green);
}

.wheel-mult.lose {
  color: var(--red);
}

.wheel-mult.spinning {
  color: var(--gold-2);
}

.roulette-spinner {
  color: rgba(232, 180, 74, 0.08);
}

.roulette-num {
  border: 4px solid rgba(232, 180, 74, 0.32);
  background: #0a0b08;
  color: var(--gold-2);
  font-family: var(--serif-display);
  font-weight: 600;
}

.roulette-num.red {
  border-color: rgba(232, 180, 74, 0.5);
  background: linear-gradient(160deg, #8a5a24, #3a2408);
}

.roulette-num.black {
  border-color: rgba(232, 180, 74, 0.25);
  background: linear-gradient(160deg, #171a14, #070806);
  color: #f5f0e6;
}

.roulette-num.green {
  border-color: rgba(47, 214, 161, 0.55);
  background: linear-gradient(160deg, #1b3a2f, #0a1712);
  color: var(--jade-2);
}

.reel-window {
  border-radius: 3px;
  border-color: rgba(232, 180, 74, 0.22);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(232, 180, 74, 0.06), inset 0 0 30px rgba(0, 0, 0, 0.35);
}

.reel-cell {
  border-right: 1px solid rgba(232, 180, 74, 0.08);
  color: #8f8571;
  font-family: var(--serif-display);
  font-size: 20px;
}

.reel-cell.hit {
  color: var(--gold-2);
  background: rgba(232, 180, 74, 0.14);
  box-shadow: inset 0 0 0 1px rgba(232, 180, 74, 0.35), 0 0 26px rgba(232, 180, 74, 0.1);
  text-shadow: 0 0 18px rgba(232, 180, 74, 0.45);
}

.reel-pointer {
  border-top-color: var(--gold);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}

.reel-edge.left {
  background: linear-gradient(90deg, #080907 10%, rgba(8, 9, 7, 0));
}

.reel-edge.right {
  background: linear-gradient(-90deg, #080907 10%, rgba(8, 9, 7, 0));
}

.num-btn,
.outside-btn {
  border-radius: 2px;
  border-color: rgba(232, 180, 74, 0.2);
  background: rgba(0, 0, 0, 0.16);
  font-family: var(--serif-text);
}

.num-btn.zero {
  color: #171006;
  background: rgba(255, 217, 139, 0.88);
  border-color: rgba(255, 239, 198, 0.6);
}

.dot-red {
  color: var(--gold);
  background: var(--gold);
}

.dot-black {
  color: #2a2c25;
  background: #0a0b08;
  border-color: rgba(232, 180, 74, 0.35);
}

.dot-green {
  color: var(--green);
  background: var(--green);
}

.case-reel-window {
  border-radius: 3px;
  border-color: rgba(232, 180, 74, 0.22);
  background: radial-gradient(80% 120% at 50% 0%, rgba(232, 180, 74, 0.09), rgba(0, 0, 0, 0) 70%), rgba(0, 0, 0, 0.2);
}

.case-reel-window::before {
  background: linear-gradient(90deg, rgba(8, 9, 7, 0.94), rgba(8, 9, 7, 0));
}

.case-reel-window::after {
  background: linear-gradient(270deg, rgba(8, 9, 7, 0.94), rgba(8, 9, 7, 0));
}

.case-cell {
  border-radius: 2px;
  border-color: rgba(232, 180, 74, 0.22);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.16));
}

.case-cell.gold {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 2px rgba(232, 180, 74, 0.2), 0 0 26px -2px rgba(232, 180, 74, 0.85);
}

.case-reels.multi .case-cell {
  border-radius: 2px;
}

.case-sep {
  border-top-color: rgba(232, 180, 74, 0.14);
  color: var(--gold);
  font-family: var(--serif-text);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.case-card {
  height: 220px;
  border-radius: 4px;
  border-color: rgba(232, 180, 74, 0.26);
  background: linear-gradient(155deg, #15140e, #080907 62%);
  box-shadow: 0 0 0 1px rgba(232, 180, 74, 0.08), 0 0 0 4px #070806, 0 0 0 5px rgba(232, 180, 74, 0.05);
}

.case-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%);
}

.case-card-glow {
  background: var(--gold);
  opacity: 0.12;
}

.case-card-emoji {
  opacity: 0.14;
}

.case-art-img {
  border-radius: 2px;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45)) saturate(0.9);
}

.case-card-name {
  font-family: var(--serif-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-card-tagline {
  color: #a99d84;
  font-family: var(--serif-text);
  font-size: 9.5px;
  font-style: italic;
  line-height: 1.35;
}

.case-card-price {
  color: var(--gold-2);
  font-family: var(--serif-display);
  font-size: 16px;
  font-weight: 600;
}

.case-card-price::after {
  font-family: var(--serif-text);
  font-size: 9px;
}

.case-card-mult,
.case-card-rtp,
.case-card-nft,
.case-card-open {
  font-family: var(--serif-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-card-open {
  color: var(--gold);
}

.case-card.active {
  border-color: rgba(232, 180, 74, 0.65);
  box-shadow: 0 0 0 1px rgba(232, 180, 74, 0.18), 0 0 26px -8px rgba(232, 180, 74, 0.75);
}

.case-count {
  border-radius: 2px;
  border-color: rgba(232, 180, 74, 0.22);
  background: rgba(0, 0, 0, 0.16);
  font-family: var(--serif-text);
}

.case-count.active {
  border-color: rgba(232, 180, 74, 0.6);
  background: rgba(232, 180, 74, 0.14);
  color: var(--gold-2);
}

.case-pool-item {
  border-radius: 2px;
  border-color: rgba(232, 180, 74, 0.16);
  background: rgba(0, 0, 0, 0.14);
}

.case-pool-name,
.case-result-info b {
  font-family: var(--serif-display);
  letter-spacing: 0.02em;
}

.case-pool-chance {
  color: var(--gold);
  font-family: var(--serif-text);
}

.case-result-row {
  border-color: rgba(232, 180, 74, 0.16);
  background: rgba(0, 0, 0, 0.14);
}

.case-result-row > strong {
  color: var(--gold);
  font-family: var(--serif-display);
}

.upgrade-side {
  border-color: rgba(232, 180, 74, 0.22);
  background: #0a0b08;
  font-family: var(--serif-text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.upgrade-chance {
  color: var(--gold-2);
  font-family: var(--serif-display);
  font-weight: 600;
}

.upgrade-arrow .icon {
  color: var(--gold);
}

.upg-wheel-ticks {
  background: repeating-conic-gradient(from -0.5deg, rgba(232, 180, 74, 0.32) 0 1deg, transparent 1deg 9deg);
}

.upg-ring-track {
  background: rgba(232, 180, 74, 0.1);
}

.upg-ring-fill {
  background: linear-gradient(90deg, #8a5a24, #e8b44a);
}

.upg-wheel-core {
  background: #080907;
  border-color: rgba(232, 180, 74, 0.4);
  color: var(--gold-2);
}

.upg-wheel-core b,
.upg-wheel-core small {
  color: var(--gold-2);
  font-family: var(--serif-display);
}

.upg-wheel-pointer {
  color: var(--gold-2);
}

.upg-kicker,
.upg-preset-label {
  color: #9e937d;
  font-family: var(--serif-text);
  letter-spacing: 0.06em;
}

.upg-item,
.upg-inv,
.upg-preset {
  border-radius: 2px;
  border-color: rgba(232, 180, 74, 0.18);
  background: rgba(0, 0, 0, 0.14);
}

.upg-item-info b,
.upg-inv-name {
  font-family: var(--serif-display);
  letter-spacing: 0.02em;
}

.upg-inv-price {
  color: var(--gold);
  font-family: var(--serif-text);
}

.upg-preset.active,
.upg-inv.active {
  border-color: rgba(232, 180, 74, 0.6);
  background: rgba(232, 180, 74, 0.1);
}

.upg-empty {
  border: 1px dashed rgba(232, 180, 74, 0.22);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.12);
  color: #8f8571;
  font-family: var(--serif-text);
  font-style: italic;
}

.jackpot-pot {
  color: var(--gold-2);
  font-family: var(--serif-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.jpot-entry {
  border-color: rgba(232, 180, 74, 0.16);
  background: rgba(0, 0, 0, 0.14);
  font-family: var(--serif-text);
}

.jpot-entry b {
  color: var(--gold);
}

.jackpot-timer {
  color: #9e937d;
  font-family: var(--serif-text);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 380px) {
  .hero {
    border-radius: 4px;
  }

  .hero h1 {
    font-size: 26px;
  }
}

/* Cases showcase: generated chest art instead of bright gift collages */
.case-card-art .case-card-emoji,
.case-card-art .case-art-img {
  display: none;
}

.case-card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.82) contrast(1.03) brightness(0.9);
  opacity: 0.94;
}

.case-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 9, 7, 0.18), rgba(8, 9, 7, 0.02) 38%, rgba(8, 9, 7, 0.45) 100%);
  pointer-events: none;
}

.case-card[data-case="lucky"] .case-card-art::before,
.case-card[data-case="starter"] .case-card-art::before,
.case-card[data-case="plush"] .case-card-art::before,
.case-card[data-case="nftlite"] .case-card-art::before {
  background-image: url("art/cases/case-tier-1.webp?v=20261121-22");
}

.case-card[data-case="neon"] .case-card-art::before,
.case-card[data-case="pro"] .case-card-art::before,
.case-card[data-case="space"] .case-card-art::before,
.case-card[data-case="nftcool"] .case-card-art::before {
  background-image: url("art/cases/case-tier-2.webp?v=20261121-22");
}

.case-card[data-case="legend"] .case-card-art::before,
.case-card[data-case="dragon"] .case-card-art::before,
.case-card[data-case="nftrare"] .case-card-art::before {
  background-image: url("art/cases/case-tier-3.webp?v=20261121-22");
}

.case-card-badge,
.case-card-rtp {
  border-radius: 1px;
  border-color: rgba(232, 180, 74, 0.32);
  background: rgba(8, 9, 7, 0.72);
  color: var(--gold-2);
  font-family: var(--serif-text);
  font-size: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.case-card-rtp {
  color: var(--gold);
  background: rgba(8, 9, 7, 0.8);
}

.case-card-body {
  background: linear-gradient(180deg, transparent, rgba(8, 9, 7, 0.78) 28%, rgba(8, 9, 7, 0.96));
}

.case-card-meta {
  color: #9e937d;
  font-family: var(--serif-text);
  font-size: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.case-card-open {
  color: var(--gold);
}

/* Blend the brand watermark without the black square from the source PNG */
.hero-art {
  mix-blend-mode: screen;
  opacity: 0.17;
}

/* Keep live NFT thumbs readable but toned into the auction palette */
.live-card-art {
  position: relative;
  background: #0a0b08;
}

.live-card-art img {
  filter: saturate(0.72) sepia(0.12) brightness(0.86);
}

.live-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 9, 7, 0.04), rgba(8, 9, 7, 0.36));
  pointer-events: none;
}

.live-card-price {
  z-index: 3;
}

.case-select-badge {
  border-radius: 1px;
  border: 1px solid rgba(232, 180, 74, 0.3);
  background: rgba(8, 9, 7, 0.6);
  color: var(--gold);
  font-family: var(--serif-text);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-select-sub {
  color: #a99d84;
  font-family: var(--serif-text);
  font-size: 9px;
  font-style: italic;
}

.hero-art {
  background: url("art/brand/logo-mark.png") center / contain no-repeat;
  mix-blend-mode: normal;
  filter: none;
  opacity: 0.2;
}

.live-card-art img {
  filter: sepia(0.3) saturate(0.58) brightness(0.78) contrast(1.04);
}

.live-card-art::after {
  background: linear-gradient(180deg, rgba(8, 9, 7, 0.02), rgba(8, 9, 7, 0.55));
}

.hero-art {
  top: 22px;
  right: 6px;
  width: 42%;
  height: 170px;
  opacity: 0.14;
}

/* Baroque ground: repeating fleur-de-lis / scroll tile under the whole app */
body {
  background-image:
    url("art/brand/baroque-tile.svg"),
    radial-gradient(95% 58% at 50% -12%, rgba(232, 180, 74, 0.34) 0%, rgba(8, 9, 7, 0) 64%),
    radial-gradient(65% 45% at 108% 22%, rgba(47, 214, 161, 0.12) 0%, rgba(8, 9, 7, 0) 62%),
    radial-gradient(75% 52% at -15% 72%, rgba(255, 191, 87, 0.12) 0%, rgba(8, 9, 7, 0) 66%);
  background-size: 220px 220px, auto, auto, auto;
  background-position: center, center, center, center;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-color: var(--bg);
}

.app {
  background: transparent;
}

.stage {
  position: relative;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("art/brand/baroque-tile.svg") center / 180px 180px repeat;
  opacity: 0.16;
  pointer-events: none;
}

.stage > * {
  position: relative;
  z-index: 1;
}

/* Cases: auction-lot hierarchy, baroque corner frame and lot numbers */
.case-grid {
  gap: 10px;
  counter-reset: lot;
}

.case-card {
  counter-increment: lot;
  border-left: 2px solid var(--tier, var(--gold));
}

.case-card[data-case="lucky"],
.case-card[data-case="starter"],
.case-card[data-case="plush"],
.case-card[data-case="nftlite"],
.case-card[data-case="nftcool"] {
  --tier: var(--jade);
}

.case-card[data-case="neon"],
.case-card[data-case="pro"],
.case-card[data-case="space"] {
  --tier: var(--gold);
}

.case-card[data-case="legend"],
.case-card[data-case="dragon"],
.case-card[data-case="nftrare"] {
  --tier: var(--bronze);
}

.case-grid > .case-card:first-child {
  grid-column: 1 / -1;
  height: 236px;
}

.case-grid > .case-card:first-child .case-card-art {
  inset: 0 0 27% 0;
}

.case-grid > .case-card:first-child .case-card-name {
  font-size: 20px;
}

.case-grid > .case-card:first-child .case-card-tagline {
  font-size: 10.5px;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 6;
  border: 1px solid rgba(232, 180, 74, 0.14);
  background:
    linear-gradient(rgba(255, 217, 139, 0.8), rgba(255, 217, 139, 0.8)) left top / 18px 1px no-repeat,
    linear-gradient(rgba(255, 217, 139, 0.8), rgba(255, 217, 139, 0.8)) left top / 1px 18px no-repeat,
    linear-gradient(rgba(255, 217, 139, 0.8), rgba(255, 217, 139, 0.8)) right top / 18px 1px no-repeat,
    linear-gradient(rgba(255, 217, 139, 0.8), rgba(255, 217, 139, 0.8)) right top / 1px 18px no-repeat,
    linear-gradient(rgba(255, 217, 139, 0.8), rgba(255, 217, 139, 0.8)) left bottom / 18px 1px no-repeat,
    linear-gradient(rgba(255, 217, 139, 0.8), rgba(255, 217, 139, 0.8)) left bottom / 1px 18px no-repeat,
    linear-gradient(rgba(255, 217, 139, 0.8), rgba(255, 217, 139, 0.8)) right bottom / 18px 1px no-repeat,
    linear-gradient(rgba(255, 217, 139, 0.8), rgba(255, 217, 139, 0.8)) right bottom / 1px 18px no-repeat;
  pointer-events: none;
}

.case-card::after {
  content: "LOT " counter(lot, upper-roman);
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 7;
  padding: 2px 5px;
  border: 1px solid rgba(232, 180, 74, 0.24);
  background: rgba(8, 9, 7, 0.72);
  color: var(--gold);
  font-family: var(--serif-text);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  transform: translateX(-50%);
  pointer-events: none;
}

.case-select {
  gap: 12px;
}

.case-select-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232, 180, 74, 0.14);
}

.case-select-title {
  font-size: 18px;
}

.case-detail {
  padding: 13px;
  border-color: rgba(232, 180, 74, 0.26);
  background:
    linear-gradient(180deg, rgba(232, 180, 74, 0.045), rgba(0, 0, 0, 0.16)),
    rgba(8, 9, 7, 0.48);
}

.case-detail-head {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232, 180, 74, 0.14);
}

.case-detail-title {
  font-size: 18px;
}

.case-detail-badge {
  border-radius: 1px;
  border-color: rgba(232, 180, 74, 0.3);
  background: rgba(8, 9, 7, 0.6);
  color: var(--gold);
  font-family: var(--serif-text);
  font-size: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-pool-head {
  border-bottom: 1px solid rgba(232, 180, 74, 0.12);
  padding-bottom: 6px;
  font-family: var(--serif-text);
  color: #9e937d;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-pool-art {
  border-radius: 2px;
  border: 1px solid rgba(232, 180, 74, 0.16);
}

.case-pool-chance {
  border-radius: 1px;
  background: rgba(8, 9, 7, 0.82);
  font-family: var(--serif-text);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.case-multi-head {
  font-family: var(--serif-text);
  color: #9e937d;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-spin-label,
.case-spin-counter {
  font-family: var(--serif-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Case reel / pool: turn bright gift art into muted auction lots */
.case-cell {
  position: relative;
}

.case-cell-img {
  filter: sepia(0.25) saturate(0.6) brightness(0.82) contrast(1.03);
}

.case-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 9, 7, 0.04), rgba(8, 9, 7, 0.38));
  pointer-events: none;
}

.case-cell.gold::after {
  background: linear-gradient(180deg, rgba(232, 180, 74, 0.08), rgba(8, 9, 7, 0.3));
}

.case-pool-art {
  position: relative;
  overflow: hidden;
  background: #0a0b08;
}

.case-pool-art img {
  filter: sepia(0.25) saturate(0.6) brightness(0.82) contrast(1.03);
}

.case-pool-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 9, 7, 0.04), rgba(8, 9, 7, 0.4));
  pointer-events: none;
}

.case-pool-chance {
  z-index: 4;
}

.case-detail {
  background:
    linear-gradient(180deg, rgba(232, 180, 74, 0.045), rgba(0, 0, 0, 0.16)),
    rgba(8, 9, 7, 0.86);
}

.profile-card {
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(232, 180, 74, 0.1), rgba(8, 9, 7, 0) 65%),
    rgba(8, 9, 7, 0.84);
}

.balance-card {
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(232, 180, 74, 0.12), rgba(5, 5, 5, 0) 58%),
    rgba(8, 9, 7, 0.8);
}

.empty {
  background: rgba(8, 9, 7, 0.72);
}

.hist-row,
.op-row {
  background: rgba(8, 9, 7, 0.64);
}

.hero > .hero-noise {
  background-image:
    url("art/brand/baroque-tile.svg"),
    radial-gradient(rgba(255, 255, 255, 0.7) 0.65px, transparent 0.8px);
  background-size: 150px 150px, 13px 13px;
  background-position: center, center;
  background-repeat: repeat, repeat;
  opacity: 0.18;
}

.case-card[data-case="nftepic"],
.case-card[data-case="nftlegend"] {
  --tier: var(--bronze);
}

.case-card[data-case="nftepic"] .case-card-art::before,
.case-card[data-case="nftlegend"] .case-card-art::before {
  background-image: url("art/cases/case-tier-3.webp?v=20261121-22");
}

/* Fine damask ground from the reference tile */
body {
  background-image:
    url("art/brand/damask-tile.webp?v=20261124-1"),
    radial-gradient(95% 58% at 50% -12%, rgba(232, 180, 74, 0.34) 0%, rgba(8, 9, 7, 0) 64%),
    radial-gradient(65% 45% at 108% 22%, rgba(47, 214, 161, 0.12) 0%, rgba(8, 9, 7, 0) 62%),
    radial-gradient(75% 52% at -15% 72%, rgba(255, 191, 87, 0.12) 0%, rgba(8, 9, 7, 0) 66%);
  background-size: 150px 141px, auto, auto, auto;
  background-position: center, center, center, center;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-color: var(--bg);
}

.stage::before {
  background: url("art/brand/damask-tile.webp?v=20261124-1") center / 125px 117px repeat;
  opacity: 0.22;
}

.hero > .hero-noise {
  background-image:
    url("art/brand/damask-tile.webp?v=20261124-1"),
    radial-gradient(rgba(255, 255, 255, 0.7) 0.65px, transparent 0.8px);
  background-size: 108px 101px, 13px 13px;
  background-position: center, center;
  background-repeat: repeat, repeat;
  opacity: 0.16;
}

body {
  background-image:
    url("art/brand/damask-mirror.webp?v=20261124-1"),
    radial-gradient(95% 58% at 50% -12%, rgba(232, 180, 74, 0.34) 0%, rgba(8, 9, 7, 0) 64%),
    radial-gradient(65% 45% at 108% 22%, rgba(47, 214, 161, 0.12) 0%, rgba(8, 9, 7, 0) 62%),
    radial-gradient(75% 52% at -15% 72%, rgba(255, 191, 87, 0.12) 0%, rgba(8, 9, 7, 0) 66%);
  background-size: 180px 169px, auto, auto, auto;
  background-position: center, center, center, center;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-color: var(--bg);
}

.stage::before {
  background: url("art/brand/damask-mirror.webp?v=20261124-1") center / 140px 131px repeat;
  opacity: 0.17;
}

.hero > .hero-noise {
  background-image:
    url("art/brand/damask-mirror.webp?v=20261124-1"),
    radial-gradient(rgba(255, 255, 255, 0.7) 0.65px, transparent 0.8px);
  background-size: 120px 113px, 13px 13px;
  background-position: center, center;
  background-repeat: repeat, repeat;
  opacity: 0.13;
}

body {
  background-size: 160px 150px, auto, auto, auto;
}

.stage::before {
  background-size: 130px 122px;
  opacity: 0.2;
}

.hero > .hero-noise {
  background-size: 110px 103px, 13px 13px;
  opacity: 0.14;
}

/* Keep content plates readable over the damask */
.tasks-head {
  padding: 6px 8px;
  border: 1px solid rgba(232, 180, 74, 0.1);
  background: rgba(8, 9, 7, 0.66);
}

.tasks-summary {
  background: linear-gradient(120deg, rgba(24, 22, 16, 0.94), rgba(8, 9, 7, 0.9));
}

.stat {
  background: rgba(8, 9, 7, 0.78);
}

.balance-card {
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(232, 180, 74, 0.12), rgba(5, 5, 5, 0) 58%),
    rgba(8, 9, 7, 0.92);
}

.profile-card {
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(232, 180, 74, 0.1), rgba(8, 9, 7, 0) 65%),
    rgba(8, 9, 7, 0.92);
}

.panel {
  background: rgba(8, 9, 7, 0.88);
}

.empty {
  background: rgba(8, 9, 7, 0.86);
}

.hist-row,
.op-row {
  background: rgba(8, 9, 7, 0.82);
}

/* Softer gold-monochrome treatment for case contents */
.case-cell-img,
.case-pool-art img {
  filter: grayscale(0.42) sepia(0.5) saturate(0.48) brightness(0.82) contrast(1.06);
}

.bottom-nav {
  background-color: rgba(6, 7, 5, 0.92);
  background-image: url("art/brand/damask-mirror.webp?v=20261124-1");
  background-size: 150px 141px;
  background-position: center;
  background-repeat: repeat;
}

body {
  background-size: 195px 183px, auto, auto, auto;
}

.stage::before {
  background-size: 160px 150px;
}

.hero > .hero-noise {
  background-size: 135px 127px, 13px 13px;
}

.bottom-nav {
  background-size: 185px 174px;
}

body {
  background-size: 240px 225px, auto, auto, auto;
}

.stage::before {
  background-size: 200px 188px;
}

.hero > .hero-noise {
  background-size: 170px 160px, 13px 13px;
}

.bottom-nav {
  background-size: 225px 211px;
}

body {
  background-size: 280px 263px, auto, auto, auto;
}

.stage::before {
  background-size: 230px 216px;
}

.hero > .hero-noise {
  background-size: 200px 188px, 13px 13px;
}

.bottom-nav {
  background-size: 265px 249px;
}
