:root {
  color-scheme: light;
  --paper: #f6f5f0;
  --ink: #292d29;
  --muted: #6b6e63;
  --accent: #547254;
  --line: #ddded5;
  --look-x: 0px;
  --look-y: 0px;
  --lean: 0deg;
  --pupil-x: 0px;
  --pupil-y: 0px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; background: var(--paper); }
body { margin: 0; color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button:not(:disabled), a { touch-action: manipulation; }
button { -webkit-appearance: none; appearance: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
::selection { background: #dce6d4; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page { min-height: 100svh; display: flex; flex-direction: column; padding: 0 48px; overflow: clip; }
.masthead { display: flex; align-items: center; justify-content: space-between; height: 112px; flex-shrink: 0; }
.wordmark { color: var(--ink); text-decoration: none; font-family: "Arial Rounded MT Bold", Arial, sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -1.5px; display: inline-flex; align-items: baseline; }
.wordmark > span:first-child { font-size: 15px; letter-spacing: -.5px; margin-left: 2px; font-weight: 500; }
.brand-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; margin-left: 5px; align-self: center; margin-top: 5px; }
.motion-button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 7px 0 7px 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; letter-spacing: .06em; }
.motion-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.motion-button:hover { color: var(--ink); }
.play-icon { display: none; }
.motion-button[aria-pressed="true"] .play-icon { display: block; }
.motion-button[aria-pressed="true"] .pause-icon { display: none; }
.main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px 0 52px; }
.intro { display: flex; align-items: center; gap: 14px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 9px; letter-spacing: .17em; color: var(--muted); white-space: nowrap; }
.small-line { display: block; width: 22px; height: 1px; background: #c9ccc1; }
.stage { position: relative; width: min(650px, 90vw); height: 325px; margin-top: 27px; isolation: isolate; }
.face-position { display: block; width: 100%; transform: translate(var(--look-x), var(--look-y)) rotate(var(--lean)); transition: transform .5s cubic-bezier(.2,.75,.25,1); }
.face-float { display: block; animation: float 5.8s ease-in-out infinite; }
/* Animate the art, never the hit target or keyboard focus outline. */
.face { position: absolute; inset: 24px 0 auto; display: block; border: 0; padding: 0 10px; width: 100%; background: transparent; cursor: pointer; border-radius: 48%; }
.face:disabled { cursor: default; }
.face-art { display: block; width: 100%; height: auto; overflow: visible; transform-origin: 50% 64%; }
.face-ink { color: var(--ink); stroke: currentColor; stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.pupil { fill: currentColor; stroke: none; transform: translate(var(--pupil-x), var(--pupil-y)); transition: transform .32s ease-out; }
.eye { transform-box: fill-box; transform-origin: center 32%; }
.q-tail { transition: opacity .16s; }
.happy-eye, .sleepy-eye, .mouth-happy, .mouth-surprised, .mouth-sleepy { display: none; }
.blush { color: #db9c89; opacity: 0; transition: opacity .3s; }
.tears { color: #90b4be; opacity: 0; }
.tear { transform-box: fill-box; transform-origin: top; }
.eye-ring { transition: stroke .25s; }
.face-shadow { position: absolute; bottom: 9px; left: 30%; width: 40%; height: 12px; border-radius: 50%; background: #4b5741; opacity: .055; filter: blur(6px); animation: shadow 5.8s ease-in-out infinite; z-index: -1; }
.orbit-mark { position: absolute; font-weight: 300; user-select: none; color: var(--accent); animation: drift 7s ease-in-out infinite; }
.mark-one { font-family: Georgia, serif; left: -5px; top: 75px; font-size: 33px; transform: rotate(-12deg); }
.mark-two { right: -15px; bottom: 75px; font-family: monospace; font-size: 23px; opacity: .5; animation-delay: -3s; }
.speech { position: absolute; z-index: 2; top: -7px; left: 50%; transform: translate(-50%, 7px) rotate(-3deg); font-size: 12px; white-space: nowrap; color: var(--accent); background: #e9eddf; border-radius: 40px; padding: 10px 19px; opacity: 0; transition: opacity .18s, transform .25s; pointer-events: none; }
.speech::after { content: ""; position: absolute; bottom: -5px; left: 48%; width: 10px; height: 10px; background: #e9eddf; transform: rotate(45deg); }
body[data-reacting="true"] .speech { opacity: 1; transform: translate(-50%, 0) rotate(-3deg); }
.caption { text-align: center; margin-top: 28px; }
.headline { margin: 0; font-size: 25px; font-weight: 450; letter-spacing: .08em; line-height: 1.6; }
.headline span { color: var(--accent); }
.hint { color: var(--muted); font-size: 12px; letter-spacing: .07em; margin: 13px 0 0; line-height: 1.8; }
.interaction { margin-top: 30px; text-align: center; }
.poke-button { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 46px; border: 1px solid #cdd1c5; border-radius: 50px; background: transparent; font-size: 12px; letter-spacing: .1em; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.poke-button > svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.25; stroke-linejoin: round; }
.button-plus { font-family: monospace; font-size: 14px; color: var(--accent); margin-left: 6px; }
.poke-button:hover { border-color: #b0bda3; background: #e8eddf; transform: translateY(-2px); }
.poke-button:active { transform: translateY(1px) scale(.97); }
.keyboard-hint { margin: 13px 0 0; font-size: 10px; letter-spacing: .07em; color: var(--muted); }
.footer { min-height: 80px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.footer p { margin: 0; }
.footer-star { color: var(--accent); font-size: 17px; display: inline-block; margin-right: 9px; vertical-align: -1px; }
.footer-note { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.particles { position: absolute; inset: 0; pointer-events: none; }
.particle { position: absolute; left: 50%; top: 47%; color: var(--accent); font-family: Georgia, serif; font-size: 20px; animation: scatter .8s cubic-bezier(.12,.6,.4,1) forwards; }
body[data-mood="happy"] .eye-ring, body[data-mood="happy"] .q-tail, body[data-mood="happy"] .pupil,
body[data-mood="sleepy"] .eye-ring, body[data-mood="sleepy"] .q-tail, body[data-mood="sleepy"] .pupil { opacity: 0; }
body[data-mood="happy"] .happy-eye, body[data-mood="happy"] .mouth-happy,
body[data-mood="surprised"] .mouth-surprised, body[data-mood="sleepy"] .sleepy-eye, body[data-mood="sleepy"] .mouth-sleepy { display: block; }
body:not([data-mood="idle"]) .mouth-idle { display: none; }
body[data-mood="happy"] .blush { opacity: .68; }
body[data-mood="surprised"] .pupil { transform: scale(1.5); transform-box: fill-box; transform-origin: center; }
body[data-mood="teary"] .mouth-idle { display: block; }
body[data-mood="teary"] .tears { opacity: 1; }
body[data-mood="teary"] .tear { animation: teardrop 1s ease-in infinite; }
body[data-mood="teary"] .tear-right { animation-delay: -.5s; }
body[data-mood="sleepy"] .face-position { transform: translate(0, 5px) rotate(-5deg); }
body[data-motion="paused"] *, body[data-motion="paused"] *::before, body[data-motion="paused"] *::after { animation-play-state: paused !important; transition: none !important; }
body[data-visibility="hidden"] *, body[data-visibility="hidden"] *::before, body[data-visibility="hidden"] *::after { animation-play-state: paused !important; }
body[data-motion="paused"] .face-position { transform: none; }
body[data-motion="paused"] .pupil { transform: none; }
.no-script { margin-top: 24px; text-align: center; color: var(--muted); font-size: 12px; }
.error-page .main { gap: 25px; text-align: center; }
.error-face { font-size: clamp(80px, 18vw, 160px); font-weight: 700; letter-spacing: -.08em; margin: 0; }
.error-link { color: var(--accent); text-underline-offset: 5px; font-size: 14px; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: .06; } 50% { transform: scaleX(.87); opacity: .035; } }
@keyframes drift { 0%, 100% { translate: 0 0; rotate: -8deg; } 50% { translate: 0 -8px; rotate: 8deg; } }
@keyframes teardrop { 0% { transform: translateY(-2px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }
@keyframes scatter { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rotation)) scale(1); } }
@media (min-width: 1450px) { .page { padding-inline: max(48px, calc((100vw - 1340px) / 2)); } }
@media (max-width: 700px) {
  .page { padding-inline: 25px; }
  .masthead { height: 90px; }
  .wordmark { font-size: 24px; }
  .main { padding: 26px 0 45px; }
  .intro { font-size: 8px; letter-spacing: .11em; gap: 10px; }
  .small-line { width: 16px; }
  .stage { width: min(510px, 93vw); height: clamp(210px, 49vw, 290px); margin-top: 28px; }
  .face { top: 28px; }
  .face { padding-inline: 12px; }
  .speech { top: 0; font-size: 11px; padding: 8px 15px; }
  .mark-one { left: 15px; top: 31px; font-size: 23px; }
  .mark-two { right: 19px; bottom: 35px; font-size: 18px; }
  .face-shadow { bottom: 8px; }
  .caption { margin-top: 19px; }
  .headline { font-size: 21px; letter-spacing: .04em; }
  .hint { font-size: 11px; margin-top: 12px; }
  .interaction { margin-top: 27px; }
  .footer { min-height: 76px; font-size: 9px; }
  .footer-note { font-size: 9px; letter-spacing: 0; }
}
@media (max-width: 370px) {
  .page { padding-inline: 19px; }
  .motion-label { display: none; }
  .motion-button { width: 44px; justify-content: center; padding: 7px; }
  .headline { font-size: 19px; }
  .intro { font-size: 7px; }
  .footer { gap: 5px; }
  .footer-star { margin-right: 5px; }
  .footer-note { font-size: 8px; }
}
@media (min-width: 701px) and (max-height: 760px) {
  .masthead { height: 82px; }
  .main { padding-block: 15px 30px; }
  .stage { width: 520px; height: 262px; margin-top: 15px; }
  .caption { margin-top: 16px; }
  .interaction { margin-top: 22px; }
  .footer { min-height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .face-position { transform: none !important; }
  .pupil { transform: none !important; }
}
