* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: radial-gradient(ellipse at center, #1a0050 0%, #0a0028 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

#game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.4rem, 1.5vh, 0.8rem);
  width: 100%;
  max-width: 700px;
  padding: 0.5rem;
}

/* Payout table */
#payout-table {
  width: 100%;
}
.pt-title {
  text-align: center;
  font-size: clamp(0.6rem, 1.6vw, 0.75rem);
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255,215,0,0.7);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.pt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4px, 1vw, 8px);
}
.pt-grid table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0,0,0,0.4);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,215,0,0.2);
}
.pt-grid thead tr {
  background: rgba(255,215,0,0.15);
}
.pt-grid th {
  color: #ffd700;
  font-size: clamp(0.5rem, 1.3vw, 0.65rem);
  padding: 0.18rem 0.3rem;
  text-align: center;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.pt-grid td {
  color: #fff;
  font-size: clamp(0.5rem, 1.3vw, 0.65rem);
  padding: 0.12rem 0.3rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pt-grid tr:last-child td { border-bottom: none; }
.pt-grid tr:nth-child(even) td { background: rgba(255,255,255,0.03); }
.pt-sym { text-align: left !important; white-space: nowrap; }
.pt-sym span {
  font-size: clamp(0.45rem, 1.1vw, 0.58rem);
  color: rgba(255,255,255,0.65);
  margin-left: 0.2rem;
}
.pt-title-paylines { margin-top: 0.2rem; }

/* Paylines diagram */
.pl-grid {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.5vw, 12px);
}
.pl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pl-label {
  color: #ffd700;
  font-size: clamp(0.42rem, 1.1vw, 0.58rem);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.pl-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 3px;
  padding: 3px;
}
.pl-cell {
  width: clamp(6px, 1.4vw, 10px);
  height: clamp(6px, 1.4vw, 10px);
  border-radius: 1px;
  background: rgba(255,255,255,0.1);
}
.pl-cell.pl-active {
  background: #ffd700;
  box-shadow: 0 0 4px rgba(255,215,0,0.9);
}

/* Header */
#header { text-align: center; }
h1 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255,215,0,0.9), 0 0 40px rgba(255,215,0,0.4);
  letter-spacing: 3px;
  font-weight: 900;
}

