/* =========================================================
   Tubbies - main stylesheet
   One file for every page. Colors live in :root up top.
   ========================================================= */

@font-face {
  font-family: "Lilita One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/lilita-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lilita One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/lilita-one-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* outlines and darks */
  --ink: #060a06;
  --night: #0a140b;
  --bg: #0f1f11;
  --bg-2: #16301a;
  --bg-3: #1d3d21;

  /* the greens from the logo */
  --lime: #6ff53a;
  --lime-hi: #a8ff7c;
  --green: #45c423;
  --green-deep: #2a7d17;
  --mint: #c3f2a9;
  --mint-2: #a7dc8f;
  --moss: #87ac7a;
  --cream: #effde6;

  /* the bad guy */
  --evil: #ff3550;
  --evil-glow: rgba(255, 53, 80, .55);
  --evil-deep: #2a0a0f;

  --text: #e3f6d8;
  --muted: #a5c49a;

  --outline: 4px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 50% -12%, rgba(111, 245, 58, .16), transparent 62%),
    radial-gradient(700px 520px at 105% 40%, rgba(255, 53, 80, .05), transparent 70%),
    radial-gradient(900px 700px at -10% 85%, rgba(111, 245, 58, .06), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--night) 100%);
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }

a { color: var(--lime-hi); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--cream); }

:focus-visible {
  outline: 3px solid var(--lime-hi);
  outline-offset: 3px;
  border-radius: 10px;
}

::selection { background: var(--lime); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: .6em 1em;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--display);
  border: var(--outline) solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Outlined cartoon lettering, like the logo */
.title {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  color: var(--cream);
  -webkit-text-stroke: .15em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .09em 0 var(--ink), 0 .14em 0 var(--ink);
}
.title-xl { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem); }
.title-lg { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.3rem); }
.title-md { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
.title .lime { color: var(--lime); }
.title .evil { color: var(--evil); }

.kicker {
  display: inline-block;
  font-family: var(--display);
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: .6rem;
}

.lede {
  font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem);
  color: var(--text);
  max-width: 38em;
}

.muted { color: var(--muted); }

/* ---------- buttons ---------- */

.btn {
  --btn-top: var(--lime-hi);
  --btn-mid: var(--lime);
  --btn-bot: var(--green);
  --btn-text: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .62em 1.35em .58em;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--btn-text);
  text-decoration: none;
  text-align: center;
  background: linear-gradient(180deg, var(--btn-top) 0%, var(--btn-mid) 48%, var(--btn-bot) 100%);
  border: var(--outline) solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, .5), inset 0 -4px 0 rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  color: var(--btn-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, .5), inset 0 -4px 0 rgba(0, 0, 0, .12);
  filter: brightness(1.05);
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, .5), inset 0 -4px 0 rgba(0, 0, 0, .12);
}
.btn svg { width: 1.3em; height: 1.3em; flex: none; }

.btn-big {
  font-size: clamp(1.3rem, 1rem + 1.6vw, 1.75rem);
  padding: .6em 1.4em .55em;
  min-height: 64px;
  border-width: 5px;
  box-shadow: 0 8px 0 var(--ink), 0 0 0 4px rgba(111, 245, 58, .25), 0 12px 40px rgba(111, 245, 58, .35), inset 0 4px 0 rgba(255, 255, 255, .5), inset 0 -5px 0 rgba(0, 0, 0, .12);
}
.btn-big:hover {
  box-shadow: 0 10px 0 var(--ink), 0 0 0 6px rgba(111, 245, 58, .3), 0 14px 50px rgba(111, 245, 58, .45), inset 0 4px 0 rgba(255, 255, 255, .5), inset 0 -5px 0 rgba(0, 0, 0, .12);
}
.btn-big:active {
  box-shadow: 0 3px 0 var(--ink), 0 0 0 4px rgba(111, 245, 58, .25), inset 0 4px 0 rgba(255, 255, 255, .5), inset 0 -5px 0 rgba(0, 0, 0, .12);
}

.btn-dark {
  --btn-top: #2b5230;
  --btn-mid: #1f3f24;
  --btn-bot: #16301a;
  --btn-text: var(--cream);
}
.btn-red {
  --btn-top: #ff8a8a;
  --btn-mid: #ff4a55;
  --btn-bot: #d42039;
  --btn-text: var(--ink);
}
.btn-small {
  min-height: 40px;
  font-size: 1rem;
  padding: .45em 1.05em .4em;
  border-width: 3px;
  box-shadow: 0 4px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, .5);
}
.btn-small:hover { box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn-small:active { box-shadow: 0 1px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, .5); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 16px;
}

