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

:root {
  --bg-primary: #0f212e;
  --bg-panel: #1a2c38;
  --bg-card: #213743;
  --border-color: #2f4553;
  --text-muted: #b1bad3;
  --text-dim: #6b7a8f;
  --green: #00e701;
  --green-dim: #1fff20;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: var(--bg-primary);
  color: #ecf0f6;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 33, 46, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.header-left {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  outline: none;
}

.logo:focus-visible {
  box-shadow: 0 0 0 2px var(--green);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: white;
}

.logo-badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  background: rgba(0, 231, 1, 0.15);
  color: var(--green);
}

.nav {
  display: flex;
  gap: 0.125rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  max-width: 520px;
  flex: 1;
}

.nav-btn {
  padding: 0.5rem 0.625rem;
  font-size: 0.75rem;
  border-radius: 6px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-btn:hover {
  background: var(--bg-card);
  color: white;
}

.nav-btn.active {
  background: var(--bg-card);
  color: white;
}

.header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.wallet-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background: var(--bg-card);
  border-radius: 6px;
  display: none;
}

.wallet-btn:hover {
  background: var(--border-color);
}

.balance-display {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.25rem 0.375rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
}

.balance-amount {
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  font-variant-numeric: tabular-nums;
}

.balance-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.balance-reset:hover {
  background: var(--bg-card);
  color: var(--green);
}

.register-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--green);
  border-radius: 6px;
}

.register-btn:hover {
  filter: brightness(1.1);
}

/* Main */
.main-content {
  flex: 1;
  padding: 1.5rem 1rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  background: linear-gradient(to bottom right, #1a2c38, #0f212e, #13252f);
  padding: 2rem;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 560px;
}

.hero-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--green);
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: white;
  margin-top: 0.75rem;
  line-height: 1.2;
}

.hero-text {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-btn-primary {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--green);
  border-radius: 8px;
}

.hero-btn-primary:hover {
  filter: brightness(1.1);
}