#stats {
  display: flex;
  gap: clamp(0.8rem, 3vw, 2rem);
  justify-content: center;
  margin-top: 0.4rem;
}
.stat {
  background: rgba(255,255,255,0.1);
  border: 2px solid #ffd700;
  border-radius: 8px;
  padding: 0.25rem 0.8rem;
  text-align: center;
  backdrop-filter: blur(4px);
}
.stat label {
  display: block;
  font-size: 0.6rem;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat span {
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: bold;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.win-stat span { color: #7fff00; text-shadow: 0 0 10px #7fff00; }

/* Machine frame */
#machine {
  background: linear-gradient(160deg, #c8860a, #ffd700 40%, #c8860a 70%, #ffaa00);
  border-radius: clamp(10px, 2vw, 18px);
  padding: clamp(6px, 1.5vw, 12px);
  box-shadow: 0 0 50px rgba(255,215,0,0.5), 0 0 100px rgba(255,165,0,0.2),
              inset 0 2px 4px rgba(255,255,255,0.6), inset 0 -2px 4px rgba(0,0,0,0.4);
}

#machine-top, #machine-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
}
#machine-label {
  font-size: clamp(0.7rem, 2vw, 1rem);
  font-weight: 900;
  color: #8b0000;
  letter-spacing: 2px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
#machine-bottom-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #5a0000;
  letter-spacing: 3px;
}

/* Lamps */
.lamp {
  width: clamp(10px, 2vw, 16px);
  height: clamp(10px, 2vw, 16px);
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.3);
}
.lamp.l1 { background: #ff4444; animation: lamp-a 0.8s ease-in-out infinite alternate; }
.lamp.l2 { background: #ffaa00; animation: lamp-a 0.8s ease-in-out 0.13s infinite alternate; }
.lamp.l3 { background: #ffff00; animation: lamp-a 0.8s ease-in-out 0.26s infinite alternate; }
.lamp.l4 { background: #00ff88; animation: lamp-a 0.8s ease-in-out 0.4s infinite alternate; }
.lamp.l5 { background: #00aaff; animation: lamp-a 0.8s ease-in-out 0.53s infinite alternate; }
.lamp.l6 { background: #ff44ff; animation: lamp-a 0.8s ease-in-out 0.66s infinite alternate; }

@keyframes lamp-a {
  from { box-shadow: 0 0 4px currentColor; opacity: 0.7; }
  to { box-shadow: 0 0 12px currentColor, 0 0 20px currentColor; opacity: 1; }
}

/* Reels area */
#reels-frame {
  position: relative;
  background: #0d0030;
  border-radius: 10px;
  padding: clamp(5px, 1.5vw, 10px);
  border: 3px solid #8b6000;
  box-shadow: inset 0 0 30px rgba(0,0,100,0.8);
}

#reels {
  display: flex;
  gap: clamp(4px, 1vw, 8px);
}

.reel-col {
  width: clamp(58px, 12vw, 88px);
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 3px solid #ddd;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.reel-col.wild-glow {
  border-color: #ff6a00;
  box-shadow: 0 0 15px rgba(255,106,0,0.9), inset 0 0 10px rgba(255,200,0,0.2);
}

.reel-cell {
  height: clamp(58px, 12vw, 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 6vw, 48px);
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  transition: background-color 0.3s;
  user-select: none;
}
.reel-cell:last-child { border-bottom: none; }
.reel-cell.spinning { filter: blur(2px); }
.reel-cell.win-hi { background: rgba(255,215,0,0.4); }
.reel-cell.win-lo { background: rgba(255,215,0,0.15); }
.reel-cell.wild-hi { background: rgba(255,106,0,0.2); }

#payline-center {
  position: absolute;
  top: 50%;
  left: clamp(5px, 1.5vw, 10px);
  right: clamp(5px, 1.5vw, 10px);
  height: 2px;
  background: linear-gradient(to right, transparent 0%, rgba(255,0,0,0.5) 20%, rgba(255,0,0,0.7) 50%, rgba(255,0,0,0.5) 80%, transparent 100%);
  transform: translateY(-50%);
  pointer-events: none;
}

/* Controls */
#controls {
  display: flex;
  gap: clamp(0.6rem, 2vw, 1.2rem);
  align-items: center;
}

.btn-spin {
  background: linear-gradient(160deg, #ff3333, #cc0000);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: clamp(0.5rem, 1.5vh, 0.8rem) clamp(1.2rem, 4vw, 2.5rem);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 2px;
  box-shadow: 0 4px 20px rgba(255,0,0,0.5), 0 0 0 3px rgba(255,100,0,0.3);
  transition: all 0.15s;
  text-transform: uppercase;
}
.btn-spin:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(255,0,0,0.7), 0 0 0 4px rgba(255,120,0,0.4);
}
.btn-spin:active:not(:disabled) { transform: scale(0.96); }
.btn-spin:disabled {
  background: linear-gradient(160deg, #888, #555);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  background: linear-gradient(160deg, #ffd700, #ff8c00);
  color: #1a0050;
  border: none;
  border-radius: 50px;
  padding: clamp(0.4rem, 1vh, 0.6rem) clamp(0.8rem, 2.5vw, 1.5rem);
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(255,200,0,0.4);
  transition: all 0.15s;
}
.btn-secondary:hover { transform: scale(1.05); }
.btn-secondary:active { transform: scale(0.96); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

#controls-lines {
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  align-items: center;
  justify-content: center;
}
.btn-lines {
  padding: clamp(0.25rem, 0.8vh, 0.45rem) clamp(0.6rem, 1.8vw, 1.1rem);
  font-size: clamp(0.65rem, 1.7vw, 0.82rem);
}

/* Messages */
#message {
  min-height: 1.5rem;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255,215,0,0.8);
  text-align: center;
}
#payline-display {
  min-height: 1.1rem;
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  color: #90ee90;
  text-align: center;
  text-shadow: 0 0 8px rgba(144,238,144,0.6);
}
#hint {
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* Autospin toggle */
.btn-autospin {
  background: rgba(0, 255, 120, 0.08);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 255, 120, 0.25);
  border-radius: 50px;
  padding: clamp(0.4rem, 1vh, 0.6rem) clamp(0.7rem, 2vw, 1.2rem);
  font-size: clamp(0.72rem, 1.9vw, 0.9rem);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.btn-autospin:hover {
  background: rgba(0, 255, 120, 0.18);
  color: rgba(255, 255, 255, 0.85);
}
.btn-autospin.autospin-on {
  background: rgba(0, 255, 120, 0.22);
  color: #7fff00;
  border-color: rgba(0, 255, 120, 0.6);
  text-shadow: 0 0 8px rgba(0, 255, 100, 0.7);
  box-shadow: 0 0 12px rgba(0, 255, 100, 0.3);
  animation: autospin-pulse 1s ease-in-out infinite alternate;
}
@keyframes autospin-pulse {
  from { box-shadow: 0 0 6px rgba(0, 255, 100, 0.2); }
  to   { box-shadow: 0 0 18px rgba(0, 255, 100, 0.55); }
}

