/* Escape Verse - shared tokens, keycaps, buttons, lamp, home intro gate */
:root {
  --nx-pink: #d3122f;
  --nx-pink-2: #ff4a5c;
  --nx-pink-glow: rgba(211, 18, 47, .55);
  --nx-black: #050506;
  --nx-panel: #0e0d11;
  --nx-line: rgba(255, 255, 255, .12);
  --nx-text: #ece8ee;
  --nx-muted: #a29ca8;
  --nx-display: 'Oswald', 'Arial Narrow', sans-serif;
  --nx-body: 'Manrope', system-ui, sans-serif;
  --nx-mono: 'JetBrains Mono', ui-monospace, monospace;
}


/* Elementor's kit styles every <button> pink. Scope by ID so our own rules win (reset 1-0-1, components 1-1-0) */
:is(#nx-gate, #nx-game, #nx-crypt, #nx-safe) button {
  background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; border-radius: 0; box-shadow: none;
  text-transform: none; letter-spacing: normal; min-height: 0; line-height: inherit; text-decoration: none;
}
/* ---------- keycaps + buttons (Umbra Vitae style) ---------- */
.nx-gate kbd, .nx-game kbd, .nx-kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px;
  font: 600 12px/1 var(--nx-mono); color: var(--nx-text); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22); border-bottom-width: 2px; border-radius: 6px; text-transform: none; letter-spacing: 0;
}
.nx-gate kbd.wide, .nx-game kbd.wide { min-width: 44px; }
:is(#nx-gate, #nx-game) .nx-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 4px; cursor: pointer;
  font: 700 13px/1 var(--nx-body); letter-spacing: 0; text-transform: uppercase; color: #fff;
  background: var(--nx-pink); border: 1px solid var(--nx-pink); box-shadow: 0 0 0 rgba(211,18,47,0);
  transition: box-shadow .3s, transform .3s, background .3s;
}
:is(#nx-gate, #nx-game) .nx-btn:hover, :is(#nx-gate, #nx-game) .nx-btn:focus-visible { box-shadow: 0 0 34px var(--nx-pink-glow); transform: translateY(-2px); outline: none; }
:is(#nx-gate, #nx-game) .nx-btn kbd { background: rgba(0,0,0,.25) !important; border-color: rgba(255,255,255,.35) !important; }
:is(#nx-gate, #nx-game) .nx-btn-ghost { background: transparent; border-color: rgba(255,255,255,.28); }
:is(#nx-gate, #nx-game) .nx-btn-ghost:hover { background: rgba(255,255,255,.06); box-shadow: none; border-color: #fff; }

/* ---------- shape icons ---------- */
.nx-shape { display: inline-flex; width: 1em; height: 1em; }
.nx-shape svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3.4; }

/* ---------- logo ---------- */
.nx-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.nx-logo svg { width: 34px; height: 34px; flex: none; }
.nx-logo b { font: 600 22px/1 var(--nx-display); letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
.nx-logo b i { font-style: normal; font-weight: 400; }
.nx-logo-link { text-decoration: none !important; }

/* ---------- the lantern ---------- */
:is(#nx-gate, #nx-game) .nx-lamp {
  position: absolute; left: 0; top: 0; z-index: 30; width: 88px; height: 141px; padding: 0; margin: 0; border: 0; background: none; cursor: grab;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) rotate(var(--swing, 0deg)); transform-origin: 50% 2%;
  will-change: transform; touch-action: none; -webkit-tap-highlight-color: transparent;
}
:is(#nx-gate, #nx-game) .nx-lamp:focus-visible { outline: 2px dashed var(--nx-pink); outline-offset: 6px; }
:is(#nx-gate, #nx-game) .nx-lamp.is-grabbed { cursor: grabbing; }
:is(#nx-gate, #nx-game) .nx-lamp svg { position: relative; width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
:is(#nx-gate, #nx-game) .nx-lamp .nx-glass { fill: url(#nxGlassOff); transition: fill .3s; }
:is(#nx-gate, #nx-game) .nx-lamp .nx-flame { opacity: 0; transition: opacity .3s; transform-origin: 50% 100%; transform-box: fill-box; }
:is(#nx-gate, #nx-game) .nx-lamp.is-on .nx-glass { fill: url(#nxGlassOn); }
:is(#nx-gate, #nx-game) .nx-lamp.is-on .nx-flame { opacity: 1; animation: nxFlame .18s infinite alternate; }
:is(#nx-gate, #nx-game) .nx-lamp-halo { position: absolute; left: 50%; top: 56%; width: 30px; height: 30px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,200,140,.9), rgba(255,120,60,.3) 40%, transparent 70%); opacity: 0; transition: opacity .3s, width .3s, height .3s; pointer-events: none; }
:is(#nx-gate, #nx-game) .nx-lamp.is-on .nx-lamp-halo { opacity: 1; width: 240px; height: 240px; }
/* unlit and hanging from the figure's hand: no glow, no outline, just part of the silhouette */
:is(#nx-gate, #nx-game) .nx-lamp:not(.is-on) svg { filter: brightness(.22) saturate(.4); }
:is(#nx-gate, #nx-game) .nx-lamp.is-held { transition: none; }
@keyframes nxFlame { from { transform: scale(1, 1) skewX(-2deg); } to { transform: scale(.92, 1.08) skewX(3deg); } }
@keyframes nxPing { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.3); opacity: 0; } }

/* ---------- home intro gate ---------- */
html.nx-gate-open, html.nx-gate-open body { overflow: hidden !important; }
.nx-gate {
  position: fixed; inset: 0; z-index: 99990; background: #000; color: var(--nx-text); font-family: var(--nx-body);
  --lx: 50vw; --ly: 70vh; --lr: 0px; overflow: hidden; user-select: none; -webkit-user-select: none;
  transition: opacity 1.2s ease, transform 1.3s cubic-bezier(.7,0,.3,1);
}
.nx-gate.is-leaving { opacity: 0; transform: scale(1.6); pointer-events: none; }
.nxg-dark { position: absolute; inset: 0; background: var(--nx-bg) center / cover no-repeat; filter: brightness(.16) saturate(.8); }
/* the pool of light is a round window moved by transform; its picture is counter-moved so it stays lined up */
.nxg-win { position: absolute; left: 0; top: 0; z-index: 2; border-radius: 50%; overflow: hidden; visibility: hidden; will-change: transform; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0, #000 32%, rgba(0,0,0,.55) 62%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 0, #000 32%, rgba(0,0,0,.55) 62%, transparent 100%); }
.nx-gate.nx-lit .nxg-win { visibility: visible; animation: nxFlicker 2.4s infinite; }
.nxg-lit { position: absolute; left: 0; top: 0; background: var(--nx-bg) center / cover no-repeat; will-change: transform; }
@keyframes nxFlicker { 0%, 100% { opacity: 1; } 12% { opacity: .9; } 14% { opacity: 1; } 47% { opacity: .94; } 52% { opacity: 1; } 78% { opacity: .88; } 80% { opacity: 1; } }
.nxg-grain { position: absolute; inset: -50%; pointer-events: none; opacity: .09; 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='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: nxGrain .6s steps(4) infinite; }
@keyframes nxGrain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); } }
.nxg-scrawl { position: absolute; font: 400 clamp(26px, 3.4vw, 54px)/1.05 'Rubik Dirt', var(--nx-display); color: var(--nx-pink); text-transform: uppercase; text-shadow: 0 0 18px var(--nx-pink-glow), 0 0 2px #fff; opacity: .9; letter-spacing: 0; }
.nxg-scrawl-a { left: 8%; top: 48%; transform: rotate(-8deg); font-size: clamp(30px, 4vw, 64px); }
.nxg-scrawl-b { right: 6%; top: 30%; transform: rotate(5deg); font-size: clamp(16px, 1.8vw, 28px); text-align: right; }
.nxg-mark { position: absolute; transform: translate(-50%, -50%) rotate(-4deg); display: flex; align-items: center; gap: 10px; color: var(--nx-pink); font: 400 clamp(38px, 4.4vw, 68px)/1 'Rubik Dirt', var(--nx-display); text-shadow: 0 0 22px var(--nx-pink-glow); }
.nxg-mark .nx-shape { font-size: .8em; filter: drop-shadow(0 0 10px var(--nx-pink-glow)); }
.nxg-mark.is-found { animation: nxFound .6s ease; }
@keyframes nxFound { 50% { transform: translate(-50%, -50%) scale(1.25) rotate(var(--rot, -4deg)); color: #fff; } }

.nxg-top { position: absolute; z-index: 40; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(16px, 3vw, 40px); pointer-events: none; }
.nxg-top > * { pointer-events: auto; }
.nxg-timer { position: relative; width: 74px; height: 74px; display: grid; place-items: center; opacity: 0; transition: opacity .4s; }
.nx-gate.is-playing .nxg-timer { opacity: 1; }
.nxg-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.nxg-timer circle { fill: none; stroke-width: 4; }
.nxg-timer .trk { stroke: rgba(255,255,255,.1); }
.nxg-timer .bar { stroke: var(--nx-pink); stroke-dasharray: 276.5; stroke-dashoffset: 0; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--nx-pink)); transition: stroke-dashoffset 1s linear; }
.nxg-timer span { font: 700 24px/1 var(--nx-mono); color: #fff; }
.nx-gate.is-urgent .nxg-timer span { color: var(--nx-pink); animation: nxPulse 1s infinite; }
@keyframes nxPulse { 50% { transform: scale(1.18); } }
:is(#nx-gate, #nx-game) .nx-key-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--nx-muted); font: 500 13px/1 var(--nx-body); cursor: pointer; }
:is(#nx-gate, #nx-game) .nx-key-btn:hover { color: #fff; }

.nxg-hud { position: absolute; z-index: 35; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 clamp(16px, 3vw, 40px) clamp(18px, 3vw, 34px); opacity: 0; transform: translateY(20px); transition: .5s; pointer-events: none; }
.nx-gate.is-playing .nxg-hud { opacity: 1; transform: none; }
.nxg-hud > * { pointer-events: auto; }
.nxg-tip { max-width: 430px; }
#nx-gate .nxg-tip-title { margin: 0 0 6px; font: 500 20px/1.2 var(--nx-display); letter-spacing: 0; text-transform: uppercase; color: #fff; }
.nxg-tip-text { margin: 0 0 16px; font: 400 14px/1.5 var(--nx-body); color: var(--nx-muted); }
.nxg-keys { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 500 13px/1 var(--nx-body); color: var(--nx-muted); }
.nxg-keys span { display: inline-flex; align-items: center; gap: 8px; }
.nxg-lock { padding: 16px; border: 1px solid var(--nx-line); border-radius: 12px; background: rgba(8,7,10,.72); backdrop-filter: blur(8px); }
.nxg-lock.is-wrong { animation: nxShake .35s; border-color: var(--nx-pink); }
.nxg-lock.is-open { border-color: var(--nx-pink); box-shadow: 0 0 60px var(--nx-pink-glow); }
@keyframes nxShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.nxg-slots { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.nxg-slot { width: 64px; height: 74px; border: 1px solid var(--nx-line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--nx-muted); }
.nxg-slot .nx-shape { font-size: 18px; }
.nxg-slot b { font: 700 26px/1 var(--nx-mono); color: #fff; }
.nxg-slot.is-found { border-color: var(--nx-pink); color: var(--nx-pink); box-shadow: inset 0 0 18px rgba(211,18,47,.25); }
.nxg-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
:is(#nx-gate, #nx-game) .nxg-pad button { height: 38px; border-radius: 6px; border: 1px solid var(--nx-line); background: rgba(255,255,255,.04); color: #fff; font: 600 15px/1 var(--nx-mono); cursor: pointer; transition: .15s; }
:is(#nx-gate, #nx-game) .nxg-pad button:hover { border-color: var(--nx-pink); background: rgba(211,18,47,.15); }
:is(#nx-gate, #nx-game) .nxg-pad button[data-k="ok"] { background: var(--nx-pink); border-color: var(--nx-pink); }

.nxg-card { position: absolute; z-index: 50; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(18px, 8vw, 140px); background: linear-gradient(90deg, rgba(0,0,0,.92) 0, rgba(0,0,0,.7) 45%, rgba(0,0,0,.2) 100%); }
.nxg-card[hidden] { display: none; }
.nxg-kicker { display: flex; gap: 14px; margin: 0 0 26px; color: var(--nx-pink); font-size: 26px; filter: drop-shadow(0 0 8px var(--nx-pink-glow)); }
#nx-gate .nxg-card h1, #nx-gate .nxg-card h2 { margin: 0; font: 600 clamp(44px, 7vw, 104px)/1 var(--nx-display); text-transform: uppercase; color: #fff; letter-spacing: 0; }
.nxg-card h1 em { font-style: normal; color: var(--nx-pink); text-shadow: 0 0 40px var(--nx-pink-glow); }
.nxg-sub { max-width: 520px; margin: 26px 0 34px; font: 400 clamp(15px, 1.3vw, 18px)/1.6 var(--nx-body); color: var(--nx-muted); }
.nxg-choices { display: flex; flex-wrap: wrap; gap: 14px; }
:is(#nx-gate, #nx-game) .nxg-skip { align-self: flex-start; margin-top: 34px; display: inline-flex; gap: 10px; align-items: center; background: none; border: 0; padding: 0; color: var(--nx-muted); font: 500 13px/1 var(--nx-body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
:is(#nx-gate, #nx-game) .nxg-skip:hover { color: #fff; }
.nxg-flash { position: absolute; inset: 0; z-index: 60; pointer-events: none; background: radial-gradient(circle, rgba(211,18,47,.9), #300 70%); opacity: 0; }
.nxg-flash.go { animation: nxFlash .9s ease-out; }
@keyframes nxFlash { 0% { opacity: .95; } 100% { opacity: 0; } }
#nx-gate .nx-lamp svg { filter: none; }
#nx-gate .nx-lamp:not(.is-on) svg { filter: brightness(.12) saturate(0); }
.nxg-intro { position: absolute; z-index: 34; left: clamp(16px, 4vw, 60px); top: 20%; max-width: min(620px, 46vw); pointer-events: none; }
#nx-gate .nxg-title { margin: 0; font: 600 clamp(40px, 5.6vw, 88px)/1 var(--nx-display); text-transform: uppercase; color: #fff; letter-spacing: 0; }
#nx-gate .nxg-title em { font-style: normal; color: var(--nx-pink); text-shadow: 0 0 40px var(--nx-pink-glow); }
.nxg-lede { margin: 22px 0 0; max-width: 440px; font: 400 clamp(15px, 1.25vw, 18px)/1.6 var(--nx-body); color: var(--nx-text); opacity: .85; }
.nxg-topr { display: flex; gap: 22px; }
.nxg-mark { transform: translate(-50%, -50%) rotate(var(--rot, -4deg)); }

.nx-toast { position: fixed; z-index: 99999; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; padding: 14px 22px; border-radius: 8px; background: #111; border: 1px solid var(--nx-pink); color: #fff; font: 600 14px/1.3 var(--nx-body); box-shadow: 0 0 40px var(--nx-pink-glow); transition: .5s; }
.nx-toast.in { transform: translate(-50%, 0); opacity: 1; }

.nx-sound-toggle.nx-sound-toggle.nx-sound-toggle { background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 30px; padding: 8px 14px; font: 600 11px/1 var(--nx-body); letter-spacing: 0; text-transform: uppercase; cursor: pointer; }
.nx-sound-toggle.nx-sound-toggle.nx-sound-toggle .on, .nx-sound-toggle.nx-sound-toggle.nx-sound-toggle.is-on .off { display: none; }
.nx-sound-toggle.nx-sound-toggle.nx-sound-toggle.is-on .on { display: inline; }
.nx-sound-toggle.nx-sound-toggle.nx-sound-toggle.is-on { border-color: var(--nx-pink); color: var(--nx-pink); }

@media (max-width: 767px) {
  .nxg-hud { flex-direction: column; align-items: stretch; gap: 14px; }
  .nxg-keys { display: none; }
  .nxg-tip-text { margin-bottom: 0; }
  .nxg-lock { padding: 10px; }
  .nxg-pad button { height: 34px; }
  .nxg-slot { width: 54px; height: 60px; }
  .nx-lamp { width: 66px; height: 106px; }
  .nxg-scrawl-a { top: 14%; }
  .nxg-scrawl-b { top: 24%; }
  .nxg-card { background: rgba(0,0,0,.8); }
}
@media (prefers-reduced-motion: reduce) { .nxg-grain { animation: none; } .nx-lamp.is-on .nx-flame { animation: none; } }

.nx-replay { color: var(--nx-pink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.nx-replay:hover { color: #fff; }
@media (max-width: 767px) { .nxg-intro { top: 13%; max-width: none; right: 16px; } .nxg-topr .nx-key-btn kbd { display: none; } }

.nxg-hint { margin-bottom: 16px; padding: 16px 18px; max-width: 400px; border-left: 2px solid var(--nx-pink); background: rgba(8,7,10,.78); backdrop-filter: blur(6px); opacity: 0; transform: translateY(8px); transition: .35s; }
.nxg-hint.in { opacity: 1; transform: none; }
.nxg-hint .nxg-tip-text { margin: 0; }
#nx-gate .nxg-slot { width: 64px; height: 74px; border: 1px solid var(--nx-line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--nx-muted); cursor: pointer; transition: .2s; }
#nx-gate .nxg-slot:hover { border-color: rgba(255,255,255,.4); color: #fff; }
#nx-gate .nxg-slot.is-sel { border-color: var(--nx-pink); color: #fff; box-shadow: inset 0 0 18px rgba(211,18,47,.3), 0 0 16px rgba(211,18,47,.35); }
#nx-gate .nxg-slot.is-sel b { animation: nxBlink 1s steps(2) infinite; }
@keyframes nxBlink { 50% { opacity: .35; } }
@media (max-width: 767px) { #nx-gate .nxg-slot { width: 54px; height: 60px; } }

.nxg-ready-btns { margin-top: 30px; pointer-events: auto; transition: opacity .4s, transform .4s; }
.nx-gate.is-playing .nxg-ready-btns { opacity: 0; transform: translateY(10px); pointer-events: none; visibility: hidden; transition: opacity .4s, transform .4s, visibility 0s .4s; }
.nxg-intro { transition: opacity .6s, transform .6s, visibility 0s; }
.nx-gate.is-playing .nxg-intro { opacity: 0; transform: translateY(-16px); visibility: hidden; transition: opacity .6s, transform .6s, visibility 0s .6s; }

/* gate controls: drawn icon + plain text links, no keycaps */
#nx-gate .nxg-topr { align-items: center; gap: 28px; }
#nx-gate .nxg-icon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); display: grid; place-items: center; color: rgba(255,255,255,.75); cursor: pointer; transition: .25s; }
#nx-gate .nxg-icon:hover { border-color: #fff; color: #fff; }
#nx-gate .nxg-icon.is-on { border-color: var(--nx-pink); color: #fff; box-shadow: 0 0 18px rgba(211,18,47,.45); }
.nxg-spk { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nxg-spk .b { fill: currentColor; stroke: none; }
.nxg-spk .w1, .nxg-spk .w2 { opacity: 0; transition: opacity .25s; }
.is-on .nxg-spk .w1, .is-on .nxg-spk .w2 { opacity: 1; }
.is-on .nxg-spk .x { opacity: 0; }
#nx-gate .nxg-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; color: rgba(255,255,255,.7);
  font: 500 14px/1 var(--nx-display); letter-spacing: 0; text-transform: uppercase; transition: color .25s; }
#nx-gate .nxg-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(.25); transform-origin: left; transition: transform .35s; }
#nx-gate .nxg-link:hover { color: #fff; }
#nx-gate .nxg-link:hover::after { transform: scaleX(1); }
#nx-gate .nxg-link span { transition: transform .3s; }
#nx-gate .nxg-link:hover span { transform: translateX(4px); }
#nx-gate .nxg-ready-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 34px; }
#nx-gate .nxg-start { padding: 18px 40px; cursor: pointer; color: #fff; background: var(--nx-pink); clip-path: polygon(0 0, 100% 0, 100% 72%, 94% 100%, 0 100%);
  font: 600 17px/1 var(--nx-display); letter-spacing: 0; text-transform: uppercase; transition: background .25s, transform .25s; }
#nx-gate .nxg-start:hover { background: #ee1a3a; transform: translateY(-2px); }
#nx-gate .nxg-start:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
#nx-gate .nxg-hint-btn { font-size: 13px; }
.nxg-fail .nxg-ready-btns { margin-top: 0; }

#nx-gate:not(.is-playing) .nxg-topr .nxg-link { display: none; }

/* ---------- interactive crypt ([nx_crypt]) - positions are % of the 1920x1080 photo ---------- */
.nx-crypt { position: relative; }
.nxc-scene { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000; perspective: 1400px; user-select: none; -webkit-user-select: none; }
.nxc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nxc-dark { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,.45), rgba(0,0,0,.78)); transition: opacity 1s ease; pointer-events: none; }
.nx-crypt.is-lit .nxc-dark { opacity: .12; }
/* the photo's lantern is lit; this patch puts it out until clicked */
.nxc-lantern-off { position: absolute; left: 78.6%; top: 42%; width: 8.6%; height: 24%; border-radius: 40%; background: radial-gradient(ellipse at 50% 60%, rgba(10,6,4,.94) 0, rgba(10,6,4,.85) 45%, rgba(10,6,4,0) 75%); transition: opacity .5s; pointer-events: none; }
.nx-crypt.is-lit .nxc-lantern-off { opacity: 0; }
.nxc-glow { position: absolute; left: 82.8%; top: 58%; width: 90%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,190,110,.55) 0, rgba(255,120,50,.22) 18%, rgba(200,40,30,.08) 38%, transparent 60%); transition: opacity 1s; }
.nx-crypt.is-lit .nxc-glow { opacity: 1; animation: nxcFlick 3s infinite; }
@keyframes nxcFlick { 0%, 100% { opacity: 1; } 9% { opacity: .82; } 11% { opacity: 1; } 43% { opacity: .9; } 47% { opacity: 1; } 71% { opacity: .78; } 73% { opacity: .95; } }

.nxc-hit { position: absolute; cursor: pointer; border-radius: 12px; z-index: 6; outline: none; }
.nxc-hit::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse, rgba(255,230,200,.10), transparent 70%); opacity: 0; transition: opacity .3s; }
.nxc-hit:hover::after, .nxc-hit:focus-visible::after { opacity: 1; }
.nxc-hit:focus-visible { box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
[data-obj="skull"] { left: 14.4%; top: 20.4%; width: 8.2%; height: 12%; border-radius: 50%; }
[data-obj="chest"] { left: 3.9%; top: 57.6%; width: 28.8%; height: 34.4%; }
[data-obj="mirror"] { left: 40%; top: 15%; width: 19.6%; height: 60%; }
[data-obj="lantern"] { left: 78%; top: 36.5%; width: 9.8%; height: 32%; }

/* mirror: a hand presses against the glass from the inside */
.nxc-mirror-fx { position: absolute; left: 41.9%; top: 22.2%; width: 15.4%; height: 48.6%; overflow: hidden; border-radius: 46% 46% 2% 2% / 12% 12% 1% 1%; pointer-events: none; z-index: 3; }
.nxc-hand { position: absolute; left: 50%; top: 52%; width: 84%; transform: translate(-50%, -50%) scale(.86); opacity: 0; filter: blur(10px) brightness(.8); transition: opacity .9s ease, transform 1.6s cubic-bezier(.2,.8,.2,1), filter 1.2s; }
.nx-crypt.hand-in .nxc-hand { opacity: .9; transform: translate(-50%, -50%) scale(1); filter: blur(.4px) brightness(1); }
.nx-crypt.hand-out .nxc-hand { opacity: 0; transform: translate(-50%, -50%) scale(.92); filter: blur(12px); transition: opacity 1.4s ease, transform 1.4s, filter 1.4s; }
.nxc-fog { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(220,220,230,.18), transparent 60%); opacity: 0; transition: opacity 1s; }
.nx-crypt.hand-in .nxc-fog { opacity: 1; }
.nx-crypt.hand-in [data-obj="mirror"] { animation: nxcJolt .4s .25s; }
@keyframes nxcJolt { 30% { transform: translate(1px, -1px); } 60% { transform: translate(-1px, 1px); } }

/* chest: the lid swings back, light spills out, a key rises */
.nxc-chest-fx { position: absolute; left: 3.9%; top: 58.1%; width: 28.6%; height: 6.9%; z-index: 4; pointer-events: none; transform-style: preserve-3d; }
.nxc-inside { position: absolute; left: 1%; right: 1%; top: 0; bottom: 0; border-radius: 40% 40% 4px 4px / 60% 60% 4px 4px; opacity: 0; transition: opacity .3s .1s;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,190,90,.95) 0, rgba(200,60,20,.7) 35%, #0a0505 75%); box-shadow: inset 0 6px 14px rgba(0,0,0,.9); }
.nxc-lid { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 0; transition: transform 1s cubic-bezier(.5,0,.2,1); border-radius: 40% 40% 0 0 / 70% 70% 0 0; }
.nxc-lid img { position: absolute; left: -13.64%; top: -842%; width: 349.65%; max-width: none; height: auto; }
.nx-crypt.chest-open .nxc-lid { transform: rotateX(78deg) translateZ(1px); filter: brightness(.6); }
.nx-crypt.chest-open .nxc-inside { opacity: 1; }
.nxc-beam { position: absolute; left: -20%; right: -20%; bottom: 0; height: 900%; mix-blend-mode: screen; opacity: 0; transform-origin: 50% 100%; transform: scaleY(.3);
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255,180,90,.55) 0, rgba(255,110,50,.25) 35%, transparent 72%); transition: opacity .9s .35s, transform 1.2s .35s cubic-bezier(.2,.8,.2,1); }
.nx-crypt.chest-open .nxc-beam { opacity: 1; transform: scaleY(1); animation: nxcFlick 2.6s 1.6s infinite; }
  filter: drop-shadow(0 0 10px rgba(255,170,80,.8)) drop-shadow(0 0 22px rgba(211,18,47,.6)); transition: top 1.1s .5s cubic-bezier(.2,.8,.2,1), opacity .5s .5s, transform 1.1s .5s; }

/* skull: eyes light up, riddle card */
.nxc-eyes { position: absolute; left: 17%; top: 25.6%; width: 4.4%; height: 2%; z-index: 5; pointer-events: none; display: flex; justify-content: space-between; opacity: 0; transition: opacity .4s; }
.nxc-eyes i { width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0, #ff3a3a 30%, rgba(211,18,47,0) 70%); filter: blur(1px); }
.nx-crypt.skull-awake .nxc-eyes { opacity: 1; animation: nxcEyes 2s infinite; }
.nx-crypt.skull-laugh [data-obj="skull"] { animation: nxcLaugh .12s 8 alternate; }
@keyframes nxcEyes { 50% { opacity: .55; } }
@keyframes nxcLaugh { to { transform: translateY(-3px) rotate(-2deg); } }
.nxc-pop { position: absolute; z-index: 10; left: 24%; top: 12%; width: min(330px, 46%); padding: 20px 22px; border-radius: 10px; background: rgba(10,9,12,.92); border: 1px solid rgba(255,255,255,.12); border-left: 2px solid var(--nx-pink);
  backdrop-filter: blur(8px); box-shadow: 0 20px 60px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, transform .3s, visibility 0s .3s; }
.nxc-pop.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s; }
.nxc-pop.shake { animation: nxShake .35s; }
.nxc-q { margin: 0 24px 16px 0; font: 500 clamp(15px, 1.4vw, 19px)/1.35 var(--nx-display); letter-spacing: 0; text-transform: uppercase; color: #fff; }
.nxc-a { display: flex; flex-direction: column; gap: 8px; }
#nx-crypt .nxc-a button { text-align: left; padding: 10px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; color: var(--nx-text); font: 500 14px/1.2 var(--nx-body); cursor: pointer; transition: .2s; }
#nx-crypt .nxc-a button:hover { border-color: #fff; background: rgba(255,255,255,.05); }
#nx-crypt .nxc-a button.is-wrong { border-color: var(--nx-pink); color: var(--nx-muted); text-decoration: line-through; cursor: default; }
#nx-crypt .nxc-a .nxc-next { background: var(--nx-pink); border-color: var(--nx-pink); color: #fff; font: 500 14px/1 var(--nx-display); letter-spacing: 0; text-transform: uppercase; align-self: flex-start; }
#nx-crypt .nxc-x { position: absolute; right: 10px; top: 8px; width: 28px; height: 28px; color: var(--nx-muted); font-size: 22px; line-height: 1; cursor: pointer; }
#nx-crypt .nxc-x:hover { color: #fff; }
@media (max-width: 767px) {
  .nxc-scene { border-radius: 8px; }
  .nxc-pop { left: 4%; right: 4%; top: auto; bottom: 4%; width: auto; padding: 14px 16px; }
  .nxc-q { font-size: 14px; margin-bottom: 10px; }
  #nx-crypt .nxc-a button { padding: 8px 12px; font-size: 13px; }
}

/* phones: compact lock so the figure stays clear */
@media (max-width: 767px) {
  .nxg-dark, .nxg-lit { background-repeat: no-repeat; }
  .nxg-hud { padding: 0 12px 12px; gap: 10px; }
  .nxg-tip { order: 2; }
  .nxg-lock { padding: 10px; }
  .nxg-slots { gap: 8px; margin-bottom: 8px; }
  #nx-gate .nxg-slot { width: 48px; height: 48px; flex-direction: row; gap: 6px; }
  .nxg-slot .nx-shape { font-size: 14px; }
  .nxg-slot b { font-size: 20px; }
  .nxg-pad { grid-template-columns: repeat(6, 1fr); gap: 5px; }
  :is(#nx-gate, #nx-game) .nxg-pad button { height: 34px; font-size: 14px; }
  .nxg-hint { margin-bottom: 8px; padding: 10px 12px; }
  #nx-gate .nxg-hint-btn { font-size: 12px; }
}

/* ---------- How It Works safe dial ([nx_how]) ---------- */
.nx-safe { display: grid; grid-template-columns: minmax(280px, 42%) 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.nxs-left { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.nxs-dialwrap { position: relative; width: min(420px, 100%); aspect-ratio: 1; filter: drop-shadow(0 40px 60px rgba(0,0,0,.7)); }
.nxs-pin { position: absolute; z-index: 2; left: 50%; top: -14px; width: 0; height: 0; transform: translateX(-50%); border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 18px solid var(--nx-pink); filter: drop-shadow(0 0 8px var(--nx-pink-glow)); }
.nxs-dial { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; transition: filter .4s; outline: none; will-change: transform; }
.nxs-dial:active { cursor: grabbing; }
.nxs-dial:focus-visible { filter: drop-shadow(0 0 2px rgba(255,255,255,.6)); }
.nxs-ticks line { stroke: rgba(255,255,255,.35); stroke-width: 1.4; }
.nxs-ticks line.tm { stroke: rgba(255,255,255,.55); stroke-width: 2; }
.nxs-ticks line.tb { stroke: #fff; stroke-width: 3; }
.nxs-ticks text { fill: #e8e4ec; font: 500 21px 'Oswald', sans-serif; text-anchor: middle; letter-spacing: 0; }
.nxs-notch rect { fill: rgba(255,255,255,.1); }
.nxs-core { fill: #2a0a10; stroke: var(--nx-pink); stroke-width: 2; transition: fill .4s; }
.nx-safe.is-open .nxs-core { fill: var(--nx-pink); }
.nx-safe.is-open .nxs-dial { filter: drop-shadow(0 0 30px rgba(211,18,47,.45)); }
.nxs-combo { display: flex; gap: 12px; }
#nx-safe .nxs-num { width: 66px; height: 54px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: rgba(255,255,255,.03); color: rgba(255,255,255,.5); font: 500 24px/1 'Oswald', sans-serif; letter-spacing: 0; cursor: pointer; transition: .3s; }
#nx-safe .nxs-num:hover { border-color: rgba(255,255,255,.5); color: #fff; }
#nx-safe .nxs-num.is-cracked { border-color: var(--nx-pink); color: #fff; background: rgba(211,18,47,.12); box-shadow: 0 0 18px rgba(211,18,47,.3); }
#nx-safe .nxs-num.is-now { color: #fff; border-color: #fff; }
.nxs-help { margin: 0; color: var(--nx-muted); font: 400 13px/1 'Oswald', sans-serif; letter-spacing: 0; text-transform: uppercase; }
.nxs-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #000; }
.nxs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); clip-path: inset(0 0 0 100%); transition: opacity .2s .5s, transform 1.4s cubic-bezier(.2,.8,.2,1), clip-path .8s cubic-bezier(.7,0,.2,1); }
.nxs-img.is-on { opacity: 1; transform: none; clip-path: inset(0 0 0 0); transition: opacity 0s, transform 1.4s cubic-bezier(.2,.8,.2,1), clip-path .8s cubic-bezier(.7,0,.2,1); z-index: 1; }
.nxs-bolt { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(211,18,47,.18), transparent); transform: translateX(-100%); }
.nxs-bolt.go { animation: nxsSweep .9s ease; }
@keyframes nxsSweep { to { transform: translateX(100%); } }
.nxs-copy { position: relative; min-height: 190px; margin-top: 30px; }
.nxs-step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(14px); transition: .5s; pointer-events: none; }
.nxs-step.is-on { opacity: 1; transform: none; pointer-events: auto; transition: .6s .2s; }
.nxs-k { display: block; margin-bottom: 10px; color: var(--nx-pink); font: 500 15px/1 'Oswald', sans-serif; letter-spacing: 0; text-transform: uppercase; }
.nxs-step h3 { margin: 0 0 12px; color: #fff !important; font: 600 clamp(30px, 3.4vw, 50px)/1 'Oswald', sans-serif !important; text-transform: uppercase; letter-spacing: 0; }
.nxs-step p { margin: 0; max-width: 560px; color: var(--nx-text); font: 400 17px/1.6 var(--nx-body); }
.nxs-cta { display: inline-block; margin-top: 22px; padding: 16px 30px; background: var(--nx-pink); color: #fff !important; font: 500 15px/1 'Oswald', sans-serif; letter-spacing: 0; text-transform: uppercase; text-decoration: none !important; transition: .3s; }
.nxs-cta:hover { background: #9e0c22; }
@media (max-width: 900px) {
  .nx-safe { grid-template-columns: 1fr; }
  .nxs-dialwrap { width: min(300px, 80vw); }
  #nx-safe .nxs-num { width: 58px; height: 46px; font-size: 20px; }
  .nxs-copy { min-height: 220px; margin-top: 22px; }
}
/* ---------- countdown ---------- */
.nx-count { display: flex; align-items: flex-end; gap: 14px; color: #fff; }
.nxct-l { align-self: center; font: 400 13px/1 var(--nx-display); letter-spacing: 0; text-transform: uppercase; color: var(--nx-pink); margin-right: 4px; }
.nxct-v { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 42px; }
.nxct-v b { font: 600 30px/1 var(--nx-display); }
.nxct-v i { font: 400 10px/1 var(--nx-body); font-style: normal; letter-spacing: 0; text-transform: uppercase; color: var(--nx-muted); }

/* chest close-up: the camera drops into the open chest */
.nxc-close { position: absolute; inset: 0; z-index: 20; overflow: hidden; opacity: 0; visibility: hidden; transform: scale(.32); transform-origin: 18% 72%;
  transition: opacity .5s, transform .9s cubic-bezier(.6,0,.2,1), visibility 0s .9s; }
.nx-crypt.close-open .nxc-close { opacity: 1; visibility: visible; transform: none; transition: opacity .5s, transform .9s cubic-bezier(.6,0,.2,1), visibility 0s; }
.nxc-close-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nxc-close::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.55)); }
.nxc-ck { position: absolute; cursor: pointer; border-radius: 14px; outline: none; }
.nxc-ck:focus-visible { box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
[data-close="letter"] { left: 21%; top: 17%; width: 32%; height: 46%; transform: rotate(-12deg); }
[data-close="bones"] { left: 66%; top: 32%; width: 17%; height: 27%; }
[data-close="bones"].rattle { animation: nxcRattle .07s 8 alternate; }
@keyframes nxcRattle { to { transform: translate(2px, -1px) rotate(1deg); } }
.nxc-close-key { left: 39.4%; top: 33.5%; width: 27.1%; height: auto; z-index: 3; border-radius: 0; transform-origin: 50% 50%;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), filter .3s, left 1s cubic-bezier(.6,0,.2,1), top 1s cubic-bezier(.6,0,.2,1), width 1s, opacity .4s; }
.nxc-close-key:hover { filter: drop-shadow(0 0 16px rgba(255,170,80,.9)) brightness(1.15); }
.nx-crypt.key-lift .nxc-close-key { transform: translateY(-14%) scale(1.3) rotate(-10deg); filter: drop-shadow(0 30px 30px rgba(0,0,0,.8)) drop-shadow(0 0 22px rgba(255,170,80,.8)) brightness(1.2); }
.nx-crypt.key-taken .nxc-close-key { left: 88%; top: 82%; width: 7%; opacity: 0; transform: rotate(20deg); pointer-events: none; }
/* where the key was: velvet left blurred and dark */
.nxc-hole { position: absolute; left: 34%; top: 47%; width: 38%; height: 14%; z-index: 2; border-radius: 50%; opacity: 0; transition: opacity .6s .3s; transform: rotate(-37deg);
  background: radial-gradient(ellipse, rgba(58,6,10,1) 0, rgba(70,8,12,.92) 50%, transparent 74%); filter: blur(9px); }
.nx-crypt.key-taken .nxc-hole { opacity: 1; }
.nxc-pocket { position: absolute; right: 2.4%; bottom: 4%; z-index: 25; width: 7.5%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(10,9,12,.75);
  display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: .5s .6s; pointer-events: none; backdrop-filter: blur(6px); }
.nxc-pocket img { width: 74%; transform: rotate(-30deg); filter: drop-shadow(0 0 8px rgba(255,170,80,.7)); }
.nx-crypt.key-taken .nxc-pocket { opacity: 1; transform: none; }
/* the letter */
.nxc-note { position: absolute; z-index: 5; left: 50%; top: 52%; width: min(440px, 56%); padding: 34px 38px 30px; transform: translate(-50%, -40%) rotate(-2deg); opacity: 0; visibility: hidden;
  background: linear-gradient(160deg, #e9dcc0, #cdb88f); color: #2a1d12; box-shadow: 0 30px 70px rgba(0,0,0,.75), inset 0 0 60px rgba(120,80,30,.35);
  font: italic 400 clamp(15px, 1.6vw, 21px)/1.5 'IM Fell English', Georgia, serif; transition: .5s cubic-bezier(.2,.8,.2,1); }
.nxc-note p { margin: 0 0 12px; }
.nxc-note .sig { text-align: right; font-size: 1.3em; margin: 0; }
.nx-crypt.note-open .nxc-note { opacity: 1; visibility: visible; transform: translate(-50%, -50%) rotate(-2deg); }
#nx-crypt .nxc-back { position: absolute; z-index: 6; right: 2%; top: 3%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(10,9,12,.6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
#nx-crypt .nxc-back:hover { border-color: #fff; }
@media (max-width: 767px) { .nxc-note { padding: 18px 20px; width: 78%; font-size: 13px; } #nx-crypt .nxc-back { width: 34px; height: 34px; font-size: 20px; } }
@media (max-width: 767px) {
  .nxg-top { padding: 14px 14px; }
  .nxg-timer { width: 46px; height: 46px; }
  .nxg-timer span { font-size: 15px; }
  .nxg-timer circle { stroke-width: 5; }
  .nx-logo b { font-size: 17px; letter-spacing: 0; }
  .nx-logo svg { width: 26px; height: 26px; }
  #nx-gate .nxg-icon { width: 36px; height: 36px; }
}

/* crypt mini escape: padlock, mirror door, passage, ending, status line */
[data-obj="chest"].shake { animation: nxcRattle .06s 6 alternate; }
.nx-crypt.chest-unlocked:not(.chest-open) [data-obj="chest"]::before { content: ''; position: absolute; left: 44%; top: 34%; width: 12%; height: 40%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,190,110,.35), transparent 70%); animation: nxcEyes 1.6s infinite; pointer-events: none; }
.nxc-passage, .nxc-glass { position: absolute; left: 41.9%; top: 22.2%; width: 15.4%; height: 48.6%; overflow: hidden; border-radius: 46% 46% 2% 2% / 12% 12% 1% 1%; pointer-events: none; opacity: 0; }
.nxc-passage { z-index: 2; background: #000; }
.nxc-passage img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.4); filter: brightness(.9); transition: transform 3s ease; }
.nxc-glass { z-index: 4; transform-origin: 0 50%; transition: transform 1.4s cubic-bezier(.5,0,.2,1), filter 1.4s; }
.nxc-glass img { position: absolute; left: -272.08%; top: -45.68%; width: 649.35%; max-width: none; height: auto; }
.nx-crypt.mirror-open .nxc-passage, .nx-crypt.mirror-open .nxc-glass { opacity: 1; }
.nx-crypt.mirror-open .nxc-glass { transform: perspective(900px) rotateY(-108deg); filter: brightness(.35); }
.nx-crypt.mirror-open .nxc-passage img { transform: scale(1.15); }
.nx-crypt.mirror-open .nxc-mirror-fx { opacity: 0; }
.nxc-keyhole { position: absolute; z-index: 5; left: 49.5%; top: 72.6%; width: .9%; height: 2.2%; border-radius: 50% 50% 20% 20%; background: radial-gradient(circle at 50% 30%, #000 35%, transparent 36%), linear-gradient(#000, #000) 50% 100% / 34% 55% no-repeat; opacity: .55; pointer-events: none; transition: .5s; }
.nx-crypt.hole-hint .nxc-keyhole, .nx-crypt.key-taken .nxc-keyhole { filter: drop-shadow(0 0 4px rgba(255,170,80,.9)); opacity: 1; }
.nx-crypt.key-used .nxc-keyhole { filter: drop-shadow(0 0 10px rgba(255,170,80,1)) drop-shadow(0 0 20px rgba(211,18,47,.9)); }
.nx-crypt.key-used .nxc-pocket { opacity: 0; transition: .3s; }
.nxc-fly { position: absolute; z-index: 30; filter: drop-shadow(0 0 12px rgba(255,170,80,.9)); transition: left .9s cubic-bezier(.6,0,.2,1), top .9s cubic-bezier(.6,0,.2,1), transform .9s; pointer-events: none; }
.nxc-scene > .nxc-bg, .nxc-scene > .nxc-dark, .nxc-scene > .nxc-glow { transform-origin: 50% 44%; transition: transform 1.6s cubic-bezier(.6,0,.2,1), filter 1.6s; }
.nx-crypt.through .nxc-scene > *:not(.nxc-end):not(.nxc-pop) { transform-origin: 50% 44%; transform: scale(3.2); filter: brightness(.4) blur(2px); transition: transform 1.6s cubic-bezier(.6,0,.2,1), filter 1.6s; }
.nxc-end { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6%; opacity: 0; visibility: hidden; background: radial-gradient(ellipse at 50% 50%, rgba(5,5,6,.55), rgba(5,5,6,.92)); transition: opacity .8s, visibility 0s .8s; }
.nx-crypt.ended .nxc-end { opacity: 1; visibility: visible; transition: opacity .8s; }
.nxc-end h3 { margin: 0 0 14px; color: #fff !important; font: 600 clamp(28px, 4.4vw, 64px)/1 'Oswald', sans-serif !important; text-transform: uppercase; letter-spacing: 0; }
.nxc-end h3 span { color: var(--nx-pink); }
.nxc-end p { margin: 0 0 26px; max-width: 520px; color: var(--nx-text); font: 400 clamp(14px, 1.3vw, 17px)/1.6 var(--nx-body); }
.nxc-end-btns { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; align-items: center; }
.nxc-play { padding: 16px 28px; background: var(--nx-pink); color: #fff !important; text-decoration: none !important; font: 500 15px/1 'Oswald', sans-serif; letter-spacing: 0; text-transform: uppercase; transition: .3s; }
.nxc-play:hover { background: #9e0c22; }
#nx-crypt .nxc-reset { color: rgba(255,255,255,.75); font: 500 14px/1 'Oswald', sans-serif; letter-spacing: 0; text-transform: uppercase; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 4px; }
#nx-crypt .nxc-reset:hover { color: #fff; border-color: #fff; }
.nxc-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 2px 0; }
.nxc-status { margin: 0; color: var(--nx-text); font: 400 16px/1.5 var(--nx-body); }
.nxc-status.flash { animation: nxcStatus .8s ease; }
@keyframes nxcStatus { 0% { opacity: 0; transform: translateY(6px); color: #fff; } 100% { opacity: 1; transform: none; } }
.nxc-clock { flex: none; color: var(--nx-pink); font: 500 22px/1 'Oswald', sans-serif; letter-spacing: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) { .nxc-status { font-size: 14px; } .nxc-clock { font-size: 18px; } .nxc-end h3 { font-size: 26px !important; } .nxc-end p { font-size: 13px; margin-bottom: 14px; } .nxc-play { padding: 12px 18px; font-size: 13px; } }
/* Elementor sets img{height:auto}; our cover-fit images need their height back */
#nx-crypt .nxc-bg, #nx-crypt .nxc-close-bg, #nx-crypt .nxc-passage img, #nx-safe .nxs-img { height: 100% !important; max-width: none; }
#nx-crypt .nxc-passage img { object-position: 50% 50%; }
/* the way through the mirror emerges from the dark rather than appearing as a picture */
.nxc-passage { transition: opacity 2.2s ease .5s; background: #000; }
.nxc-passage::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, transparent 20%, rgba(0,0,0,.65) 65%, #000 100%),
              linear-gradient(to top, rgba(200,200,210,.18), transparent 35%); }
#nx-crypt .nxc-passage img { filter: brightness(.2) blur(3px); transform: scale(1.6); transition: filter 2.6s ease .6s, transform 3.4s cubic-bezier(.2,.7,.2,1) .4s;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 52%, #000 35%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 50% 52%, #000 35%, transparent 100%); }
.nx-crypt.mirror-open #nx-crypt .nxc-passage img, #nx-crypt.mirror-open .nxc-passage img { filter: brightness(1) blur(0); transform: scale(1.2); }
/* no swinging pane: the glass just goes dark and gives way */
.nxc-glass { display: none; }
#nx-safe .nxs-num { display: grid; place-items: center; padding: 0; text-align: center; }

/* photographic dial: the face turns, the bezel with its pointer stays put */
.nxs-dialwrap { cursor: grab; touch-action: none; outline: none; border-radius: 50%; }
.nxs-dialwrap:active { cursor: grabbing; }
.nxs-dialwrap:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,.4); }
#nx-safe .nxs-face, #nx-safe .nxs-bezel { position: absolute; inset: 0; width: 100% !important; height: 100% !important; pointer-events: none; -webkit-user-drag: none; }
#nx-safe .nxs-face { will-change: transform; }
.nx-safe.is-open .nxs-dialwrap { filter: drop-shadow(0 0 40px rgba(211,18,47,.35)) drop-shadow(0 40px 60px rgba(0,0,0,.7)); }

/* header sound control: a drawn speaker in a ring */
.nx-sound-toggle.nx-sound-toggle.nx-sound-toggle { width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: none; color: rgba(255,255,255,.8); display: grid; place-items: center; cursor: pointer; transition: .25s; }
.nx-sound-toggle.nx-sound-toggle.nx-sound-toggle:hover { border-color: #fff; color: #fff; background: none; }
.nx-sound-toggle.nx-sound-toggle.nx-sound-toggle.is-on { border-color: var(--nx-pink); color: #fff; box-shadow: 0 0 14px rgba(211,18,47,.4); }
.nx-sound-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nx-sound-toggle svg .b { fill: currentColor; stroke: none; }
.nx-sound-toggle svg .w1, .nx-sound-toggle svg .w2 { opacity: 0; } .nx-sound-toggle.is-on svg .w1, .nx-sound-toggle.is-on svg .w2 { opacity: 1; } .nx-sound-toggle.is-on svg .x { opacity: 0; }
/* gate opening: centred */
.nxg-intro { left: 50% !important; right: auto !important; top: 15% !important; transform: translateX(-50%); width: min(820px, 92vw); max-width: none !important; text-align: center; }
.nx-gate.is-playing .nxg-intro { transform: translate(-50%, -16px); }
.nxg-lede { margin-left: auto !important; margin-right: auto !important; }
#nx-gate .nxg-ready-btns { justify-content: center; }
@media (max-width: 767px) { .nxg-intro { top: 11% !important; } }
/* gate opening: dead centre of the screen */
.nxg-intro { top: 50% !important; transform: translate(-50%, -54%) !important; }
.nx-gate.is-playing .nxg-intro { transform: translate(-50%, -60%) !important; }
@media (max-width: 767px) { .nxg-intro { top: 46% !important; } }
/* once the key is out the chest glow settles, and it's gone entirely when you go through the mirror */
.nx-crypt.key-taken .nxc-beam { opacity: .25; animation: none; transition: opacity 1.2s; }
.nx-crypt.through .nxc-chest-fx, .nx-crypt.through .nxc-beam, .nx-crypt.through .nxc-glow, .nx-crypt.ended .nxc-chest-fx { opacity: 0 !important; transition: opacity .6s; }
.nx-crypt.ended .nxc-end { background: radial-gradient(ellipse at 50% 50%, rgba(5,5,6,.88), #050506 80%); }
/* end screen of the taster: room to breathe */
.nxc-end { padding: 6% 10%; }
.nxc-end h3 { margin: 0 0 26px !important; line-height: 1.05 !important; }
.nxc-end h3 span { display: block; margin-top: 10px; font-size: .55em; }
.nxc-end p { margin: 0 auto 40px !important; max-width: 470px; line-height: 1.7 !important; }
.nxc-end-btns { gap: 18px 40px; }
@media (max-width: 767px) { .nxc-end h3 { margin-bottom: 12px !important; } .nxc-end p { margin-bottom: 18px !important; } .nxc-end p { display: none; } }
/* dial sits in the dark with the rest of the page: no halo, dimmer steel, faint red rim */
#nx-safe .nxs-dialwrap, .nx-safe.is-open .nxs-dialwrap { filter: none !important; position: relative; }
#nx-safe .nxs-face, #nx-safe .nxs-bezel { filter: brightness(.58) contrast(1.12) saturate(.85); }
#nx-safe .nxs-dialwrap::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at 46% 38%, transparent 38%, rgba(14,13,17,.35) 62%, rgba(14,13,17,.8) 70.5%, rgba(14,13,17,0) 71%),
              radial-gradient(circle at 74% 82%, rgba(211,18,47,.16), transparent 42%); }
.nx-safe.is-open .nxs-dialwrap::after { background: radial-gradient(circle at 46% 38%, transparent 38%, rgba(14,13,17,.3) 62%, rgba(14,13,17,.7) 70.5%, rgba(14,13,17,0) 71%), radial-gradient(circle at 50% 50%, rgba(211,18,47,.22), transparent 60%); }
#nx-safe .nxs-dialwrap::after { inset: 5.6%; background: radial-gradient(circle closest-side at 50% 50%, transparent 52%, rgba(14,13,17,.3) 80%, rgba(14,13,17,.75) 100%), radial-gradient(circle at 74% 82%, rgba(211,18,47,.14), transparent 46%) !important; }
.nx-safe.is-open .nxs-dialwrap::after { background: radial-gradient(circle closest-side at 50% 50%, transparent 52%, rgba(14,13,17,.25) 80%, rgba(14,13,17,.7) 100%), radial-gradient(circle at 50% 50%, rgba(211,18,47,.2), transparent 62%) !important; }

/* ===== How It Works v3: full-width cinematic panel ===== */
#nx-safe.nx-safe { position: relative; display: block; min-height: min(92vh, 860px); overflow: hidden; background: #050506; }
.nxs-bgs { position: absolute; inset: 0; }
#nx-safe .nxs-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; opacity: 0; clip-path: none; transform: scale(1.08); transition: opacity 1.2s ease, transform 7s ease-out; }
#nx-safe .nxs-img.is-on { opacity: 1; transform: scale(1); z-index: 0; }
.nxs-bgs::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #050506 0%, rgba(5,5,6,.9) 30%, rgba(5,5,6,.35) 62%, rgba(5,5,6,.55) 100%), linear-gradient(to top, #050506 0, transparent 22%), linear-gradient(to bottom, #050506 0, transparent 18%); }
.nxs-inner { position: relative; z-index: 1; max-width: 1320px; min-height: inherit; margin: 0 auto; padding: 110px 24px; display: grid; grid-template-columns: 1fr minmax(300px, 40%); gap: 60px; align-items: center; }
.nxs-copy { max-width: 560px; }
.nxs-h { margin: 0 0 14px; color: #fff !important; font: 600 clamp(40px, 4.4vw, 62px)/1 'Oswald', sans-serif !important; text-transform: uppercase; }
.nxs-intro { margin: 0 0 44px; color: var(--nx-muted); font: 400 17px/1.6 var(--nx-body); }
.nxs-steps { position: relative; min-height: 190px; }
#nx-safe .nxs-step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(14px); transition: .5s; pointer-events: none; }
#nx-safe .nxs-step.is-on { opacity: 1; transform: none; pointer-events: auto; transition: .7s .25s; }
#nx-safe .nxs-step h3 { margin: 0 0 14px; font-size: clamp(34px, 3.6vw, 54px) !important; }
#nx-safe .nxs-step p { font-size: 18px; color: var(--nx-text); }
.nxs-combo { display: flex; gap: 0; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.14); }
#nx-safe .nxs-num { flex: 1; width: auto; height: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 16px 0 0; border: 0; border-top: 2px solid transparent; margin-top: -1px; border-radius: 0; background: none; box-shadow: none; text-align: left; cursor: pointer; color: rgba(255,255,255,.4); transition: color .3s, border-color .3s; }
#nx-safe .nxs-num b { font: 500 26px/1 'Oswald', sans-serif; }
#nx-safe .nxs-num span { font: 400 14px/1.2 var(--nx-body); }
#nx-safe .nxs-num:hover { color: rgba(255,255,255,.75); }
#nx-safe .nxs-num.is-now { color: #fff; }
#nx-safe .nxs-num.is-cracked { color: #fff; border-top-color: var(--nx-pink); background: none; box-shadow: none; }
#nx-safe .nxs-num.is-cracked b { color: var(--nx-pink); }
.nxs-left { gap: 22px; }
#nx-safe .nxs-dialwrap { width: min(470px, 100%); }
.nxs-help { font-family: var(--nx-body) !important; text-transform: none !important; font-size: 14px !important; color: rgba(255,255,255,.45) !important; }
.nxs-bolt { display: none; }
@media (max-width: 900px) {
  #nx-safe.nx-safe { min-height: 0; }
  .nxs-inner { grid-template-columns: 1fr; padding: 80px 18px; gap: 34px; }
  .nxs-left { order: -1; }
  #nx-safe .nxs-dialwrap { width: min(280px, 72vw); }
  .nxs-bgs::after { background: linear-gradient(to bottom, rgba(5,5,6,.75), rgba(5,5,6,.9) 45%, #050506); }
  .nxs-steps { min-height: 210px; }
  #nx-safe .nxs-num span { font-size: 12px; }
}
#nx-safe .nxs-intro { margin: 0 0 48px !important; }
#nx-safe .nxs-h { margin: 0 0 14px !important; }
#nx-safe .nxs-steps { min-height: 210px; }
#nx-safe .nxs-left { transition: opacity 1.2s ease .4s, transform 1.4s ease .4s; }
.nx-safe.is-open .nxs-left { opacity: 0; transform: scale(.92); pointer-events: none; }
@media (max-width: 900px) {
  #nx-safe .nxs-copy { display: contents; }
  #nx-safe .nxs-inner { gap: 0; }
  #nx-safe .nxs-h { order: 1; }
  #nx-safe .nxs-intro { order: 2; margin-bottom: 26px !important; }
  #nx-safe .nxs-left { order: 3; margin-bottom: 30px; }
  #nx-safe .nxs-steps { order: 4; min-height: 200px; }
  #nx-safe .nxs-combo { order: 5; margin-top: 10px; }
}
/* taster riddle: space between question and answers */
.nxc-pop { padding: 24px 26px 22px; }
.nxc-q { margin: 0 30px 22px 0 !important; line-height: 1.3 !important; }
.nxc-a { gap: 10px; }
/* paragraphs inside text blocks: space between, none after the last */
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
/* room landing: the kit's paragraph spacing was overriding these */
.nx-room .nxr-lede { margin: 0 0 52px !important; }
.nx-room .nxr-kick { margin: 0 0 22px !important; }
#nx-crypt .nxc-empty { opacity: 0; transition: opacity .8s .3s; }
.nx-crypt.key-taken #nx-crypt .nxc-empty, #nx-crypt.key-taken .nxc-empty { opacity: 1; }
.nxc-hole { display: none !important; }
/* the theme animates every <button>; the lantern must follow the pointer instantly and never glide in */
:is(#nx-gate, #nx-game, #nx-crypt, #nx-safe) button { transition: none; }
:is(#nx-gate, #nx-game) .nx-lamp, :is(#nx-gate, #nx-game) .nx-lamp:hover, :is(#nx-gate, #nx-game) .nx-lamp:focus { transition: none !important; }
/* the sound button shows on phones too, a little smaller next to the menu */
@media (max-width: 767px) { .nx-sound-toggle.nx-sound-toggle.nx-sound-toggle { width: 34px; height: 34px; } .nx-sound-toggle svg { width: 16px; height: 16px; } }
.nx-money { text-transform: none !important; }
/* a sale price pops: big, bold, bright, with a glow; the old price sits small and struck through beside it */
.nx-was { opacity: .5; font-weight: 400; font-size: .85em; text-decoration-thickness: 2px; text-decoration-color: rgba(255,74,92,.9); }
.nx-sale { display: inline-block; color: #ff4a5c; font-weight: 700; font-size: 1.45em; line-height: 1; letter-spacing: 0; text-shadow: 0 0 18px rgba(255,40,70,.55); animation: nxSale 2.6s ease-in-out infinite; vertical-align: -.08em; }
@keyframes nxSale { 50% { text-shadow: 0 0 28px rgba(255,40,70,.85); } }
.nxr-play .nx-sale { color: #fff; text-shadow: 0 0 16px rgba(255,255,255,.55); }
.nxr-play .nx-was { text-decoration-color: #fff; }
.nxc-card.festive .nx-sale { color: #FFD27A; text-shadow: 0 0 18px rgba(255,200,90,.6); }
@media (prefers-reduced-motion: reduce) { .nx-sale { animation: none; } }

/* the heroes are pulled up under the see-through header; the header must always stay on top of them,
   including before Elementor makes it sticky (some browsers only do that on the first scroll) */
.elementor-location-header { position: relative; z-index: 100; }
.elementor-location-header > .e-con.elementor-sticky--active { z-index: 100 !important; }
/* FAQ toggles: the question text stays inside its box, clear of the plus sign on the right */
body .elementor-widget-toggle .elementor-tab-title .elementor-toggle-title { display: block !important; margin-right: 0 !important; padding-right: 26px !important; overflow-wrap: anywhere; }
