/* =========================================================================
   CROCAT — STYLES
   ========================================================================= */

:root {
  --navy-900: #071445;
  --navy-800: #0a1e5e;
  --navy-700: #103f91;
  --blue-600: #1652c8;
  --blue-500: #1868e0;
  --blue-400: #3d86f0;
  --sky: #e3f1ff;
  --orange: #f5921e;
  --orange-d: #e07a10;
  --gold: #ffc53d;
  --pink: #e5568a;
  --cream: #fff6e9;
  --white: #ffffff;
  --ink: #0a1130;
  --muted: #46527a;
  --up: #4ade80;
  --down: #ff8a9a;

  --shadow-hard: 0 6px 0 rgba(7, 20, 69, 0.85);
  --shadow-deep: 0 7px 0 rgba(0, 0, 0, 0.35);
  --border: 3px solid var(--ink);
  --radius: 22px;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);

  --font-display: "Luckiest Guy", cursive;
  --font-head: "Fredoka", sans-serif;
  --font-body: "Nunito", sans-serif;
  --font-hand: "Gochi Hand", "Comic Sans MS", cursive;

  --hex-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.4'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  overflow-x: clip;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font: inherit;
  color: inherit;
}
b,
strong {
  font-weight: 800;
}

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}
.center {
  text-align: center;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7em 1.2em;
  border: var(--border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
  filter: brightness(1.05);
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}
.btn--lg {
  font-size: 1.12rem;
  padding: 0.78em 1.45em;
}
.btn--buy {
  --btn-bg: var(--orange);
  color: #fff;
}
.btn--x {
  --btn-bg: var(--ink);
  color: #fff;
}
.btn--tg {
  --btn-bg: #2aabee;
  color: #fff;
}
.btn--dc {
  --btn-bg: #5865f2;
  color: #fff;
}
.btn--light {
  --btn-bg: var(--white);
}
.btn--gold {
  --btn-bg: var(--gold);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: var(--border);
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.08s ease;
}
.icon-btn:hover {
  transform: translateY(-2px) rotate(-6deg);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Shared bits ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45em 1em;
  border-radius: 999px;
}
.pill--glass {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.pill b {
  color: var(--gold);
  font-weight: 700;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-d);
  background: #ffe7c7;
  border: 2px solid var(--ink);
  padding: 0.3em 0.9em;
  border-radius: 999px;
  rotate: -2deg;
}
.kicker--gold {
  color: var(--gold);
  background: rgba(255, 197, 61, 0.12);
  border-color: var(--gold);
}
.kicker--ink {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
}

.sticker {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.05;
  text-align: center;
  background: #fff;
  color: var(--ink);
  border: var(--border);
  border-radius: 14px;
  padding: 0.2em 0.6em;
  box-shadow: 0 4px 0 var(--ink);
  animation: bob 4.5s ease-in-out infinite;
}

.bubble {
  position: absolute;
  z-index: 4;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  background: #fff;
  color: var(--ink);
  border: var(--border);
  border-radius: 18px;
  padding: 0.55em 0.95em;
  box-shadow: 0 4px 0 var(--ink);
  max-width: 15rem;
  text-align: center;
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 28px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-right: var(--border);
  border-bottom: var(--border);
  transform: rotate(45deg) skew(8deg, 8deg);
  border-bottom-right-radius: 4px;
}

.polaroid {
  position: relative;
  background: #fff;
  border: var(--border);
  border-radius: 10px;
  padding: 14px 14px 0;
  box-shadow: var(--shadow-hard);
}
.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--ink);
}
.polaroid figcaption {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  text-align: center;
  padding: 0.55rem 0.3rem 0.75rem;
  color: var(--ink);
}
.polaroid::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 110px;
  height: 30px;
  translate: -50% 0;
  rotate: 4deg;
  z-index: 2;
  background: rgba(255, 197, 61, 0.8);
  border: 2px solid rgba(10, 17, 48, 0.25);
  border-radius: 3px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}
