/* Sleep Token · Authentic Dual-Screen Gothic Obsidian & Chrome 3x5 Slot Cabinet */
:root {
  --bg-0: #040308;
  --bg-1: #0c0814;
  --obsidian: #0a0910;
  --chrome-hi: #eef0f6;
  --chrome-mid: #8b8f9e;
  --chrome-lo: #2b2d38;
  --silver: #d4d0de;
  --silver-dim: rgba(212, 208, 222, .45);
  --crimson: #e61c3a;
  --crimson-hi: #ff4f6b;
  --ember: #ff7a45;
  --gold: #d9b15f;
  --gold-hi: #ffe8a8;
  --gold-lo: #7a5418;
  --violet: #a855f7;
  --ink: #f2eff8;
  --muted: #a49cb8;
  --f-ui: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --f-goth: 'Cinzel', Georgia, serif;
  --cell: clamp(78px, min(10.2vh, calc((100vw - 156px) / 5)), 102px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg-0); overflow-x: clip; }
body {
  background:
    radial-gradient(900px 640px at 50% 8%, rgba(128, 20, 42, .26) 0%, rgba(22, 12, 34, .65) 42%, #050409 80%, #020205 100%);
  color: var(--ink);
  font-family: var(--f-ui);
  letter-spacing: .02em;
  -webkit-tap-highlight-color: transparent;
}
#embers { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
a { color: inherit; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ---------- Minimal Top Utility Bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 7px clamp(10px, 2.5vw, 24px);
  background: linear-gradient(180deg, rgba(6, 5, 11, .95), rgba(6, 5, 11, .72));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 208, 222, .16);
}
.top-left { justify-self: start; display: flex; gap: 8px; }
.top-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.brand-mini {
  font-family: var(--f-goth); font-size: 13px; font-weight: 700; letter-spacing: .34em;
  color: rgba(242, 239, 248, .75); white-space: nowrap;
}
.pill-btn {
  padding: 6px 13px; border-radius: 999px; background: rgba(14, 12, 22, .9); color: var(--ink);
  border: 1px solid rgba(212, 208, 222, .35); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.pill-btn:hover { border-color: var(--crimson-hi); color: #fff; }
.credits {
  display: flex; align-items: center; gap: 7px; padding: 4px 12px 4px 6px;
  border-radius: 999px; background: rgba(10, 9, 16, .95);
  border: 1px solid rgba(212, 208, 222, .45);
  transition: box-shadow .25s, transform .25s;
}
.credits.up { border-color: #ff6b85; box-shadow: 0 0 22px rgba(230, 28, 58, .55); transform: scale(1.04); }
.credits-orb {
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ffe6eb 0%, #e61c3a 48%, #4a0410 100%);
  border: 1px solid rgba(255, 215, 225, .6);
}
.credits-num { font-weight: 700; font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; }
.credits-lbl { font-size: 10px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(212, 208, 222, .35);
  background: rgba(12, 10, 20, .9); color: var(--ink); font-size: 15px; cursor: pointer;
}
.icon-btn.off { opacity: .55; }

main { position: relative; z-index: 1; padding: 6px 8px 34px; }

/* ---------- Authentic Sleep Token Dual-Screen Gothic Cabinet ---------- */
.st-shell {
  width: fit-content; max-width: 100%; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
}

/* 1. Wrought-Iron Crown Topper (User's Real Sleep Token Sign!) */
.st-topper {
  position: relative; z-index: 4;
  width: min(470px, calc(100% - 28px));
  margin-bottom: -10px;
  display: flex; justify-content: center;
  filter: drop-shadow(0 0 26px rgba(230, 28, 58, .35)) drop-shadow(0 12px 24px rgba(0, 0, 0, .92));
}
.st-topper img {
  width: 100%; height: auto; display: block; user-select: none; pointer-events: none;
}
.st-topper::after {
  content: ''; position: absolute; left: 32%; right: 32%; top: 34%; bottom: 16%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 36, 68, .55), transparent 72%);
  animation: sigilPulse 3.6s ease-in-out infinite;
}
@keyframes sigilPulse { 50% { opacity: .45; transform: scale(1.08); } }

/* 2. Dual-Screen Matte-Black & Brushed-Chrome Cabinet Housing */
.st-cabinet {
  position: relative;
  width: calc(var(--cell) * 5 + 158px); max-width: 100%;
  border-radius: 18px 18px 14px 14px;
  background: linear-gradient(90deg, #3c3e4c 0%, #1b1c24 3.5%, #0c0b12 9%, #08070d 50%, #0c0b12 91%, #1b1c24 96.5%, #3c3e4c 100%);
  border: 2px solid #595c6e;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .28),
    inset 0 0 0 3px #14141d,
    0 0 0 4px #06050a,
    0 34px 72px rgba(0, 0, 0, .92);
  padding: 12px 10px 0;
  transition: box-shadow .35s;
}
.st-cabinet.win-pulse {
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .35),
    inset 0 0 0 3px #1d1422,
    0 0 0 4px #06050a,
    0 0 44px rgba(230, 28, 58, .52),
    0 34px 72px rgba(0, 0, 0, .92);
}

/* Brushed Chrome Side Columns with Sleek Rose-White Vertical Diffuser Bars */
.cab-frame {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) 14px; gap: 10px; align-items: stretch;
}
.chrome-rail {
  position: relative; border-radius: 8px;
  background: linear-gradient(90deg, #272933, #6d7082 32%, #9a9eb2 50%, #4b4d5c 78%, #1e2028);
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex; flex-direction: column; justify-content: space-between; padding: 10px 3px; gap: 16px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .65);
}
.rail-bar {
  flex: 1; border-radius: 999px;
  background: linear-gradient(180deg, #ffeef2 0%, #f3c4ce 48%, #d49ba8 100%);
  box-shadow: 0 0 10px rgba(255, 206, 218, .75), 0 0 20px rgba(230, 28, 58, .4);
  transition: background .3s, box-shadow .3s;
}
body.free-mode .rail-bar {
  background: linear-gradient(180deg, #f3e8ff 0%, #c084fc 50%, #7e22ce 100%);
  box-shadow: 0 0 12px rgba(192, 132, 252, .85), 0 0 24px rgba(168, 85, 247, .55);
}
.st-cabinet.win-pulse .rail-bar {
  animation: railFlash .55s ease-in-out infinite alternate;
}
@keyframes railFlash {
  from { filter: brightness(1); }
  to { filter: brightness(1.45); box-shadow: 0 0 18px #fff, 0 0 28px rgba(230, 28, 58, .85); }
}

.screens-col {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}

/* ---------- UPPER MONITOR: TAKE ME BACK TO EDEN ---------- */
.upper-screen {
  position: relative; border-radius: 10px; overflow: hidden;
  background: #08060d;
  border: 2px solid #353746;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 8px 20px rgba(0, 0, 0, .82);
  padding: 6px;
  display: flex; flex-direction: column; gap: 6px;
}
.upper-video {
  position: relative; width: 100%; aspect-ratio: 852 / 316;
  border-radius: 6px; overflow: hidden; background: #090510;
  border: 1.5px solid rgba(212, 208, 222, .48);
}
#topbox-canvas { width: 100%; height: 100%; display: block; }
.topbox-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.upper-video-hud {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between; padding: 6px 8px;
}
.video-pill {
  align-self: flex-start;
  padding: 2px 9px; border-radius: 4px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(8, 6, 14, .78); border: 1px solid rgba(212, 208, 222, .5); color: #f6eef8;
  opacity: 0; transform: translateY(-4px); transition: opacity .28s, transform .28s;
}
.video-pill.show { opacity: 1; transform: none; }
.video-caption {
  align-self: center; max-width: 96%;
  padding: 2px 12px; border-radius: 4px;
  background: rgba(7, 5, 13, .82); border: 1px solid rgba(230, 28, 58, .55);
  font-family: var(--f-goth); font-size: 11px; font-weight: 700; letter-spacing: .16em;
  color: #fff2d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(4px); transition: opacity .28s, transform .28s;
}
.video-caption.show { opacity: 1; transform: none; }

/* Bottom 3-panel gothic info strip inside the Upper Monitor (exact layout of Image 2!) */
.upper-strip {
  display: grid; grid-template-columns: 1.05fr 1.65fr 1.05fr; gap: 7px;
}
.u-panel {
  position: relative; border-radius: 6px; padding: 10px 7px 6px;
  background: linear-gradient(180deg, rgba(20, 14, 28, .92), rgba(9, 7, 15, .96));
  border: 1.5px solid rgba(212, 208, 222, .52);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0;
}
.u-panel-title {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  padding: 0 7px; background: #0c0914; white-space: nowrap;
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #f4eefc;
}
.u-panel-mid .u-panel-title {
  font-family: var(--f-goth); font-size: 11.5px; letter-spacing: .12em; color: #fff;
}

/* Left Panel: Band Wilds (4 expanding sticky character badges) */
.band-badges {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%;
}
.band-badge {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 2px; border-radius: 5px; background: rgba(5, 4, 10, .85);
  border: 1px solid rgba(212, 208, 222, .24); transition: border-color .25s, box-shadow .25s, transform .25s;
}
.band-badge.lit {
  border-color: var(--crimson-hi); box-shadow: 0 0 12px rgba(230, 28, 58, .75); transform: scale(1.06);
}
.band-badge img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; display: block;
}
.band-badge b { font-size: 8.5px; letter-spacing: .04em; color: var(--gold-hi); line-height: 1; }

/* Center Panel: Take Me Back to Eden Mini Payline Matrix */
.eden-info {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
}
.eden-meta {
  display: flex; flex-direction: column; gap: 1px; text-align: left;
  font-size: 9.5px; letter-spacing: .12em; color: var(--muted); white-space: nowrap;
}
.eden-meta b { color: #fff; font-size: 10.5px; }
.mini-paymap {
  width: 126px; height: 42px; flex: none; display: block;
}

/* Right Panel: The Summoning (3 Glowing Rune Charges + Live Grand) */
.summon-box {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%;
}
.rune-charges {
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.rune-orb {
  width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  color: rgba(212, 208, 222, .35); background: rgba(7, 5, 12, .9);
  border: 1px solid rgba(212, 208, 222, .25); transition: all .3s;
}
.rune-orb.charged {
  color: #fff4e0; border-color: #ff6b4a;
  background: radial-gradient(circle, rgba(230, 28, 58, .55), rgba(40, 6, 16, .95));
  box-shadow: 0 0 12px rgba(230, 28, 58, .8);
  text-shadow: 0 0 8px #ff7a45;
}
.summon-sub {
  font-size: 9px; letter-spacing: .15em; color: var(--gold-hi); text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- LOWER MONITOR: THE SUMMONING 3×5 REELS (Exact Match to Image 1!) ---------- */
.lower-screen {
  position: relative; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(58, 32, 74, .34), rgba(14, 10, 22, .94) 68%, #07050c 100%);
  border: 2px solid #353746;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, .88), 0 10px 24px rgba(0, 0, 0, .85);
  padding: 14px 10px 10px;
}
/* Subtle gothic corner filigree sheen inside the lower monitor */
.lower-screen::before {
  content: ''; position: absolute; inset: 4px; border-radius: 7px; pointer-events: none;
  border: 1px solid rgba(212, 208, 222, .16);
}

.fs-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: -4px auto 8px; padding: 4px 14px; width: fit-content;
  border-radius: 999px; border: 1.5px solid var(--violet); background: rgba(24, 8, 44, .94);
  color: #edd8ff; letter-spacing: .16em; text-transform: uppercase; font-size: 12px;
  box-shadow: 0 0 20px rgba(168, 85, 247, .55);
}
.fs-banner img { width: 22px; height: 22px; object-fit: cover; border-radius: 5px; }
.fs-banner b { color: #e2b8ff; }

.reel-stage {
  display: grid; grid-template-columns: 28px auto 28px; align-items: stretch; justify-content: center; gap: 8px;
}

/* Left & Right Glowing Crimson Gothic Runes + Line Hover Triggers (matching Image 1!) */
.rune-rail {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 14px 0 8px;
}
.rune-glyph {
  font-size: 15px; line-height: 1; color: #ffcdc4;
  text-shadow: 0 0 6px #ff4d4d, 0 0 14px #e61c3a;
  user-select: none; animation: runeBreath 3.2s ease-in-out infinite;
}
.rune-glyph:nth-child(2n) { animation-delay: 1.6s; }
@keyframes runeBreath { 50% { opacity: .65; text-shadow: 0 0 3px #e61c3a; } }

.line-pill-stack {
  display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.line-tag {
  width: 22px; height: 16px; border-radius: 3px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; cursor: pointer;
  color: #f6eef8; background: rgba(14, 10, 22, .9);
  border: 1px solid rgba(212, 208, 222, .52);
  transition: transform .15s, border-color .15s, box-shadow .15s, background .15s;
}
.line-tag:hover, .line-tag.on {
  background: var(--c, #e61c3a); color: #09060e; border-color: #fff;
  transform: scale(1.14); box-shadow: 0 0 10px var(--c, #e61c3a);
}

/* Ornate Silver-Pewter Double-Bordered 3×5 Reel Frame + THE SUMMONING Header Ribbon */
.reels-outer {
  position: relative;
  padding: 6px; border-radius: 6px;
  border: 2px solid rgba(218, 214, 228, .78);
  background: linear-gradient(180deg, rgba(24, 18, 34, .85), rgba(10, 8, 16, .96));
  box-shadow:
    inset 0 0 0 2px #0b0912,
    inset 0 0 0 3.5px rgba(218, 214, 228, .48),
    0 0 26px rgba(0, 0, 0, .85);
}
.summoning-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 8;
  padding: 2px 26px; white-space: nowrap;
  font-family: var(--f-ui); font-weight: 700; font-size: 15px; letter-spacing: .24em; text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, #1b1726, #0d0b14);
  border: 1.5px solid rgba(226, 222, 236, .82);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .8);
  text-shadow: 0 0 8px rgba(255, 255, 255, .45);
}

.reels {
  position: relative; display: grid; grid-template-columns: repeat(5, var(--cell));
  overflow: hidden; border-radius: 3px;
  background: linear-gradient(180deg, #0b0914 0%, #140f20 50%, #090710 100%);
}
body.free-mode .reels { background: linear-gradient(180deg, #160a28, #080412); }

.screen-glass {
  position: absolute; inset: 0; pointer-events: none; z-index: 7;
  background: linear-gradient(128deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .01) 24%, transparent 40%);
}

/* 3 ROWS HIGH — Bold & Clear! */
.reel {
  position: relative; height: calc(var(--cell) * 3); overflow: hidden;
  border-right: 2px solid rgba(212, 208, 222, .52);
}
.reel:last-of-type { border-right: none; }
.reel::before, .reel::after { content: ''; position: absolute; left: 0; right: 0; height: 14%; z-index: 2; pointer-events: none; }
.reel::before { top: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .78), transparent); }
.reel::after { bottom: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .78), transparent); }
.reel.spinning::after { height: 30%; animation: gloss 210ms linear infinite; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .18), transparent); }
@keyframes gloss { from { transform: translateY(-120%); } to { transform: translateY(420%); } }
.reel.tease { animation: tease 320ms ease-in-out infinite; background: radial-gradient(ellipse at 50% 50%, rgba(230, 28, 58, .3), transparent 72%); }
@keyframes tease {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(230, 28, 58, .65), inset 0 0 18px rgba(230, 28, 58, .4); }
  50% { box-shadow: inset 0 0 0 4px #ffd46a, inset 0 0 34px rgba(230, 28, 58, .85); }
}
.reel.reel-thud { animation: reelThud 220ms cubic-bezier(.22, .68, .35, 1.2); }
@keyframes reelThud { 0% { transform: translateY(5px); } 55% { transform: translateY(-2px); } 100% { transform: translateY(0); } }

.strip { will-change: transform; }
.strip.blur { filter: blur(1.8px) brightness(1.16) saturate(1.1); }
.cell { height: var(--cell); display: grid; place-items: center; padding: 5%; position: relative; }
.cell img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 8px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .82));
  user-select: none; transition: transform .22s, filter .22s;
}
.cell.cell-land img { animation: cellLand 420ms cubic-bezier(.18, .88, .32, 1.35); filter: drop-shadow(0 0 14px rgba(230, 28, 58, .9)); }
@keyframes cellLand { 0% { transform: scale(.78); } 55% { transform: scale(1.15); } 100% { transform: scale(1); } }
.cell.win { animation: pop .75s ease-in-out infinite; z-index: 2; }
.cell.win img { filter: drop-shadow(0 0 14px rgba(255, 224, 128, .95)) brightness(1.14); }
.cell.win::before {
  content: ''; position: absolute; inset: 4%; border-radius: 8px;
  border: 2px solid #f4725e;
  background: radial-gradient(circle, rgba(230, 28, 58, .26), transparent 72%);
  box-shadow: 0 0 16px rgba(230, 28, 58, .75), inset 0 0 10px rgba(255, 160, 120, .35);
  pointer-events: none;
}
@keyframes pop { 50% { transform: scale(1.07); } }
.reels.has-win .cell:not(.win) img { opacity: .36; filter: grayscale(.4) brightness(.65); }

/* FULL-COLUMN STICKY EXPANDING BAND CHARACTERS (Spans all 3 rows!) */
.expand-layer {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  pointer-events: none; z-index: 4;
}
.exp-col {
  grid-column: calc(var(--c) + 1); position: relative; height: 100%; overflow: hidden;
  border-left: 2.5px solid var(--ec, #e61c3a); border-right: 2.5px solid var(--ec, #e61c3a);
  background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--ec, #e61c3a) 32%, #110c1c), #06040b 84%);
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--ec, #e61c3a) 62%, transparent), 0 0 22px color-mix(in srgb, var(--ec, #e61c3a) 55%, transparent);
  animation: colExpand 460ms cubic-bezier(.18, .92, .28, 1.15) forwards;
}
@keyframes colExpand {
  0% { transform: scaleY(.18); opacity: .2; }
  65% { transform: scaleY(1.03); opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}
.exp-col img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  filter: drop-shadow(0 0 14px var(--ec, #e61c3a));
}
.exp-badge-top {
  position: absolute; top: 5px; left: 4px; right: 4px; z-index: 2; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 2px 4px; border-radius: 4px; font-family: var(--f-goth); font-size: 9px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase; color: #fff7dc;
  background: rgba(7, 5, 13, .9); border: 1.5px solid var(--ec, #e61c3a);
  box-shadow: 0 0 10px var(--ec, #e61c3a);
}
.exp-badge-bot {
  position: absolute; bottom: 5px; left: 4px; right: 4px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 3px 4px; border-radius: 5px; background: rgba(7, 5, 13, .92);
  border: 1.5px solid rgba(218, 214, 228, .78);
}
.exp-badge-bot b { font-size: 13px; color: #ffe8a8; letter-spacing: .1em; white-space: nowrap; }
.exp-badge-bot span { font-size: 8.5px; color: #d6cee8; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.lines-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.lines-overlay .ln { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw .58s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.line-pill { animation: pillPop 280ms cubic-bezier(.2, .9, .3, 1.3) backwards; animation-delay: 110ms; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .85)); }
@keyframes pillPop { from { opacity: 0; transform: scale(.5); } }
.coin-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }
.pole-ghost { position: fixed; width: 54px; height: 54px; z-index: 40; pointer-events: none; border-radius: 10px; }

.win-flash { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .3s; padding: 0 12px; text-align: center; }
.win-flash.show { opacity: 1; }
.win-flash span {
  font-family: var(--f-goth); font-weight: 900; font-size: clamp(16px, 2.3vw, 26px); color: #fff6dc;
  padding: 7px 18px; border-radius: 8px; max-width: 94%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(8, 6, 15, .94); border: 2px solid var(--silver);
  text-shadow: 0 0 18px var(--crimson), 0 0 32px rgba(255, 224, 140, .65);
  animation: pop .6s infinite;
}

/* Bottom 3 Silver-Bordered Readout Pills INSIDE Lower Monitor (Exact Match to Image 1!) */
.screen-footer {
  display: grid; grid-template-columns: 1fr 1.25fr 0.72fr; gap: 10px;
  margin-top: 9px; padding: 0 36px;
}
.sf-pill {
  padding: 4px 12px; border-radius: 7px;
  background: rgba(8, 6, 15, .92);
  border: 1.5px solid rgba(218, 214, 228, .72);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .88);
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #ffffff;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sf-pill span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.sf-pill.jackpot-pill { border-color: rgba(255, 226, 165, .78); }
.sf-pill.jackpot-pill.win-lit {
  border-color: var(--crimson-hi);
  background: radial-gradient(circle, rgba(160, 12, 36, .48), rgba(10, 6, 16, .95));
  box-shadow: 0 0 16px rgba(230, 28, 58, .6);
}

/* ---------- 3. PHYSICAL MATTE-BLACK BUTTON DECK (Exact Match to Image 4!) ---------- */
.st-deck {
  position: relative; z-index: 3;
  width: calc(100% + 26px); max-width: calc(100vw - 14px);
  margin: 10px -13px 0; padding: 11px 16px 12px;
  border-radius: 10px 10px 14px 14px;
  background: linear-gradient(180deg, #272833 0%, #14141d 22%, #0c0b12 72%, #050509 100%);
  border: 2px solid #4d4f5f;
  border-top-color: #82869a;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .22),
    inset 0 -6px 12px rgba(0, 0, 0, .75),
    0 18px 32px rgba(0, 0, 0, .9);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
}

.deck-left { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; }
.sq-btn {
  min-width: 40px; height: 42px; padding: 0 8px; border-radius: 7px; cursor: pointer;
  background: linear-gradient(180deg, #2d2e3c 0%, #171722 52%, #0d0d14 100%);
  border: 1.5px solid rgba(212, 208, 222, .42);
  border-top-color: rgba(255, 255, 255, .36);
  color: #f4eefc; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 4px 0 #05050a, inset 0 1px 1px rgba(255, 255, 255, .2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  transition: transform 70ms, box-shadow 70ms, border-color .18s;
  white-space: nowrap;
}
.sq-btn small { font-size: 8px; letter-spacing: .12em; color: var(--muted); font-weight: 500; }
.sq-btn:hover { border-color: #fff; }
.sq-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #05050a; }
.sq-btn.accent { border-color: rgba(230, 28, 58, .72); }

/* Center Recessed Illuminated Gothic Status & Win Pad */
.deck-pad {
  background: #06050b;
  border: 1.5px solid rgba(212, 208, 222, .35);
  border-top-color: rgba(80, 76, 98, .55);
  border-bottom-color: rgba(255, 255, 255, .35);
  border-radius: 8px; padding: 6px 12px; min-height: 44px;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, .95);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0;
}
.msg {
  font-size: 11.5px; color: #e2dcf0; font-weight: 500; letter-spacing: .06em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.win-read {
  display: flex; align-items: baseline; gap: 6px; flex: none;
  padding-left: 10px; border-left: 1px solid rgba(212, 208, 222, .22);
}
.win-read span { font-size: 10px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.win-read b { font-size: 20px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }

/* Iconic Backlit Chrome-Ringed White Round SPIN Button (Exact Match to Image 4!) */
.spin-ring {
  padding: 5px; border-radius: 999px;
  background: linear-gradient(180deg, #9a9eb2 0%, #3a3d4c 48%, #181922 100%);
  border: 1.5px solid rgba(255, 255, 255, .38);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .88), inset 0 2px 3px rgba(255, 255, 255, .45);
}
.spin-btn {
  width: 78px; height: 46px; border-radius: 999px; cursor: pointer;
  border: 2px solid #ffffff;
  background: radial-gradient(ellipse at 50% 28%, #ffffff 0%, #f1eef8 55%, #cbc8d8 100%);
  box-shadow:
    0 4px 0 #5b5e70,
    0 0 20px rgba(255, 255, 255, .58),
    inset 0 2px 4px rgba(255, 255, 255, .95);
  color: #0b0912; font-family: var(--f-ui); font-weight: 700; font-size: 17px;
  letter-spacing: .16em; text-transform: uppercase;
  transition: transform 70ms ease, box-shadow 70ms ease, filter .18s;
  transform: translateY(-2px);
}
.spin-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 4px 0 #5b5e70, 0 0 28px rgba(255, 255, 255, .85), 0 0 18px rgba(230, 28, 58, .45);
}
.spin-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #5b5e70, 0 0 12px rgba(255, 255, 255, .45);
}
.spin-btn:disabled {
  transform: translateY(2px); box-shadow: 0 1px 0 #3f4150;
  filter: brightness(.72); cursor: progress;
}
body.free-mode .spin-btn {
  border-color: #f3e8ff;
  background: radial-gradient(ellipse at 50% 28%, #faf5ff 0%, #d8b4fe 55%, #9333ea 100%);
  color: #1a0630;
  box-shadow: 0 4px 0 #4c1d95, 0 0 24px rgba(192, 132, 252, .85);
}

/* ---------- 4. RUNE-ENGRAVED COIN TRAY & PULL-DOWN PAYTABLE DRAWER ---------- */
.st-base {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 18px 11px;
}
.filigree-plate {
  flex: 1; height: 22px; border-radius: 5px;
  background:
    repeating-linear-gradient(45deg, rgba(212, 208, 222, .08) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(-45deg, rgba(212, 208, 222, .08) 0 2px, transparent 2px 9px),
    #08070d;
  border: 1px solid rgba(212, 208, 222, .22);
}
.rune-tray {
  appearance: none; cursor: pointer;
  padding: 5px 22px; border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, #2a242c 0%, #151218 45%, #0c0a0f 100%);
  border: 1.5px solid #6b6878; border-top-color: #a6a3b5;
  box-shadow: inset 0 6px 12px rgba(0, 0, 0, .85), 0 6px 14px rgba(0, 0, 0, .7);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  transition: border-color .2s, box-shadow .2s;
}
.rune-tray:hover { border-color: #ff8e72; box-shadow: inset 0 6px 12px rgba(0, 0, 0, .85), 0 0 18px rgba(230, 28, 58, .35); }
.tray-runes {
  font-size: 13px; letter-spacing: .34em; color: #ffcfba;
  text-shadow: 0 0 8px #ff5e4d, 0 0 14px #e61c3a;
}
.tray-label {
  font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
}
.drawer-chevron { font-style: normal; transition: transform .28s ease; display: inline-block; }
.rune-tray[aria-expanded="true"] .drawer-chevron { transform: rotate(180deg); }

.pt-drawer {
  max-height: 0; overflow: hidden; opacity: 0;
  width: calc(var(--cell) * 5 + 116px); max-width: calc(100% - 16px);
  margin: 0 auto; border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #100c1a 0%, #06050c 100%);
  border: 0 solid rgba(212, 208, 222, .45);
  box-shadow: inset 0 10px 24px rgba(0, 0, 0, .88), 0 22px 44px rgba(0, 0, 0, .85);
  transition: max-height .42s cubic-bezier(.22, .88, .32, 1), opacity .28s ease, margin .3s ease, border-width .2s;
}
.pt-drawer.open { max-height: 1180px; opacity: 1; margin-top: 4px; border-width: 1.5px; border-top: none; }
.pt-drawer-inner { padding: 14px 16px 18px; text-align: left; }
.pt-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.pt-drawer-head .kicker { display: block; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--crimson-hi); }
.pt-drawer-head h3 { margin: 0; font-family: var(--f-goth); font-size: 20px; color: #fff; }
.pt-drawer-note { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.pt-head, .pt-row { display: grid; grid-template-columns: 44px 1fr 44px 44px 44px 44px; align-items: center; gap: 8px; padding: 4px 6px; }
.pt-head span:nth-child(2), .pt-head b { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pt-head b, .pt-row b { text-align: right; }
.pt-row { border-bottom: 1px solid rgba(212, 208, 222, .12); }
.pt-row img { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; background: #080610; border: 1px solid rgba(212, 208, 222, .3); }
.pt-row b { color: var(--gold-hi); font-size: 15px; }
.pt-scatters-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.pt-scatter {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  background: rgba(7, 5, 13, .88); border: 1px solid rgba(212, 208, 222, .22); font-size: 12px; color: var(--muted);
}
.pt-scatter img { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; flex: none; }
.pt-scatter b { color: #fff; }

.pt-test-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding: 10px 14px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(42, 12, 24, .92), rgba(10, 8, 18, .96));
  border: 1.5px dashed rgba(230, 28, 58, .72);
}
.pt-test-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 240px; }
.pt-test-copy b { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.pt-test-copy span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.test-mode-btn {
  background: linear-gradient(180deg, #ff526d, #c2102c); border-color: #ffd8df; color: #fff;
  box-shadow: 0 3px 0 #4d0310, 0 0 16px rgba(230, 28, 58, .5);
}
.test-mode-btn.active {
  background: linear-gradient(180deg, #7bffb6, #14b85e); border-color: #d8ffeb; color: #04180d;
  box-shadow: 0 3px 0 #064a24, 0 0 18px rgba(32, 227, 140, .55);
}

/* ---------- Modals: Blood Eclipse 3×5 Hold & Spin, Summoning Wheel, Eden Portal ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 30px); opacity: 0;
  padding: 11px 18px; border-radius: 10px; background: rgba(9, 7, 16, .96); border: 1px solid var(--silver);
  color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .8); transition: all .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.good { border-color: var(--crimson-hi); }

.modal-wrap {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 14px;
  background: rgba(3, 2, 7, .85); backdrop-filter: blur(7px); opacity: 0; transition: opacity .3s;
}
.modal-wrap.in { opacity: 1; }
.modal {
  position: relative; width: min(700px, 100%); max-height: calc(100vh - 28px); overflow: auto;
  padding: clamp(16px, 2.8vw, 28px); border-radius: 16px; text-align: center;
  background: radial-gradient(560px 260px at 50% 0, rgba(230, 28, 58, .22), transparent 72%), linear-gradient(180deg, #130e20, #06050c);
  border: 1.5px solid rgba(218, 214, 228, .65);
  box-shadow: 0 0 0 5px rgba(5, 4, 10, .92), 0 30px 80px rgba(0, 0, 0, .88);
}
.modal .kicker { margin: 0 0 5px; letter-spacing: .32em; font-size: 11px; text-transform: uppercase; color: var(--crimson-hi); }
.modal h2 { margin: 0 0 6px; font-family: var(--f-goth); font-size: clamp(22px, 3.6vw, 34px); color: #fff; }
.modal p { color: var(--muted); margin: 4px 0 12px; font-size: 14px; }
.modal .big-win { font-family: var(--f-goth); font-weight: 900; font-size: clamp(38px, 6.5vw, 60px); color: var(--gold-hi); text-shadow: 0 0 22px rgba(230, 28, 58, .65); margin: 8px 0; }
.bonus-art { width: 150px; margin: 10px auto; filter: drop-shadow(0 0 22px rgba(168, 85, 247, .65)); }
.bonus-art img { width: 100%; display: block; border-radius: 12px; border: 2px solid var(--silver); }
.btn {
  appearance: none; border: 1.5px solid rgba(255, 255, 255, .45); cursor: pointer; border-radius: 10px; padding: 11px 22px;
  font-family: var(--f-ui); font-weight: 700; font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
  color: #120902; background: linear-gradient(180deg, #fff2c2, #d9b15f 55%, #996d1e);
  box-shadow: 0 4px 0 #4d3307, 0 8px 20px rgba(0, 0, 0, .6);
}
.btn.crimson { background: linear-gradient(180deg, #ff5c77, #cf102e 55%, #750417); color: #fff; box-shadow: 0 4px 0 #42010c; }
.btn.violet { background: linear-gradient(180deg, #c084fc, #7c3aed 55%, #4c1d95); color: #fff; box-shadow: 0 4px 0 #2e1065; }
.btn:active { transform: translateY(3px); }

/* Hold & Spin 3×5 Lock-and-Link Board (15 slots!) */
.hs-hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 480px; margin: 0 auto 10px; }
.hs-stat {
  padding: 5px 8px; border-radius: 8px; background: #06050c; border: 1px solid rgba(218, 214, 228, .48);
  display: flex; flex-direction: column; align-items: center;
}
.hs-stat span { font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.hs-stat b { font-size: 20px; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.hs-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px;
  max-width: 480px; margin: 0 auto 14px; padding: 10px; border-radius: 12px;
  background: #06050c; border: 1.5px solid rgba(230, 28, 58, .7);
  box-shadow: inset 0 0 24px rgba(230, 28, 58, .22);
}
.hs-cell {
  aspect-ratio: 1; border-radius: 8px; position: relative; display: grid; place-items: center;
  background: rgba(16, 12, 26, .8); border: 1px dashed rgba(212, 208, 222, .25); overflow: hidden;
}
.hs-cell.locked {
  border: 2px solid #ff6b4a; background: radial-gradient(circle, rgba(230, 28, 58, .35), #090616);
  box-shadow: 0 0 14px rgba(255, 107, 74, .6); animation: cellLand 360ms ease-out;
}
.hs-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .86; }
.hs-cell b {
  position: relative; z-index: 2; padding: 2px 6px; border-radius: 999px;
  background: rgba(6, 5, 12, .9); border: 1px solid var(--silver); color: #fff6cf; font-size: 13px;
}

/* Summoning Wheel (Obsidian, Crimson, Violet & Tarnished Antique Gold) */
.wheel-wrap {
  position: relative; width: min(306px, 76vw); aspect-ratio: 1; margin: 10px auto 14px;
  border-radius: 50%; padding: 8px;
  background: conic-gradient(from 0deg, #7a5418, #d9b15f, #4c3310, #c89f4e, #3d270a, #e2c074, #7a5418);
  box-shadow: 0 0 0 3px #140f1d, 0 0 34px rgba(230, 28, 58, .48), 0 14px 32px rgba(0, 0, 0, .86);
}
.wheel-ptr {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 24px; height: 28px;
  background: linear-gradient(180deg, #ffe8a8 0%, #d9b15f 50%, #8a1026 100%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .9)) drop-shadow(0 0 10px rgba(230, 28, 58, .75));
}
.wheel-disc {
  width: 100%; height: 100%; border-radius: 50%; border: 3px solid #24192e;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .85);
  will-change: transform; display: block;
}
.wheel-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4;
  width: 66px; height: 66px; border-radius: 50%; overflow: hidden;
  border: 3px solid #d9b15f;
  box-shadow: 0 0 0 3px #120b1a, 0 0 20px rgba(230, 28, 58, .75);
}
.wheel-center img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 720px) {
  :root { --cell: calc((100vw - 74px) / 5); }
  .topbar { display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px; }
  .brand-mini, .credits-lbl { display: none; }
  .st-topper { width: calc(100% - 14px); margin-bottom: -6px; }
  .st-cabinet { width: 100%; padding: 8px 6px 0; }
  .cab-frame { grid-template-columns: 8px minmax(0, 1fr) 8px; gap: 5px; }
  .chrome-rail { padding: 6px 1.5px; }
  .upper-strip { grid-template-columns: 1fr 1fr; }
  .u-panel-mid { display: none; }
  .lower-screen { padding: 12px 5px 8px; }
  .reel-stage { grid-template-columns: 1fr; gap: 0; }
  .rune-rail { display: none; }
  .summoning-ribbon { font-size: 12px; padding: 2px 18px; top: -11px; }
  .screen-footer { padding: 0 2px; gap: 5px; grid-template-columns: 1fr 1.15fr 0.72fr; }
  .sf-pill { font-size: 11px; padding: 3px 5px; gap: 3px; }
  .sf-pill span { font-size: 9px; }
  .st-deck {
    width: auto; max-width: none; margin: 8px 2px 0; padding: 8px;
    grid-template-columns: 1fr auto; gap: 8px;
  }
  .deck-left { order: 2; grid-column: 1 / -1; justify-content: space-between; }
  .deck-pad { order: 1; min-height: 38px; padding: 5px 8px; }
  .spin-ring { order: 1; }
  .spin-btn { width: 68px; height: 40px; font-size: 14px; }
  .sq-btn { flex: 1; height: 34px; font-size: 11px; }
  .filigree-plate { display: none; }
  .st-base { justify-content: center; padding: 8px 8px 10px; }
  .pt-drawer { width: auto; max-width: none; margin: 0 6px; }
  .pt-scatters-grid { grid-template-columns: 1fr; }
  .exp-badge-top { font-size: 7.5px; padding: 1px 2px; }
  .exp-badge-bot b { font-size: 10.5px; }
  .exp-badge-bot span { font-size: 7px; }
}
