/* An0n — "Male-ware detected" (app/Views/creators/an0n.php).
   A corrupted system in his colours: black, hazard yellow, warning red and
   white, in terminal type. Scanlines are a still gradient; the glitches are
   short bursts on long loops; motion is transform and opacity only, paused
   off screen by site.js and stopped for reduced motion and lite mode
   (docs/MOTION.md, the mobile-performance rules). */

@font-face { font-family: 'Share Tech Mono'; src: url('/assets/fonts/share-tech-mono-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('/assets/fonts/chakra-petch-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('/assets/fonts/chakra-petch-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }

body.cp-theme-an0n {
  --an-ink: #050505; --an-panel: #0c0c0c; --an-panel2: #141414; --an-line: #2b2b2b;
  --an-yel: #ffd21f; --an-yel-d: #c9a300; --an-red: #ff2b2b; --an-white: #f2f2f2;
  --an-tx: #e9e9e9; --an-tx2: #a9a9a9; --an-tx3: #6f6f6f;
  --an-mono: 'Share Tech Mono', ui-monospace, Consolas, monospace;
  --an-head: 'Chakra Petch', 'Share Tech Mono', system-ui, sans-serif;
  --scroll-acc: #ffd21f;
  background: var(--an-ink);
}
html:has(> body.cp-theme-an0n) { --scroll-acc: #ffd21f; }

.an { position: relative; overflow-x: clip; padding: 0 0 40px; color: var(--an-tx); font-family: var(--an-mono); background:
  radial-gradient(ellipse 60% 40% at 80% 8%, rgba(255, 43, 43, .10), transparent 70%),
  radial-gradient(ellipse 50% 40% at 10% 30%, rgba(255, 210, 31, .06), transparent 70%),
  var(--an-ink); }
.an a { color: inherit; text-decoration: none; }
.an img { display: block; max-width: 100%; }

/* Scanlines: one still gradient over the whole page, and a single soft bar
   rolling down it now and then (transform only). */
.an-scan { position: fixed; inset: 0; z-index: 50; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.an-scan::after { content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 18%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .035), transparent); animation: an-roll 9s linear infinite; }
@keyframes an-roll { to { transform: translateY(700%); } }

/* ---- the ghost in the backdrop ----
   Fixed behind every section (they sit at z-index 1), edges masked into the
   dark so it reads as an image on the glass rather than a red box. One 9s
   loop: a faint stare that flickers, then a half-second burst where the
   hands-on-the-glass version snaps in, pressed a little closer, with red and
   cyan slices jittering either side. */
.an-ghost { position: fixed; z-index: 0; left: -12vw; top: 8vh; width: min(110vh, 78vw); aspect-ratio: 1024 / 949; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%); mask-image: radial-gradient(closest-side, #000 52%, transparent 100%); }
.an-ghost img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  /* His red, pulled down to deep reds and near-blacks: a ghost, not a poster. */
  filter: brightness(.74) saturate(.8) contrast(1.1); }
/* Dark glass over him, always: a tint and scanlines (still, painted once). */
.an-ghost::after { content: ""; position: absolute; inset: 0; z-index: 3;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .42) 0 2px, transparent 2px 4px),
              linear-gradient(180deg, rgba(5, 5, 5, .3), rgba(5, 5, 5, .08) 45%, rgba(5, 5, 5, .38)); }
/* The bad signal: two thin bands of his stare torn sideways, a few frames
   at a time, on their own short loops so they never land together. */
.an-ghost-tear.is-a { animation: an-ghost-tear-a 3.3s steps(1) infinite; }
.an-ghost-tear.is-b { animation: an-ghost-tear-b 4.7s steps(1) infinite; }
@keyframes an-ghost-tear-a {
  0%, 61%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  62% { opacity: .16; transform: translateX(26px); clip-path: inset(41% 0 52% 0); }
  64% { opacity: .12; transform: translateX(-14px); clip-path: inset(44% 0 47% 0); }
  66% { opacity: 0; }
  88% { opacity: .14; transform: translateX(-30px); clip-path: inset(73% 0 21% 0); }
  90% { opacity: 0; }
}
@keyframes an-ghost-tear-b {
  0%, 34%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  35% { opacity: .13; transform: translateX(-22px); clip-path: inset(18% 0 76% 0); }
  37% { opacity: .1; transform: translateX(34px); clip-path: inset(20% 0 72% 0); }
  39% { opacity: 0; }
  71% { opacity: .15; transform: translateX(16px); clip-path: inset(58% 0 33% 0); }
  72.5% { opacity: 0; }
}
.an-ghost-calm { animation: an-ghost-calm 9s steps(1) infinite; }
.an-ghost-hands { animation: an-ghost-hands 9s linear infinite; }
.an-ghost-slice.is-r { mix-blend-mode: screen; animation: an-ghost-r 9s steps(1) infinite; }
.an-ghost-slice.is-c { mix-blend-mode: screen; animation: an-ghost-c 9s steps(1) infinite; }
@keyframes an-ghost-calm {
  0%, 100% { opacity: .12; } 22% { opacity: .06; } 23% { opacity: .14; } 48% { opacity: .09; } 49% { opacity: .13; }
  78% { opacity: .12; } 80% { opacity: 0; } 87% { opacity: .12; }
}
@keyframes an-ghost-hands {
  0%, 79% { opacity: 0; transform: scale(1); }
  80% { opacity: .7; transform: scale(1.05) translate(-8px, 0); }
  81.5% { opacity: .35; transform: scale(1.07) translate(10px, -4px); }
  83% { opacity: .75; transform: scale(1.06) translate(-4px, 3px); }
  85% { opacity: .5; transform: scale(1.08); }
  87%, 100% { opacity: 0; transform: scale(1.02); }
}
@keyframes an-ghost-r {
  0%, 79.5% { opacity: 0; transform: none; clip-path: inset(0); }
  80% { opacity: .5; transform: translate(-22px, 0); clip-path: inset(18% 0 58% 0); }
  82% { opacity: .45; transform: translate(16px, 0); clip-path: inset(52% 0 22% 0); }
  84% { opacity: .5; transform: translate(-12px, 0); clip-path: inset(34% 0 40% 0); }
  86%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
}
@keyframes an-ghost-c {
  0%, 80.5% { opacity: 0; transform: none; clip-path: inset(0); }
  81% { opacity: .4; transform: translate(20px, 2px); clip-path: inset(60% 0 12% 0); }
  83% { opacity: .45; transform: translate(-18px, 0); clip-path: inset(8% 0 70% 0); }
  85% { opacity: .4; transform: translate(10px, -2px); clip-path: inset(42% 0 36% 0); }
  86.5%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
}
.an-ghost-slice.is-r { filter: brightness(.8) sepia(1) saturate(6) hue-rotate(-50deg); }
.an-ghost-slice.is-c { filter: brightness(.8) sepia(1) saturate(6) hue-rotate(140deg); }

/* ---- windows ---- */
.an-window { position: relative; border: 2px solid var(--an-line); background: var(--an-panel); box-shadow: 6px 6px 0 rgba(255, 210, 31, .12); }
.an-bar { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--an-yel); color: #111; font-family: var(--an-mono); font-size: 13px; letter-spacing: .04em; }
.an-bar-ico { display: grid; place-items: center; width: 18px; height: 18px; font-size: 13px; }
.an-bar-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: lowercase; }
.an-bar-btns { display: flex; gap: 4px; }
.an-bar-btns i { display: grid; place-items: center; width: 20px; height: 18px; border: 2px solid #111; font-style: normal; font-size: 11px; line-height: 1; }
.an-window-body { padding: 22px 24px; }

/* ---- type ---- */
.an-kick { margin: 0 0 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--an-yel); }
.an-blink { display: inline-block; color: var(--an-red); animation: an-blink 1.1s steps(1) infinite; }
@keyframes an-blink { 50% { opacity: 0; } }
.an-title { margin: 0; text-transform: none; font-family: var(--an-head); font-weight: 700; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -.01em; color: var(--an-white); }
.an-title em { font-style: normal; color: var(--an-yel); }
.an-text { margin: 12px 0 0; font-size: 16px; line-height: 1.7; color: var(--an-tx2); }
.an-prompt { margin: 0 0 14px; font-size: 14px; color: var(--an-tx3); }
.an-prompt span { color: var(--an-yel); }

