/* weiss.kiwi — the official website of a husky */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/dmmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/dmmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --fur: #F7F2E8;
  --fur-2: #EDE4D2;
  --white: #FFFBF3;
  --ink: #2A2630;
  --ink-2: #57505C;
  --sable: #A8907E;
  --sable-d: #87705F;
  --nose: #8E5B58;
  --teal: #12A5B4;
  --teal-d: #0A7480;
  --gold: #F4B41A;
  --gold-l: #FFD35C;
  --leaf: #DB6B1E;
  --grass: #3F7025;
  --grass-l: #7BAE3D;
  --sky: #A9D4F2;
  --asphalt: #26252B;
  --collar: #5B4B8A;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --bar-h: 56px;
  --svh: 1vh; --dvh: 1vh; /* older browsers; upgraded just below */
  --pad: clamp(1.15rem, 4.5vw, 3rem);
  --hard: 5px 5px 0 var(--ink);
  --hard-s: 3px 3px 0 var(--ink);
  --r: 22px;
}

@supports (height: 1svh) { :root { --svh: 1svh; --dvh: 1dvh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); scroll-padding-bottom: calc(var(--cookie-h, 0px) + 8px); }
body {
  margin: 0; background: var(--fur); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, figure, blockquote { margin: 0; }
ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.words :focus-visible, .port :focus-visible, .ward :focus-visible, .game :focus-visible, .end :focus-visible, .tr__pane--out :focus-visible, .print :focus-visible, .lb :focus-visible { outline-color: var(--gold-l); }
.tr__pane--out :focus-visible { outline-color: var(--ink); }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--white); padding: .7rem 1rem; border-radius: 12px; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- type ---------- */
h2, .hero__title, .cab__title {
  font-family: var(--display); font-weight: 900;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  letter-spacing: -.025em; line-height: .94; text-wrap: balance;
}
h2 { font-size: clamp(2.35rem, 7.2vw, 4.75rem); max-width: 14em; }
h2 em { font-style: normal; color: var(--gold); }
.ward h2, .words h2 { font-size: clamp(2.35rem, 4.4vw, 4rem); }
.kicker {
  font-family: var(--mono); font-weight: 500; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 2.2em; height: 4px; border-radius: 4px; background: var(--teal); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.45; max-width: 36em; margin-top: 1.1rem; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--white); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.25em; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; line-height: 1.1;
  box-shadow: var(--hard-s); transition: transform .12s, box-shadow .12s; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; text-decoration: none;
}
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn--gold { --bg: var(--gold); }
.btn--teal { --bg: var(--teal); --fg: #fff; }
.btn--teal { --fg: var(--ink); }
.btn--dark { --bg: var(--ink); --fg: var(--white); box-shadow: 3px 3px 0 var(--teal); }
.btn--dark:hover { box-shadow: 5px 5px 0 var(--teal); }
.btn--dark:active { box-shadow: 0 0 0 var(--teal); }
.btn--ghost { --bg: transparent; }
.iconbtn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%;
  background: var(--white); box-shadow: var(--hard-s); transition: transform .12s, box-shadow .12s; padding: 0;
}
.iconbtn:active { transform: translate(3px, 3px); box-shadow: none; }
.iconbtn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left));
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar__mark {
  display: inline-flex; align-items: center; gap: .45em; text-decoration: none; color: var(--ink);
  font-family: var(--mono); font-weight: 500; font-size: .9rem; letter-spacing: .02em;
  background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: .32em .8em .32em .6em; box-shadow: var(--hard-s); min-height: 40px; min-width: 40px; justify-content: center;
}
.bar__mark svg { width: 18px; height: 18px; fill: var(--teal-d); }
.bar__tools { display: flex; align-items: center; gap: .6rem; }
.bar .iconbtn { width: 40px; height: 40px; }
#soundBtn .mute { display: none; }
#soundBtn[aria-pressed="false"] .wave { display: none; }
#soundBtn[aria-pressed="false"] .mute { display: block; }
#soundBtn svg path:first-child { fill: var(--ink); }
.meter {
  display: grid; grid-template-columns: auto; align-items: center; gap: 2px 0; min-width: 148px;
  background: var(--white); border: 3px solid var(--ink); border-radius: 16px; padding: .28em .75em .34em; box-shadow: var(--hard-s);
  font-family: var(--mono); font-size: .72rem; line-height: 1.15;
}
.meter__num b { font-weight: 500; font-size: .92rem; }
.meter__track { height: 6px; border-radius: 6px; background: var(--fur-2); overflow: hidden; }
.meter__track i { display: block; height: 100%; width: 0%; background: var(--teal); border-radius: 6px; transition: width .25s linear; }
.meter__goal { color: var(--ink-2); font-size: .7rem; white-space: nowrap; }
.meter.is-moved .meter__goal { color: var(--leaf); }
@media (max-width: 420px) { .meter { min-width: 0; } .meter__goal { display: none; } .bar__tools { gap: .4rem; } .bar__mark span { display: none; } .bar__mark { padding: .42em .55em; } }

