html, body { margin: 0; height: 100%; overflow: hidden; background: #010203; }
#room { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
body.hot #room { cursor: pointer; }
.grain {
  position: fixed; inset: -50%; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-4%)} 100%{transform:translate(0,0)} }
/* click to enter: black, dead centre, glyph-decoded label over a heartbeat line */
#gate { position: fixed; inset: 0; background: #000; display: grid; place-items: center; cursor: default; outline: none;
  transition: opacity 1.4s cubic-bezier(.7,0,.84,0) .25s; }
#gate.ready { cursor: pointer; }
#gate.off { opacity: 0; pointer-events: none; }
.gate-in { display: grid; justify-items: center; gap: 16px; transition: transform .3s cubic-bezier(.7,0,.84,0), opacity .3s; }
#gate.go .gate-in { transform: scaleY(.04); opacity: 0; }          /* the label collapses into the line, then the room fades in */
.gate-t { font: 500 15px/1 "Geist Mono", monospace; letter-spacing: .42em; padding-left: .42em; color: rgba(191,242,255,.55);
  text-shadow: 0 0 18px rgba(159,245,223,.35); transition: color .15s, text-shadow .15s; }
#gate.ready:hover .gate-t, #gate.ready:focus-visible .gate-t { color: #bff2ff; text-shadow: 0 0 22px rgba(159,245,223,.7); }
.gate-line { width: 180px; height: 1px; background: rgba(159,245,223,.12); overflow: hidden; }
.gate-line i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, #9ff5df, transparent); animation: gate-scan 1.6s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes gate-scan { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.gate-s { font: 400 10px/1 "Geist Mono", monospace; letter-spacing: .2em; color: rgba(191,242,255,.25); }
@media (prefers-reduced-motion: reduce) { .gate-line i { animation: none; width: 100%; opacity: .5; } }
.credit {
  position: fixed; left: 12px; bottom: 10px; font: 400 10px/1 "Geist Mono", monospace; letter-spacing: .04em;
  color: rgba(200, 220, 230, .28); text-decoration: none;
}
.credit:hover { color: rgba(200, 220, 230, .7); }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }
