body { margin: 0; }
/* Layout: one-time street-corner intro overlay, then a 2003-style game portal — banner, tab bar, marquee, featured cabinet, cabinet grid. Deliberately single dark theme (neon after hours). */
:root {
  --night: #0a0d2b;
  --panel: #141a4a;
  --panel-hi: #232c72;
  --bevel-lo: #060820;
  --ink: #e9ecff;
  --ink-dim: #9aa3d9;
  --orange: #ff8a1f;
  --yellow: #ffe14a;
  --cyan: #4fd6ff;
  --pink: #ff4fa3;
  --font-pixel: "Press Start 2P", "Courier New", monospace;
  --font-crt: "VT323", "Courier New", monospace;
  --font-body: Verdana, Tahoma, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  background-image: radial-gradient(var(--panel) 1px, transparent 1px);
  background-size: 6px 6px;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px dashed var(--yellow); outline-offset: 3px; }

/* ---------- INTRO ---------- */
#intro {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bevel-lo);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  cursor: pointer;
  user-select: none;
}
#scene {
  width: min(100%, 560px);
  aspect-ratio: 4 / 3;
  max-width: 100%;
  image-rendering: pixelated;
  border: 4px solid var(--panel-hi);
  box-shadow: 0 0 0 4px var(--bevel-lo), 0 0 40px rgba(255, 79, 163, .25);
  background: #000;
}
.dialog {
  width: min(100%, 560px);
  background: var(--panel);
  border: 4px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--bevel-lo);
  padding: 14px 16px 12px;
  min-height: 120px;
  display: flex; flex-direction: column; gap: 10px;
}
.speaker {
  font-family: var(--font-pixel); font-size: 10px; color: var(--yellow);
  letter-spacing: .08em;
}
#line {
  font-family: var(--font-crt); font-size: 26px; line-height: 1.1;
  min-height: 2.3em; margin: 0;
}
.dialog-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tap-hint { font-family: var(--font-pixel); font-size: 8px; color: var(--ink-dim); animation: blink 1s steps(1) infinite; }
.intro-bar { width: min(100%, 560px); display: flex; justify-content: space-between; gap: 8px; }
.ghost-btn {
  background: none; border: 2px solid var(--ink-dim); color: var(--ink-dim);
  font-family: var(--font-pixel); font-size: 8px; padding: 8px 10px; cursor: pointer;
}
.ghost-btn:hover { color: var(--ink); border-color: var(--ink); }
#enter {
  font-family: var(--font-pixel); font-size: 12px;
  background: var(--orange); color: var(--bevel-lo);
  border: 0; padding: 12px 16px; cursor: pointer;
  box-shadow: inset -4px -4px 0 #b4560a, inset 4px 4px 0 #ffc38a;
}
#enter:active { box-shadow: inset 4px 4px 0 #b4560a, inset -4px -4px 0 #ffc38a; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- PORTAL ---------- */
.wrap { max-width: 980px; margin: 0 auto; padding-inline: 16px; padding-block: 16px 32px; display: grid; gap: 14px; }

