/* styles.css is what the slot5x5 page adds to the shared theme
   (web/sdk/theme.css, docs/design/ui.md): the "Neon Bazaar" skin as a
   redeclaration of the theme's tokens on :root, the reels canvas, the
   free-spin banner and player, and the paytable. The header, the bet panel,
   the toast, the history, the fairness panel, the layout and the breakpoints
   are the theme's. --win and --lose stay the theme's green and red; --focus
   moves to gold so it never reads as the cyan --accent. Loads nothing
   external -- the page is embedded and served offline (web/embed.go). */

:root {
  color-scheme: dark;

  --bg: #0a0a1f;
  --panel: #12132a;
  --panel-2: #191a36;
  --line: #2d2f5c;
  --accent: #00f0ff;
  --accent-2: #ff2e97;
  --accent-ink: #0a0a1f;
  --text: #eef2ff;
  --muted: #9aa3d0;
  --focus: #ffd98a;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% 0%, var(--panel-2), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-16);
  line-height: var(--lh);
}

h1,
h2 {
  margin: 0;
}

.side h2 {
  font-size: var(--fs-14);
  color: var(--muted);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.app > header h1 {
  color: var(--accent);
  letter-spacing: 0.04em;
}

.app > header .balance {
  margin-left: auto;
}

/* ---- board ------------------------------------------------------------ */

.board {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.reels-stage {
  position: relative;
  display: grid;
  gap: var(--space-3);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-4);
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.reels {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--bg);
}

.free-spins {
  margin: 0;
  text-align: center;
  font-size: var(--fs-20);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}

.player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 2.25rem;
}

.step-info {
  margin: 0;
  font-size: var(--fs-14);
  color: var(--muted);
}

.result {
  margin: 0;
  min-height: 1.5em;
  text-align: center;
  font-size: var(--fs-20);
  font-weight: 600;
}

.error {
  margin: 0;
  color: var(--lose);
  text-align: center;
}

.notice {
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
}

.closed {
  text-align: center;
}

/* ---- paytable modal ------------------------------------------------ */

.paytable-body {
  display: grid;
  gap: var(--space-3);
  max-height: 70vh;
  overflow-y: auto;
}

.paytable-body h3 {
  margin: var(--space-2) 0 0;
  font-size: var(--fs-14);
  color: var(--accent);
}

.note {
  margin: 0;
  font-size: var(--fs-13);
  color: var(--muted);
}

.paytable td.sym {
  font-weight: 700;
}

.paytable th {
  font-size: var(--fs-12);
  color: var(--muted);
  text-transform: uppercase;
}

.drift {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--lose);
  border-radius: var(--radius);
  color: var(--lose);
  font-size: var(--fs-13);
}

.drift p,
.drift ul {
  margin: 0;
}

.lines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.line {
  display: grid;
  gap: var(--space-1);
  justify-items: center;
  font-size: var(--fs-12);
  color: var(--muted);
}

.mini {
  display: grid;
  grid-template-columns: repeat(5, 10px);
  gap: 2px;
}

.mini span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--panel-2);
}

.mini span.on {
  background: var(--accent);
}

/* ---- widths ----------------------------------------------------------- */

@media (max-width: 767px) {
  .reels-stage {
    max-width: none;
    padding: var(--space-3);
  }
}

@media (max-width: 420px) {
  .app > header .btn {
    padding-inline: var(--space-2);
  }
}