.nav__inner {
  position: relative;
  pointer-events: auto;
  width: min(1160px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0.45rem 0.4rem 0.5rem;
  min-height: 60px;
  background: rgba(255, 246, 233, 0.94);
  backdrop-filter: blur(10px);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  transition: box-shadow 0.2s ease;
}
.nav.is-scrolled .nav__inner {
  box-shadow: 0 4px 0 var(--ink), 0 14px 30px rgba(7, 20, 69, 0.18);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.nav__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--border);
  transition: rotate 0.3s ease;
}
.nav__brand:hover .nav__logo {
  rotate: -12deg;
}
.nav__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-800);
  letter-spacing: 0.5px;
  padding-top: 4px;
}
.nav__links {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
  font-family: var(--font-head);
  font-weight: 600;
}
.nav__links a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav__links a:hover {
  background: #ffe7c7;
  color: var(--orange-d);
}
.nav__links a.is-active {
  background: var(--navy-800);
  color: #fff;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.nav__buy {
  padding: 0.55em 1.05em;
  box-shadow: 0 3px 0 var(--ink);
}
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  border: var(--border);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 130px 0 6.5rem;
  background: radial-gradient(
      700px 520px at 78% 38%,
      rgba(61, 134, 240, 0.75) 0%,
      transparent 65%
    ),
    linear-gradient(165deg, #1a5fd6 0%, #1446b0 40%, #0a1e5e 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: var(--hex-pattern);
  background-size: 56px 100px;
  -webkit-mask-image: radial-gradient(
    ellipse at 70% 40%,
    #000 0%,
    transparent 75%
  );
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.9;
}
.hero__blob--a {
  width: 340px;
  height: 340px;
  left: -150px;
  bottom: -120px;
  background: radial-gradient(
    circle at 60% 40%,
    #ffb35c,
    var(--orange) 60%,
    var(--orange-d)
  );
}
.hero__blob--b {
  width: 220px;
  height: 220px;
  right: -90px;
  top: 90px;
  background: radial-gradient(circle at 40% 40%, #ffb35c, var(--orange) 70%);
  opacity: 0.7;
}
.spark {
  position: absolute;
  color: #fff;
  font-size: 1.1rem;
  opacity: 0.8;
  animation: twinkle 3.2s ease-in-out infinite;
}
.spark--1 {
  top: 22%;
  left: 6%;
}
.spark--2 {
  top: 14%;
  left: 46%;
  font-size: 0.8rem;
  animation-delay: 0.8s;
}
.spark--3 {
  top: 64%;
  left: 44%;
  font-size: 1.4rem;
  animation-delay: 1.6s;
}
.spark--4 {
  top: 30%;
  right: 8%;
  animation-delay: 2.1s;
}
.spark--5 {
  bottom: 22%;
  right: 30%;
  font-size: 0.9rem;
  animation-delay: 1.1s;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero__inner > * {
  min-width: 0;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.4rem, 12vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 3px;
  color: #fff;
  margin: 1.1rem 0 0.1rem;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 var(--ink);
}
.hero__title span {
  color: var(--gold);
}
.hero__tagline {
  font-family: var(--font-hand);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  color: var(--gold);
  rotate: -2deg;
  margin-left: 0.3rem;
}
.hero__sub {
  font-size: 1.16rem;
  font-weight: 700;
  max-width: 33rem;
  color: #dbe8ff;
  margin: 0.7rem 0 1.5rem;
}

.ca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  background: var(--navy-900);
  color: #fff;
  border: var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  margin-bottom: 1.3rem;
  box-shadow: 0 4px 0 var(--ink);
}
.ca__label {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
}
.ca__addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.ca__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  flex-shrink: 0;
  border: 2px solid var(--ink);
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 0.42em 0.95em;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease;
}
.ca__copy svg {
  width: 15px;
  height: 15px;
}
.ca__copy:hover {
  background: var(--orange-d);
}
.ca__copy:active {
  transform: scale(0.95);
}
.ca__copy.copied {
  background: #33b36b;
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.5rem 0 0;
}
.pet {
  position: relative;
  display: block;
  width: min(420px, 100%);
  background: none;
  border: 0;
  padding: 0;
  cursor: grab;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}
.pet:active {
  cursor: grabbing;
}
.pet:focus-visible {
  outline-offset: 10px;
  border-radius: 20px;
}
.hexframe {
  display: block;
  animation: floaty 5s ease-in-out infinite;
  filter: drop-shadow(4px 0 0 var(--ink)) drop-shadow(-4px 0 0 var(--ink))
    drop-shadow(0 4px 0 var(--ink)) drop-shadow(0 -4px 0 var(--ink))
    drop-shadow(0 14px 0 rgba(7, 20, 69, 0.55));
}
.hexframe__ring {
  display: block;
  aspect-ratio: 0.866;
  clip-path: var(--hex);
  background: #fff;
  padding: 14px;
  transition: transform 0.2s ease;
}
.hexframe__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: var(--hex);
}
.pet.is-petted .hexframe__ring {
  animation: squish 0.45s ease;
}

.sticker--gm {
  top: 14%;
  left: 0;
  background: var(--gold);
  rotate: -10deg;
}
.sticker--lives {
  top: 46%;
  right: -2%;
  background: var(--orange);
  color: #fff;
  rotate: 9deg;
  animation-delay: -1.5s;
}
.sticker--meow {
  bottom: 16%;
  left: 3%;
  rotate: -4deg;
  animation-delay: -3s;
}

