/* =====================================================================
   HEIST — the secret vault experience
   ===================================================================== */

:root {
  --black: #050506;
  --char: #0d0e10;
  --char-2: #15161a;
  --char-3: #1d1f23;
  --line: #2a2c31;
  --steel-hi: #f1f3f5;
  --steel: #b9bec4;
  --steel-mid: #7c8288;
  --steel-lo: #3c4045;
  --white: #f4f4f1;
  --dim: #8a8d92;
  --red: #c1121f;
  --red-hot: #ff2b36;
  --red-deep: #4d080d;
  --blue: #1d5cff;
  --green: #5cffa4;
  --green-dim: #1f7a4a;

  --f-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --f-ui: "Oswald", "Arial Narrow", Arial, sans-serif;
  --f-mono: "Share Tech Mono", ui-monospace, "Consolas", monospace;

  --ease-heavy: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-mech: cubic-bezier(.55, .05, .3, 1.25);

  --heat: .14;
  --siren: 1.4s;
  --shake: 3px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
html[data-wanted="3"] { --heat: .38; --siren: 1s;  --shake: 5px; }
html[data-wanted="4"] { --heat: .62; --siren: .7s; --shake: 9px; }
html[data-wanted="5"] { --heat: .9;  --siren: .5s; --shake: 14px; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 80% at 50% 0%, #121316 0%, #08090a 45%, var(--black) 100%) fixed, var(--black);
  color: var(--white);
  font-family: var(--f-ui);
  font-weight: 400;
  letter-spacing: .04em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.lock-scroll { overflow: hidden; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }

/* =====================================================================
   atmosphere: smoke canvas, beams, grain, vignette
   ===================================================================== */
.fx {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.atmos { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.atmos__glow {
  position: absolute; left: 50%; top: 38%;
  width: 140vmax; height: 90vmax; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(193, 18, 31, .26), rgba(193, 18, 31, .08) 45%, transparent 75%);
  animation: glowBreath 7s ease-in-out infinite;
}
@keyframes glowBreath { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

.atmos__beam {
  position: absolute; top: -12vh; width: 46vw; height: 140vh;
  background: linear-gradient(180deg, rgba(255, 40, 50, .42), rgba(255, 30, 40, .08) 55%, transparent 80%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  mix-blend-mode: screen;
  opacity: .22;
  filter: blur(6px);
}
.atmos__beam--l { left: -6vw; animation: beamL 13s ease-in-out infinite; }
.atmos__beam--r { right: -6vw; animation: beamR 15s ease-in-out infinite; }
@keyframes beamL { 0%, 100% { transform: rotate(-24deg); } 50% { transform: rotate(-6deg); } }
@keyframes beamR { 0%, 100% { transform: rotate(22deg); } 50% { transform: rotate(5deg); } }

.atmos__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.atmos__grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}
.atmos__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(130% 100% at 50% 45%, transparent 45%, rgba(0, 0, 0, .55) 75%, rgba(0, 0, 0, .92) 100%);
}

/* police lights — intensity follows the wanted level */
.police { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.police__red, .police__blue {
  position: absolute; top: -10%; bottom: -10%; width: 70vw;
  mix-blend-mode: screen;
  opacity: 0;
}
.police__red {
  left: -18vw;
  background: radial-gradient(ellipse 55% 60% at 22% 50%, rgba(255, 18, 40, .95), rgba(255, 18, 40, .25) 45%, transparent 72%);
  animation: copRed var(--siren) steps(1, end) infinite;
}
.police__blue {
  right: -18vw;
  background: radial-gradient(ellipse 55% 60% at 78% 50%, rgba(30, 90, 255, .95), rgba(30, 90, 255, .25) 45%, transparent 72%);
  animation: copBlue var(--siren) steps(1, end) infinite;
}
@keyframes copRed { 0% { opacity: var(--heat); } 50% { opacity: calc(var(--heat) * .12); } }
@keyframes copBlue { 0% { opacity: calc(var(--heat) * .12); } 50% { opacity: var(--heat); } }
.police__bar {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--red-hot) 0 50%, var(--blue) 50% 100%);
  background-size: 200% 100%;
  opacity: calc(var(--heat) * 1.1);
  animation: copBar var(--siren) steps(2, end) infinite;
  box-shadow: 0 0 18px 2px rgba(255, 40, 60, .5);
}
@keyframes copBar { to { background-position: 200% 0; } }

/* screen flashes */
.flash { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0; }
.flash.is-red { background: radial-gradient(circle at 50% 45%, rgba(255, 30, 40, .55), rgba(120, 0, 10, .75)); animation: flash .9s ease-out; }
.flash.is-green { background: radial-gradient(circle at 50% 45%, rgba(220, 255, 235, .7), rgba(60, 255, 150, .25) 55%, transparent 80%); animation: flash 1.1s ease-out; }
.flash.is-white { background: #fff; animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }
/* the red flash grows with the wanted level (max ~1.3 flashes per second) */
html[data-wanted="4"] .flash.is-red { animation: flash .75s ease-out 2; }
html[data-wanted="5"] .flash.is-red { animation: flash .75s ease-out 3; }

/* screen shake */
.shake { animation: shake .55s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake {
  10%, 90% { transform: translate3d(calc(var(--shake) * -.3), 0, 0); }
  20%, 80% { transform: translate3d(calc(var(--shake) * .6), calc(var(--shake) * -.2), 0); }
  30%, 50%, 70% { transform: translate3d(calc(var(--shake) * -1), calc(var(--shake) * .3), 0); }
  40%, 60% { transform: translate3d(var(--shake), calc(var(--shake) * -.3), 0); }
}

/* =====================================================================
   top bar + wanted stars
   ===================================================================== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
  background: linear-gradient(180deg, rgba(5, 5, 6, .97), rgba(5, 5, 6, .88) 72%, rgba(5, 5, 6, 0));
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar__id {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; color: var(--dim); letter-spacing: .14em;
}
.topbar__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--red-hot); box-shadow: 0 0 10px var(--red-hot);
  animation: blink 1.4s steps(1) infinite;
}
.topbar__clock { color: #c9cbce; }
@keyframes blink { 50% { opacity: .15; } }

.wanted { display: flex; gap: clamp(4px, .8vw, 9px); justify-content: center; }
.star {
  width: clamp(26px, 3.2vw, 40px); height: clamp(26px, 3.2vw, 40px);
  overflow: visible;
  fill: #111214;
  stroke: #3b3e43; stroke-width: 5; stroke-linejoin: round;
  opacity: .8;
  transform-box: fill-box; transform-origin: 50% 55%;
  transition: fill .3s, stroke .3s, opacity .3s;
}
.star.is-on {
  fill: url(#g-star);
  stroke: #050505; stroke-width: 6;
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .75)) drop-shadow(0 0 14px rgba(255, 255, 255, .25));
  animation: starBlink 1.1s steps(1, end) infinite;
}
html[data-wanted="4"] .wanted .star.is-on { animation-duration: .8s; }
html[data-wanted="5"] .wanted .star.is-on { animation-duration: .55s; }
@keyframes starBlink { 0% { opacity: 1; } 60% { opacity: .28; } }
.star.is-on.pop { animation: starPop .9s var(--ease-out) both, starBlink 1.1s steps(1, end) .9s infinite; }
@keyframes starPop {
  0% { transform: scale(2.8) rotate(-30deg); opacity: 0; }
  55% { transform: scale(.88) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.sound {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  background: rgba(15, 16, 18, .7);
  border: 1px solid var(--line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: #cfd2d6;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.sound:hover { background: rgba(193, 18, 31, .2); border-color: var(--red); color: #fff; }
.sound__icon { width: 18px; height: 18px; flex: none; }
.sound__mute { display: none; }
.sound[aria-pressed="false"] .sound__wave { display: none; }
.sound[aria-pressed="false"] .sound__mute { display: inline; }
.sound[aria-pressed="false"] { color: var(--dim); }

/* =====================================================================
   hero
   ===================================================================== */
.shell { position: relative; z-index: 5; }
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(84px + env(safe-area-inset-top)) var(--gutter) 90px;
  text-align: center;
}
.hero__kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: .32em; color: #9a9da2;
  margin-bottom: clamp(18px, 3vh, 34px);
  opacity: 0; animation: rise .9s var(--ease-out) .25s forwards;
}
.hero__kicker-sep { color: var(--red-hot); }
.hero__kicker-line { width: clamp(24px, 6vw, 80px); height: 1px; background: linear-gradient(90deg, transparent, var(--red)); }
.hero__kicker-line:last-child { transform: scaleX(-1); }

/* ---------- metallic logo (mask of the original artwork) ---------- */
.logo {
  position: relative;
  width: min(900px, 90vw);
  aspect-ratio: 1091 / 258;
  margin: 0;
  filter: drop-shadow(0 0 28px rgba(193, 18, 31, .38)) drop-shadow(0 18px 24px rgba(0, 0, 0, .9));
  opacity: 0;
  animation: logoIn 1.6s var(--ease-out) .1s forwards;
}
@keyframes logoIn {
  0% { opacity: 0; transform: scale(1.12); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
.logo__layer {
  position: absolute; inset: 0;
  -webkit-mask: url("../assets/heist-logo.png") center / contain no-repeat;
          mask: url("../assets/heist-logo.png") center / contain no-repeat;
}
.logo__layer--shadow { background: #000; transform: translate(3px, 5px); opacity: .9; }
.logo__layer--metal {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px),
    linear-gradient(180deg,
      #ffffff 0%, #e4e7ea 22%, #b5bac0 40%, #5e646b 49%, #3e4349 51%,
      #9aa0a7 60%, #dfe2e6 78%, #ffffff 92%, #c3c7cc 100%);
}
.logo__layer--sheen {
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 48%, rgba(255, 220, 220, .6) 50%, transparent 60%);
  background-size: 260% 100%;
  background-position: 160% 0;
  mix-blend-mode: screen;
  animation: sheen 6.5s var(--ease-heavy) 1.4s infinite;
}
@keyframes sheen { 0% { background-position: 160% 0; } 30%, 100% { background-position: -60% 0; } }
.logo__layer--r, .logo__layer--c { opacity: 0; mix-blend-mode: screen; }
.logo__layer--r { background: #ff1a2b; animation: glitchR 7.3s steps(1) 2.5s infinite; }
.logo__layer--c { background: #2ad4ff; animation: glitchC 7.3s steps(1) 2.5s infinite; }
@keyframes glitchR {
  0%, 88%, 100% { opacity: 0; transform: none; clip-path: none; }
  89% { opacity: .85; transform: translate(-7px, 1px); clip-path: inset(12% 0 58% 0); }
  90% { opacity: .85; transform: translate(5px, -2px); clip-path: inset(62% 0 8% 0); }
  91% { opacity: .7; transform: translate(-3px, 0); clip-path: inset(30% 0 40% 0); }
  92% { opacity: 0; }
  96% { opacity: .6; transform: translate(9px, 0); clip-path: inset(78% 0 2% 0); }
  97% { opacity: 0; }
}
@keyframes glitchC {
  0%, 88%, 100% { opacity: 0; transform: none; clip-path: none; }
  89% { opacity: .7; transform: translate(6px, -1px); clip-path: inset(40% 0 35% 0); }
  90% { opacity: .7; transform: translate(-6px, 2px); clip-path: inset(5% 0 70% 0); }
  91% { opacity: 0; }
  96% { opacity: .5; transform: translate(-8px, 0); clip-path: inset(20% 0 66% 0); }
  97% { opacity: 0; }
}
.logo.is-glitching .logo__layer--r { animation: glitchR .6s steps(1) 1 both; animation-delay: -.53s; }
.logo.is-glitching .logo__layer--c { animation: glitchC .6s steps(1) 1 both; animation-delay: -.53s; }

.hero__sub {
  margin-top: clamp(14px, 2.4vh, 26px);
  font-family: var(--f-display);
  font-size: clamp(20px, 2.6vw, 34px);
  letter-spacing: .42em;
  padding-left: .42em;
  color: #d9dbde;
  text-shadow: 0 0 18px rgba(193, 18, 31, .55);
  opacity: 0; animation: rise 1s var(--ease-out) .9s forwards;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- code terminal ---------- */
.terminal {
  position: relative;
  width: min(620px, 100%);
  margin-top: clamp(26px, 5vh, 52px);
  padding: 18px 22px 16px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, rgba(22, 23, 26, .92), rgba(9, 10, 11, .94));
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  opacity: 0; animation: rise 1s var(--ease-out) 1.15s forwards;
  transition: filter .4s;
}
.terminal__corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--red); pointer-events: none; transition: transform .35s var(--ease-out), border-color .3s; }
.terminal__corner--tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.terminal__corner--tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.terminal__corner--bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.terminal__corner--br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.terminal:focus-within .terminal__corner--tl { transform: translate(3px, 3px); border-color: var(--red-hot); }
.terminal:focus-within .terminal__corner--tr { transform: translate(-3px, 3px); border-color: var(--red-hot); }
.terminal:focus-within .terminal__corner--bl { transform: translate(3px, -3px); border-color: var(--red-hot); }
.terminal:focus-within .terminal__corner--br { transform: translate(-3px, -3px); border-color: var(--red-hot); }
.terminal.is-pulse .terminal__corner { animation: cornerPulse .9s var(--ease-out) 2; }
@keyframes cornerPulse { 50% { border-color: #fff; filter: drop-shadow(0 0 8px var(--red-hot)); } }

.terminal__head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--dim);
  margin-bottom: 12px;
}
.terminal__tag { color: var(--red-hot); }
.terminal__target { font-family: var(--f-display); font-weight: 400; font-size: 20px; letter-spacing: .14em; color: var(--white); }
.terminal__attempts { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.pips { display: inline-flex; gap: 5px; }
.pips i {
  width: 16px; height: 6px;
  background: var(--steel); box-shadow: 0 0 8px rgba(255, 255, 255, .45);
  transform: skewX(-20deg);
  transition: background .3s, box-shadow .3s;
}
.pips i.is-spent { background: var(--red-deep); box-shadow: inset 0 0 0 1px var(--red); }

.terminal__field {
  position: relative;
  height: 66px;
  background: linear-gradient(180deg, #030303, #0a0b0c);
  border: 1px solid #222428;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.terminal__field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: .5; transform: scaleX(.4);
  transition: transform .5s var(--ease-out), opacity .3s;
  pointer-events: none;
}
.terminal__field:focus-within::after { transform: scaleX(1); opacity: 1; }
.terminal__field:focus-within { border-color: #3a1014; }

#code, .terminal__mask {
  font-family: var(--f-mono);
  font-size: var(--code-fs, clamp(18px, 2.4vw, 25px));
  letter-spacing: var(--code-ls, .3em);
  text-align: center;
  text-transform: uppercase;
  padding: 0 52px;
}
#code {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  border: 0; outline: 0; border-radius: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-appearance: none; appearance: none;
}
#code::placeholder {
  color: #c9ccd0;
  -webkit-text-fill-color: #c9ccd0;
  letter-spacing: .32em;
  opacity: 1;
  transition: opacity .3s;
}
#code:focus::placeholder { opacity: .22; }
#code::selection { background: rgba(193, 18, 31, .55); color: transparent; -webkit-text-fill-color: transparent; }
#code:disabled { cursor: not-allowed; }
#code:disabled::placeholder { color: #55585d; -webkit-text-fill-color: #55585d; }

.terminal__mask {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  white-space: pre;
  pointer-events: none;
  color: var(--white);
  text-shadow: 0 0 10px rgba(255, 255, 255, .35);
}
.terminal__mask .ch { display: inline; }
.terminal__mask .ch.is-new { color: var(--red-hot); text-shadow: 0 0 12px var(--red-hot); }
.terminal__mask .caret { display: inline-block; position: relative; width: 0; height: 1em; }
.terminal__mask .caret::after {
  content: ""; position: absolute; left: -.05em; top: -.04em;
  width: .1em; height: 1.08em;
  background: var(--red-hot); box-shadow: 0 0 10px var(--red-hot);
  animation: blink 1s steps(1) infinite;
}
.terminal__reveal {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 0; color: #6d7076; cursor: pointer;
  transition: color .2s;
  z-index: 2;
}
.terminal__reveal:hover { color: #fff; }
.terminal__reveal svg { width: 20px; height: 20px; }
.terminal__reveal[aria-pressed="true"] { color: var(--red-hot); }
.terminal__reveal[aria-pressed="true"] .reveal__slash { display: none; }
.terminal__scanline {
  position: absolute; top: 0; bottom: 0; left: -30%; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 43, 54, .25), rgba(255, 255, 255, .35), transparent);
  opacity: 0; pointer-events: none;
}
.terminal.is-scanning .terminal__scanline { opacity: 1; animation: scan .7s linear infinite; }
@keyframes scan { to { left: 110%; } }
.terminal__field.is-nudge { animation: nudge .4s; }
@keyframes nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.enter {
  position: relative;
  display: block; width: 100%;
  margin-top: 12px; height: 58px;
  border: 0; cursor: pointer;
  background: linear-gradient(180deg, #f6f7f8 0%, #cfd3d7 45%, #9ea3a9 52%, #c4c8cd 70%, #eef0f2 100%);
  color: #0b0b0c;
  font-family: var(--f-display); font-size: 30px; letter-spacing: .5em; padding-left: .5em;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35);
  overflow: hidden;
  transition: transform .12s, filter .25s, letter-spacing .35s var(--ease-out);
}
.enter::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.enter:hover { filter: brightness(1.08); letter-spacing: .62em; }
.enter:hover .enter__sheen { animation: enterSheen .9s var(--ease-out); }
.enter:active { transform: translateY(2px) scale(.995); filter: brightness(.92); }
.enter__label { position: relative; z-index: 2; }
.enter__sheen {
  position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .95), transparent);
  pointer-events: none;
}
@keyframes enterSheen { to { left: 120%; } }
.enter__progress {
  position: absolute; left: 0; bottom: 0; height: 4px; width: 0;
  background: var(--red-hot); box-shadow: 0 0 12px var(--red-hot);
}
.enter.is-busy { cursor: progress; letter-spacing: .3em; font-size: 24px; }
.enter.is-busy .enter__progress { animation: progress 1.25s linear forwards; }
@keyframes progress { to { width: 100%; } }
.enter:disabled:not(.is-busy) { cursor: not-allowed; filter: grayscale(1) brightness(.4); }

.terminal__foot {
  margin-top: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; color: #5f6267;
}

/* verdict line under the terminal */
.verdict { min-height: 86px; margin-top: 20px; }
.verdict__main { font-family: var(--f-display); font-size: clamp(34px, 5vw, 56px); letter-spacing: .18em; line-height: 1; }
.verdict__sub { margin-top: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em; color: #a3a6ab; }
.verdict.is-granted .verdict__main { color: #eafff2; text-shadow: 0 0 22px rgba(92, 255, 164, .75), 0 0 2px #fff; animation: verdictIn .7s var(--ease-out); }
.verdict.is-denied .verdict__main { color: var(--red-hot); text-shadow: 0 0 24px rgba(255, 43, 54, .8); animation: verdictIn .5s var(--ease-out), textGlitch .9s steps(2) .1s; }
.verdict.is-warn .verdict__main { color: #ffcf5a; font-size: clamp(26px, 3.4vw, 40px); animation: verdictIn .5s var(--ease-out); }
.verdict.is-calm .verdict__main { color: #e7e8ea; font-size: clamp(24px, 3vw, 36px); animation: verdictIn .5s var(--ease-out); }
@keyframes verdictIn { from { opacity: 0; transform: scale(1.25); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes textGlitch {
  0% { transform: translate(-4px, 0); clip-path: inset(0 0 55% 0); }
  25% { transform: translate(4px, 0); clip-path: inset(45% 0 0 0); }
  50% { transform: translate(-2px, 0); clip-path: inset(20% 0 30% 0); }
  100% { transform: none; clip-path: none; }
}

.op-complete {
  margin-top: clamp(26px, 5vh, 52px);
  padding: 26px 28px;
  width: min(620px, 100%);
  border: 1px solid rgba(92, 255, 164, .35);
  background: linear-gradient(180deg, rgba(14, 26, 19, .7), rgba(6, 9, 7, .85));
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  animation: rise .8s var(--ease-out);
}
.op-complete__kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; color: var(--green); }
.op-complete__title { font-family: var(--f-display); font-size: clamp(34px, 5vw, 54px); letter-spacing: .14em; margin-top: 6px; text-shadow: 0 0 22px rgba(92, 255, 164, .45); }
.op-complete__sub { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: #a9b4ad; margin: 6px 0 18px; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px 0 calc(26px + .28em);
  background: rgba(255, 255, 255, .03);
  border: 1px solid #4a4d52;
  color: #e8e9eb;
  font-family: var(--f-display); font-size: 20px; letter-spacing: .28em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  white-space: nowrap;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, letter-spacing .3s var(--ease-out);
}
.btn-ghost:hover { background: rgba(193, 18, 31, .22); border-color: var(--red-hot); color: #fff; letter-spacing: .34em; }

.hero__down {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .32em; color: #7d8085; text-decoration: none;
  opacity: 0; animation: riseX 1s var(--ease-out) 1.8s forwards;
}
@keyframes riseX { from { opacity: 0; } to { opacity: 1; } }
.hero__down i {
  width: 1px; height: 34px; background: linear-gradient(180deg, var(--red-hot), transparent);
  animation: drip 2s var(--ease-heavy) infinite;
  transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero__down:hover { color: #fff; }

/* =====================================================================
   vaults
   ===================================================================== */
.vaults {
  position: relative;
  padding: clamp(70px, 12vh, 130px) var(--gutter) clamp(60px, 10vh, 110px);
}
.vaults::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(193, 18, 31, .6), transparent);
}
.vaults__head { text-align: center; margin-bottom: clamp(36px, 6vh, 64px); }
.vaults__kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .34em; color: var(--red-hot); }
.vaults__title {
  margin: 10px 0 8px;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(46px, 7vw, 92px); letter-spacing: .12em; line-height: .95;
  background: linear-gradient(180deg, #fff 0%, #c9cdd2 45%, #6a7076 52%, #d9dce0 70%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .9));
}
.vaults__sub { font-family: var(--f-ui); font-weight: 300; font-size: clamp(13px, 1.4vw, 16px); letter-spacing: .32em; color: #9a9da2; }

.vaults__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 46px);
  max-width: 1180px; margin: 0 auto;
}

.vault {
  --tilt-x: 0deg; --tilt-y: 0deg;
  --strip: #5a0b10; --strip-glow: rgba(193, 18, 31, .35);
  --led: #7a0d14;
  position: relative;
  outline: none;
  cursor: pointer;
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.vault.is-in { opacity: 1; transform: none; }
.vault:focus-visible .vault__box { outline: 2px solid var(--red-hot); outline-offset: 6px; }

.vault__top, .vault__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: #8b8e93;
}
.vault__top { margin-bottom: 14px; }
.vault__name { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 32px); letter-spacing: .14em; color: var(--white); white-space: nowrap; }
.vault__name b { font-weight: 400; color: var(--steel); }
.vault__serial { white-space: nowrap; }
.vault__serial b { font-weight: 400; color: #c7cace; }

.vault__stage { position: relative; perspective: 1100px; }
.vault__box {
  position: relative;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .5s var(--ease-out), filter .8s;
}
.vault:hover .vault__box { transform: translateY(-8px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }

.vault__shell {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, .1), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, #24262a 0%, #121315 45%, #08090a 100%);
  border: 1px solid #2d3035;
  clip-path: polygon(5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%, 0 5%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -30px 60px rgba(0, 0, 0, .85);
}
.vault__shell::before { /* rivets */
  content: ""; position: absolute; inset: 3.2%;
  background:
    radial-gradient(circle at 0 0, #6b7076 0 2px, transparent 2.5px),
    radial-gradient(circle at 100% 0, #6b7076 0 2px, transparent 2.5px),
    radial-gradient(circle at 0 100%, #6b7076 0 2px, transparent 2.5px),
    radial-gradient(circle at 100% 100%, #6b7076 0 2px, transparent 2.5px);
}
.vault__stage::before { /* contact shadow under the cube */
  content: ""; position: absolute; left: 8%; right: 8%; top: calc(100% - 4%); height: 12%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .95), transparent);
  pointer-events: none;
}

/* door frame + recess */
.vault__opening {
  position: absolute; inset: 16%;
  background: #020202;
  box-shadow: inset 0 0 0 2px #000, inset 0 0 26px rgba(0, 0, 0, 1), 0 0 0 3px #1e2024, 0 0 0 4px #33363b;
  transform-style: preserve-3d;
}
.vault[data-anim="slide"] .vault__opening,
.vault[data-anim="split"] .vault__opening { overflow: hidden; }

.vault__interior {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, #17191c 0%, #050505 75%);
  overflow: hidden;
}
.vault__rays {
  position: absolute; inset: -40%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0 8deg, rgba(255, 255, 255, .07) 8deg 10deg);
  opacity: 0;
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.vault__icon {
  position: relative;
  width: 52%; height: 52%;
  color: #2c2e32;
  transition: color .8s, filter .8s;
}
.vault__open-hint {
  position: absolute; bottom: 9%;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .28em; color: rgba(255, 255, 255, 0);
  transition: color .4s;
}

/* metallic door */
.vault__door {
  position: absolute; inset: 0;
  transform-origin: 0 50%;
  transform-style: preserve-3d;
}
.door__half {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 50% 42%, #4a4e54 0%, #2a2d31 42%, #17181b 78%, #0f1012 100%);
  background-size: 200% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -10px 20px rgba(0, 0, 0, .6);
}
.door__half--l { left: 0; background-position: 0 0; }
.door__half--r { right: 0; background-position: 100% 0; }
.vault[data-anim="split"] .door__half--l::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: rgba(0, 0, 0, .7);
}

.door__bolts { position: absolute; right: -9%; top: 18%; bottom: 18%; display: flex; flex-direction: column; justify-content: space-between; }
.door__bolts i {
  display: block; width: 18px; height: 9px;
  background: linear-gradient(180deg, #e8ebee, #8c9197 55%, #4b4f54);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  border-radius: 1px;
}
.vault[data-anim="slide"] .door__bolts { right: 3%; }
.vault[data-anim="split"] .door__bolts { right: auto; left: 50%; top: 50%; bottom: auto; height: 110%; transform: translate(-50%, -50%); }
.vault[data-anim="split"] .door__bolts i { width: 9px; height: 16px; background: linear-gradient(90deg, #e8ebee, #8c9197 55%, #4b4f54); }

.door__dial {
  position: absolute; left: 50%; top: 50%;
  width: 58%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.dial__ticks {
  position: absolute; inset: -9%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, .35) 0 1.2deg, transparent 1.2deg 10deg);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 70%, transparent 71%);
          mask: radial-gradient(circle, transparent 62%, #000 63%, #000 70%, transparent 71%);
  opacity: .5;
}
.dial__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, #8e939a, #e9ecef 12%, #6c7177 25%, #d4d8dc 40%, #50555b 55%, #c9cdd2 70%, #6b7076 85%, #8e939a);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .8);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%);
          mask: radial-gradient(circle, transparent 46%, #000 47%);
}
.dial__spokes { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); }
.dial__spokes i {
  position: absolute; left: 50%; top: 50%;
  width: 118%; height: 9%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #f2f4f6, #9a9fa5 50%, #4d5156);
  border-radius: 99px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, .75);
}
.dial__spokes i:nth-child(2) { transform: translate(-50%, -50%) rotate(60deg); }
.dial__spokes i:nth-child(3) { transform: translate(-50%, -50%) rotate(120deg); }
.dial__spokes i::before, .dial__spokes i::after {
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px; transform: translateY(-50%) scale(1.6);
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #8b9096 60%, #3b3f43);
}
.dial__spokes i::before { left: -2px; }
.dial__spokes i::after { right: -2px; }
.dial__hub {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffffff, #b3b8be 30%, #5a5f65 70%, #2b2e32);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .9), inset 0 -2px 4px rgba(0, 0, 0, .5);
}
.dial__hub::after {
  content: ""; position: absolute; inset: 34%; border-radius: 50%;
  background: radial-gradient(circle, #ff3b45, #8a0b12 70%);
  box-shadow: 0 0 10px rgba(255, 43, 54, .9);
  transition: background .6s, box-shadow .6s;
}
.door__hinge {
  position: absolute; left: -5%; width: 7%; height: 15%;
  background: linear-gradient(90deg, #3b3e43, #d4d8dc 45%, #5c6167);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .8);
}
.door__hinge--a { top: 14%; }
.door__hinge--b { bottom: 14%; }
.vault[data-anim="slide"] .door__hinge, .vault[data-anim="split"] .door__hinge { display: none; }
.door__plate {
  position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: #9aa0a6;
  padding: 1px 6px 1px 9px;
  background: linear-gradient(180deg, #2a2d31, #16181a);
  border: 1px solid #3c3f44;
}

/* light strips (the neon frame of the cube) */
.vault__strips .s {
  position: absolute; display: block;
  background: var(--strip);
  box-shadow: 0 0 6px var(--strip-glow), 0 0 18px var(--strip-glow), 0 0 40px var(--strip-glow);
  transition: background .6s, box-shadow .6s;
}
.s--l { left: 8%; top: 13%; bottom: 13%; width: 1.4%; }
.s--r { right: 8%; top: 13%; bottom: 13%; width: 1.4%; }
.s--tl { left: 8%; top: 8.6%; width: 22%; height: 1.4%; }
.s--tr { right: 8%; top: 8.6%; width: 22%; height: 1.4%; }
.s--b { left: 30%; right: 30%; bottom: 8.6%; height: 1.4%; opacity: 0; transition: opacity .6s; }

/* padlock */
.vault__padlock {
  position: absolute; left: 50%; top: 50%;
  width: 46%;
  transform: translate(-50%, -46%);
  overflow: visible;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .95));
  pointer-events: none;
}
.padlock__shackle { transform-box: fill-box; transform-origin: 0% 100%; }
.padlock__text { font-family: var(--f-mono); font-size: 9px; letter-spacing: 2px; fill: #7f848a; }
.padlock__led { animation: blink 1.2s steps(1) infinite; }

.vault__stamp {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg) scale(1.6);
  padding: 8px 14px 6px;
  border: 3px solid var(--green);
  color: var(--green);
  font-family: var(--f-display); font-size: clamp(18px, 2.2vw, 28px); letter-spacing: .16em; white-space: nowrap;
  background: rgba(4, 18, 10, .78);
  box-shadow: 0 0 30px rgba(92, 255, 164, .5), inset 0 0 18px rgba(92, 255, 164, .25);
  opacity: 0; pointer-events: none;
  z-index: 5;
}
.vault__sweep {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  clip-path: polygon(5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%, 0 5%);
}
.vault__sweep::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 60, 70, .16), rgba(255, 255, 255, .1), transparent);
  transform: skewX(-12deg);
}
.vault:hover .vault__sweep::before, .vault:focus-visible .vault__sweep::before { animation: sweep 1.1s var(--ease-out); }
@keyframes sweep { to { left: 130%; } }

.vault__floor {
  position: absolute; left: 4%; right: 4%; top: 100%; height: 28%;
  background: linear-gradient(180deg, var(--strip-glow), transparent 70%);
  opacity: .35; filter: blur(14px);
  transform: scaleY(.6); transform-origin: top;
  pointer-events: none;
}

.vault__bottom { margin-top: 18px; }
.vault__led {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--led); box-shadow: 0 0 10px var(--led);
  flex: none;
}
.vault__status { margin-right: auto; font-family: var(--f-display); font-size: 22px; letter-spacing: .2em; color: #b8bbbf; }
.vault__mech { color: #5c5f64; white-space: nowrap; }
.vault__hint {
  min-height: 18px; margin-top: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--red-hot);
  opacity: 0; transition: opacity .3s;
}
.vault__hint.is-on { opacity: 1; }
.vault.is-denied .vault__box { animation: nudge .45s; }

/* ---------- vault states ---------- */
.vault[data-status="locked"] { cursor: not-allowed; }
.vault[data-status="locked"] .vault__box { filter: brightness(.55) saturate(.6) contrast(1.05); }
.vault[data-status="locked"]:hover .vault__box { transform: translateY(-3px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.vault[data-status="locked"] .vault__status { color: #6e7176; }

.vault[data-status="available"],
.vault.is-releasing { --strip: #f4f4f1; --strip-glow: rgba(255, 60, 70, .55); --led: #ff2b36; }
.vault[data-status="available"] .vault__padlock,
.vault[data-status="unlocked"] .vault__padlock { display: none; }
.vault[data-status="available"]:not(.is-opening) .vault__strips .s:not(.s--b) { animation: stripFlicker 5s steps(1) infinite; }
.vault[data-status="available"] .vault__led { animation: blink 1s steps(1) infinite; }
.vault[data-status="available"] .vault__status { color: var(--white); text-shadow: 0 0 12px rgba(255, 43, 54, .7); }
.vault[data-status="available"]:hover .vault__strips .s { box-shadow: 0 0 8px #fff, 0 0 24px rgba(255, 60, 70, .9), 0 0 60px rgba(255, 60, 70, .6); }
@keyframes stripFlicker { 0%, 47%, 49%, 52%, 100% { opacity: 1; } 48% { opacity: .35; } 51% { opacity: .5; } }

.vault[data-status="unlocked"] { --strip: #ffffff; --strip-glow: rgba(92, 255, 164, .55); --led: var(--green); }
.vault[data-status="unlocked"] .vault__status { color: var(--green); text-shadow: 0 0 12px rgba(92, 255, 164, .6); }
.vault[data-status="unlocked"] .vault__strips .s--b { opacity: 1; }
.vault[data-status="unlocked"] .vault__icon { color: #ffffff; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px rgba(255, 255, 255, .7)) drop-shadow(0 0 40px rgba(92, 255, 164, .5)); }
.vault[data-status="unlocked"] .vault__interior { background: radial-gradient(circle at 50% 50%, #2c3a33 0%, #0c110e 55%, #030403 100%); }
.vault[data-status="unlocked"] .vault__rays { opacity: 1; }
.vault[data-status="unlocked"] .vault__open-hint { color: rgba(255, 255, 255, .7); }
.vault[data-status="unlocked"] .dial__hub::after { background: radial-gradient(circle, #b6ffd6, #1f7a4a 70%); box-shadow: 0 0 10px rgba(92, 255, 164, .9); }
.vault[data-status="unlocked"]:hover .vault__icon { filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 26px rgba(255, 255, 255, .9)) drop-shadow(0 0 60px rgba(92, 255, 164, .7)); }
.vault[data-status="unlocked"] .vault__floor { opacity: .55; }

/* final (static) open positions */
.vault[data-status="unlocked"][data-anim="swing"] .vault__door { transform: rotateY(var(--swing, -100deg)); }
.vault[data-status="unlocked"][data-anim="swing"] .door__half { filter: brightness(.55); }
.vault[data-status="unlocked"][data-anim="slide"] .vault__door { transform: translateY(-101%); }
.vault[data-status="unlocked"][data-anim="split"] .door__half--l { transform: translateX(-101%); }
.vault[data-status="unlocked"][data-anim="split"] .door__half--r { transform: translateX(101%); }
.vault[data-status="unlocked"][data-anim="split"] .door__dial,
.vault[data-status="unlocked"][data-anim="split"] .door__bolts { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
.vault[data-status="unlocked"][data-anim="split"] .door__plate { opacity: 0; }
.vault[data-status="unlocked"]:not([data-anim="split"]) .door__bolts i { transform: translateX(-16px); }

/* ---------- padlock release (locked -> available) ---------- */
.vault.is-releasing .vault__padlock { display: block !important; animation: padlockDrop .8s var(--ease-heavy) .75s forwards; }
.vault.is-releasing .padlock__shackle { animation: shackleUp .45s var(--ease-mech) forwards, shackleSwing .4s var(--ease-out) .45s forwards; }
.vault.is-releasing .padlock__led { fill: #5cffa4; animation: none; }
.vault.is-releasing .vault__box { filter: none; }
@keyframes shackleUp { to { transform: translateY(-14px); } }
@keyframes shackleSwing { from { transform: translateY(-14px); } to { transform: translateY(-14px) rotate(-28deg); } }
@keyframes padlockDrop {
  0% { transform: translate(-50%, -46%); opacity: 1; }
  25% { transform: translate(-50%, -52%) rotate(-3deg); opacity: 1; }
  100% { transform: translate(-50%, 40%) rotate(14deg); opacity: 0; }
}

/* ---------- door opening (available -> unlocked) ---------- */
.vault.is-opening .vault__box { filter: none; }
.vault.ph-dial .dial__spokes, .vault.ph-dial .dial__hub { animation: dialSpin 1.1s var(--ease-heavy) forwards; }
.vault[data-anim="slide"].ph-dial .dial__spokes, .vault[data-anim="slide"].ph-dial .dial__hub { animation-name: dialSpinRev; }
.vault[data-anim="split"].ph-dial .dial__spokes, .vault[data-anim="split"].ph-dial .dial__hub { animation-name: dialTimeLock; }
@keyframes dialSpin { to { transform: translate(-50%, -50%) rotate(540deg); } }
@keyframes dialSpinRev { to { transform: translate(-50%, -50%) rotate(-450deg); } }
@keyframes dialTimeLock { 40% { transform: translate(-50%, -50%) rotate(-200deg); } 100% { transform: translate(-50%, -50%) rotate(380deg); } }
.vault.ph-bolts:not([data-anim="split"]) .door__bolts i { transition: transform .35s var(--ease-mech); transform: translateX(-16px); }
.vault[data-anim="split"].ph-bolts .door__bolts i { transition: transform .35s var(--ease-mech); transform: scaleY(.2); }
.vault.ph-light .vault__strips .s { animation: stripSurge .5s steps(1) forwards; }
@keyframes stripSurge { 0% { background: #fff; box-shadow: 0 0 10px #fff, 0 0 40px #fff, 0 0 90px rgba(255, 255, 255, .9); } 40% { opacity: .2; } 60% { opacity: 1; } }
.vault.ph-light .dial__hub::after { background: radial-gradient(circle, #b6ffd6, #1f7a4a 70%); box-shadow: 0 0 14px rgba(92, 255, 164, 1); }

.vault[data-anim="swing"].ph-door .vault__door { animation: doorSwing 1.35s var(--ease-heavy) forwards; }
@keyframes doorSwing {
  0% { transform: rotateY(0); }
  12% { transform: rotateY(-4deg) translateZ(6px); }
  100% { transform: rotateY(var(--swing, -100deg)); }
}
.vault[data-anim="swing"].ph-door .door__half { animation: doorDarken 1.35s ease forwards; }
@keyframes doorDarken { to { filter: brightness(.55); } }
.vault[data-anim="slide"].ph-door .vault__door { animation: doorSlide 1.25s var(--ease-heavy) forwards; }
@keyframes doorSlide { 0% { transform: translateY(0); } 15% { transform: translateY(3%); } 100% { transform: translateY(-101%); } }
.vault[data-anim="split"].ph-door .door__dial,
.vault[data-anim="split"].ph-door .door__bolts { animation: dialRetract .45s var(--ease-heavy) forwards; }
@keyframes dialRetract { to { opacity: 0; transform: translate(-50%, -50%) scale(.2); } }
.vault[data-anim="split"].ph-door .door__plate { animation: fadeOut .3s ease forwards; }
.vault[data-anim="split"].ph-door .door__half--l { animation: splitL 1.1s var(--ease-heavy) .3s forwards; }
.vault[data-anim="split"].ph-door .door__half--r { animation: splitR 1.1s var(--ease-heavy) .3s forwards; }
@keyframes splitL { to { transform: translateX(-101%); } }
@keyframes splitR { to { transform: translateX(101%); } }
@keyframes fadeOut { to { opacity: 0; } }

.vault.ph-door .vault__interior::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .9), transparent 60%);
  animation: interiorBurst 1.3s ease-out forwards;
}
@keyframes interiorBurst { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

.vault.ph-stamp .vault__stamp { animation: vaultStamp 1.9s var(--ease-out) forwards; }
@keyframes vaultStamp {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(2.2); }
  18% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(.95); }
  26% { transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
}

/* =====================================================================
   full-screen stamp (ACCESS GRANTED / DENIED)
   ===================================================================== */
.stamp {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
}
.stamp.is-on { visibility: visible; animation: stampWrap 1.6s ease forwards; }
@keyframes stampWrap { 0% { opacity: 0; } 8% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
.stamp__band {
  width: 100%;
  padding: clamp(18px, 3vh, 30px) var(--gutter);
  text-align: center;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .88) 18%, rgba(0, 0, 0, .88) 82%, transparent);
  border-top: 1px solid; border-bottom: 1px solid;
  transform: scaleY(0);
}
.stamp.is-on .stamp__band { animation: bandOpen .45s var(--ease-out) forwards; }
@keyframes bandOpen { to { transform: scaleY(1); } }
.stamp__text { font-family: var(--f-display); font-size: clamp(46px, 10vw, 128px); letter-spacing: .14em; line-height: 1; padding-left: .14em; }
.stamp__sub { margin-top: 8px; font-family: var(--f-mono); font-size: clamp(11px, 1.3vw, 14px); letter-spacing: .3em; }
.stamp.is-granted .stamp__band { border-color: rgba(92, 255, 164, .5); }
.stamp.is-granted .stamp__text { color: #f1fff6; text-shadow: 0 0 30px rgba(92, 255, 164, .9), 0 0 4px #fff; }
.stamp.is-granted .stamp__sub { color: var(--green); }
.stamp.is-denied .stamp__band { border-color: rgba(255, 43, 54, .6); }
.stamp.is-denied .stamp__text { color: var(--red-hot); text-shadow: 0 0 34px rgba(255, 43, 54, .95); animation: textGlitch .8s steps(2) .1s; }
.stamp.is-denied .stamp__sub { color: #ffb3b7; }

/* =====================================================================
   BUSTED
   ===================================================================== */
.busted {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 24px var(--gutter);
  background: radial-gradient(120% 90% at 50% 50%, rgba(28, 4, 7, .9), rgba(3, 3, 4, .97) 70%);
  -webkit-backdrop-filter: grayscale(1) blur(3px);
          backdrop-filter: grayscale(1) blur(3px);
  overflow: hidden;
  text-align: center;
  animation: overlayIn .6s ease forwards;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.busted__lights i { position: absolute; top: -20%; bottom: -20%; width: 80vw; mix-blend-mode: screen; pointer-events: none; }
.busted__red { left: -25vw; background: radial-gradient(ellipse 50% 60% at 30% 50%, rgba(255, 20, 40, .95), transparent 70%); animation: bRed .5s steps(1) infinite; }
.busted__blue { right: -25vw; background: radial-gradient(ellipse 50% 60% at 70% 50%, rgba(30, 90, 255, .95), transparent 70%); animation: bBlue .5s steps(1) infinite; }
@keyframes bRed { 0% { opacity: .85; } 50% { opacity: .08; } }
@keyframes bBlue { 0% { opacity: .08; } 50% { opacity: .85; } }
.busted::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 2px, transparent 2px 4px);
  pointer-events: none;
}
.busted__inner { position: relative; z-index: 2; max-width: 980px; max-height: 100%; overflow-y: auto; padding: 8px 0; }
.busted__stars { display: flex; gap: clamp(8px, 1.6vw, 16px); justify-content: center; margin-bottom: clamp(14px, 3vh, 30px); }
.busted__stars .star { width: clamp(34px, 5.4vw, 64px); height: clamp(34px, 5.4vw, 64px); animation-duration: .5s; }
.busted__title {
  margin: 0;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(96px, 22vw, 300px); line-height: .85; letter-spacing: .04em;
  color: #ff2533;
  text-shadow: 0 0 40px rgba(255, 30, 45, .8), 0 0 120px rgba(255, 30, 45, .5), 0 8px 0 #2a0005;
}
.busted__title span { display: inline-block; opacity: 0; animation: bLetter .7s var(--ease-out) forwards; }
.busted__title span:nth-child(1) { animation-delay: .15s; }
.busted__title span:nth-child(2) { animation-delay: .22s; }
.busted__title span:nth-child(3) { animation-delay: .29s; }
.busted__title span:nth-child(4) { animation-delay: .36s; }
.busted__title span:nth-child(5) { animation-delay: .43s; }
.busted__title span:nth-child(6) { animation-delay: .5s; }
@keyframes bLetter {
  0% { opacity: 0; transform: scale(3.2) translateY(-10%); filter: blur(18px); }
  60% { opacity: 1; transform: scale(.92); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}
.busted__title { animation: bustedThrob 1s ease-in-out 1.3s infinite; }
@keyframes bustedThrob { 50% { text-shadow: 0 0 60px rgba(255, 30, 45, 1), 0 0 160px rgba(255, 30, 45, .7), 0 8px 0 #2a0005; } }
.busted__line { margin-top: 14px; font-family: var(--f-display); font-size: clamp(22px, 3.2vw, 40px); letter-spacing: .2em; color: #fff; opacity: 0; animation: rise .8s var(--ease-out) .9s forwards; }
.busted__line--dim { margin-top: 4px; color: #a8abb0; font-size: clamp(16px, 2vw, 24px); animation-delay: 1.1s; }
.busted__timer {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: fit-content;
  margin: clamp(22px, 4vh, 40px) auto clamp(20px, 3vh, 30px);
  padding: 16px 30px;
  border: 1px solid rgba(255, 43, 54, .45);
  background: rgba(0, 0, 0, .55);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  opacity: 0; animation: rise .8s var(--ease-out) 1.3s forwards;
}
.busted__timer-label, .busted__timer-note { font-family: var(--f-mono); font-size: 11px; letter-spacing: .3em; color: #ff9aa0; }
.busted__timer-note { color: #6d7075; }
.busted__count { font-family: var(--f-mono); font-size: clamp(34px, 6vw, 60px); letter-spacing: .12em; color: #fff; text-shadow: 0 0 18px rgba(255, 43, 54, .8); }
.busted .btn-ghost { opacity: 0; animation: rise .8s var(--ease-out) 1.6s forwards; }

.restricted {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 45;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 24px);
  padding: 10px 12px 10px 16px;
  background: rgba(20, 4, 6, .94);
  border: 1px solid rgba(255, 43, 54, .5);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: #ffc4c7;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .8);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.restricted b { color: #fff; font-weight: 400; }
.restricted__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 10px var(--red-hot); animation: blink .5s steps(1) infinite; flex: none; }
.restricted__btn { flex: none; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; padding: 5px 9px; cursor: pointer; }
.restricted__btn:hover { border-color: var(--red-hot); }

/* =====================================================================
   finale (after VAULT 03)
   ===================================================================== */
.finale {
  position: fixed; inset: 0; z-index: 85;
  display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  padding: 24px var(--gutter);
  background: radial-gradient(90% 70% at 50% 40%, rgba(24, 26, 30, .97), rgba(2, 2, 3, .99) 75%);
  text-align: center;
  overflow: hidden auto;
  animation: overlayIn .8s ease forwards;
}
.finale > * { flex-shrink: 0; }
.finale__beams { position: absolute; inset: 0; pointer-events: none; }
.finale__beams i {
  position: absolute; top: -10%; height: 80%; width: 16vw; max-width: 200px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .06) 70%, transparent);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(4px);
  opacity: 0;
  mix-blend-mode: screen;
}
.finale__beams i:nth-child(1) { left: 22%; transform: rotate(14deg); }
.finale__beams i:nth-child(2) { left: 50%; transform: translateX(-50%); }
.finale__beams i:nth-child(3) { right: 22%; transform: rotate(-14deg); }
.finale.is-beams .finale__beams i { animation: beamOn .9s steps(4, end) forwards; }
.finale.is-beams .finale__beams i:nth-child(2) { animation-delay: .15s; }
.finale.is-beams .finale__beams i:nth-child(3) { animation-delay: .3s; }
@keyframes beamOn { to { opacity: 1; } }
.finale__cubes { position: relative; display: flex; gap: clamp(12px, 3vw, 34px); margin-bottom: clamp(26px, 5vh, 44px); }
.mini {
  width: clamp(76px, 12vw, 130px); aspect-ratio: 1;
  position: relative; display: grid; place-items: center;
  background: linear-gradient(160deg, #26282c, #0d0e10 60%, #060607);
  border: 1px solid #33363b;
  box-shadow: 0 24px 40px -10px #000, inset 0 1px 0 rgba(255, 255, 255, .12);
  clip-path: polygon(6% 0, 94% 0, 100% 6%, 100% 94%, 94% 100%, 6% 100%, 0 94%, 0 6%);
  opacity: 0; transform: translateY(24px) scale(.9);
}
.mini::before {
  content: ""; position: absolute; inset: 11%;
  border: 2px solid rgba(255, 255, 255, .85);
  border-bottom: 0;
  box-shadow: 0 0 10px rgba(255, 255, 255, .6), inset 0 0 10px rgba(255, 255, 255, .25);
}
.mini svg { width: 48%; height: 48%; color: #232529; transition: color .3s, filter .3s; position: relative; }
.mini.is-in { animation: miniIn .7s var(--ease-out) forwards; }
@keyframes miniIn { to { opacity: 1; transform: none; } }
.mini.is-lit svg { color: #fff; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 20px rgba(255, 255, 255, .8)); animation: miniHit .5s var(--ease-out); }
@keyframes miniHit { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }
.finale__kicker, .finale__title, .finale__sub, .finale__note, .finale .btn-ghost { opacity: 0; }
.finale.is-text .finale__kicker { animation: rise .7s var(--ease-out) forwards; }
.finale.is-text .finale__title { animation: finaleTitle 1.2s var(--ease-out) .15s forwards; }
.finale.is-text .finale__sub { animation: rise .8s var(--ease-out) .7s forwards; }
.finale.is-text .finale__note { animation: rise .8s var(--ease-out) 1s forwards; }
.finale.is-text .btn-ghost { animation: rise .8s var(--ease-out) 1.4s forwards; }
.finale__kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .34em; color: var(--green); }
.finale__title {
  margin: 10px 0 12px;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(52px, 10vw, 140px); line-height: .9; letter-spacing: .08em;
  background: linear-gradient(180deg, #fff 0%, #d6dade 44%, #737980 52%, #e3e6e9 70%, #fff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, .25)) drop-shadow(0 10px 20px #000);
}
@keyframes finaleTitle { from { opacity: 0; transform: scale(1.3); letter-spacing: .4em; } to { opacity: 1; transform: none; letter-spacing: .08em; } }
.finale__sub { font-family: var(--f-display); font-size: clamp(18px, 2.4vw, 28px); letter-spacing: .22em; color: #e6e7e9; }
.finale__note { margin: 8px 0 28px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .28em; color: #8e9196; }

/* =====================================================================
   dossier (vault contents)
   ===================================================================== */
.dossier {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  animation: overlayIn .3s ease;
}
.dossier__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px); overflow: auto;
  padding: 22px 26px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #17181b, #0b0c0d);
  border: 1px solid #34373c;
  border-top: 2px solid var(--green);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 40px 100px #000;
  animation: dossierIn .5s var(--ease-out);
}
@keyframes dossierIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.dossier__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .26em; color: var(--green); }
.dossier__close { flex: none; background: none; border: 1px solid #3a3d42; width: 34px; height: 34px; cursor: pointer; color: #c9ccd0; }
.dossier__close:hover { border-color: var(--red-hot); color: #fff; }
.dossier__icon { display: block; width: 64px; height: 64px; margin: 18px 0 10px; color: #fff; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .7)); }
.dossier__title { margin: 0 0 12px; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4vw, 42px); letter-spacing: .12em; }
.dossier__body { white-space: pre-wrap; font-family: var(--f-ui); font-weight: 300; font-size: 17px; line-height: 1.6; letter-spacing: .03em; color: #d3d5d8; overflow-wrap: anywhere; }
.dossier__link {
  display: inline-block; margin-top: 18px;
  padding: 10px 18px; border: 1px solid var(--green); color: var(--green);
  font-family: var(--f-display); font-size: 20px; letter-spacing: .24em; text-decoration: none;
}
.dossier__link:hover { background: rgba(92, 255, 164, .12); }
.dossier__foot { margin-top: 22px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: #55585d; }

/* =====================================================================
   boot + footer
   ===================================================================== */
.boot {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--black);
  transition: opacity .8s ease, visibility .8s;
}
body:not(.is-loading) .boot { opacity: 0; visibility: hidden; }
.boot__line { font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: #7c7f84; padding: 0 20px; text-align: center; }
.boot__dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
body.is-loading .hero *, body.is-loading .hero { animation-play-state: paused !important; }

.foot {
  position: relative; z-index: 5;
  padding: 50px var(--gutter) calc(80px + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid #16171a;
}
.foot__tag { font-family: var(--f-display); font-size: clamp(18px, 2.4vw, 30px); letter-spacing: .26em; color: #d6d8db; }
.foot__tag span { color: var(--red-hot); }
.foot__small { margin-top: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: #4f5256; }

.noscript { position: fixed; inset: auto 0 0 0; z-index: 200; padding: 14px; text-align: center; background: var(--red); font-family: var(--f-mono); }

/* busted: terminal disabled */
body.is-busted .terminal { filter: grayscale(.7) brightness(.6); }
body.is-busted .terminal__field::before {
  content: "ACCESS RESTRICTED"; position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 16px; letter-spacing: .3em; color: var(--red-hot);
  background: repeating-linear-gradient(-45deg, rgba(255, 43, 54, .08) 0 10px, transparent 10px 20px), #050505;
}

/* =====================================================================
   responsive
   ===================================================================== */
@media (max-width: 1180px) {
  .vault__mech { display: none; }
}
@media (max-width: 960px) {
  .vaults__grid { gap: 18px; }
  .vault__top, .vault__bottom { font-size: 10px; letter-spacing: .12em; }
  .vault__status { font-size: 19px; }
}
@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr auto 1fr; padding-left: 12px; padding-right: 12px; gap: 8px; }
  .topbar__id > span:not(.topbar__dot) { display: none; }
  .sound { padding: 0 10px; }
  .sound__label { display: none; }

  .hero { padding-top: calc(74px + env(safe-area-inset-top)); padding-bottom: 80px; }
  .hero__kicker { letter-spacing: .2em; gap: 8px; }
  .hero__kicker-line { display: none; }
  .hero__sub { letter-spacing: .26em; padding-left: .26em; }
  .terminal { padding: 16px 14px 14px; }
  .terminal__head { flex-wrap: wrap; row-gap: 6px; }
  .terminal__attempts-label { display: none; }
  #code, .terminal__mask { font-size: var(--code-fs, 16px); letter-spacing: var(--code-ls, .22em); padding: 0 44px; }
  #code::placeholder { letter-spacing: .2em; }
  .enter { font-size: 26px; }

  .vaults__grid { grid-template-columns: minmax(0, 1fr); max-width: 400px; gap: 54px; }
  .vault { --swing: -96deg; }
  .vault__top, .vault__bottom { font-size: 11px; letter-spacing: .16em; }
  .vault__status { font-size: 22px; }
  .vault__mech { display: inline; }
  .busted__timer { padding: 12px 18px; }
  .restricted { font-size: 10px; letter-spacing: .08em; width: calc(100% - 24px); }
}
@media (max-width: 380px) {
  .btn-ghost { font-size: 17px; letter-spacing: .18em; padding: 0 16px 0 calc(16px + .18em); }
  .btn-ghost:hover { letter-spacing: .2em; }
  .star { width: 22px; height: 22px; }
  .wanted { gap: 3px; }
  .vault__mech { display: none; }
}
@media (hover: none) {
  .vault:hover .vault__box,
  .vault[data-status]:hover .vault__box { transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
}

/* =====================================================================
   reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .star.is-on { animation: none; }
  .police__red, .police__blue { animation: none; opacity: calc(var(--heat) * .6); }
  .busted__red, .busted__blue { animation: none; opacity: .5; }
}
