:root{color-scheme:dark;--ink:#f8ead2;--muted:#b6c5d0;--gold:#efbb7c}*{box-sizing:border-box}body{margin:0;background:#102d4c;color:var(--ink);font-family:system-ui,-apple-system,"PingFang SC",sans-serif;overflow:hidden}#world{position:fixed;inset:0}canvas{display:block;width:100%;height:100%}header{position:fixed;inset:25px 32px auto;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}header>div,nav{pointer-events:auto}.eyebrow{font-size:11px;letter-spacing:.25em;color:var(--gold)}h1{font-size:30px;margin:4px 0;font-weight:500;letter-spacing:.18em}header p{font-size:12px;margin:5px 0;color:var(--muted)}button{font:inherit;cursor:pointer;color:var(--ink);border:1px solid #ffffff24;background:#163049cf;border-radius:8px;padding:8px 12px;backdrop-filter:blur(12px)}button:hover{background:#284860}button:focus-visible,input:focus-visible{outline:2px solid var(--gold)}nav{display:flex;gap:8px;font-size:12px}footer{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);width:min(690px,calc(100vw - 32px));padding:13px 18px 9px;background:#10263be8;border:1px solid #ffffff20;border-radius:15px;box-shadow:0 12px 50px #0005;backdrop-filter:blur(18px)}label{font-size:12px;color:var(--gold)}.inputRow{display:flex;gap:10px;margin:8px 0}input{min-width:0;flex:1;border:none;background:#ffffff09;color:var(--ink);padding:11px;border-radius:7px;font:inherit;font-size:14px}#send{background:#e2b47d;color:#172c3c;border:none;font-size:13px}.examples{display:flex;gap:7px;flex-wrap:wrap}.examples button{font-size:11px;padding:4px 8px;color:var(--muted);border:0;background:transparent}.status{display:flex;justify-content:space-between;font-size:10px;color:#9dafbc;margin-top:8px}#loading{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#102d4ce8;z-index:5}#loading h2{font-size:20px;font-weight:400}.spinner{height:38px;width:38px;border:2px solid #ffffff20;border-top-color:var(--gold);border-radius:50%;animation:spin 1.5s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#loading p{font-size:12px;color:var(--muted)}#panel{position:fixed;right:22px;top:92px;bottom:190px;width:330px;overflow:auto;padding:22px;background:#10263bf0;border:1px solid #ffffff25;border-radius:12px;backdrop-filter:blur(18px)}#panel[hidden]{display:none}#closePanel{float:right;padding:1px 8px;font-size:22px;border:0}#panel h2{font-size:18px;font-weight:500}#panel h3{font-size:13px;color:var(--gold);margin-top:24px}#selection{font-size:13px;line-height:1.7;color:var(--muted)}#actions{display:flex;gap:7px;flex-wrap:wrap}#actions button{font-size:12px}.event{font-size:12px;line-height:1.7;border-bottom:1px solid #ffffff10;padding:8px 0}.event small{color:#8297a8;margin-right:6px}details{font-size:11px;color:var(--muted);margin-top:20px}pre{white-space:pre-wrap;font-size:10px}#toast{position:fixed;left:50%;top:75%;transform:translate(-50%,-50%);font-size:13px;background:#12283be6;padding:10px 18px;border-radius:20px;opacity:0;transition:opacity .3s;pointer-events:none;max-width:80vw;text-align:center}#toast.show{opacity:1}@media(max-width:650px){header{inset:16px 16px auto}h1{font-size:22px}header p{display:none}nav{gap:4px}nav button{font-size:10px;padding:6px}footer{bottom:10px;padding:10px 12px}#panel{left:12px;right:12px;width:auto;top:75px;bottom:190px}.examples{gap:0}.status{font-size:9px}}
.choice-title{width:100%;font-size:12px;color:var(--gold);margin:12px 0 0}.scope-note{font-size:12px;line-height:1.7;color:var(--muted)}button:disabled{cursor:wait;opacity:.65}

.undoRow{position:absolute;right:14px;bottom:28px}.undoRow button{padding:2px 6px;font-size:10px;border:0;background:transparent;color:var(--muted)}.examples{padding-right:95px}@media(max-width:650px){.undoRow{position:static;text-align:right}.examples{padding-right:0}header nav{max-width:240px;flex-wrap:wrap;justify-content:flex-end}}

#world canvas{touch-action:none}

#actorPicker{display:block;width:100%;margin:8px 0 12px;padding:8px;background:#1e405a;color:var(--ink);border:1px solid #ffffff25;border-radius:7px;font:inherit;font-size:12px}

:root{--ink:#f5e7d3;--muted:#c5b8ad;--gold:#d9b47d}body{background:#27242d}h1{font-family:"Songti SC","Noto Serif SC",serif;font-weight:600;letter-spacing:.14em}button{background:#292830c9;border-color:#e9ceb222}button:hover{background:#45404a}footer,#panel{background:#27262ee8;border-color:#dfbd8c24;box-shadow:0 12px 45px #0d0b1538}footer{border-radius:16px}#send{background:#d9b17b;color:#302b2a}#loading{background:#27242df2}#toast{background:#292630ee}.status{color:#b5aaa5}.event{border-color:#e7c49b13}
#reactionFeedback{position:fixed;left:50%;top:24px;transform:translate(-50%,-8px);max-width:min(460px,calc(100vw - 40px));padding:12px 20px 13px;border:1px solid #dec09342;border-radius:15px;background:#27232ce8;box-shadow:0 8px 28px #100c1630;backdrop-filter:blur(14px);pointer-events:none;opacity:0;transition:opacity .26s,transform .26s;text-align:center;z-index:4}#reactionFeedback.visible{opacity:1;transform:translate(-50%,0)}.reaction-phase{display:block;font-size:10px;letter-spacing:.16em;color:#dfb879;margin-bottom:3px}#reactionFeedback strong{display:block;font-size:14px;font-weight:500;color:#f6e7cc}#reactionFeedback p{margin:5px 0 0;font-size:12px;line-height:1.65;color:#cbbeb1}#reactionFeedback[data-phase="error"] .reaction-phase,#reactionFeedback[data-phase="unavailable"] .reaction-phase{color:#c1aca0}.reaction-cue{position:fixed;left:0;top:0;width:46px;height:46px;border:1.5px solid #e9ba73;border-radius:50%;box-shadow:0 0 10px #eebd5530,inset 0 0 8px #eebd5510;opacity:0;pointer-events:none;will-change:transform,opacity;z-index:2}.reaction-cue::after{content:"";position:absolute;inset:5px;border:1px solid #e9ba7338;border-radius:50%}.status #mode{max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:650px){#reactionFeedback{top:82px;padding:9px 14px;min-width:240px;max-width:calc(100vw - 28px)}#reactionFeedback strong{font-size:13px}#reactionFeedback p{font-size:11px}.reaction-cue{width:35px;height:35px}}

/* CP24: the stage remains primary; near views are chosen by the viewer. */
footer{width:min(630px,calc(100vw - 28px));padding:10px 15px 8px}.inputRow{margin:6px 0}.inputRow input{padding:9px}header{inset:18px 24px auto}#focusSuggestion{position:fixed;left:50%;bottom:170px;transform:translateX(-50%);border-radius:22px;background:#39333dde;border-color:#d9b47c77;color:#f5dcb1;box-shadow:0 4px 25px #0003;font-size:12px;z-index:3}#focusSuggestion[hidden]{display:none}#reactionFeedback{max-width:420px;font-size:12px}.reaction-cue{display:none}@media(max-width:650px){header{inset:12px 12px auto}#focusSuggestion{bottom:194px;max-width:80vw;white-space:nowrap}#panel{bottom:210px}footer{padding:9px 11px}.status{gap:8px}.status span:last-child{max-width:43%;text-align:right}.examples button{padding:3px 5px}#reactionFeedback{top:90px}}

button[data-quality][aria-pressed=true]{border-color:#d9b47d;background:#5a4939}
/* Language changes typography, never the world or its camera. */
#language{min-width:44px;font-size:11px}html[lang=en] h1{letter-spacing:.015em;font-weight:500}html[lang=en] .eyebrow{font-size:9px;letter-spacing:.10em}html[lang=en] #panel{width:355px}html[lang=en] #focusSuggestion{max-width:80vw;white-space:normal}#nameNote a{color:#dfb879}@media(max-width:650px){html[lang=en] h1{font-size:21px}html[lang=en] header nav{max-width:238px}html[lang=en] header nav button{padding:5px 6px;font-size:10px}html[lang=en] #panel{width:auto;top:94px}html[lang=en] header>div{max-width:120px}html[lang=en] .eyebrow{font-size:8px;line-height:1.2}html[lang=en] footer label{font-size:11px}#language{min-width:34px}}

.paper-memory{padding:16px;border-left:2px solid #bfaa7e;color:#eddfc2;font-family:serif;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}

footer{width:min(720px,calc(100vw - 28px))}

/* A single line of small invitations; text determines width. */
.examples{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:12px;overflow-x:auto;scrollbar-width:none}.examples::-webkit-scrollbar{display:none}.examples button{flex:0 0 auto;width:auto;min-width:0;white-space:nowrap;padding:4px 3px;font-size:11px;letter-spacing:.025em;color:#c7b8a8;background:transparent;border-radius:5px;backdrop-filter:none}.examples button:hover{color:#f0d9b9;background:#d7b7850b}.examples button:focus-visible{outline-offset:0}#poem::placeholder{color:#b2a9a2;opacity:.68}#send{white-space:nowrap;min-width:88px}#focusSuggestion{bottom:156px}@media(max-width:650px){.examples{gap:6px;padding-right:0}.examples button{font-size:10px;padding:4px 2px;letter-spacing:0}#focusSuggestion{bottom:168px}#send{min-width:72px;padding:8px}footer .inputRow{gap:6px}footer .inputRow input{font-size:12px}}

/* Hint refresh belongs inside the writing field, below the primary action. */
.wishInput{display:flex;position:relative;flex:1;min-width:0}.wishInput input{width:100%;padding-right:42px!important;min-height:38px}.wishInput.has-draft input{padding-right:9px!important}.wish-reroll{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:#b8ac9d;opacity:.68;backdrop-filter:none;transition:color .15s,opacity .15s,background .15s}.wish-reroll svg{width:17px;height:17px}.wish-reroll:hover,.wish-reroll:focus-visible{color:#edcfa5;opacity:1;background:#d7b7850a}.wish-reroll[hidden]{display:none}@media(prefers-reduced-motion:reduce){.wish-reroll{transition:none}}

button:disabled{cursor:default;opacity:.46}#send:disabled{opacity:.65}#poem:disabled{color:#c9b9a6;opacity:.85}