.hero-btn-secondary {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.hero-btn-secondary:hover {
  border-color: rgba(0, 231, 1, 0.5);
}

.hero-glow {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(0, 231, 1, 0.1);
  filter: blur(3rem);
  top: -5rem;
  right: -5rem;
  pointer-events: none;
}

/* Search */
.search-bar {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: white;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-input:focus {
  border-color: rgba(0, 231, 1, 0.5);
}

.search-count {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Games */
.game-section {
  margin-top: 2.5rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.game-card:hover {
  border-color: rgba(0, 231, 1, 0.4);
  box-shadow: 0 10px 40px rgba(0, 231, 1, 0.05);
}

.game-card-image {
  aspect-ratio: 4/3;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
}

.game-card-image.crash { background: linear-gradient(to bottom right, rgba(134, 25, 143, 0.8), rgba(192, 36, 168, 0.4)); }
.game-card-image.dice { background: linear-gradient(to bottom right, rgba(5, 150, 105, 0.8), rgba(20, 131, 100, 0.4)); }
.game-card-image.mines { background: linear-gradient(to bottom right, rgba(217, 119, 6, 0.8), rgba(180, 83, 9, 0.4)); }
.game-card-image.plinko { background: linear-gradient(to bottom right, rgba(14, 165, 233, 0.8), rgba(30, 58, 138, 0.4)); }
.game-card-image.limbo { background: linear-gradient(to bottom right, rgba(225, 29, 72, 0.8), rgba(134, 25, 143, 0.4)); }
.game-card-image.wheel { background: linear-gradient(to bottom right, rgba(234, 179, 8, 0.8), rgba(161, 98, 7, 0.4)); }
.game-card-image.hilo { background: linear-gradient(to bottom right, rgba(79, 70, 229, 0.8), rgba(91, 33, 182, 0.4)); }
.game-card-image.slots { background: linear-gradient(to bottom right, rgba(220, 38, 38, 0.8), rgba(136, 19, 55, 0.4)); }
.game-card-image.roulette { background: linear-gradient(to bottom right, rgba(21, 128, 61, 0.8), rgba(6, 78, 59, 0.4)); }
.game-card-image.blackjack { background: linear-gradient(to bottom right, rgba(71, 85, 105, 0.8), rgba(24, 24, 27, 0.4)); }
.game-card-image.baccarat { background: linear-gradient(to bottom right, rgba(8, 145, 178, 0.8), rgba(30, 58, 138, 0.4)); }
.game-card-image.keno { background: linear-gradient(to bottom right, rgba(162, 28, 175, 0.8), rgba(88, 28, 135, 0.4)); }
.game-card-image.videopoker { background: linear-gradient(to bottom right, rgba(101, 163, 13, 0.8), rgba(22, 101, 52, 0.4)); }

.game-card-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.game-card-play {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.15s;
}

.game-card:hover .game-card-play {
  opacity: 1;
}

.game-card-info {
  padding: 0.75rem;
}

.game-card-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
}

.game-card-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

/* Game Page */
.game-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.game-back:hover {
  color: white;
}

.game-header {
  margin-bottom: 1.5rem;
}

.game-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: white;
}

.game-subtitle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.game-panel {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-panel);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Crash Game */
.crash-display {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border-width: 2px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.crash-display.idle {
  border-color: var(--border-color);
  background: var(--bg-primary);
}

.crash-display.running {
  border-color: var(--green);
  background: rgba(0, 231, 1, 0.05);
}

.crash-display.cashed {
  border-color: var(--green);
  background: rgba(0, 231, 1, 0.1);
}

.crash-display.crashed {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
}

.crash-multiplier {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  font-variant-numeric: tabular-nums;
}

.crash-message {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Bet Input */
.bet-input-group {
  margin-top: 1.5rem;
}

.bet-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.bet-hint {
  font-size: 0.625rem;
  color: var(--text-dim);
  margin-top: 0.125rem;
}

.bet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.bet-field {
  flex: 1;
  min-width: 120px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: white;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  outline: none;
}

.bet-field::placeholder {
  color: #4a5a6b;
}

.bet-field:focus {
  border-color: var(--green);
}

.bet-field:disabled {
  opacity: 0.5;
}

.bet-preset {
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.bet-preset:hover:not(:disabled) {
  border-color: var(--green);
  color: white;
}

.bet-preset:disabled {
  opacity: 0.5;
}

/* Buttons */
.game-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--green);
  border-radius: 8px;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
}

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

/* Dice */
.dice-slider {
  width: 100%;
  margin-top: 0.5rem;
  accent-color: var(--green);
}

.dice-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.dice-target {
  font-family: monospace;
  color: white;
}

.dice-visual {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.dice {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.dice.rolling {
  animation: dice-wobble 0.3s ease-in-out infinite;
}

@keyframes dice-wobble {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-4px); }
}

.roll-result {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  padding: 1.5rem;
  text-align: center;
}

.roll-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.roll-value {
  margin-top: 0.5rem;
  font-family: monospace;
  font-size: 2.5rem;
  color: white;
}

.roll-message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Slots */
.slots-reels {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.slot-reel {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.slots-msg {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--green);
}

/* Placeholder Page */
.static-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.static-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
}

.static-body {
  margin-top: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.static-btn {
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--green);
  border-radius: 8px;
}

.static-btn:hover {
  filter: brightness(1.1);
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background: #0a1921;
  padding: 2.5rem 1rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}

.footer-heading {
  font-weight: 600;
  color: var(--text-muted);
}

.footer-list {
  list-style: none;
  margin-top: 0.75rem;
}

.footer-list li {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer-copyright {
  max-width: 1400px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 0.75rem;
  color: #4a5a6b;
}

/* Mines */
.mines-grid {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.mines-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.375rem;
  width: min(100%, 320px);
}

.mines-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.15s;
}

.mines-cell:hover:not(:disabled) {
  border-color: rgba(0, 231, 1, 0.5);
}

.mines-cell:disabled {
  cursor: not-allowed;
}

.mines-cell.mines-revealed-mine {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.2);
}

.mines-cell.mines-revealed-gem {
  border-color: rgba(0, 231, 1, 0.4);
  background: rgba(0, 231, 1, 0.1);
}

/* Plinko */
.plinko-board {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plinko-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.plinko-peg {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.plinko-slot {
  width: 40px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.plinko-slot.active {
  border-color: var(--green);
  background: rgba(0, 231, 1, 0.2);
  color: var(--green);
}

/* Wheel */
.wheel-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 1.5rem;
}

.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid var(--green);
  z-index: 10;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #22c55e 0deg 22.5deg,
    #3b82f6 22.5deg 45deg,
    #eab308 45deg 67.5deg,
    #ef4444 67.5deg 90deg,
    #8b5cf6 90deg 112.5deg,
    #ec4899 112.5deg 135deg,
    #14b8a6 135deg 157.5deg,
    #f97316 157.5deg 180deg,
    #22c55e 180deg 202.5deg,
    #3b82f6 202.5deg 225deg,
    #eab308 225deg 247.5deg,
    #ef4444 247.5deg 270deg,
    #8b5cf6 270deg 292.5deg,
    #ec4899 292.5deg 315deg,
    #14b8a6 315deg 337.5deg,
    #f97316 337.5deg 360deg
  );
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border: 4px solid var(--border-color);
}

.wheel-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  left: 50%;
  top: 0;
  transform-origin: 0% 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  font-size: 0.625rem;
  font-weight: 600;
  color: white;
}

.wheel-segment.bust {
  color: #ef4444;
}

.wheel-segment:nth-child(1) { transform: rotate(0deg) skewY(-67.5deg); }
.wheel-segment:nth-child(2) { transform: rotate(22.5deg) skewY(-67.5deg); }
.wheel-segment:nth-child(3) { transform: rotate(45deg) skewY(-67.5deg); }
.wheel-segment:nth-child(4) { transform: rotate(67.5deg) skewY(-67.5deg); }
.wheel-segment:nth-child(5) { transform: rotate(90deg) skewY(-67.5deg); }
.wheel-segment:nth-child(6) { transform: rotate(112.5deg) skewY(-67.5deg); }
.wheel-segment:nth-child(7) { transform: rotate(135deg) skewY(-67.5deg); }
.wheel-segment:nth-child(8) { transform: rotate(157.5deg) skewY(-67.5deg); }
.wheel-segment:nth-child(9) { transform: rotate(180deg) skewY(-67.5deg); }
.wheel-segment:nth-child(10) { transform: rotate(202.5deg) skewY(-67.5deg); }
.wheel-segment:nth-child(11) { transform: rotate(225deg) skewY(-67.5deg); }
.wheel-segment:nth-child(12) { transform: rotate(247.5deg) skewY(-67.5deg); }
.wheel-segment:nth-child(13) { transform: rotate(270deg) skewY(-67.5deg); }
.wheel-segment:nth-child(14) { transform: rotate(292.5deg) skewY(-67.5deg); }
.wheel-segment:nth-child(15) { transform: rotate(315deg) skewY(-67.5deg); }
.wheel-segment:nth-child(16) { transform: rotate(337.5deg) skewY(-67.5deg); }

/* Hilo buttons */
.btn-secondary {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-outline {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.btn-outline:hover {
  color: white;
  border-color: var(--text-muted);
}

/* Roulette */
.roulette-wheel-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.roulette-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-wrap: wrap;
  border: 3px solid var(--border-color);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-pocket {
  width: calc(100% / 7.4);
  height: calc(100% / 7.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 600;
}

.roulette-pocket.red { background: #ef4444; color: white; }
.roulette-pocket.black { background: #1f2937; color: white; }
.roulette-pocket.green { background: #22c55e; color: white; }

.roulette-table {
  margin: 1rem 0;
}

.roulette-bets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.roulette-bet-btn {
  padding: 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
}

.roulette-bet-btn:hover {
  border-color: var(--green);
  color: white;
}

.roulette-bet-btn.active {
  border-color: var(--green);
  background: rgba(0, 231, 1, 0.15);
  color: var(--green);
}

/* Blackjack */
.blackjack-table {
  padding: 1.5rem;
  background: #14532d;
  border-radius: 8px;
  border: 2px solid #166534;
  margin-bottom: 1rem;
}

.bj-hand {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  min-height: 90px;
  flex-wrap: wrap;
}

.bj-value {
  text-align: center;
  font-family: monospace;
  font-size: 1.25rem;
  color: white;
  margin: 0.5rem 0;
}

.playing-card {
  width: 56px;
  height: 80px;
  background: white;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  font-weight: 700;
  font-size: 1.25rem;
  position: relative;
}

.playing-card.back {
  background: linear-gradient(135deg, #dc2626 25%, #991b1b 25%, #991b1b 50%, #dc2626 50%, #dc2626 75%, #991b1b 75%);
  background-size: 8px 8px;
}

.playing-card.empty {
  background: transparent;
  border: 2px dashed #166534;
  color: #166534;
  font-size: 0.75rem;
}

/* Baccarat */
.baccarat-table {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bacc-side {
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.bacc-side:hover {
  border-color: rgba(0, 231, 1, 0.5);
}

.bacc-side.active {
  border-color: var(--green);
  background: rgba(0, 231, 1, 0.1);
}

.bacc-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.bacc-score {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

/* Keno */
.keno-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.375rem;
}

@media (max-width: 500px) {
  .keno-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.keno-cell {
  padding: 0.5rem 0.25rem;
  font-size: 0.625rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.15s;
}

.keno-cell:hover {
  border-color: rgba(0, 231, 1, 0.5);
}

.keno-cell.picked {
  border-color: var(--green);
  background: rgba(0, 231, 1, 0.2);
  color: white;
}

/* Video Poker */
.vp-hand {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 120px;
  margin-bottom: 1rem;
}

.vp-card {
  width: 64px;
  height: 96px;
  background: white;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s;
}

.vp-card:hover {
  transform: translateY(-4px);
}

.vp-card.held::after {
  content: 'HELD';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--green);
  background: var(--bg-panel);
  padding: 2px 4px;
  border-radius: 2px;
}

.vp-rank {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

.vp-suit {
  font-size: 1.5rem;
}

.vp-cards-empty {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.875rem;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
}

/* Responsive */
@media (min-width: 640px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .wallet-btn {
    display: block;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 3rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .crash-multiplier {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .footer-inner {
    grid-template-columns: repeat(4, 1fr);
  }
  .nav {
    max-width: none;
    gap: 0.25rem;
  }
  .nav-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}
