/* ============ Tiny Aggro ============ */

:root {
  --bg: #0b0a0f;
  --surface: #15131a;
  --surface-2: #1c1922;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f1ea;
  --muted: #9f99a8;
  --accent: #ff6a3d;         /* logo bolt orange */
  --accent-rgb: 255, 106, 61;
  --accent-2: #ffc94a;
  --cyan: #3ee8ff;
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Russo One", "Arial Black", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* logo colours on dark backgrounds */
  --mk-body: var(--text);
  --mk-eye: var(--bg);
  --mk-bolt: var(--accent);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* keep #links (e.g. /#zombie-madness) clear of the fixed nav */
section[id], .card[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Subtle film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent-2);
  color: var(--bg);
  font-weight: 600;
  border-radius: 10px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 1.5px;
  transform: rotate(45deg);
}

/* ============ Brand (nav + footer) ============ */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}
.brand__mark { width: 30px; height: auto; }
.brand__wm { height: 14px; width: auto; aspect-ratio: 922 / 104; fill: currentColor; }
.brand:hover .brand__mark { animation: wiggle 0.5s var(--ease-out); }

/* ============ Nav ============ */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-scrolled {
  background: rgba(11, 10, 15, 0.75);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav__link:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }

/* ============ Hero ============ */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 112px var(--gutter) 130px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 50% 46%, rgba(var(--accent-rgb), 0.13), transparent 70%),
    radial-gradient(40% 35% at 85% 8%, rgba(62, 232, 255, 0.05), transparent 70%);
}
/* faint grid */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 50%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.swarm {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1000px;
}

/* Logo mark */
.mark {
  position: relative;
  width: clamp(92px, 10vw, 136px);
  margin-bottom: clamp(28px, 4vw, 40px);
  cursor: pointer;
}
.mark svg {
  width: 100%;
  height: auto;
  overflow: visible;
  animation: bob 3.4s ease-in-out infinite;
  filter: drop-shadow(0 14px 36px rgba(var(--accent-rgb), 0.22));
}
.mark__body { fill: var(--text); transition: fill 0.2s; }
.mark__eye { fill: var(--bg); transition: fill 0.15s, transform 0.08s linear; }
.mark__bolt { fill: var(--accent); }
.mark__eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 6s infinite;
}
.mark__shadow {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -18px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  filter: blur(5px);
  animation: shadow 3.4s ease-in-out infinite;
}
.mark.is-zap .mark__bolt { animation: zap 0.5s steps(1) both; }
.mark.is-mad svg { animation: rage 0.6s linear; }
.mark.is-mad .mark__eye { fill: var(--accent); }

/* Wordmark */
.logo { margin: 0; width: min(900px, 100%); }
.wordmark {
  position: relative;
  display: block;
  color: var(--text);
}
.wordmark svg {
  width: 100%;
  height: auto;
  overflow: visible;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linejoin: round;
}
.wordmark svg:first-child { filter: drop-shadow(0 0 50px rgba(var(--accent-rgb), 0.18)); }
.wordmark svg + svg {
  position: absolute;
  inset: 0;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
.wordmark svg:nth-child(2) { color: var(--accent); }
.wordmark svg:nth-child(3) { color: var(--cyan); }
.wordmark.is-glitching svg:first-child { animation: jitter 0.42s steps(3) both; }
.wordmark.is-glitching svg:nth-child(2) { opacity: 0.9; animation: glitch-a 0.42s steps(2) both; }
.wordmark.is-glitching svg:nth-child(3) { opacity: 0.9; animation: glitch-b 0.42s steps(2) both; }

.hero .eyebrow { margin-top: clamp(22px, 3vw, 30px); }

.tagline {
  max-width: 40ch;
  margin: 18px 0 0;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--muted);
  text-wrap: balance;
}
.tagline strong { color: var(--text); font-weight: 600; }

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.platforms li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 10, 15, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.platforms svg { width: 14px; height: 14px; fill: currentColor; }

.hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.hint__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 1.8s infinite;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 70px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
}
.scroll-cue svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 1.8s ease-in-out infinite;
}
.scroll-cue:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.1); }

/* ============ Tape ============ */

