/* ─────────────────────────────────────────────────────────────────────
   AZUMANGA SLOT — full absurd manga aesthetic.
   Three skins (manga / daioh / storm) share base structure but
   diverge on background, frame color, button treatment.
   ───────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Anton&family=Russo+One&family=Mochiy+Pop+One&family=DotGothic16&family=Zen+Maru+Gothic:wght@500;700;900&display=swap');

:root {
  --ink: #111;
  --paper: #fdf8ed;
  --pink: #ff5b8d;
  --yellow: #ffd84a;
  --cyan: #7be6ff;
  --shadow-card: 4px 4px 0 #111;
}

* { box-sizing: border-box; }
html, body, #root { margin: 0; padding: 0; }

body {
  background: #1d1a25;
  font-family: 'Zen Maru Gothic', 'Mochiy Pop One', system-ui, sans-serif;
  color: #111;
  overflow: hidden;
}

/* ─── shared slot shell ─────────────────────────────────────────── */
.slot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  --tile-size: 64px;
  --tile-gap: 6px;
}

.slot-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}

.slot-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 22px;
  gap: 14px;
  height: 100%;
  overflow-y: auto;
}

/* manga shake — big-win effect */
.slot.shake { animation: shakeKey 0.5s cubic-bezier(.36,.07,.19,.97); }
@keyframes shakeKey {
  10%, 90% { transform: translate3d(-2px,1px,0) rotate(-0.5deg); }
  20%, 80% { transform: translate3d(4px,-2px,0) rotate(1deg); }
  30%, 50%, 70% { transform: translate3d(-6px,2px,0) rotate(-1.5deg); }
  40%, 60% { transform: translate3d(6px,-1px,0) rotate(1.5deg); }
}

/* ─── header ────────────────────────────────────────────────────── */
.slot-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.back-btn {
  align-self: flex-start;
  background: none;
  border: 2px solid #111;
  color: #111;
  padding: 3px 10px;
  font-family: 'Zen Maru Gothic', system-ui, sans-serif;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #111;
  transition: transform 0.1s;
}
.back-btn:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #111; }

