/* microcat -- he is very small ------------------------------------------- */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fafafa;
  --ink: #0a0a0a;
  --line: rgba(10, 10, 10, 0.12);
  --font: "Instrument Sans", -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: none; display: block; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; cursor: pointer; background: none; color: inherit; }

/* ---------- canary / noscript ---------- */
.canary {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 40;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(10, 10, 10, 0.32);
  pointer-events: none;
}
.noscript-note {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ---------- layout ---------- */
.section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
}

.h-word {
  font-size: clamp(1.6rem, 4.4vw, 2.4rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.h-word--mid { font-size: clamp(1.3rem, 3.4vw, 1.9rem); margin-top: 0.15rem; }
.h-mid {
  font-size: clamp(1.3rem, 3.6vw, 1.9rem);
  font-weight: 600;
  margin: 0 0 2.5rem;
}
.p-tiny {
  font-size: 12px;
  font-weight: 500;
  color: rgba(10, 10, 10, 0.55);
  margin: 0.6rem 0 0;
}
.p-ticker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0.35rem 0 0;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  opacity: 0.35;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,6px); } }

/* ---------- cat / stage shared ---------- */
.cat { width: 46px; height: auto; image-rendering: -webkit-optimize-contrast; }
.cat-stage {
  position: relative;
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.cat-stage--mid { height: 220px; align-items: center; }

.cat-shadow {
  position: absolute;
  bottom: 6px;
  width: 30px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10,10,10,0.18), transparent 75%);
  filter: blur(1px);
}

.cat--hero { position: relative; z-index: 1; will-change: transform; }

/* ---------- find ---------- */
.find-stage {
  position: relative;
  width: min(680px, 88vw);
  height: min(56vh, 460px);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 1.75rem;
  overflow: hidden;
  cursor: crosshair;
}
.cat--find {
  position: absolute;
  width: 16px;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s var(--ease);
  cursor: pointer;
}
.cat--find.is-near { filter: drop-shadow(0 0 3px rgba(10,10,10,0.35)); }
.find-result {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  background: rgba(250, 250, 250, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.find-result span { font-size: 12px; font-weight: 500; color: rgba(10,10,10,0.55); }
.find-result.is-visible { opacity: 1; pointer-events: auto; }
.btn-text {
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- bigger ---------- */
.cat--bigger { width: 20px; transition: width 0.18s var(--ease); }
.slider-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: min(360px, 80vw);
}
.slider-label { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; opacity: 0.6; }
.slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: none;
  cursor: pointer;
}
.bigger-msg {
  height: 1.4rem;
  margin: 1rem 0 0;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.bigger-msg.is-visible { opacity: 1; }

/* ---------- meow ---------- */
.meow-btn {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.meow-log {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  align-items: baseline;
  max-width: 24rem;
}
.meow-log span { font-weight: 600; transition: opacity 0.15s; }

/* ---------- zoom ---------- */
.zoom-stage {
  position: relative;
  width: min(680px, 88vw);
  height: min(50vh, 420px);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 1.75rem;
  overflow: hidden;
  cursor: none;
}
.cat--zoom { position: absolute; left: 50%; top: 50%; width: 14px; transform: translate(-50%, -50%); }
.loupe {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid rgba(10,10,10,0.25);
  box-shadow: 0 8px 30px rgba(10, 10, 10, 0.18);
  background-color: var(--paper);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}
.loupe.is-visible { opacity: 1; }

/* ---------- compare ---------- */
.compare-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(320px, 80vw);
  margin-bottom: 0.85rem;
}
.compare-label { width: 70px; font-size: 12px; font-weight: 600; text-align: right; flex-shrink: 0; }
.compare-bar { height: 10px; background: var(--ink); border-radius: 2px; }
.compare-bar--ant { width: 120px; }
.compare-bar--cat { width: 14px; }

/* ---------- rules ---------- */
.rules-list {
  list-style: none;
  counter-reset: rule;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.rules-list li {
  counter-increment: rule;
  font-size: 1rem;
  font-weight: 600;
}
.rules-list li::before {
  content: counter(rule) ". ";
  opacity: 0.4;
  font-weight: 500;
}

/* ---------- scroll gag ---------- */
.scrollgag { position: relative; height: 260vh; }
.scrollgag-bottom {
  position: absolute;
  bottom: 8vh;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cat--gag { width: 18px; margin-bottom: 0.75rem; }

/* ---------- escape ---------- */
.escape-stage {
  position: relative;
  width: min(900px, 92vw);
  height: min(46vh, 340px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cat--escape {
  position: absolute;
  top: 50%;
  width: 22px;
  transform: translate(0, -50%);
  will-change: transform;
}
.escape-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}
.escape-msg.is-visible { opacity: 1; }

/* ---------- final ---------- */
.cat--final { width: 30px; }
.final-ctas { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.btn-min {
  font-size: 12px;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.btn-min:hover { background: var(--ink); color: var(--paper); }
.ca-value {
  margin-top: 1rem;
  font-size: 10px;
  color: rgba(10, 10, 10, 0.4);
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint { animation: none; }
  .cat--hero, .cat--escape { transition: none !important; }
}

@media (max-width: 480px) {
  .find-stage { height: 46vh; }
  .zoom-stage { height: 40vh; cursor: default; }
  .loupe { width: 130px; height: 130px; }
}