.store-note {
  margin: .9rem 0 0;
  font-size: .92rem;
  color: var(--muted);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 16, 9, .82);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 2px 0 rgba(111, 245, 58, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: block;
  flex: none;
  transition: transform .2s ease;
}
.brand img { width: 96px; height: auto; }
.brand:hover { transform: rotate(-3deg) scale(1.04); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a:not(.btn) {
  display: block;
  padding: .45em .8em;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.site-nav a:not(.btn):hover { background: var(--bg-3); color: var(--cream); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--mint);
  box-shadow: inset 0 0 0 3px var(--ink);
}
.site-nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--mint);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 3px;
  margin-left: -10px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { top: 50%; margin-top: -1.5px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .brand img { width: 84px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    background: var(--night);
    border: var(--outline) solid var(--ink);
    border-radius: 28px;
    box-shadow: 0 0 0 4px var(--green-deep), 0 0 0 7px var(--ink), 0 18px 40px rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav a:not(.btn) { padding: .7em 1em; font-size: 1.2rem; }
  .site-nav .btn { margin: 4px 0 6px; }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(28px, 5vw, 64px) clamp(120px, 16vw, 190px);
  text-align: center;
}

.hero-logo {
  width: min(92%, 680px);
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 60px rgba(111, 245, 58, .22));
  animation: logo-float 6s ease-in-out infinite;
  transform-origin: 50% 60%;
}
.hero-logo img { width: 100%; }

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin: clamp(10px, 2vw, 18px) 0 14px;
  padding: .35em 1em .3em;
  font-family: var(--display);
  font-size: clamp(1rem, .9rem + .5vw, 1.2rem);
  color: var(--ink);
  background: var(--mint);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
}
.hero-tag svg { width: 1.25em; height: 1.25em; }

.hero-pitch {
  max-width: 34em;
  margin: 0 auto 28px;
  font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem);
  text-wrap: balance;
}
.hero-pitch strong { color: var(--lime-hi); font-weight: 700; }
.hero-pitch em { color: var(--evil); font-style: normal; font-weight: 700; }

.hero .btn-row { justify-content: center; }

/* bubbles drifting up behind the hero */
.bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bubble {
  --s: 40px;
  position: absolute;
  bottom: -80px;
  left: var(--x, 50%);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(239, 253, 230, .55) 0 14%, transparent 15%), rgba(195, 242, 169, .2);
  border: 3px solid rgba(6, 10, 6, .85);
  box-shadow: inset 0 0 0 3px rgba(195, 242, 169, .18);
  opacity: 0;
  animation: bubble-rise var(--d, 14s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}
@keyframes bubble-rise {
  0% { transform: translate3d(0, 0, 0) scale(.7); opacity: 0; }
  8% { opacity: .7; }
  50% { transform: translate3d(var(--sway, 24px), -55vh, 0) scale(1); }
  85% { opacity: .55; }
  100% { transform: translate3d(0, -110vh, 0) scale(1.05); opacity: 0; }
}

/* dark bushes along the bottom of the hero, with something in them */
.treeline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  z-index: -1;
  height: clamp(110px, 15vw, 190px);
  pointer-events: none;
}
.treeline svg { width: 100%; height: 100%; }
.lurker {
  position: absolute;
  z-index: 0;
  display: flex;
  gap: 12px;
  pointer-events: none;
}
.lurker span {
  width: 14px;
  height: 9px;
  border-radius: 50%;
  background: var(--evil);
  box-shadow: 0 0 10px 2px var(--evil-glow), 0 0 26px 6px rgba(255, 53, 80, .25);
  animation: lurker-blink 7s ease-in-out infinite;
  transform-origin: center;
}
.lurker span:first-child { transform: rotate(14deg); }
.lurker span:last-child { transform: rotate(-14deg); }
.hero .lurker { right: 12%; bottom: clamp(38px, 6vw, 70px); }
.lurker.small span { width: 10px; height: 6px; }
.lurker-2 { left: 9%; bottom: clamp(24px, 4vw, 44px); gap: 8px; }
.lurker-2 span { animation-delay: 3.2s; animation-duration: 9s; opacity: .7; }