.banner {
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 3px solid var(--cyan);
  box-shadow: inset 0 0 0 3px var(--bevel-lo), 4px 4px 0 var(--bevel-lo);
  padding: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.logo { font-family: var(--font-pixel); line-height: 1.25; margin: 0; }
.logo .a { display: block; font-size: clamp(18px, 5vw, 30px); color: var(--yellow); text-shadow: 3px 3px 0 var(--pink), 6px 6px 0 var(--bevel-lo); }
.logo .b { display: block; font-size: clamp(10px, 2.6vw, 14px); color: var(--cyan); margin-top: 8px; letter-spacing: .1em; }
.free-badge {
  font-family: var(--font-pixel); font-size: 10px; color: var(--bevel-lo);
  background: var(--yellow); padding: 10px 12px; transform: rotate(-6deg);
  box-shadow: 3px 3px 0 var(--pink);
}

.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button {
  font-family: var(--font-pixel); font-size: 9px;
  background: var(--panel); border: 2px solid var(--panel-hi); padding: 9px 10px; cursor: pointer;
  border-bottom-color: var(--cyan);
}
.tabs button[aria-pressed="true"] { background: var(--cyan); color: var(--bevel-lo); border-color: var(--cyan); }

.marquee {
  overflow: hidden; white-space: nowrap; background: #000; border: 2px solid var(--orange);
  font-family: var(--font-crt); font-size: 22px; color: var(--orange); padding: 4px 0;
}
.marquee span { display: inline-block; padding-left: 100%; animation: scroll 22s linear infinite; }
@keyframes scroll { to { transform: translateX(-100%); } }

.panel {
  background: var(--panel); border: 2px solid var(--panel-hi);
  box-shadow: 4px 4px 0 var(--bevel-lo);
}
.panel-head {
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: .06em;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  color: var(--bevel-lo); padding: 8px 10px; margin: 0;
}

.featured { display: grid; grid-template-columns: 1fr; }
.featured-body { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 14px; padding: 14px; align-items: center; }
.featured-body h2 { font-family: var(--font-pixel); font-size: 16px; color: var(--yellow); margin: 0 0 8px; text-wrap: balance; line-height: 1.4; }
.featured-body p { margin: 0 0 10px; max-width: 60ch; }
.featured .feat-cover { width: 100%; max-width: 100%; aspect-ratio: 3/2; object-fit: cover; border: 3px solid var(--bevel-lo); display: block; background: #000; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px; }
.card {
  background: var(--night); border: 2px solid var(--panel-hi); padding: 8px;
  display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer; min-width: 0;
}
a.card { text-decoration: none; }
a.play-btn { text-decoration: none; display: inline-block; }
.card { color: var(--ink); }
.card:hover { border-color: var(--yellow); }
.card canvas, .card .cover { width: 100%; max-width: 100%; aspect-ratio: 3/2; object-fit: cover; image-rendering: pixelated; display: block; }
.card .cover { image-rendering: auto; background: #000; }
.card .name { font-family: var(--font-pixel); font-size: 9px; line-height: 1.5; color: var(--ink); }
.card .genre { font-family: var(--font-crt); font-size: 18px; color: var(--ink-dim); line-height: 1; }
.chip {
  align-self: flex-start; font-family: var(--font-pixel); font-size: 7px; padding: 4px 6px; letter-spacing: .05em;
}
.chip.live { background: var(--yellow); color: var(--bevel-lo); }
.chip.soon { border: 1px solid var(--ink-dim); color: var(--ink-dim); }

.play-btn {
  font-family: var(--font-pixel); font-size: 10px; background: var(--yellow); color: var(--bevel-lo);
  border: 0; padding: 10px 14px; cursor: pointer; box-shadow: inset -3px -3px 0 #b39a12, inset 3px 3px 0 #fff3a8;
}

.side-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.side-row .panel > div { padding: 12px; }
.counter { display: flex; gap: 3px; margin-top: 6px; }
.counter b {
  font-family: var(--font-crt); font-size: 26px; background: #000; color: var(--cyan);
  width: 22px; text-align: center; border: 1px solid var(--panel-hi); font-variant-numeric: tabular-nums; font-weight: normal;
}
.construction {
  height: 14px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--bevel-lo) 10px 20px);
}
footer { font-family: var(--font-crt); font-size: 18px; color: var(--ink-dim); text-align: center; display: grid; gap: 6px; }
footer button { background: none; border: 0; color: var(--cyan); text-decoration: underline; cursor: pointer; font-family: var(--font-crt); font-size: 18px; }

/* modal */
#modal { position: fixed; inset: 0; z-index: 40; background: rgba(6, 8, 32, .85); display: grid; place-items: center; padding: 16px; }
.modal-box { width: min(100%, 420px); background: var(--panel); border: 4px solid var(--yellow); padding: 16px; display: grid; gap: 12px; }
.modal-box h3 { font-family: var(--font-pixel); font-size: 12px; color: var(--yellow); margin: 0; line-height: 1.5; }
.modal-box p { margin: 0; font-family: var(--font-crt); font-size: 22px; line-height: 1.15; }

/* tickets + prize counter */
.banner-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bank-badge {
  font-family: var(--font-pixel); font-size: 10px; color: var(--yellow); background: var(--bevel-lo);
  border: 2px solid var(--orange); padding: 8px 10px; display: flex; align-items: center; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.tkt {
  width: 18px; height: 11px; background: var(--orange); display: inline-block; flex: none;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 3px, #000 3.5px) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent 3px, #000 3.5px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 50%, transparent 3px, #000 3.5px) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent 3px, #000 3.5px) right / 51% 100% no-repeat;
}
.panel-head.alley { background: linear-gradient(90deg, var(--yellow), var(--orange)); }
.alley-note { font-family: var(--font-crt); font-size: 20px; color: var(--ink-dim); padding: 10px 12px 0; margin: 0; line-height: 1.1; }
.panel-head.counter-head { background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.counter-body { padding: 12px; display: grid; gap: 14px; }
.counter-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tony-says { font-family: var(--font-crt); font-size: 22px; line-height: 1.1; margin: 0; min-width: 0; flex: 1 1 220px; }
.tony-says b { font-family: var(--font-pixel); font-size: 9px; color: var(--yellow); font-weight: normal; margin-right: 6px; }
.prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.prize {
  background: var(--night); border: 2px solid var(--panel-hi); padding: 10px 8px; min-width: 0;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; justify-items: center; text-align: center;
}
.prize canvas { width: 48px; height: 48px; image-rendering: pixelated; }
.prize .pname { font-family: var(--font-pixel); font-size: 8px; line-height: 1.5; }
.prize .pnote { font-family: var(--font-crt); font-size: 17px; color: var(--ink-dim); line-height: 1; }
.prize button {
  font-family: var(--font-pixel); font-size: 8px; border: 0; padding: 8px 8px; cursor: pointer; width: 100%;
  background: var(--yellow); color: var(--bevel-lo); display: flex; justify-content: center; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.prize button .tkt { background: var(--bevel-lo); width: 14px; height: 9px; }
.prize button:disabled { background: var(--panel-hi); color: var(--ink-dim); cursor: not-allowed; }
.prize button:disabled .tkt { background: var(--ink-dim); }
.shelf-title { font-family: var(--font-pixel); font-size: 9px; color: var(--cyan); margin: 0; }
.shelf {
  min-height: 72px; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 10px;
  background: var(--bevel-lo); border-bottom: 6px solid #5a3a20;
}
.shelf .item { position: relative; }
.shelf canvas { width: 40px; height: 40px; image-rendering: pixelated; display: block; }
.shelf .qty { position: absolute; right: -4px; top: -4px; font-family: var(--font-pixel); font-size: 7px; background: var(--pink); color: var(--bevel-lo); padding: 2px 3px; }
.shelf-empty { font-family: var(--font-crt); font-size: 20px; color: var(--ink-dim); margin: 0; align-self: center; }

.to-top-row { display: flex; justify-content: center; padding-top: 4px; }
.to-top {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--font-pixel); font-size: 10px; line-height: 1; letter-spacing: .04em;
  color: var(--yellow); background: var(--bevel-lo); padding: 11px 16px 11px 12px;
  border: 2px solid var(--cyan); border-radius: 4px;
  text-shadow: 0 0 6px rgba(255, 225, 74, .7);
  box-shadow: 0 0 5px var(--cyan), 0 0 14px rgba(79, 214, 255, .4), inset 0 0 8px rgba(79, 214, 255, .3);
  animation: tt-hum 2.6s ease-in-out infinite;
}
.to-top .tt-arrow { color: var(--pink); font-size: 9px; text-shadow: 0 0 6px var(--pink); }
.to-top:hover, .to-top:focus-visible {
  animation: none; outline: none; color: #fff; border-color: var(--pink);
  box-shadow: 0 0 7px var(--pink), 0 0 20px rgba(255, 79, 163, .5), inset 0 0 10px rgba(255, 79, 163, .3);
}
.to-top:active { transform: translateY(1px); }
@keyframes tt-hum {
  0%, 100% { box-shadow: 0 0 5px var(--cyan), 0 0 14px rgba(79, 214, 255, .4), inset 0 0 8px rgba(79, 214, 255, .3); }
  50% { box-shadow: 0 0 8px var(--cyan), 0 0 22px rgba(79, 214, 255, .6), inset 0 0 12px rgba(79, 214, 255, .45); }
}

/* jukebox panel */
.panel-head.jb-head { background: linear-gradient(90deg, var(--pink), var(--orange)); }
.jb { padding: 14px; display: grid; gap: 12px; }
.jb-deck { display: flex; gap: 14px; align-items: center; }
.vinyl {
  flex: none; border-radius: 50%; position: relative;
  background: repeating-radial-gradient(circle, #111 0 2px, #1d1d24 2px 3px);
  box-shadow: 0 0 0 3px #000; animation: spin 1.8s linear infinite; animation-play-state: paused;
}
.vinyl::before { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--pink); box-shadow: inset 0 0 0 3px var(--yellow); }
.vinyl::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--bevel-lo); }
.vinyl.on { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.jb-deck .vinyl { width: 96px; height: 96px; }
.jb-now { min-width: 0; display: grid; gap: 5px; }
.jb-lbl { font-family: var(--font-pixel); font-size: 7px; color: var(--ink-dim); letter-spacing: .08em; }
.jb-title { font-family: var(--font-pixel); font-size: 10px; line-height: 1.5; }
.jb-band { font-family: var(--font-crt); font-size: 20px; color: var(--cyan); line-height: 1; }
.jb-part { font-family: var(--font-pixel); font-size: 8px; color: var(--yellow); min-height: 10px; }
#jb-viz { width: 100%; height: 56px; display: block; background: var(--bevel-lo); border: 2px solid var(--panel-hi); image-rendering: pixelated; }
.jb-prog { display: flex; align-items: center; gap: 8px; font-family: var(--font-crt); font-size: 18px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.jb-track { flex: 1; height: 8px; background: var(--bevel-lo); border: 1px solid var(--panel-hi); position: relative; }
.jb-track b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--pink), var(--yellow)); }
.jb-ctrls { display: flex; gap: 8px; flex-wrap: wrap; }
.jb-btn {
  font-family: var(--font-pixel); font-size: 10px; padding: 10px 12px; cursor: pointer;
  background: var(--panel); color: var(--ink); border: 2px solid var(--panel-hi);
}
.jb-btn.main { background: var(--yellow); color: var(--bevel-lo); border-color: var(--yellow); min-width: 112px; }
.jb-list { display: grid; gap: 4px; background: var(--bevel-lo); border: 2px solid var(--panel-hi); padding: 6px; }
.jb-song { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; text-align: left; background: none; border: 0; color: var(--ink); cursor: pointer; }
.jb-song:hover { background: var(--panel); }
.jb-song.on { background: var(--panel-hi); }
.jb-song .k { font-family: var(--font-pixel); font-size: 9px; color: var(--bevel-lo); background: var(--yellow); padding: 4px 0; text-align: center; }
.jb-song .t { font-family: var(--font-pixel); font-size: 8px; line-height: 1.5; display: block; }
.jb-song .b { font-family: var(--font-crt); font-size: 17px; color: var(--ink-dim); line-height: 1; display: block; }
.jb-song.soon { cursor: default; opacity: .5; }
.jb-song.soon:hover { background: none; }
.jb-song.soon .k { background: var(--panel-hi); color: var(--ink-dim); }

