:root{font:15px/1.5 system-ui,"Segoe UI",sans-serif;color-scheme:dark;color:#f7f1ff;background:#141122;--lilac:#d2bbff;--muted:#a79bbd;--line:#ffffff18}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,textarea{font:inherit}button,a,input,textarea,summary{touch-action:manipulation}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:#ffffff06;border-radius:12px;padding:10px 15px}button:hover{background:#ffffff12}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,#pet:focus-visible{outline:2px solid var(--lilac);outline-offset:4px}button:disabled{opacity:.5;cursor:wait}header{height:78px;display:flex;align-items:center;gap:32px;padding:0 38px;border-bottom:1px solid var(--line);position:relative;z-index:2}.brand{color:#f7f1ff;text-decoration:none;font-size:21px;display:flex;gap:10px;align-items:center}.brand span{font-size:16px;font-weight:600;letter-spacing:-.3px}.workspace-label,.eyebrow{font-size:10px;font-weight:650;letter-spacing:2px;color:var(--muted)}#help{margin-left:auto}.quiet{background:none;color:#c9b9de;border:0;font-size:12px}.text-link{font-size:12px;color:var(--lilac)}#desktop{height:calc(100dvh - 78px);position:relative;overflow:hidden;background:radial-gradient(ellipse at 70% 50%,#34234266,transparent 57%),linear-gradient(130deg,#161326,#171323 60%,#21182e)}.scene-copy{position:absolute;left:8%;top:14%;pointer-events:none;z-index:1}.scene-copy h1{font-size:clamp(34px,4.5vw,67px);line-height:1.13;letter-spacing:-3px;font-weight:500;margin:18px 0 20px}.scene-copy em{font-family:Georgia,serif;color:#cbb3ef;font-weight:400}.scene-copy p{color:var(--muted);font-size:13px;line-height:1.9}.moon{position:absolute;right:12%;top:13%;width:110px;height:110px;border:1px solid #d4bafa27;border-radius:50%;box-shadow:inset 22px -9px 0 0 #d4bafa10;transform:rotate(-24deg)}.orbit{position:absolute;border:1px solid #dac4fa0b;border-radius:50%;width:760px;height:760px;right:-130px;top:60px}.hint{position:absolute;bottom:24px;left:38px;display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px}.dot{width:5px;height:5px;border-radius:50%;background:#b6d6b1}#pet{position:absolute;width:200px;height:338px;cursor:grab;touch-action:none;user-select:none;z-index:3}#pet.dragging{cursor:grabbing}.pose{width:100%;height:calc(100% - 48px);background:url('assets/luna-pose-sheet-v1.png') no-repeat 0 0/200% 200%;filter:drop-shadow(0 16px 22px #05020d66);animation:breathe 4s ease-in-out infinite}#custom-art{width:100%;height:calc(100% - 48px);object-fit:contain;pointer-events:none;animation:breathe 4s ease-in-out infinite}.pet-shadow{position:absolute;bottom:45px;left:25%;width:50%;height:10px;background:#08031377;filter:blur(7px);border-radius:50%}.pet-tools{height:34px;display:flex;align-items:center;justify-content:center;gap:10px}.pet-tools button{width:30px;height:30px;padding:0;font-size:17px;border-radius:10px;background:#282035a6}.pet-tools span{font-size:11px;color:#cfbde5;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.panel,dialog{background:#211b2e;color:inherit;border:1px solid #aa82d42e;box-shadow:0 24px 100px #06030f77;border-radius:20px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-heading h2{font-weight:500;font-size:24px;letter-spacing:-.7px;margin:6px 0 20px}.icon{font-size:24px;line-height:1;width:34px;height:34px;padding:0;background:none;border:0;color:var(--muted)}dialog{padding:26px;width:min(460px,calc(100% - 28px));max-height:90dvh;overflow:auto}dialog::backdrop{background:#0b071666;backdrop-filter:blur(6px)}label{display:block;font-size:12px;color:#d7c9e7;margin:15px 0 7px}input:not([type=range]):not([type=file]),textarea{width:100%;border:1px solid #ab8ac633;border-radius:10px;padding:10px 12px;color:inherit;background:#16121f;resize:vertical}input[type=file]{font-size:12px;max-width:100%}input[type=range]{width:100%;accent-color:#c8a9ff}.size-label,.range-labels,.actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.size-label output,.range-labels,.small,.status{font-size:11px;color:var(--muted)}.small{line-height:1.7}.actions{margin-top:20px}.primary{background:#c4a6ee;border-color:#c4a6ee;color:#21132f;font-weight:650;font-size:12px}.primary:hover{background:#dac5f4}.pet-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.pet-card{display:grid;gap:8px;padding:12px 6px;font-size:12px}.pet-card[aria-pressed=true]{border-color:#bc99e3;background:#b68bd219}.pet-thumb{width:76px;height:106px;margin:auto;background:url('assets/luna-pose-sheet-v1.png') no-repeat 0 0/200% 200%}.pet-thumb img{width:100%;height:100%;object-fit:contain}summary{cursor:pointer;color:var(--lilac);font-size:12px;padding:13px 0;border-top:1px solid var(--line);margin-top:20px}details .primary{margin-top:15px}.chat-panel{position:fixed;right:24px;top:100px;bottom:24px;width:min(390px,calc(100% - 28px));z-index:8;padding:23px;display:flex;flex-direction:column}.chat-panel[hidden]{display:none}.messages{flex:1;overflow:auto;min-height:90px;padding:0 2px}.intro-note{font-size:13px;color:var(--muted)}.message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;border-radius:13px;background:#352741;margin:10px 0;padding:11px 13px}.message.you{background:#58406e;margin-left:26px}.message b{display:block;font-size:10px;color:#c7afdd;margin-bottom:5px}#chat-form{margin-top:12px}#chat-form textarea{resize:none}#send{margin-top:8px;float:right}#chat-settings{clear:both;margin-top:12px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:90%;padding:12px 20px;background:#362747;border:1px solid #a986c74a;border-radius:14px;font-size:12px;z-index:30}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@keyframes breathe{50%{transform:translateY(-4px)}}@media(prefers-reduced-motion:reduce){.pose,#custom-art{animation:none}}@media(max-width:650px){header{padding:0 20px;gap:15px;height:66px}.workspace-label{display:none}#desktop{height:calc(100dvh - 66px)}.scene-copy{top:8%;left:7%}.scene-copy h1{letter-spacing:-1.5px}.scene-copy p{font-size:11px}.moon{right:8%;top:45%;width:65px;height:65px}.hint{left:20px;font-size:10px;max-width:85%}.chat-panel{right:14px;top:80px;bottom:14px}.pet-list{grid-template-columns:repeat(2,1fr)}}

body{height:100dvh;overflow:clip}#desktop{overflow:clip}

[hidden]{display:none!important}.pose,#custom-art{margin-left:auto;margin-right:auto}