/* ---- hero ---- */
.an-hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 30px; max-width: 1240px; min-height: min(100vh, 860px); margin: 0 auto; padding: 120px 32px 50px; }
.an-hero-window .an-window-body { padding: 28px 30px 30px; }
/* The name, and its glitch: two offset copies (red, yellow) that jump for a
   moment every few seconds. clip-path only during the burst, on one line. */
.an-name { position: relative; margin: 6px 0 0; text-transform: none; font-family: var(--an-head); font-weight: 700; font-size: clamp(60px, 8.4vw, 124px); line-height: .95; letter-spacing: -.02em; color: var(--an-white); overflow-wrap: anywhere; }
.an-name span { position: relative; z-index: 1; }
.an-name::before, .an-name::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.an-name::before { color: var(--an-red); animation: an-glitch-a 4.6s steps(1) infinite; }
.an-name::after { color: var(--an-yel); animation: an-glitch-b 4.6s steps(1) infinite; }
@keyframes an-glitch-a {
  0%, 86%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  87% { opacity: .9; transform: translate(-6px, 2px); clip-path: inset(10% 0 55% 0); }
  89% { opacity: .9; transform: translate(5px, -2px); clip-path: inset(60% 0 8% 0); }
  91% { opacity: .9; transform: translate(-3px, 0); clip-path: inset(35% 0 35% 0); }
  93% { opacity: 0; }
}
@keyframes an-glitch-b {
  0%, 86%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  88% { opacity: .85; transform: translate(6px, -1px); clip-path: inset(50% 0 20% 0); }
  90% { opacity: .85; transform: translate(-5px, 2px); clip-path: inset(5% 0 70% 0); }
  92% { opacity: 0; }
}
.an-tagline { margin: 16px 0 0; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .06em; color: var(--an-yel); text-transform: uppercase; }
.an-tagline span { color: var(--an-tx3); }
.an-summary { color: var(--an-tx2); }
.an-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--an-tx2); }
.an-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.an-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 2px solid var(--an-white); background: transparent; color: var(--an-white); font-family: var(--an-mono); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: transform .15s, background-color .15s, color .15s, box-shadow .15s; }
.an-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--an-yel); }
.an-btn.is-hot { border-color: var(--an-yel); background: var(--an-yel); color: #111; }
.an-btn.is-hot:hover { box-shadow: 4px 4px 0 var(--an-red); }
.an-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.an-socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--an-line); color: var(--an-tx2); transition: color .15s, border-color .15s, transform .15s; }
.an-socials a:hover { color: #111; background: var(--an-yel); border-color: var(--an-yel); transform: translateY(-2px); }
.an-socials svg { width: 18px; height: 18px; fill: currentColor; }

/* His stage: crossed hazard tape behind him, a big 404, and the PNGtuber. */
.an-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; }
.an-stage-tape { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.an-stage-tape i { position: absolute; left: -20%; right: -20%; top: 46%; height: 34px; background: repeating-linear-gradient(-45deg, var(--an-yel) 0 22px, #111 22px 44px); opacity: .9; }
.an-stage-tape i:nth-child(1) { transform: rotate(-14deg); }
.an-stage-tape i:nth-child(2) { transform: rotate(9deg) translateY(120px); opacity: .55; }
.an-404 { position: absolute; top: 4%; left: 2%; font-family: var(--an-head); font-weight: 700; font-size: clamp(70px, 10vw, 150px); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255, 43, 43, .55); animation: an-jitter 6s steps(1) infinite; }
@keyframes an-jitter { 0%, 90%, 100% { transform: none; } 92% { transform: translate(4px, -2px); } 94% { transform: translate(-3px, 1px); } 96% { transform: translate(2px, 2px); } }
.an-tuber { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; animation: an-float 5s ease-in-out infinite; }
.an-tuber img { position: absolute; inset: 0; width: 100%; height: auto; opacity: 0; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .7)); }
.an-tuber img.is-on { opacity: 1; }
@keyframes an-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.an-avatar-big { position: absolute; inset: 10%; width: 80%; border: 2px solid var(--an-line); }