.hero__art .bubble {
  top: -0.4rem;
  right: 6%;
  opacity: 0;
  transform: scale(0.5) rotate(-6deg);
  transform-origin: 20% 100%;
  transition: opacity 0.18s ease, transform 0.3s cubic-bezier(0.2, 1.6, 0.4, 1);
  pointer-events: none;
}
.hero__art .bubble.is-on {
  opacity: 1;
  transform: scale(1) rotate(-3deg);
}
.pet__hint {
  margin-top: 1.4rem;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: #fff;
  opacity: 0.9;
  text-align: center;
  min-height: 1.6em;
}
.pet__hint b {
  color: var(--gold);
  font-weight: 400;
}

/* ---------- Live stats ---------- */
.live {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  background: rgba(7, 20, 69, 0.55);
  backdrop-filter: blur(8px);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
  padding: 0.85rem 1rem 1rem;
}
html:not(.js) .live {
  display: none;
}
.live__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
  padding: 0 0.2rem;
}
.live__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.2em 0.7em;
}
.live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 1.8s ease-out infinite;
}
.live__mood {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--gold);
}
.live__src {
  margin-left: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: #b9cdf5;
}
.live__src:hover {
  color: #fff;
}
.live__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.tile {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 0.7rem 0.95rem 0.75rem;
  min-width: 0;
}
.tile dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: #b9cdf5;
}
.tile__v {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  color: #fff;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile__delta {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}
.tile__delta.is-up {
  color: var(--up);
}
.tile__delta.is-down {
  color: var(--down);
}
.tile__delta small {
  color: #b9cdf5;
  font-weight: 600;
}
.live.is-loading .tile__v {
  color: transparent;
  border-radius: 8px;
  max-width: 7.5rem;
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.22) 50%,
      rgba(255, 255, 255, 0.08) 100%
    )
    0 0 / 200% 100%;
  animation: shimmer 1.3s linear infinite;
}

/* ---------- Tape (crossing marquees) ---------- */
.tape {
  position: relative;
  z-index: 5;
  height: 120px;
  margin: -64px 0 -36px;
  pointer-events: none;
  overflow-x: clip;
}
.tape__band {
  position: absolute;
  left: -5vw;
  width: 110vw;
  top: 50%;
  border-block: var(--border);
  overflow: hidden;
  padding: 0.55rem 0;
}
.tape__band--a {
  background: var(--gold);
  rotate: -2.2deg;
  translate: 0 -78%;
  z-index: 2;
  box-shadow: 0 5px 0 var(--ink);
}
.tape__band--b {
  background: var(--navy-900);
  rotate: 1.8deg;
  translate: 0 -10%;
}
.tape__track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  animation: scroll 38s linear infinite;
}
.tape__track--rev {
  animation-direction: reverse;
  animation-duration: 46s;
}
.tape__track span {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 1px;
  white-space: nowrap;
  padding-top: 3px;
}
.tape__track i {
  font-style: normal;
  font-size: 1.1rem;
}
.tape__band--a .tape__track span,
.tape__band--a .tape__track i {
  color: var(--ink);
}
.tape__band--b .tape__track span {
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}
.section__head {
  margin-bottom: 2.6rem;
}
.section__head.center {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 3.8rem);
  line-height: 1.02;
  color: var(--navy-800);
  letter-spacing: 1px;
  margin: 0.9rem 0 0.7rem;
}
.section__lead {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-700);
  max-width: 36rem;
}
.hl {
  color: var(--orange);
}

.section--navy {
  background: var(--navy-800);
  color: #fff;
  margin-block: 20px;
}
.section--navy::before,
.section--navy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  pointer-events: none;
  background: radial-gradient(
      circle at 20px 20px,
      var(--navy-800) 19.5px,
      transparent 20px
    )
    0 0 / 40px 20px repeat-x;
}
.section--navy::before {
  top: -19px;
}
.section--navy::after {
  bottom: -19px;
  transform: scaleY(-1);
}
.section--navy .section__title {
  color: #fff;
}
.section--navy .section__lead {
  color: #b9cdf5;
}
.section--navy .hl {
  color: var(--gold);
}
.section--navy > .container {
  position: relative;
}
.section--navy > .container::before {
  content: "";
  position: absolute;
  inset: -4rem -10vw;
  opacity: 0.04;
  pointer-events: none;
  z-index: -1;
  background-image: var(--hex-pattern);
  background-size: 56px 100px;
}

