/* =========================================================
   EGGMON — styles.css
   palette tokens, base reset, components, responsive tuning
   ========================================================= */

/* ---------- Custom font ---------- */
@font-face {
  font-family: 'R3tards';
  src: url('./R3tards-Regular.otf') format('opentype');
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --bg:          #694b87;   /* page background */
  --text:        #000000;   /* primary text color */
  --mint:        #5feddf;   /* accent 1: light mint */
  --pink:        #ee93e3;   /* accent 2: pastel pink */
  --magenta:     #a0055d;   /* accent 3: deep magenta */
  --white:       #ffffff;
  --black:       #000000;   /* "black" for borders/shadows */
  --jizz:        #fffdf0;   /* the white liquid */

  /* Typography */
  --shitfont: 'R3tards', 'Comic Sans MS', 'Chalkboard SE', system-ui, cursive;

  /* Stroke widths scale up at larger sizes */
  --stroke: 2.5px;
  --stroke-lg: 4px;

  /* Layout */
  --gutter: clamp(12px, 3vw, 24px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--shitfont);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  font-size: 18px;
  line-height: 1.36;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Background texture: subtle grain ---------- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="240" height="240"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0"/></filter><rect width="240" height="240" filter="url(%23n)"/></svg>');
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* Pink/mint glow blobs for atmosphere */
body::after {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(50% 40% at 10% 15%,  rgba(238,147,227,0.35) 0%, transparent 60%),
    radial-gradient(40% 35% at 90% 25%, rgba(95,237,223,0.28) 0%, transparent 60%),
    radial-gradient(60% 45% at 50% 95%, rgba(160,5,93,0.4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  animation: blob-drift 14s ease-in-out infinite alternate;
}
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30px, 20px) scale(1.05); }
}

/* ---------- Reusable: white-stroke purple text ---------- */
.stamp {
  color: var(--text);
  -webkit-text-stroke: var(--stroke) var(--white);
  paint-order: stroke fill;
  text-shadow:
    3px 3px 0 var(--magenta),
    6px 6px 0 var(--black);
}

/* ---------- Marquees ---------- */
.marquee {
  position: relative;
  z-index: 9;
  width: 100%;
  overflow: hidden;
  padding: 11px 0;
  border-top: 4px solid var(--black);
  border-bottom: 4px solid var(--black);
  font-family: var(--shitfont);
  font-size: clamp(22px, 3.6vw, 32px);
  letter-spacing: 2px;
  color: var(--text);
  -webkit-text-stroke: 1.2px var(--white);
  paint-order: stroke fill;
}
.marquee--top    { background: var(--mint); }
.marquee--bottom { background: var(--pink); }

