
:root {
  --bg: #0c0b08;
  --cabinet: #16140f;
  --slime: #c8ff00;
  --hot: #ff2d6a;
  --gold: #ffd36a;
  --chrome: #d9d3c5;
  --mold: #7cffc4;
  --ink: #f6f1e4;
  --shadow: #050504;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(200, 255, 0, 0.08), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(255, 45, 106, 0.12), transparent 35%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 3px);
}

.shell {
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 10px 12px 12px;
  position: relative;
}

.shell::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.025) 0 1px,
    transparent 1px 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.35;
}

.marquee {
  text-align: center;
  padding: 4px 0 8px;
}
.bulbs { display: flex; justify-content: center; gap: 6px; margin-bottom: 4px; }
.bulb {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3a3428; box-shadow: inset 0 0 0 1px #111;
}
.bulb.on {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: blink 1.1s steps(2, end) infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

.wordmark {
  font-family: Anton, Impact, sans-serif;
  font-size: 54px;
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 0.85;
  color: var(--gold);
  text-shadow:
    0 2px 0 #8a6b1e,
    0 0 18px rgba(255, 211, 106, 0.55),
    3px 0 0 var(--hot);
  transform: skewX(-8deg);
}
.tag {
  margin: 6px 0 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--slime);
}

.cabinet {
  position: relative;
  border: 3px solid #2a261c;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #2a2418, #12100c 30%, #0d0c09);
  box-shadow:
    inset 0 0 0 2px #6d624b,
    0 18px 40px rgba(0,0,0,0.55);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 72px;
}
.rails {
  pointer-events: none;
  position: absolute;
  inset: 10px 76px 10px 10px;
  border: 1px dashed rgba(200,255,0,0.25);
  border-radius: 14px;
  z-index: 3;
}

.viewport {
  height: calc(100dvh - 168px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.viewport::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  height: calc(100dvh - 168px);
  scroll-snap-align: start;
  background: #050505;
  overflow: hidden;
}
.reel {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.15) contrast(1.05);
}
.kenstill {
  animation: ken 8s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes ken {
  from { transform: scale(1.0); }
  to { transform: scale(1.12) translateY(-2%); }
}

.payline {
  position: absolute;
  left: 0; right: 0; top: 48%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--slime), transparent);
  z-index: 4;
  opacity: 0.55;
  pointer-events: none;
}

.placeholder {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(90deg, #1b1812 0 33%, #12100c 0 66%);
  color: var(--gold);
}
.slots {
  display: flex; gap: 8px; height: 120px;
}
.slots i {
  width: 52px;
  border-radius: 8px;
  background: linear-gradient(#2c271c, #0e0d0a);
  border: 1px solid #5c533f;
  animation: reel 0.45s linear infinite;
  position: relative;
  overflow: hidden;
}
.slots i::after {
  content: "7 $ 7 $";
  position: absolute;
  inset: 0;
  font-family: Anton, sans-serif;
  font-size: 42px;
  line-height: 40px;
  text-align: center;
  color: var(--hot);
  animation: reel 0.45s linear infinite;
}
@keyframes reel {
  from { transform: translateY(-40px); }
  to { transform: translateY(40px); }
}

.chrome-caption {
  position: absolute;
  left: 14px; right: 14px; bottom: 18px;
  z-index: 5;
  display: none;
}

.lever-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, #241f16, #15130e);
  border-left: 2px solid #3c3628;
  padding: 10px 0;
}
.act {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #8a7d62;
  background: radial-gradient(circle at 30% 30%, #fff6d6, #b0892c 45%, #5a4310);
  color: #1a1408;
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 6px 0 #3a2c10, 0 10px 16px rgba(0,0,0,0.45);
}
.act:active { transform: translateY(3px); box-shadow: 0 3px 0 #3a2c10; }
.act.lever { background: radial-gradient(circle at 30% 30%, #ff8aa8, var(--hot) 50%, #7a1028); color: #fff; }
.act.shout.hot { background: radial-gradient(circle at 30% 30%, #e7ff8a, var(--slime) 50%, #4b6b00); }
.act.toss { background: radial-gradient(circle at 30% 30%, #b8ffe4, var(--mold) 50%, #0e4a34); }

.ticket {
  margin-top: 8px;
  background: #f3e6c4;
  color: #2a1d08;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 10px,
    rgba(0,0,0,0.04) 10px 11px
  );
  box-shadow: 0 8px 0 #8a6f32;
}
.ticket strong { font-family: Fraunces, Georgia, serif; font-size: 14px; }
.ticket p { margin: 4px 0 0; font-size: 11px; line-height: 1.35; max-width: 240px; }
.pills { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.pill {
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 4px 7px;
  border-radius: 999px;
  background: #1a1408;
  color: var(--gold);
}
.pill.ready { background: var(--hot); color: #fff; }
.pill.fallback { background: #355; color: var(--mold); }
.pill.ghost { background: transparent; color: #6b5424; border: 1px dashed #6b5424; }

@media (min-width: 720px) {
  .shell { max-width: 420px; }
}
