:root {
  --bg: #0a0b12;
  --bg-2: #14162a;
  --panel: #121420;
  --accent: #ff6b2d;
  --accent-2: #ffb347;
  --muted: #8c90b4;
  --text: #f6f7ff;
  --border: #272a40;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at 20% 20%, #1c1f3a 0%, #0a0b12 50%, #06070c 100%);
  color: var(--text);
  min-height: 100vh;
}

.glow {
  position: fixed;
  width: 500px;
  height: 500px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(255, 107, 45, 0.4), transparent 60%);
  filter: blur(10px);
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.header h1 {
  font-family: "Syne", sans-serif;
  font-size: 36px;
  margin: 4px 0 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-2);
  font-size: 11px;
  margin: 0;
}

.user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.panel {
  background: linear-gradient(135deg, rgba(18, 20, 32, 0.94), rgba(16, 19, 32, 0.86));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px 22px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.tab.active {
  background: var(--accent);
  border-color: transparent;
  color: #0c0e15;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(260px, 1fr);
  gap: 20px;
}

.game-card,
.board-card {
  background: rgba(15, 16, 28, 0.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}

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

.bet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.bet-value {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: none;
  color: #0b0c12;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.result {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  min-height: 48px;
}

.note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.plinko-board {
  position: relative;
  height: 280px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 60%);
  overflow: hidden;
}

.ball {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.7s ease, top 0.7s ease;
  opacity: 0;
}

.ball.active {
  opacity: 1;
}

.slots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
  padding: 0 12px;
}

.slots div {
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.multiplier-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.coming {
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
}