/* ---- hazard tape ---- */
.an-tape { position: relative; z-index: 1; overflow: hidden; margin: 30px 0; border-block: 3px solid #111; background: repeating-linear-gradient(-45deg, var(--an-yel) 0 18px, #111 18px 36px); transform: rotate(-1.2deg); }
.an-tape-track { display: flex; width: max-content; animation: an-tape 40s linear infinite; }
.an-tape-track span { display: flex; }
.an-tape b { margin: 6px 8px; padding: 4px 14px; background: #111; color: var(--an-yel); font-family: var(--an-mono); font-weight: 400; font-size: 14px; letter-spacing: .18em; white-space: nowrap; }
@keyframes an-tape { to { transform: translateX(-50%); } }

/* ---- sections ---- */
.an-sec { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 34px 32px 20px; }
.an-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.an-more { flex: none; font-size: 14px; color: var(--an-yel); border-bottom: 1px dashed currentColor; }
.an-more:hover { color: var(--an-white); }
.an-row-h { margin: 22px 0 10px; font-family: var(--an-mono); font-weight: 400; font-size: 14px; letter-spacing: .1em; color: var(--an-tx2); text-transform: none; }

/* README */
/* README and the merch loader as wide as the sections, like the game and the rails. */
.an-readme { max-width: none; }
.an-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 22px; margin: 22px 0 0; }
.an-facts div { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--an-line); }
.an-facts dt { flex: none; min-width: 90px; color: var(--an-yel); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.an-facts dd { margin: 0; color: var(--an-tx); font-size: 14px; }
.an-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.an-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--an-line); font-size: 14px; transition: border-color .15s, color .15s; }
.an-links a:hover { border-color: var(--an-yel); color: var(--an-yel); }
.an-links svg { width: 16px; height: 16px; fill: currentColor; }
/* Him winking in the README's corner, shoulders on the window's bottom
   edge (his animated bust), the text kept clear of him. */