.jb-vol { display: flex; align-items: center; gap: 10px; }
.jb-vol label { font-family: var(--font-pixel); font-size: 8px; color: var(--ink-dim); flex: none; }
.jb-vol output { font-family: var(--font-pixel); font-size: 8px; color: var(--yellow); width: 4ch; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.vol-range {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 26px; background: transparent; cursor: pointer; margin: 0;
  --fill: 70%;
}
.vol-range::-webkit-slider-runnable-track {
  height: 8px; border: 1px solid var(--panel-hi);
  background: linear-gradient(90deg, var(--cyan), var(--yellow) calc(var(--fill) * .7), var(--pink) var(--fill), var(--bevel-lo) var(--fill));
}
.vol-range::-moz-range-track { height: 8px; border: 1px solid var(--panel-hi); background: var(--bevel-lo); }
.vol-range::-moz-range-progress { height: 8px; background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--pink)); }
.vol-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 22px; margin-top: -8px; background: var(--ink); border: 2px solid var(--bevel-lo);
  box-shadow: 0 0 0 2px var(--pink), 0 0 8px var(--pink);
}
.vol-range::-moz-range-thumb { width: 16px; height: 20px; border-radius: 0; background: var(--ink); border: 2px solid var(--bevel-lo); box-shadow: 0 0 0 2px var(--pink); }
.vol-range:focus-visible { outline: 2px dashed var(--yellow); outline-offset: 2px; }

