:root {
  --ink: #070605;
  --plate: #14110e;
  --cream: #f4efe9;
  --muted: #d9d2c8;
  --orange: #fc5100;
  --pad: clamp(1rem, 4vw, 2.25rem);
}

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

body {
  min-height: 100vh;
  font-family: Mulish, system-ui, sans-serif;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(252, 81, 0, 0.14), transparent 42%),
    var(--ink);
  color: var(--cream);
  line-height: 1.5;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--cream);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}

.skip:focus { transform: none; }

.top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.25rem var(--pad) 0;
}

.back, .lang {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
}

.back:hover, .lang:hover,
.back:focus-visible, .lang:focus-visible {
  color: var(--orange);
  outline: none;
}

.room {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.5rem var(--pad) 3rem;
}

.sign {
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.15rem 1.2rem;
  background: #0b0c10;
  border: 3px solid #2c261f;
  border-radius: 14px;
  box-shadow:
    inset 0 0 28px rgba(252, 81, 0, 0.22),
    0 16px 0 #050403;
}

.hud {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #ffd56a;
}

.insert { color: var(--cream); }

h1 {
  font-family: "Press Start 2P", monospace;
  font-weight: 400;
  font-size: clamp(1.05rem, 4.6vw, 2rem);
  line-height: 1.35;
  text-transform: uppercase;
  color: #fff8ee;
  text-shadow: 0 0 10px rgba(252, 81, 0, 0.9), 0 0 26px rgba(252, 81, 0, 0.45);
}

.lead {
  margin-top: 0.9rem;
  max-width: 38rem;
  color: var(--cream);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.floor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: start;
}

.cabinet {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.9rem 0.95rem;
  background-color: #16130f;
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--glow) 55%, #120e0b) 0 8px, transparent 8px),
    linear-gradient(270deg, color-mix(in srgb, var(--glow) 55%, #120e0b) 0 8px, transparent 8px),
    linear-gradient(180deg, #2c261f, #120e0b 46%);
  border-radius: 16px 16px 12px 12px;
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 228, 190, 0.14);
}

.marquee {
  background: #07080c;
  border: 3px solid #3a3228;
  border-radius: 8px;
  padding: 0.85rem 0.7rem 0.8rem;
  text-align: center;
  box-shadow: inset 0 0 22px color-mix(in srgb, var(--glow) 42%, transparent);
}

.marquee h2 {
  font-family: "Press Start 2P", monospace;
  font-weight: 400;
  font-size: clamp(0.72rem, 1.7vw, 0.92rem);
  line-height: 1.45;
  text-transform: uppercase;
  color: #fff8ee;
  text-shadow: 0 0 8px var(--glow), 0 0 18px var(--glow);
}

.bezel {
  margin-top: 0.7rem;
  padding: 0.7rem;
  background: #0c0c0c;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px #3d342b, 0 7px 0 #090807;
}

.screen {
  position: relative;
  aspect-ratio: 7 / 9;
  background: #000;
  overflow: hidden;
}

.screen--wide { aspect-ratio: 8 / 7; }
.screen--kong { aspect-ratio: 7 / 8; }

.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 28%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.deck {
  margin-top: 0.75rem;
  padding: 0.85rem 0.75rem 0.8rem;
  background: linear-gradient(180deg, #3a3228 0%, #1a1612 22%, var(--plate) 22%);
  border-radius: 0 0 10px 10px;
}

.deck-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stick, .buttons { display: flex; align-items: center; }

.stick svg { width: 4.1rem; height: 4.6rem; display: block; }

.buttons { gap: 0.45rem; }

.pip {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 3px 0 #0a0908;
}

.pip--red { background: radial-gradient(circle at 35% 30%, #ff8d8d, #d01212 62%); }
.pip--blue { background: radial-gradient(circle at 35% 30%, #9ec4ff, #1d4fd0 62%); }

.coin {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe7a3 0%, #f0b429 34%, #c47b12 68%, #7a4a0c 100%);
  color: #1a1004;
  font-family: "Press Start 2P", monospace;
  font-size: 0.62rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 3px 0 #5c380c, 0 8px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.coin:hover, .coin:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  filter: brightness(1.06);
}

.blurb {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(244, 239, 233, 0.16);
  color: var(--cream);
  font-size: 0.98rem;
  line-height: 1.45;
}

.note {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.note + .note { margin-top: 0.55rem; }

footer {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--pad) 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a { color: var(--orange); }

@media (max-width: 760px) {
  .floor { grid-template-columns: 1fr; }
  .hud { font-size: 0.55rem; }
  .coin { width: 4.5rem; height: 4.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .insert { animation: pulse 1.7s steps(2, end) infinite; }
}

@keyframes pulse {
  50% { opacity: 0.35; }
}
