:root {
  --bg: #061523;
  --panel: #0c2234;
  --panel2: #102f46;
  --line: rgba(140, 218, 255, 0.24);
  --gold: #f4c247;
  --green: #32d487;
  --red: #f35d5d;
  --blue: #4db4ff;
  --violet: #9b7bff;
  --text: #f4fbff;
  --muted: #9fb9c9;
  --accent: #f4c247;
  --accent2: #4db4ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 30% 12%, rgba(77, 180, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 76% 5%, rgba(50, 212, 135, 0.18), transparent 22rem),
    linear-gradient(180deg, #061523, #07111d 65%, #03080d);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  touch-action: manipulation;
}

button,
select {
  font: inherit;
}

.app-shell {
  min-height: 100%;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto auto minmax(340px, 1fr) auto auto;
  gap: 12px;
}

.topbar {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.icon-button,
.secondary-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #173c56, #0a2031);
  min-height: 42px;
  padding: 0 12px;
  font-weight: 800;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.status-strip > div,
.result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 25, 38, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  padding: 10px 12px;
}

.status-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.status-strip strong {
  display: block;
  color: var(--gold);
  font-size: clamp(16px, 4.8vw, 24px);
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent);
  border-radius: 8px;
  background:
    radial-gradient(circle at 76% 18%, color-mix(in srgb, var(--accent2) 20%, transparent), transparent 18rem),
    linear-gradient(180deg, rgba(16, 47, 70, 0.72), rgba(4, 12, 19, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255,255,255,0.03) 26px 27px);
  min-height: 370px;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 32px color-mix(in srgb, var(--accent2) 16%, transparent),
    0 18px 40px rgba(0, 0, 0, 0.3);
}

.stage-mascot {
  pointer-events: none;
  position: absolute;
  right: -84px;
  bottom: -42px;
  width: min(72vw, 420px);
  max-height: 86%;
  object-fit: contain;
  opacity: 0.13;
  filter: saturate(1.1) contrast(1.05);
}

.stage-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  min-height: 32px;
  display: inline-grid;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--accent);
  background: rgba(5, 16, 26, 0.78);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0;
}

.spark-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  animation: spark 820ms ease-out forwards;
}

@keyframes spark {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  to {
    transform: translate3d(var(--dx), var(--dy), 0) scale(0);
    opacity: 0;
  }
}

.game-panel {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 348px;
  padding: 18px;
  align-content: center;
  justify-items: center;
  gap: 16px;
}

.game-panel.is-active {
  display: grid;
}

.slot-machine {
  align-content: center;
  isolation: isolate;
}

.slot-cabinet {
  position: relative;
  width: min(100%, 520px);
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(244,194,71,0.46);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% -12%, rgba(255,215,94,0.24), transparent 11rem),
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 12%, transparent 88%, rgba(255,255,255,0.08)),
    linear-gradient(180deg, #101820, #05080d 48%, #020305);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 0 56px rgba(244,194,71,0.09),
    0 22px 62px rgba(0,0,0,0.52),
    0 0 34px rgba(77,180,255,0.1);
}

.slot-cabinet::before,
.slot-cabinet::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 12px;
  height: calc(100% - 32px);
  border-radius: 99px;
  background: repeating-linear-gradient(
    180deg,
    rgba(244,194,71,0.28) 0 10px,
    rgba(77,180,255,0.18) 10px 20px
  );
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 42%, transparent);
}

.slot-cabinet::before {
  left: -7px;
}

.slot-cabinet::after {
  right: -7px;
}

.slot-data-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.slot-data-board > div {
  min-width: 0;
  border: 1px solid rgba(244,194,71,0.22);
  border-radius: 6px;
  padding: 6px 4px;
  background: linear-gradient(180deg, #030b12, #010306);
  text-align: center;
  box-shadow: inset 0 0 14px rgba(77,180,255,0.12);
}

.slot-data-board span {
  display: block;
  color: #7ed8ff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
}

.slot-data-board strong {
  display: block;
  margin-top: 2px;
  color: #ff4e4e;
  font-family: "Segoe UI", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(16px, 4vw, 24px);
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 54, 54, 0.88);
}

.is-visual-setting-six .slot-data-board > div:last-child strong {
  color: #fff;
  text-shadow:
    0 0 6px #fff,
    0 0 12px #ffd75e,
    0 0 18px #9b7bff;
}

.slot-lcd {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  border: 1px solid rgba(126,216,255,0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 30%, rgba(77,180,255,0.28), transparent 9rem),
    linear-gradient(135deg, rgba(13,53,78,0.92), rgba(3,8,14,0.96));
  box-shadow:
    inset 0 0 34px rgba(77,180,255,0.18),
    0 0 24px rgba(77,180,255,0.12);
}

