:root{--paper:#fbf7ef;--ink:#503529;--muted:#9b8576;--line:#e4d5c5;--orange:#ed963f;--sage:#6ea8a6;--white:#fffdf9;--shadow:0 16px 60px #4a2b1a1a;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid var(--sage);outline-offset:4px}svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}button{border:0;background:none}a{color:inherit;text-decoration:none}.topbar{height:86px;padding:0 clamp(18px,3vw,48px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:12px;font-size:27px;font-weight:750;letter-spacing:1px}.brand-fish{font-size:38px;filter:sepia(.7) saturate(2)}nav{display:flex;align-items:center;gap:14px}.outline{border:1px solid #bba28e;border-radius:14px;padding:10px 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#ffffff40;font-size:14px;min-height:42px}.outline:hover{background:#fff2de}.connection{font-size:13px;margin-right:8px;color:#6e8172}.connection:before{content:'';display:inline-block;width:7px;height:7px;background:#80a786;border-radius:50%;margin-right:7px}.connection.off:before{background:#c39765}#memory-count{font-style:normal;min-width:18px;height:18px;background:#f2e7d6;border-radius:50%;font-size:11px;line-height:18px;text-align:center}.layout{display:grid;grid-template-columns:1.07fr 1fr;gap:16px;padding:18px clamp(18px,3vw,48px) 22px;max-width:1800px;margin:auto;height:calc(100dvh - 86px);min-height:650px;max-height:1150px}.room{position:relative;border-radius:24px;overflow:hidden;background:#fae9c7;display:flex;flex-direction:column;min-height:0}.scene{position:relative;flex:1;min-height:350px;overflow:hidden;background:#fce9c2 url('/fish-static/assets/room.png') center 50%/cover no-repeat}.room-label{position:absolute;top:18px;left:22px;right:18px;display:flex;justify-content:space-between;align-items:center;font-size:12px;z-index:3;color:#7f6b42}.room-label>span{background:#fff9e5c9;backdrop-filter:blur(8px);padding:8px 12px;border-radius:20px}.quiet{width:36px;height:36px;background:#fff9e5bc;display:grid;place-items:center;border-radius:50%}.quiet[aria-pressed=true]{background:#59777f;color:white}.speech-bubble{position:absolute;top:13%;left:18%;width:66%;border:1px solid #caa57b;border-radius:40% 43% 38% 40%;padding:21px 24px;background:#fffdf3f5;line-height:1.65;font-size:clamp(15px,1.35vw,20px);text-align:center;z-index:3;box-shadow:0 6px 22px #965c1f0d;transition:opacity .3s;max-height:35%;overflow:auto}.speech-bubble:after{content:'';width:13px;height:13px;border-right:1px solid #caa57b;border-bottom:1px solid #caa57b;position:absolute;bottom:-7px;left:35%;background:#fffdf3;transform:rotate(45deg)}.pet{position:absolute;left:23%;bottom:2%;width:57%;aspect-ratio:1;z-index:2;padding:0;transform-origin:50% 75%;touch-action:manipulation;animation:breathe 4s ease-in-out infinite}.pet-sprite{display:block;width:100%;height:100%;background:url('/fish-static/assets/fish-sprites.png') 0 0/400% 200% no-repeat;pointer-events:none}.pet.happy .pet-sprite{background-position:33.333% 0}.pet.shy .pet-sprite,.pet.gentle .pet-sprite{background-position:66.667% 0}.pet.annoyed .pet-sprite{background-position:100% 0}.pet.sleepy .pet-sprite{background-position:0 100%}.pet.thinking .pet-sprite{background-position:33.333% 100%}.pet.chew .pet-sprite{background-position:66.667% 100%}.pet.surprised .pet-sprite{background-position:100% 100%}.pet.bounce{animation:bounce .55s ease 2}.pet.wiggle{animation:wiggle .45s ease 3}.pet.speaking{animation:talk .32s ease-in-out infinite alternate}.scene-note{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-size:11px;color:#947449}.room-bottom{position:relative;background:#fff0d1e8;padding:4px 24px 21px;border-top:1px solid #e8cfa456}.room-bottom>p{text-align:center;font-size:13px;margin:10px 0 15px;letter-spacing:.5px}.actions{display:flex;justify-content:space-evenly;gap:12px}.actions>button{border:1px solid #bba07f;border-radius:50%;width:76px;height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#fff7e7;transition:transform .15s,background .15s;font-size:13px}.actions>button svg{width:27px;height:27px}.actions>button:hover{transform:translateY(-4px);background:#fffdf6}.actions>button:active{transform:scale(.94)}.chat-panel{border:1px solid var(--line);background:var(--white);border-radius:24px;display:flex;flex-direction:column;min-height:0;overflow:hidden}.chat-heading{display:flex;padding:29px 24px 10px 30px;justify-content:space-between;gap:10px;align-items:flex-start}.chat-heading h1{font-size:clamp(19px,1.7vw,26px);line-height:1.5;letter-spacing:.3px;margin:0;font-weight:650}.chat-heading p{font-size:12px;color:var(--muted);margin:11px 0 0}.tiny-fish{color:#bd9974;margin:0 7px}.icon-button{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none;color:#8e7561}.icon-button:hover{background:#f3eadd}.messages{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:22px 28px;scroll-behavior:smooth;min-height:100px;scrollbar-width:thin;scrollbar-color:#dbc8b6 transparent}.message{display:flex;gap:10px;margin:0 0 21px;animation:arrive .25s ease-out}.avatar{flex:none;width:35px;height:35px;border-radius:50%;background:#e7f0e8 url('/fish-static/assets/fish-sprites.png') 0 0/400% 200%;margin-top:2px}.message-content{max-width:87%;min-width:0}.message-bubble{background:#fbf4e9;border:1px solid #e3d6c5;border-radius:3px 18px 18px 18px;padding:14px 17px;font-size:15px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{justify-content:flex-end}.message.user .message-bubble{background:#eaf1eb;border-color:#dce6dc;border-radius:18px 3px 18px 18px}.message-meta{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;margin-top:4px;min-height:22px}.message-meta button{font-size:11px;display:inline-flex;align-items:center;gap:3px;padding:2px 6px}.message-meta svg{width:12px;height:12px}.thinking-dots{display:flex;gap:5px;padding:9px 0}.thinking-dots i{width:5px;height:5px;background:#b9a18a;border-radius:50%;animation:pulse 1s infinite}.thinking-dots i:nth-child(2){animation-delay:.15s}.thinking-dots i:nth-child(3){animation-delay:.3s}.composer-area{padding:8px 26px 14px}.suggestions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.suggestions button{border:1px solid #dfc9b1;border-radius:30px;padding:8px 13px;background:#fffaf2;font-size:12px}.suggestions button:hover{background:#fbebd3}.composer{display:flex;gap:7px;align-items:flex-end;border:1px solid #cfb69d;background:#fffefa;padding:9px;border-radius:18px;transition:box-shadow .2s}.composer:focus-within{box-shadow:0 0 0 3px #eab97c25;border-color:#bd926b}textarea{resize:none;border:0;background:transparent;width:100%;outline:none;line-height:1.7;padding:9px 5px 6px 8px;max-height:130px;font-size:15px;color:var(--ink);min-width:0}textarea::placeholder{color:#ad9682}.mic{border:1px solid var(--line);width:38px;height:38px;margin-bottom:2px}.mic.recording{background:#d96c56;color:white;animation:pulse 1s infinite}.send{width:42px;height:42px;display:grid;place-items:center;background:var(--orange);color:white;border-radius:50%;flex:none}.send svg{width:22px;height:22px}.under-composer{display:flex;align-items:center;gap:10px;min-height:44px;flex-wrap:wrap}.switch-label{display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;margin:0}.switch-label input{position:absolute;opacity:0;width:1px;height:1px}.switch{width:31px;height:18px;border-radius:16px;background:#c4b6a9;position:relative;transition:background .2s}.switch:before{content:'';position:absolute;width:12px;height:12px;left:3px;top:3px;border-radius:50%;background:white;transition:transform .2s}.switch-label input:checked+.switch{background:#7da69a}.switch-label input:checked+.switch:before{transform:translateX(13px)}.switch-label input:focus-visible+.switch{outline:2px solid #739d9c;outline-offset:3px}#input-status{font-size:11px;color:var(--muted);margin-left:auto}.text-button{color:#ad7044;font-size:12px;text-decoration:underline}.privacy-note{font-size:10px;color:#b29d8a;text-align:center;margin:6px 0 0}.privacy-note span{padding:0 7px}.privacy-note button{font-size:10px;padding:0;text-decoration:underline}#error{font-size:12px;color:#a44735;line-height:1.7;padding:8px 10px;background:#fff0e9;border-radius:9px;margin-bottom:8px}#error button{border-bottom:1px solid;margin-left:8px;font-size:12px}.particle{position:absolute;z-index:5;left:50%;top:65%;font-size:23px;animation:float 1s ease-out forwards;pointer-events:none}.night .scene{filter:saturate(.55) brightness(.83)}.night .room-bottom{background:#e6e6d9}.night .pet{animation-duration:6s}dialog{border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);width:min(560px,calc(100vw - 24px));max-height:85dvh;padding:0;background:var(--white);color:var(--ink)}dialog::backdrop{background:#3c2d2255;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;padding:24px;border-bottom:1px solid var(--line);gap:10px}.dialog-head h2{font-size:22px;margin:0}.dialog-head p{font-size:12px;color:var(--muted);margin:9px 0 0;line-height:1.7}.dialog-body{padding:24px;overflow-y:auto}.dialog-body h3{font-size:15px;font-weight:600}.dialog-body label{display:block;font-size:12px;color:#8c7564;margin-bottom:15px}.dialog-body input{display:block;width:100%;border:1px solid var(--line);padding:11px 12px;border-radius:10px;margin-top:7px;color:var(--ink);background:#fffdfa;outline-color:var(--sage);font-size:14px}.primary{background:var(--orange);border-radius:12px;padding:11px 19px;color:white;font-size:13px}.memory-form{margin-top:24px;padding-top:15px;border-top:1px solid var(--line)}.memory-item{padding:14px 0;border-bottom:1px dashed var(--line)}.memory-item header{display:flex;align-items:center;justify-content:space-between}.memory-item strong{font-size:12px;color:#a37854}.memory-item p{margin:7px 0;font-size:14px;line-height:1.7}.memory-item small{color:var(--muted);font-size:10px}.memory-item button{font-size:11px;color:#92745b;padding:5px}.empty{color:#aa9582;font-size:13px;line-height:1.9;padding:16px 0}.timeline-title{margin-top:26px}.event{padding:10px 0;font-size:12px;line-height:1.8;color:#887464}.event time{font-size:10px;display:block;color:#b19c87}.account-section{border-top:1px solid var(--line);margin-top:26px;padding-top:10px}.account-section p{font-size:12px;line-height:1.8;color:var(--muted)}.button-row{display:flex;gap:10px}.small-dialog{max-width:460px}.game-choices{padding:30px 20px;display:flex;justify-content:center;gap:16px}.game-choices button{background:#fff2dd;border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;gap:10px;align-items:center;font-size:38px;padding:18px}.game-choices span{font-size:13px}.prose p{font-size:13px;line-height:1.9;color:#8b7360}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:50;background:#5d493b;color:#fffdf6;border-radius:30px;padding:12px 22px;box-shadow:var(--shadow);font-size:13px;max-width:90vw;text-align:center}@keyframes breathe{50%{transform:translateY(-5px) rotate(.5deg)}}@keyframes talk{to{transform:scaleY(.985) translateY(-3px)}}@keyframes bounce{50%{transform:translateY(-20px) rotate(-3deg)}}@keyframes wiggle{25%{transform:rotate(-5deg)}75%{transform:rotate(5deg)}}@keyframes float{to{transform:translateY(-110px) rotate(15deg);opacity:0}}@keyframes arrive{from{opacity:0;transform:translateY(8px)}}@keyframes pulse{50%{opacity:.4}}
@media(min-width:1600px){.chat-heading{padding:40px 40px 20px}.messages{padding:26px 40px}.composer-area{padding:12px 40px 22px}.message-bubble{font-size:17px}.actions>button{width:88px;height:88px}}
@media(max-width:900px){.brand{font-size:21px}.topbar{height:72px;padding:0 20px}.topbar nav{gap:8px}.connection{display:none}.outline{font-size:12px;padding:8px 12px}.layout{height:calc(100dvh - 72px);padding:14px 16px;gap:12px;min-height:600px;grid-template-columns:1fr 1.05fr}.chat-heading{padding:24px 18px 10px}.chat-heading h1{font-size:19px}.messages{padding:18px 16px}.composer-area{padding:8px 16px 12px}.message-bubble{font-size:14px;padding:12px 13px}.avatar{width:28px;height:28px}.actions>button{width:60px;height:60px;font-size:11px}.actions>button svg{width:22px;height:22px}.room-bottom{padding:3px 10px 16px}.speech-bubble{padding:15px;left:16%;width:72%;font-size:15px}.room-label{left:12px;top:12px}}
@media(max-width:650px){.topbar{height:63px;padding:0 15px;gap:8px}.brand{font-size:18px;letter-spacing:0;gap:6px}.brand-fish{font-size:27px}.topbar .outline{padding:8px;min-height:34px;border-radius:10px}.topbar .outline span{display:none}.topbar nav{gap:7px}.topbar svg{width:18px;height:18px}.layout{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 63px);max-height:none;padding:10px;gap:10px}.room{border-radius:18px;flex:none;height:clamp(220px,32dvh,280px)}.scene{min-height:0;background-position:center 64%;background-size:cover}.room-label{top:10px;left:12px;font-size:10px}.room-label>span{padding:6px 9px}.quiet{height:29px;width:29px}.quiet svg{width:16px}.pet{width:50%;left:9%;bottom:-8%;max-width:240px}.speech-bubble{top:23%;left:45%;width:50%;font-size:12px;padding:11px 15px;max-height:50%;border-radius:24px}.scene-note{display:none}.room-bottom{display:flex;align-items:center;gap:8px;padding:8px 13px;min-height:67px}.room-bottom>p{font-size:10px;width:75px;line-height:1.7;margin:0}.actions{flex:1;gap:7px}.actions>button{width:46px;height:46px;border-radius:14px;font-size:9px;gap:2px}.actions>button svg{width:18px;height:18px}.chat-panel{border-radius:18px;min-height:370px;height:calc(100dvh - 93px - clamp(220px,32dvh,280px));max-height:760px}.chat-heading{padding:18px 17px 5px}.chat-heading h1{font-size:18px}.chat-heading p{font-size:10px;margin:5px 0}.messages{padding:15px 13px;min-height:130px}.message{gap:7px;margin-bottom:15px}.message-content{max-width:86%}.message-bubble{font-size:14px;line-height:1.75}.composer-area{padding:5px 12px 10px}.suggestions{gap:6px;margin-bottom:10px}.suggestions button{font-size:10px;padding:7px 10px}.composer{padding:7px;border-radius:15px;gap:4px}textarea{font-size:16px;padding:7px 5px}.mic{width:34px;height:34px}.send{height:38px;width:38px}.under-composer{min-height:36px}.privacy-note{margin:0}.dialog-head,.dialog-body{padding:20px}.dialog-head h2{font-size:20px}.prose p{font-size:12px}.night .room{height:240px}.night .chat-panel{height:calc(100dvh - 313px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