.section--sky {
  background: linear-gradient(180deg, var(--sky) 0%, #f1f8ff 100%);
  border-block: var(--border);
}

/* ---------- About ---------- */
.about {
  padding-top: clamp(6rem, 10vw, 8rem);
}
.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about__art {
  position: relative;
  max-width: 430px;
  width: 100%;
  justify-self: center;
}
.about__art .polaroid {
  rotate: -3deg;
}
.about__art .bubble--static {
  top: -1.2rem;
  right: -1.5rem;
  rotate: 6deg;
}
.about__art .bubble--static::after {
  left: auto;
  right: 34px;
}
.about__copy > p:not(.kicker) {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #24304f;
  max-width: 38rem;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}
.chips li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.45em 1em;
  box-shadow: 0 3px 0 var(--ink);
}
.chips li:nth-child(odd) {
  rotate: -1.5deg;
}
.chips li:nth-child(even) {
  rotate: 1deg;
}

/* ---------- Lore ---------- */
.lives {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  align-items: stretch;
}
.life {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  background: #fff;
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.7rem 1.2rem;
  box-shadow: var(--shadow-deep);
}
.life:nth-child(odd) {
  rotate: -1.3deg;
}
.life:nth-child(even) {
  rotate: 1.3deg;
  translate: 0 14px;
}
.life:hover {
  rotate: 0deg;
  transform: translateY(-6px);
}
.life__img {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--ink);
  margin-bottom: 0.85rem;
}
.life__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.life:hover .life__img img {
  transform: scale(1.06);
}
.life__num {
  display: inline-block;
  margin-left: 0.3rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--navy-800);
  color: var(--gold);
  padding: 0.22em 0.75em;
  border-radius: 999px;
}
.life h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.14rem;
  line-height: 1.2;
  color: var(--navy-800);
  margin: 0.55rem 0.3rem 0.3rem;
}
.life p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0.3rem;
}
.life--locked {
  background: repeating-linear-gradient(
    -45deg,
    #fff6e9 0 12px,
    #ffefd6 12px 24px
  );
  border-style: dashed;
}
.life__img--locked {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--navy-700);
}
.life__q {
  font-family: var(--font-display);
  font-size: 5.5rem;
  color: var(--gold);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
  animation: wobble 3s ease-in-out infinite;
  padding-top: 0.3rem;
}
.life__paw {
  position: absolute;
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.18);
}
.life__paw--1 {
  top: 14%;
  left: 14%;
  rotate: -20deg;
}
.life__paw--2 {
  bottom: 16%;
  left: 30%;
  rotate: 15deg;
}
.life__paw--3 {
  top: 30%;
  right: 12%;
  rotate: 35deg;
}
.life__cta {
  display: inline-block;
  margin: 0.7rem 0.3rem 0;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--orange-d);
}
.life__cta:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- How to buy ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.step {
  position: relative;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 1.9rem 1.3rem 1.5rem;
}
.step:hover {
  transform: translateY(-6px);
}
.step:not(:last-child)::after {
  content: "🐾";
  position: absolute;
  right: -0.65rem;
  top: 50%;
  translate: 50% -50%;
  rotate: 90deg;
  font-size: 1rem;
  opacity: 0.45;
  pointer-events: none;
}
.step__num {
  position: absolute;
  top: -20px;
  left: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding-top: 3px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  border: var(--border);
  border-radius: 50%;
  box-shadow: 0 3px 0 var(--ink);
}
.step:nth-child(2) .step__num {
  background: var(--blue-500);
}
.step:nth-child(3) .step__num {
  background: var(--pink);
}
.step:nth-child(4) .step__num {
  background: var(--gold);
  color: var(--ink);
}
.step__icon {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
  margin: 0.2rem 0 0.6rem;
}
.step h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy-800);
  margin-bottom: 0.35rem;
}
.step p {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.98rem;
}

.mini-ca {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--navy-800);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.45em 0.9em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease;
}
.mini-ca:hover {
  background: var(--navy-700);
}
.mini-ca:active {
  transform: scale(0.96);
}
.mini-ca svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex-shrink: 0;
}
.mini-ca__k {
  font-family: var(--font-head);
  color: var(--gold);
}
.mini-ca--dark {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}
.mini-ca--dark:hover {
  background: rgba(255, 255, 255, 0.16);
}

.safety {
  max-width: 42rem;
  margin: 2.4rem auto 0;
  text-align: center;
  font-weight: 700;
  color: var(--navy-800);
  background: #fff3d6;
  border: 2px dashed var(--orange-d);
  border-radius: 14px;
  padding: 0.75em 1.1em;
}
.buy__cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* ---------- Create your CroCat (dress-up studio) ---------- */
.studio {
  overflow: hidden;
}
.studio::before,
.studio::after {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
  animation: drift 60s linear infinite alternate;
}
.studio::before {
  content: "🧶";
  top: 9%;
  left: 5%;
  font-size: 3.6rem;
}
.studio::after {
  content: "🎀";
  top: 52%;
  right: 3%;
  font-size: 4.4rem;
  animation-duration: 80s;
  animation-direction: alternate-reverse;
}