.slot-lcd.has-lcd-art {
  background:
    linear-gradient(90deg, rgba(0,2,5,0.9), rgba(0,2,5,0.52) 35%, rgba(0,2,5,0.16) 68%, rgba(0,2,5,0.05)),
    var(--slot-lcd-art),
    linear-gradient(135deg, rgba(13,53,78,0.92), rgba(3,8,14,0.96));
  background-size: cover;
  background-position: center;
}

.slot-lcd.has-lcd-art::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), transparent 18%, transparent 78%, rgba(0,0,0,0.3)),
    radial-gradient(circle at 78% 42%, rgba(255,215,94,0.18), transparent 16rem);
  mix-blend-mode: screen;
}

.slot-lcd[data-tier="jackpot"],
.is-visual-setting-six .slot-lcd {
  border-color: rgba(255,215,94,0.72);
  box-shadow:
    inset 0 0 42px rgba(255,215,94,0.24),
    0 0 28px rgba(255,215,94,0.28);
}

.lcd-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  mix-blend-mode: screen;
  opacity: 0.42;
  animation: lcd-sweep 2.4s linear infinite;
}

@keyframes lcd-sweep {
  from { transform: translateX(-80%); }
  to { transform: translateX(80%); }
}

.lcd-copy {
  position: relative;
  z-index: 1;
  width: 62%;
  min-height: 172px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
}

.slot-lcd.has-lcd-art .lcd-copy {
  width: 46%;
  text-shadow: 0 2px 14px rgba(0,0,0,0.8);
}

.lcd-badge {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 4px 7px;
  color: #071523;
  background: var(--accent);
  font-size: 10px;
  font-weight: 1000;
}

.lcd-copy strong {
  color: #fff;
  font-size: clamp(22px, 6vw, 40px);
  line-height: 0.95;
  text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 58%, transparent);
}

.lcd-copy p {
  margin: 0;
  color: #cfefff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.lcd-mascot {
  position: absolute;
  right: -8px;
  bottom: -22px;
  width: 43%;
  max-height: 150%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.45));
  transform-origin: bottom center;
}

.lcd-mascot[hidden] {
  display: none;
}

.slot-lcd[data-mode="spin"] .lcd-mascot,
.slot-lcd[data-mode="chance"] .lcd-mascot {
  animation: lcd-cut-in 760ms ease-in-out infinite alternate;
}

@keyframes lcd-cut-in {
  from { transform: translateX(7px) scale(1.02); filter: brightness(1.05) drop-shadow(0 12px 20px rgba(0,0,0,0.45)); }
  to { transform: translateX(-7px) scale(1.08); filter: brightness(1.28) drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 62%, transparent)); }
}

.machine-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: var(--accent);
  font-weight: 900;
}

.reels {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #05101a;
  position: relative;
}

.reels::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, var(--accent), #fff, var(--accent), transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 78%, transparent);
  transform: translateY(-50%);
}

.reel {
  position: relative;
  height: clamp(98px, 26vw, 138px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--gold);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.14), transparent 20%, transparent 80%, rgba(0,0,0,0.14)),
    linear-gradient(180deg, #f8fbff, #bdd2e2 48%, #ffffff);
  box-shadow:
    inset 0 0 12px rgba(7, 21, 35, 0.3),
    inset 0 14px 22px rgba(255,255,255,0.44),
    inset 0 -16px 20px rgba(5,15,24,0.16);
}

.reel::before,
.reel::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 28%;
  z-index: 1;
  pointer-events: none;
}

.reel::before {
  top: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.72), transparent);
}

.reel::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(12,34,52,.46), transparent);
}

.reel > span,
.reel .slot-symbol {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  text-align: center;
  font-size: clamp(42px, 14vw, 76px);
  font-weight: 1000;
  color: #152330;
  text-shadow: 0 2px 0 #fff;
  transform-origin: center;
}

.slot-symbol {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.reel .slot-symbol img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.reel.spinning > span {
  animation: reel-spin 110ms linear infinite;
}

.reel.is-stopped {
  box-shadow:
    inset 0 0 12px rgba(7, 21, 35, 0.3),
    0 0 18px color-mix(in srgb, var(--accent) 42%, transparent);
}

@keyframes reel-spin {
  from { transform: translateY(-72px) scaleY(1.08); filter: blur(2px); opacity: .78; }
  50% { opacity: 1; }
  to { transform: translateY(72px) scaleY(1.08); filter: blur(2px); opacity: .78; }
}

.slot-stop-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.slot-payline {
  min-height: 20px;
  display: grid;
  place-items: center;
  color: #071523;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--accent), #fff, var(--accent), transparent);
  font-size: 11px;
  font-weight: 1000;
}

.slot-stop {
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 8px;
  color: #071523;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, #fff), var(--accent));
  font-weight: 1000;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 24%, transparent);
}