.an-readme { overflow: hidden; }
.an-readme .an-window-body { padding-right: min(300px, 32%); }
.an-peek { position: absolute; right: 22px; bottom: 0; width: min(250px, 27%); height: auto; pointer-events: none; }

/* recovered files */
.an-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 30%, 400px); gap: 18px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.an-rail.is-tall { grid-auto-columns: clamp(190px, 18%, 230px); }
.an-rail::-webkit-scrollbar { height: 10px; }
.an-rail::-webkit-scrollbar-thumb { background: var(--an-yel); }
.an-rail::-webkit-scrollbar-track { background: var(--an-panel2); }
.an-card { scroll-snap-align: start; margin: 0; }
.an-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 2px solid var(--an-line); background: var(--an-panel2); transition: border-color .15s, transform .15s, box-shadow .15s; }
.an-card.is-tall .an-card-thumb { aspect-ratio: 9 / 16; }
.an-card-thumb > a, .an-card-thumb img, .an-card-thumb iframe { display: block; width: 100%; height: 100%; }
.an-card-thumb img { object-fit: cover; }
.an-card:hover .an-card-thumb { border-color: var(--an-yel); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--an-red); }
.an-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; background: var(--an-yel); color: #111; font-size: 18px; }
.an-chip { position: absolute; left: 0; top: 0; padding: 4px 9px; background: #111; color: var(--an-yel); font-size: 11px; letter-spacing: .14em; }
.an-file-name { margin: 8px 0 0; font-size: 12px; letter-spacing: .06em; color: var(--an-tx3); }
.an .an-card-title { margin: 2px 0 0; font-family: var(--an-mono); font-weight: 400; font-size: 14px; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--an-tx); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-empty, .an-follow { max-width: 620px; }
.an-follow .an-window-body { display: flex; align-items: center; gap: 12px; }
.an-follow svg { width: 22px; height: 22px; fill: var(--an-yel); }
.an-follow .an-more { margin-left: auto; border: 0; }

/* ---- the purge (creators/an0n.js) ---- */
.an-purge-lede { max-width: 720px; margin: 0 0 18px; }
/* As wide as the sections; the tiles go flatter so the whole game still fits on a laptop screen. */
.an-game { overflow: hidden; }
.an-hud { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 12px 18px; border-bottom: 2px solid var(--an-line); font-size: 13px; letter-spacing: .1em; color: var(--an-tx3); }
.an-hud b { margin-left: 6px; font-weight: 400; color: var(--an-white); font-size: 16px; }
.an-meter { height: 6px; background: var(--an-panel2); }
.an-meter i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--an-yel), var(--an-red)); transform-origin: left; transform: scaleX(0); transition: transform .3s ease; }
.an-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.an-file { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; aspect-ratio: 5 / 2; padding: 8px 6px; border: 2px solid var(--an-line); background: var(--an-panel2); color: var(--an-tx2); font-family: var(--an-mono); cursor: pointer; transition: border-color .12s, transform .12s, background-color .12s; }
.an-file:disabled { cursor: default; }
.an-file-ico { position: relative; width: 38px; height: 46px; border: 2px solid var(--an-tx3); border-radius: 2px; background: linear-gradient(135deg, transparent 72%, var(--an-tx3) 72%); }
.an-file .an-file-name { margin: 0; font-size: 12px; color: inherit; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-file img.an-face { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; opacity: 0; transform: scale(.6); transition: opacity .12s, transform .18s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.an-file.is-infected { border-color: var(--an-red); background: #1a0606; animation: an-shake .28s steps(2) infinite; }
.an-file.is-infected img.an-face { opacity: 1; transform: none; }
.an-file.is-infected .an-file-ico, .an-file.is-infected .an-file-name { opacity: .15; }
.an-file.is-purged { border-color: var(--an-yel); background: #1a1600; }
.an-file.is-purged::after { content: "QUARANTINED"; position: absolute; inset: auto 0 6px; font-size: 10px; letter-spacing: .16em; color: var(--an-yel); }
.an-file.is-corrupt { border-color: var(--an-red); color: var(--an-red); }
.an-file.is-corrupt::after { content: "CORRUPTED"; position: absolute; inset: auto 0 6px; font-size: 10px; letter-spacing: .16em; color: var(--an-red); }
.an-file.is-oops { animation: an-shake .2s steps(2) 2; }
@keyframes an-shake { 50% { transform: translate(2px, -1px); } }
.an-file:not(:disabled):hover { border-color: var(--an-tx2); }
/* The more of the system he holds, the worse the window looks. */
.an-game.is-c1 .an-grid { filter: hue-rotate(-10deg) saturate(1.2); }
.an-game.is-c2 .an-grid { transform: skewX(-1deg); }
.an-game.is-c3 .an-grid { transform: skewX(1.5deg) translateX(2px); }
.an-overlay { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 24px; text-align: center; background: rgba(5, 5, 5, .9); }
.an-overlay[hidden] { display: none; }
.an-overlay-h { margin: 0; font-family: var(--an-head); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); text-transform: none; color: var(--an-white); }
.an-overlay .an-text { max-width: 460px; margin-bottom: 14px; }

/* ---- quarantine ---- */
.an-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.an-gallery a { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border: 2px solid var(--an-line); background: var(--an-panel2); transition: border-color .15s, transform .15s, box-shadow .15s; }
.an-gallery img { width: 100%; height: 100%; object-fit: cover; }
.an-gallery a:hover { border-color: var(--an-yel); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--an-red); }
.an-q-label { position: absolute; left: 0; bottom: 0; padding: 4px 9px; background: var(--an-yel); color: #111; font-size: 11px; letter-spacing: .12em; }

/* ---- the quarantine viewer (creators/an0n.js) ----
   A window like the rest of his page: yellow bar with the file name, red
   and cyan split edges (offset shadows, still), and a burst every few
   seconds where the edges jump and the picture slices (transform and
   clip-path, a few frames at a time). Opening or switching replays it. */
.an-zoom { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: clamp(14px, 4vmin, 44px); background: rgba(3, 3, 3, .9); opacity: 0; transition: opacity .2s steps(3); }
.an-zoom[hidden] { display: none; }
.an-zoom.is-open { opacity: 1; }
.an-zoom-win { position: relative; display: grid; max-width: min(92vw, 1100px); border: 2px solid var(--an-yel); background: var(--an-panel);
  box-shadow: -5px 0 0 rgba(255, 43, 43, .75), 5px 0 0 rgba(0, 229, 255, .6), 10px 10px 0 rgba(255, 210, 31, .18);
  animation: an-zoom-edge 3.4s steps(1) infinite; }
.an-zoom.is-swap .an-zoom-win { animation: an-zoom-swap .32s steps(1), an-zoom-edge 3.4s steps(1) .32s infinite; }
@keyframes an-zoom-edge {
  0%, 84%, 100% { transform: none; box-shadow: -5px 0 0 rgba(255, 43, 43, .75), 5px 0 0 rgba(0, 229, 255, .6), 10px 10px 0 rgba(255, 210, 31, .18); }
  86% { transform: translate(-4px, 1px); box-shadow: -11px 0 0 rgba(255, 43, 43, .9), 9px 0 0 rgba(0, 229, 255, .8), 10px 10px 0 rgba(255, 210, 31, .18); }
  88% { transform: translate(3px, -2px) skewX(-.6deg); box-shadow: 8px 0 0 rgba(255, 43, 43, .9), -12px 0 0 rgba(0, 229, 255, .8), 10px 10px 0 rgba(255, 210, 31, .18); }
  90% { transform: translate(-1px, 0); }
}
@keyframes an-zoom-swap {
  0% { transform: translate(-10px, 0) skewX(2deg); opacity: .4; }
  33% { transform: translate(8px, -3px); opacity: .9; }
  66% { transform: translate(-3px, 2px) skewX(-1deg); opacity: .7; }
  100% { transform: none; opacity: 1; }
}
.an-zoom .an-bar { gap: 12px; }
.an-zoom .an-bar-title { text-transform: none; }
.an-zoom-count { font-size: 12px; letter-spacing: .1em; }
.an-zoom-x { display: grid; place-items: center; width: 26px; height: 24px; margin-left: 4px; border: 2px solid #111; background: transparent; color: #111; font-family: var(--an-mono); font-size: 16px; line-height: 1; cursor: pointer; }
.an-zoom-x:hover { background: #111; color: var(--an-yel); }
.an-zoom-stage { position: relative; overflow: hidden; background: #000; }
.an-zoom-img { display: block; max-width: min(92vw, 1100px); max-height: calc(86vh - 40px); width: auto; height: auto; margin: 0 auto; }
/* The picture's own glitch: two tinted copies, sliced, on the edge loop. */
.an-zoom-ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.an-zoom-ghost.is-r { filter: sepia(1) saturate(6) hue-rotate(-50deg); animation: an-zoom-slice-r 3.4s steps(1) infinite; }
.an-zoom-ghost.is-c { filter: sepia(1) saturate(6) hue-rotate(140deg); animation: an-zoom-slice-c 3.4s steps(1) infinite; }
@keyframes an-zoom-slice-r { 0%, 85%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); } 86% { opacity: .55; transform: translateX(-14px); clip-path: inset(22% 0 62% 0); } 88% { opacity: .5; transform: translateX(10px); clip-path: inset(58% 0 26% 0); } 90% { opacity: 0; } }
@keyframes an-zoom-slice-c { 0%, 86%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); } 87% { opacity: .5; transform: translateX(12px); clip-path: inset(40% 0 46% 0); } 89% { opacity: .45; transform: translateX(-9px); clip-path: inset(8% 0 80% 0); } 90.5% { opacity: 0; } }
/* Glitching across to the next piece (an0n.js adds .is-switching for ~0.4s,
   swapping the picture in half way): static over the stage, the picture
   torn and shoved, the tinted copies thrown wide. */
.an-zoom-stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .22) 0 1px, rgba(0, 0, 0, .65) 1px 3px), linear-gradient(90deg, rgba(255, 43, 43, .25), rgba(0, 229, 255, .25)); }
.an-zoom-stage.is-switching::after { animation: an-zoom-static .38s steps(1); }
.an-zoom-stage.is-switching .an-zoom-img { animation: an-zoom-tear .38s steps(1); }
.an-zoom-stage.is-switching .an-zoom-ghost.is-r { animation: an-zoom-throw-r .38s steps(1); }
.an-zoom-stage.is-switching .an-zoom-ghost.is-c { animation: an-zoom-throw-c .38s steps(1); }
@keyframes an-zoom-static { 0% { opacity: .9; transform: translateY(0); } 25% { opacity: .55; transform: translateY(-3px); } 50% { opacity: .95; transform: translateY(2px); } 75% { opacity: .4; transform: translateY(-1px); } 100% { opacity: 0; } }
@keyframes an-zoom-tear {
  0% { transform: translateX(-18px) skewX(4deg); clip-path: inset(0 0 52% 0); opacity: .8; }
  20% { transform: translateX(22px); clip-path: inset(38% 0 0 0); opacity: .5; }
  40% { transform: translateX(-8px) skewX(-3deg); clip-path: inset(12% 0 30% 0); opacity: .15; }
  60% { transform: translateX(14px); clip-path: inset(48% 0 8% 0); opacity: .7; }
  80% { transform: translateX(-4px); clip-path: inset(0); opacity: .9; }
  100% { transform: none; clip-path: inset(0); opacity: 1; }
}
@keyframes an-zoom-throw-r { 0% { opacity: .7; transform: translateX(-30px); clip-path: inset(10% 0 60% 0); } 40% { opacity: .6; transform: translateX(24px); clip-path: inset(50% 0 20% 0); } 80% { opacity: .4; transform: translateX(-10px); clip-path: inset(30% 0 45% 0); } 100% { opacity: 0; } }
@keyframes an-zoom-throw-c { 0% { opacity: .6; transform: translateX(28px); clip-path: inset(55% 0 15% 0); } 40% { opacity: .55; transform: translateX(-22px); clip-path: inset(15% 0 65% 0); } 80% { opacity: .35; transform: translateX(12px); clip-path: inset(40% 0 35% 0); } 100% { opacity: 0; } }
.an-zoom-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border: 2px solid var(--an-yel); background: #111; color: var(--an-yel); font-family: var(--an-mono); font-size: 20px; cursor: pointer; transition: transform .12s, background-color .12s, color .12s; }
.an-zoom-nav:hover { background: var(--an-yel); color: #111; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--an-red); }
.an-zoom-nav.is-prev { left: 18px; }
.an-zoom-nav.is-next { right: 18px; }
.an-zoom-nav[hidden] { display: none; }
@media (max-width: 700px) { .an-zoom-nav { top: auto; bottom: 18px; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .an-zoom, .an-zoom-win, .an-zoom.is-swap .an-zoom-win, .an-zoom-ghost, .an-zoom-stage.is-switching::after, .an-zoom-stage.is-switching .an-zoom-img, .an-zoom-stage.is-switching .an-zoom-ghost { animation: none; transition: none; } }
.perf-lite .an-zoom-win, .perf-lite .an-zoom.is-swap .an-zoom-win, .perf-lite .an-zoom-ghost { animation: none; }

/* ---- merch.exe ---- */
.an-loading { max-width: none; }
.an-progress { height: 18px; border: 2px solid var(--an-line); padding: 2px; }
.an-progress i { display: block; height: 100%; width: 99%; background: repeating-linear-gradient(90deg, var(--an-yel) 0 12px, transparent 12px 16px); }

/* ---- join ---- */
.an-join { margin-top: 20px; }
.an-join-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; padding: 34px 32px; }
.an-join .an-title { margin: 8px 0 6px; }
.an-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.an-nums li { padding: 16px; border: 2px solid var(--an-line); background: var(--an-panel2); }
.an-nums b { display: block; font-family: var(--an-head); font-weight: 700; font-size: 34px; line-height: 1; color: var(--an-yel); }
.an-nums span { display: block; margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--an-tx3); }

