@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Bebas+Neue&display=swap');

:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: #101f2e;
  --text: #f4f8ff;
  --muted: #9ab2c8;
  --accent: #f7be52;
  --accent-2: #3ce2b9;
  --line: #2d475f;
  --danger: #ff5d78;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(60, 226, 185, 0.18), transparent 36%),
    radial-gradient(circle at 86% 0%, rgba(247, 190, 82, 0.24), transparent 30%),
    linear-gradient(160deg, #071018 0%, #0b1623 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}

.app-shell {
  width: min(980px, 100%);
  display: grid;
  gap: 12px;
}

.header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.07em;
  font-family: 'Bebas Neue', sans-serif;
  line-height: 0.95;
}

.subtitle {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: 0.98rem;
}

.toolbar,
.panel {
  background: linear-gradient(180deg, color-mix(in oklab, var(--panel), black 8%), #0d1b2a);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

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

select,
input,
button {
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: 0.95rem;
  transition: all 140ms ease;
}

input,
select {
  background: #0f1a28;
  color: var(--text);
}

input:focus,
select:focus {
  outline: none;
  border-color: color-mix(in oklab, var(--accent-2), white 20%);
  box-shadow: 0 0 0 3px rgba(60, 226, 185, 0.15);
}

button {
  background: linear-gradient(120deg, var(--accent), #ffdc90);
  color: #1c2632;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.result {
  margin: 0;
  white-space: pre-wrap;
  color: #d6eeff;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(7, 16, 24, 0.55);
}

.stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
}

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

.controls-hint {
  margin: 0;
  color: var(--muted);
}

.account-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.feed-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #d4e6f7;
  font-size: 0.9rem;
  max-height: 180px;
  overflow: auto;
}

.game-showcase {
  min-height: 86px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  padding: 12px;
  background:
    radial-gradient(circle at 25% 22%, rgba(60, 226, 185, 0.12), transparent 45%),
    radial-gradient(circle at 75% 15%, rgba(247, 190, 82, 0.12), transparent 45%),
    rgba(7, 16, 24, 0.72);
}

.showcase-empty {
  margin: 0;
  color: var(--muted);
}

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

.card-chip,
.slot-chip {
  min-width: 52px;
  text-align: center;
  border-radius: 9px;
  border: 1px solid #47607a;
  padding: 6px;
  background: linear-gradient(180deg, #132437, #0d1b2a);
  font-weight: 700;
}

.card-chip.dealer {
  border-color: #77644a;
}

.card-chip img {
  width: 48px;
  height: 68px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  margin: 0 auto 4px;
  background: #fff;
}

.card-chip span {
  font-size: 0.75rem;
  color: #bfd7ef;
  letter-spacing: 0.02em;
}

.slots .slot-chip {
  min-width: 46px;
  font-size: 1.06rem;
}

.showcase-labeled > span {
  color: var(--muted);
  font-size: 0.86rem;
}

.showcase-meta {
  margin-top: 8px;
  color: color-mix(in oklab, var(--accent-2), white 25%);
  font-size: 0.9rem;
}

.roulette-pill {
  width: max-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #526d88;
  font-weight: 700;
}

.roulette-pill.red {
  background: rgba(255, 93, 120, 0.16);
  border-color: rgba(255, 93, 120, 0.45);
}

.roulette-pill.black {
  background: rgba(8, 12, 20, 0.55);
}

.roulette-pill.zero {
  background: rgba(60, 226, 185, 0.14);
  border-color: rgba(60, 226, 185, 0.45);
}

@media (max-width: 720px) {
  body {
    padding: 12px;
  }

  .app-shell {
    width: 100%;
  }
}
