:root {
  --bg: #0b0e14;
  --bg-2: #121722;
  --panel: #171d2b;
  --panel-2: #1e2536;
  --border: #2a3247;
  --text: #e8ecf4;
  --muted: #8b95ab;
  --gold: #ffce54;
  --gold-2: #f6bb42;
  --green: #37d67a;
  --red: #ff5d6c;
  --accent: #6c8cff;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}
/* The `hidden` attribute must always win, even over class rules that set
   `display` (e.g. `.auth { display: flex }`). Without this, hiding #auth
   after login fails and the login screen covers the casino. */
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 800px at 50% -200px, #1a2440 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input {
  font-family: inherit;
}
h1,
h2,
h3 {
  margin: 0;
}

/* --------------------------------- Auth --------------------------------- */
.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.logo {
  font-size: 52px;
  filter: drop-shadow(0 6px 16px rgba(255, 206, 84, 0.35));
}
.auth-card h1 {
  margin-top: 6px;
  font-size: 26px;
  letter-spacing: 0.3px;
}
.tagline {
  color: var(--muted);
  margin: 8px 0 22px;
  font-size: 14px;
}
.tagline strong {
  color: var(--gold);
}
.tabs {
  display: flex;
  background: var(--bg-2);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
}
.tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  transition: 0.15s;
}
.tab.active {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
#auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#auth-form input {
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: 0.15s;
}
#auth-form input:focus {
  border-color: var(--accent);
}
.auth-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: left;
  margin: -2px 2px 0;
  line-height: 1.4;
}
.btn-primary {
  padding: 13px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a1e00;
  font-weight: 800;
  font-size: 15px;
  transition: 0.12s;
}
.btn-primary:hover {
  filter: brightness(1.06);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}
.auth-error {
  color: var(--red);
  font-size: 13px;
  min-height: 16px;
  margin: 0;
}
.footer-note {
  color: var(--muted);
  font-size: 12px;
}

/* -------------------------------- Topbar -------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}
.brand span {
  display: none;
}
@media (min-width: 520px) {
  .brand span {
    display: inline;
  }
}
.balance-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.balance {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #263353, #1b2338);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  color: var(--gold);
}
.balance .chip {
  font-size: 15px;
}
.balance.flash {
  animation: flash 0.5s ease;
}
@keyframes flash {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12);
    box-shadow: 0 0 0 4px rgba(255, 206, 84, 0.25);
  }
  100% {
    transform: scale(1);
  }
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}
#who {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 519px) {
  #who {
    display: none;
  }
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* --------------------------------- Main --------------------------------- */
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 18px 80px;
}

/* Lobby */
.lobby-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, #1c2540, #141a28);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 22px;
}
.lobby-hero h2 {
  font-size: 22px;
}
.lobby-hero p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 14px;
}
.hero-stats {
  display: flex;
  gap: 22px;
}
.hero-stat {
  text-align: center;
}
.hero-stat b {
  display: block;
  font-size: 20px;
  color: var(--gold);
}
.hero-stat span {
  font-size: 12px;
  color: var(--muted);
}

.section-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 26px 4px 12px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.game-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: 0.15s;
  position: relative;
  overflow: hidden;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.game-card .emoji {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}
.game-card h3 {
  font-size: 16px;
}
.game-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 0;
}

/* Two-column layout for lobby side panels */
.lobby-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) {
  .lobby-cols {
    grid-template-columns: 1fr 1fr;
  }
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.panel h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
}
.lb-row,
.hist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.lb-row:last-child,
.hist-row:last-child {
  border-bottom: none;
}
.lb-rank {
  color: var(--muted);
  width: 26px;
}
.lb-name {
  flex: 1;
  font-weight: 600;
}
.lb-bal {
  color: var(--gold);
  font-weight: 700;
}
.hist-game {
  text-transform: capitalize;
  font-weight: 600;
}
.hist-detail {
  color: var(--muted);
  font-size: 12px;
}
.net-pos {
  color: var(--green);
  font-weight: 700;
}
.net-neg {
  color: var(--red);
  font-weight: 700;
}
.empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 14px;
}

