/* Zombie_W33D — shared styles.
   Palette is pulled from the logo: acid slime green, patchwork purple, rust orange, on dark stone. */

/* Anton — SIL Open Font License, self-hosted so the headline looks the same on every machine */
@font-face { font-family: "Anton"; src: url("fonts/Anton-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --ink: #f3f1ea;
  --muted: #a9a6b8;
  --soft: #cfcbe0;
  --bg: #07060a;
  --panel: rgba(10, 8, 16, .72);
  --line: rgba(243, 241, 234, .16);
  --acid: #8dff1f;
  --purple: #8b3dff;
  --orange: #ff7a1a;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg) url("img/bg-dark.webp") center top / cover fixed no-repeat;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.wrap.wide { width: min(1240px, 100% - 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.bar { padding: 14px 0; border-bottom: 1px solid var(--line); background: rgba(7,6,10,.7); backdrop-filter: blur(4px); }
.bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.bar b { font-family: var(--display); letter-spacing: .06em; font-size: 1.25rem; font-weight: 400; color: var(--acid); text-decoration: none; }
.bar b a { text-decoration: none; }
.bar nav { display: flex; gap: 22px; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.bar nav a { text-decoration: none; color: var(--muted); padding: 12px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.bar nav a:hover { color: var(--acid); }
.bar nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--acid); }

/* ---------- buttons / tags ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  font-family: var(--mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; font-weight: 600;
  border: 2px solid var(--acid); transition: transform .15s, background .15s, color .15s, box-shadow .15s;
}
.btn.primary { background: var(--acid); color: #07060a; }
.btn.primary:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--purple); }
.btn.ghost { color: var(--acid); }
.btn.ghost:hover { background: rgba(141,255,31,.12); }
.tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); border: 1px solid var(--orange); padding: 3px 8px; white-space: nowrap; }
.tag.acid { color: var(--acid); border-color: var(--acid); }
.tag.purple { color: #b98bff; border-color: var(--purple); }

/* ---------- home hero ---------- */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(40px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.kicker { font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin: 0 0 14px; }
h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 6.6vw, 5.2rem); line-height: .95; margin: 0 0 20px; letter-spacing: .01em;
}
h1 em { font-style: normal; color: var(--acid); }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #d9d6e4; max-width: 34em; margin: 0 0 28px; text-wrap: pretty; }
.hero-art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(139,61,255,.45)); }

/* ---------- sections ---------- */
section { padding: clamp(36px, 5vw, 64px) 0; }
.panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 6px; letter-spacing: .02em; }
h2 span { color: var(--purple); }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.split { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 5vw, 64px); }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a, .rows .off { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; min-height: 60px; padding: 12px 4px; text-decoration: none; }
.rows a:hover { background: rgba(141,255,31,.07); }
.rows a:hover .go { color: var(--acid); transform: translateX(4px); }
.rows .name { font-size: 1.12rem; font-weight: 600; }
.rows .note { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
.go { font-family: var(--mono); color: var(--muted); transition: transform .15s, color .15s; }
.off { opacity: .55; }

.log p { margin: 0 0 14px; color: #d9d6e4; max-width: 40em; text-wrap: pretty; }
.stage { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.stage li { padding: 4px 0 14px 20px; position: relative; font-size: .98rem; }
.stage li::before { content: ""; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--muted); }
.stage li.done::before { background: var(--acid); border-color: var(--acid); }
.stage li.now::before { background: var(--orange); border-color: var(--orange); }
.stage small { font-family: var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; display: block; }

footer { padding: 36px 0 56px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); background: rgba(7,6,10,.7); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- sub-page header with slime drip ---------- */
.pagehead { position: relative; padding: clamp(40px, 6vw, 76px) 0 clamp(56px, 7vw, 84px); background: linear-gradient(180deg, rgba(7,6,10,.2), rgba(7,6,10,.78)); }
.pagehead .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.pagehead h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 14px; }
.pagehead .lede { margin-bottom: 0; }
.pagehead .stamp { width: clamp(120px, 16vw, 200px); }
.pagehead .stamp img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 24px rgba(139,61,255,.5)); }
.drip {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 42px; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 42' preserveAspectRatio='none'><g fill='%238dff1f'><rect width='120' height='8'/><path d='M14 7V26a6 6 0 0 0 12 0V7Z'/><path d='M52 7V15a4 4 0 0 0 8 0V7Z'/><path d='M86 7V32a8 8 0 0 0 16 0V7Z'/></g></svg>") repeat-x left top / 240px 42px;
  filter: drop-shadow(0 3px 0 var(--purple));
}