.tape {
  position: relative;
  z-index: 3;
  height: 90px;
  margin-top: -45px;
  pointer-events: none;
}
.tape__band {
  position: absolute;
  left: -5vw;
  right: -5vw;
  top: 50%;
  overflow: hidden;
  padding: 13px 0;
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-50%) rotate(-2deg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.tape__track {
  display: flex;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.3rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tape__track > * { flex: none; margin-right: 26px; }
.tape__track i {
  align-self: center;
  width: 0.45em;
  height: 0.45em;
  background: currentColor;
  transform: rotate(45deg);
}
.js .tape__track { animation: marquee 36s linear infinite; }

/* ============ Projects ============ */

.projects {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--gutter) clamp(100px, 12vw, 160px);
}

.section-head { max-width: 620px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 {
  margin: 16px 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.section-head p:last-child { margin: 0; color: var(--muted); font-size: 1.08rem; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid .card__art { aspect-ratio: 2 / 1; }

  /* A last card left alone in its row spans the full width: art left, details right */
  .grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .grid > .card:last-child:nth-child(odd) .card__art {
    flex: 1 1 50%;
    aspect-ratio: auto;
    min-height: 260px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .grid > .card:last-child:nth-child(odd) .card__body { flex: 1 1 50%; justify-content: center; }
  .grid > .card:last-child:nth-child(odd) .stores { margin-top: 0; }
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  --px: 0;
  --py: 0;
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition:
    transform 0.6s var(--ease-out),
    border-color 0.3s,
    box-shadow 0.3s,
    translate 0.9s var(--ease-out) var(--d, 0ms),
    opacity 0.9s var(--ease-out) var(--d, 0ms);
}
.card.is-tilting {
  transition:
    transform 0.12s linear,
    border-color 0.3s,
    box-shadow 0.3s,
    translate 0.9s var(--ease-out) var(--d, 0ms),
    opacity 0.9s var(--ease-out) var(--d, 0ms);
}
.card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 30px 80px -30px rgba(var(--accent-rgb), 0.3);
}
/* glare that follows the mouse */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.08), transparent 45%);
  transition: opacity 0.3s;
}
.card:hover::after { opacity: 1; }