/* Music toggle */
.btn-bgm {
  background: rgba(255,215,0,0.1);
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 50px;
  padding: 0.2rem 0.9rem;
  font-size: 0.68rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.btn-bgm:hover { background: rgba(255,215,0,0.2); color: rgba(255,255,255,0.85); }
.btn-bgm.bgm-on {
  background: rgba(255,215,0,0.22);
  color: #ffd700;
  border-color: rgba(255,215,0,0.55);
  text-shadow: 0 0 8px rgba(255,215,0,0.6);
}

/* Bonus overlay */
#bonus-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,0,30,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
}
#bonus-overlay.hidden { display: none !important; }

#fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#bonus-content {
  position: relative;
  z-index: 201;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(40,0,80,0.85) 0%, rgba(5,0,30,0.4) 80%);
  border-radius: 20px;
  border: 2px solid rgba(255,215,0,0.3);
}

#bonus-title {
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 900;
  background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff88, #0088ff, #ff00ff, #ff0000);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-shift 1s linear infinite, title-pulse 0.5s ease-in-out infinite alternate;
  letter-spacing: 3px;
}
@keyframes rainbow-shift {
  from { background-position: 0% center; }
  to { background-position: 200% center; }
}
@keyframes title-pulse {
  from { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255,215,0,0.6)); }
  to { transform: scale(1.06); filter: drop-shadow(0 0 25px rgba(255,215,0,1)); }
}

#bonus-subtitle {
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: #fff;
  margin: 0.3rem 0;
  text-shadow: 0 0 15px rgba(255,255,255,0.6);
  letter-spacing: 2px;
}
#bonus-info {
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  color: #7fff00;
  font-weight: 700;
  margin: 0.5rem 0 1.2rem;
  text-shadow: 0 0 20px rgba(127,255,0,0.8);
}

@keyframes reel-stop {
  0% { transform: scaleY(1.08); }
  50% { transform: scaleY(0.96); }
  75% { transform: scaleY(1.02); }
  100% { transform: scaleY(1); }
}
.reel-col.stopped { animation: reel-stop 0.25s ease; }

/* ── Theme picker ─────────────────────────────────────────────────────────── */

#theme-picker {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.btn-theme {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  padding: 0.2rem 0.9rem;
  font-size: 0.68rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.btn-theme:hover { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); }
.btn-theme.active {
  background: rgba(255,215,0,0.2);
  color: #ffd700;
  border-color: rgba(255,215,0,0.5);
  text-shadow: 0 0 6px rgba(255,215,0,0.5);
}

/* ── Cousteau octopus ───────────────────────────────────────────────────── */

#machine-area {
  position: relative;
  overflow: visible;
}

#octopus-art {
  display: none;
  position: absolute;
  top: 50%;
  left: 42%;
  width: 200%;
  height: 220%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

body.theme-cousteau #octopus-art {
  display: block;
  animation: octo-float 4s ease-in-out infinite;
}

body.theme-cousteau #machine {
  position: relative;
  z-index: 1;
}

@keyframes octo-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-6px); }
}

/* ── Jacques Cousteau deep-sea theme ─────────────────────────────────────── */

body.theme-cousteau {
  background: radial-gradient(ellipse at center, #000d1a 0%, #001529 60%, #000810 100%);
}

body.theme-cousteau h1 {
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0,212,255,0.9), 0 0 50px rgba(0,100,255,0.5);
}