.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-scroll 26s linear infinite;
  will-change: transform;
}
.marquee--bottom .marquee__track {
  animation-duration: 32s;
  animation-direction: reverse;
}
.marquee__track > span { padding: 0 18px; flex-shrink: 0; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause marquees if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Background flying eggmons ---------- */
.flying-eggs {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.flying-egg {
  position: absolute;
  width: clamp(130px, 13vw, 230px);
  aspect-ratio: 188 / 291;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
.flying-egg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('./eggmon.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter:
    drop-shadow(0 0 16px rgba(95,237,223,0.72))
    drop-shadow(0 0 30px rgba(238,147,227,0.66))
    drop-shadow(4px 4px 0 rgba(0,0,0,0.28));
  transform-origin: 50% 52%;
  animation: egg-spin-soft var(--spin-time, 20s) linear infinite;
}
@supports (background-image: url('./eggmon.webp')) {
  .flying-egg::before { background-image: url('./eggmon.webp'); }
}
.flying-egg.e1 { top:  7%;  left:  2%;  --spin-time: 19s; animation: egg-drift-1 24s ease-in-out infinite; }
.flying-egg.e2 { top: 9%;  right: 2%; --spin-time: 23s; animation: egg-drift-2 28s ease-in-out -5s infinite; }
.flying-egg.e3 { bottom: 9%; left: 3%;  --spin-time: 17s; animation: egg-drift-3 22s ease-in-out -9s infinite; }
.flying-egg.e4 { bottom: 10%; right: 3%; --spin-time: 27s; animation: egg-drift-4 31s ease-in-out -12s infinite; }
.flying-egg.e5 { top: 40%; left: 1%; --spin-time: 21s; animation: egg-drift-5 26s ease-in-out -3s infinite; }
.flying-egg.e6 { top: 48%; right: 1%; --spin-time: 29s; animation: egg-drift-6 34s ease-in-out -15s infinite; }
.flying-egg.e2::before,
.flying-egg.e4::before,
.flying-egg.e6::before { animation-direction: reverse; }

@media (min-width: 901px) {
  .flying-eggs { display: block; opacity: 1; }
  .flying-egg { opacity: 0.62; }
  .flying-egg.e1,
  .flying-egg.e2,
  .flying-egg.e3,
  .flying-egg.e4,
  .flying-egg.e5,
  .flying-egg.e6 { display: block; }
}

@keyframes egg-drift-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  25%      { transform: translate3d(16vw, 8vh, 0) scale(1.08); }
  50%      { transform: translate3d(9vw, 26vh, 0) scale(0.94); }
  75%      { transform: translate3d(-4vw, 14vh, 0) scale(1.04); }
}
@keyframes egg-drift-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.02); }
  22%      { transform: translate3d(-14vw, 10vh, 0) scale(0.94); }
  54%      { transform: translate3d(-7vw, 31vh, 0) scale(1.1); }
  78%      { transform: translate3d(5vw, 16vh, 0) scale(0.98); }
}
@keyframes egg-drift-3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.96); }
  28%      { transform: translate3d(22vw, -13vh, 0) scale(1.08); }
  57%      { transform: translate3d(13vw, -34vh, 0) scale(0.92); }
  82%      { transform: translate3d(-5vw, -22vh, 0) scale(1.03); }
}
@keyframes egg-drift-4 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  24%      { transform: translate3d(-19vw, -11vh, 0) scale(1.06); }
  52%      { transform: translate3d(-11vw, -33vh, 0) scale(0.96); }
  76%      { transform: translate3d(4vw, -18vh, 0) scale(1.11); }
}
@keyframes egg-drift-5 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.9); }
  35%      { transform: translate3d(18vw, -18vh, 0) scale(1.02); }
  66%      { transform: translate3d(30vw, 8vh, 0) scale(1.12); }
}
@keyframes egg-drift-6 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.92); }
  31%      { transform: translate3d(-20vw, -16vh, 0) scale(1.08); }
  68%      { transform: translate3d(-32vw, 9vh, 0) scale(0.98); }
}
@keyframes egg-spin-soft {
  from { transform: rotate(-10deg); }
  to   { transform: rotate(350deg); }
}
@media (prefers-reduced-motion: reduce) {
  .flying-egg,
  .flying-egg::before { animation: none !important; }
}

/* ---------- Particle canvas ---------- */
#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
  transform: translateZ(0);
  will-change: opacity;
}

/* ---------- Corner stickers ---------- */
.corner-sticker {
  position: fixed;
  bottom: 78px;
  z-index: 7;
  font-family: var(--shitfont);
  font-size: 18px;
  text-align: center;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 4px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  color: var(--text);
  -webkit-text-stroke: 1px var(--white);
  paint-order: stroke fill;
  pointer-events: none;
  line-height: 1.05;
}
.corner-sticker--left  { left: 16px;  background: var(--mint); transform: rotate(-14deg); }
.corner-sticker--right { right: 16px; background: var(--pink); transform: rotate(12deg); }