.slot-stop:disabled {
  color: var(--muted);
  border-color: rgba(255,255,255,0.12);
  background: rgba(11,37,56,0.78);
  box-shadow: none;
}

.slot-machine.fx .slot-cabinet {
  transition: box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.slot-machine.fx-notice .slot-cabinet {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.07),
    inset 0 0 56px rgba(77,180,255,0.11),
    0 0 28px rgba(77,180,255,0.22),
    0 22px 62px rgba(0,0,0,0.52);
}

.slot-machine.fx-chance-weak .reels,
.slot-machine.fx-round-continue .reels {
  box-shadow:
    inset 0 0 22px rgba(77,180,255,0.18),
    0 0 24px rgba(244,194,71,0.2);
}

.slot-machine.fx-chance-strong .slot-cabinet {
  border-color: rgba(255,85,94,0.75);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 62px rgba(255,65,93,0.18),
    0 0 30px rgba(255,65,93,0.3),
    0 0 44px rgba(244,194,71,0.2);
}

.slot-machine.fx-chance-strong .slot-lcd {
  animation: slot-strong-pulse 780ms ease-in-out 2;
}

.slot-machine.fx-big .slot-cabinet,
.slot-machine.fx-round-continue .slot-cabinet {
  border-color: rgba(255,215,94,0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.1),
    inset 0 0 68px rgba(255,215,94,0.18),
    0 0 32px rgba(255,215,94,0.32),
    0 0 54px rgba(77,180,255,0.18);
}

.slot-machine.fx-big .slot-data-board strong,
.slot-machine.fx-counter-win .slot-data-board strong {
  color: #ffd75e;
  text-shadow:
    0 0 7px #fff,
    0 0 15px rgba(255,215,94,0.9),
    0 0 28px rgba(255,215,94,0.5);
}

.slot-machine.fx-ring-sweep .slot-lcd::after {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(77,180,255,0.05), rgba(255,215,94,0.42), transparent 32%);
  mix-blend-mode: screen;
  animation: ring-sweep 1.5s linear infinite;
}

.slot-machine.fx-high-end .slot-cabinet {
  filter: saturate(0.78) brightness(0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 0 0 46px rgba(155,123,255,0.12),
    0 0 22px rgba(77,180,255,0.1),
    0 22px 62px rgba(0,0,0,0.58);
}

.slot-machine.fx-setting6-hint .slot-data-board > div:last-child,
.slot-machine.fx-setting6-hint .slot-stop:not(:disabled) {
  border-color: rgba(255,255,255,0.72);
  box-shadow:
    0 0 14px rgba(255,255,255,0.32),
    0 0 24px rgba(155,123,255,0.28),
    inset 0 0 18px rgba(50,212,135,0.18);
}

.slot-machine.fx-button-glow .slot-stop:not(:disabled) {
  animation: button-ready-pulse 1.2s ease-in-out infinite;
}

@keyframes slot-strong-pulse {
  0%, 100% { filter: brightness(1); }
  45% { filter: brightness(1.45) saturate(1.25); }
}

@keyframes ring-sweep {
  to { transform: rotate(1turn); }
}

@keyframes button-ready-pulse {
  0%, 100% { box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 24%, transparent); }
  50% { box-shadow: 0 0 22px rgba(255,215,94,0.48), 0 0 36px rgba(77,180,255,0.22); }
}

@media (prefers-reduced-motion: reduce) {
  .slot-machine.fx-chance-strong .slot-lcd,
  .slot-machine.fx-button-glow .slot-stop:not(:disabled),
  .slot-machine.fx-ring-sweep .slot-lcd::after {
    animation: none;
  }
}

