:root {
  --bg: #020202;
  --bg-2: #080808;
  --bg-3: #111111;
  --panel: rgba(17, 17, 17, 0.94);
  --panel-2: rgba(12, 12, 12, 0.96);
  --panel-3: rgba(23, 23, 23, 0.98);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #f6f6f6;
  --muted: #a7a7a7;
  --muted-2: #7f7f7f;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1660px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.045), transparent 28%),
    linear-gradient(180deg, #000000 0%, #050505 28%, #090909 62%, #020202 100%);
  color: var(--text);
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 88%);
  opacity: 0.28;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

#app {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 16px), var(--max-width));
  margin: 0 auto;
  padding: 12px 0 18px;
}

.shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 332px;
  gap: 16px;
  min-height: calc(100vh - 24px);
}

.sidebar,
.topbar,
.page-section,
.rail {
  background:
    linear-gradient(180deg, rgba(24, 24, 24, 0.95), rgba(10, 10, 10, 0.98));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.sidebar::before,
.topbar::before,
.page-section::before,
.rail::before,
.hero-banner::before,
.hero-side::before,
.game-card::before,
.content-card::before,
.control-card::before,
.rail-card::before,
.promo-card::before,
.rule-card::before,
.info-card::before,
.table-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
}

.sidebar,
.rail {
  padding: 18px;
  border-radius: var(--radius-xl);
  position: sticky;
  top: 12px;
  height: fit-content;
  transform: translateZ(0);
}

.main-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.topbar {
  padding: 24px 24px 20px;
  border-radius: var(--radius-xl);
}

.page {
  display: grid;
  gap: 16px;
}

.page-section {
  padding: 22px;
  border-radius: var(--radius-xl);
}

.topbar-main,
.section-head,
.games-toolbar,
.surface-head,
.summary-line,
.rule-line,
.meta-line,
.rail-line,
.history-row,
.feed-item,
.top-game-row,
.hand-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.topbar-main {
  align-items: flex-start;
}

.topbar h1,
.section-title,
.brand-title,
.hero-title {
  margin: 0;
  font-family: "Space Grotesk", "Instrument Sans", sans-serif;
  letter-spacing: -0.045em;
}

.topbar h1 {
  font-size: clamp(2rem, 3vw, 2.95rem);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.85rem);
  line-height: 0.94;
  max-width: 920px;
  margin-bottom: 14px;
}

.brand-title {
  font-size: 1.7rem;
}

.eyebrow,
.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow::before,
.brand-kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.muted,
.section-copy,
.hero-copy,
.small,
.footer-note,
.hand-status {
  color: var(--muted);
  line-height: 1.65;
}

.small {
  font-size: 0.82rem;
}

.topbar-tools,
.metric-strip,
.hero-metrics,
.hero-actions,
.filter-row,
.chip-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-tools {
  justify-content: flex-end;
  min-width: min(100%, 560px);
}

.search-box,
.button,
.filter-chip,
.nav-button,
.quick-link,
.chip-button,
.outside-button,
.number-button {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  color: var(--text);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(100%, 300px);
  padding: 14px 16px;
  border-radius: 999px;
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
}

.search-box input::placeholder {
  color: #6f6f6f;
}

.button,
.nav-button,
.quick-link,
.chip-button,
.outside-button {
  padding: 12px 16px;
  border-radius: 14px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.24);
}

.button:hover,
.nav-button:hover,
.quick-link:hover,
.chip-button:hover,
.outside-button:hover,
.number-button:hover,
.filter-chip:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
}

.button:disabled,
.nav-button:disabled,
.quick-link:disabled,
.chip-button:disabled,
.outside-button:disabled,
.number-button:disabled,
.filter-chip:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
}

.button--primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  color: #050505;
  border-color: rgba(255, 255, 255, 0.35);
}

.button--ghost,
.quick-link,
.nav-button,
.filter-chip,
.chip-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
}