.studio__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4.5vw, 3.6rem);
  align-items: start;
}
.studio__preview {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}
.studio__polaroid {
  width: min(100%, 470px);
  rotate: -2deg;
}
.studio__polaroid figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding-block: 0.6rem 0.8rem;
}
.studio__caption {
  font-size: 1.6rem;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio__number {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.studio__stage {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--sky);
  border: 2px solid var(--ink);
  border-radius: 4px;
}
.studio__stage.is-shuffled {
  animation: shuffle 0.5s ease;
}
.studio__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.studio__stage img[hidden] {
  display: none;
}
.studio__stage img[data-layer="bg"] {
  object-fit: cover;
}
/* garments can hide bits of the base cat (ears under a hat…): creator.js sets the "-cut" masks */
.studio__stage img[data-layer="base"] {
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.studio__cat {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 88%;
  animation: catfloat 2.6s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.studio__cat.is-petted {
  animation: catfloat 2.6s ease-in-out infinite, squish 0.45s ease;
}
.studio__cat:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -8px;
  border-radius: 6px;
}
/* new layers pop in (uses translate/scale so it never fights the per-item "fit" transform) */
.studio__stage img.is-new {
  animation: layerPop 0.42s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.studio__stage img.is-new[data-layer="bg"] {
  animation: layerFade 0.35s ease;
}
.studio__stage img.is-new[data-layer="hat"] {
  animation: layerDrop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}

.studio__ribbon {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 4%;
  translate: -50% 0;
  rotate: -2deg;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  background: var(--gold);
  border: var(--border);
  border-radius: 999px;
  padding: 0.2em 0.9em;
  box-shadow: 0 3px 0 var(--ink);
  animation: pop 0.3s ease;
}
.studio__bubble {
  top: -1.4rem;
  right: -1.6rem;
  max-width: 13.5rem;
  font-size: 0.98rem;
  opacity: 0;
  transform: scale(0.5) rotate(-6deg);
  transform-origin: 20% 100%;
  transition: opacity 0.18s ease, transform 0.3s cubic-bezier(0.2, 1.6, 0.4, 1);
  pointer-events: none;
  z-index: 5;
}
.studio__bubble.is-on {
  opacity: 1;
  transform: scale(1) rotate(3deg);
}
.studio__quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.studio__panel {
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: clamp(0.9rem, 2vw, 1.3rem);
}
.studio__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.studio__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0.5rem 0.3rem 0.45rem;
  cursor: pointer;
  background: var(--cream);
  border: var(--border);
  border-radius: 16px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}
.studio__tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--ink);
}
.studio__tab[aria-selected="true"] {
  background: var(--navy-800);
  color: #fff;
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}
.studio__tab:focus-visible,
.opt:focus-visible,
.secret:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}
.studio__tabIcon {
  font-size: 1.45rem;
  line-height: 1.15;
}
.studio__tab b {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}
.studio__tab small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.studio__tab[aria-selected="true"] small {
  color: var(--gold);
}

.studio__options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}
.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.35rem 0.35rem 0.3rem;
  cursor: pointer;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
  animation: pop 0.28s ease both;
  animation-delay: calc(var(--i, 0) * 22ms);
}
.opt:hover {
  transform: translateY(-2px) rotate(-1.5deg);
  box-shadow: 0 5px 0 var(--ink);
}
.opt:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}
.opt[aria-pressed="true"] {
  background: var(--gold);
}
.opt[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: -9px;
  right: -9px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: #fff;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.opt__img {
  display: block;
  aspect-ratio: 1;
  background-color: var(--sky);
  background-repeat: no-repeat;
  border: 2px solid var(--ink);
  border-radius: 9px;
}
.opt__img--none {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, #f3f6fb 0 8px, #e6ecf7 8px 16px);
}
.opt__img--none::before {
  content: "✕";
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #9aa6c4;
}
.opt__name {
  display: grid;
  place-items: center;
  min-height: 2.2em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.1;
  text-align: center;
}