@keyframes lurker-blink {
  0%, 44%, 50%, 92%, 100% { scale: 1 1; }
  47%, 95% { scale: 1 .05; }
}

/* ---------- blob cards (logo style: pale fill, ink line, lime band) ---------- */

.blob {
  position: relative;
  color: var(--ink);
  background: linear-gradient(165deg, #dcfbcb 0 40%, var(--mint) 40% 72%, var(--mint-2) 72% 100%);
  border: var(--outline) solid var(--ink);
  border-radius: 36px 30px 40px 32px / 32px 38px 30px 36px;
  box-shadow: 0 0 0 6px var(--lime), 0 0 0 10px var(--ink), 0 14px 0 10px var(--ink);
  padding: clamp(22px, 3vw, 32px);
}
.blob a { color: var(--green-deep); font-weight: 700; }
.blob a:hover { color: var(--ink); }
.blob h3 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem);
  color: var(--ink);
  margin-bottom: .35em;
}
.blob p:last-child { margin-bottom: 0; }

.blob-dark {
  color: var(--text);
  background: linear-gradient(165deg, #22111a 0 40%, #1a0c12 40% 72%, #12080c 72% 100%);
  box-shadow: 0 0 0 6px var(--evil), 0 0 0 10px var(--ink), 0 14px 0 10px var(--ink), 0 20px 60px rgba(255, 53, 80, .25);
}
.blob-dark h3 { color: var(--cream); }
.blob-dark a { color: #ff9aa6; }

.card-grid {
  display: grid;
  gap: 44px 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  padding: 10px;
}

.card-grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 760px) {
  .card-grid.two { grid-template-columns: repeat(2, 1fr); }
}

.num-bubble {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: -54px 0 12px -6px;
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--ink);
  background: radial-gradient(circle at 34% 30%, #fff 0 14%, transparent 15%), var(--lime);
  border: var(--outline) solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 5px 0 var(--ink);
}
.num-bubble.evil { background: radial-gradient(circle at 34% 30%, #ffd1d6 0 14%, transparent 15%), var(--evil); }

.icon-bubble {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  color: var(--ink);
  background: var(--lime);
  border: var(--outline) solid var(--ink);
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  box-shadow: 0 5px 0 var(--ink);
}
.icon-bubble svg { width: 34px; height: 34px; }

/* ---------- TV frame with the logo's antenna on top ---------- */

.tv {
  position: relative;
  margin: 46px auto 0;
  max-width: 900px;
  padding: 10px;
  background: var(--lime);
  border: var(--outline) solid var(--ink);
  border-radius: 34px;
  box-shadow: 0 0 0 4px rgba(111, 245, 58, .2), 0 12px 0 var(--ink), 0 30px 80px rgba(0, 0, 0, .5);
}
.tv::before {
  /* antenna, same Y shape that sits on top of the logo */
  content: "";
  position: absolute;
  left: 50%;
  top: -46px;
  width: 64px;
  height: 46px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cpath d='M10 4 Q32 -2 54 4 Q57 6 54 10 L40 26 L41 46 L23 46 L24 26 L10 10 Q7 6 10 4 Z' fill='%236ff53a' stroke='%23060a06' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M22 11 L42 11 L32 22 Z' fill='%23060a06'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tv-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--night);
  border: var(--outline) solid var(--ink);
  border-radius: 24px;
}
.tv-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  background: #000 center / cover no-repeat;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.yt-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, .55));
}
.play-bubble {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(76px, 12vw, 104px);
  aspect-ratio: 1;
  background: radial-gradient(circle at 34% 30%, #fff 0 12%, transparent 13%), var(--lime);
  border: 5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 7px 0 var(--ink), 0 0 50px rgba(111, 245, 58, .5);
  transition: transform .15s ease;
}
.play-bubble svg { width: 42%; margin-left: 8%; }
.yt-facade:hover .play-bubble { transform: scale(1.07); }

.tv-screen:has(> .coming-soon) { aspect-ratio: auto; }
.coming-soon {
  /* in the flow, so the screen grows taller on phones instead of cutting it off */
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 120%, rgba(111, 245, 58, .25), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 4px),
    var(--night);
}
.coming-soon img { width: min(52%, 300px); opacity: .9; }
@media (max-width: 520px) { .coming-soon img { width: 62%; } }
.coming-soon p { margin: 0; color: var(--muted); max-width: 26em; }
.coming-soon .title { font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); margin: 0; }
.coming-soon .btn { margin-top: 6px; }

/* ---------- teaser split ---------- */

.split {
  display: grid;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1.1fr; }
  .split.flip > :first-child { order: 2; }
}

