:root {
  color-scheme: light;
  --ink: #1b1921;
  --muted: #605c67;
  --edge: #e8e5eb;
  --paper: #fff;
  --lime: #e5fa9e;
  --violet: #7652b9;
  --mono: "SFMono-Regular", Consolas, monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 280px; min-height: 100svh; margin: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
p, h1, h2 { margin: 0; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #7752b7; outline-offset: 4px; }
::selection { background: #e5fa9e; color: #201b26; }
.sr-only, .icon-library { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.icon { display: inline-block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.skip-link { position: fixed; z-index: 10; inset: 10px auto auto 10px; transform: translateY(-150%); padding: 10px 14px; background: #221b29; color: white; border-radius: 8px; }
.skip-link:focus { transform: none; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding-inline: clamp(18px, 4vw, 58px); }
.site-header { min-height: 73px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 21px; font-weight: 790; letter-spacing: -.075em; line-height: 1; }
.brand img { display: block; }
.brand-dot { color: #30243c; }
.brand-domain { color: #6d6477; font-weight: 600; }
.header-note { display: flex; align-items: center; gap: 7px; color: #514b5a; font-size: 12px; font-weight: 650; border: 1px solid #e9e6ec; border-radius: 30px; padding: 6px 11px; background: #fff; }
.header-light, .pet-light { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #80a344; box-shadow: 0 0 0 3px #edf7d7; }
.lobby { flex: 1; display: grid; place-items: center; padding: clamp(16px, 4vh, 47px) 18px clamp(28px, 6vh, 64px); }
.lobby-inner { width: min(100%, 714px); }
.pet-stage { width: min(100%, 378px); height: 244px; margin: 0 auto 24px; position: relative; isolation: isolate; border-radius: 39px; background: radial-gradient(ellipse at 50% 68%, #f5f0ff 3%, #faf7ff 45%, #fcfbff 68%, #fff 100%); border: 1px solid #eee9f6; box-shadow: 0 15px 46px -33px #8271a0; }
.stage-glow, .stage-grid, .stage-orbit, .stage-floor { position: absolute; pointer-events: none; z-index: -1; }
.stage-glow { inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 18% 96%, #ebffd666, transparent 48%), radial-gradient(ellipse at 92% 17%, #e8ddfa78, transparent 49%); }
.stage-grid { inset: 0; border-radius: inherit; background-image: radial-gradient(#a894bf43 1px, transparent 1px); background-size: 16px 16px; mask-image: radial-gradient(ellipse at center, transparent 24%, #000 80%); }
.stage-orbit { width: 206px; height: 135px; border: 1px solid #dcd1ef99; border-radius: 50%; left: 50%; top: 48%; transform: translate(-50%,-50%) rotate(-20deg); }
.stage-orbit::after { content: ""; position: absolute; inset: 10px -20px; border: 1px dashed #d9cced91; border-radius: 50%; }
.stage-floor { width: 156px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse, #b9a3d448, transparent 70%); left: 50%; top: 182px; transform: translateX(-50%); }
.stage-spark, .stage-pixel { position: absolute; pointer-events: none; }
.stage-spark-l { left: 20%; top: 33%; color: #8462bb; font-size: 15px; }
.stage-spark-r { right: 18%; top: 62%; color: #7358a5; font-size: 12px; }
.stage-pixel { width: 6px; height: 6px; background: #afca6c; box-shadow: 0 0 0 4px #eff7d6; left: 20%; top: 71%; transform: rotate(45deg); }
.pet-controls { position: absolute; right: 11px; top: 11px; z-index: 2; }
.mini-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #e8e0ee; border-radius: 50%; background: #ffffffd9; color: #675573; }
.mini-button:hover { background: #f4ebff; }
.mini-button .icon { width: 16px; height: 16px; }
.mini-button .play-icon, .mini-button[aria-pressed="true"] .pause-icon { display: none; }
.mini-button[aria-pressed="true"] .play-icon { display: block; }
.pet-button { position: absolute; width: 192px; height: 208px; left: 50%; bottom: 37px; transform: translateX(-50%); border: 0; border-radius: 30px; background: transparent; padding: 0; -webkit-tap-highlight-color: transparent; }
.pet-button:active { transform: translateX(-50%) scale(.98); }
.pet-poster, .pet-sprite { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.pet-sprite { opacity: 0; }
.pet-button[data-loaded] .pet-sprite { opacity: 1; }
.pet-button[data-loaded] .pet-poster { visibility: hidden; }
.pet-id { display: flex; align-items: center; justify-content: center; gap: 8px; position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); white-space: nowrap; min-height: 29px; padding: 0 10px; border: 1px solid #e8e0f2; border-radius: 25px; color: #655274; background: #fffffff2; font: 650 9px/1 var(--mono); letter-spacing: .07em; pointer-events: none; }
.pet-id .pet-light { width: 5px; height: 5px; box-shadow: 0 0 0 2px #edf7d7; }
.pet-id-divider { width: 1px; height: 10px; background: #e0d6e8; }
#pet-state { font-family: var(--sans); color: #625868; font-weight: 650; font-size: 10px; letter-spacing: 0; }
.pet-stage[data-scene="jump"] .stage-glow, .pet-stage[data-scene="spin"] .stage-glow { background: radial-gradient(ellipse at 50% 62%, #dff6a980, transparent 69%); }
.intro { text-align: center; margin: 0 auto 28px; }
.intro h1 { color: #1b1920; font-size: clamp(43px, 6.4vw, 75px); line-height: 1.02; letter-spacing: -.065em; font-weight: 750; }
.intro h1 span { color: #8059ba; }
.intro p { color: var(--muted); font-size: clamp(14px, 2vw, 17px); margin: 13px auto 0; line-height: 1.55; }
.intro p span { white-space: normal; }
.conversation { width: 100%; }
.composer { padding: 13px 13px 11px 19px; border: 1px solid #ddd9e2; border-radius: 27px; background: #fff; box-shadow: 0 7px 24px -15px #42314c72, 0 2px 3px #26212d06; }
.composer:focus-within { border-color: #aa8bc6; box-shadow: 0 7px 24px -15px #42314c72, 0 0 0 3px #f4ecfb; }
.composer textarea { width: 100%; display: block; padding: 3px 0; color: #24212a; resize: vertical; min-height: 47px; max-height: 220px; border: 0; outline: none; background: transparent; line-height: 1.5; }
.composer textarea::placeholder { color: #68616f; opacity: 1; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#composer-topic { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: #675a74; }
#composer-topic .icon { color: var(--violet); width: 15px; height: 15px; }
.send-arrow { display: grid; place-items: center; width: 43px; height: 43px; border: 0; border-radius: 50%; background: #211b29; color: white; }
.send-arrow:hover { background: #4a2e61; }
.send-arrow .icon { width: 21px; height: 21px; }
.suggestions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.suggestions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; min-height: 45px; border: 1px solid #e7e3ea; border-radius: 30px; color: #37303d; background: #fff; font-size: 13px; font-weight: 650; white-space: nowrap; transition: background .2s, border-color .2s; }
.suggestions button .icon { color: #7850ac; width: 17px; height: 17px; }
.suggestions button:nth-child(1) .icon { color: #8b4d26; }
.suggestions button:nth-child(3) .icon { color: #556b27; }
.suggestions button:hover, .suggestions button[aria-pressed="true"] { background: #f6f0ff; border-color: #d6c2ea; }
.follow-up { display: grid; gap: 12px; }
.note-summary { display: flex; align-items: start; justify-content: space-between; gap: 12px; background: #f6f2fa; border: 1px solid #eee5f5; border-radius: 20px; padding: 13px 16px; }
.note-label { color: #6c527f; font: 700 10px/1.3 var(--mono); letter-spacing: .1em; }
.note-summary p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; margin-top: 3px; font-size: 14px; }
.quiet-button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 6px; color: #684492; min-height: 40px; padding: 0 5px; font-size: 13px; font-weight: 730; white-space: nowrap; }
.quiet-button:hover { text-decoration: underline; }
.reply-form { padding: clamp(17px, 4vw, 28px); border: 1px solid #e1dce5; border-radius: 25px; box-shadow: 0 10px 28px -19px #42314c4c; }
.reply-form h2, .receipt h2 { font-size: clamp(20px, 3.1vw, 25px); line-height: 1.2; letter-spacing: -.045em; }
.reply-intro, .receipt p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.reply-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label, .reply-choice legend { font-size: 13px; font-weight: 680; }
.field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #ded9e3; border-radius: 12px; color: var(--ink); background: #fdfcfe; }
.field input::placeholder { color: #6f6775; opacity: 1; }
.reply-choice { margin: 12px 0 0; padding: 0; border: 0; display: flex; gap: 7px; }
.reply-choice legend { margin-bottom: 4px; }
.reply-choice label { position: relative; }
.reply-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.reply-choice span { display: inline-flex; align-items: center; min-height: 37px; padding: 0 11px; border: 1px solid #e7e2ea; border-radius: 22px; font-size: 13px; font-weight: 620; cursor: pointer; }
.reply-choice input:checked + span { background: #f3eafb; color: #543575; border-color: #ddc9ec; }
.reply-choice input:focus-visible + span { outline: 2px solid #7752b7; outline-offset: 3px; }
.reply-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.reply-footer p { display: flex; align-items: center; gap: 6px; color: #675e6b; font-size: 12px; }
.reply-footer p .icon { width: 15px; height: 15px; color: #71538a; }
.send-note { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; white-space: nowrap; border: 1px solid #c5db7c; background: #e5fa9e; color: #202811; border-radius: 23px; padding: 0 14px; font-size: 14px; font-weight: 750; }
.send-note:hover { background: #daee8e; }
.send-note .icon { width: 16px; height: 16px; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
#challenge { margin-top: 13px; }
.form-error { color: #9a263a; margin-top: 9px; font-size: 13px; }
.receipt { display: flex; align-items: center; gap: 14px; padding: 19px; border: 1px solid #dbe8bd; background: #f7fce9; border-radius: 22px; }
.receipt-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; color: #344f16; border-radius: 50%; background: #e6f4bd; }
.receipt .quiet-button { margin-left: auto; white-space: normal; }
.receipt .quiet-button .icon { width: 15px; height: 15px; }
.noscript-note { margin-top: 12px; font-size: 14px; text-align: center; }
.noscript-note a { text-decoration: underline; }
.site-footer { min-height: 58px; color: #69636e; font-size: 12px; }
.footer-star { color: #7956a7; margin-left: 2px; }
.site-footer a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-weight: 660; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a span { color: #714d9a; }
@media (max-width: 520px) {
  .site-header { min-height: 61px; }
  .header-note { font-size: 10px; }
  .lobby { padding-top: 16px; padding-bottom: 26px; }
  .pet-stage { height: 206px; margin-bottom: 22px; border-radius: 30px; }
  .pet-button { width: 171px; height: 185px; bottom: 24px; }
  .stage-floor { top: 151px; }
  .intro { margin-bottom: 21px; }
  .intro p { max-width: 34ch; }
  .intro p span { display: block; }
  .suggestions { gap: 6px; margin-top: 12px; }
  .suggestions button { font-size: 12px; padding: 0 9px; gap: 5px; min-height: 43px; }
  .suggestions button .icon { width: 15px; height: 15px; }
  .reply-fields { grid-template-columns: 1fr; }
  .reply-footer { flex-wrap: wrap; }
  .receipt { flex-wrap: wrap; gap: 10px; }
  .receipt .quiet-button { margin-left: 49px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .pet-button:active { transform: translateX(-50%); }
}

.site-footer { flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 12px; }