.studio__field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.studio__field label {
  font-family: var(--font-head);
  font-weight: 700;
  white-space: nowrap;
}
.studio__field input {
  flex: 1;
  min-width: 0;
  padding: 0.3rem 0.95rem;
  outline: none;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--ink);
  background: var(--cream);
  border: var(--border);
  border-radius: 999px;
}
.studio__field input:focus {
  box-shadow: 0 0 0 3px var(--gold);
}
.studio__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.studio__actions .btn--lg {
  flex: 1 1 auto;
}
.studio__hint {
  margin-top: 0.8rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  background: #fff6d8;
  border: 2px dashed var(--orange);
  border-radius: 12px;
}
.studio__hint b {
  color: var(--orange-d);
}
.studio__hint kbd {
  font-family: var(--font-head);
  font-size: 0.8rem;
  white-space: nowrap;
  padding: 0.05em 0.45em;
  background: #fff;
  border: 2px solid var(--ink);
  border-bottom-width: 3px;
  border-radius: 6px;
}
.studio__hintLink {
  font: inherit;
  color: var(--blue-500);
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.studio__secrets {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 2px dashed rgba(10, 17, 48, 0.2);
}
.studio__secrets h3 {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  color: var(--navy-800);
}
.studio__secrets h3 span {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}
.studio__secretList {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.secret {
  width: 100%;
  padding: 0.3em 0.6em;
  cursor: help;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: #6b7699;
  background: #f3f6fb;
  border: 2px dashed #9aa6c4;
  border-radius: 999px;
}
.secret.is-found {
  cursor: pointer;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.secret.is-found:hover {
  transform: translateY(-1px);
}

/* ---------- Memes ---------- */
.memes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem 1.3rem;
}
.meme {
  display: block;
  width: 100%;
  text-align: center;
  cursor: zoom-in;
  background: #fff;
  border: var(--border);
  border-radius: 10px;
  padding: 10px 10px 0;
  box-shadow: var(--shadow-deep);
}
.meme:nth-child(4n + 1) {
  rotate: -2deg;
}
.meme:nth-child(4n + 2) {
  rotate: 1.5deg;
}
.meme:nth-child(4n + 3) {
  rotate: -1deg;
}
.meme:nth-child(4n + 4) {
  rotate: 2.2deg;
}
.meme:hover,
.meme:focus-visible {
  rotate: 0deg;
  transform: translateY(-6px) scale(1.03);
  z-index: 2;
}
.meme img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--ink);
}
.meme__cap {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--ink);
  padding: 0.55rem 0.25rem 0.7rem;
  min-height: 3.2em;
  display: grid;
  place-items: center;
}

.kit {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.kit h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.kit p {
  color: #cfe0ff;
  font-weight: 600;
  max-width: 30rem;
}
.kit__items {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.kit__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  color: var(--ink);
  border: var(--border);
  border-radius: 16px;
  padding: 0.5rem 0.8rem 0.5rem 0.5rem;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.kit__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.35);
}
.kit__item img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  object-fit: cover;
}
.kit__item img.kit__wide {
  width: 72px;
}
.kit__item b {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
}
.kit__item small {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  color: #5a6a95;
}
.kit__item svg {
  width: 20px;
  height: 20px;
  color: var(--orange-d);
  margin-left: 0.2rem;
}

/* ---------- Join ---------- */
.join__card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: center;
  background: radial-gradient(rgba(255, 255, 255, 0.2) 2px, transparent 2.5px) 0
      0 / 22px 22px,
    linear-gradient(135deg, #ffa53a 0%, var(--orange) 50%, var(--orange-d) 100%);
  border: var(--border);
  border-radius: 32px;
  box-shadow: 0 8px 0 var(--ink);
  padding: clamp(1.8rem, 4.5vw, 3.4rem);
}
.join__card .section__title {
  color: #fff;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
}
.join__card .hl {
  color: var(--gold);
}
.join__copy > p:not(.kicker) {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  max-width: 32rem;
}
.join__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.join__art {
  max-width: 340px;
  justify-self: center;
  rotate: 3deg;
  background: #fff;
  border: var(--border);
  border-radius: 10px;
  padding: 12px 12px 0;
  box-shadow: 0 6px 0 var(--ink);
}
.join__art img {
  border-radius: 4px;
  border: 2px solid var(--ink);
  aspect-ratio: 1;
  object-fit: cover;
}
.join__art figcaption {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  text-align: center;
  padding: 0.5rem 0 0.7rem;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--navy-900);
  color: #cfe0ff;
  padding: 3.2rem 0 2rem;
  margin-top: 1rem;
  border-top: var(--border);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.footer__brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--gold);
}
.footer__brand b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.1;
  padding-top: 4px;
}
.footer__brand small {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--gold);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  font-family: var(--font-head);
  font-weight: 600;
}
.footer__links a:hover {
  color: var(--gold);
}
.footer__bottom {
  display: grid;
  gap: 0.8rem;
  text-align: center;
  padding-top: 1.6rem;
}
.footer__disclaimer {
  max-width: 72ch;
  margin-inline: auto;
  font-size: 0.82rem;
  opacity: 0.65;
}
.footer__copy {
  font-family: var(--font-head);
  font-weight: 600;
}