/* ---------- catalog (albums) ---------- */
.tools { position: sticky; top: 0; z-index: 5; background: rgba(7,6,10,.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.tools .wrap { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.js-only { display: none; }
.js .js-only { display: flex; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  background: transparent; color: var(--soft); border: 1px solid var(--line); cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--acid); color: var(--acid); }
.chip[aria-pressed="true"] { background: var(--acid); color: #07060a; border-color: var(--acid); font-weight: 700; }
.search { flex: 1 1 220px; min-width: 180px; }
.search input {
  width: 100%; min-height: 44px; padding: 0 14px; font: inherit; font-size: .95rem; color: var(--ink);
  background: #0d0b14; border: 1px solid var(--line); border-radius: 0;
}
.search input::placeholder { color: var(--muted); }
.count { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: auto; }

.yearhead { display: flex; align-items: baseline; gap: 16px; margin: 0 0 22px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.yearhead h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; line-height: 1; }
.yearhead .n { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.yeargroup { margin-bottom: clamp(40px, 5vw, 72px); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 64px 24px; list-style: none; padding: 0; margin: 0; }
.rel { display: block; cursor: pointer; outline-offset: 8px; -webkit-tap-highlight-color: transparent; }

/* The card: a static frame (.flip, which the pets stand on) holding a 3D inner that turns over. */
.flip { position: relative; aspect-ratio: 1; perspective: 1100px; background: #0d0b14; box-shadow: 6px 6px 0 var(--purple); transition: box-shadow .35s; }
.rel.is-flipped .flip { box-shadow: 10px 10px 0 #b98bff; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.3, 1.4, .45, 1); }
.rel.is-flipped .flip-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--line); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face.front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.2) 50%, transparent 62%); transform: translateX(-130%); transition: transform .9s ease; pointer-events: none; }
.rel:hover .face.front::after { transform: translateX(130%); }
.face.back {
  transform: rotateY(180deg); display: flex; flex-direction: column; padding: 12px 14px 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(139,61,255,.28), transparent 60%), #0b0912; border-color: var(--acid);
}
.back h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 1.02rem; line-height: 1.05; margin: 0 0 7px; color: var(--acid); text-wrap: balance; }
.back ol { list-style: none; margin: 0; padding: 0; counter-reset: tr; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--purple) transparent; }
.back li { counter-increment: tr; display: flex; gap: 8px; font-size: .7rem; line-height: 1.34; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back li::before { content: counter(tr, decimal-leading-zero); font-family: var(--mono); font-size: .66rem; color: var(--orange); padding-top: 1px; flex: none; }
.back .open { margin: 6px -14px 0; padding: 8px 14px; background: var(--acid); color: #07060a; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: space-between; }
.rel .e { position: absolute; top: 8px; right: 8px; z-index: 1; font-family: var(--mono); font-size: .68rem; font-weight: 700; background: rgba(7,6,10,.85); color: var(--ink); border: 1px solid var(--muted); padding: 1px 6px; }
.rel .t { margin: 14px 0 3px; font-weight: 600; font-size: 1rem; line-height: 1.25; text-wrap: balance; transition: color .2s; }
.rel:hover .t, .rel.is-flipped .t, .rel.is-playing .t { color: var(--acid); }
.rel .m { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rel .m b { color: var(--orange); font-weight: 600; }
.shuffle { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: var(--rvd, 0ms); }
.nores { display: none; padding: 40px 0; color: var(--muted); }

/* ---------- upcoming (cover-only cards) ---------- */
.wall.big { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 72px 28px; }
.drop-card .art { position: relative; aspect-ratio: 1; background: #111; border: 1px solid var(--line); overflow: hidden; box-shadow: 6px 6px 0 var(--purple); transition: transform .35s cubic-bezier(.3, 1.4, .45, 1), box-shadow .35s; }
.drop-card .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drop-card .art::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.2) 50%, transparent 58%); transform: translateX(-110%); animation: sheen 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 1.3s); pointer-events: none; }
.drop-card:hover .art { transform: rotate(-1.6deg) scale(1.03); box-shadow: 10px 10px 0 var(--acid); }
.empty { display: grid; grid-template-columns: minmax(160px, 280px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: 28px; background: var(--panel); border: 1px dashed var(--muted); }
.empty img { width: 100%; height: auto; display: block; opacity: .9; filter: drop-shadow(0 12px 28px rgba(139,61,255,.4)); }
.empty h2 { margin-bottom: 10px; }
.empty p { color: var(--soft); max-width: 36em; margin: 0 0 16px; }

/* ---------- projects ---------- */
.group { margin-bottom: clamp(36px, 5vw, 60px); }
.group h2 { margin-bottom: 4px; }
.group .blurb { color: var(--muted); margin: 0 0 18px; }
.projs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.projs li { border-bottom: 1px solid var(--line); }
.proj { display: grid; grid-template-columns: 1fr auto; gap: 6px 28px; padding: 18px 6px; text-decoration: none; align-items: start; transition: background .15s; }
.proj:hover, .proj:focus-visible { background: rgba(141,255,31,.07); }
.proj .nm { font-family: var(--mono); font-size: 1.08rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; overflow-wrap: anywhere; }
.proj:hover .nm { color: var(--acid); }
.proj .ds { color: var(--soft); max-width: 46em; margin: 0; text-wrap: pretty; }
.proj .meta { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: right; display: grid; gap: 4px; justify-items: end; white-space: nowrap; }
.proj .dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; background: var(--muted); }
.proj .go { color: var(--acid); }