/* ---------- Main stage layout ---------- */
.stage {
  position: relative;
  z-index: 6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2.5vw, 24px);
  padding: clamp(20px, 4vw, 40px) var(--gutter) clamp(40px, 6vw, 80px);
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Title ---------- */
.title-block {
  position: relative;
  z-index: 7;
  text-align: center;
  margin-top: 10px;
}
.title {
  font-family: var(--shitfont);
  font-size: clamp(82px, 17vw, 220px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: #5feddf;
  -webkit-text-stroke: var(--stroke-lg) var(--white);
  paint-order: stroke fill;
  text-shadow:
    5px 5px 0 var(--magenta),
    10px 10px 0 var(--black);
  transform: rotate(-3deg);
  animation: wobble 4s ease-in-out infinite;
  user-select: none;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-1deg) translateY(-6px); }
}
.subtitle {
  font-size: clamp(20px, 2.9vw, 30px);
  color: #5feddf;
  -webkit-text-stroke: 1.5px var(--white);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--magenta);
  margin-top: 10px;
  transform: rotate(1deg);
}
@media (prefers-reduced-motion: reduce) {
  .title { animation: none; }
}

/* ---------- Click prompt ---------- */
.click-prompt {
  position: relative;
  z-index: 7;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: clamp(24px, 3.3vw, 34px);
  color: var(--text);
  -webkit-text-stroke: 1.5px var(--white);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--magenta);
  animation: bounce 0.6s ease-in-out infinite alternate;
}
@keyframes bounce {
  from { transform: translateY(0) rotate(-2deg); }
  to   { transform: translateY(-8px) rotate(2deg); }
}
.click-prompt.is-hidden {
  display: none;
}

/* ---------- The mascot ---------- */
.mascot-wrap {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 188 / 291;
  cursor: pointer;
  user-select: none;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  backface-visibility: hidden;
  z-index: 4;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mascot-wrap::before {
  content: '';
  position: absolute;
  inset: -22%;
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(255,253,240,0.36) 0%, rgba(95,237,223,0.42) 26%, rgba(238,147,227,0.32) 48%, transparent 72%);
  filter: blur(7px);
  transform: scale(0.92);
  animation: mascot-aura 3.8s ease-in-out infinite;
}
@keyframes mascot-aura {
  0%, 100% { opacity: 0.68; transform: scale(0.9); }
  50%      { opacity: 0.95; transform: scale(1.02); }
}
@media (hover: hover) and (pointer: fine) {
  .mascot-wrap:hover { transform: scale(1.025) rotate(-0.5deg); }
}
.mascot-wrap.is-jolting { animation: jolt 0.35s cubic-bezier(.36,.07,.19,.97); }
@keyframes jolt {
  0%   { transform: translate(0, 0) rotate(0) scale(1); }
  15%  { transform: translate(-6px, 8px) rotate(-3deg) scale(1.06); }
  30%  { transform: translate(6px, 6px)  rotate(2deg)  scale(1.08); }
  45%  { transform: translate(-4px, 10px) rotate(-2deg) scale(1.05); }
  60%  { transform: translate(4px, 4px)  rotate(1deg)  scale(1.04); }
  100% { transform: translate(0, 0) rotate(0) scale(1); }
}
.mascot-picture {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 14px 0 rgba(0,0,0,0.45))
    drop-shadow(0 0 18px rgba(255,253,240,0.45))
    drop-shadow(0 0 32px rgba(238,147,227,0.48))
    drop-shadow(0 0 44px rgba(95,237,223,0.22));
}
.mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.mascot-glow {
  position: absolute;
  inset: -26%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255,253,240,0.55) 0%, rgba(95,237,223,0.55) 26%, rgba(238,147,227,0.42) 52%, transparent 74%);
  filter: blur(10px);
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.16s ease-out, transform 0.24s ease-out;
  z-index: 1;
  pointer-events: none;
}
.mascot-wrap.is-jolting .mascot-glow {
  opacity: 1;
  transform: scale(1.08);
}
.mascot-wrap:focus-visible {
  outline: 4px solid var(--mint);
  outline-offset: 8px;
  border-radius: 12px;
}