body.theme-cousteau .stat {
  background: rgba(0,80,120,0.25);
  border-color: #00a8cc;
}
body.theme-cousteau .stat label { color: #00d4ff; }
body.theme-cousteau .win-stat span { color: #00ffcc; text-shadow: 0 0 10px #00ffcc; }

body.theme-cousteau #machine {
  background: linear-gradient(160deg, #003352, #00688a 40%, #003352 70%, #004a77);
  box-shadow: 0 0 50px rgba(0,180,255,0.35), 0 0 100px rgba(0,80,180,0.15),
              inset 0 2px 4px rgba(80,200,255,0.4), inset 0 -2px 4px rgba(0,0,0,0.5);
}
body.theme-cousteau #machine-label {
  color: #001a2e;
  text-shadow: 0 1px 0 rgba(100,220,255,0.4);
}
body.theme-cousteau #machine-bottom-label { color: #001a2e; }

body.theme-cousteau #reels-frame {
  background: #000d1a;
  border-color: #003d66;
  box-shadow: inset 0 0 40px rgba(0,30,100,0.9), inset 0 0 80px rgba(0,10,50,0.6);
}

body.theme-cousteau .reel-col {
  background: #0a1a2e;
  border-color: #1a3a5a;
}
body.theme-cousteau .reel-col.wild-glow {
  border-color: #00d4ff;
  box-shadow: 0 0 18px rgba(0,212,255,0.9), inset 0 0 10px rgba(0,150,255,0.2);
}
body.theme-cousteau .reel-cell { border-bottom-color: #1a3a5a; }
body.theme-cousteau .reel-cell.win-hi { background: rgba(0,212,255,0.3); }
body.theme-cousteau .reel-cell.wild-hi { background: rgba(0,212,255,0.18); }

body.theme-cousteau #payline-center {
  background: linear-gradient(to right,
    transparent 0%,
    rgba(0,212,255,0.45) 20%,
    rgba(0,212,255,0.7) 50%,
    rgba(0,212,255,0.45) 80%,
    transparent 100%);
}