.spotlight {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
  display: grid;
  place-items: center;
}
.spotlight::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(111, 245, 58, .35), rgba(111, 245, 58, .08) 45%, transparent 70%);
}
.spotlight::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%; bottom: 7%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent);
}
.spotlight img { position: relative; z-index: 1; width: 86%; }

/* ---------- lime band with goo drips ---------- */

.goo-band {
  position: relative;
  color: var(--ink);
  background: linear-gradient(180deg, var(--lime-hi), var(--lime) 60%);
  border-top: var(--outline) solid var(--ink);
  margin-bottom: 70px;
  padding-block: clamp(48px, 7vw, 84px) clamp(30px, 4vw, 46px);
}
.goo-band .title { color: var(--cream); }
.goo-band .lede { color: var(--ink); }
.goo-drips {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  height: 70px;
  pointer-events: none;
}
.goo-drips svg { width: 100%; height: 100%; }

.link-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-top: 28px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  color: var(--cream);
  text-decoration: none;
  background: var(--night);
  border: var(--outline) solid var(--ink);
  border-radius: 26px;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.link-card:hover { color: var(--cream); transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 9px 0 var(--ink); }
.link-card strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.link-card span { color: var(--muted); font-size: .95rem; }
.link-card .lc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--evil);
  color: var(--cream);
}
.link-card .lc-icon.green { background: var(--lime); color: var(--ink); }
.link-card .lc-icon svg { width: 28px; height: 28px; }

/* ---------- page header (inner pages) ---------- */

.page-hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 84px) clamp(18px, 3vw, 30px);
  text-align: center;
}
.page-hero .lede { margin-inline: auto; }

/* ---------- 3D viewer ---------- */

.viewer-shell { max-width: 980px; margin-inline: auto; }

.viewer {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 78vh;
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(111, 245, 58, .3), rgba(111, 245, 58, .07) 55%, transparent 75%),
    radial-gradient(ellipse 34% 7% at 50% 86%, rgba(0, 0, 0, .55), transparent),
    linear-gradient(180deg, #13281a, #08110a);
  border: var(--outline) solid var(--ink);
  border-radius: 40px;
  box-shadow: 0 0 0 7px var(--lime), 0 0 0 11px var(--ink), 0 16px 0 11px var(--ink), 0 30px 80px rgba(0, 0, 0, .55);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 720px) {
  .viewer { aspect-ratio: 16 / 11; }
}
.viewer canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  outline: none;
}
.viewer canvas:active { cursor: grabbing; }

.viewer-poster {
  position: absolute;
  inset: 0;
  transition: opacity .5s ease;
}
.viewer-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.viewer.is-live .viewer-poster { opacity: 0; pointer-events: none; }

.viewer-status {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  max-width: calc(100% - 32px);
  padding: .45em 1em .4em;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
  background: var(--mint);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  width: max-content;
  text-align: center;
  line-height: 1.2;
  transition: opacity .4s ease;
}
.viewer.is-live .viewer-status { opacity: 0; pointer-events: none; }
.viewer-status .dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  animation: dot-pulse 1s ease-in-out infinite alternate;
}
@keyframes dot-pulse { to { transform: scale(.55); } }

.viewer-load {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
}

.viewer-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.viewer-hints li {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .45em 1em .4em;
  font-family: var(--display);
  color: var(--text);
  background: var(--bg-2);
  border: 3px solid var(--ink);
  border-radius: 999px;
}
.viewer-hints svg { width: 1.2em; height: 1.2em; color: var(--lime); }

.viewer-tools { display: flex; justify-content: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- versus (about page) ---------- */

.versus {
  display: grid;
  gap: 48px 32px;
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 10px;
}
@media (min-width: 860px) {
  .versus { grid-template-columns: 1fr auto 1fr; align-items: center; }
}
.vs-badge {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 84px;
  height: 84px;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--cream);
  background: var(--ink);
  border: 4px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--ink), 0 0 40px rgba(255, 53, 80, .35);
  rotate: -8deg;
}
.versus .blob h3 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem); }
.versus ul { margin: 0; padding-left: 1.2em; }
.versus li { margin-bottom: .35em; }
.versus li::marker { color: var(--green-deep); }
.versus .blob-dark li::marker { color: var(--evil); }