/* ---------- Counter ---------- */
.counter-block {
  position: relative;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--black);
  padding: 12px 22px;
  border-radius: 16px;
  border: 4px solid var(--white);
  box-shadow:
    5px 5px 0 var(--magenta),
    10px 10px 0 var(--black);
  transform: rotate(-1deg);
  font-size: clamp(24px, 3.1vw, 34px);
}
.counter-label {
  color: var(--mint);
  -webkit-text-stroke: 1px var(--black);
  paint-order: stroke fill;
}
.counter-num {
  color: var(--mint);
  -webkit-text-stroke: 1px var(--black);
  paint-order: stroke fill;
  min-width: 2ch;
  text-align: center;
  display: inline-block;
}
.counter-num.is-popping { animation: numpop 0.3s ease-out; }

.counter-num[data-counter-mode="local"]::after {
  content: " LOCAL";
  font-size: 0.32em;
  margin-left: 8px;
  vertical-align: middle;
  -webkit-text-stroke: 0;
}

@keyframes numpop {
  0%   { transform: scale(1); color: var(--mint); }
  50%  { transform: scale(1.5) rotate(8deg); color: var(--mint); }
  100% { transform: scale(1); color: var(--mint); }
}

/* ---------- Contract address bar ---------- */
.ca-bar {
  margin-top: 4px;
  background: var(--white);
  border: 4px solid var(--black);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: clamp(13px, 2vw, 18px);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(640px, 94vw);
  width: 100%;
  box-shadow: 5px 5px 0 var(--magenta);
  transform: rotate(0.5deg);
  flex-wrap: nowrap;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.ca-bar:hover {
  transform: rotate(0.5deg) translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--magenta);
}
.ca-bar:focus-visible {
  outline: 4px solid var(--mint);
  outline-offset: 5px;
}
.ca-label {
  font-family: var(--shitfont);
  background: var(--magenta);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: clamp(15px, 2vw, 19px);
  flex-shrink: 0;
  -webkit-text-stroke: 0.5px var(--white);
}
.ca-chain {
  flex-shrink: 0;
  background: var(--mint);
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: clamp(12px, 1.7vw, 15px);
  letter-spacing: 1px;
  box-shadow: 2px 2px 0 var(--black);
}
.ca-text {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Courier New', ui-monospace, monospace;
  font-weight: bold;
  color: var(--text);
}
.copy-btn {
  flex-shrink: 0;
  background: var(--magenta);
  color: var(--white);
  border: 3px solid var(--black);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--shitfont);
  font-size: clamp(15px, 2vw, 19px);
  box-shadow: 3px 3px 0 var(--black);
  transition: transform 0.08s, box-shadow 0.08s, background 0.15s;
  -webkit-text-stroke: 0.5px var(--white);
  min-height: 38px;
  touch-action: manipulation;
}
.copy-btn:hover  { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--black); }
.copy-btn:active { transform: translate(2px, 2px);  box-shadow: 1px 1px 0 var(--black); }
.copy-btn.is-copied { background: var(--mint); color: var(--text); }

/* ---------- Copy toast ---------- */
.toast {
  min-height: 24px;
  margin-top: -4px;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--white);
  -webkit-text-stroke: 0.5px var(--black);
  paint-order: stroke fill;
  text-align: center;
  opacity: 0;
  transform: translateY(-4px) rotate(-1deg);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(-1deg);
}

/* ---------- Big action buttons ---------- */
.button-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.chunk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  border: 4px solid var(--black);
  border-radius: 14px;
  font-family: var(--shitfont);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 1px;
  box-shadow: 6px 6px 0 var(--black);
  transition: transform 0.1s, box-shadow 0.1s;
  min-height: 56px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-text-stroke: 0.8px var(--white);
  paint-order: stroke fill;
}
.chunk-btn--primary {
  background: var(--magenta);
  color: var(--white);
  transform: rotate(-1.5deg);
}
.chunk-btn--secondary {
  background: var(--mint);
  color: var(--text);
  transform: rotate(1.5deg);
}
.chunk-btn--share {
  background: var(--pink);
  color: var(--text);
  transform: rotate(-0.6deg);
}
.chunk-btn:hover  { transform: rotate(0) scale(1.05); box-shadow: 9px 9px 0 var(--black); }
.chunk-btn:active { transform: rotate(0) scale(0.98); box-shadow: 2px 2px 0 var(--black); }