@media (max-width: 800px) {
  .hero .wrap, .split, .empty { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; }
  .bar nav { gap: 16px; font-size: .72rem; letter-spacing: .06em; width: 100%; }
  .bar b { font-size: 1.05rem; }
  .pagehead .wrap { grid-template-columns: 1fr; }
  .pagehead .stamp { display: none; }
  .wall { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .count { margin-left: 0; width: 100%; }
  .tools { position: static; }
  .proj { grid-template-columns: 1fr; }
  .proj .meta { text-align: left; justify-items: start; white-space: normal; }
  .wall.big { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

[hidden] { display: none !important; }


/* =====================================================================
   v2: motion system
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s ease both vt-out; }
::view-transition-new(root) { animation: .32s ease both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.8) translateY(16px); } 60% { opacity: 1; transform: scale(1.05); } 100% { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes shine { to { background-position: -200% 0; } }
@keyframes sheen { 0%, 62% { transform: translateX(-110%); } 82%, 100% { transform: translateX(110%); } }
@keyframes drip { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.45); } }
@keyframes bub { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.4); } 18% { opacity: 1; transform: translate(-50%, -4px) scale(1.15); } 30% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes poof { 0% { opacity: .95; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.6); } }

/* background layer sits under the content */
#fx-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bar, main, footer { position: relative; z-index: 1; }

/* pets */
#pet-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 40; pointer-events: none; }
.pet { position: absolute; left: 0; top: 0; width: 42px; height: 48px; transform-origin: 50% 100%; will-change: transform; }
.pet canvas { display: block; width: 42px; height: 48px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,.55)); }
.pet-ghost canvas { opacity: .92; filter: drop-shadow(0 0 6px rgba(190,230,255,.45)); }
.bubble { position: absolute; left: 50%; top: -22px; padding: 0 6px; font: 400 .95rem/1.25 var(--display); color: #15101f; background: #f3f1ea; border: 2px solid #15101f; pointer-events: none; animation: bub .9s ease both; }
.poof { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #cfcbe0; pointer-events: none; z-index: 41;
  box-shadow: -12px -7px 0 #cfcbe0, 12px -9px 0 #f3f1ea, 0 -15px 0 #cfcbe0, -13px 7px 0 #f3f1ea, 13px 5px 0 #cfcbe0, -4px 13px 0 #f3f1ea, 7px 13px 0 #cfcbe0;
  animation: poof .6s ease-out both; }
html.pets-off #pet-layer { display: none; }
.pets-toggle { font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 0 12px; min-height: 36px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.pets-toggle:hover { color: var(--ink); border-color: var(--ink); }
.pets-toggle[aria-pressed="true"] { color: var(--acid); border-color: var(--acid); }
.pets-toggle:not([aria-pressed]) { display: none; }

/* header */
.bar nav a { border-bottom: 0; position: relative; }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--acid); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.3, 1.2, .4, 1); }
.bar nav a:hover::after, .bar nav a[aria-current="page"]::after { transform: scaleX(1); }
.bar nav { align-items: center; }

