:root {
  --velvet: #4a0610;
  --velvet-deep: #1c0105;
  --gold: #f5c542;
  --gold-light: #fff1b8;
  --gold-dark: #a87412;
  --chrome-1: #f4f4f4;
  --chrome-2: #9a9a9a;
  --chrome-3: #4d4d4d;
  --ink: #fff7e0;
  --muted: #e8cfa0;
  --p: 5%;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 3vw, 24px) 16px 24px;
  color: var(--ink);
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 60, 60, 0.18), transparent 60%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 6px, transparent 6px 22px),
    linear-gradient(180deg, var(--velvet) 0%, var(--velvet-deep) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

#coins {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ---------- Cabinet ---------- */

.cabinet {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  padding: clamp(28px, 4vw, 40px) clamp(18px, 5vw, 64px);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(40, 2, 8, 0.82), rgba(20, 0, 4, 0.88));
  border: 3px solid var(--gold-dark);
  box-shadow:
    0 0 0 6px #2a2a2a,
    0 0 0 9px var(--chrome-2),
    0 0 0 12px #1a1a1a,
    0 0 60px rgba(245, 197, 66, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.7),
    inset 0 0 50px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.bulbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bulb {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #8a6a1c 70%);
  opacity: 0.35;
  transition: opacity 0.12s, box-shadow 0.12s;
}

.bulb.on {
  opacity: 1;
  background: radial-gradient(circle at 35% 35%, #fff, var(--gold) 55%, #c98a10);
  box-shadow: 0 0 10px 3px rgba(255, 210, 90, 0.85);
}

/* ---------- Marquee ---------- */

.marquee h1 {
  margin: 0;
  font-family: "Limelight", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 7.5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #5a2a00) drop-shadow(0 0 18px rgba(245, 197, 66, 0.45));
}

.tagline {
  margin: 12px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.04em;
}

/* ---------- Income dropdown ---------- */

.income {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin: clamp(18px, 3vw, 26px) 0 clamp(14px, 2.4vw, 20px);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: -4px;
  border: 8px solid transparent;
  border-top-color: #3a1d00;
  pointer-events: none;
}

.income select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2a1400;
  padding: 10px 48px 10px 20px;
  border-radius: 12px;
  border: 2px solid #fff3c4;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  box-shadow: 0 4px 0 #5a3a00, 0 0 20px rgba(245, 197, 66, 0.4);
  cursor: pointer;
}

.income select:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.income option {
  color: #000;
  background: #fff;
}

/* ---------- Reels ---------- */

.reel-panel {
  margin: 0 auto;
}

.reel-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--gold);
}

.reel {
  display: inline-flex;
  align-items: stretch;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2b2b2b, #0d0d0d);
  border: 2px solid var(--chrome-2);
  box-shadow: inset 0 0 0 2px #000, 0 0 0 3px #222, 0 8px 22px rgba(0, 0, 0, 0.6);
  font-size: clamp(1.6rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  max-width: 100%;
}

.reel.big {
  font-size: clamp(1.3rem, 5.4vw, 3.2rem);
}

.cell {
  position: relative;
  height: 1.2em;
  width: 0.72em;
  overflow: hidden;
  border-radius: 4px;
  color: #1a1a1a;
  background: linear-gradient(180deg, #9a9a9a 0%, #fff 22%, #fff 78%, #9a9a9a 100%);
}

.cell.sep {
  width: 0.32em;
  color: var(--gold);
  background: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cell.sym {
  width: 0.62em;
  color: var(--gold);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transition: transform 0.55s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.strip span {
  display: block;
  height: 1.2em;
  line-height: 1.2em;
  text-align: center;
}

.elon .cell:not(.sep):not(.sym) {
  color: #4a0610;
}

.reel-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  letter-spacing: 0.04em;
}

/* ---------- Slider ---------- */

.slider-wrap {
  margin: clamp(14px, 2.6vw, 22px) 0;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 64px;
  background: transparent;
  cursor: grab;
  margin: 0;
}

input[type="range"]:active { cursor: grabbing; }

input[type="range"]:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 6px;
  border-radius: 999px;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 26px;
  border-radius: 999px;
  border: 2px solid #111;
  background:
    linear-gradient(90deg, var(--gold-dark), var(--gold) 60%, var(--gold-light)) 0 0 / var(--p) 100% no-repeat,
    linear-gradient(180deg, var(--chrome-3), var(--chrome-1) 45%, var(--chrome-2) 55%, var(--chrome-3));
  box-shadow: 0 0 0 3px var(--chrome-2), 0 0 24px rgba(245, 197, 66, 0.35);
}

input[type="range"]::-moz-range-track {
  height: 26px;
  border-radius: 999px;
  border: 2px solid #111;
  background: linear-gradient(180deg, var(--chrome-3), var(--chrome-1) 45%, var(--chrome-2) 55%, var(--chrome-3));
  box-shadow: 0 0 0 3px var(--chrome-2), 0 0 24px rgba(245, 197, 66, 0.35);
}

input[type="range"]::-moz-range-progress {
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold) 60%, var(--gold-light));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 58px;
  height: 58px;
  margin-top: -18px;
  border-radius: 50%;
  border: 3px solid #3a0000;
  background: radial-gradient(circle at 32% 30%, #fff 0 8%, #ff5a5a 20%, #c4001a 55%, #5a0008 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 60, 60, 0.6);
}

input[type="range"]::-moz-range-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #3a0000;
  background: radial-gradient(circle at 32% 30%, #fff 0 8%, #ff5a5a 20%, #c4001a 55%, #5a0008 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 60, 60, 0.6);
}

.slider-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 3;
  width: min(1100px, 100%);
  margin-top: 22px;
  text-align: center;
  font-family: Georgia, serif;
  font-size: 0.85rem;
  color: var(--muted);
  text-shadow: 0 1px 3px #000;
}

.site-footer p { margin: 6px 0; }

.site-footer a { color: var(--gold); }

.source { max-width: 46em; margin-inline: auto !important; }

@media (prefers-reduced-motion: reduce) {
  .strip { transition: none; }
}