/* Cousteau lamps: bioluminescent palette */
body.theme-cousteau .lamp.l1 { background: #00d4ff; }
body.theme-cousteau .lamp.l2 { background: #00ff88; }
body.theme-cousteau .lamp.l3 { background: #0066ff; }
body.theme-cousteau .lamp.l4 { background: #00ffcc; }
body.theme-cousteau .lamp.l5 { background: #4400ff; }
body.theme-cousteau .lamp.l6 { background: #00aaff; }

body.theme-cousteau #message {
  color: #00d4ff;
  text-shadow: 0 0 12px rgba(0,212,255,0.8);
}
body.theme-cousteau #payline-display {
  color: #00ffcc;
  text-shadow: 0 0 8px rgba(0,255,200,0.6);
}
body.theme-cousteau #hint { color: rgba(0,200,255,0.4); }

body.theme-cousteau .btn-spin {
  background: linear-gradient(160deg, #0077cc, #004499);
  box-shadow: 0 4px 20px rgba(0,120,255,0.5), 0 0 0 3px rgba(0,200,255,0.3);
}
body.theme-cousteau .btn-spin:hover:not(:disabled) {
  box-shadow: 0 6px 28px rgba(0,150,255,0.7), 0 0 0 4px rgba(0,220,255,0.4);
}

body.theme-cousteau .btn-secondary {
  background: linear-gradient(160deg, #00aacc, #004477);
  color: #e0f8ff;
  box-shadow: 0 3px 12px rgba(0,180,255,0.35);
}

body.theme-cousteau .btn-autospin {
  background: rgba(0,212,255,0.08);
  color: rgba(180,240,255,0.55);
  border-color: rgba(0,212,255,0.25);
}
body.theme-cousteau .btn-autospin:hover {
  background: rgba(0,212,255,0.18);
  color: rgba(200,250,255,0.9);
}
body.theme-cousteau .btn-autospin.autospin-on {
  background: rgba(0,212,255,0.22);
  color: #00ffcc;
  border-color: rgba(0,212,255,0.6);
  text-shadow: 0 0 8px rgba(0,255,200,0.7);
  box-shadow: 0 0 12px rgba(0,212,255,0.3);
}

body.theme-cousteau .btn-bgm {
  background: rgba(0,212,255,0.08);
  color: rgba(180,240,255,0.5);
  border-color: rgba(0,212,255,0.22);
}
body.theme-cousteau .btn-bgm:hover { background: rgba(0,212,255,0.18); color: rgba(200,250,255,0.85); }
body.theme-cousteau .btn-bgm.bgm-on {
  background: rgba(0,212,255,0.22);
  color: #00d4ff;
  border-color: rgba(0,212,255,0.55);
  text-shadow: 0 0 8px rgba(0,212,255,0.6);
}

body.theme-cousteau .btn-theme.active {
  background: rgba(0,212,255,0.2);
  color: #00d4ff;
  border-color: rgba(0,212,255,0.5);
  text-shadow: 0 0 6px rgba(0,212,255,0.5);
}

/* Cousteau payout table */
body.theme-cousteau .pt-title {
  color: #00d4ff;
  text-shadow: 0 0 8px rgba(0,212,255,0.7);
}
body.theme-cousteau .pt-grid table {
  background: rgba(0,20,50,0.5);
  border-color: rgba(0,212,255,0.2);
}
body.theme-cousteau .pt-grid thead tr { background: rgba(0,212,255,0.1); }
body.theme-cousteau .pt-grid th { color: #00d4ff; }
body.theme-cousteau .pt-grid td { color: #cceeff; border-bottom-color: rgba(0,150,200,0.1); }
body.theme-cousteau .pt-sym span { color: rgba(100,220,255,0.65); }
body.theme-cousteau .pl-label { color: #00d4ff; }
body.theme-cousteau .pl-mini-grid {
  background: rgba(0,20,50,0.55);
  border-color: rgba(0,212,255,0.25);
}
body.theme-cousteau .pl-cell { background: rgba(0,150,200,0.12); }
body.theme-cousteau .pl-cell.pl-active {
  background: #00d4ff;
  box-shadow: 0 0 5px rgba(0,212,255,0.9);
}

/* Cousteau bonus overlay */
body.theme-cousteau #bonus-overlay { background: rgba(0,5,20,0.9); }
body.theme-cousteau #bonus-content {
  background: radial-gradient(ellipse at center, rgba(0,30,70,0.88) 0%, rgba(0,5,20,0.4) 80%);
  border-color: rgba(0,212,255,0.3);
}
body.theme-cousteau #bonus-subtitle { text-shadow: 0 0 15px rgba(0,212,255,0.5); }
body.theme-cousteau #bonus-info { color: #00ffcc; text-shadow: 0 0 20px rgba(0,255,200,0.8); }

/* Octopus tentacle celebration animation */
@keyframes wave-up-left {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-45deg); }
  50% { transform: rotate(-30deg); }
  75% { transform: rotate(-50deg); }
}

@keyframes wave-up-right {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(35deg); }
  50% { transform: rotate(20deg); }
  75% { transform: rotate(40deg); }
}

#octopus-art.celebrating .tentacle {
  animation-duration: 0.6s;
  animation-iteration-count: 5;
  animation-timing-function: ease-in-out;
}

#octopus-art.celebrating .t1 { animation-name: wave-up-left; animation-delay: 0s; }
#octopus-art.celebrating .t2 { animation-name: wave-up-left; animation-delay: 0.05s; }
#octopus-art.celebrating .t3 { animation-name: wave-up-left; animation-delay: 0.1s; }
#octopus-art.celebrating .t4 { animation-name: wave-up-right; animation-delay: 0.15s; }
#octopus-art.celebrating .t5 { animation-name: wave-up-right; animation-delay: 0.08s; }
#octopus-art.celebrating .t6 { animation-name: wave-up-right; animation-delay: 0.12s; }
#octopus-art.celebrating .t7 { animation-name: wave-up-right; animation-delay: 0.04s; }
#octopus-art.celebrating .t8 { animation-name: wave-up-right; animation-delay: 0.1s; }

/* ── Milk jackpot ───────────────────────────────────────────────────────────── */

@keyframes milk-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 28px rgba(200,230,255,0.7); }
  50%       { box-shadow: 0 0 28px rgba(255,255,255,1),   0 0 60px rgba(180,220,255,1); }
}

.reel-cell.milk-jackpot-hi {
  background: rgba(220,240,255,0.35) !important;
  animation: milk-glow 0.5s ease-in-out infinite;
}

.milk-jackpot-cell {
  color: #e0f4ff !important;
  font-weight: 900;
  font-size: clamp(0.5rem, 1.4vw, 0.7rem) !important;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(180,220,255,0.9);
  background: rgba(150,200,255,0.1);
}

.milk-row td { background: rgba(180,220,255,0.05) !important; }
