@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Space+Mono:wght@400;600&display=swap");

:root {
  --bg-1: #0f172a;
  --bg-2: #0b1324;
  --bg-3: #121c3b;
  --accent: #f2c94c;
  --accent-2: #48c7c8;
  --accent-3: #ef6f6c;
  --card: rgba(18, 28, 59, 0.9);
  --text: #e6edf7;
  --muted: #95a3b8;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(8, 12, 28, 0.5);
  --radius: 18px;
  --font-title: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at top, var(--bg-3), var(--bg-1) 35%, var(--bg-2) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(242, 201, 76, 0.15), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(72, 199, 200, 0.12), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(239, 111, 108, 0.12), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
  animation: rise 0.6s ease-out;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.2vw, 44px);
  margin: 0 0 8px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s ease-out;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 201, 76, 0.22);
}

.trade-card .stat {
  font-size: 22px;
}

.trade-card {
  padding: 16px;
}

.trade-card h3 {
  margin-bottom: 8px;
}

.trade-card p {
  margin-bottom: 8px;
}

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

.trade-subline {
  margin-top: 4px;
}

.trade-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.trade-toolbar .trade-steps {
  white-space: nowrap;
}

.trade-live {
  text-align: right;
}

.trade-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) minmax(0, 0.9fr);
  gap: 14px;
  align-items: stretch;
}

.trade-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--muted);
}

.trade-steps .step {
  font-size: 12px;
  color: var(--muted);
}

.trade-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.trade-range {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.4);
  align-self: flex-start;
}

.trade-range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trade-zoom {
  display: inline-flex;
  gap: 6px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.4);
}

.zoom-btn {
  font-weight: 700;
}