/* ---------- credits ---------- */

.credits-list {
  display: grid;
  gap: 44px 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  padding: 10px;
}
.credit-role {
  margin: 0 0 .5em;
  font-family: var(--display);
  font-size: .95rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.credit-names { margin: 0; padding: 0; list-style: none; }
.credit-names li + li { margin-top: .7em; }
.credit-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.25rem + .8vw, 1.8rem);
  line-height: 1.15;
}
.credit-note { display: block; font-size: .95rem; color: #2f4a28; }
.credit-names a { text-decoration: none; }
.credit-names a .credit-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: .45em 1.1em .4em;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
}
.chips a { color: inherit; text-decoration: none; }

.credits-span { grid-column: 1 / -1; }

/* ---------- prose (privacy) ---------- */

.prose-card {
  max-width: 820px;
  margin: 10px auto 0;
  padding: clamp(24px, 5vw, 56px);
  color: #1b2a18;
  background: var(--cream);
  border: var(--outline) solid var(--ink);
  border-radius: 34px;
  box-shadow: 0 0 0 6px var(--lime), 0 0 0 10px var(--ink), 0 14px 0 10px var(--ink);
}
.prose-card h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); color: var(--ink); margin-top: 1.4em; }
.prose-card h3 { font-size: 1.3rem; color: var(--ink); margin-top: 1.2em; }
.prose-card h2:first-child, .prose-card h3:first-child { margin-top: 0; }
.prose-card a { color: var(--green-deep); font-weight: 700; }
.prose-card ul, .prose-card ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose-card li { margin-bottom: .4em; }
.prose-meta { font-size: .95rem; color: #4a6342; margin-bottom: 1.6em; }

.paste-here {
  padding: 28px;
  text-align: center;
  color: #3d5634;
  background: repeating-linear-gradient(-45deg, rgba(111, 245, 58, .12) 0 14px, transparent 14px 28px);
  border: 4px dashed var(--green-deep);
  border-radius: 22px;
}
.paste-here strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--ink); margin-bottom: .3em; }
.paste-here p { margin: 0; }

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  background: var(--night);
  border-top: 3px solid var(--ink);
  font-size: .95rem;
}
.goo-band + .site-footer { border-top: 0; }
.footer-inner {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: start; }
}
.footer-brand img { width: 120px; }
.footer-brand p { margin: 10px 0 0; max-width: 22em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text); text-decoration: none; font-family: var(--display); font-size: 1.05rem; }
.footer-links a:hover { color: var(--lime); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--cream);
  background: var(--bg-2);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .15s ease, background-color .15s ease;
}
.footer-social a:hover { background: var(--evil); transform: translateY(-2px); }
.footer-social svg { width: 22px; height: 22px; }
.footer-fine {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed rgba(165, 196, 154, .2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .88rem;
}
.footer-fine p { margin: 0; }
.footer-fine a { color: var(--muted); }

/* ---------- 404 ---------- */

.lost {
  min-height: 60vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  position: relative;
}
.lost .lurker { position: static; justify-content: center; margin: 0 auto 30px; gap: 22px; }
.lost .lurker span { width: 30px; height: 18px; }

/* ---------- motion settings ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero-logo { animation: none; }
  /* park the bubbles where they are instead of floating */
  .bubble {
    animation: none;
    opacity: .55;
    bottom: var(--rest, 30%);
  }
  .lurker span { animation: none; }
}

/* ---------- small helpers ---------- */

.blob-dark .evil-name { color: var(--evil); }
.center-block { text-align: center; }
.chips-center { justify-content: center; margin-top: 22px; }
.center-block .chips, .center-block .btn-row { justify-content: center; }
.center-block .chips { margin-top: 18px; }
.center-block .btn-row { margin-top: 48px; }
.more-link { text-align: center; margin: 48px 0 0; }
.lost .lede { margin-inline: auto; }
.lost .btn { margin-top: 12px; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .92em;
  padding: .1em .4em;
  background: rgba(6, 10, 6, .08);
  border-radius: 6px;
}
.viewer.is-fallback .viewer-status { top: 16px; bottom: auto; font-size: .92rem; }