/* ---------- Lightbox ---------- */
.lightbox {
  margin: auto;
  width: min(540px, 92vw);
  max-height: 92vh;
  overflow: visible;
  background: #fff;
  color: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--ink);
  padding: 1rem 1rem 1.2rem;
}
.lightbox[open] {
  animation: pop 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.lightbox::backdrop {
  background: rgba(7, 20, 69, 0.78);
  backdrop-filter: blur(4px);
}
.lightbox__img {
  width: 100%;
  max-height: 64vh;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--sky);
}
.lightbox__cap {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  text-align: center;
  margin: 0.6rem 0 0.8rem;
  line-height: 1.15;
}
.lightbox__actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  border: var(--border);
  box-shadow: 0 3px 0 var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}
.lightbox__close:hover {
  rotate: 90deg;
  transition: rotate 0.2s ease;
}

/* ---------- Toast + fx ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 120;
  max-width: min(92vw, 30rem);
  translate: -50% calc(100% + 40px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  background: var(--ink);
  color: #fff;
  border: 3px solid var(--gold);
  border-radius: 999px;
  padding: 0.75em 1.3em;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
  transition: translate 0.35s cubic-bezier(0.2, 1.4, 0.4, 1), opacity 0.2s ease,
    visibility 0s linear 0.35s;
}
.toast.is-on {
  translate: -50% 0;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.fx {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 110;
  pointer-events: none;
  font-size: 1.3rem;
  line-height: 1;
  will-change: transform, opacity;
}
.fx--burst {
  animation: burst 0.8s ease-out forwards;
}
.fx--rain {
  top: -70px;
  animation: rain var(--dur, 3s) linear forwards;
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.6s ease, translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.18s ease, rotate 0.18s ease, box-shadow 0.18s ease;
}
.js .reveal.is-in {
  opacity: 1;
  translate: 0 0;
}
.js .life.reveal.is-in:nth-child(even) {
  translate: 0 14px;
}
.js .reveal:nth-child(2) {
  transition-delay: 0.06s, 0.06s, 0s, 0s, 0s;
}
.js .reveal:nth-child(3) {
  transition-delay: 0.12s, 0.12s, 0s, 0s, 0s;
}
.js .reveal:nth-child(4) {
  transition-delay: 0.18s, 0.18s, 0s, 0s, 0s;
}
.js .reveal:nth-child(5) {
  transition-delay: 0.24s, 0.24s, 0s, 0s, 0s;
}

/* ---------- Keyframes ---------- */
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.7);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.15);
  }
}
@keyframes wobble {
  0%,
  100% {
    rotate: -6deg;
  }
  50% {
    rotate: 6deg;
  }
}
@keyframes squish {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.93, 0.88);
  }
  60% {
    transform: scale(1.04, 1.06);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}