/* headline shimmer + slow slime drip */
h1 em { background: linear-gradient(90deg, var(--acid) 0%, #e4ffa8 25%, var(--acid) 50%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.drip { transform-origin: top; animation: drip 7s ease-in-out infinite; }
.pagehead .stamp img, .hero-art img { animation: bob 7s ease-in-out infinite; }
.hero-art img { transition: translate .25s ease-out, rotate .25s ease-out; }

/* sweeping hover fill on link rows */
.rows a, .proj { background: linear-gradient(90deg, rgba(141,255,31,.09), rgba(141,255,31,.09)) no-repeat left / 0% 100%; transition: background-size .4s cubic-bezier(.3, 1, .4, 1); }
.rows a:hover, .proj:hover, .proj:focus-visible { background-size: 100% 100%; background-color: transparent; }
.btn { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background .15s, color .15s, box-shadow .18s; }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }

/* entrance + scroll reveals (only when motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .hero .kicker, .hero h1, .hero .lede, .hero .cta, .pagehead .kicker, .pagehead h1, .pagehead .lede { animation: rise .8s cubic-bezier(.2, .9, .25, 1) both; }
  .hero h1, .pagehead h1 { animation-delay: .08s; }
  .hero .lede, .pagehead .lede { animation-delay: .18s; }
  .hero .cta { animation-delay: .3s; }
  .hero-art { animation: pop .95s .15s cubic-bezier(.2, 1.3, .4, 1) both; }

  .js [data-rv] { opacity: 0; transform: translateY(24px) scale(.98); }
  .js [data-rv="fade"] { transform: none; }
  .js [data-rv].in { opacity: 1; transform: none; transition: opacity .6s ease var(--rvd, 0ms), transform .75s cubic-bezier(.2, 1.15, .4, 1) var(--rvd, 0ms); }
  .js.rv-fail [data-rv] { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
  .drip, .pagehead .stamp img, .hero-art img, h1 em { animation: none; }
  h1 em { color: var(--acid); background: none; }
}
@media (max-width: 800px) {
  .bar nav { flex-wrap: wrap; row-gap: 0; }
  .wall { gap: 52px 14px; grid-template-columns: repeat(2, 1fr); }
  .back h3 { font-size: .95rem; }
  .back li { font-size: .68rem; }
}


/* ===== music dock (albums page) ===== */
.back .open .when-on, .rel.is-playing .back .open .when-idle { display: none; }
.rel.is-playing .back .open .when-on { display: inline; }
.rel.is-playing .flip { box-shadow: 8px 8px 0 var(--acid); }
.rel.is-playing .face.front::before { content: ""; position: absolute; left: 8px; bottom: 8px; z-index: 2; width: 26px; height: 22px; background:
  linear-gradient(var(--acid), var(--acid)) 0 100% / 5px 100% no-repeat, linear-gradient(var(--acid), var(--acid)) 8px 100% / 5px 100% no-repeat,
  linear-gradient(var(--acid), var(--acid)) 16px 100% / 5px 100% no-repeat; animation: eq .9s steps(5) infinite; filter: drop-shadow(0 0 0 #000) drop-shadow(1px 1px 0 #07060a); }
@keyframes eq { 0% { clip-path: inset(30% 0 0 0); } 25% { clip-path: inset(0 0 0 0); } 50% { clip-path: inset(55% 0 0 0); } 75% { clip-path: inset(15% 0 0 0); } 100% { clip-path: inset(40% 0 0 0); } }
body.has-dock { padding-bottom: var(--dock-h, 0px); }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 18px; padding: 10px clamp(12px, 3vw, 28px); background: rgba(9,7,14,.97); border-top: 2px solid var(--acid); box-shadow: 0 -10px 30px rgba(0,0,0,.5); animation: dockin .45s cubic-bezier(.2, 1.2, .4, 1) both; }
.dock[hidden] { display: none; }
@keyframes dockin { from { transform: translateY(100%); } }
.dock-vid { flex: none; width: 200px; height: 113px; background: #000; border: 1px solid var(--line); }
.dock-vid iframe { width: 100%; height: 100%; display: block; pointer-events: none; }
.dock-art { display: none; width: 48px; height: 48px; object-fit: cover; flex: none; }
.dock-main { flex: 1; min-width: 0; }
.dock-now { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.dock-now b { font: 400 1.25rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--acid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-now span { font: .8rem/1.3 var(--mono); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-bar { display: flex; align-items: center; gap: 10px; font: .7rem var(--mono); color: var(--muted); }
.dock-bar input { flex: 1; min-width: 0; height: 18px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; --p: 0%; }
.dock-bar input::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--acid) var(--p), #2a2438 var(--p)); }
.dock-bar input::-moz-range-track { height: 6px; background: #2a2438; }
.dock-bar input::-moz-range-progress { height: 6px; background: var(--acid); }
.dock-bar input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 16px; margin-top: -5px; background: var(--ink); border: 2px solid #07060a; }
.dock-bar input::-moz-range-thumb { width: 10px; height: 14px; background: var(--ink); border: 2px solid #07060a; border-radius: 0; }
.dock-msg { margin-top: 8px; font-size: .78rem; line-height: 1.4; color: var(--orange); }
.dock-msg a { color: var(--acid); }
.dock-btns { display: flex; align-items: center; gap: 6px; flex: none; }
.dock-btns button { width: 42px; height: 42px; display: grid; place-items: center; font-size: 1rem; color: var(--ink); background: transparent; border: 1px solid var(--line); cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.dock-btns button:hover { border-color: var(--acid); color: var(--acid); }
.dock-btns button:active { transform: translateY(2px); }
.dock-btns .big { width: 54px; height: 54px; background: var(--acid); color: #07060a; border-color: var(--acid); font-size: 1.15rem; }
.dock-btns .big:hover { background: #fff; color: #07060a; }
.dock-btns .x { margin-left: 8px; color: var(--muted); font-size: 1.4rem; }
.dock-btns .big .i-pause, .dock-btns .big.is-on .i-play { display: none; }
.dock-btns .big.is-on .i-pause { display: inline; font-size: .9rem; letter-spacing: -2px; }
@media (max-width: 700px) {
  .dock { flex-wrap: wrap; gap: 8px 12px; padding-bottom: 12px; }
  .dock-vid { width: 160px; height: 90px; order: 2; }
  .dock-main { flex-basis: calc(100% - 76px); order: 1; }
  .dock-art { display: block; order: 0; }
  .dock-btns { order: 3; flex: 1; justify-content: flex-end; }
  .dock-btns button { width: 38px; height: 38px; }
  .dock-btns .big { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .dock { animation: none; } .rel.is-playing .face.front::before { animation: none; } }

.vol { display: flex; align-items: center; gap: 4px; margin: 0 6px 0 10px; }
.dock-btns .vol button { border-color: transparent; width: 36px; }
.vol input { width: 92px; height: 18px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; --p: 80%; }
.vol input::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--purple) var(--p), #2a2438 var(--p)); }
.vol input::-moz-range-track { height: 6px; background: #2a2438; }
.vol input::-moz-range-progress { height: 6px; background: var(--purple); }
.vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 16px; margin-top: -5px; background: var(--ink); border: 2px solid #07060a; }
.vol input::-moz-range-thumb { width: 10px; height: 14px; background: var(--ink); border: 2px solid #07060a; border-radius: 0; }
.vol .v-off, .vol .is-muted .v-on { display: none; }
.vol .is-muted .v-off { display: inline; }
@media (max-width: 700px) { .vol { order: 4; flex: 1 1 100%; margin: 0; } .vol input { flex: 1; width: auto; } .dock-btns { flex-wrap: wrap; } }


/* ===== videos page ===== */
.vstage { position: relative; max-width: 1100px; aspect-ratio: 16 / 9; margin: 0 0 18px; background: #05040a; border: 1px solid var(--line); box-shadow: 8px 8px 0 var(--purple); }
.vstage .vframe { position: absolute; inset: 0; visibility: hidden; }
.vstage .vframe iframe, .vstage .vframe #vp { width: 100%; height: 100%; display: block; border: 0; }
.vstage.on .vframe { visibility: visible; }
.vstage .vplaceholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; color: var(--muted); padding: 20px; }
.vstage .vplaceholder b { font: 400 clamp(1.6rem, 4vw, 3rem)/1 var(--display); text-transform: uppercase; color: var(--acid); }
.vstage.on .vplaceholder { display: none; }
.vnow { margin: 0 0 6px; font: .8rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--orange); min-height: 1.2em; }
.vmsg { margin: 0 0 14px; color: var(--orange); font-size: .9rem; } .vmsg a { color: var(--acid); }
.vgrid { list-style: none; margin: 0 0 clamp(36px, 5vw, 64px); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 22px; }
.vcard { all: unset; display: block; width: 100%; cursor: pointer; box-sizing: border-box; outline-offset: 6px; }
.vcard:focus-visible { outline: 2px solid var(--acid); }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #111; border: 1px solid var(--line); overflow: hidden; box-shadow: 5px 5px 0 var(--purple); transition: transform .3s cubic-bezier(.3, 1.4, .45, 1), box-shadow .3s; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.vcard:hover .vthumb, .vcard:focus-visible .vthumb { transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: 9px 9px 0 var(--acid); }
.vcard:hover .vthumb img { transform: scale(1.05); }
.vplay { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; display: grid; place-items: center; font-style: normal; font-size: 1.3rem; color: #07060a; background: var(--acid); border-radius: 50%; padding-left: 4px; opacity: .92; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.vcard:hover .vplay { transform: scale(1.18); }
.vbadge { position: absolute; right: 8px; bottom: 8px; font: 600 .7rem var(--mono); font-style: normal; background: rgba(7,6,10,.88); color: var(--ink); padding: 2px 6px; }
.vcard.is-playing .vthumb { box-shadow: 8px 8px 0 var(--acid); }
.vcard.is-playing .vplay { background: var(--orange); }
.vt { display: block; margin: 14px 0 3px; font-weight: 600; font-size: 1rem; line-height: 1.25; text-wrap: balance; }
.vcard:hover .vt, .vcard.is-playing .vt { color: var(--acid); }
.vm { display: block; font: .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.blurb { color: var(--soft); max-width: 62ch; } .blurb a { color: var(--acid); }

a.vcard { text-decoration: none; color: inherit; }
.vout .vplay { background: var(--purple); color: var(--ink); padding-left: 0; }
.vn { display: block; margin-top: 6px; font: .7rem/1.4 var(--mono); color: var(--orange); }


/* ===== "Better in 3D" (top right of every page) ===== */
.bar nav a.btn3d { position: relative; padding: 0 16px; min-height: 36px; display: inline-flex; align-items: center; color: #07060a; background: var(--acid); border: 0; border-bottom: 0; font-weight: 700; letter-spacing: .1em; box-shadow: 4px 4px 0 var(--purple); transition: transform .15s cubic-bezier(.3, 1.6, .5, 1), box-shadow .15s, background .15s; animation: glow3d 3.2s ease-in-out infinite; }
.bar nav a.btn3d:hover { color: #07060a; background: #fff; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--purple); }
.bar nav a.btn3d:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--purple); }
@keyframes glow3d { 0%, 100% { filter: drop-shadow(0 0 0 rgba(141,255,31,0)); } 50% { filter: drop-shadow(0 0 10px rgba(141,255,31,.55)); } }
@media (prefers-reduced-motion: reduce) { .bar nav a.btn3d { animation: none; } }
@media (max-width: 800px) { .bar nav a.btn3d { margin-left: auto; } }


/* ---------- Play: the Spawn den + games (home page) ---------- */
#spawn { padding: clamp(40px, 6vw, 84px) 0; }
.sphead { margin-bottom: 26px; }
.sphead h2 { margin: 0 0 6px; }
.spden { position: relative; display: block; margin: 0 0 clamp(28px, 4vw, 48px); border: 1px solid var(--line); box-shadow: 8px 8px 0 var(--purple); background: #0d0b14; overflow: hidden; text-decoration: none; transition: box-shadow .3s, transform .3s; }
.spden img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.spden-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 56px clamp(16px, 3vw, 32px) clamp(14px, 2vw, 24px); background: linear-gradient(to top, rgba(7,6,10,.92), rgba(7,6,10,.55) 60%, transparent); }
.spden-cap b { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.8rem); letter-spacing: .03em; line-height: 1.05; }
.spden-cap span { color: var(--soft); font-size: .98rem; }
.spden .go, .spgame .go { font-family: var(--mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--acid); }
.spden:hover { box-shadow: 12px 12px 0 #b98bff; transform: translate(-2px, -2px); }
.spgames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px 24px; }
.spgame { display: grid; gap: 8px; align-content: start; height: 100%; text-decoration: none; }
.spgame img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--line); box-shadow: 6px 6px 0 var(--purple); background: #0d0b14; transition: transform .3s, box-shadow .3s; }
.spgame:hover img { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 10px 10px 0 var(--acid); }
.spgame-t { font-family: var(--display); font-size: 1.5rem; letter-spacing: .03em; margin-top: 8px; line-height: 1.1; }
.spgame-d { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.spmore { margin: 28px 0 0; font-family: var(--mono); font-size: .86rem; letter-spacing: .06em; }
.spmore a { color: var(--soft); }
.spmore a:hover { color: var(--acid); }
@media (max-width: 560px) { .spgames { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; } .spden-cap { padding-top: 36px; } }
@media (prefers-reduced-motion: reduce) { .spden, .spgame img { transition: none; } .spden:hover, .spgame:hover img { transform: none; } }


/* Play: each box art turns over to its back on hover / keyboard focus */
.spbox { display: block; perspective: 1000px; aspect-ratio: 2 / 3; }
.spbox-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.3, .45, 1); }
.spgame:hover .spbox-in, .spgame:focus-visible .spbox-in { transform: rotateY(180deg); }
.spgame .spfront, .spback { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.spgame:hover .spfront { transform: none; box-shadow: 6px 6px 0 var(--purple); }
.spback { transform: rotateY(180deg); display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px 20px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #181226, #0d0b14 70%); box-shadow: 6px 6px 0 var(--acid); border-left: 12px solid var(--purple); }
.spback i { font: normal .7rem var(--mono); letter-spacing: .3em; color: var(--muted); }
.spback b { font: 400 1.5rem/1.05 var(--display); letter-spacing: .03em; color: var(--acid); }
.spback span { font-size: .86rem; line-height: 1.45; color: var(--soft); }
.spback em { margin-top: auto; font: normal .76rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acid); }
@media (prefers-reduced-motion: reduce) { .spbox-in { transition: none; } }
