/* ==========================================================================
   404.css — the not-found page: the snake game (js/snake404.js) full screen,
   and over it only the site's own pieces: the 12px label (.t), the cream
   bar button, the frame's brackets, the textured titles (css/base.css), the
   green tooltip, the grain (js/grain.js). Nothing of its own style.
   ========================================================================== */
html, body{ height:100%; overflow:hidden; background:#000; }
body{ touch-action:none; user-select:none; -webkit-user-select:none; }
#g{ position:fixed; inset:0; width:100%; height:100%; display:block; cursor:crosshair; }

/* the label (as css/sections.css .t): the only type style */
.t{ margin:0; font-size:var(--ui-12); line-height:var(--ui-lh); letter-spacing:var(--ui-track); font-kerning:none;
  text-transform:uppercase; white-space:nowrap; color:var(--c-ink); text-box:trim-both cap alphabetic; }
button{ background:none; border:0; padding:0; cursor:pointer; }

/* the big type: the site's textured titles (css/base.css, the concrete's specks) */
.nf-tx{ --tx-ink:var(--c-ink); color:transparent;
  background-image:var(--tex-specks, none), linear-gradient(var(--tx-ink), var(--tx-ink));
  background-size:var(--tex-size, 768px), 100% 100%; background-repeat:repeat, no-repeat;
  -webkit-background-clip:text; background-clip:text;
  padding:.14em .08em; margin:-.14em -.08em; line-height:1; display:inline-block; }

/* ---- HEADER (as the Contact page's) ------------------------------------ */
.nf-nav{ position:fixed; inset:0 0 auto 0; height:50px; z-index:5; pointer-events:none; }
.nf-nav__logo{ position:absolute; left:var(--gut); top:var(--gut); width:167px; height:33px; pointer-events:auto; }
.nf-nav__logo img{ width:100%; height:100%; }
.nf-nav__links{ position:absolute; right:578px; top:var(--gut); height:20px; display:flex; align-items:center; gap:5px; margin:0; padding:0; list-style:none; pointer-events:auto; }
.nf-nav__links .t{ display:block; transition:opacity .25s; }
.nf-nav__links a:hover, .nf-nav__links a:focus-visible{ opacity:.6; }
.nf-nav__cta{ position:absolute; right:var(--gut); top:var(--gut); width:568px; height:20px; background:var(--c-ink); display:grid; place-items:center; pointer-events:auto; }
.nf-nav__cta .t{ color:#000; }

/* ---- THE SCORE: the record in the middle; the masks eaten beside it, only in a game */
.nf-hud{ position:fixed; left:50%; top:35px; transform:translateX(-50%); z-index:5; pointer-events:none; }
.nf-stat{ position:relative; width:128px; height:100px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; }
.nf-stat--now{ position:absolute; left:0; top:0; visibility:hidden; }   /* in the record's place: one at a time */
.nf-brk{ position:absolute; width:17px; height:17px; }
.nf-brk--tl{ left:0; top:0; } .nf-brk--tr{ right:0; top:0; } .nf-brk--bl{ left:0; bottom:0; } .nf-brk--br{ right:0; bottom:0; }
.nf-k{ opacity:.6; }
.nf-v{ font-size:56px; line-height:1; font-variant-numeric:tabular-nums; }
.nf-v.rec{ --tx-ink:#01be5a; }

/* ---- THE MINIMAP (as css/about.css .gm-mini) ---------------------------- */
.nf-mini{ position:fixed; left:var(--gut); top:70px; width:161px; height:161px; z-index:5; pointer-events:none; }
.nf-mini canvas{ display:block; width:161px; height:161px; transition:filter .6s; }
html.nf-over .nf-mini canvas{ filter:grayscale(1); }

/* ---- THE CARD ----------------------------------------------------------- */
.nf-card{ position:fixed; left:50%; top:50%; transform:translate(-50%, -50%); z-index:4; width:min(96vw, 1100px);
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:20px; pointer-events:none; }
.nf-eyebrow{ display:flex; gap:10px; margin:0; }
.nf-eyebrow .t + .t{ opacity:.6; max-width:40vw; overflow:hidden; text-overflow:ellipsis; }
.nf-title{ margin:.14em 0 0; text-transform:uppercase; font-size:clamp(140px, 24vw, 360px); line-height:.82; font-weight:900; }
.nf-card.is-small .nf-title{ font-size:clamp(90px, 13vw, 200px); }
.nf-card.is-over .nf-title .nf-tx{ --tx-ink:var(--c-accent); }
.nf-sub, .nf-hint{ margin:0; }
.nf-sub .t:empty{ display:none; }
.nf-hint .t{ opacity:.6; }

/* ---- "+1": the site's green tooltip (as the Contact page's) ------------ */
.nf-pops{ position:fixed; inset:0; z-index:6; pointer-events:none; }
.nf-pop{ position:absolute; left:0; top:0; height:20px; padding:0 10px; display:flex; align-items:center; gap:10px; background:#01be5a; white-space:nowrap; }
.nf-pop .t{ color:#000; }

/* ---- THE CONTROLS: the home page's filter legend (css/sections.css .st-legend) */
.nf-legend{ position:fixed; left:10px; right:150px; bottom:10px; height:26px; z-index:5; display:flex; gap:10px; pointer-events:none; }
.nf-legend__t{ position:relative; flex:1 1 0; overflow:hidden; display:flex; align-items:center; color:var(--c-ink); border-left:4px solid var(--lc); }
.nf-legend__t::before{ content:''; position:absolute; top:0; bottom:0; left:-12.13px; right:0;
  background:repeating-linear-gradient(112.587deg, transparent 0 3.6px, rgba(253,244,223,.16) 3.6px 5.2px, transparent 5.2px 5.6px);
  animation:nf-legend-stripes 1.8s linear infinite; will-change:transform; backface-visibility:hidden; }
@keyframes nf-legend-stripes{ from{ transform:translate3d(0, 0, 0); } to{ transform:translate3d(12.13px, 0, 0); } }
@media (prefers-reduced-motion: reduce){ .nf-legend__t::before{ animation:none; } }
.nf-legend__d{ position:relative; width:20px; height:20px; margin-left:10px; flex:none; display:grid; place-items:center; }
.nf-legend__d::after{ content:''; width:10px; height:10px; background:var(--lc); transform:rotate(45deg); }
.nf-legend .t{ position:relative; margin-left:5px; }
.nf-legend__r{ margin-left:auto !important; margin-right:10px; }

/* ---- SOUND: the About game's "Go back" (css/about.css .gm-br / .gm-back) */
.nf-br{ position:fixed; right:var(--gut); bottom:13px; z-index:5; display:flex; align-items:center; gap:10px; color:var(--c-ink); }
.nf-back{ display:flex; align-items:center; gap:6px; height:20px; padding:0 6px 0 0; border:1px solid currentColor; background:none; color:inherit; cursor:pointer; margin-left:8px; position:relative; }
.nf-back::before{ content:''; position:absolute; left:-10px; top:2px; width:1.5px; height:16px; background:currentColor; opacity:.6; }
.nf-back i{ width:20px; height:18px; display:grid; place-items:center; font-style:normal; border-right:1px solid currentColor; }
.nf-back i::after{ content:''; width:6px; height:6px; background:currentColor; transform:rotate(45deg); }
.nf-back[aria-pressed="false"] i::after{ background:none; box-shadow:inset 0 0 0 1px currentColor; }
.nf-back .t{ color:inherit; }
.nf-back:hover{ background:currentColor; }
.nf-back:hover .t, .nf-back:hover i{ color:#000; }

/* the way in (js/snake404.js): nothing before its turn */
html.nf-in-pending .nf-rise, html.nf-in-pending .nf-legend .nf-legend__t, html.nf-in-pending .nf-brk, html.nf-in-pending .nf-v, html.nf-in-pending .nf-title{ visibility:hidden; }

.nf-fallback{ position:fixed; inset:0; z-index:9; display:grid; place-content:center; justify-items:center; gap:24px;
  background-image:var(--tex-img, none), linear-gradient(180deg, #b30000 0%, #7a0000 32%, #300000 68%, #000 100%);
  background-size:var(--tex-size, 768px), 100% 100%; background-blend-mode:multiply, normal; }
.nf-fallback[hidden]{ display:none; }
.nf-fallback .nf-nav__cta{ position:static; width:240px; }

@media (max-width:720px){
  .nf-nav__links{ right:auto; left:180px; }
  .nf-nav__cta{ width:calc(100% - 10px); top:44px; }
  .nf-hud{ top:74px; }
  .nf-stat{ width:112px; height:80px; }
  .nf-v{ font-size:44px; }
}

/* ---- OUT OF THE ZONE: the countdown (js/snake404.js) -------------------- */
.nf-count{ position:fixed; left:50%; top:50%; transform:translate(-50%, -50%); z-index:4; display:flex; flex-direction:column; align-items:center; gap:22px; pointer-events:none; visibility:hidden; }
.nf-count b{ font-weight:900; font-size:clamp(160px, 22vw, 320px); line-height:1; --tx-ink:var(--c-ink); }

/* ---- THE ACTIVE POWER: one legend tile under the score ------------------ */
.nf-power{ position:fixed; left:50%; top:145px; transform:translateX(-50%); width:240px; height:26px; z-index:5; display:flex; pointer-events:none; visibility:hidden; }
.nf-power .t{ position:relative; margin-left:5px; }