@keyframes drift {
  from {
    transform: translateX(-40px);
  }
  to {
    transform: translateX(80px);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(74, 222, 128, 0);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes catfloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -1.1%;
  }
} /* mid-jump float */
@keyframes shuffle {
  0%,
  100% {
    rotate: 0deg;
  }
  25% {
    rotate: -3deg;
  }
  55% {
    rotate: 2.4deg;
  }
  80% {
    rotate: -0.8deg;
  }
}
@keyframes layerPop {
  from {
    scale: 0.86;
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  to {
    scale: 1;
  }
}
@keyframes layerFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes layerDrop {
  from {
    translate: 0 -14%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  to {
    translate: 0 0;
  }
}
@keyframes burst {
  from {
    transform: translate(var(--x), var(--y)) translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }
  to {
    transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy)))
      translate(-50%, -50%) rotate(var(--rot)) scale(1);
    opacity: 0;
  }
}
@keyframes rain {
  from {
    transform: translate(var(--x), 0) rotate(0deg);
  }
  to {
    transform: translate(calc(var(--x) + var(--dx)), calc(100vh + 140px))
      rotate(var(--rot));
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lives {
    flex-wrap: wrap;
    justify-content: center;
  }
  .life {
    flex: 0 1 calc(33.333% - 0.75rem);
  }
  .life:nth-child(even),
  .js .life.reveal.is-in:nth-child(even) {
    translate: 0 0;
  }
}

@media (max-width: 960px) {
  .nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem;
    background: var(--cream);
    border: var(--border);
    border-radius: 22px;
    box-shadow: 0 5px 0 var(--ink);
  }
  .nav__links.open {
    display: flex;
  }
  .nav__links a {
    padding: 0.7rem 1rem;
    font-size: 1.1rem;
  }
  .nav__actions {
    margin-left: auto;
  }
  .nav__burger {
    display: flex;
  }
  .memes__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 104px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero__sub {
    margin-inline: auto;
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__art {
    order: -1;
    width: min(330px, 78vw);
    margin-inline: auto;
    padding-top: 2.2rem;
  }
  .hero__art .bubble {
    right: -4%;
    top: 0;
    font-size: 0.95rem;
  }
  .sticker {
    font-size: 1.1rem;
  }
  .sticker--gm {
    left: -8%;
  }
  .sticker--lives {
    right: -10%;
  }
  .pet__hint {
    margin-top: 1rem;
    font-size: 1.15rem;
  }
  .live {
    margin-top: 2.2rem;
  }
  .live__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__art {
    max-width: 340px;
  }
  .about__art .bubble--static {
    right: -0.4rem;
  }
  .about__copy {
    text-align: center;
  }
  .about__copy > p:not(.kicker) {
    margin-inline: auto;
  }
  .chips {
    justify-content: center;
  }

  .lives {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4vw;
    margin-inline: -4vw;
    padding: 1rem 4vw 1.6rem;
    scrollbar-width: none;
  }
  .lives::-webkit-scrollbar {
    display: none;
  }
  .life {
    flex: 0 0 74%;
    scroll-snap-align: center;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.2rem;
  }
  .step:nth-child(2)::after {
    display: none;
  }

  .memes__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 1rem;
  }
  .kit {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .kit p {
    margin-inline: auto;
  }
  .kit__items {
    justify-content: center;
  }

  .join__card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .join__copy > p:not(.kicker) {
    margin-inline: auto;
  }
  .join__buttons {
    justify-content: center;
  }
  .join__art {
    max-width: 220px;
    order: -1;
  }
  .studio__grid {
    grid-template-columns: 1fr;
  }
  .studio__preview {
    position: static;
  }
  .studio__polaroid {
    width: min(100%, 390px);
  }
  .studio__bubble {
    right: -0.6rem;
    font-size: 0.92rem;
  }
  .studio::before {
    top: 2%;
    left: 2%;
    font-size: 2.6rem;
  }
  .studio::after {
    display: none;
  }

  .footer__top {
    flex-direction: column;
    text-align: center;
  }
  .footer__links {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(1160px, 90vw);
  }
  .hero__title {
    -webkit-text-stroke-width: 4px;
    text-shadow: 0 6px 0 var(--ink);
  }
  .hero__cta .btn {
    flex: 1 1 auto;
  }
  .ca {
    width: 100%;
  }
  .ca__addr {
    flex: 1;
    font-size: 0.8rem;
  }
  .steps {
    grid-template-columns: 1fr;
    row-gap: 1.7rem;
  }
  .step::after {
    display: none;
  }
  .step {
    padding: 1.9rem 1.1rem 1.3rem 4.3rem;
  }
  .step__icon {
    position: absolute;
    left: 1.05rem;
    top: 2.25rem;
    font-size: 2rem;
    margin: 0;
  }
  .kit__items {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
    width: 100%;
  }
  .kit__item > span {
    flex: 1;
    text-align: left;
  }
  .meme__cap {
    font-size: 1rem;
  }
  .live__head {
    flex-wrap: wrap;
    row-gap: 0.3rem;
  }
  .tile {
    padding: 0.6rem 0.7rem;
  }
  .nav__buy {
    padding: 0.5em 0.85em;
    font-size: 0.92rem;
  }
  .nav__inner {
    gap: 0.5rem;
  }
  .nav__name {
    display: none;
  }
  .pill {
    font-size: 0.8rem;
  }
  .studio__polaroid {
    width: min(100%, 320px);
  }
  .studio__panel {
    padding: 0.75rem;
  }
  .studio__tabs {
    gap: 0.35rem;
  }
  .studio__tab {
    padding: 0.4rem 0.15rem 0.35rem;
    border-radius: 13px;
  }
  .studio__tab b {
    font-size: 0.82rem;
  }
  .studio__tab small {
    font-size: 0.62rem;
  }
  .studio__options {
    gap: 0.45rem;
  }
  .opt {
    padding: 0.2rem 0.2rem 0.15rem;
    border-radius: 11px;
  }
  .opt__img {
    border-radius: 7px;
  }
  .opt__name {
    font-size: 0.64rem;
  }
  .opt[aria-pressed="true"]::after {
    width: 20px;
    height: 20px;
    top: -7px;
    right: -7px;
    font-size: 0.7rem;
  }
  .studio__field {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .studio__actions .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    translate: none;
  }
}