.button--danger {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.nav-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.nav-badge,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge--accent,
.badge--gold {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  color: var(--white);
}

.nav-button.active,
.chip-button.active,
.filter-chip.active,
.control-button.active {
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 28px rgba(0, 0, 0, 0.32);
}

.quick-link {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.brand-block,
.sidebar-section,
.rail,
.rail-card,
.content-card,
.control-card,
.promo-card,
.rule-card,
.info-card,
.table-card,
.hero-side,
.hero-banner,
.history-copy,
.feed-copy {
  display: grid;
  gap: 14px;
}

.sidebar-section + .sidebar-section {
  margin-top: 14px;
}

.nav-group {
  display: grid;
  gap: 10px;
}

.hero,
.view-grid,
.promo-grid,
.split-grid,
.rules-columns {
  display: grid;
  gap: 16px;
}

.hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.76fr);
}

.view-grid {
  grid-template-columns: minmax(0, 1.34fr) 360px;
}

.promo-grid,
.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-banner,
.hero-side,
.game-card,
.content-card,
.control-card,
.rail-card,
.promo-card,
.rule-card,
.info-card,
.table-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(7, 7, 7, 0.98));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-banner {
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(22, 22, 22, 0.98), rgba(4, 4, 4, 0.98));
}

.hero-side,
.content-card,
.control-card,
.rail-card,
.promo-card,
.rule-card,
.info-card {
  padding: 18px;
}

.table-card {
  padding: 18px;
}

.hero-copy {
  max-width: 740px;
}

.topbar-stat,
.wallet-stat,
.overview-row,
.rule-row,
.history-row,
.feed-item,
.bet-row,
.pay-row,
.status-pod,
.tip,
.top-game-row {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.topbar-stat,
.wallet-stat {
  min-width: 150px;
  padding: 14px 16px;
}

.stat-label {
  display: block;
  color: var(--muted-2);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.14rem;
  font-weight: 700;
}

.positive {
  color: var(--white);
}

.negative {
  color: #b7b7b7;
}

.card-grid,
.steps-grid,
.tips-grid,
.mini-grid {
  display: grid;
  gap: 14px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid,
.tips-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-card {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(7, 7, 7, 0.98));
}

.game-card-cover {
  padding: 22px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(27, 27, 27, 0.95), rgba(12, 12, 12, 0.97));
}

.game-card h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
}

.game-card-body {
  padding: 18px 20px 20px;
  display: grid;
  gap: 14px;
}

.table-status-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.status-pod {
  padding: 13px 14px;
}

.status-pod span {
  display: block;
  color: var(--muted-2);
  font-size: 0.76rem;
  margin-bottom: 6px;
}

.status-pod strong {
  font-size: 1rem;
}

.game-surface {
  border-radius: calc(var(--radius-lg) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #101010 0%, #060606 100%);
  padding: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 48px rgba(0, 0, 0, 0.4);
}

.deck-zone {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  align-items: center;
}

.deck-stack {
  position: relative;
  width: 92px;
  height: 122px;
  margin: 0 auto;
  perspective: 1000px;
}

.deck-stack span {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, #161616, #050505);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.deck-stack span:nth-child(1) {
  transform: translate3d(0, 0, 0) rotate(-4deg);
}

.deck-stack span:nth-child(2) {
  transform: translate3d(8px, -6px, 0) rotate(3deg);
}

.deck-stack span:nth-child(3) {
  transform: translate3d(16px, -12px, 0) rotate(-2deg);
}

.deck-copy strong {
  font-size: 1rem;
}

.surface-divider {
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.cards-row,
.hands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hands-row {
  align-items: flex-start;
}

.playing-card {
  --deal-index: 0;
  width: 78px;
  height: 112px;
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(220, 220, 220, 0.98));
  color: #050505;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 28px rgba(0, 0, 0, 0.34);
  transform: perspective(900px) rotateX(14deg) rotateY(-8deg) translate3d(0, 0, 0);
  animation: dealCard 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--deal-index) * 85ms);
  will-change: transform, opacity;
}