.card__art {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #110f15;
}
/* colour blobs, drift opposite the mouse for depth */
.card__art::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: var(--art);
  transform: translate(calc(var(--px) * -16px), calc(var(--py) * -16px));
  transition: transform 0.6s var(--ease-out);
}
/* dot grid */
.card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.card__art img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__art--zombie { --art: radial-gradient(circle at 28% 38%, #6be35a 0, transparent 42%), radial-gradient(circle at 78% 72%, #b3261e 0, transparent 45%); }
.card__art--mochi  { --art: radial-gradient(circle at 32% 65%, #ff8fc4 0, transparent 45%), radial-gradient(circle at 74% 30%, #8ff0cf 0, transparent 42%); }
.card__art--blast  { --art: radial-gradient(circle at 70% 32%, #ffb43a 0, transparent 45%), radial-gradient(circle at 25% 78%, #ff6a3d 0, transparent 45%); }
.card__art--list   { --art: radial-gradient(circle at 35% 70%, #19c6ff 0, transparent 45%), radial-gradient(circle at 75% 25%, #6a5cff 0, transparent 42%); }
.card__art--pc     { --art: radial-gradient(circle at 30% 40%, #3d7bff 0, transparent 42%), radial-gradient(circle at 74% 68%, #ff6a3d 0, transparent 40%); }

.card__num {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(5rem, 11vw, 7.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.88);
  transform: translate(calc(var(--px) * 14px), calc(var(--py) * 14px));
  transition: transform 0.6s var(--ease-out);
}
.card.is-tilting .card__num,
.card.is-tilting .card__art::before { transition-duration: 0.12s; transition-timing-function: linear; }

.card__stamp {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1.5px solid var(--accent-2);
  border-radius: 6px;
  background: rgba(11, 10, 15, 0.55);
  transform: rotate(4deg);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 26px;
}
.card__type {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.card__title {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.15;
}
.card__desc {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.98rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* Store buttons: <a class="store"> when live, <span class="store is-soon"> until then */
.store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 18px 8px 13px;
  color: var(--text);
  text-decoration: none;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, background 0.2s, opacity 0.2s;
}
.store__icon { width: 22px; height: 22px; flex: none; fill: currentColor; }
.store__text {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
}
.store__text small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
a.store:hover { transform: translateY(-2px); border-color: var(--text); }

.store.is-soon { cursor: not-allowed; opacity: 0.62; }
.store.is-soon:hover { opacity: 0.9; border-color: rgba(255, 201, 74, 0.5); }
.store.is-soon .store__text small { color: var(--accent-2); }
.store.is-shaking { animation: shake 0.42s var(--ease-out); }

.store__bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 5;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--bg);
  background: var(--accent-2);
  border-radius: 8px;
  pointer-events: none;
  animation: bubble 1.4s var(--ease-out) forwards;
}
.store__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--accent-2);
}

/* Scroll reveal (only when JS is running) */
.js .reveal {
  opacity: 0;
  translate: 0 32px;
}
.js .section-head.reveal { transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ============ Analytics consent bar (EU/UK visitors only) ============ */

.consent {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 150;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  width: min(640px, calc(100% - 32px));
  padding: 14px 16px 14px 20px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  background: rgba(21, 19, 26, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.consent.is-in { opacity: 1; transform: translate(-50%, 0); }
.consent.is-leaving { opacity: 0; transform: translate(-50%, 20px); }
.consent p { flex: 1 1 280px; margin: 0; }
.consent__btns { display: flex; gap: 8px; margin-left: auto; }
.consent__btn {
  padding: 9px 16px;
  font: 600 13px var(--font-body);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.consent__btn:hover { border-color: var(--text); }
.consent__btn--yes { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.consent__btn--yes:hover { background: #ff8257; border-color: #ff8257; }

/* ============ Footer ============ */

.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 88px) var(--gutter) 32px;
}
.footer__big {
  max-width: 1240px;
  margin: 0 auto clamp(36px, 5vw, 60px);
}
.footer__big svg {
  width: 100%;
  height: auto;
  overflow: visible;
  fill: url(#spot);
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: 1240px;
  margin: 0 auto;
  font-size: 14px;
  color: var(--muted);
}
.footer__row p { margin: 0; }
.footer__row .brand__mark { width: 26px; }
.footer__row .brand__wm { height: 12px; }
.footer__top { text-decoration: none; transition: color 0.2s; }
.footer__top:hover { color: var(--accent); }

/* ============ 404 ============ */

.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px var(--gutter);
  text-align: center;
}
.lost__mark { width: 104px; height: auto; animation: bob 3.4s ease-in-out infinite; }
.lost__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1;
}
.lost__text { max-width: 34ch; margin: 0; color: var(--muted); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  border-radius: 999px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.4); }

/* ============ Small screens ============ */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__wm { height: 12px; }
  .hero { padding-bottom: 140px; }
  .scroll-cue { bottom: 80px; }
  .tape { height: 70px; margin-top: -35px; }
  .tape__band { padding: 11px 0; }
  .card__body { padding: 20px 20px 22px; }
  .stores { gap: 8px; }
  .store { gap: 8px; padding: 8px 14px 8px 11px; }
  .store__text { font-size: 14px; }
  .footer__row { flex-direction: column; text-align: center; }
}

/* ============ Keyframes ============ */

@keyframes bob { 50% { transform: translateY(-7px); } }
@keyframes shadow { 50% { transform: scaleX(0.82); opacity: 0.6; } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.12); } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); }
}
@keyframes nudge { 50% { transform: translateY(4px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } }

@keyframes zap {
  0%   { fill: #fff; }
  15%  { fill: var(--accent); }
  30%  { fill: #fff; }
  45%  { fill: var(--accent); }
  100% { fill: var(--accent); }
}

@keyframes rage {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  10% { transform: translate(-4px, 1px) rotate(-6deg) scale(1.08, 0.92); }
  25% { transform: translate(4px, -1px) rotate(5deg) scale(1.1); }
  40% { transform: translate(-3px, 1px) rotate(-4deg); }
  55% { transform: translate(3px, 0) rotate(3deg); }
  70% { transform: translate(-2px, 0) rotate(-2deg); }
  85% { transform: translate(1px, 0) rotate(1deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px) rotate(-2deg); }
  40% { transform: translateX(6px) rotate(2deg); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

@keyframes bubble {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(0.8); }
  15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); }
  25% { transform: translate(-50%, 0) scale(1); }
  80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); }
}

@keyframes jitter {
  0% { transform: translate(0); }
  33% { transform: translate(-0.4%, 2%) skewX(-3deg); }
  66% { transform: translate(0.3%, -1%) skewX(2deg); }
  100% { transform: translate(0); }
}

@keyframes glitch-a {
  0%   { clip-path: inset(8% 0 72% 0);  transform: translate(-1.1%, -2%); }
  20%  { clip-path: inset(58% 0 12% 0); transform: translate(0.9%, 2%); }
  40%  { clip-path: inset(30% 0 46% 0); transform: translate(-0.7%, 0); }
  60%  { clip-path: inset(78% 0 3% 0);  transform: translate(1.1%, -3%); }
  80%  { clip-path: inset(4% 0 86% 0);  transform: translate(-0.5%, 2%); }
  100% { clip-path: inset(44% 0 40% 0); transform: translate(0, 0); opacity: 0; }
}

@keyframes glitch-b {
  0%   { clip-path: inset(66% 0 10% 0); transform: translate(1.1%, 2%); }
  20%  { clip-path: inset(12% 0 64% 0); transform: translate(-0.9%, -2%); }
  40%  { clip-path: inset(48% 0 28% 0); transform: translate(0.7%, 1%); }
  60%  { clip-path: inset(2% 0 80% 0);  transform: translate(-1.1%, 0); }
  80%  { clip-path: inset(84% 0 2% 0);  transform: translate(0.5%, -2%); }
  100% { clip-path: inset(36% 0 50% 0); transform: translate(0, 0); opacity: 0; }
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card { transform: none !important; }
}