.curtain { position: fixed; inset: 0; z-index: 64; background: #141217; opacity: 0; pointer-events: none; display: grid; place-items: center; text-align: center; padding: 2rem; transition: opacity .4s, background-color .45s; }
.curtain p { font-family: var(--display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(2.2rem, 9vw, 5.5rem); line-height: .95; letter-spacing: -.02em; color: var(--fur); max-width: 12em; transition: color .3s; text-wrap: balance; }
.curtain.is-on { opacity: .96; }
.curtain.is-lit { background: var(--white); }
.curtain.is-lit p { color: var(--ink); }
#darkBtn svg { fill: var(--ink); stroke: var(--ink); }
#yard { transition: opacity .3s; }
#yard.is-dim { opacity: 0; }
#yard { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 65; pointer-events: none; }

/* ---------- fur edges between sections ---------- */
.sec, .end, .ticker { position: relative; background: var(--bg, var(--fur)); color: var(--fg, var(--ink)); }
.sec { padding: clamp(4.2rem, 10vw, 8rem) 0 clamp(4.6rem, 11vw, 8.5rem); }
.sec::before, .end::before {
  content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 20px; background: var(--bg, var(--fur)); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='20' viewBox='0 0 56 20'%3E%3Cpath d='M0 20V12Q4 0 9 11Q14 3 19 12Q25 -2 30 11Q35 4 40 12Q46 0 50 11Q53 5 56 12V20Z'/%3E%3C/svg%3E") repeat-x left bottom / 56px 20px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='20' viewBox='0 0 56 20'%3E%3Cpath d='M0 20V12Q4 0 9 11Q14 3 19 12Q25 -2 30 11Q35 4 40 12Q46 0 50 11Q53 5 56 12V20Z'/%3E%3C/svg%3E") repeat-x left bottom / 56px 20px;
}

/* ================================ HERO ================================ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  --hero-h: max(calc(var(--svh) * 100), 680px); --kiwi-fs: min(29vw, calc(var(--svh) * 26));
  min-height: var(--hero-h); background: var(--gold);
  padding: calc(var(--bar-h) + 1.2rem) var(--pad) 4.6rem;
  display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; justify-items: center;
}
.hero__sun {
  position: absolute; z-index: -1; left: var(--sun-x, 50%); top: var(--sun-y, 50%); width: max(170vw, 170vh); aspect-ratio: 1; translate: -50% -50%;
  background:
    radial-gradient(circle, var(--gold-l) 0 17%, transparent 17.2%),
    repeating-conic-gradient(from 0deg, rgba(255, 218, 110, .55) 0 7deg, transparent 7deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 62%); mask: radial-gradient(circle, #000 0 30%, transparent 62%);
  animation: spin 90s linear infinite; will-change: transform;
}
.is-offscreen .hero__sun, .is-offscreen .ticker__run, .is-offscreen.ticker .ticker__run { animation-play-state: paused; }
@keyframes spin { to { rotate: 360deg; } }
.hero__eyebrow {
  grid-row: 1; font-family: var(--mono); font-weight: 500; font-size: clamp(.72rem, 2.6vw, .9rem); letter-spacing: .14em; text-transform: uppercase;
  position: relative; z-index: 3;
}
.hero__eyebrow span { background: var(--ink); color: var(--gold-l); padding: .4em .9em; border-radius: 999px; display: inline-block; rotate: -2deg; }
.hero__title { display: contents; text-transform: uppercase; }
.hero__kiwi, .hero__weiss { display: block; line-height: .8; white-space: nowrap; user-select: none; }
.hero__kiwi {
  grid-row: 2; grid-column: 1; z-index: 1; color: var(--ink);
  font-size: var(--kiwi-fs); margin-top: .16em;
}
.hero__dog {
  grid-row: 2 / 4; grid-column: 1; position: relative; align-self: end; touch-action: pan-y;
  height: min(134vw, calc(var(--hero-h) - 324px - var(--kiwi-fs) * .6), 640px); aspect-ratio: 736 / 1126;
}
.hero__leash { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.hero__dog > img, .hero__leash {
  transform: rotate(var(--lean, 0deg)) translateX(var(--shift, 0px)); transform-origin: 50% 90%; transition: transform .35s cubic-bezier(.2, .9, .3, 1);
}
.hero__dog > img {
  position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; user-select: none;
  filter: drop-shadow(0 7px 0 rgba(42, 38, 48, .18));
}
.hero__weiss {
  grid-row: 3; grid-column: 1; z-index: 3; align-self: end; color: var(--white);
  font-size: min(23.5vw, calc(var(--svh) * 20)); margin-bottom: .06em;
  -webkit-text-stroke: .075em var(--ink); paint-order: stroke fill; text-shadow: .045em .05em 0 var(--ink);
  rotate: -3deg; pointer-events: none;
}
.hero__foot {
  grid-row: 4; z-index: 4; width: 100%; display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; padding-top: 1rem;
}
.hero__role { font-weight: 700; font-size: clamp(1.02rem, 3.6vw, 1.3rem); line-height: 1.3; }
.role { display: inline-block; font-family: var(--display); font-weight: 600; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36; font-size: 1.16em; min-height: 1.3em; }
.role.is-swap { animation: roleIn .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes roleIn { from { opacity: 0; translate: 0 .5em; rotate: 3deg; } }
.cue {
  display: inline-flex; align-items: center; gap: .5em; color: var(--ink); text-decoration: none;
  font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: .55em 1em; border-radius: 999px; border: 3px solid var(--ink); background: var(--white); box-shadow: var(--hard-s); min-height: 44px;
}
.cue { white-space: nowrap; flex: none; }
.cue svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 4px; } }

/* hotspots on the photo */
.spot {
  position: absolute; z-index: 5; width: 44px; height: 44px; translate: -50% -50%; border: 0; background: none; padding: 0; display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.spot i { width: 18px; height: 18px; border-radius: 50%; background: var(--teal); border: 3px solid var(--white); box-shadow: 0 0 0 2.5px var(--ink); position: relative; transition: scale .15s; }
.spot i::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2.5px solid var(--white); opacity: 0; animation: ping 2.6s ease-out infinite; }
.spot:nth-of-type(2) i::after { animation-delay: .5s; } .spot:nth-of-type(3) i::after { animation-delay: 1s; }
.spot:nth-of-type(4) i::after { animation-delay: 1.5s; } .spot:nth-of-type(5) i::after { animation-delay: 2s; }
@keyframes ping { 0% { scale: .5; opacity: .9; } 70%, 100% { scale: 1.5; opacity: 0; } }
.spot:hover i, .spot[aria-expanded="true"] i { scale: 1.25; background: var(--leaf); }
.spot--ear { left: 90%; top: 10%; } .spot--tilt { left: 72%; top: 23%; } .spot--nose { left: 83%; top: 42.5%; }
.spot--fluff { left: 58%; top: 58%; } .spot--leash { left: 33%; top: 68%; }
.spot--nose i { background: var(--nose); width: 22px; height: 22px; }
.note {
  color: var(--ink);
  position: absolute; z-index: 6; width: max-content; max-width: min(15.5rem, 62vw); padding: .6em .85em .7em; border-radius: 16px;
  background: var(--white); border: 3px solid var(--ink); box-shadow: var(--hard-s); font-size: .9rem; line-height: 1.3; text-align: left;
  opacity: 0; visibility: hidden; scale: .8; transition: opacity .16s, scale .22s cubic-bezier(.2, 1.5, .4, 1), visibility 0s .2s; pointer-events: none;
}
.note b { display: block; font-family: var(--mono); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-d); margin-bottom: .15em; }
.note.is-on { opacity: 1; visibility: visible; scale: 1; transition: opacity .16s, scale .22s cubic-bezier(.2, 1.5, .4, 1); }
.note--ear { right: 2%; top: 16%; transform-origin: 90% 0; }
.note--tilt { right: 26%; top: 29%; transform-origin: 80% 0; }
.note--nose { right: 6%; top: 48.5%; transform-origin: 80% 0; }
.note--fluff { left: 30%; top: 63.5%; transform-origin: 40% 0; }
.note--leash { left: 8%; top: 73.5%; transform-origin: 30% 0; }
.boops { display: block; font-family: var(--mono); font-size: .78rem; color: var(--ink-2); }
.boop-pop {
  position: absolute; z-index: 7; pointer-events: none; font-family: var(--display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 1.5rem; color: var(--white); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; translate: -50% -50%;
  animation: boop .9s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes boop { from { scale: .4; opacity: 1; } 60% { opacity: 1; } to { translate: -50% -230%; scale: 1.15; opacity: 0; rotate: var(--rot, 8deg); } }
.hero__dog.is-booped > img { animation: booped .38s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 60% 80%; }
@keyframes booped { 30% { transform: scale(.975, 1.02) rotate(-1.4deg); } }

@media (min-width: 900px), (min-width: 620px) and (orientation: landscape) and (max-height: 520px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto 1fr auto; justify-items: start; column-gap: 0;
    padding-inline: clamp(2rem, 5vw, 5rem); padding-bottom: 6.2rem; --sun-x: 78%; --sun-y: 44%;
  }
  .hero__eyebrow { grid-column: 1 / -1; margin-top: .6rem; }
  .hero__kiwi { grid-row: 2; grid-column: 1 / -1; font-size: min(25.5vw, calc(var(--svh) * 39)); margin: .1em 0 0 -.03em; }
  .hero__weiss { grid-row: 3; grid-column: 1 / -1; font-size: min(22vw, calc(var(--svh) * 34)); margin: -.02em 0 0 .04em; align-self: start; rotate: -2.5deg; transform-origin: 0 50%; }
  .hero__dog {
    grid-row: 1 / -1; grid-column: 2; align-self: end; justify-self: end; margin: 0 clamp(0rem, 4vw, 5rem) -1.5rem 0;
    height: min(calc(var(--svh) * 86), 62vw, 900px);
  }
  .hero__foot { grid-row: 5; grid-column: 1; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; gap: 1.6rem; padding: 1.2rem 0 1.4rem; align-self: end; }
  .hero__role { font-size: 1.3rem; flex: none; min-width: 16.5em; }
  .note { font-size: .95rem; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hero { min-height: calc(var(--svh) * 100); padding-bottom: 4.4rem; }
  .hero__role { font-size: 1rem; }
}

/* 23:00 to 05:47: she is asleep, and the hero knows it */
.is-night .hero {
  background-color: #232046; color: #F3EFD8;
  background-image: radial-gradient(#FFFBE8 1px, transparent 1.6px), radial-gradient(rgba(255, 251, 232, .7) 1px, transparent 1.4px), radial-gradient(rgba(255, 251, 232, .5) 1.4px, transparent 1.9px);
  background-size: 173px 149px, 97px 131px, 239px 211px; background-position: 20px 30px, 60px 90px, 140px 10px;
}
.is-night .hero__sun {
  background: radial-gradient(circle, #F3EFD8 0 17%, transparent 17.2%), repeating-conic-gradient(from 0deg, rgba(150, 140, 230, .16) 0 7deg, transparent 7deg 15deg);
  animation-duration: 240s;
}
.is-night .hero__kiwi { color: var(--gold); }
.is-night .hero__eyebrow span { background: var(--gold); color: var(--ink); }
.is-night .hero__dog > img { filter: brightness(.84) saturate(.82) drop-shadow(0 7px 0 rgba(10, 8, 30, .4)); }
.is-night .hero__leash { opacity: .8; }

/* hero entrance */
.hero__eyebrow span { animation: popIn .5s cubic-bezier(.2, 1.5, .4, 1) backwards; }
.hero__kiwi { animation: dropIn .7s .08s cubic-bezier(.2, 1.25, .35, 1) backwards; }
.hero__dog > img, .hero__leash { animation: riseIn .8s .22s cubic-bezier(.2, 1.15, .35, 1) backwards; }
.hero__weiss { animation: slapOn .5s .62s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.hero__foot { animation: fadeUp .6s .9s ease-out backwards; }
.spot { animation: popIn .4s 1.15s cubic-bezier(.2, 1.6, .4, 1) backwards; }
@keyframes popIn { from { opacity: 0; scale: .5; } }
@keyframes dropIn { from { opacity: 0; translate: 0 -34%; } }
@keyframes riseIn { from { opacity: 0; translate: 0 14%; } }
@keyframes slapOn { from { opacity: 0; scale: 1.45; rotate: 5deg; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 18px; } }
.tilthint { display: block; margin-top: .25em; color: var(--teal-d); font-weight: 600; }
.tilthint[hidden] { display: none; }

/* the paw-print trail down the side of the page */
.trail { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 1; }
.trail i {
  position: absolute; width: var(--paw, 18px); height: var(--paw, 18px); background: var(--ink); opacity: 0; scale: .4;
  transition: opacity .5s, scale .5s cubic-bezier(.2, 1.6, .4, 1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16' rx='5.4' ry='4.4'/%3E%3Cellipse cx='4.8' cy='10.6' rx='2.3' ry='3'/%3E%3Cellipse cx='9.4' cy='6.2' rx='2.3' ry='3.1'/%3E%3Cellipse cx='14.6' cy='6.2' rx='2.3' ry='3.1'/%3E%3Cellipse cx='19.2' cy='10.6' rx='2.3' ry='3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16' rx='5.4' ry='4.4'/%3E%3Cellipse cx='4.8' cy='10.6' rx='2.3' ry='3'/%3E%3Cellipse cx='9.4' cy='6.2' rx='2.3' ry='3.1'/%3E%3Cellipse cx='14.6' cy='6.2' rx='2.3' ry='3.1'/%3E%3Cellipse cx='19.2' cy='10.6' rx='2.3' ry='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.trail i.is-light { background: var(--fur); }
.trail i.is-on { opacity: .3; scale: 1; }

/* ================================ TICKER ================================ */
.ticker { --bg: var(--asphalt); overflow: hidden; padding: .7rem 0 .8rem; color: var(--fur); z-index: 2; border-block: 4px solid var(--ink); }
.ticker__run { display: flex; align-items: center; gap: 1.4rem; width: max-content; animation: tick 34s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 800; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; font-size: clamp(1.4rem, 4.4vw, 2.4rem); text-transform: uppercase; white-space: nowrap; letter-spacing: -.01em; }
.ticker span:nth-of-type(3n+1) { color: var(--gold); } .ticker span:nth-of-type(3n+2) { color: #7FDCE6; }
.ticker i { font-style: normal; color: var(--sable); font-size: 1.1rem; }
@keyframes tick { to { translate: -50% 0; } }

/* ================================ WHICH KIWI ================================ */
.which { --bg: var(--fur); }
.which::before { display: none; }
.kiwis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: clamp(2rem, 5vw, 3.4rem); align-items: stretch; }
@media (min-width: 900px) and (max-width: 1099px) { .kiwis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.4rem; } .kcard--her { margin-top: 0; } }
.kcard { background: var(--white); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--hard); padding: 1.1rem 1.1rem 1.25rem; position: relative; }
.kcard:nth-child(2) { rotate: 1.2deg; } .kcard:nth-child(3) { rotate: -1deg; } .kcard:nth-child(4) { rotate: .8deg; }
.kcard--her { background: var(--gold); rotate: -2deg; z-index: 1; margin-top: -1rem; }
.kcard--her::after {
  content: "correct kiwi"; position: absolute; right: -.7rem; top: -.9rem; rotate: 9deg; background: var(--teal); color: var(--ink);
  font-family: var(--mono); font-weight: 500; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .4em .8em; border-radius: 999px; border: 3px solid var(--ink);
}
.kcard__pic { aspect-ratio: 4 / 3; display: grid; place-items: end center; border-radius: 14px; background: var(--fur-2); overflow: hidden; border: 3px solid var(--ink); }
.kcard--her .kcard__pic { overflow: visible; border-color: var(--ink); background: var(--gold-l); place-items: end center; position: relative; }
.kcard--her .kcard__pic img { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: 86%; max-width: none; filter: drop-shadow(3px 0 0 rgba(42, 38, 48, .2)); clip-path: inset(-40% -20% 0 -20%); }
.kcard__pic--icon svg { width: 62%; align-self: center; }
.kcard h3 { font-family: var(--display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; font-size: 1.7rem; line-height: 1; margin-top: .9rem; letter-spacing: -.02em; }
.kcard__sub { font-size: .92rem; color: var(--ink-2); margin-top: .2rem; }
.kcard--her .kcard__sub { color: var(--ink); font-weight: 600; }
.kcard dl { margin-top: .8rem; border-top: 3px solid var(--ink); }
.kcard dl div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem .8rem; padding: .42rem 0; border-bottom: 1.5px dashed rgba(42, 38, 48, .35); }
.kcard dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); flex: none; }
.kcard--her dt { color: var(--ink); }
.kcard dd { font-weight: 700; font-size: .95rem; text-align: right; line-height: 1.2; min-width: 0; margin-left: auto; }
.swipehint { display: none; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 1.3rem 0 -1.3rem; text-align: right; }
.swipehint--pols { color: #CFC6B8; margin: 1.4rem var(--pad) -2rem; }
@media (max-width: 899px) {
  .kiwis {
    display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding: 2.2rem var(--pad) 1.4rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overflow-y: hidden; touch-action: pan-x pan-y; overscroll-behavior-x: contain;
  }
  .kiwis::-webkit-scrollbar { display: none; }
  .kcard { flex: 0 0 min(78vw, 300px); scroll-snap-align: center; }
  .kcard--her { margin-top: 0; }
  .swipehint { display: block; }
}

/* ================================ WORDS ================================ */
.words { --bg: var(--grass); --fg: var(--white); }
.words .kicker::before { background: var(--gold); }
.words__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
.wordpad { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.wordpad button {
  font-family: var(--display); font-weight: 800; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48; font-size: clamp(1.2rem, 4.4vw, 1.55rem);
  min-height: 52px; padding: .35em .85em .42em; border-radius: 16px; border: 3px solid var(--ink); background: var(--white); color: var(--ink);
  box-shadow: var(--hard-s); transition: transform .12s, box-shadow .12s, background .15s; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.wordpad button:nth-child(odd) { rotate: -1.5deg; } .wordpad button:nth-child(even) { rotate: 1.2deg; }
.wordpad button:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.wordpad button:active, .wordpad button.is-on { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); background: var(--gold); }
.stage { display: grid; gap: 1.2rem; justify-items: center; }
.face { position: relative; width: min(100%, 400px); aspect-ratio: 1; border-radius: 50%; background: var(--grass-l); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.face::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 110%, rgba(42, 38, 48, .22), transparent 55%); }
.face__svg { position: absolute; left: 7%; top: 6%; width: 86%; height: auto; overflow: visible; }
.face__fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.face__ghost { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); opacity: 0; transition: opacity .25s; }
.face__ghost svg { position: absolute; left: 7%; top: 6%; width: 86%; }
.face__ghost span { position: relative; font-family: var(--mono); font-size: .78rem; background: var(--ink); padding: .35em .8em; border-radius: 999px; margin-top: 34%; }

.readout { width: min(100%, 400px); background: var(--asphalt); color: #D7F5E0; border: 3px solid var(--ink); border-radius: 18px; padding: .9rem 1.1rem 1rem; font-family: var(--mono); font-size: .84rem; box-shadow: var(--hard); }
.readout__head { display: flex; align-items: center; gap: .6em; font-weight: 500; letter-spacing: .1em; color: var(--gold); }
.led { width: 10px; height: 10px; border-radius: 50%; background: #5BE38A; box-shadow: 0 0 8px #5BE38A; animation: led 1.6s steps(2) infinite; }
@keyframes led { 50% { opacity: .35; } }
.readout p { margin: .55rem 0 .7rem; min-height: 3.9em; line-height: 1.4; color: var(--white); font-size: .88rem; }
.readout dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; border-top: 1.5px dashed rgba(255, 255, 255, .25); padding-top: .65rem; }
.readout dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #9FB3A6; }
.readout dd { font-weight: 500; font-size: .95rem; color: var(--gold); }
@media (min-width: 900px) {
  .words__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4rem; }
  .face { width: min(100%, 440px); } .readout { width: min(100%, 440px); }
}

/* --- the face, and all her opinions --- */
.face__svg * { transform-box: fill-box; }
.f-head { transform-origin: 50% 88%; transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { translate: 0 3px; } }
.f-ear { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.f-ear--l { transform-origin: 70% 100%; } .f-ear--r { transform-origin: 30% 100%; }
.f-pupil { transition: transform .12s ease-out; transform: translate(var(--px, 0px), var(--py, 0px)); }
.f-dot { transition: transform .25s; transform-origin: 50% 50%; }
.f-lid { transform-origin: 50% 0; transform: scaleY(0); transition: transform .12s; }
.f-happy { opacity: 0; }
.f-brow { transition: transform .3s, opacity .2s; transform-origin: 50% 50%; opacity: 0; }
.f-jaw { transform-origin: 50% 0; transform: translateY(-46px) scaleY(.3); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.f-tongue, .f-tongue-line { transform-origin: 50% 0; transform: scaleY(.55); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.f-howl { opacity: 0; transform-origin: 50% 30%; transform: scale(.4); transition: opacity .15s, transform .25s; }
.f-drool { opacity: 0; transform-origin: 50% 0; }
.face.is-blink .f-lid { transform: scaleY(1); }

.face[data-state="walk"] .f-head { transform: rotate(17deg) translateY(-6px); animation: hop .42s ease-in-out infinite; }
.face[data-state="walk"] .f-ear--l { transform: rotate(-9deg) scaleY(1.06); } .face[data-state="walk"] .f-ear--r { transform: rotate(9deg) scaleY(1.06); }
.face[data-state="walk"] .f-jaw, .face[data-state="treat"] .f-jaw, .face[data-state="good"] .f-jaw { transform: none; }
.face[data-state="walk"] .f-tongue, .face[data-state="walk"] .f-tongue-line { transform: scaleY(.8); }
.face[data-state="walk"] .f-dot { transform: scale(1.33); }
@keyframes hop { 50% { translate: 0 -12px; } }

.face[data-state="treat"] .f-head { transform: rotate(-13deg); }
.face[data-state="treat"] .f-tongue, .face[data-state="treat"] .f-tongue-line { transform: scaleY(1.12); animation: lick .5s ease-in-out infinite; }
.face[data-state="treat"] .f-dot { transform: scale(1.55); }
.face[data-state="treat"] .f-drool { opacity: 1; animation: drool 1.1s ease-in infinite; }
.face[data-state="treat"] .f-brow, .face[data-state="walk"] .f-brow { opacity: 1; transform: translateY(-9px); }
@keyframes lick { 50% { transform: scaleY(1.12) rotate(7deg); } }
@keyframes drool { 0% { transform: scale(.3); translate: 0 0; opacity: 0; } 30% { opacity: 1; transform: scale(1); } 100% { translate: 0 70px; opacity: 0; } }

.face[data-state="squirrel"] .f-head { transform: translateX(26px) rotate(6deg) scale(1.04); animation: vibrate .09s linear infinite; }
.face[data-state="squirrel"] .f-ear--l { transform: rotate(8deg) scaleY(1.1); } .face[data-state="squirrel"] .f-ear--r { transform: rotate(14deg) scaleY(1.1); }
.face[data-state="squirrel"] .f-dot { transform: scale(.47); }
.face[data-state="squirrel"] .f-pupil { transform: translate(11px, -3px) !important; }
@keyframes vibrate { 0% { translate: -1.5px 0; } 50% { translate: 1.5px 1px; } 100% { translate: -1px -1px; } }

.face[data-state="bath"] .f-head { transform: translateX(150%) rotate(40deg); transition: transform .35s cubic-bezier(.6, -.3, .8, .4); animation: none; }
.face[data-state="bath"] .face__ghost { opacity: 1; transition-delay: .3s; }

.face[data-state="vet"] .f-head { transform: translateY(26px) scale(.86); }
.face[data-state="vet"] .f-ear--l { transform: rotate(-62deg) scaleY(.82); } .face[data-state="vet"] .f-ear--r { transform: rotate(62deg) scaleY(.82); }
.face[data-state="vet"] .f-pupil { transform: translate(-9px, 4px) !important; }
.face[data-state="vet"] .f-lid { transform: scaleY(.45); }
.face[data-state="vet"] .f-brow { opacity: 1; }
.face[data-state="vet"] .f-brow--l { transform: translateY(6px) rotate(-24deg); } .face[data-state="vet"] .f-brow--r { transform: translateY(6px) rotate(24deg); }
.face[data-state="no"] .f-brow { opacity: 1; }
.face[data-state="no"] .f-brow--l { transform: translateY(12px) rotate(14deg); } .face[data-state="no"] .f-brow--r { transform: translateY(12px) rotate(-14deg); }
.face[data-state="squirrel"] .f-brow { opacity: 1; transform: translateY(-12px); }

.face[data-state="come"] .f-head { transform: rotate(-8deg) translateX(-12px); }
.face[data-state="come"] .f-pupil { transform: translate(-12px, -5px) !important; }
.face[data-state="come"] .f-ear--r { transform: rotate(34deg); }
.face[data-state="come"] .f-lid { transform: scaleY(.3); }

.face[data-state="no"] .f-lid { transform: scaleY(.52); }
.face[data-state="no"] .f-pupil { transform: translate(0, 0) !important; }
.face[data-state="howl"] .f-head { transform: rotate(-4deg) translateY(-10px) scaleY(1.05); animation: vibrate .12s linear infinite; }
.face[data-state="howl"] .f-howl { opacity: 1; transform: scale(1.25); }
.face[data-state="howl"] .f-lid { transform: scaleY(1); }
.face[data-state="howl"] .f-ear--l { transform: rotate(-24deg); } .face[data-state="howl"] .f-ear--r { transform: rotate(24deg); }

.face[data-state="good"] .f-head { transform: rotate(12deg); animation: wiggle .5s ease-in-out infinite; }
.face[data-state="good"] .f-eye > *:not(.f-happy) { opacity: 0; }
.face[data-state="good"] .f-happy { opacity: 1; }
.face[data-state="good"] .f-tongue, .face[data-state="good"] .f-tongue-line { transform: scaleY(.9); }
@keyframes wiggle { 50% { rotate: 5deg; } }

.fx { transform: translateX(-50%); position: absolute; font-family: var(--display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--white); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; white-space: nowrap; animation: fxup 1.6s ease-out forwards; }
@keyframes fxup { from { opacity: 0; scale: .5; } 15% { opacity: 1; scale: 1; } 80% { opacity: 1; } to { opacity: 0; translate: var(--dx, 0) -70px; rotate: var(--rot, 0deg); } }

/* ================================ TRANSLATOR ================================ */
.trans { --bg: var(--fur-2); }
.tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 2.2rem; align-items: stretch; }
.tr__pane { background: var(--white); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--hard); padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.tr__pane label, .tr__label { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.tr textarea { width: 100%; border: 0; background: transparent; resize: none; font-size: clamp(1.2rem, 3.6vw, 1.5rem); line-height: 1.3; font-weight: 600; padding: 0; outline: none; min-height: 4.2em; }
.tr__pane--in:focus-within { outline: 3px solid var(--teal); outline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.chips button { border: 2px solid var(--ink); background: var(--fur); border-radius: 999px; padding: .35em .9em; font-size: .88rem; font-weight: 600; min-height: 42px; }
.chips button:hover { background: var(--gold); }
.tr__arrow { display: grid; place-items: center; }
.tr__swap { width: 60px; height: 52px; display: grid; place-items: center; padding: 0; background: var(--gold); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--hard-s); transition: transform .12s, box-shadow .12s; }
.tr__swap:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.tr__swap:active { transform: translate(3px, 3px); box-shadow: none; }
.tr__swap svg { transition: rotate .35s cubic-bezier(.3, 1.5, .5, 1); }
.tr__swap.is-flipped svg { rotate: 180deg; }
.tr__out.is-human { font-size: clamp(1.35rem, 4.2vw, 2rem); line-height: 1.14; -webkit-text-stroke: 0; color: var(--ink); font-weight: 800; padding: .2em 0; }
.tr__arrow svg { width: 38px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.tr__pane--out { background: var(--teal); }
.tr__pane--out .tr__label { color: var(--ink); }
.tr__out {
  font-family: var(--display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(1.7rem, 6.2vw, 2.9rem); line-height: 1.02; letter-spacing: -.01em;
  color: var(--white); -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; overflow-wrap: anywhere; min-height: 2.1em; padding: .1em .05em;
}
.tr__out span { display: inline-block; margin-right: .26em; }
.tr__out span.is-loud { animation: shout .28s ease-in-out infinite alternate; }
@keyframes shout { from { rotate: -2.5deg; scale: 1; } to { rotate: 2.5deg; scale: 1.08; } }
.tr__gloss { font-family: var(--mono); font-size: .8rem; color: var(--ink); min-height: 1.2em; }
.tr__pane--out .btn { align-self: flex-start; margin-top: auto; }
@media (min-width: 900px) {
  .tr { grid-template-columns: 1fr auto 1.15fr; gap: 1.2rem; }
}

.hits { margin-top: clamp(2.4rem, 6vw, 3.6rem); }
.hits h3 { font-family: var(--display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; font-size: clamp(1.5rem, 4.4vw, 2.1rem); letter-spacing: -.02em; line-height: 1; }
.pads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.pads button {
  position: relative; display: grid; gap: .25rem; align-content: start; text-align: left; min-height: 104px; padding: .8rem .85rem 1.5rem; overflow: hidden;
  background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--hard-s);
  transition: transform .12s, box-shadow .12s, background .15s; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.pads button:nth-child(4n+1) { background: var(--gold); } .pads button:nth-child(4n+3) { background: #BFE9EE; }
.pads button:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.pads button:active, .pads button.is-playing { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.pads b { font-family: var(--display); font-weight: 800; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48; font-size: 1.22rem; line-height: 1.05; letter-spacing: -.01em; }
.pads span { font-size: .84rem; line-height: 1.25; color: var(--ink-2); }
.pads button:nth-child(4n+1) span { color: var(--ink); }
.pads i { position: absolute; left: .85rem; right: .85rem; bottom: .55rem; height: 10px; border-radius: 6px; opacity: .22;
  background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 9px); transform-origin: 0 100%; }
.pads button.is-playing i { opacity: .95; animation: meter .22s steps(3) infinite alternate; }
@keyframes meter { from { clip-path: inset(40% 0 0 0); height: 10px; } to { clip-path: inset(0 0 0 0); height: 16px; } }
@media (min-width: 900px) { .pads { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* the missing socks */
.sock { position: absolute; z-index: 3; width: 44px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; rotate: var(--r, 0deg); -webkit-tap-highlight-color: transparent; transition: scale .15s; }
.sock svg { width: 30px; height: 36px; filter: drop-shadow(2px 2px 0 rgba(42, 38, 48, .35)); }
.sock:hover { scale: 1.15; }
.sock svg { animation: sockWiggle 5.5s ease-in-out infinite; transform-origin: 50% 20%; }
.sock:nth-of-type(odd) svg { animation-delay: -2.4s; }
@keyframes sockWiggle { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg); } 92% { transform: rotate(12deg); } 96% { transform: rotate(-6deg); } }
.sock:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; border-radius: 14px; background: var(--gold-l); box-shadow: 0 0 0 6px var(--white); }
.sock.is-found { animation: sockOut .7s cubic-bezier(.3, 0, .2, 1) forwards; pointer-events: none; }
.sock[hidden] { display: none; }
@keyframes sockOut { 30% { scale: 1.5; rotate: -20deg; } 100% { translate: 0 -120px; rotate: 340deg; scale: .3; opacity: 0; } }
.sock--a { right: -12px; bottom: -16px; --r: 24deg; }
.sock--b { right: 14px; top: -24px; --r: -16deg; }
.sock--c { left: -16px; bottom: 6px; --r: -32deg; }
.sock--d { right: 10px; top: 8px; --r: 14deg; }
.sock--e { right: -10px; top: -18px; --r: 28deg; }
.tr__pane, .furnow, .kcard { position: relative; }
.sockhunt { margin-top: 1.6rem; font-family: var(--mono); font-size: .84rem; line-height: 1.5; max-width: 46em; }
.sockhunt b { font-weight: 500; }
main:focus, .sockhunt:focus { outline: none; }
.sockhunt.is-done { background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: .7rem .9rem; box-shadow: var(--hard-s); }

/* ================================ PORTRAITS ================================ */
.port {
  --bg: var(--asphalt); --fg: var(--fur);
  background-image:
    radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px), radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.6px), radial-gradient(rgba(0, 0, 0, .35) 1.3px, transparent 1.7px);
  background-size: 23px 23px, 37px 37px, 29px 29px; background-position: 0 0, 11px 17px, 5px 9px; overflow: hidden; overflow: clip visible;
}
.pols { display: flex; justify-content: center; align-items: center; gap: clamp(.4rem, 1.4vw, 1.4rem); padding: 3.4rem var(--pad) 1rem; }
.pol {
  flex: 0 1 290px; background: #FFFDF8; color: var(--ink); padding: 12px 12px 16px; border-radius: 6px; rotate: var(--r, 0deg);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .55); transition: rotate .3s cubic-bezier(.3, 1.5, .5, 1), translate .3s, scale .3s; position: relative;
}
.pol::before { content: ""; position: absolute; left: 50%; top: -14px; width: 92px; height: 28px; translate: -50% 0; rotate: calc(var(--r) * -1.6); background: rgba(18, 165, 180, .78); border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); z-index: 1; }
.pol:nth-child(even) { margin-top: 3.2rem; } .pol:nth-child(odd) { margin-bottom: 2rem; }
.pol--wide { flex-basis: 380px; }
.pol button[data-full] { display: block; padding: 0; border: 0; background: #ddd; width: 100%; cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.pol img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: scale .5s; }
.pol--wide img { aspect-ratio: 4 / 3; }
.pol:hover, .pol:focus-within { rotate: 0deg; translate: 0 -10px; scale: 1.04; z-index: 2; }
.pol:hover img { scale: 1.04; }
.pol figcaption { font-family: var(--mono); font-size: .76rem; line-height: 1.35; padding: .8rem .2rem 0; }
.pol figcaption b { font-weight: 500; display: block; color: var(--teal-d); }
@media (max-width: 899px) {
  .pols { justify-content: flex-start; overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y; scroll-snap-type: x mandatory; gap: 1.2rem; padding: 3rem var(--pad) 2.2rem; scrollbar-width: none; }
  .pols::-webkit-scrollbar { display: none; }
  .pol, .pol--wide { flex: 0 0 min(74vw, 300px); scroll-snap-align: center; }
  .pol--wide { flex-basis: min(84vw, 360px); }
  .pol:nth-child(even) { margin-top: 1.6rem; } .pol:nth-child(odd) { margin-bottom: 1.6rem; }
}
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: calc(var(--dvh) * 100); width: 100vw; height: calc(var(--dvh) * 100); display: none; justify-items: center; align-content: center; grid-template-rows: auto auto; overflow: hidden; }
.lb[open] { display: grid; }
.lb::backdrop { background: rgba(20, 18, 24, .92); }
.lb img { max-width: min(94vw, 1100px); max-height: calc(var(--dvh) * 82); width: auto; height: auto; border: 8px solid #FFFDF8; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lb p { color: var(--fur); font-family: var(--mono); font-size: .85rem; padding: 1rem 1.2rem 1.6rem; text-align: center; max-width: 40em; }
.lb__x { position: fixed; right: 16px; top: 16px; }

/* ================================ WARDROBE ================================ */
.ward { --bg: var(--collar); --fg: var(--white); }
.ward .kicker::before { background: var(--gold); }
.ward__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 1.8rem; }
.shelf button {
  display: grid; justify-items: center; align-content: end; gap: .35rem; min-height: 92px; padding: .6rem .4rem .55rem;
  background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--hard-s);
  transition: transform .12s, box-shadow .12s, background .15s; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.shelf button:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.shelf button:active, .shelf button[aria-pressed="true"] { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); background: var(--gold); }
.shelf__art { height: 44px; display: grid; place-items: center; }
.shelf__art svg { height: 100%; width: auto; max-width: 78px; }
.shelf__name { font-weight: 700; font-size: .86rem; line-height: 1.1; text-align: center; }
.patience { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .9rem; margin-top: 1.4rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.patience__track { height: 16px; border-radius: 999px; background: rgba(20, 16, 34, .5); border: 3px solid var(--ink); overflow: hidden; }
.patience__track i { display: block; height: 100%; width: 0%; background: var(--gold); border-radius: 999px 0 0 999px; }
.patience__track i.is-low { background: var(--leaf); animation: led .25s steps(2) infinite; }
.ward__act { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; margin-top: 1.3rem; }
.ward__act .btn svg { fill: none; }
.ward__msg { flex: 1 1 14rem; font-family: var(--mono); font-size: .86rem; line-height: 1.4; min-height: 2.8em; color: #E6DFF6; }
.ward__stage {
  position: relative; width: min(100%, 460px); aspect-ratio: 4 / 5; justify-self: center; overflow: hidden; isolation: isolate;
  background: var(--gold); border: 4px solid var(--ink); border-radius: 26px; box-shadow: 8px 8px 0 var(--ink);
}
.ward__sun {
  position: absolute; z-index: -1; left: 50%; top: 44.5%; width: 260%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, var(--gold-l) 0 28.5%, transparent 28.7%), repeating-conic-gradient(from 0deg, rgba(255, 218, 110, .55) 0 7.5deg, transparent 7.5deg 15deg);
}
.ward__dog { position: absolute; left: 6.5%; top: 21.5%; width: 121%; aspect-ratio: 1140 / 960; }
.ward__dog img { width: 100%; height: 100%; max-width: none; transform-origin: 30% 70%; -webkit-user-drag: none; user-select: none; }
.ward__stage.is-shaking .ward__dog img { animation: shakeoff .55s cubic-bezier(.3, .7, .4, 1); }
@keyframes shakeoff { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(-7deg) translateX(-8px); } 28% { transform: rotate(7deg) translateX(8px); } 44% { transform: rotate(-6deg) translateX(-6px); } 60% { transform: rotate(5deg) translateX(5px); } 78% { transform: rotate(-3deg); } }
.acc { position: absolute; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); pointer-events: none; animation: accIn .38s cubic-bezier(.2, 1.6, .4, 1) backwards; filter: drop-shadow(3px 4px 0 rgba(42, 38, 48, .25)); }
.acc svg { display: block; width: 100%; height: auto; }
.acc.is-flung { animation: none; z-index: 3; }
@keyframes accIn { from { transform: translate(-50%, -160%) rotate(calc(var(--rot, 0deg) + 14deg)) scale(1.15); opacity: 0; } }
.ward__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 4; }
.ward__stage.is-flash .ward__flash { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
@media (min-width: 900px) {
  .ward__grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
  .ward__stage { width: min(100%, 480px); rotate: 1.5deg; }
}
.print { border: 0; padding: 0; background: transparent; width: 100vw; height: calc(var(--dvh) * 100); max-width: 100vw; max-height: calc(var(--dvh) * 100); display: none; place-content: center; justify-items: center; gap: 1rem; overflow: auto; }
.print[open] { display: grid; }
.print::backdrop { background: rgba(20, 18, 24, .92); }
.print img { width: auto; height: auto; max-width: min(88vw, 480px); max-height: calc(var(--dvh) * 68); background: #FFFDF8; padding: 12px 12px 12px; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); rotate: -2deg; animation: develop .7s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes develop { from { translate: 0 60px; rotate: 6deg; opacity: 0; } }
.print__btns { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; padding: 0 1rem 1rem; }
.print .btn--ghost { --fg: var(--fur); border-color: var(--fur); box-shadow: 3px 3px 0 var(--teal); }

/* ================================ SCHEDULE ================================ */
.day { --bg: var(--sky); }
.day__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
.now { margin-top: 1.8rem; background: var(--white); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--hard); padding: 1rem 1.2rem 1.15rem; max-width: 30rem; rotate: -1.2deg; }
.now__label { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-d); display: flex; align-items: center; gap: .6em; }
.now__label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); animation: led 1.2s steps(2) infinite; }
.now__what { font-family: var(--display); font-weight: 800; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; font-size: clamp(1.5rem, 4.6vw, 2.1rem); line-height: 1.05; margin-top: .35rem; letter-spacing: -.015em; }
.ics { margin-top: 1.5rem; display: grid; gap: .6rem; justify-items: start; max-width: 30rem; }
.ics .btn svg { fill: none; }
.ics__note { font-family: var(--mono); font-size: .78rem; line-height: 1.45; color: #2F4253; }
.day__medal { display: none; }
.tl { position: relative; padding-left: 1.6rem; }
.tl::before { content: ""; position: absolute; left: 5px; top: .7rem; bottom: .7rem; width: 6px; border-radius: 6px; background: var(--teal); box-shadow: 0 0 0 2.5px var(--ink); }
.tl li { position: relative; display: grid; grid-template-columns: 3.6rem 1fr; gap: .9rem; padding: .62rem .8rem .62rem .9rem; border-radius: 14px; align-items: baseline; }
.tl li::before { content: ""; position: absolute; left: -1.6rem; top: 1.05rem; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); }
.tl time { font-family: var(--mono); font-weight: 500; font-size: .92rem; }
.tl b { display: block; font-size: 1.1rem; line-height: 1.2; }
.tl span { display: block; font-size: .95rem; color: #3B4652; line-height: 1.35; }
.tl li.is-now { background: var(--white); box-shadow: var(--hard-s); outline: 3px solid var(--ink); }
.tl li.is-now::before { background: var(--leaf); scale: 1.25; }
.tl li.is-now time::after { content: "now"; display: block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); }
.tl li.is-past b, .tl li.is-past time { color: var(--ink-2); }
.tl li.is-past b { font-weight: 600; }
@media (min-width: 900px) {
  .day__grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
  .day__copy { position: sticky; top: calc(var(--bar-h) + 2rem); }
  .day__medal { display: block; position: absolute; right: 2%; top: .4rem; width: clamp(120px, 13vw, 180px); aspect-ratio: 1; margin: 0; border-radius: 50%; overflow: hidden; background: var(--gold); border: 4px solid var(--ink); box-shadow: var(--hard); rotate: -4deg; }
  .day__medal img { position: absolute; left: 3%; top: 7%; width: 92%; max-width: none; height: auto; }
}

/* ================================ FUR ================================ */
.fur { --bg: var(--fur); }
.furgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; margin-top: 2.2rem; }
.furnow { background: var(--ink); color: var(--fur); border-radius: var(--r); padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; box-shadow: 5px 5px 0 var(--teal); }
.furnow__label { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #BDB3A4; }
.furnow__num { font-family: var(--display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(3.6rem, 15vw, 6.5rem); line-height: .95; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.furnow__sub { font-size: .98rem; margin-bottom: .9rem; }
.furnow__sub b { color: #7FDCE6; }
.furnow__fine { font-family: var(--mono); font-size: .74rem; color: #BDB3A4; margin-top: .5rem; min-height: 1.2em; }
.cast { display: grid; gap: .6rem; }
.cast li { display: grid; grid-template-columns: 4.6rem 36px minmax(0, 1fr) auto; align-items: center; gap: .8rem; background: var(--white); border: 3px solid var(--ink); border-radius: 16px; padding: .55rem .9rem; box-shadow: var(--hard-s); }
.cast span { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cast svg { width: 36px; height: 36px; color: var(--ink); }
.cast b { font-size: 1.05rem; line-height: 1.15; }
.cast i { font-style: normal; font-family: var(--mono); font-weight: 500; color: var(--teal-d); }
.cast li:last-child { background: var(--gold); } .cast li:last-child i { color: var(--ink); } .cast li:last-child svg { color: var(--ink); animation: spin 3s linear infinite; }
@media (min-width: 900px) {
  .furgrid { grid-template-columns: minmax(280px, .66fr) 1.34fr; align-items: stretch; }
}
@media (min-width: 1180px) {
  .cast { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
  .cast li { grid-template-columns: 1fr; justify-items: start; align-content: space-between; padding: 1rem .9rem; gap: .5rem; min-height: 100%; }
  .cast svg { width: 56px; height: 56px; margin-block: .6rem; }
  .cast b { font-size: .98rem; }
  .cast li { padding-inline: .75rem; }
  .cast li:nth-child(odd) { rotate: -1deg; } .cast li:nth-child(even) { rotate: 1.4deg; translate: 0 10px; }
}

/* ================================ GAME ================================ */
.game { --bg: var(--teal-d); --fg: var(--white); }
.game .kicker::before { background: var(--gold); }
.cab { position: relative; margin-top: 2rem; border: 4px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); background: var(--sky); aspect-ratio: 16 / 7; min-height: 300px; width: 100%; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.cab canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cab__ui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; text-align: center; padding: 1rem; background: rgba(38, 37, 43, .34); color: var(--white); transition: opacity .25s; }
.cab.is-playing .cab__ui { opacity: 0; pointer-events: none; }
.cab__title { font-size: clamp(2.6rem, 9vw, 5rem); -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; text-shadow: .05em .06em 0 var(--ink); rotate: -3deg; }
.cab__sub { font-weight: 600; font-size: .95rem; max-width: 27em; text-wrap: balance; background: var(--ink); padding: .4em 1em .45em; border-radius: 14px; }
.cab__hud { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: .8rem; color: var(--ink); pointer-events: none; }
.cab__hud { align-items: flex-start; }
.cab__hud span { background: var(--white); border: 2.5px solid var(--ink); border-radius: 999px; padding: .2em .75em; white-space: nowrap; }
@media (max-width: 599px) { .cab__hud { font-size: .72rem; left: 8px; right: 8px; top: 8px; } .cab__hud span { padding: .15em .55em; } .cab__hud .cab__meter { margin-inline: .35rem; } }
.cab__hud b { font-weight: 500; }
.cab__hud .cab__meter { position: relative; flex: 0 1 180px; margin-inline: .6rem; padding: 0; overflow: hidden; text-align: center; background: var(--fur-2); }
.cab__meter em { position: relative; z-index: 1; font-style: normal; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.9; }
.cab__meter i { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--gold); transition: width .2s; }
.cab__meter.is-on i { background: var(--leaf); transition: none; }
.cab__meter.is-on em { color: var(--white); }
.cab:not(.is-playing) .cab__meter { visibility: hidden; }

/* ================================ REVIEWS ================================ */
.rev { --bg: var(--gold); }
.rev .kicker::before { background: var(--ink); }
.revs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1.4rem 1.3rem; align-items: stretch; margin-top: 2.2rem; }
.rv { break-inside: avoid; background: var(--white); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--hard); padding: 1.1rem 1.2rem 1.2rem; margin: 0; display: flex; flex-direction: column; }
.rv p { flex: 1; }
.rv:nth-child(3n+1) { rotate: -1deg; } .rv:nth-child(3n+2) { rotate: .8deg; } .rv:nth-child(3n) { rotate: -.4deg; }
.rv p { font-family: var(--display); font-weight: 600; font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 30; font-size: clamp(1.2rem, 3.4vw, 1.45rem); line-height: 1.22; margin: .7rem 0 .8rem; text-wrap: pretty; }
.rv footer { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.rv footer::before { content: "— "; }
.stars { display: flex; gap: 4px; }
.stars i {
  width: 22px; height: 22px; background: var(--teal-d);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16' rx='5.4' ry='4.4'/%3E%3Cellipse cx='4.8' cy='10.6' rx='2.3' ry='3'/%3E%3Cellipse cx='9.4' cy='6.2' rx='2.3' ry='3.1'/%3E%3Cellipse cx='14.6' cy='6.2' rx='2.3' ry='3.1'/%3E%3Cellipse cx='19.2' cy='10.6' rx='2.3' ry='3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16' rx='5.4' ry='4.4'/%3E%3Cellipse cx='4.8' cy='10.6' rx='2.3' ry='3'/%3E%3Cellipse cx='9.4' cy='6.2' rx='2.3' ry='3.1'/%3E%3Cellipse cx='14.6' cy='6.2' rx='2.3' ry='3.1'/%3E%3Cellipse cx='19.2' cy='10.6' rx='2.3' ry='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.stars[data-n="1"] i:nth-child(n+2), .stars[data-n="2"] i:nth-child(n+3), .stars[data-n="4"] i:nth-child(n+5) { background: rgba(42, 38, 48, .2); }

/* ================================ HR ================================ */
.hr { --bg: var(--grass-l); }
.hr .kicker::before { background: var(--ink); }
.badges { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; margin-top: 2.4rem; }
@media (min-width: 620px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .badges { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.badge { position: relative; background: var(--white); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--hard); padding: 1.9rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.badge::before { content: ""; position: absolute; left: 50%; top: 10px; width: 46px; height: 10px; translate: -50% 0; border-radius: 999px; background: var(--fur-2); border: 3px solid var(--ink); }
.badge:nth-child(odd) { rotate: -1.3deg; } .badge:nth-child(even) { rotate: 1.1deg; }
.badge__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.badge__no { font-family: var(--mono); font-weight: 500; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-d); }
.badge__top svg { width: 50px; height: 50px; background: var(--fur-2); border: 3px solid var(--ink); border-radius: 12px; padding: 2px; }
.badge h3 { font-family: var(--display); font-weight: 900; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; font-size: 1.45rem; line-height: 1.02; letter-spacing: -.02em; }
.badge p { font-size: .98rem; line-height: 1.38; flex: 1; }
.badge__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1.5px dashed rgba(42, 38, 48, .35); padding-top: .7rem; margin-top: .3rem; }
.stars[data-n="3"] i:nth-child(n+4) { background: rgba(42, 38, 48, .2); }
.stamp { font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grass); border: 2.5px solid currentColor; border-radius: 6px; padding: .2em .5em; rotate: -6deg; white-space: nowrap; }
.stamp--warn { color: #B4421C; }
.hr__note { font-family: var(--mono); font-size: .84rem; line-height: 1.5; margin-top: 2rem; max-width: 44em; color: var(--ink); }

/* ================================ STAFF / MAIL ================================ */
.staff { --bg: #EDB9AC; }
.staff__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
.mail { background: var(--white); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--hard); overflow: hidden; position: relative; }
.mail::before { content: ""; display: block; height: 12px; background: repeating-linear-gradient(-45deg, var(--teal) 0 14px, var(--white) 14px 28px, var(--leaf) 28px 42px, var(--white) 42px 56px); border-bottom: 3px solid var(--ink); }
.mail__row { display: flex; align-items: center; gap: .8rem; padding: .7rem 1.1rem; border-bottom: 1.5px dashed rgba(42, 38, 48, .35); font-size: .98rem; }
.mail__row > span, .mail__row > label { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); width: 2rem; flex: none; }
.mail__row input { flex: 1; min-width: 0; border: 0; background: transparent; font-weight: 600; padding: .2rem 0; outline: none; }
.mail textarea { display: block; width: 100%; border: 0; background: transparent; padding: 1rem 1.1rem; resize: vertical; min-height: 7.5rem; outline: none; font-size: 1.05rem; }
.mail:focus-within { outline: 3px solid var(--teal); outline-offset: 3px; }
.mail__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; padding: .9rem 1.1rem 1.1rem; border-top: 3px solid var(--ink); background: var(--fur); }
.mail__status { font-family: var(--mono); font-size: .78rem; color: var(--ink-2); flex: 1 1 12rem; }
.mail.is-eaten textarea { animation: eaten .9s cubic-bezier(.6, 0, .8, .3) forwards; }
@keyframes eaten { 40% { transform: rotate(-2deg) scale(.98); } 100% { transform: translateY(40px) rotate(6deg) scale(.6); opacity: 0; } }
@media (min-width: 900px) { .staff__grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }

/* ================================ END ================================ */
.end { --bg: var(--asphalt); --fg: var(--fur); padding: clamp(4.2rem, 10vw, 7rem) 0 0; overflow: hidden; overflow: clip visible;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px), radial-gradient(rgba(0, 0, 0, .35) 1.3px, transparent 1.7px); background-size: 23px 23px, 29px 29px; }
.end .kicker::before { background: var(--gold); }
.end__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: end; }
.end__btns { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.end .btn--ghost { --fg: var(--fur); border-color: var(--fur); box-shadow: 3px 3px 0 var(--teal); }
.end .btn--gold, .furnow .btn { border-color: var(--fur); box-shadow: 3px 3px 0 var(--teal); }
.end .btn--gold:hover, .furnow .btn:hover { box-shadow: 5px 5px 0 var(--teal); }
.end .btn--gold:active, .furnow .btn:active, .furnow .btn:disabled, .furnow .btn[aria-disabled="true"] { box-shadow: 0 0 0 var(--teal); }
.end__btns { max-width: 36rem; }
.end__btns .btn { flex: 1 1 40%; }
.end__stat { font-family: var(--mono); font-size: .8rem; color: #BDB3A4; margin-top: 1.4rem; min-height: 2.6em; max-width: 34em; }
.end__dog { touch-action: pan-y; justify-self: center; width: min(74vw, 400px); margin-bottom: -6px; filter: drop-shadow(0 -2px 30px rgba(244, 180, 26, .12)); }
.end__dog.is-up { animation: getup .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes getup { 40% { translate: 0 -26px; rotate: -3deg; } }
.fine { border-top: 2px dashed rgba(247, 242, 232, .25); padding: 1.3rem var(--pad) calc(1.6rem + env(safe-area-inset-bottom) + 64px); font-family: var(--mono); font-size: .72rem; line-height: 1.6; color: #A99F92; text-align: center; }
@media (min-width: 900px) {
  .end__grid { grid-template-columns: 1.2fr .8fr; }
  .end__copy { padding-bottom: 4rem; }
  .end__dog { width: min(34vw, 460px); justify-self: end; }
}

/* ================================ COOKIE ================================ */
.cookie {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  background: var(--white); border-top: 3px solid var(--ink); box-shadow: 0 -5px 0 rgba(42, 38, 48, .12);
  padding: .9rem max(var(--pad), env(safe-area-inset-right)) calc(.9rem + env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.5rem; animation: cookieIn .55s cubic-bezier(.2, 1.2, .4, 1);
}
.cookie[hidden] { display: none; }
.cookie.is-out { animation: cookieOut .4s ease-in forwards; }
@keyframes cookieIn { from { translate: 0 110%; } }
@keyframes cookieOut { to { translate: 0 110%; } }
.cookie__txt { font-size: .98rem; line-height: 1.35; flex: 1 1 18rem; }
.cookie__btns { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
#cookieNo { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .12s; }

/* reveal on scroll */
.rise { opacity: 0; translate: 0 26px; transition: opacity .6s, translate .7s cubic-bezier(.2, 1, .3, 1); }
.rise.is-in { opacity: 1; translate: 0 0; }

/* zoomies: the whole page loses it */
main { overflow-x: clip; } /* the quake below must not widen the page */
body.zoomies main > *, body.zoomies .end > * { animation: quake .16s linear infinite; }
@keyframes quake { 0% { transform: translate(1.5px, -1px) rotate(-.12deg); } 50% { transform: translate(-1.5px, 1px) rotate(.12deg); } 100% { transform: translate(1px, 1.5px) rotate(0deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__eyebrow span, .hero__kiwi, .hero__dog > img, .hero__leash, .hero__weiss, .hero__foot, .spot { animation: none !important; }
  .trail i { transition: none; }
  .hero__sun, .ticker__run, .cue svg, .spot i::after, .led, .cast li:last-child svg { animation: none !important; }
  .f-head { animation: none !important; }
  body.zoomies main > *, body.zoomies .end > * { animation: none; }
  .rise { opacity: 1; translate: none; transition: none; }
  .ward__stage.is-shaking .ward__dog img, .ward__stage.is-flash .ward__flash, .print img, .acc, .role.is-swap, .end__dog.is-up, .hero__dog.is-booped > img, .boop-pop, .cookie, .pads button.is-playing i, .tr__out span.is-loud, .patience__track i.is-low, .now__label::before { animation: none !important; }
  .sock.is-found { animation: none; opacity: 0; }
  .sock svg { animation: none; }
  .fx { animation: none !important; opacity: 1 !important; }
  .mail.is-eaten textarea { animation: none; opacity: .3; }
  .f-pupil, .f-ear, .f-jaw, .f-tongue { transition: none; }
  .face[data-state] .f-head, .face[data-state] .f-tongue, .face[data-state] .f-drool { animation: none !important; }
}

@media (min-width: 1600px) {
  html { font-size: 112.5%; }
  .wrap { width: min(1360px, 100%); }
}

/* on narrow screens, put the thing that reacts directly above the buttons that drive it */
@media (max-width: 899px) {
  .words__grid, .ward__grid { display: flex; flex-direction: column; gap: 0; }
  .words__copy, .words .stage, .ward__copy { display: contents; }
  .words .face { order: 4; margin: 1.6rem auto 0; width: min(78%, 300px); }
  .words .readout { order: 5; margin: 1.1rem auto 0; padding: .7rem .9rem .75rem; width: min(100%, 340px); }
  .words .readout p { min-height: 4.2em; margin: .4rem 0 .5rem; font-size: .82rem; }
  .words .readout dl { padding-top: .5rem; }
  .words .wordpad { order: 6; margin-top: 1.2rem; justify-content: center; gap: .55rem; }
  .words .wordpad button { min-height: 46px; font-size: 1.12rem; }
  .ward__stage { order: 4; margin: 1.6rem auto 0; width: min(74%, 290px); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
  .ward .shelf { margin-top: 1.4rem; gap: .55rem; }
  .ward .shelf button { min-height: 78px; padding: .45rem .3rem .45rem; }
  .ward .shelf .shelf__art { height: 36px; }
  .ward .patience { margin-top: 1rem; }
  .ward .ward__act { margin-top: 1rem; }
  .ward .shelf { order: 5; }
  .ward .patience { order: 6; }
  .ward .ward__act { order: 7; }
}

@media (max-width: 599px) {
  .cookie { padding-top: .7rem; padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); gap: .55rem 1rem; }
  .cookie__txt { font-size: .9rem; flex-basis: 100%; }
  .cookie .btn { min-height: 44px; padding: .55em 1em; font-size: .95rem; }
}

@media (max-width: 599px) {
  .cab { aspect-ratio: 1 / 1; }
  .cab__title { font-size: 3.2rem; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .kcard__pic { aspect-ratio: 5 / 2; }
  .kcard--her .kcard__pic img { width: 46%; }
  .kcard__pic--icon svg { width: 26%; }
}

/* her comparison card: the photo's cropped edge meets the frame instead of floating inside it */
.kcard--her .kcard__pic img { left: auto; right: 0; translate: none; width: 90%; }
@media (min-width: 900px) and (max-width: 1099px) { .kcard--her .kcard__pic img { width: 50%; } }

/* forecast cards on wide screens: let the icon and the number carry the card */
@media (min-width: 1180px) {
  .cast svg { width: 78px; height: 78px; margin-block: .2rem; }
  .cast i { font-size: 1.5rem; font-family: var(--display); font-weight: 900; font-variation-settings: "WONK" 1, "opsz" 72; letter-spacing: -.02em; }
  .cast b { font-size: 1.05rem; }
}

/* tablets held upright: the same stacked layout as phones, with more room */
@media (min-width: 600px) and (max-width: 899px) {
  .words .face { width: min(56%, 380px); }
  .words .readout { width: min(100%, 440px); }
  .ward__stage { width: min(52%, 380px); }
}