.roulette-wheel {
  width: min(78vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 12px solid #d7b45a;
  background:
    conic-gradient(from 0deg, #d33131 0 10deg, #101010 10deg 20deg, #d33131 20deg 30deg, #101010 30deg 40deg, #0da35f 40deg 50deg, #101010 50deg 60deg, #d33131 60deg 70deg, #101010 70deg 80deg, #d33131 80deg 90deg, #101010 90deg 100deg, #d33131 100deg 110deg, #101010 110deg 120deg, #d33131 120deg 130deg, #101010 130deg 140deg, #d33131 140deg 150deg, #101010 150deg 160deg, #d33131 160deg 170deg, #101010 170deg 180deg, #d33131 180deg 190deg, #101010 190deg 200deg, #d33131 200deg 210deg, #101010 210deg 220deg, #d33131 220deg 230deg, #101010 230deg 240deg, #d33131 240deg 250deg, #101010 250deg 260deg, #d33131 260deg 270deg, #101010 270deg 280deg, #d33131 280deg 290deg, #101010 290deg 300deg, #d33131 300deg 310deg, #101010 310deg 320deg, #d33131 320deg 330deg, #101010 330deg 340deg, #d33131 340deg 360deg);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 32%, transparent), inset 0 0 28px rgba(0,0,0,0.6);
  transition: transform 2s cubic-bezier(.16,.84,.2,1);
}

.wheel-number {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #061523;
  background: var(--accent);
  font-size: 58px;
  font-weight: 1000;
}

.choice-grid {
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.choice-grid button {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(180deg, #214b68, #0d2436);
  font-weight: 900;
}

.choice-grid button.is-selected {
  color: #071523;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent));
}

.card-lanes {
  width: 100%;
  display: grid;
  gap: 12px;
}

.card-lanes span {
  color: var(--gold);
  font-weight: 900;
}

.cards {
  min-height: 112px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.card {
  width: clamp(54px, 15vw, 78px);
  aspect-ratio: 0.68;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #d9e6ef);
  color: #071523;
  font-size: clamp(20px, 6vw, 30px);
  font-weight: 1000;
  box-shadow: 0 10px 20px rgba(0,0,0,0.35);
  animation: card-in 360ms ease-out both;
}

.card b,
.card span {
  line-height: 1;
}

.card img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}

.card.is-red {
  color: #b92035;
}

@keyframes card-in {
  from { transform: translateY(-32px) rotate(-8deg); opacity: 0; }
  to { transform: translateY(0) rotate(0); opacity: 1; }
}

.predict-panel {
  align-content: center;
}

.ticker {
  width: 100%;
  max-width: 420px;
  min-height: 112px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(77,180,255,.2), rgba(50,212,135,.16));
  font-size: 24px;
  font-weight: 1000;
  text-align: center;
}

.chart-bars {
  width: 100%;
  max-width: 420px;
  height: 160px;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  align-items: end;
  gap: 4px;
}

.chart-bars i {
  display: block;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  animation: bar-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes bar-pulse {
  to { filter: brightness(1.35); transform: translateY(-6px); }
}

.solitaire-cards {
  min-height: 180px;
}

.controls {
  position: sticky;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(244, 194, 71, 0.28);
  border-radius: 8px;
  background: rgba(4, 13, 20, 0.88);
  backdrop-filter: blur(14px);
}

select,
.start-button {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #0b2538;
  padding: 0 10px;
  font-weight: 850;
}

.start-button {
  grid-column: 1 / -1;
  min-height: 58px;
  border: 0;
  color: #071523;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  font-size: 22px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 28%, transparent);
}

.start-button:active {
  transform: translateY(2px);
}

.result-card p {
  margin: 0 0 4px;
  color: var(--gold);
  font-weight: 900;
}

.result-card strong {
  display: block;
  line-height: 1.35;
}

.is-busy .start-button {
  pointer-events: none;
  filter: grayscale(0.5);
}

.is-busy .game-stage {
  animation: stage-pulse 720ms ease-in-out infinite alternate;
}

@keyframes stage-pulse {
  to {
    border-color: rgba(244, 194, 71, 0.72);
    box-shadow:
      inset 0 0 44px rgba(77, 180, 255, 0.18),
      0 0 32px rgba(244, 194, 71, 0.18),
      0 18px 40px rgba(0, 0, 0, 0.3);
  }
}

@media (min-width: 720px) {
  .app-shell {
    grid-template-rows: auto auto 1fr auto auto;
  }

  .controls {
    grid-template-columns: 1fr 180px 200px;
  }

  .start-button {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .topbar {
    grid-template-columns: 56px 1fr auto;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  h1 {
    font-size: 24px;
  }

  .status-strip strong {
    font-size: 16px;
  }

  .stage-mascot {
    right: -120px;
    width: 420px;
    opacity: 0.1;
  }

  .slot-cabinet {
    padding: 10px;
  }

  .slot-data-board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .slot-data-board span {
    font-size: 7px;
  }

  .lcd-copy {
    width: 66%;
    padding: 12px;
  }

  .slot-lcd.has-lcd-art .lcd-copy {
    width: 58%;
  }

  .lcd-copy strong {
    font-size: 26px;
  }

  .lcd-mascot {
    right: -26px;
    width: 48%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
