@font-face { font-family: Fredoka; font-weight: 400 700; font-display: swap; src: url(/fonts/fredoka-latin.woff2) format('woff2'); }

:root {
  --ink: #1c1412;
  --night: #262470;
  --night-deep: #111235;
  --glow: #8ff4ff;
  --text: #fffaf2;
  --muted: #c9cdf3;
  --cream: #fff8ec;
  --yarn: #e5262f;
  --yarn-dark: #b8141d;
  --blush: #ff7c9c;
  --soft: #5d4a44;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font: 500 17px/1.45 Fredoka, ui-rounded, system-ui, sans-serif; color: var(--text);
  background:
    radial-gradient(1.6px 1.6px at 12% 9%, #fff 98%, transparent), radial-gradient(1.2px 1.2px at 78% 6%, #fff 98%, transparent),
    radial-gradient(1.8px 1.8px at 91% 28%, #e8f6ff 98%, transparent), radial-gradient(1.2px 1.2px at 6% 41%, #fff 98%, transparent),
    radial-gradient(1.5px 1.5px at 33% 22%, #dff 98%, transparent), radial-gradient(1.3px 1.3px at 64% 33%, #fff 98%, transparent),
    radial-gradient(1.6px 1.6px at 88% 61%, #fff 98%, transparent), radial-gradient(1.2px 1.2px at 15% 74%, #e8f6ff 98%, transparent),
    radial-gradient(1.4px 1.4px at 52% 86%, #fff 98%, transparent), radial-gradient(1.2px 1.2px at 81% 93%, #fff 98%, transparent),
    radial-gradient(120% 900px at 50% 260px, #4a46b8 0%, var(--night) 45%, transparent 100%) no-repeat,
    linear-gradient(var(--night), var(--night-deep));
  background-color: var(--night-deep);
}
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; max-width: 980px; margin: 0 auto; }
.ticker { font-weight: 700; font-size: 19px; letter-spacing: .01em; color: var(--text); }
.links { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 16px;
  border: 3px solid var(--ink); border-radius: 999px; background: var(--cream); font-weight: 700; font-size: 16px;
  color: var(--ink); text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-red { background: var(--yarn); color: #fff; }
.btn-ghost { background: #fff; }
.btn-small { min-height: 34px; padding: 4px 13px; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }
[hidden] { display: none !important; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: 4px; }
h1 {
  margin: 0; font-size: clamp(56px, 16vw, 112px); line-height: .95; font-weight: 700; letter-spacing: -.01em;
  color: #fff; -webkit-text-stroke: 0; text-shadow: 0 0 0 var(--ink);
  paint-order: stroke fill;
  filter: drop-shadow(0 5px 0 var(--ink)) drop-shadow(0 0 22px rgba(143, 244, 255, .35));
}
h1 { -webkit-text-stroke: clamp(5px, 1.3vw, 9px) var(--ink); }
.core { margin: 10px auto 0; font-size: clamp(19px, 4.6vw, 25px); font-weight: 600; max-width: 30ch; }
.core em { font-style: normal; color: #ff5a63; white-space: nowrap; }
.chip {
  display: inline-block; margin: 12px auto 0; padding: 7px 15px; border: 3px solid var(--ink); border-radius: 999px;
  background: rgba(17, 18, 53, .55); border-color: var(--glow); color: var(--glow); font-weight: 600; font-size: clamp(13.5px, 4vw, 17px);
  box-shadow: 0 0 18px rgba(143, 244, 255, .35), inset 0 0 12px rgba(143, 244, 255, .15); max-width: 100%;
  text-wrap: balance;
}
.chip .nb { white-space: nowrap; }
.atom { display: inline-block; position: relative; width: 18px; height: 18px; margin-right: 7px; vertical-align: -3px; }
.atom::before, .atom::after { content: ''; position: absolute; inset: 5px -1px; border: 2px solid var(--glow); border-radius: 50%; transform: rotate(30deg); }
.atom::after { transform: rotate(-30deg); }

.ca {
  color: var(--ink); display: flex; align-items: center; gap: 8px; margin: 14px auto 0; max-width: 560px; padding: 8px 8px 8px 14px;
  background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
}
.ca-k { font-weight: 700; }
.ca code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px/1.2 ui-monospace, Menlo, monospace; text-align: left; }

/* ---------- the kittens ---------- */
.stage-wrap { text-align: center; margin-top: 6px; }
.stage { position: relative; width: min(100%, 540px); aspect-ratio: 1; margin: 0 auto; -webkit-tap-highlight-color: transparent; }
.ball { display: block; width: 100%; height: 100%; overflow: visible; }
.hit { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 0; }
.hit-o { clip-path: polygon(2.7% 18.6%, 11.7% 14.6%, 29.3% 3.9%, 36.1% 0.8%, 45.9% 3.9%, 52.7% 11.7%, 55.3% 24.4%, 54.7% 39.1%, 52% 46%, 52% 100%, 0% 100%, 0% 29%); }
.hit-g { clip-path: polygon(52.7% 17.6%, 55.7% 10.7%, 60.5% 8.4%, 68.4% 15.6%, 76.2% 18.6%, 87.9% 20.1%, 96.7% 22.5%, 100% 29.3%, 100% 100%, 52% 100%, 52% 46%, 50.8% 32.2%); }
.hit:focus-visible { outline: none; }
.hit-o:focus-visible ~ .ball #kit-o, .hit-g:focus-visible ~ .ball #kit-g { filter: drop-shadow(0 0 10px #fff); }

.kit .bob { transform-box: view-box; }
#kit-o .bob { transform-origin: 300px 480px; }
#kit-g .bob { transform-origin: 760px 556px; }
.kit.boop .bob { animation: boop .42s cubic-bezier(.3, 1.6, .5, 1); }
.kit.felt .bob { animation: felt .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes boop { 0% { transform: scale(1); } 35% { transform: scale(1.07, 1.03); } 100% { transform: scale(1); } }
@keyframes felt { 0% { transform: none; } 30% { transform: scale(1.03, 1.09) rotate(-2deg); } 60% { transform: scale(1.05, 1.02) rotate(1.5deg); } 100% { transform: none; } }
#whole { transform-box: view-box; transform-origin: 512px 600px; }
#whole.wiggle { animation: wiggle .7s ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: none; } 20% { transform: rotate(-4deg); } 40% { transform: rotate(3.5deg) translateX(8px); } 60% { transform: rotate(-2.5deg); } 80% { transform: rotate(1.5deg); } }

#fx text { font-family: Fredoka, sans-serif; font-weight: 700; paint-order: stroke; stroke: var(--ink); stroke-linejoin: round; }
.pop { transform-box: fill-box; transform-origin: center; animation: pop 1.1s ease-out forwards; }
@keyframes pop { 0% { transform: scale(.2); opacity: 0; } 18% { transform: scale(1.15); opacity: 1; } 30% { transform: scale(1); } 75% { opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; } }
.zap { stroke-dasharray: 3 22; animation: zap .9s linear forwards; }
@keyframes zap { 0% { stroke-dashoffset: 0; opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }

.said { min-height: 2.7em; margin: 4px auto 0; font-size: clamp(18px, 4.6vw, 22px); font-weight: 700; line-height: 1.3; max-width: 26ch; text-wrap: balance; }
.said-sub { min-height: 1.5em; margin: 2px auto 0; font-size: 16px; font-weight: 600; color: var(--glow); }
.tally { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 6px 0 12px; font-size: 15px; color: var(--muted); }
.tally b { color: var(--text); }

/* ---------- faq ---------- */
.faq { margin-top: 30px; display: grid; gap: 10px; }
details { background: rgba(255, 255, 255, .07); border: 2px solid rgba(143, 244, 255, .4); border-radius: 18px; padding: 0 16px; }
details p { color: var(--muted); }
summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 18px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; font-weight: 700; }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 14px; }

footer { text-align: center; padding: 10px 0 28px; font-size: 14px; color: var(--muted); }

@media (max-width: 360px) {
  .top { padding: 12px 12px; }
  .btn { padding: 6px 12px; font-size: 15px; }
  .ticker { font-size: 17px; }
  main { padding: 0 12px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .kit .bob, #whole, .pop, .zap { animation: none !important; }
}