/* pinned jukebox bar: shows whenever a song is loaded, over the arcade and over games */
#jbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 35;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bevel-lo); border-bottom: 2px solid var(--pink); box-shadow: 0 0 14px rgba(255, 79, 163, .45);
}
.jbar-in { height: 50px; padding-inline: 12px; display: flex; align-items: center; gap: 10px; }
.jbar-in .vinyl { width: 30px; height: 30px; }
.jbar-in .vinyl::before { inset: 28%; box-shadow: none; }
.jbar-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.jbar-t { font-family: var(--font-pixel); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jbar-b { font-family: var(--font-crt); font-size: 16px; color: var(--cyan); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jbar-btns { display: flex; gap: 4px; flex: none; }
@media (max-width: 380px) { .jbar-in .vinyl { display: none; } .jbar-btns button { width: 32px; } }
.jbar-btns button {
  width: 36px; height: 34px; padding: 0; cursor: pointer; font-family: var(--font-pixel); font-size: 9px;
  background: var(--panel); color: var(--ink); border: 2px solid var(--panel-hi);
}
.jbar-btns #jbar-play { background: var(--yellow); color: var(--bevel-lo); border-color: var(--yellow); }
.jbar-btns #jbar-vol { width: 44px; font-size: 8px; }
.jbar-btns #jbar-vol[aria-expanded="true"] { border-color: var(--pink); color: var(--pink); }
.jbar-pop {
  position: absolute; right: 12px; top: calc(100% + 6px); width: min(260px, calc(100vw - 24px));
  background: var(--bevel-lo); border: 2px solid var(--pink); box-shadow: 0 0 14px rgba(255, 79, 163, .45); padding: 10px 12px;
}
.jbar-wrap { position: relative; max-width: 980px; margin: 0 auto; }
html.jb-on .wrap { padding-top: 66px; }

/* games open in a frame over the arcade so the jukebox keeps playing */
#game { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 30; background: #000; }
html.jb-on #game { top: calc(52px + env(safe-area-inset-top, 0px)); }
#game iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-body { grid-template-columns: 1fr; }
  .side-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee span { animation: none; padding-left: 0; }
  .tap-hint { animation: none; }
  .to-top { animation: none; }
  .vinyl.on { animation-duration: 8s; }
}

/* ---------- THE SECRET LEVEL: hero banner ---------- */
.banner.hero {
  position: relative; display: block; padding: 0; overflow: hidden;
  border: 3px solid var(--cyan); background: #000;
  box-shadow: inset 0 0 0 3px var(--bevel-lo), 4px 4px 0 var(--bevel-lo), 0 0 28px rgba(79, 214, 255, .25), 0 0 60px rgba(255, 79, 163, .18);
}
.hero-title { margin: 0; line-height: 0; }
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 0%; }
.banner.hero .banner-right {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  padding: 8px 10px; background: rgba(6, 8, 32, .72); border: 2px solid rgba(79, 214, 255, .5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
/* computers: crop to a wide strip that keeps the title and the cabinets */
@media (min-width: 700px) {
  .hero-img { aspect-ratio: 2 / 1; }
}
/* phones: badges sit in a strip under the art instead of covering it */
@media (max-width: 520px) {
  .banner.hero .banner-right {
    position: static; justify-content: space-between; border: 0; border-top: 3px solid var(--cyan);
    background: linear-gradient(180deg, var(--panel-hi), var(--panel)); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .banner.hero .free-badge { transform: rotate(-3deg); }
}

/* door-opening reveal after the intro */
#reveal { position: fixed; inset: 0; z-index: 60; background: #000; overflow: hidden; cursor: pointer; }
#reveal img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
#reveal::before { /* the door: a bright slit of light that widens into the room */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #000 0 49.5%, #ffe9a8 50%, #000 50.5% 100%);
}
#reveal.go::before { animation: sl-door 1.1s cubic-bezier(.6, 0, .3, 1) forwards; }
#reveal.go img { animation: sl-zoom 2.3s ease-out forwards; }
#reveal.go { animation: sl-out 2.3s linear forwards; }
@keyframes sl-door {
  0% { clip-path: inset(0 0 0 0); opacity: 1; }
  25% { clip-path: inset(0 0 0 0); opacity: 1; }
  100% { clip-path: inset(0 50% 0 50%); opacity: 0; }
}
@keyframes sl-zoom { from { transform: scale(1.18); filter: brightness(1.8) saturate(.6); } 45% { filter: brightness(1.1) saturate(1); } to { transform: scale(1); filter: none; } }
@keyframes sl-out { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