.playing-card:hover {
  transform: perspective(900px) rotateX(8deg) rotateY(0deg) translate3d(0, -4px, 0);
}

.playing-card.red {
  color: #050505;
}

.playing-card.hidden {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, #161616, #050505);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.playing-card strong {
  font-size: 1.1rem;
}

.playing-card span:last-child {
  align-self: flex-end;
  font-size: 1.34rem;
}

@keyframes dealCard {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(38deg) rotateY(-24deg) translate3d(80px, -42px, 0);
  }

  to {
    opacity: 1;
    transform: perspective(900px) rotateX(14deg) rotateY(-8deg) translate3d(0, 0, 0);
  }
}

.hand-card {
  min-width: 228px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 28px rgba(0, 0, 0, 0.18);
}

.hand-card.active {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 30px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--muted-2);
  font-size: 0.82rem;
}

.form-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  outline: 0;
}

.form-field input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.tips-grid .tip,
.steps-grid .step-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}

.roulette-layout,
.slots-layout,
.roulette-stage,
.slot-display,
.panel-stack,
.summary-list,
.history-list,
.feed-list,
.paytable-list,
.rule-list,
.history-grid,
.open-bets-grid {
  display: grid;
  gap: 12px;
}

.roulette-board {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
}

.roulette-stage {
  grid-template-columns: minmax(220px, 252px) minmax(0, 1fr);
  align-items: center;
}

.wheel-shell {
  display: grid;
  place-items: center;
}

.wheel-ring {
  position: relative;
  width: min(100%, 252px);
  aspect-ratio: 1;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.32));
}

.wheel-disc,
.wheel-orbit,
.wheel-core {
  position: absolute;
}

.wheel-disc {
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0 44%, transparent 45%),
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0.16) 0deg 10deg,
      rgba(10, 10, 10, 0.98) 10deg 20deg
    );
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 48px rgba(0, 0, 0, 0.38),
    0 22px 36px rgba(0, 0, 0, 0.34);
  transform: perspective(900px) rotateX(64deg);
  transform-style: preserve-3d;
}

.wheel-disc::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.94), rgba(6, 6, 6, 0.98));
}

.wheel-orbit {
  inset: 0;
}

.wheel-ball {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #d8d8d8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 16px rgba(0, 0, 0, 0.26);
}

.wheel-core {
  inset: 50% auto auto 50%;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(26, 26, 26, 0.98), rgba(6, 6, 6, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 20px rgba(0, 0, 0, 0.26);
  z-index: 2;
}

.wheel-core span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.wheel-core small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.wheel-shell.spinning .wheel-disc {
  animation: wheelSpin 1400ms linear infinite;
}

.wheel-shell.spinning .wheel-orbit {
  animation: wheelSpin 950ms linear infinite reverse;
}

@keyframes wheelSpin {
  from {
    transform: perspective(900px) rotateX(64deg) rotateZ(0deg);
  }

  to {
    transform: perspective(900px) rotateX(64deg) rotateZ(360deg);
  }
}

.wheel-panel {
  min-height: 100%;
}

.number-grid,
.outside-grid {
  display: grid;
  gap: 8px;
}

.number-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.outside-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.outside-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.number-button {
  min-height: 64px;
  padding: 12px;
  border-radius: 12px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.number-button.red {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
}

.number-button.black {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18));
}

.number-button.green {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07));
  color: #060606;
}

.outside-button.red,
.outside-button.black,
.outside-button.green {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
}

.slot-machine {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.98), rgba(5, 5, 5, 0.99));
  padding: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -24px 44px rgba(0, 0, 0, 0.38);
}

