/* Vegas Frog: Showtime — cartoon Vegas night: dark-green felt
   reels in a red marquee frame studded with light bulbs, neon
   pink/yellow/green signage. Own CSS, family layout. */
:root {
  --felt: #14532d;
  --felt-deep: #052e16;
  --marquee: #991b1b;
  --gold: #f2c230;
  --gold-dim: #a8740a;
  --neon-pink: #f472b6;
  --neon-yellow: #fde047;
  --ink: #ecfdf5;
  --panel: #7f1d1d;
  --panel2: #991b1b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #166534 0%, var(--felt-deep) 55%, #02120a 100%);
  color: var(--ink);
  min-height: 100vh;
}
#app { max-width: 560px; margin: 0 auto; padding: 10px 12px 28px; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; padding: 6px 2px 10px; }
.jackpots { display: flex; gap: 6px; order: 3; width: 100%; justify-content: center; }
.jp { font-size: 12px; font-weight: 800; letter-spacing: .4px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--gold-dim); background: #052e16cc; }
.jp b { color: var(--neon-yellow); }
.jp.mini { color: #93c5fd; } .jp.major { color: var(--neon-pink); } .jp.mega { color: var(--neon-yellow); box-shadow: 0 0 12px #fde04766; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 46px; height: 46px; }
h1 { font-size: 20px; margin: 0; color: var(--neon-yellow); text-shadow: 0 0 14px #f59e0b88, 0 2px 0 #7c2d12; letter-spacing: .3px; }
.sub { font-size: 12px; opacity: .85; color: #bbf7d0; }
.head-right { display: flex; align-items: center; gap: 8px; }
.badge { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: #166534; border: 1px solid #22c55e; color: #bbf7d0; }
.badge.real { background: #7f1d1d; border-color: #ef4444; color: #fecaca; }
.ghost { background: #052e16; color: var(--ink); border: 1px solid #22c55e88; border-radius: 10px; padding: 7px 12px; cursor: pointer; font-weight: 700; }
.ghost.on { background: #166534; border-color: var(--neon-yellow); color: var(--neon-yellow); }
.card, .stage-card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid #f2c23055;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px #00000066;
}
.stage-card { position: relative; }
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: var(--felt);
  border: 6px solid var(--marquee);
  outline: 2px solid var(--gold);
  box-shadow: inset 0 0 0 2px #052e16, inset 0 0 34px #00000088, 0 0 18px #f2c23033;
  position: relative;
}
/* Anticipation light-beam on the final reel. */
.grid.beam .cell:nth-child(13), .grid.beam .cell:nth-child(14), .grid.beam .cell:nth-child(15) {
  box-shadow: 0 0 22px 6px #fde047cc, inset 0 0 12px #fde04788;
  animation: beamPulse .5s ease-in-out infinite alternate;
}
@keyframes beamPulse { from { filter: brightness(1.1); } to { filter: brightness(1.65); } }
.cell {
  aspect-ratio: 1 / 1.08;
  border-radius: 10px;
  background: #052e16;
  border: 1px solid #22c55e44;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.cell svg { width: 100%; height: 100%; display: block; }
.cell.win { outline: 3px solid #4ade80; outline-offset: -3px; transform: scale(1.06); z-index: 1; box-shadow: 0 0 16px #4ade80aa; }
.cell.dim { opacity: .45; }
.cell.wild { box-shadow: inset 0 0 0 2px var(--gold); }
.cell.empty { background: #052e1688; }
.coin-token {
  width: 82%; height: 82%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fef08a, #f2c230 55%, #b8860b);
  border: 2px dashed #92600a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px #00000088, inset 0 0 8px #92600a88;
}
.coin-label { font-size: clamp(9px, 2.6vw, 14px); font-weight: 900; color: #713f12; text-align: center; line-height: 1.05; padding: 2px; }
.orb-tray { min-height: 22px; text-align: center; font-weight: 800; color: var(--neon-yellow); padding-top: 8px; font-size: 14px; }
.bottom-bar { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; }
.bb-item { display: flex; flex-direction: column; align-items: center; flex: 1; background: #052e16aa; border: 1px solid #22c55e44; border-radius: 10px; padding: 6px 4px; font-weight: 800; }
.bb-label { font-size: 10px; font-weight: 700; opacity: .75; letter-spacing: .6px; text-transform: uppercase; }
.win-banner {
  position: absolute; inset: auto 0 64px 0; margin: 0 auto; width: fit-content;
  background: #052e16ee; border: 2px solid var(--gold); border-radius: 14px;
  padding: 8px 22px; text-align: center; z-index: 5;
  color: var(--neon-yellow); font-weight: 900; font-size: 22px;
  box-shadow: 0 0 24px #f2c23088;
}
.wb-label { font-size: 12px; color: var(--neon-pink); letter-spacing: 2px; }
.hidden { display: none !important; }
.bigwin-overlay {
  position: absolute; inset: 0; z-index: 6;
  background: #052e16d9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 16px;
}
.bw-title { font-size: 40px; font-weight: 900; color: var(--neon-yellow); text-shadow: 0 0 22px #f59e0b, 0 3px 0 #7c2d12; animation: beamPulse .4s ease-in-out infinite alternate; }
.bw-title.tier-mega { font-size: 48px; color: var(--neon-pink); text-shadow: 0 0 26px #ec4899, 0 3px 0 #7c2d12; }
.bw-title.tier-epic { font-size: 56px; color: var(--gold); text-shadow: 0 0 34px #f2c230, 0 0 12px #f59e0b, 0 3px 0 #7c2d12; }
.bw-amt { font-size: 30px; font-weight: 900; color: var(--neon-pink); }
.continue-overlay {
  position: absolute; inset: 0; z-index: 7;
  background: #02120acc;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border-radius: 16px; text-align: center; padding: 16px;
}
.continue-text { font-size: 20px; font-weight: 900; color: var(--neon-yellow); }
.continue-btn { font-size: 22px; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--gold); background: #166534; color: #fff; cursor: pointer; }
.controls .bet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed #f2c23088; background: #052e16; color: var(--ink); font-weight: 800; cursor: pointer; }
.chip.on { background: var(--gold); color: #422006; border-color: #fff7cc; }
.bet-input { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.bet-input button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid #22c55e88; background: #052e16; color: var(--ink); font-size: 18px; cursor: pointer; }
.bet-input input { width: 76px; height: 36px; border-radius: 10px; border: 1px solid #22c55e88; background: #052e16; color: var(--ink); text-align: center; font-weight: 800; }
.spin-btn {
  width: 100%; padding: 15px; font-size: 20px; font-weight: 900; letter-spacing: 1px;
  border-radius: 14px; border: 2px solid #fff7cc;
  background: linear-gradient(180deg, #f59e0b, #dc2626);
  color: #fff; cursor: pointer; box-shadow: 0 6px 18px #dc262666;
}
.spin-btn:disabled { opacity: .5; cursor: default; }
.quick-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.msg { min-height: 20px; margin-top: 10px; font-weight: 700; color: var(--neon-yellow); text-align: center; }
.msg.err { color: #fca5a5; }
.paytable .prow { padding: 6px 0; border-bottom: 1px solid #ffffff1c; font-size: 13px; }
.note { font-size: 12.5px; line-height: 1.55; opacity: .9; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #ffffff14; font-size: 13.5px; }
.history .win { color: #4ade80; font-weight: 800; }
.fair-grid { display: grid; gap: 8px; font-size: 12.5px; }
.fair-grid code { word-break: break-all; background: #052e16aa; padding: 2px 6px; border-radius: 6px; }
.seed-edit { display: flex; gap: 6px; }
.seed-edit input, .fair-actions input { background: #052e16; border: 1px solid #22c55e66; border-radius: 8px; color: var(--ink); padding: 6px 8px; }
.fair-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.verify-out { white-space: pre-wrap; word-break: break-all; font-size: 11px; background: #052e16aa; border-radius: 10px; padding: 8px; max-height: 260px; overflow: auto; }
footer { text-align: center; font-size: 12px; opacity: .75; padding: 6px; }
/* Card gamble */
.gamble { border-color: var(--neon-pink); }
.gamble-pot { font-size: 16px; margin-bottom: 8px; }
.gamble-pot b { color: var(--neon-yellow); }
.gamble-stage { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.playing-card {
  width: 74px; height: 104px; border-radius: 10px; flex: none;
  background: #f8fafc; color: #111827;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900;
  box-shadow: 0 6px 16px #00000088;
}
.playing-card.face-down { background: repeating-linear-gradient(45deg, #991b1b 0 8px, #7f1d1d 8px 16px); color: #fde047; border: 2px solid #f2c23088; }
.playing-card.red { color: #dc2626; }
.playing-card.black { color: #111827; }
.gamble-msg { font-weight: 800; color: var(--neon-yellow); }
.gamble-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.gamble-label { font-size: 13px; font-weight: 700; min-width: 128px; }
.gbtn { min-width: 52px; padding: 9px 12px; border-radius: 10px; border: 1px solid #ffffff55; font-size: 16px; font-weight: 900; cursor: pointer; background: #052e16; color: var(--ink); }
.gbtn.red { color: #fca5a5; border-color: #ef4444; }
.gbtn.black { color: #e5e7eb; border-color: #9ca3af; }
.collect-btn { width: 100%; margin-top: 8px; padding: 12px; border-radius: 12px; border: 2px solid #fff7cc; background: linear-gradient(180deg, #22c55e, #166534); color: #fff; font-size: 17px; font-weight: 900; cursor: pointer; }
.gamble-history { margin-top: 10px; font-size: 13px; }
.hist-card { display: inline-block; background: #f8fafc; border-radius: 5px; padding: 1px 6px; margin: 2px; font-weight: 800; }
.hist-card.red { color: #dc2626; } .hist-card.black { color: #111827; }
@media (max-width: 420px) {
  h1 { font-size: 17px; }
  .coin-label { font-size: 9px; }
  .gamble-label { min-width: 100%; }
}