.slot-title {
  font-family: 'Russo One', 'Bangers', 'Anton', system-ui, sans-serif;
  font-size: 56px;
  line-height: 0.95;
  margin: 0;
  letter-spacing: 0.04em;
  color: #111;
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 var(--pink);
  font-style: italic;
  transform: rotate(-2deg);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.title-jp {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 18px;
  font-style: normal;
  text-shadow: 2px 2px 0 #fff;
  transform: rotate(2deg);
  display: inline-block;
  color: #111;
}

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

.balance {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: #fff;
  border: 2.5px solid #111;
  padding: 4px 12px;
  box-shadow: 3px 3px 0 #111;
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.04em;
  transform: rotate(-1deg);
}
.balance-label { font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 2px; }
.balance-val { font-size: 22px; font-weight: 900; color: #111; }
.balance-coin { font-size: 14px; color: var(--pink); font-weight: 900; }

.freespins-pill {
  background: var(--yellow);
  border: 2.5px solid #111;
  padding: 5px 12px;
  font-family: 'Anton', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 #111;
  transform: rotate(1deg);
  animation: bounce 0.6s ease-in-out infinite alternate;
}
.freespins-pill span { color: var(--pink); margin-right: 2px; }
@keyframes bounce {
  from { transform: rotate(1deg) translateY(0); }
  to   { transform: rotate(-1deg) translateY(-3px); }
}

/* ─── reel frame (manga panel) ──────────────────────────────────── */
.reel-frame {
  position: relative;
  padding: 4px;
  background: var(--frame-color, #111);
  box-shadow: 5px 5px 0 #111, 0 0 0 2px #111;
  border-radius: 2px;
}
.reel-frame-inner {
  position: relative;
  background: #fff;
  padding: 14px 12px;
  border: 2px solid #111;
  overflow: hidden;
}

.corner { position: absolute; width: 14px; height: 14px; background: var(--frame-color, #111); z-index: 1; }
.corner.tl { top: -2px; left: -2px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.corner.tr { top: -2px; right: -2px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.corner.bl { bottom: -2px; left: -2px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.corner.br { bottom: -2px; right: -2px; clip-path: polygon(100% 0, 0 100%, 100% 100%); }

.reels {
  position: relative;
  display: flex;
  justify-content: center;
}

.reel {
  position: relative;
  overflow: hidden;
  height: calc(var(--tile-size) * 3 + var(--tile-gap) * 2);
}

.reel-strip {
  display: flex;
  flex-direction: column;
}

.reel-strip-spinning {
  --travel: 0;
  will-change: transform;
}
@keyframes reelSpin {
  from { transform: translateY(0); }
  to   { transform: translateY(var(--travel)); }
}

/* ─── tiles ─────────────────────────────────────────────────────── */
.tile {
  position: relative;
  width: var(--tile-size);
  height: var(--tile-size);
  overflow: hidden;
  isolation: isolate;
  flex-shrink: 0;
}
.tile-bg { position: absolute; inset: 0; opacity: 0.18; }
.tile img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.1);
  display: block;
}

/* WILD / SCATTER badges — comic stickers riveted onto the tile */
.tile-badge {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%) rotate(-4deg);
  font-family: 'Anton', 'Russo One', sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 1px 6px 2px;
  color: #111;
  border: 1.5px solid #111;
  box-shadow: 1.5px 1.5px 0 #111;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.6);
  z-index: 3;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}
.tile-badge-wild    { background: var(--yellow); }
.tile-badge-scatter {
  background: var(--pink);
  color: #fff;
  text-shadow: 1px 1px 0 #111;
  top: 4px;
  bottom: auto;
  transform: translateX(-50%) rotate(4deg);
}
.tile-hit { animation: hitPulse 1s ease-in-out infinite; }@keyframes hitPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.06); filter: brightness(1.18); }
}
.tile-flash {
  position: absolute; inset: 0;
  border: 3px solid #fff;
  box-shadow: inset 0 0 0 2px var(--tint, #ff5b8d), 0 0 12px var(--tint, #ff5b8d);
  animation: flashKey 0.8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes flashKey {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

/* ─── win ticker ────────────────────────────────────────────────── */
.win-ticker {
  min-height: 56px;
  background: #fff;
  border: 2.5px solid #111;
  box-shadow: 4px 4px 0 #111;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.02em;
  position: relative;
  transform: rotate(-0.5deg);
}
.win-ticker-hit { background: var(--yellow); }
.win-ticker-shrug { background: #efebe1; }
.win-ticker-idle {
  justify-content: center;
  animation: tickerFade 0.5s ease-out;
}
@keyframes tickerFade {
  from { opacity: 0; transform: rotate(-0.5deg) translateY(4px); }
  to   { opacity: 1; transform: rotate(-0.5deg) translateY(0); }
}
.ticker-spinning {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 14px; color: #444;
  width: 100%; text-align: center;
}
.ticker-spinning span { display: inline-block; animation: wiggle 0.6s infinite; margin: 0 6px; }
@keyframes wiggle { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

.ticker-symbol { width: 40px; height: 40px; border: 2px solid #111; overflow: hidden; flex-shrink: 0; }
.ticker-symbol img { width: 100%; height: 100%; object-fit: cover; }
.ticker-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ticker-text strong { font-size: 16px; font-weight: 900; color: #111; }
.ticker-line { font-size: 11px; opacity: 0.7; font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; }
.ticker-amount { font-size: 26px; font-weight: 900; color: #111; letter-spacing: 0; }
.ticker-amount small { font-size: 14px; color: var(--pink); margin-left: 2px; }

.jp-bubble { font-family: 'Mochiy Pop One', sans-serif; font-size: 18px; color: var(--pink); }
.en-shout { font-family: 'Bangers', sans-serif; font-size: 22px; font-style: italic; }

/* ─── paytable ──────────────────────────────────────────────────── */
.paytable {
  background: #fff;
  border: 2.5px solid #111;
  box-shadow: 4px 4px 0 #111;
}
.paytable-toggle {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-family: 'Anton', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111;
}
.pt-bullet { font-weight: 900; }
.pt-chev { font-size: 14px; opacity: 0.7; }
.paytable-grid {
  padding: 10px 14px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 2px dashed #111;
}
.pt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Zen Maru Gothic', sans-serif;
}
.pt-thumb { width: 30px; height: 30px; border: 1.5px solid #111; flex-shrink: 0; overflow: hidden; }
.pt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pt-meta { min-width: 0; flex: 1; }
.pt-name { font-weight: 900; font-size: 11px; letter-spacing: 0.02em; }
.pt-name .pt-jp { font-weight: 500; opacity: 0.55; margin-left: 2px; font-size: 10px; }
.pt-pays { font-size: 10px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.pt-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--pink);
  color: #fff;
  padding: 1px 5px;
  letter-spacing: 0.04em;
}
.pt-row-scatter .pt-tag { background: var(--cyan); color: #111; }
.pt-note {
  grid-column: 1 / -1;
  padding-top: 6px;
  border-top: 1px dashed #111;
  font-size: 10px;
  opacity: 0.7;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
}

/* ─── bet controls ──────────────────────────────────────────────── */
.bet-controls { display: flex; flex-direction: column; gap: 10px; }
.bet-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.bet-display {
  background: #fff;
  border: 2.5px solid #111;
  box-shadow: 3px 3px 0 #111;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 96px;
}
.bet-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; font-weight: 700; }
.bet-amount { font-family: 'Anton', sans-serif; font-size: 24px; font-weight: 900; line-height: 1; }
.bet-amount small { font-size: 12px; color: var(--pink); margin-left: 1px; }

.bet-chips {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  flex: 1;
}
.chip {
  background: #fff;
  border: 2px solid #111;
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 6px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #111;
  transition: transform 0.08s;
  color: #111;
  letter-spacing: 0.04em;
}
.chip:hover:not(:disabled) { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #111; }
.chip:active:not(:disabled) { transform: translate(1px,1px); box-shadow: 0 0 0 #111; }
.chip:disabled { opacity: 0.4; cursor: not-allowed; }
.chip-on { background: var(--yellow); transform: translate(1px,1px); box-shadow: 0 0 0 #111; }
.chip-all { background: var(--pink); color: #fff; }

/* SPIN BUTTON — the star of the show */
.spin-btn {
  position: relative;
  background: var(--pink);
  color: #fff;
  border: 3px solid #111;
  padding: 14px 18px 18px;
  cursor: pointer;
  font-family: 'Bangers', 'Anton', sans-serif;
  font-style: italic;
  letter-spacing: 0.06em;
  text-align: center;
  box-shadow: 6px 6px 0 #111;
  transition: transform 0.1s, box-shadow 0.1s;
  overflow: visible;
  /* burst-edge clip — comic balloon shape */
  clip-path: polygon(
    2% 8%, 8% 0%, 18% 6%, 30% 0%, 42% 5%, 55% 0%, 68% 6%, 80% 0%, 92% 5%, 100% 12%,
    98% 28%, 100% 45%, 96% 60%, 100% 78%, 95% 92%, 86% 100%, 72% 95%, 58% 100%,
    45% 95%, 32% 100%, 20% 95%, 10% 100%, 2% 92%, 0% 75%, 4% 58%, 0% 40%, 5% 22%
  );
}
.spin-btn:hover:not(:disabled) { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 #111; }
.spin-btn:active:not(:disabled) { transform: translate(3px,3px); box-shadow: 0 0 0 #111; }
.spin-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.spin-label {
  display: block;
  font-size: 28px;
  line-height: 1;
  text-shadow: 3px 3px 0 #111;
  font-weight: 900;
}
.spin-sub {
  display: block;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  margin-top: 6px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  letter-spacing: 0.05em;
  opacity: 0.95;
}
.spin-btn.spinning .spin-label { animation: wiggle 0.4s infinite; }

.auto-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.auto-lbl {
  font-family: 'Anton', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-right: 2px;
}
.auto-chip { padding: 4px 10px; font-size: 12px; }
.auto-stop { background: #ff3838; color: #fff; }

/* ─── big-win full-screen FX ────────────────────────────────────── */
.big-win-fx {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  animation: bwIn 0.3s ease-out;
}
@keyframes bwIn { from { opacity: 0; } to { opacity: 1; } }

.bw-veil {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(60,30,90,0.4) 0%, rgba(0,0,0,0.7) 90%);
  animation: veilFlicker 0.18s infinite;
}
@keyframes veilFlicker {
  0%, 100% { background-color: rgba(0,0,0,0); }
  50% { background-color: rgba(255,255,255,0.18); }
}

.lightning { position: absolute; inset: 0; width: 100%; height: 100%; }
.bolt { opacity: 0; }
.bolt1 { animation: boltFlick 1.6s infinite; animation-delay: 0s; }
.bolt2 { animation: boltFlick 1.6s infinite; animation-delay: 0.2s; }
.bolt3 { animation: boltFlick 1.6s infinite; animation-delay: 0.5s; }
.bolt4 { animation: boltFlick 1.6s infinite; animation-delay: 0.8s; }
.bolt5 { animation: boltFlick 1.6s infinite; animation-delay: 1.1s; }
@keyframes boltFlick {
  0%, 4% { opacity: 1; }
  5%, 10% { opacity: 0.1; }
  11%, 16% { opacity: 1; }
  17%, 100% { opacity: 0; }
}

.bw-rays {
  position: absolute; inset: 0;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(255,255,255,0.18) 0deg 8deg,
      transparent 8deg 22deg);
  mix-blend-mode: screen;
  animation: raySpin 4s linear infinite;
  opacity: 0.5;
}
@keyframes raySpin { to { transform: rotate(360deg); } }

.bw-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  z-index: 2;
}
.bw-jp {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 56px;
  color: #fff;
  text-shadow:
    -3px -3px 0 #111, 3px -3px 0 #111, -3px 3px 0 #111, 3px 3px 0 #111,
    0 0 24px var(--yellow);
  animation: jpPop 0.5s cubic-bezier(.5,1.8,.5,1);
  transform-origin: center;
}
@keyframes jpPop {
  0% { transform: scale(0.3) rotate(-20deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(-3deg); opacity: 1; }
}
.bw-en {
  font-family: 'Bangers', sans-serif;
  font-size: 38px;
  font-style: italic;
  color: var(--yellow);
  text-shadow: 4px 4px 0 #111, -1px -1px 0 #111, 1px 1px 0 #111;
  letter-spacing: 0.06em;
  margin-top: -10px;
  transform: rotate(-4deg);
}
.bw-symbol {
  position: relative;
  width: 140px; height: 140px;
  border: 4px solid #111;
  background: #fff;
  margin: 10px 0;
  box-shadow: 6px 6px 0 #111;
  overflow: hidden;
  animation: symPunch 0.4s ease-out;
}
.bw-symbol img { width: 100%; height: 100%; object-fit: cover; }
.bw-symbol-ring {
  position: absolute; inset: -10px;
  border: 4px dashed #fff;
  animation: ringSpin 3s linear infinite;
  pointer-events: none;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes symPunch {
  0% { transform: scale(0) rotate(-30deg); }
  60% { transform: scale(1.15) rotate(8deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.bw-amount {
  font-family: 'Anton', sans-serif;
  font-size: 64px;
  color: #fff;
  text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 #111;
  letter-spacing: 0.02em;
  line-height: 1;
}
.bw-amount small { font-size: 32px; }
.bw-tag {
  background: var(--yellow);
  color: #111;
  border: 3px solid #111;
  padding: 6px 14px;
  font-family: 'Bangers', sans-serif;
  font-size: 18px;
  font-style: italic;
  margin-top: 6px;
  box-shadow: 4px 4px 0 #111;
  transform: rotate(-2deg);
}

/* ─── scatter callout ───────────────────────────────────────────── */
.scatter-fx {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.scatter-shout {
  background: var(--cyan);
  border: 4px solid #111;
  padding: 24px 40px;
  box-shadow: 8px 8px 0 #111;
  text-align: center;
  transform: rotate(-3deg);
  animation: jpPop 0.4s cubic-bezier(.5,1.8,.5,1);
}
.ss-jp { font-family: 'Mochiy Pop One', sans-serif; font-size: 28px; }
.ss-en { font-family: 'Bangers', sans-serif; font-size: 36px; font-style: italic; }
.ss-sub { font-family: 'Anton', sans-serif; font-size: 12px; letter-spacing: 0.12em; opacity: 0.7; margin-top: 4px; }

/* ─── HAVD telegram banner ──────────────────────────────────────── */
.havd-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  border: 2.5px solid #111;
  box-shadow: 5px 5px 0 var(--yellow), 5px 5px 0 1.5px #111;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  transform: rotate(-0.6deg);
  isolation: isolate;
}
.havd-banner:hover {
  transform: rotate(-0.6deg) translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--yellow), 7px 7px 0 1.5px #111;
}
.havd-banner:active {
  transform: rotate(-0.6deg) translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--yellow), 1px 1px 0 1.5px #111;
}
.havd-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  overflow: hidden;
  background: #d6243a;
  border: 2px solid #fff;
  transform: rotate(-4deg);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.4);
}
.havd-stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.havd-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.1;
  text-align: center;
  align-items: center;
}
.havd-brand {
  font-family: 'Bangers', 'Russo One', sans-serif;
  font-size: 22px;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--yellow);
  text-shadow: 2px 2px 0 #d6243a;
}
.havd-cta {
  font-family: 'Russo One', 'Anton', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  margin-top: 1px;
  text-transform: uppercase;
}
.havd-arrow {
  flex-shrink: 0;
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--yellow);
  text-shadow: 2px 2px 0 #d6243a;
  animation: havdNudge 1.4s ease-in-out infinite;
}
@keyframes havdNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
.havd-shimmer {
  position: absolute;
  top: 0; bottom: 0;
  width: 30%;
  left: -40%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255,216,74,0.0) 30%,
    rgba(255,216,74,0.45) 50%,
    rgba(255,216,74,0.0) 70%,
    transparent 100%
  );
  animation: havdSheen 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
}
@keyframes havdSheen {
  0% { left: -40%; }
  60% { left: 110%; }
  100% { left: 110%; }
}

/* dark-skin override: keep readable on storm */
.slot-storm .havd-banner { box-shadow: 5px 5px 0 var(--cyan), 5px 5px 0 1.5px #fff; border-color: #fff; }
.slot-storm .havd-banner:hover { box-shadow: 7px 7px 0 var(--cyan), 7px 7px 0 1.5px #fff; }
.speed-lines {
  position: absolute; inset: 0; z-index: 1;
  background: repeating-conic-gradient(
    from 0deg at 50% 45%,
    transparent 0deg 2deg,
    rgba(255,255,255,0.08) 2deg 4deg,
    transparent 4deg 12deg
  );
  mask-image: radial-gradient(ellipse at 50% 45%, transparent 30%, #000 80%);
  pointer-events: none;
}

/* ─── skin: MANGA (B&W halftone) ────────────────────────────────── */
.slot-manga { background: #fdf8ed; }
.manga-paper { position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(0,0,0,0.025) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(0,0,0,0.025) 39px 40px),
    #fdf8ed;
}
.halftone-bg {
  position: absolute; inset: 0;
  background-repeat: repeat;
  mix-blend-mode: multiply;
  opacity: 0.6;
}
.manga-panels { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.15; pointer-events: none; }
.manga-sfx { position: absolute; inset: 0; pointer-events: none; }
.manga-sfx span {
  position: absolute;
  font-family: 'Bangers', 'Anton', sans-serif;
  font-style: italic;
  font-size: 26px;
  color: #111;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 var(--pink);
  opacity: 0.55;
  letter-spacing: 0.04em;
}

/* ─── skin: DAIOH (bright sky) ──────────────────────────────────── */
.slot-daioh { background: #cfe9ff; }
.cloud-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cloud-bg svg { width: 100%; height: 100%; display: block; }
.pink-wash {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,140,200,0.5), transparent 60%);
  mix-blend-mode: multiply;
}
.school-stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -10deg,
    transparent 0 50px,
    rgba(255,200,80,0.18) 50px 90px,
    transparent 90px 140px,
    rgba(255,140,200,0.12) 140px 180px
  );
  mix-blend-mode: multiply;
}
.slot-daioh .slot-title {
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 var(--cyan);
}

/* ─── skin: STORM (dark) ────────────────────────────────────────── */
.slot-storm { background: #0d0a18; }
.storm-bg { position: absolute; inset: 0; }
.storm-bg svg { width: 100%; height: 100%; }
.storm-flash {
  position: absolute; inset: 0;
  background: rgba(180, 160, 255, 0);
  mix-blend-mode: screen;
  animation: stormFlicker 5s infinite;
  pointer-events: none;
}
@keyframes stormFlicker {
  0%, 88% { background: rgba(180, 160, 255, 0); }
  90%, 91% { background: rgba(220, 200, 255, 0.45); }
  92% { background: rgba(180, 160, 255, 0); }
  93% { background: rgba(255, 255, 255, 0.6); }
  94%, 100% { background: rgba(180, 160, 255, 0); }
}
.rain-dots {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.35) 1px, transparent 1.5px),
    radial-gradient(circle at 35% 60%, rgba(255,255,255,0.35) 1px, transparent 1.5px),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.35) 1px, transparent 1.5px),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.35) 1px, transparent 1.5px),
    radial-gradient(circle at 50% 90%, rgba(255,255,255,0.35) 1px, transparent 1.5px);
  background-size: 80px 80px;
  animation: rainFall 0.7s linear infinite;
}
@keyframes rainFall { to { background-position: 0 80px, 0 80px, 0 80px, 0 80px, 0 80px; } }

.slot-storm .slot-title {
  color: #fff;
  text-shadow: 3px 3px 0 #1a1530, 6px 6px 0 var(--cyan), 0 0 18px rgba(123,230,255,0.6);
}
.slot-storm .back-btn { color: #fff; border-color: #fff; box-shadow: 2px 2px 0 var(--cyan); }
.slot-storm .balance,
.slot-storm .win-ticker,
.slot-storm .bet-display,
.slot-storm .paytable,
.slot-storm .chip {
  background: #1c1530; color: #fff; border-color: #fff;
  box-shadow: 3px 3px 0 var(--cyan);
}
.slot-storm .chip-on { background: var(--cyan); color: #111; }
.slot-storm .chip-all { background: var(--pink); color: #fff; }
.slot-storm .balance-val,
.slot-storm .bet-amount,
.slot-storm .ticker-amount,
.slot-storm .ticker-text strong,
.slot-storm .pt-name { color: #fff; }
.slot-storm .pt-row { color: #fff; }
.slot-storm .paytable-toggle { color: #fff; }
.slot-storm .auto-lbl { color: #fff; opacity: 0.7; }
.slot-storm .reel-frame-inner { background: #1c1530; border-color: #fff; }
.slot-storm .win-ticker-hit { background: var(--cyan); color: #111; }
.slot-storm .win-ticker-hit .ticker-amount,
.slot-storm .win-ticker-hit .ticker-text strong,
.slot-storm .win-ticker-hit .ticker-line { color: #111; }

/* ── per-skin spin buttons ── */
.spin-btn-manga { background: #111; color: var(--yellow); box-shadow: 6px 6px 0 var(--pink); }
.spin-btn-manga .spin-label { text-shadow: 3px 3px 0 var(--pink); }

.spin-btn-daioh { background: var(--pink); color: #fff; }
.spin-btn-daioh .spin-label { text-shadow: 3px 3px 0 #111; }

.spin-btn-storm { background: var(--cyan); color: #111; box-shadow: 6px 6px 0 var(--pink); }
.spin-btn-storm .spin-label { text-shadow: 3px 3px 0 #fff, 5px 5px 0 #111; color: #111; }