/* ---------- Lore card ---------- */
.lore-card {
  max-width: 620px;
  margin-top: 8px;
  background: rgba(255, 253, 240, 0.88);
  border: 4px solid var(--black);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 5px 5px 0 var(--black);
  transform: rotate(0.6deg);
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.45;
  text-align: center;
  -webkit-text-stroke: 0.45px var(--white);
  paint-order: stroke fill;
}


/* ---------- Disclaimer ---------- */
.disclaimer {
  margin-top: 24px;
  text-align: center;
  max-width: 560px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text);
  -webkit-text-stroke: 0.6px var(--white);
  paint-order: stroke fill;
  line-height: 1.5;
}
.disclaimer p + p { margin-top: 6px; }
.disclaimer__tiny {
  font-size: 13px;
  transform: rotate(-0.8deg);
  display: inline-block;
}

/* ---------- Pop emoji on click ---------- */
.pop-emoji {
  position: fixed;
  font-size: clamp(36px, 5vw, 54px);
  pointer-events: none;
  z-index: 31;
  user-select: none;
  animation: pop-up 1.2s ease-out forwards;
  transform-origin: center;
}
@keyframes pop-up {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.4) rotate(0); }
  40%  { opacity: 1; transform: translate(-50%, -120%) scale(1.4) rotate(20deg); }
  100% { opacity: 0; transform: translate(-50%, -200%) scale(1) rotate(40deg); }
}

/* =========================================================
   Responsive tuning
   ========================================================= */

/* Tablets and small desktops */
@media (max-width: 900px) {
  .corner-sticker { width: 76px; height: 76px; font-size: 13px; }
  .title { text-shadow: 3px 3px 0 var(--magenta), 7px 7px 0 var(--black); }
}

/* Phones */
@media (max-width: 600px) {
  :root { --stroke: 2px; --stroke-lg: 3px; }

  .corner-sticker { display: none; }

  .marquee { font-size: 20px; letter-spacing: 1px; }
  .marquee__track > span { padding: 0 12px; }

  .title { text-shadow: 3px 3px 0 var(--magenta), 6px 6px 0 var(--black); }

  .button-grid { flex-direction: column; width: 100%; max-width: 360px; }
  .chunk-btn { width: 100%; justify-content: center; }

  .ca-bar { gap: 6px; padding: 8px 10px; }
  .ca-label { padding: 3px 8px; }
  .ca-chain { display: none; }
  .copy-btn { padding: 6px 10px; min-height: 34px; }

  .counter-block { padding: 10px 18px; }

  .lore-card { max-width: 360px; padding: 14px 16px; }


  .flying-egg { width: clamp(82px, 21vw, 112px); }
  .flying-egg.e5, .flying-egg.e6 { display: none; }
}

/* Very small phones */
@media (max-width: 360px) {
  .stage { padding-left: 12px; padding-right: 12px; }
  .title { font-size: clamp(64px, 19vw, 92px); }
}

/* Landscape phones — keep things compact */
@media (max-height: 480px) and (orientation: landscape) {
  .stage { padding-top: 10px; gap: 10px; }
  .title { font-size: clamp(56px, 9vw, 92px); }
  .mascot-wrap { width: min(180px, 40vw); }
}


/* ---------- Extra performance/accessibility polish ---------- */
.counter-block,
.ca-bar,
.chunk-btn,
.lore-card {
  contain: layout paint;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  body::after,
  .mascot-wrap::before,
  .marquee__track,
  .flying-egg,
  .title,
  .click-prompt,
  .mascot-wrap.is-jolting,
  .pop-emoji {
    animation: none !important;
  }
}
