/* Link Slot — cabinet-style theme (landscape 1280x720 stage + portrait phone layout) */
:root {
  --gold-1: #fff3a0;
  --gold-2: #f0b400;
  --gold-3: #8a5200;
  --ink: #fff8e6;
  --cell-w: 148px;
  --cell-h: 148px;
  --display: 'Cinzel', Georgia, serif;
  --digits: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --gold-bevel: linear-gradient(180deg, #fff7c2 0%, #ffd34a 18%, #a86400 45%, #ffe27a 62%, #8a5200 100%);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; color: var(--ink);
  background: radial-gradient(ellipse at center, #2a0306, #050001 70%);
  overscroll-behavior: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
body { font-family: var(--digits); user-select: none; -webkit-user-select: none; }
[hidden] { display: none !important; }

/* ---- Stage (scaled to fit — see fitStage in main.js) ------------------------------ */
#viewport { position: fixed; inset: 0; }
#stage {
  position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px;
  transform-origin: center center; overflow: hidden;
  box-shadow: 0 0 0 2px #000, 0 0 80px #000;
}
#bg { position: absolute; inset: 0; background: #2a0306 center / cover no-repeat; }

/* Chasing LED light strips down the cabinet edges */
.led-strip {
  position: absolute; top: 0; bottom: 0; width: 8px; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, #ffe27a 0 6px, #ff8a00 6px 8px, transparent 8px 20px);
  filter: drop-shadow(0 0 5px #ffae00) drop-shadow(0 0 12px #ff6a00);
  animation: chase 1.2s linear infinite; opacity: .85;
}
.led-strip.left { left: 6px; }
.led-strip.right { right: 6px; animation-direction: reverse; }
@keyframes chase { to { background-position: 0 40px; } }
#stage.hold-mode .led-strip, #stage.celebrate .led-strip { animation-duration: .35s; filter: drop-shadow(0 0 8px #ff3d00) drop-shadow(0 0 18px #ff3d00); }
#stage.free-mode .led-strip { background: repeating-linear-gradient(to bottom, #c8f0ff 0 6px, #2a9cff 6px 8px, transparent 8px 20px); filter: drop-shadow(0 0 8px #2a9cff); }

/* ---- Topper + jackpots ------------------------------------------------------------- */
#top { position: absolute; left: 0; right: 0; top: 0; height: 134px; z-index: 2; }
#topper { position: relative; height: 80px; display: flex; justify-content: center; align-items: flex-start; }
#logo { position: relative; height: 72px; max-width: 760px; object-fit: contain; margin-top: 4px; filter: drop-shadow(0 3px 6px #000); z-index: 1; }
.sunburst {
  position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  background: repeating-conic-gradient(from 0deg, #ffb30038 0deg 7deg, transparent 7deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0%, #0008 18%, transparent 42%); mask: radial-gradient(circle, #000 0%, #0008 18%, transparent 42%);
  animation: spin-rays 40s linear infinite; pointer-events: none;
}
@keyframes spin-rays { to { transform: rotate(360deg); } }

/* Landscape: one compact row, the same width as the reel frame */
#jackpots {
  width: 860px; margin: 0 auto; display: grid; gap: 6px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  grid-template-areas: "grand major minor mini";
}
.jp-grand { grid-area: grand; }
.jp-major { grid-area: major; }
.jp-minor { grid-area: minor; }
.jp-mini { grid-area: mini; }
.jp {
  --c1: #fff; --c2: #ccc; --glow: #fff; --size: 25px; --badge: 34px;
  position: relative; height: 50px; padding: 0 8px 0 calc(var(--badge) + 14px); display: flex; align-items: center; justify-content: center;
  border-radius: 10px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, #2a0006, #050000 70%);
  border: 2px solid #7a4a00;
  box-shadow: inset 0 0 18px #000, inset 0 0 0 1px #ffcf4022, 0 3px 8px #000c;
}
.jp::after { /* glass reflection */
  content: ''; position: absolute; inset: 0 0 55% 0; pointer-events: none;
  background: linear-gradient(#ffffff1c, #ffffff05);
}
.jp-val {
  font-family: var(--digits); font-weight: 700; font-size: var(--size); line-height: 1; letter-spacing: 1px;
  background: linear-gradient(var(--c1) 10%, var(--c2) 70%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 4px var(--glow)) drop-shadow(0 0 12px var(--glow));
}
.jp-grand { --c1: #ffd0c0; --c2: #ff1f1f; --glow: #ff2a00b0; --size: 34px; --badge: 40px; border-color: #ffcf40; }
.jp-major { --c1: #d8ffc8; --c2: #29e83a; --glow: #00ff40a0; }
.jp-minor { --c1: #d8f0ff; --c2: #2a9cff; --glow: #2a9cffa0; }
.jp-mini  { --c1: #fff0c0; --c2: #ff9a00; --glow: #ff9a00a0; }
.jp-badge {
  position: absolute; left: 8px; top: 50%; width: var(--badge); height: var(--badge); margin-top: calc(var(--badge) / -2);
  border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 35%, #fff7c2, #ffc61a 45%, #a86400 90%);
  box-shadow: inset 0 0 0 2px #7a4300, inset 0 0 0 4px #ffe27a, 0 2px 6px #000a;
  font-style: normal; color: #8a0a00; line-height: 1; text-align: center;
}
.jp-badge b { font: 900 calc(var(--badge) * .22) / 1 var(--display); }
.jp-badge small { font: 700 calc(var(--badge) * .13) / 1.2 var(--digits); letter-spacing: .5px; }
.jp-badge.right { left: auto; right: 8px; }
#jackpots .jp-badge.right { display: none; } /* landscape: one badge per panel */
.jp.won { animation: jp-flash .3s steps(2) infinite; }
.jp.won .jp-val { animation: jp-pop .6s ease-in-out infinite alternate; }
@keyframes jp-flash { 50% { box-shadow: inset 0 0 18px #000, 0 0 0 3px #fff, 0 0 30px var(--glow); filter: brightness(1.6); } }
@keyframes jp-pop { to { transform: scale(1.08); } }

/* ---- Machine / reels ------------------------------------------------------------------ */
#machine {
  position: absolute; top: 138px; left: 50%; z-index: 2;
  width: calc(var(--cell-w) * 5 + 20px); height: calc(var(--cell-h) * 3 + 20px);
  transform: translateX(-50%); padding: 10px; border-radius: 14px;
  background: var(--gold-bevel);
  box-shadow: 0 0 0 3px #2a0000, 0 0 0 5px #c08a20, 0 0 0 7px #3a1000, 0 16px 40px #000, 0 0 60px #ff7a0040;
}
#stage.hold-mode #machine { box-shadow: 0 0 0 3px #2a0000, 0 0 0 5px #ffcf40, 0 0 0 7px #3a1000, 0 16px 40px #000, 0 0 90px #ff5a00c0; }
#stage.free-mode #machine { background: linear-gradient(180deg, #f0fbff 0%, #9fdcff 18%, #1a5a9a 45%, #c8ecff 62%, #0e3a6a 100%); }

#reel-window { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 6px; background: #120002; }
#reel-scene { position: absolute; inset: 0; background: #3a0a1a center / cover no-repeat; transition: filter .8s; }
#stage.hold-mode #reel-scene { filter: brightness(.35) saturate(1.3); }
#stage.free-mode #reel-scene { filter: hue-rotate(195deg) brightness(.75) saturate(1.2); }
.glass {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(#000a, transparent 14%, transparent 86%, #000a),
    linear-gradient(115deg, transparent 30%, #ffffff10 38%, transparent 46%);
}

#reels { position: absolute; inset: 0; display: flex; z-index: 1; }
.reel {
  position: relative; width: var(--cell-w); height: 100%; overflow: hidden;
  background: #00000038;
}
.strip { position: absolute; left: 0; top: 0; width: 100%; }
/* While a reel spins, its strip holds dozens of symbols: keep them cheap to draw
   (no per-symbol shadows, glows or animations). Phones also skip the motion blur,
   which needs extra graphics memory for every symbol. */
.strip.spinning { will-change: transform; }
.strip.spinning .cell img { filter: none; animation: none !important; }
.strip.spinning .cell::before, .strip.spinning .cell::after { display: none; }
@media (hover: hover) and (pointer: fine) {
  .strip.blur .cell img { filter: blur(3px) brightness(1.15); }
}

#error-report {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 1000;
  padding: 12px 16px; border-radius: 10px; background: #2a0000f0; color: #ffd0c0; border: 1px solid #ff6a5a;
  font: 600 14px/1.4 system-ui, sans-serif; box-shadow: 0 6px 20px #000a;
}
.reel.anticipate { animation: ant-pulse .4s ease-in-out infinite alternate; z-index: 2; }
@keyframes ant-pulse {
  from { box-shadow: inset 0 0 0 4px #ffd54a, inset 0 0 40px #ff9800; }
  to { box-shadow: inset 0 0 0 4px #fff, inset 0 0 80px #ff3d00; }
}

/* Line count tabs beside the reels */
.line-tab {
  position: absolute; top: 50%; width: 52px; height: 150px; margin-top: -75px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 10px; background: linear-gradient(#8a0a0a, #2a0000); border: 2px solid #ffcf40;
  box-shadow: 0 4px 10px #000a, inset 0 0 10px #000;
}
.line-tab.left { left: -66px; }
.line-tab.right { right: -66px; }
.line-tab b { font: 700 28px/1 var(--digits); color: var(--gold-1); text-shadow: 0 0 8px #ffb300; }
.line-tab span { font: 700 11px/1 var(--digits); letter-spacing: 1px; color: #ffd34a; writing-mode: vertical-rl; transform: rotate(180deg); }

/* ---- Symbols ------------------------------------------------------------------------- */
.cell {
  position: relative; width: var(--cell-w); height: var(--cell-h);
  display: flex; align-items: center; justify-content: center;
}
.cell img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 3px #0009); }
.cell.sym-BLANK img { filter: none; }
.cell .shine {
  position: absolute; z-index: 2; inset: 0; pointer-events: none;
  -webkit-mask: var(--img) center / contain no-repeat; mask: var(--img) center / contain no-repeat;
  background: linear-gradient(115deg, transparent 38%, #fffbe0e0 50%, transparent 62%) 200% 0 / 300% 100% no-repeat;
  opacity: 0;
}
.cell .val {
  position: absolute; z-index: 3; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; font-family: var(--digits); font-weight: 700; font-size: 30px; line-height: 1;
  color: #fff6c0; -webkit-text-stroke: 1.5px #5a1000; paint-order: stroke fill;
  text-shadow: 0 2px 0 #7a1a00, 0 0 10px #000, 0 0 3px #000;
}
.cell .val.val-jp { font-family: var(--display); font-weight: 900; font-size: 25px; letter-spacing: 1px; }
.cell .val.val-MINI { color: #ffe0a0; } .cell .val.val-MINOR { color: #cde7ff; } .cell .val.val-MAJOR { color: #c8ffc0; font-size: 23px; }

/* Fireballs burn constantly */
.cell.sym-ORB::before {
  content: ''; position: absolute; z-index: 0; inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd04a90 0%, #ff6a0060 38%, #ff2a0020 55%, transparent 68%);
  animation: orb-flicker 1.1s ease-in-out infinite alternate;
}
@keyframes orb-flicker {
  0% { transform: scale(.9) rotate(0deg); opacity: .75; }
  100% { transform: scale(1.1) rotate(25deg); opacity: 1; }
}
.cell.sym-ORB img { animation: orb-breathe 2.2s ease-in-out infinite; }
@keyframes orb-breathe { 50% { transform: scale(1.04); filter: drop-shadow(0 0 10px #ff8a00) brightness(1.1); } }

/* Landing animations (added by main.js when a reel stops) */
.cell.land img { animation: land .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes land {
  0% { transform: translateY(-14px) scale(1.06, .9); }
  45% { transform: translateY(4px) scale(.95, 1.06); }
  100% { transform: none; }
}
.cell.sym-ORB.land img { animation: land .45s cubic-bezier(.3, 1.6, .5, 1), orb-breathe 2.2s .45s ease-in-out infinite; }
.cell.sym-ORB.land::after, .hold-slot.locked.just-landed .cell::after {
  content: ''; position: absolute; z-index: 2; inset: 6%;
  border-radius: 50%; border: 6px solid #ffe066; box-shadow: 0 0 20px #ff8a00, inset 0 0 20px #ff8a00;
  animation: ring .7s ease-out forwards; pointer-events: none;
}
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.cell.sym-SCAT.land img { animation: coin-flip .9s cubic-bezier(.2, .8, .3, 1); }
@keyframes coin-flip { 0% { transform: rotateY(0) scale(1.25); } 100% { transform: rotateY(720deg) scale(1); } }
.cell.sym-WILD.land img { animation: land .45s cubic-bezier(.3, 1.6, .5, 1), wild-flash .9s ease-out; }
@keyframes wild-flash { 0%, 100% { filter: drop-shadow(0 4px 6px #000b); } 30% { filter: drop-shadow(0 0 18px #ffb300) brightness(1.5); } }
.cell.land.shiny .shine { animation: shine 1s .15s ease-in-out 1; }
@keyframes shine {
  0% { opacity: 1; background-position: 200% 0; }
  100% { opacity: 1; background-position: -100% 0; }
}

/* Win highlighting */
#reels.dim .cell:not(.win) { filter: brightness(.4) saturate(.5); transition: filter .2s; }
.cell.win { z-index: 2; }
.cell.win img { animation: win-pop .55s ease-in-out infinite alternate; }
.cell.win .shine { animation: shine 1.3s ease-in-out infinite; }
.cell.win::after {
  content: ''; position: absolute; z-index: 2; inset: 1px; border-radius: 10px; pointer-events: none;
  border: 3px solid var(--line-color, #ffd54a);
  box-shadow: 0 0 14px var(--line-color, #ffd54a), inset 0 0 18px var(--line-color, #ffd54a);
  animation: frame-glow .55s ease-in-out infinite alternate;
}
@keyframes frame-glow { to { box-shadow: 0 0 26px var(--line-color, #ffd54a), inset 0 0 26px var(--line-color, #ffd54a); } }
@keyframes win-pop { to { transform: scale(1.06); filter: drop-shadow(0 0 14px #ffd54a) brightness(1.2); } }
.cell.trigger img { animation: trigger-pulse .35s ease-in-out infinite alternate; }
@keyframes trigger-pulse { to { transform: scale(1.2); filter: drop-shadow(0 0 24px #ff9800) brightness(1.4); } }

#lines { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#lines polyline { fill: none; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 3px #000) drop-shadow(0 0 8px currentColor); }

/* Hold & Spin layer */
#hold-layer { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(5, var(--cell-w)); grid-template-rows: repeat(3, var(--cell-h)); grid-auto-flow: column; }
.hold-slot { position: relative; overflow: hidden; }
.hold-slot .strip { position: absolute; left: 0; top: 0; }
.hold-slot.locked { overflow: visible; z-index: 1; }
.hold-slot.locked .cell { animation: lock-in .45s ease-out; }
.hold-slot.anticipate { animation: ant-pulse .3s ease-in-out infinite alternate; z-index: 2; }
.hold-slot.collect .cell { animation: collect .4s ease-out; }
.hold-slot.collected .cell { filter: brightness(.65) saturate(.7); }
@keyframes lock-in { 0% { transform: scale(1.6); filter: brightness(2.5); } 100% { transform: scale(1); } }
@keyframes collect { 50% { transform: scale(1.3); filter: brightness(2.2); } }

#feature-banner {
  position: absolute; left: 50%; top: -12px; transform: translateX(-50%); z-index: 6; white-space: nowrap;
  padding: 1px 26px; border-radius: 10px;
  font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: 2px;
  background: linear-gradient(#a00a0a, #3a0000); border: 3px solid #ffcf40; box-shadow: 0 4px 12px #000a, 0 0 18px #ff6a0080;
  color: var(--gold-1); text-shadow: 0 2px 3px #000;
}
.lamps { display: inline-flex; gap: 8px; margin-left: 12px; vertical-align: middle; }
.lamp { width: 16px; height: 16px; border-radius: 50%; background: #3a1a00; border: 2px solid #ffcf40; }
.lamp.on { background: radial-gradient(circle at 40% 35%, #fff, #ffd54a 40%, #ff8f00); box-shadow: 0 0 10px #ffb300; }

/* ---- Message line ---------------------------------------------------------------------- */
#message {
  position: absolute; left: 50%; top: 604px; transform: translateX(-50%); z-index: 2;
  width: 864px; height: 24px; display: flex; align-items: center; justify-content: center;
  font-family: var(--digits); font-weight: 500; font-size: 19px; letter-spacing: 1.5px; color: #ffe066;
  text-shadow: 0 0 6px #ff9a00, 0 2px 2px #000;
}

/* ---- Button deck ----------------------------------------------------------------------- */
#panel {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 24px;
  background: linear-gradient(#202020, #050505 45%, #000);
  border-top: 3px solid #b07a10; box-shadow: 0 -2px 0 #3a1a00, 0 -10px 30px #000a;
}
.meter {
  min-width: 180px; height: 64px; padding: 4px 16px; border-radius: 10px;
  background: linear-gradient(#0a0a0a, #000); border: 1px solid #333; box-shadow: inset 0 0 14px #000, inset 0 1px 0 #ffffff12;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.meter label { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: #ffd400; }
.meter span { font-size: 28px; font-weight: 700; line-height: 1.1; color: #fff; text-shadow: 0 0 8px #ffffff50; }
.meter small { font-size: 12px; letter-spacing: 1px; color: #ffd400; line-height: 1; opacity: .85; }
#win-meter span { color: #6dff6d; text-shadow: 0 0 10px #00ff40a0; }
#win-meter.big span { animation: win-glow .3s ease-in-out infinite alternate; }
@keyframes win-glow { to { text-shadow: 0 0 22px #6dff6d; transform: scale(1.1); } }
.bet-box { display: flex; align-items: center; gap: 8px; }
.bet-box .meter { min-width: 136px; padding-top: 2px; padding-bottom: 2px; }
.buttons { display: flex; align-items: center; gap: 10px; }

.btn {
  font-family: var(--digits); font-weight: 700; color: #fff; cursor: pointer;
  border: 2px solid #000; border-radius: 10px;
  background: linear-gradient(#6a6a6a, #2a2a2a 50%, #1a1a1a);
  box-shadow: inset 0 1px 0 #ffffff40, 0 4px 0 #000, 0 6px 10px #0009;
  text-shadow: 0 1px 2px #000;
  transition: transform .06s, filter .15s;
}
.btn:hover:not(:disabled) { filter: brightness(1.2); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 #ffffff40, 0 1px 0 #000; }
.btn:disabled { filter: grayscale(1) brightness(.45); cursor: default; }
.btn.small { width: 42px; height: 42px; font-size: 26px; line-height: 1; color: #ffd400; }
.btn.icon { width: 48px; height: 48px; font-size: 20px; }
.btn.auto { height: 54px; padding: 0 18px; font-size: 18px; background: linear-gradient(#6ab8ff, #1a6ad0 50%, #0a3a80); }
.btn.auto.on { background: linear-gradient(#b9ffca, #22b04a 50%, #0a5a20); box-shadow: inset 0 1px 0 #ffffff60, 0 4px 0 #000, 0 0 18px #2aff6a; }
.btn.denom {
  width: 58px; height: 58px; padding: 0; border-radius: 50%; font-size: 19px; color: #6a1000; text-shadow: none;
  background: radial-gradient(circle at 40% 35%, #fff7c2, #ffc61a 45%, #a86400 92%);
  box-shadow: inset 0 0 0 2px #7a4300, inset 0 0 0 4px #ffe27a, 0 4px 0 #000, 0 0 14px #ffb30060;
}
.btn.spin {
  position: relative; width: 96px; height: 96px; margin-top: -30px; border-radius: 50%; font-size: 22px; letter-spacing: 1px;
  background: radial-gradient(circle at 40% 32%, #fff1a0, #ffae00 35%, #e04a00 70%, #8a1000);
  color: #fff; text-shadow: 0 2px 2px #5a0000; border: 4px solid #ffe27a;
  box-shadow: 0 0 0 3px #3a1000, 0 6px 0 #3a1000, 0 0 28px #ff8a00a0;
}
.btn.spin:not(.stop):not(:disabled) { animation: spin-glow 1.6s ease-in-out infinite; }
@keyframes spin-glow { 50% { box-shadow: 0 0 0 3px #3a1000, 0 6px 0 #3a1000, 0 0 46px #ffb300; } }
.btn.spin.stop { background: radial-gradient(circle at 40% 32%, #ffb0a0, #e02020 55%, #5a0000); }

/* ---- Effects canvas + overlays --------------------------------------------------------- */
#fx { position: absolute; inset: 0; z-index: 22; pointer-events: none; width: 100%; height: 100%; }

#overlay {
  position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #3a0000a0, #000d 75%); cursor: pointer; animation: fade-in .25s; overflow: hidden;
}
#overlay::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 1600px; height: 1600px; margin: -800px 0 0 -800px;
  background: repeating-conic-gradient(#ffb30030 0deg 8deg, transparent 8deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 45%); mask: radial-gradient(circle, #000 0%, transparent 45%);
  animation: spin-rays 18s linear infinite;
}
#overlay-content { position: relative; text-align: center; animation: zoom-in .5s cubic-bezier(.2, 1.4, .4, 1); }
.ov-title {
  font-family: var(--display); font-weight: 900; font-size: 84px; line-height: 1.05; letter-spacing: 4px;
  background: linear-gradient(#fff7c2 0%, #ffd34a 40%, #d18a00 70%, #fff0a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #5a0000) drop-shadow(0 0 2px #3a0000) drop-shadow(0 0 30px #ff7a00c0);
}
.ov-sub { font-family: var(--display); font-weight: 700; font-size: 30px; margin-top: 14px; color: var(--ink); text-shadow: 0 2px 4px #000, 0 0 12px #ff6a00; }
.ov-amount {
  font-family: var(--digits); font-weight: 700; font-size: 100px; line-height: 1.1; margin-top: 10px;
  color: #fff; text-shadow: 0 0 30px #ffb300, 0 4px 0 #a02000, 0 0 4px #000;
}
.ov-hint { font-size: 16px; margin-top: 24px; opacity: .7; }
.ov-grand .ov-title { font-size: 150px; animation: jp-pop .4s ease-in-out infinite alternate; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes zoom-in { from { transform: scale(.3); opacity: 0; } }

.overlay-start { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, #3a0000c0, #000e 70%); overflow: hidden; }
.overlay-start::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 1600px; height: 1600px; margin: -800px 0 0 -800px;
  background: repeating-conic-gradient(#ffb30028 0deg 8deg, transparent 8deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 45%); mask: radial-gradient(circle, #000 0%, transparent 45%);
  animation: spin-rays 30s linear infinite;
}
.start-card { position: relative; text-align: center; }
.start-card img { width: 640px; display: block; margin: 0 auto 34px; filter: drop-shadow(0 6px 12px #000); }
.start-card .btn.spin { width: 150px; height: 150px; font-size: 34px; margin: 0; }
.start-card p { margin-top: 28px; opacity: .75; font-size: 16px; }

/* Info / paytable — cabinet "help screens" */
#info { position: absolute; inset: 0; z-index: 25; background: #000d; display: flex; align-items: center; justify-content: center; }
#info-panel {
  position: relative; width: 1180px; height: 680px; display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 50% 0%, #4a0808, #140101 70%); border: 4px solid transparent; border-radius: 18px;
  background-clip: padding-box; box-shadow: 0 0 0 3px #b07a10, 0 0 0 6px #3a1000, 0 20px 60px #000;
}
.info-head { display: flex; align-items: center; justify-content: center; position: relative; padding: 12px 16px 4px; }
.info-title { font: 900 30px/1 var(--display); letter-spacing: 4px; background: linear-gradient(#fff7c2, #ffd34a 45%, #c27a00); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #3a0000); }
#info-close { position: absolute; right: 14px; top: 10px; }
#info-tabs { display: flex; justify-content: center; gap: 6px; padding: 8px 16px; flex-wrap: wrap; }
.info-tab {
  font: 700 15px/1 var(--digits); letter-spacing: 1px; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  color: #ffd34a; background: #0008; border: 1px solid #7a4a00;
}
.info-tab.on { color: #3a1000; background: linear-gradient(#fff3a0, #f0b400 60%, #c07a00); border-color: #fff3a0; box-shadow: 0 0 12px #ffb30080; }
#info-body {
  flex: 1; overflow-y: auto; padding: 6px 30px 14px;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y;
}
#info-body h2 { font: 900 22px/1.2 var(--display); color: var(--gold-1); letter-spacing: 2px; text-align: center; margin: 6px 0 14px; }
#info-body h3 { font: 900 17px/1 var(--display); color: #ffd34a; letter-spacing: 2px; margin: 18px 0 10px; text-align: center; }
#info-body p, #info-body li { font-size: 17px; line-height: 1.45; color: #f3e6cc; }
#info-body b { color: #fff3a0; }
.info-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 14px; border-top: 1px solid #ffcf4030; }
.info-foot .btn { height: 46px; font-size: 17px; }
#info-page { font: 700 18px var(--digits); color: #ffd34a; letter-spacing: 2px; }

.pay-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pay-cards.wide { grid-template-columns: repeat(2, 1fr); }
.pay-card {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px;
  background: linear-gradient(#2a0606, #120101); border: 1px solid #ffcf4045; box-shadow: inset 0 0 14px #000a;
}
.pay-card img { width: 78px; height: 78px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 4px #000); }
.pay-card .pay-name { font: 700 13px/1.2 var(--digits); letter-spacing: 1px; color: #ffd34a; text-transform: uppercase; margin-bottom: 3px; }
.pay-card table { border-collapse: collapse; font-family: var(--digits); }
.pay-card th { color: #ffd34a; padding: 1px 8px 1px 0; font-size: 16px; text-align: left; }
.pay-card td { color: #fff; font-size: 16px; font-weight: 700; padding: 1px 0; }
.pay-card td.cr { display: none; }
.pay-card.special p { margin: 0; font-size: 15px !important; }
.note { text-align: center; opacity: .8; font-size: 15px !important; }

.feature-hero, .fg-trigger, .reveal-demo { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 4px 0 10px; }
.feature-hero img, .fg-trigger img, .reveal-demo img { width: 84px; height: 84px; object-fit: contain; }
.fg-trigger span, .reveal-demo span { font: 900 26px var(--display); color: var(--gold-1); margin: 0 12px; }
ol.steps { max-width: 900px; margin: 0 auto; padding-left: 28px; }
ol.steps li { margin-bottom: 8px; }
.prizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.prize {
  min-width: 92px; padding: 10px 14px; border-radius: 999px; text-align: center;
  font: 700 22px/1 var(--digits); color: #fff6c0; -webkit-text-stroke: 1px #5a1000;
  background: radial-gradient(circle at 40% 35%, #ffe066, #ff8c00 45%, #c02000); box-shadow: 0 0 14px #ff6a0080;
}
.prize.jp { font-family: var(--display); font-weight: 900; font-size: 18px; }
.prize.jp-MINI { color: #ffe0a0; } .prize.jp-MINOR { color: #cde7ff; } .prize.jp-MAJOR { color: #c8ffc0; }

.jp-table { width: 100%; max-width: 900px; margin: 0 auto; border-collapse: separate; border-spacing: 0 8px; }
.jp-table th { font: 900 22px var(--display); letter-spacing: 2px; text-align: left; padding: 10px 16px; border-radius: 10px 0 0 10px; background: #0009; }
.jp-table td { padding: 10px 16px; background: #0009; color: #f3e6cc; font-size: 16px; }
.jp-table td:last-child { border-radius: 0 10px 10px 0; }
.jp-table .amt { font: 700 30px var(--digits); white-space: nowrap; }
.jp-row.jp-GRAND th, .jp-row.jp-GRAND .amt { color: #ff4a3a; text-shadow: 0 0 10px #ff2a00a0; }
.jp-row.jp-MAJOR th, .jp-row.jp-MAJOR .amt { color: #4aff5a; text-shadow: 0 0 10px #00ff40a0; }
.jp-row.jp-MINOR th, .jp-row.jp-MINOR .amt { color: #5ab4ff; text-shadow: 0 0 10px #2a9cffa0; }
.jp-row.jp-MINI th, .jp-row.jp-MINI .amt { color: #ffb030; text-shadow: 0 0 10px #ff9a00a0; }
.denom-table { margin: 0 auto; border-collapse: collapse; font-family: var(--digits); font-size: 18px; }
.denom-table th { color: #ffd34a; padding: 6px 22px; letter-spacing: 1px; }
.denom-table td { padding: 5px 22px; text-align: right; color: #f3e6cc; border-top: 1px solid #ffcf4020; }
.denom-table td:first-child { text-align: left; font-weight: 700; color: #fff3a0; }
.denom-table tr.on td { background: #ffcf4022; color: #fff; }

.line-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.line-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 4px; background: #0008; border-radius: 4px; position: relative; }
.line-mini i { height: 9px; background: #ffffff18; border-radius: 1px; }
.line-mini i.on { background: var(--gold-2); box-shadow: 0 0 4px #ffb300; }
.line-mini b { position: absolute; top: -2px; left: 3px; font-size: 10px; color: #fff9; }
ul.rules { max-width: 960px; margin: 0 auto; }
ul.rules li { margin-bottom: 7px; }

/* The "i" button */
.btn.icon.info {
  border-radius: 50%; font: italic 900 26px/1 Georgia, serif; color: #fff;
  background: radial-gradient(circle at 40% 32%, #9fd4ff, #1a6ad0 55%, #0a3070);
  box-shadow: inset 0 0 0 2px #cfe8ff80, 0 4px 0 #000, 0 0 14px #2a9cff80;
}

/* Denomination picker */
#denom-picker { position: absolute; inset: 0; z-index: 26; background: #000c; display: flex; align-items: center; justify-content: center; }
.denom-panel { padding: 26px 34px; text-align: center; border-radius: 18px; background: linear-gradient(#2a0404, #0f0101); border: 3px solid var(--gold-2); }
.denom-panel h2 { font-family: var(--display); color: var(--gold-1); letter-spacing: 2px; margin: 0 0 18px; }
#denom-grid { display: grid; grid-template-columns: repeat(4, 170px); gap: 14px; margin-bottom: 22px; }
.denom-choice {
  height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #5a0a00; text-shadow: none; background: linear-gradient(#fff3a0, #f0b400 55%, #c07a00); border-color: #5a3a00;
}
.denom-choice b { font-size: 34px; line-height: 1; }
.denom-choice small { font-size: 13px; opacity: .85; }
.denom-choice.on { outline: 4px solid #fff; box-shadow: 0 0 22px #ffd54a; }

/* ---- Portrait (phones held vertically) -------------------------------------------------- */
#stage.portrait { display: flex; flex-direction: column; align-items: center; }
#stage.portrait #top,
#stage.portrait #machine,
#stage.portrait #message,
#stage.portrait #panel { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; }
#stage.portrait .led-strip { display: none; }

#stage.portrait #top { height: auto; width: 100%; padding: calc(12px + env(safe-area-inset-top)) 16px 0; }
#stage.portrait #topper { height: 150px; align-items: center; }
#stage.portrait #logo { height: 128px; max-width: 860px; margin: 0; }
#stage.portrait .sunburst { width: 900px; height: 900px; margin: -450px 0 0 -450px; }
/* Portrait: compact GRAND row + one row of three, so the reels get the space */
#stage.portrait #jackpots {
  width: 100%; margin-top: 4px; gap: 8px;
  grid-template-columns: repeat(3, 1fr); grid-template-areas: "grand grand grand" "major minor mini";
}
#stage.portrait .jp { height: 76px; padding: 0 6px; flex-direction: column; gap: 2px; --size: 34px; }
#stage.portrait .jp:not(.jp-grand) .jp-badge { display: none; }
#stage.portrait .jp:not(.jp-grand)::before {
  content: attr(data-jp); font: 900 17px/1 var(--display); letter-spacing: 2px; color: var(--c2);
  text-shadow: 0 0 8px var(--glow);
}
#stage.portrait .jp-grand { height: 100px; padding: 0 100px; --size: 64px; --badge: 80px; }
#stage.portrait #jackpots .jp-grand .jp-badge.right { display: flex; }
#stage.portrait .jp-badge { left: 10px; } #stage.portrait .jp-badge.right { right: 10px; left: auto; }

#stage.portrait #machine { margin: auto 0 0; }
#stage.portrait #message { margin-top: 10px !important; }
#stage.portrait #panel { margin-top: auto; }
#stage.portrait .line-tab { display: none; }
#stage.portrait #feature-banner { font-size: 28px; top: -28px; }
#stage.portrait .cell .val { font-size: 36px; }
#stage.portrait .cell .val.val-jp { font-size: 30px; }
#stage.portrait #message { width: 864px; height: 60px; margin: 0 0 12px; font-size: 30px; }

#stage.portrait #panel {
  height: auto; width: 100%;
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "credit win" "bet bet" "btns btns";
  padding: 22px 26px calc(28px + env(safe-area-inset-bottom));
}
#stage.portrait #credit-meter { grid-area: credit; }
#stage.portrait #win-meter { grid-area: win; }
#stage.portrait .bet-box { grid-area: bet; justify-content: center; gap: 18px; }
#stage.portrait .buttons { grid-area: btns; justify-content: space-between; }
#stage.portrait .meter { min-width: 0; height: 92px; border-radius: 14px; }
#stage.portrait .meter label { font-size: 18px; }
#stage.portrait .meter span { font-size: 44px; }
#stage.portrait .meter small { font-size: 17px; }
#stage.portrait .bet-box .meter { width: 300px; }
#stage.portrait .btn.small { width: 84px; height: 84px; font-size: 48px; border-radius: 16px; }
#stage.portrait .btn.denom { width: 96px; height: 96px; font-size: 30px; }
#stage.portrait .btn.icon { width: 90px; height: 90px; font-size: 34px; border-radius: 16px; }
#stage.portrait .btn.auto { height: 90px; padding: 0 22px; font-size: 28px; border-radius: 16px; }
#stage.portrait .btn.spin { width: 184px; height: 184px; margin: 0; font-size: 42px; border-width: 6px; }
#stage.portrait #btn-info { order: 1; }
#stage.portrait #btn-sound { order: 2; }
#stage.portrait #btn-spin { order: 3; }
#stage.portrait #btn-credits { order: 4; }

#stage.portrait .ov-title { font-size: 92px; }
#stage.portrait .ov-sub { font-size: 34px; padding: 0 30px; }
#stage.portrait .ov-amount { font-size: 116px; }
#stage.portrait .ov-hint { font-size: 22px; }
#stage.portrait .ov-grand .ov-title { font-size: 150px; }
#stage.portrait .start-card img { width: 820px; }
#stage.portrait .start-card .btn.spin { width: 240px; height: 240px; font-size: 52px; }
#stage.portrait .start-card p { font-size: 26px; padding: 0 40px; }

#stage.portrait #info-panel { width: 870px; height: calc(100% - 80px); }
#stage.portrait .info-title { font-size: 40px; }
#stage.portrait .info-tab { font-size: 22px; padding: 12px 18px; }
#stage.portrait #info-body h2 { font-size: 30px; }
#stage.portrait #info-body h3 { font-size: 24px; }
#stage.portrait #info-body p, #stage.portrait #info-body li { font-size: 25px; }
#stage.portrait .pay-cards { grid-template-columns: repeat(2, 1fr); }
#stage.portrait .pay-cards.wide { grid-template-columns: 1fr; }
#stage.portrait .pay-card img { width: 110px; height: 110px; }
#stage.portrait .pay-card .pay-name { font-size: 20px; }
#stage.portrait .pay-card th, #stage.portrait .pay-card td { font-size: 24px; }
#stage.portrait .pay-card.special p { font-size: 22px !important; }
#stage.portrait .prize { font-size: 28px; min-width: 120px; }
#stage.portrait .jp-table .amt { font-size: 36px; }
#stage.portrait .jp-table td { font-size: 20px; }
#stage.portrait .line-grid { grid-template-columns: repeat(5, 1fr); }
#stage.portrait .line-mini i { height: 14px; }
#stage.portrait #info-close { width: 80px; height: 80px; font-size: 34px; }
#stage.portrait .info-foot .btn { height: 80px; font-size: 26px; padding: 0 28px; }
#stage.portrait #info-page { font-size: 26px; }
#stage.portrait .btn.icon.info { font-size: 44px; border-radius: 50%; }
#stage.portrait #denom-grid { grid-template-columns: repeat(2, 330px); }
#stage.portrait .denom-choice { height: 140px; }
#stage.portrait .denom-choice b { font-size: 52px; }
#stage.portrait .denom-choice small { font-size: 20px; }
#stage.portrait .denom-panel h2 { font-size: 36px; }
#stage.portrait #denom-close { height: 90px; font-size: 30px; padding: 0 40px; }

/* ---- Free games: scatter collector + doors reveal ---------------------------------------- */
.collector { display: inline-flex; gap: 6px; margin-left: 14px; vertical-align: middle; padding: 2px 6px; border-radius: 999px; background: #0008; box-shadow: inset 0 0 0 1px #ffcf4060; }
.collector .slot { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #2a0a00; box-shadow: inset 0 0 0 2px #7a4300; }
.collector .slot img { width: 100%; height: 100%; object-fit: contain; opacity: .18; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.collector .slot.on img { opacity: 1; filter: drop-shadow(0 0 6px #ffd34a); animation: slot-pop .35s ease-out; }
.collector.full .slot { animation: jp-flash .25s steps(2) infinite; }
@keyframes slot-pop { from { transform: scale(1.8); } }
#stage.portrait .collector .slot { width: 40px; height: 40px; }

.flyer { position: absolute; z-index: 21; width: 110px; height: 110px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 0 14px #ffd34a); }
.cell.captured img { filter: brightness(.55) saturate(.6); transition: filter .3s; }

.cell.door-open img { animation: door-open .26s ease-in forwards; }
@keyframes door-open { to { transform: perspective(500px) rotateY(90deg) scale(1.05); filter: brightness(2); } }
.cell.door-reveal img { animation: door-reveal .45s cubic-bezier(.2, 1.4, .4, 1); }
.cell.door-reveal.sym-ORB img { animation: door-reveal .45s cubic-bezier(.2, 1.4, .4, 1), orb-breathe 2.2s .45s ease-in-out infinite; }
@keyframes door-reveal {
  0% { transform: perspective(500px) rotateY(-90deg); filter: brightness(2.2) drop-shadow(0 0 20px #ffd34a); }
  100% { transform: none; }
}
.cell.door-reveal::after {
  content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none;
  background: radial-gradient(circle, #fff7c280, transparent 65%); animation: flash-out .6s ease-out forwards;
}
@keyframes flash-out { from { opacity: 1; } to { opacity: 0; } }

/* ---- Win count-up overlays ------------------------------------------------------------- */
#win-overlay { position: absolute; inset: 0; z-index: 21; display: flex; align-items: center; justify-content: center; cursor: pointer; }
#win-overlay::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; pointer-events: none;
  background: repeating-conic-gradient(#ffb30040 0deg 8deg, transparent 8deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 40%); mask: radial-gradient(circle, #000 0%, transparent 40%);
  animation: spin-rays 14s linear infinite;
}
.wo-panel { position: relative; text-align: center; animation: zoom-in .5s cubic-bezier(.2, 1.4, .4, 1); }
.wo-title {
  font: 900 72px/1 var(--display); letter-spacing: 4px;
  background: linear-gradient(#fff7c2 0%, #ffd34a 40%, #d18a00 70%, #fff0a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #5a0000) drop-shadow(0 0 2px #3a0000) drop-shadow(0 0 24px #ff7a00c0);
}
.wo-sub { font: 700 22px/1.2 var(--display); letter-spacing: 2px; color: var(--ink); margin-top: 8px; text-shadow: 0 2px 4px #000; min-height: 4px; }
.wo-amount {
  font: 700 90px/1.1 var(--digits); color: #fff; margin-top: 6px; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px #ffb300, 0 4px 0 #a02000, 0 0 4px #000;
}
.wo-amount.final { animation: jp-pop .45s ease-in-out infinite alternate; }
.wo-hint { font: 500 16px var(--digits); letter-spacing: 2px; margin-top: 14px; color: #ffe066; opacity: .85; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* 26x–99x: panel over the reels, game still visible around it */
#win-overlay.big { background: radial-gradient(ellipse at 50% 55%, #000a, transparent 60%); }
#win-overlay.big .wo-panel {
  margin-top: 40px; padding: 26px 64px 22px; border-radius: 22px;
  background: radial-gradient(ellipse at 50% 30%, #6a0a0aee, #1a0101f2 75%);
  box-shadow: 0 0 0 4px #ffcf40, 0 0 0 8px #5a2a00, 0 0 60px #ff7a00a0, 0 20px 50px #000;
}

/* 100x+: full cover */
#win-overlay.mega { background: radial-gradient(circle at 50% 45%, #5a0a0af0, #050000fa 70%); }
#win-overlay.mega::before { width: 2400px; height: 2400px; margin: -1200px 0 0 -1200px; background: repeating-conic-gradient(#ffb30055 0deg 7deg, transparent 7deg 15deg); animation-duration: 9s; }
#win-overlay.mega .wo-title { font-size: 140px; animation: jp-pop .5s ease-in-out infinite alternate; }
#win-overlay.mega .wo-sub { font-size: 30px; }
#win-overlay.mega .wo-amount { font-size: 170px; font-weight: 700; letter-spacing: 2px; -webkit-text-stroke: 3px #7a2000; paint-order: stroke fill; color: #fff6c0; }
#win-overlay.mega .wo-hint { font-size: 22px; }

#stage.portrait .wo-title { font-size: 92px; }
#stage.portrait .wo-amount { font-size: 112px; }
#stage.portrait #win-overlay.big .wo-panel { padding: 30px 40px; }
#stage.portrait #win-overlay.mega .wo-title { font-size: 150px; }
#stage.portrait #win-overlay.mega .wo-amount { font-size: 150px; }
#stage.portrait .wo-hint { font-size: 24px; }

/* SPIN pulses when Hold & Spin is waiting for the player */
.btn.spin.ready { animation: spin-ready .6s ease-in-out infinite alternate !important; }
@keyframes spin-ready { to { box-shadow: 0 0 0 3px #3a1000, 0 6px 0 #3a1000, 0 0 60px #ffe066; transform: scale(1.06); } }

/* ---- Hold & Spin collection total --------------------------------------------------------- */
#collect-total {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -58%); z-index: 7;
  min-width: 440px; padding: 6px 34px 8px; border-radius: 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(ellipse at 50% 0%, #8a0a0a, #2a0000 75%);
  box-shadow: 0 0 0 3px #ffcf40, 0 0 0 6px #5a2a00, 0 10px 30px #000c, 0 0 40px #ff7a0090;
  animation: zoom-in .4s cubic-bezier(.2, 1.4, .4, 1);
}
.ct-label { font: 900 16px/1.1 var(--display); letter-spacing: 3px; color: #ffd34a; text-shadow: 0 2px 2px #000; }
#ct-amount {
  font: 700 46px/1.05 var(--digits); color: #fff6c0; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px #ffb300, 0 3px 0 #a02000;
}
#ct-amount.bump { animation: ct-bump .3s ease-out; }
#ct-amount.final { animation: jp-pop .4s ease-in-out infinite alternate; }
@keyframes ct-bump { 40% { transform: scale(1.12); color: #fff; } }
.flyer-val {
  position: absolute; z-index: 21; pointer-events: none; white-space: nowrap;
  font: 700 34px/1 var(--digits); color: #fff6c0; -webkit-text-stroke: 1.5px #5a1000; paint-order: stroke fill;
  text-shadow: 0 0 14px #ffb300;
}
#stage.portrait #collect-total { min-width: 560px; padding: 8px 40px 10px; }
#stage.portrait .ct-label { font-size: 24px; }
#stage.portrait #ct-amount { font-size: 66px; }
#stage.portrait .flyer-val { font-size: 44px; }

.ov-hint.press { font: 700 26px var(--digits); letter-spacing: 3px; color: #ffe066; opacity: 1; animation: blink 1s steps(2) infinite; text-shadow: 0 0 12px #ff9a00; }
#stage.portrait .ov-hint.press { font-size: 34px; }

/* ---- Scene transitions (inside the reel window) ---------------------------------------------- */
#transition { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; border-radius: 6px; }
#transition > div { display: none; }

/* Molten ember wall (into Hold & Spin) */
#transition.fire .tr-fire {
  display: block; position: absolute; left: 0; right: 0; top: 0; height: 250%; transform: translateY(40%);
  background:
    radial-gradient(circle at 20% 30%, #ffb30055 0 2px, transparent 3px) 0 0 / 46px 52px,
    radial-gradient(circle at 70% 60%, #ff6a0050 0 1.5px, transparent 2.5px) 0 0 / 38px 44px,
    linear-gradient(180deg,
      transparent 0%, #ff6a0030 4%, #ffb30090 7.5%, #fff3c0 9%, #ffd34a 10%, #ff7a00 12%, #c42000 15%,
      #5a0600 20%, #2a0200 35%, #3a0300 50%, #2a0200 65%, #5a0600 80%,
      #c42000 85%, #ff7a00 88%, #ffd34a 90%, #fff3c0 91%, #ffb30090 92.5%, #ff6a0030 96%, transparent 100%);
  box-shadow: inset 0 0 60px #000;
}

/* Temple doors (into / out of free games) */
#transition.doors .tr-door {
  display: block; position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff3a0 0 4px, #b07a10 5px 6px, transparent 7px) 14px 14px / 52px 52px,
    linear-gradient(90deg, #4a0303, #b5120c 35%, #d4241a 50%, #b5120c 65%, #4a0303);
  box-shadow: inset 0 0 0 8px #c08a20, inset 0 0 0 11px #3a1000, inset 0 0 0 15px #ffcf40, inset 0 0 60px #000;
}
#transition.doors .tr-door.left { left: 0; transform: translateX(-100%); }
#transition.doors .tr-door.right { right: 0; transform: translateX(100%); }
#transition.doors .tr-door::after { /* ring handle near the centre seam */
  content: ''; position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
  border: 6px solid #ffcf40; box-shadow: 0 0 0 2px #5a2a00, 0 3px 8px #000a, inset 0 0 0 2px #5a2a00;
}
#transition.doors .tr-door.left::after { right: 26px; }
#transition.doors .tr-door.right::after { left: 26px; }

/* Golden glow (back to the base game) */
#transition.flash .tr-flash {
  display: block; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, #fffbe0, #ffe066 40%, #ff9a00b0 75%, #5a1000a0);
}

/* Reel shake (uses the `translate` property so it composes with the frame's own transform) */
#machine.shake { animation: shake .5s linear; }
@keyframes shake {
  10%, 90% { translate: -3px 0; }
  20%, 80% { translate: 6px 2px; }
  30%, 50%, 70% { translate: -10px -3px; }
  40%, 60% { translate: 10px 3px; }
}

/* Denomination change: jackpot displays flip over */
.jp.flip { animation: jp-flip .6s ease-in-out backwards; }
@keyframes jp-flip {
  0% { transform: perspective(600px) rotateX(0); }
  50% { transform: perspective(600px) rotateX(90deg); filter: brightness(2.2); }
  100% { transform: perspective(600px) rotateX(0); }
}

/* Start screen exit + machine powering on */
.overlay-start.leaving { animation: start-out .55s ease-in forwards; }
@keyframes start-out { to { opacity: 0; transform: scale(1.15); } }
#stage.power-on .jp { animation: power-on .7s ease-out backwards; }
#stage.power-on .jp-grand { animation-delay: .15s; }
#stage.power-on .jp-major { animation-delay: .3s; }
#stage.power-on .jp-minor { animation-delay: .4s; }
#stage.power-on .jp-mini { animation-delay: .5s; }
@keyframes power-on { 0% { filter: brightness(0); } 60% { filter: brightness(2.2); } 100% { filter: none; } }
#stage.power-on #machine { animation: machine-in .8s cubic-bezier(.2, 1.3, .4, 1) backwards .1s; }
@keyframes machine-in { from { scale: .9; opacity: 0; } }
#stage.power-on #logo { animation: machine-in .8s cubic-bezier(.2, 1.3, .4, 1) backwards; }

/* Panels slide up when opened */
#info-panel, .denom-panel { animation: panel-in .35s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes panel-in { from { translate: 0 60px; scale: .92; opacity: 0; } }

.start-card p.disclaimer { margin-top: 10px; font-size: 13px; opacity: .55; letter-spacing: .5px; }
#stage.portrait .start-card p.disclaimer { font-size: 20px; }