/* ---- end ---- */
.an-end { position: relative; z-index: 1; border: 0; background: none; max-width: 1240px; margin: 40px auto 0; padding: 30px 32px 10px; text-align: center; }
.an-end-line { margin: 0; font-family: var(--an-head); font-weight: 700; font-size: clamp(24px, 3vw, 36px); letter-spacing: .08em; color: var(--an-white); }
.an-end-sub { margin-top: 6px; }
.an-credits { margin: 14px 0 0; font-size: 13px; color: var(--an-tx3); }
.an-credits a { color: var(--an-yel); }

/* The menu bar, in his colours. */
body.cp-theme-an0n .cpnav-in { background: rgba(8, 8, 8, .92); border-color: var(--an-line); border-radius: 0; box-shadow: 4px 4px 0 rgba(255, 210, 31, .25); }
body.cp-theme-an0n .cpnav-who { color: var(--an-white); border-left-color: var(--an-line); font-family: var(--an-mono); }
body.cp-theme-an0n .cpnav-av { border-color: var(--an-yel); border-radius: 4px; }
body.cp-theme-an0n .cpnav-links a { color: var(--an-tx2); font-family: var(--an-mono); font-weight: 400; border-radius: 0; }
body.cp-theme-an0n .cpnav-links a:hover { color: #111; background: var(--an-yel); }
body.cp-theme-an0n .cpnav-links a[aria-current="true"] { background: var(--an-yel); color: #111; box-shadow: none; }
body.cp-theme-an0n :is(.cpnav-burger, .cpnav-account) { background: var(--an-panel2); color: var(--an-tx); border-radius: 0; }
body.cp-theme-an0n .cpnav-burger span { background: var(--an-yel); border-radius: 0; }
body.cp-theme-an0n .cpnav-cart { background: var(--an-yel); color: #111; border-radius: 0; box-shadow: 3px 3px 0 var(--an-red); font-family: var(--an-mono); font-weight: 400; }
body.cp-theme-an0n .cpnav-cart:hover { background: var(--an-red); color: var(--an-white); box-shadow: 3px 3px 0 var(--an-yel); }
/* The video player, in his colours. */
body.cp-theme-an0n .cp-player { background: rgba(5, 5, 5, .95); }
body.cp-theme-an0n .cp-player-frame { border: 2px solid var(--an-yel); border-radius: 0; box-shadow: 8px 8px 0 var(--an-red); }
body.cp-theme-an0n .cp-player-caption { font-family: var(--an-mono); color: var(--an-yel); }
body.cp-theme-an0n .cp-player-close { border-radius: 0; background: var(--an-yel); color: #111; border-color: #111; }

/* ---- small screens ---- */
@media (max-width: 900px) {
  .an-hero { grid-template-columns: 1fr; padding: 104px 18px 24px; min-height: 0; }
  .an-hero-window .an-window-body { padding: 22px 18px 24px; }
  .an-stage { max-width: 420px; }
  .an-sec { padding: 26px 18px 16px; }
  .an-window-body { padding: 18px; }
  .an-rail { grid-auto-columns: 86%; }
  .an-rail.is-tall { grid-auto-columns: 58%; }
  .an-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px; }
  .an-file { aspect-ratio: 3 / 4; }
  .an-file .an-file-name { font-size: 9px; }
  .an-join-body { grid-template-columns: 1fr; gap: 24px; padding: 22px 18px; }
  .an-readme .an-window-body { padding-right: 18px; padding-bottom: 190px; }
  .an-ghost { right: -30vw; bottom: 8vh; width: 120vw; }
  .an-peek { right: 50%; width: 200px; margin-right: -100px; }
  .an-sec-head { flex-wrap: wrap; }
}

/* ---- calmer when asked ---- */
@media (prefers-reduced-motion: reduce) {
  .an-ghost img, .an-scan::after, .an-blink, .an-name::before, .an-name::after, .an-404, .an-tuber, .an-tape-track, .an-file.is-infected, .an-file.is-oops { animation: none; }
}
.perf-lite .an-ghost img, .perf-lite .an-scan::after, .perf-lite .an-name::before, .perf-lite .an-name::after, .perf-lite .an-404, .perf-lite .an-tuber, .perf-lite .an-tape-track { animation: none; }
/* Still, the ghost is just his stare, faintly there. */
.perf-lite .an-ghost-calm { opacity: .12; }
@media (prefers-reduced-motion: reduce) { .an-ghost-calm { opacity: .12; } }
@media (hover: none) { .an-tuber img { filter: none; } }