/* -------------------------------- Game view ----------------------------- */
.game-view {
  animation: fadein 0.2s ease;
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.back {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  padding: 4px 0;
}
.back:hover {
  color: var(--text);
}
.game-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.game-head .emoji {
  font-size: 34px;
}
.game-head h2 {
  font-size: 24px;
}
.game-head p {
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0 0;
}

.felt {
  background: radial-gradient(600px 300px at 50% 0%, #14603f 0%, #0d3f2a 70%, #0a3121 100%);
  border: 1px solid #0c4a30;
  border-radius: 20px;
  padding: 26px 20px;
  box-shadow: inset 0 4px 40px rgba(0, 0, 0, 0.4);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

/* Bet controls */
.betbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

/* Tip a friend */
.tip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.tip-row select {
  flex: 1;
  min-width: 140px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.tip-row .bet-input input {
  width: 100px;
}

/* Admin dashboard */
.admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.admin-row:last-child {
  border-bottom: none;
}
.admin-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}
.admin-name {
  font-weight: 700;
}
.admin-bal {
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
}
.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-actions .bet-input input {
  width: 90px;
}
.admin-remove {
  border-color: var(--red);
  color: var(--red);
}

/* Provably fair */
.pf-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.pf-field {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.pf-field span {
  color: var(--muted);
  min-width: 130px;
}
.pf-field code,
.pf-reveal code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--gold);
  word-break: break-all;
  font-size: 12px;
}
.pf-reveal {
  margin-top: 10px;
  padding: 10px;
  background: var(--bg-2);
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* Stats */
.spark-wrap {
  width: 100%;
  overflow-x: auto;
}
.spark {
  width: 100%;
  height: 90px;
  display: block;
}
.stat-total {
  margin-top: 10px;
  font-weight: 800;
  font-size: 16px;
}

/* Auto-play control */
.auto-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}
.auto-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.auto-status {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  min-width: 90px;
}

/* Blackjack multiple hands (split) */
.player-hands {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.player-hand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 10px;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: 0.15s;
}
.player-hand.active {
  border-color: var(--gold);
  background: rgba(255, 206, 84, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 206, 84, 0.12);
}
.player-hand.bust {
  opacity: 0.6;
}
.hand-bet {
  color: var(--gold);
  font-weight: 700;
}
.bet-input {
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
}
.bet-input span {
  padding: 0 10px;
  color: var(--muted);
  font-weight: 700;
}
.bet-input input {
  width: 110px;
  padding: 11px 8px 11px 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  outline: none;
}
.chip-btns {
  display: flex;
  gap: 6px;
}
.chip-btn {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
}
.chip-btn:hover {
  border-color: var(--accent);
}
.chip-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-play {
  padding: 13px 30px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #2a1e00;
  font-weight: 800;
  font-size: 16px;
  transition: 0.12s;
}
.btn-play:hover {
  filter: brightness(1.06);
}
.btn-play:active {
  transform: translateY(1px);
}
.btn-play:disabled {
  opacity: 0.5;
  cursor: default;
  filter: grayscale(0.3);
}
.btn-action {
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}
.btn-action:hover {
  border-color: var(--accent);
}
.btn-action:disabled {
  opacity: 0.4;
  cursor: default;
}
.btn-danger {
  background: linear-gradient(180deg, #ff6b78, #e64150);
  color: #fff;
  border: none;
}

.result-line {
  font-size: 18px;
  font-weight: 700;
  min-height: 24px;
}
.result-win {
  color: var(--gold);
}
.result-lose {
  color: var(--red);
}

/* Cards */
.cards {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.card {
  width: 58px;
  height: 82px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-weight: 800;
  font-size: 20px;
  color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  animation: dealcard 0.3s ease;
}
.card.red {
  color: #d32f2f;
}
.card.back {
  background: repeating-linear-gradient(45deg, #35507f, #35507f 6px, #2a4066 6px, #2a4066 12px);
  color: transparent;
}
@keyframes dealcard {
  from {
    transform: translateY(-14px) rotate(-4deg);
    opacity: 0;
  }
}
.hand-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.hand-value {
  color: #fff;
  font-weight: 700;
}

/* Slots */
.reels {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.reel {
  width: 84px;
  height: 96px;
  background: linear-gradient(180deg, #fff, #e9e9ef);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.reel.spinning {
  animation: reelspin 0.4s linear infinite;
}
@keyframes reelspin {
  0% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(8px);
  }
}
.paytable {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.paytable b {
  color: var(--text);
}

/* Roulette */
/* Spinning wheel */
.wheel-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}
.wheel {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45));
}
#wheelRotor {
  transform-origin: 120px 120px;
  transform: rotate(0deg);
}
.wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 18px solid var(--gold);
  z-index: 3;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}
.wheel-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}
.wheel-badge.spinning {
  background: #12181f;
}

.roulette-num {
  font-size: 64px;
  font-weight: 900;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.roulette-num.spin {
  animation: spin360 0.8s ease-out;
}
@keyframes spin360 {
  from {
    transform: rotate(-360deg) scale(0.7);
  }
}
.rl-red {
  background: linear-gradient(180deg, #e2453f, #b8322d);
}
.rl-black {
  background: linear-gradient(180deg, #333, #111);
}
.rl-green {
  background: linear-gradient(180deg, #37b06a, #248a4d);
}
.bet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.rl-bet {
  padding: 10px 6px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  position: relative;
  transition: 0.12s;
}
.rl-bet:hover {
  border-color: var(--accent);
}
.rl-bet.red {
  background: #7a2a26;
}
.rl-bet.black {
  background: #23262e;
}
.rl-bet .stake {
  display: block;
  color: var(--gold);
  font-size: 12px;
  margin-top: 3px;
  min-height: 14px;
}

/* Crash */
.crash-display {
  font-size: 68px;
  font-weight: 900;
  letter-spacing: 1px;
  transition: color 0.1s;
}
.crash-graph {
  width: 100%;
  max-width: 460px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.crash-graph i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.crash-busted {
  color: var(--red) !important;
}
.crash-won {
  color: var(--gold) !important;
}
.mult-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Dice */
.dice-slider {
  width: 100%;
  max-width: 460px;
}
.dice-slider input[type="range"] {
  width: 100%;
}
.dice-readout {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 460px;
  margin-top: 4px;
}
.dice-readout .r {
  text-align: center;
}
.dice-readout .r b {
  display: block;
  font-size: 20px;
  color: var(--gold);
}
.dice-readout .r span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dice-roll {
  font-size: 46px;
  font-weight: 900;
}

.toggle-row {
  display: flex;
  gap: 8px;
}
.toggle {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 700;
}
.toggle.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.provably {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  word-break: break-all;
  max-width: 460px;
}

/* Mines */
.mines-status {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  min-height: 22px;
}
.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 320px;
}
.mine-tile {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #2a3350, #1b2338);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.1s;
}
.mine-tile:not(:disabled):hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.mine-tile.safe {
  background: linear-gradient(180deg, #1e6b47, #16512f);
  border-color: #2a8a5f;
}
.mine-tile.mine {
  background: linear-gradient(180deg, #4a2530, #37171f);
}
.mine-tile.boom {
  background: linear-gradient(180deg, #ff6b78, #e64150);
  animation: flash 0.5s ease;
}

/* Plinko */
.plinko-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.plinko-svg {
  width: 100%;
  display: block;
}
.plinko-slots {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}
.plinko-slot {
  flex: 1;
  text-align: center;
  padding: 6px 1px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--muted);
}
.plinko-slot.hot {
  background: #b8322d;
  color: #fff;
}
.plinko-slot.cold {
  background: #23324f;
}
.plinko-slot.landed {
  outline: 2px solid var(--gold);
  color: var(--gold);
  transform: translateY(2px);
}

/* Higher / Lower */
.hilo-mult {
  font-size: 40px;
  font-weight: 900;
  color: var(--gold);
  min-height: 44px;
}

/* Video poker */
.vpoker-hand {
  gap: 10px;
}
.vp-card {
  position: relative;
  cursor: pointer;
  border-radius: 10px;
  padding: 4px;
  transition: 0.12s;
}
.vp-card.held {
  background: rgba(255, 206, 84, 0.18);
  transform: translateY(-8px);
}
.vp-hold {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  height: 14px;
  letter-spacing: 1px;
}
.vp-paytable {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
}
.vp-paytable b {
  color: var(--text);
}
.vp-paytable .vp-hit {
  color: var(--gold);
}
.vp-paytable .vp-hit b {
  color: var(--gold);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-weight: 600;
  opacity: 0;
  transition: 0.25s;
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.gold {
  border-color: var(--gold);
  color: var(--gold);
}