.range-btn {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.range-btn.active {
  border-color: rgba(72, 199, 200, 0.6);
  background: linear-gradient(135deg, rgba(72, 199, 200, 0.25), rgba(72, 199, 200, 0.08));
  color: #c8f7f7;
}

.range-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.trade-chart {
  width: 100%;
  height: auto;
  min-height: 240px;
  flex: 1;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(12, 18, 38, 0.65);
  padding: 6px;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.trade-chart canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.trade-chart.dragging {
  cursor: grabbing;
}

.trade-tooltip {
  position: absolute;
  background: rgba(8, 12, 24, 0.92);
  border: 1px solid rgba(72, 199, 200, 0.45);
  color: #e6edf7;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(8, 12, 28, 0.4);
}

.trade-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.trade-position {
  border-radius: 12px;
  border: 1px dashed var(--border);
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.order-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(12, 18, 38, 0.7);
  padding: 8px;
  display: grid;
  gap: 5px;
}

.order-card.buy {
  border-color: rgba(72, 199, 200, 0.35);
}

.order-card.sell {
  border-color: rgba(242, 201, 76, 0.35);
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-preview {
  font-family: var(--font-mono);
  color: #c8f7f7;
}

.order-card .muted.small {
  font-size: 11px;
}

@media (max-width: 860px) {
  .trade-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .trade-live {
    text-align: left;
  }

  .trade-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.order-card.sell .order-preview {
  color: #f2c94c;
}

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

.input-row .input {
  flex: 1;
}

.mini-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.mini-btn:hover:not(:disabled) {
  border-color: rgba(72, 199, 200, 0.6);
}

.trade-hint {
  font-size: 12px;
  line-height: 1.5;
}

.trade-osc-labels {
  gap: 12px;
}

.trade-osc-labels span {
  flex: 1;
  min-width: 90px;
}

.minigame-card .tag {
  background: rgba(72, 199, 200, 0.12);
  color: #7fe4e5;
}

.minigame-shell {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.minigame-select {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.minigame-select .input {
  max-width: 280px;
}

.minigame-panel.compact {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(10, 16, 33, 0.92), rgba(14, 22, 45, 0.78));
  padding: 14px;
  display: grid;
  gap: 10px;
}

.minigame-panel.compact .btn {
  padding: 8px 14px;
  font-size: 12px;
}

.minigame-panel-body {
  display: grid;
  gap: 10px;
}

.mini-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.mini-stats-row .mini-stat {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.mini-stats-row .mini-stat strong {
  font-size: 13px;
  color: var(--text);
  font-family: var(--font-mono);
}

.mini-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--muted);
}

.mini-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mini-action-row .minigame-bet {
  width: 180px;
}

.mini-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.mini-payout {
  font-weight: 600;
  color: #e7f3ff;
}

.mini-countdown {
  font-size: 12px;
  color: var(--muted);
}

.mini-countdown.ready {
  color: #18ed00;
}

.mini-result {
  min-height: 16px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.minigame-panel.compact.win .mini-result {
  color: #18ed00;
}

.minigame-panel.compact.lose .mini-result {
  color: #f6a19f;
}

.minigame-panel.compact.played {
  animation: pulse 0.45s ease;
}

.minigame-panel.compact.is-cooldown {
  opacity: 0.85;
}

.minigame-arcade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.minigame-arcade-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(10, 16, 33, 0.9), rgba(16, 24, 50, 0.7));
  padding: 12px;
  display: grid;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.minigame-arcade-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(72, 199, 200, 0.15), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.minigame-arcade-card > * {
  position: relative;
  z-index: 1;
}

.minigame-arcade-card:hover {
  transform: translateY(-2px);
  border-color: rgba(72, 199, 200, 0.35);
}

.minigame-arcade-card.is-cooldown {
  opacity: 0.8;
}

.game-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #0b1224;
  background: linear-gradient(135deg, #7fe4e5, #48c7c8);
  box-shadow: 0 10px 18px rgba(72, 199, 200, 0.35);
}

.game-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.minigame-arcade-card.tone-fresh .game-icon {
  background: linear-gradient(135deg, #7fe4e5, #48c7c8);
}

.minigame-arcade-card.tone-gold .game-icon {
  background: linear-gradient(135deg, #f2c94c, #ffd479);
}

.minigame-arcade-card.tone-amber .game-icon {
  background: linear-gradient(135deg, #f6a19f, #f2c94c);
}

.minigame-arcade-card.tone-neon .game-icon {
  background: linear-gradient(135deg, #18ed00, #7fe4e5);
}

.minigame-arcade-card.tone-steel .game-icon {
  background: linear-gradient(135deg, #7d8ea6, #b6c1d1);
}

.minigame-arcade-card.tone-violet .game-icon {
  background: linear-gradient(135deg, #c202ed, #7fe4e5);
}

.game-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.game-main {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.game-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.game-title {
  font-size: 15px;
  font-weight: 700;
}

.game-sub {
  font-size: 11px;
  color: var(--muted);
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.game-badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 8px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.game-cta {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.game-cta-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.minigame-bet {
  width: 110px;
  padding: 8px 10px;
}

.minigame-play {
  padding: 8px 14px;
  font-size: 12px;
  box-shadow: 0 6px 14px rgba(72, 199, 200, 0.25);
}

.game-payout {
  font-size: 12px;
  font-weight: 600;
  color: #e7f3ff;
}

.game-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-countdown {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

.game-countdown.ready {
  color: #18ed00;
}

.game-result {
  min-height: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

.minigame-arcade-card.win .game-result {
  color: #18ed00;
}

.minigame-arcade-card.lose .game-result {
  color: #f6a19f;
}

.minigame-arcade-card.played {
  animation: pulse 0.45s ease;
}

.minigame-lobby {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.minigame-lobby.hidden {
  display: none;
}

.minigame-choice {
  appearance: none;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(10, 16, 33, 0.9), rgba(16, 24, 50, 0.75));
  padding: 16px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  color: var(--text);
}

.minigame-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(72, 199, 200, 0.35);
}

.minigame-choice .choice-title {
  font-size: 18px;
  font-weight: 700;
}

.minigame-choice .choice-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.minigame-choice .choice-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #0b1a2a;
  background: linear-gradient(135deg, #7fe4e5, #48c7c8);
  box-shadow: 0 8px 18px rgba(72, 199, 200, 0.35);
}

.minigame-choice[data-game="mines"] .choice-icon {
  background: linear-gradient(135deg, #7fe4e5, #f2c94c);
}

.minigame-choice[data-game="pump"] .choice-icon {
  background: linear-gradient(135deg, #7fe4e5, #18ed00);
}

.minigame-choice[data-game="plinko"] .choice-icon {
  background: linear-gradient(135deg, #7fe4e5, #ef6f6c);
}

.minigame-choice[data-game="roulette"] .choice-icon {
  background: linear-gradient(135deg, #7fe4e5, #f2c94c);
}

.minigame-choice .choice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.minigame-choice .choice-tag {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--muted);
}

.minigame-view {
  margin-top: 16px;
  display: none;
}

.minigame-view.active {
  display: block;
}

.minigame-view-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.minigame-back {
  width: 36px;
  height: 36px;
}

.minigame-view-title {
  font-size: 18px;
  font-weight: 700;
}

.minigame-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 18px;
}

.minigame-panel {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(10, 16, 33, 0.92), rgba(14, 22, 45, 0.78));
  padding: 16px;
  display: grid;
  gap: 12px;
}

.mini-section {
  display: grid;
  gap: 6px;
}

.section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.mini-stat {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.mini-stat strong {
  font-size: 15px;
  font-family: var(--font-mono);
  color: var(--text);
}

.mini-actions {
  display: grid;
  gap: 8px;
}

.mini-guide {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.mini-guide li::before {
  content: "- ";
  color: rgba(127, 228, 229, 0.8);
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(72, 199, 200, 0.4);
  background: rgba(72, 199, 200, 0.15);
  color: #7fe4e5;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.mines-grid {
  display: grid;
  grid-template-columns: repeat(var(--mines-cols, 5), minmax(0, 1fr));
  gap: 12px;
}

.mines-tile {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(14, 22, 45, 0.95), rgba(10, 16, 33, 0.75));
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
  color: rgba(127, 228, 229, 0.9);
  box-shadow: inset 0 0 18px rgba(8, 12, 28, 0.45);
}

.mines-tile:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.mines-tile.revealed {
  transform: translateY(-2px);
  animation: tilePop 0.25s ease;
}

.mines-tile.safe {
  border-color: rgba(24, 237, 0, 0.5);
  background: rgba(24, 237, 0, 0.1);
  color: #18ed00;
  box-shadow: 0 0 18px rgba(24, 237, 0, 0.28);
}

.mines-tile.mine {
  border-color: rgba(239, 111, 108, 0.7);
  background: rgba(239, 111, 108, 0.12);
  color: #f6a19f;
  animation: mineShake 0.3s ease;
}

.mines-tile .tile-icon {
  width: 28px;
  height: 28px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mines-tile.revealed .tile-icon {
  opacity: 1;
  transform: scale(1);
}

.mines-board {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at top, rgba(72, 199, 200, 0.12), rgba(10, 16, 33, 0.9));
  padding: 16px;
  display: grid;
  gap: 12px;
}

.mines-status {
  font-size: 12px;
  color: var(--muted);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
}

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

.bet-row .input {
  flex: 1;
}

.pump-stage {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at top, rgba(72, 199, 200, 0.12), rgba(10, 16, 33, 0.9));
  padding: 20px;
  display: grid;
  gap: 16px;
  align-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.pump-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 260px;
  height: 120px;
  transform: translateX(-50%);
  border-radius: 80px 80px 20px 20px;
  background: rgba(24, 36, 64, 0.55);
  box-shadow: inset 0 -10px 20px rgba(8, 12, 28, 0.4);
}

.pump-stage::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.pump-balloon {
  width: 140px;
  height: 180px;
  border-radius: 60% 60% 55% 55%;
  background: radial-gradient(circle at 30% 25%, #bdf5f6 0%, #4caf50 50%, #388e3c 100%);
  position: relative;
  z-index: 2;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 6px 16px rgba(8, 12, 28, 0.45);
  transform: scale(var(--pump-scale, 1));
  transition: transform 0.25s ease;
  animation: float 3.6s ease-in-out infinite;
}

.pump-balloon.busted {
  background: radial-gradient(circle at 30% 25%, #f6a19f 0%, #ef6f6c 55%, #b64240 100%);
  box-shadow: 0 0 24px rgba(239, 111, 108, 0.45);
}

.pump-balloon::after {
  content: "";
  position: absolute;
  bottom: -14px;
  width: 28px;
  height: 20px;
  border-radius: 0 0 12px 12px;
  background: #2f4858;
}

.pump-glow {
  box-shadow: 0 0 24px rgba(72, 199, 200, 0.25);
}

.pump-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.pump-step {
  min-width: 70px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  font-weight: 600;
}

.pump-step.active {
  background: #18ed00;
  color: #0b1a0f;
  border-color: rgba(24, 237, 0, 0.6);
}

.pump-status {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
}

.plinko-board {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at top, rgba(72, 199, 200, 0.12), rgba(10, 16, 33, 0.9));
  padding: 18px;
  position: relative;
  min-height: 360px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(8, 12, 28, 0.6);
}

.plinko-pegs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.plinko-peg {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(127, 228, 229, 0.55);
  box-shadow: 0 0 12px rgba(72, 199, 200, 0.4);
  position: absolute;
}

.plinko-ball {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #48c7c8 60%, #1c465a);
  position: absolute;
  top: 10px;
  left: 10px;
  transform: translate(0, 0);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 18px rgba(72, 199, 200, 0.5);
}

.plinko-slots {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 8px;
}

.plinko-slot {
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 33, 0.7);
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.plinko-slot--low {
  color: var(--muted);
}

.plinko-slot--mid {
  color: #f2c94c;
  background: rgba(242, 201, 76, 0.12);
  border-color: rgba(242, 201, 76, 0.35);
}

.plinko-slot--high {
  color: #18ed00;
  background: rgba(24, 237, 0, 0.14);
  border-color: rgba(24, 237, 0, 0.4);
}

.plinko-slot.active {
  border-color: rgba(24, 237, 0, 0.6);
  background: rgba(24, 237, 0, 0.15);
  color: #18ed00;
  transform: translateY(-2px) scale(1.05);
  animation: slotPulse 0.8s ease;
}

.roulette-stage {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at top, rgba(242, 201, 76, 0.15), rgba(10, 16, 33, 0.9));
  padding: 20px;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.roulette-stage::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.roulette-wheel {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(8, 12, 28, 0.45);
  transition: transform 3s cubic-bezier(0.1, 0.7, 0.2, 1);
  position: relative;
}

.roulette-wheel::after {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: rgba(10, 16, 33, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.roulette-wheel.spinning {
  filter: drop-shadow(0 0 18px rgba(242, 201, 76, 0.5));
}

.roulette-pointer {
  position: absolute;
  top: 16px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid #f2c94c;
  filter: drop-shadow(0 0 8px rgba(242, 201, 76, 0.6));
}

.roulette-choices {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roulette-choice {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.2s ease;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.roulette-choice.red {
  border-color: rgba(239, 111, 108, 0.4);
}

.roulette-choice.black {
  border-color: rgba(255, 255, 255, 0.2);
}

.roulette-choice.green {
  border-color: rgba(24, 237, 0, 0.4);
}

.roulette-choice.active {
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(72, 199, 200, 0.25);
}

.roulette-choice .choice-payout {
  font-size: 11px;
  color: var(--muted);
}

.roulette-history {
  position: absolute;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.roulette-chip {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.roulette-chip.red {
  background: #ef6f6c;
}

.roulette-chip.black {
  background: #1b1f2a;
}

.roulette-chip.green {
  background: #18ed00;
  color: #0b1a0f;
}

@keyframes tilePop {
  0% {
    transform: scale(0.9);
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(var(--pump-scale, 1));
  }
  50% {
    transform: translateY(-6px) scale(var(--pump-scale, 1));
  }
}

@keyframes mineShake {
  0% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-3px);
  }
  70% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes slotPulse {
  0% {
    box-shadow: 0 0 0 rgba(24, 237, 0, 0.0);
  }
  50% {
    box-shadow: 0 0 18px rgba(24, 237, 0, 0.45);
  }
  100% {
    box-shadow: 0 0 0 rgba(24, 237, 0, 0.0);
  }
}

.card h3 {
  font-family: var(--font-title);
  margin-top: 0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p {
  color: var(--muted);
  margin: 0 0 12px;
}

.stat {
  font-size: 28px;
  font-weight: 600;
  font-family: var(--font-mono);
}

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

.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  background: linear-gradient(135deg, var(--accent), #ffd479);
  color: #1b1b1b;
  box-shadow: 0 10px 22px rgba(242, 201, 76, 0.25);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.ghost:hover:not(:disabled) {
  border-color: rgba(242, 201, 76, 0.6);
}
.btn.secondary {
  background: linear-gradient(135deg, var(--accent-2), #7fe4e5);
  box-shadow: 0 10px 22px rgba(72, 199, 200, 0.25);
}

.btn.danger {
  background: linear-gradient(135deg, var(--accent-3), #f6a19f);
  box-shadow: 0 10px 22px rgba(239, 111, 108, 0.25);
  color: #1b0d0d;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  outline: none;
  font-family: var(--font-body);
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.row.space {
  justify-content: space-between;
}

.small {
  font-size: 12px;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.stat-head .icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(242, 201, 76, 0.12);
  color: var(--accent);
}

.stat-head .icon svg {
  width: 18px;
  height: 18px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

#leaderboard-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

#leaderboard-table th,
#leaderboard-table td {
  border-bottom: none;
}

#leaderboard-table tbody tr {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

#leaderboard-table tbody tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

#leaderboard-table tbody tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.leaderboard-row td {
  padding: 12px 10px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.leader-name {
  font-weight: 600;
}

.leader-worth {
  font-family: var(--font-mono);
  color: var(--accent);
}

.leaderboard-row.rank-1 {
  background: linear-gradient(90deg, rgba(242, 201, 76, 0.2), transparent);
}

.leaderboard-row.rank-1 .rank-badge {
  background: rgba(242, 201, 76, 0.3);
  color: #fff2c6;
}

.leaderboard-row.rank-2 {
  background: linear-gradient(90deg, rgba(72, 199, 200, 0.2), transparent);
}

.leaderboard-row.rank-2 .rank-badge {
  background: rgba(72, 199, 200, 0.3);
  color: #c8f7f7;
}

.leaderboard-row.rank-3 {
  background: linear-gradient(90deg, rgba(239, 111, 108, 0.2), transparent);
}

.leaderboard-row.rank-3 .rank-badge {
  background: rgba(239, 111, 108, 0.3);
  color: #ffd6d5;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(242, 201, 76, 0.15);
  color: var(--accent);
}

.alert {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(239, 111, 108, 0.5);
  background: rgba(239, 111, 108, 0.1);
  color: #ffd6d5;
  font-size: 14px;
  margin: 18px 0 22px;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-title);
  font-size: 18px;
  margin: 0 0 12px;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(440px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.login-tags {
  margin-top: 4px;
  margin-bottom: 8px;
  gap: 16px;
}

.login-head {
  display: grid;
  gap: 6px;
}

.login-banner {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242, 201, 76, 0.9), rgba(72, 199, 200, 0.9), rgba(239, 111, 108, 0.9));
  margin-bottom: 18px;
}

.login-title {
  font-family: var(--font-title);
  font-size: 26px;
  margin: 10px 0 8px;
}

.list {
  display: grid;
  gap: 12px;
}

.list.compact {
  gap: 8px;
}

.list-item {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(10, 16, 33, 0.6);
  display: grid;
  gap: 6px;
  transition: transform 0.18s ease, border-color 0.2s ease;
  animation: fadeIn 0.4s ease-out;
}

.list-item:hover {
  transform: translateY(-1px);
  border-color: rgba(72, 199, 200, 0.3);
}

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

.tab {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(135deg, rgba(242, 201, 76, 0.2), rgba(242, 201, 76, 0.05));
  color: var(--accent);
}

.tab-panel {
  display: none;
}

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

.help-panel p {
  margin: 0 0 10px;
}

.help-panel {
  border-color: rgba(72, 199, 200, 0.35);
}

.help-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 12, 22, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9;
  will-change: opacity;
}

body.help-open .help-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.overlay-lock {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

#drops-panel,
#help-panel {
  position: fixed;
  top: 100px;
  left: calc(50% - (var(--scrollbar-width, 0px) / 2));
  transform: translate3d(-50%, -12px, 0);
  width: min(960px, calc(100% - 40px));
  max-height: 70vh;
  overflow: auto;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
}

body.drops-open #drops-panel,
body.help-open #help-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}

.drops-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 12, 22, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9;
  will-change: opacity;
}

body.drops-open .drops-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.drops-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(72, 199, 200, 0.35);
  background: linear-gradient(135deg, rgba(72, 199, 200, 0.16), rgba(242, 201, 76, 0.1));
  color: #bdf5f6;
}

.drops-btn:hover:not(:disabled) {
  box-shadow: 0 8px 24px rgba(72, 199, 200, 0.2);
  transform: translateY(-1px);
}

.notify-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: #f2c94c;
  color: #1a2235;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drop-item .row.space {
  align-items: flex-start;
}

.drop-countdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: rgba(231, 243, 255, 0.9);
}

.drop-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #e7f3ff;
}

.drop-metrics .drop-price {
  background: rgba(242, 201, 76, 0.12);
  color: #f2c94c;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 201, 76, 0.2);
}

.drop-metrics .drop-afk {
  background: rgba(72, 199, 200, 0.12);
  color: #7fe4e5;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(72, 199, 200, 0.2);
}

.drop-countdown .drop-time {
  font-weight: 600;
  color: #e7f3ff;
}

.drop-countdown .drop-time.live {
  color: #7fe4e5;
}

.drop-countdown .drop-date {
  color: var(--muted);
}

.rarity-tag {
  background: rgba(24, 237, 0, 0.2);
  color: #18ed00;
}

.rarity-tag.ultra {
  background: rgba(0, 67, 237, 0.2);
  color: #0043ed;
}

.rarity-tag.mythique {
  background: rgba(194, 2, 237, 0.2);
  color: #c202ed;
}

.rarity-tag.legendaire {
  background: rgba(237, 229, 2, 0.2);
  color: #ede502;
}

#help-panel::-webkit-scrollbar,
#drops-panel::-webkit-scrollbar {
  width: 8px;
}

#help-panel::-webkit-scrollbar-track,
#drops-panel::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
  border-radius: 999px;
}

#help-panel::-webkit-scrollbar-thumb,
#drops-panel::-webkit-scrollbar-thumb {
  background: rgba(72, 199, 200, 0.35);
  border-radius: 999px;
}

#help-panel,
#drops-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(72, 199, 200, 0.35) rgba(15, 23, 42, 0.3);
}

.scroll-panel {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.scroll-panel::-webkit-scrollbar {
  width: 6px;
}

.scroll-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
}

.status-pill.ok {
  color: #7fe4e5;
  border-color: rgba(72, 199, 200, 0.6);
  background: rgba(72, 199, 200, 0.12);
}

.status-pill.bad {
  color: #f6a19f;
  border-color: rgba(239, 111, 108, 0.7);
  background: rgba(239, 111, 108, 0.12);
}

.pulse {
  animation: pulse 0.45s ease;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .input {
  padding-right: 44px;
}

.icon-btn {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn.eye-toggle .icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.icon-btn.eye-toggle svg {
  position: absolute;
  inset: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.icon-btn.eye-toggle .eye-open {
  opacity: 0;
  transform: scale(0.85);
}

.icon-btn.eye-toggle .eye-closed {
  opacity: 1;
  transform: scale(1);
}

.icon-btn.eye-toggle.is-visible .eye-open {
  opacity: 1;
  transform: scale(1);
}

.icon-btn.eye-toggle.is-visible .eye-closed {
  opacity: 0;
  transform: scale(0.85);
}

.icon-btn:hover {
  border-color: rgba(72, 199, 200, 0.6);
}

.login .icon-btn {
  color: #0b0f1a;
}

.glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(242, 201, 76, 0.12), transparent 45%);
  opacity: 0.6;
  pointer-events: none;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

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

  .trade-layout,
  .minigame-layout {
    grid-template-columns: 1fr;
  }

  .trade-live {
    text-align: left;
  }
}