.slot-display {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slot-display-card {
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(22, 22, 22, 0.98), rgba(6, 6, 6, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 26px rgba(0, 0, 0, 0.22);
}

.slot-display-card span {
  display: block;
  color: var(--muted-2);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.slot-display-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.slot-window {
  display: grid;
  gap: 8px;
}

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

.slot-cell {
  min-height: 92px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.slot-cell-symbol {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.48rem;
  font-weight: 700;
}

.slot-cell-name {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.74rem;
}

.slot-machine.spinning .slot-cell {
  animation: reelPulse 500ms ease-in-out infinite alternate;
}

@keyframes reelPulse {
  from {
    transform: translateY(0);
    border-color: var(--line-soft);
  }

  to {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
  }
}

.empty-state {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
}

.history-row,
.feed-item,
.bet-row,
.pay-row,
.rule-row,
.overview-row,
.top-game-row {
  padding: 12px 14px;
}

.history-row strong:last-child,
.feed-item strong:last-child {
  white-space: nowrap;
}

.footer-note {
  font-size: 0.82rem;
}

@media (max-width: 1420px) {
  .shell {
    grid-template-columns: 228px minmax(0, 1fr);
  }

  .rail {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .hero,
  .view-grid,
  .promo-grid,
  .split-grid,
  .rules-columns,
  .card-grid,
  .steps-grid,
  .tips-grid,
  .table-status-bar,
  .roulette-stage,
  .slot-display {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  #app {
    width: min(calc(100% - 10px), var(--max-width));
    padding: 10px 0 16px;
  }

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

  .sidebar,
  .rail {
    position: static;
  }

  .sidebar {
    order: 0;
  }

  .main-stack {
    order: 1;
  }

  .rail {
    order: 2;
    grid-template-columns: 1fr;
  }

  .topbar-main,
  .games-toolbar,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-tools {
    justify-content: stretch;
    min-width: 0;
  }

  .metric-strip,
  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-title {
    font-size: clamp(1.85rem, 9vw, 2.8rem);
  }
}

@media (max-width: 720px) {
  .sidebar,
  .topbar,
  .page-section,
  .rail {
    padding: 16px;
    border-radius: 22px;
  }

  .topbar-tools,
  .hero-actions,
  .chip-row,
  .action-row {
    flex-direction: column;
  }

  .metric-strip,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .search-box,
  .button,
  .quick-link,
  .nav-button,
  .chip-button {
    width: 100%;
  }

  .roulette-board,
  .deck-zone {
    grid-template-columns: 1fr;
  }

  .outside-grid.two,
  .outside-grid.three,
  .nav-group,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .slot-row {
    gap: 6px;
  }

  .slot-cell {
    min-height: 76px;
  }

  .playing-card {
    width: 68px;
    height: 98px;
    padding: 10px;
  }
}

@media (max-width: 560px) {
  .topbar h1 {
    font-size: clamp(1.72rem, 8vw, 2.2rem);
  }

  .hero-title {
    font-size: clamp(1.7rem, 10vw, 2.4rem);
  }

  .topbar-stat,
  .wallet-stat,
  .slot-display-card,
  .status-pod {
    min-width: 0;
    padding: 13px 14px;
  }

  .wheel-ring {
    width: min(100%, 220px);
  }

  .wheel-core {
    width: 92px;
    height: 92px;
  }

  .wheel-core span {
    font-size: 1.72rem;
  }

  .number-button {
    min-height: 56px;
  }

  .slot-cell {
    min-height: 68px;
  }

  .slot-cell-symbol {
    font-size: 1.2rem;
  }

  .slot-cell-name {
    font-size: 0.68rem;
  }
}

@media (max-width: 420px) {
  #app {
    width: min(calc(100% - 8px), var(--max-width));
    padding: 8px 0 14px;
  }

  .sidebar,
  .topbar,
  .page-section,
  .rail {
    padding: 14px;
    border-radius: 20px;
  }

  .playing-card {
    width: 60px;
    height: 88px;
    padding: 8px;
  }

  .playing-card strong {
    font-size: 0.96rem;
  }

  .playing-card span:last-child {
    font-size: 1.08rem;
  }

  .slot-cell-name {
    display: none;
  }
}
