/* Generated glass sphere with subtle internal movement; no stand. */
:root{--desk-max-width:1600px}
.scene{width:min(100%,var(--desk-max-width))}
header,footer{max-width:var(--desk-max-width);margin-left:auto;margin-right:auto}
@media(min-width:651px){footer{justify-content:flex-end!important;padding-left:16px;padding-right:16px}}
header:has(.site-tagline){height:auto;min-height:112px;flex-direction:column;justify-content:center;gap:7px;padding-top:18px;padding-bottom:18px}
.site-tagline{margin:0;color:#b9ab91;font:11px/1.5 Inter,Arial,sans-serif;letter-spacing:1.5px;text-align:center}
.intro-divider{border:0;border-top:1px solid #c8aa6d45;width:min(620px,90%);margin:18px auto 0}
footer{justify-content:center;padding-top:12px;padding-bottom:16px}
header>.profile-trigger{position:absolute;left:max(12px,env(safe-area-inset-left));right:auto;top:14px;bottom:auto;transform:none;margin:0;width:74px;height:74px;padding:0;border:0;background:none;border-radius:50%;z-index:5;line-height:1;min-height:44px;min-width:44px}
.orb-glass{display:block;position:relative;width:100%;height:100%;border-radius:50%;isolation:isolate;pointer-events:none}.orb-glass img{display:block;width:100%;height:100%;object-fit:contain}.orb-glass .orb-mist{position:absolute;inset:17%;border-radius:50%;background:conic-gradient(from 30deg,transparent,#e2daca24,transparent 32%,#e8e2cf18,transparent 74%);filter:blur(3px);mix-blend-mode:screen}.orb-glass .orb-facets{position:absolute;inset:5%;border-radius:50%;background:linear-gradient(32deg,transparent 46%,#fff8dc25 47%,transparent 49%),linear-gradient(130deg,transparent 38%,#d5e5e823 39%,transparent 42%);pointer-events:none}
.profile-trigger:focus-visible{outline:2px solid #f3d48f;outline-offset:5px}
.profile-trigger span{margin:0}
.profile-trigger:hover{filter:drop-shadow(0 0 7px #b9d8df45)}
.orb-mist{transform-origin:center;animation:orb-swirl 14s linear infinite}
.orb-facets{opacity:0;transition:opacity .45s ease}
.crystallized .orb-mist{animation:none;opacity:.65}
.crystallized .orb-facets{opacity:1}
body:has(dialog[open]) .profile-trigger{visibility:hidden}
body:has(dialog[open]) .profile-trigger .orb-mist{animation-play-state:paused}
.profile-dialog{width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:24px clamp(22px,4vw,40px) 30px;overflow-y:auto;overscroll-behavior:contain;background:radial-gradient(ellipse at 35% 0,#fff6dd,#e5d5b3);border:1px solid #a98c57;border-radius:14px;color:#443323;box-shadow:0 30px 100px #000a}
.profile-dialog::backdrop{background:#15130fd9;backdrop-filter:blur(5px)}
.profile-dialog .close{min-width:44px;min-height:44px;top:8px;right:8px}
.profile-orb{width:96px;height:96px;margin:0 auto 8px;filter:drop-shadow(0 8px 10px #48342330)}
.profile-dialog .eyebrow{text-align:center;font-size:9px;margin:5px 0 12px}
.profile-dialog h2{text-align:center;font:500 36px/1.05 'Cormorant Garamond',Georgia,serif;margin:0 0 12px}
.profile-dialog .profile-intro{font:15px/1.5 Georgia,serif;text-align:center;margin:0 0 14px}
.profile-dialog .profile-local-note{font:11px/1.6 Inter,Arial,sans-serif;color:#6a573c;padding:10px 12px;background:#fffae84d;border-left:2px solid #a58b5a;margin:0 0 18px}
.profile-dialog label{display:block;margin:14px 0;color:#57412b;font:12px/1.5 Inter,Arial,sans-serif}
.profile-dialog input,.profile-dialog textarea,.profile-dialog select{display:block;width:100%;min-width:0;min-height:44px;margin-top:6px;padding:10px;border:1px solid #b49b71;border-radius:4px;background:#fff8e9;color:#3f3022;font:16px/1.4 Georgia,serif}
.profile-dialog textarea{height:94px;resize:vertical}
.profile-dialog :is(input,textarea,select):focus-visible{outline:2px solid #8c672f;outline-offset:2px}
.profile-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.profile-preview{display:flex;align-items:center;gap:14px;padding:16px;margin:8px 0;border:1px solid var(--profile-accent,#b67c38);border-left:5px solid var(--profile-accent,#b67c38);border-radius:6px;background:#fff8e455;overflow-wrap:anywhere}
.profile-emblem{font:36px Georgia,serif;color:var(--profile-accent,#b67c38);flex:0 0 36px;text-align:center}
.profile-preview strong{font:500 24px 'Cormorant Garamond',Georgia,serif}
.profile-dialog .profile-preview p{font:13px/1.5 Georgia,serif;margin:6px 0 0;white-space:pre-wrap}
.profile-dialog .profile-status{font:12px/1.5 Inter,Arial,sans-serif;min-height:18px;margin:10px 0;color:#69512c}
.profile-save{width:100%;min-height:46px;padding:12px;background:#4b3823;color:#f5e5c5;border:1px solid #84653c;border-radius:4px;font-size:12px}
.profile-account{margin-top:22px;padding-top:18px;border-top:1px solid #b9a37b}
.profile-account a{display:inline-flex;align-items:center;min-height:44px;color:#6d4d21;font-size:13px;text-underline-offset:4px}
.profile-dialog .profile-account p{font:11px/1.6 Inter,Arial,sans-serif;color:#725f45;margin:5px 0 0}
@keyframes orb-swirl{to{transform:rotate(360deg)}}
@media(max-width:650px){
 header:has(.profile-trigger){padding:18px 48px;min-height:100px;justify-content:center}
 header:has(.profile-trigger) .wordmark{font-size:clamp(32px,10.5vw,60px);letter-spacing:-.8px;max-width:100%;white-space:nowrap}
 footer{justify-content:flex-end;padding-right:max(16px,env(safe-area-inset-right));padding-left:16px}
 .site-tagline{font-size:9px;letter-spacing:.6px;white-space:nowrap}
 header>.profile-trigger{width:44px;height:44px;top:17px;left:calc(env(safe-area-inset-left,0px) + 8px)}
 .profile-dialog{max-height:calc(100dvh - 24px);padding-top:22px}
 .profile-orb{width:80px;height:80px}
 .profile-dialog h2{font-size:32px}
 .profile-choices{gap:10px}
}
@media(prefers-reduced-motion:reduce){.orb-mist{animation:none}.orb-facets{transition:none}}

/* Reparent the one profile trigger into the active scene's native modal layer. */
dialog>.profile-trigger{position:fixed;left:max(12px,calc((100vw - var(--desk-max-width))/2 + 12px));top:max(10px,env(safe-area-inset-top));width:74px;height:74px;min-width:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:50%;background:none;transform:none;z-index:100;line-height:1}
body:has(dialog[open]) .profile-trigger{visibility:visible}
body:has(.profile-dialog[open]) .profile-trigger{visibility:hidden}
.my-chapter{min-height:44px;padding:10px 14px;background:transparent;color:#4b3823;border:1px solid #84653c;border-radius:4px}
.profile-dialog .chapter-state{font:13px/1.6 Georgia,serif;margin:12px 0}
#art-studio .studio-bar{padding-left:84px}
@media(max-width:700px){
 dialog>.profile-trigger{width:44px;height:44px;left:calc(env(safe-area-inset-left,0px) + 8px);top:max(8px,env(safe-area-inset-top))}
 #art-studio{padding-top:16px}
 #art-studio .studio-bar{padding-left:0}
 #art-studio .studio-paper{height:calc(100% - 155px)}
}
/* Mobile activities stay uncluttered; the orb remains available on the desk. */
body:has(.desk-sound-control){display:flex;flex-direction:column;min-height:100dvh}
body:has(.desk-sound-control)>:is(header,main){width:100%;flex-shrink:0}
.desk-sound-control{display:flex;flex-direction:column;align-items:center;gap:8px;padding:22px 16px max(22px,env(safe-area-inset-bottom));margin:auto auto 0;width:100%;max-width:var(--desk-max-width)}
body:has(dialog[open]) .desk-sound-control{visibility:hidden}
.sound-toggle,.narration-dialog .sound-toggle{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:48px;max-width:100%;padding:8px 18px;border:1px solid #b99a5a;border-radius:7px;background:linear-gradient(105deg,#382819,#21190f 55%,#3d2d1b);box-shadow:inset 0 0 0 2px #18120b,inset 0 0 0 3px #8d6b353f,0 3px 8px #0006;color:#e1ca94;font:13px Georgia,serif;text-shadow:0 1px #000;cursor:pointer}
.sound-toggle:focus-visible{outline:2px solid #f5d18c;outline-offset:4px}
.sound-track{position:relative;display:block;width:46px;height:24px;flex-shrink:0;border:1px solid #806637;border-radius:15px;background:#120f0a;box-shadow:inset 0 2px 4px #000}
.sound-track>span{position:absolute;width:18px;height:18px;top:2px;left:3px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ead7a6,#ad8546 65%,#5b4020);box-shadow:0 1px 3px #0009;transition:transform .2s}
.sound-toggle[aria-pressed="true"] .sound-track{background:#594623}
.sound-toggle[aria-pressed="true"] .sound-track>span{transform:translateX(20px)}
.sound-state{min-width:22px;text-align:left}
/* A small visible home toggle inside a full-height transparent touch target. */
.desk-sound-control .sound-toggle{position:relative;isolation:isolate;gap:6px;min-height:44px;height:44px;padding:0 8px;border:0;border-radius:0;background:none;box-shadow:none;font-size:10px}
.desk-sound-control .sound-toggle::before{content:'';position:absolute;z-index:-1;inset:10px 0;border:1px solid #9a7b43;border-radius:4px;background:linear-gradient(105deg,#382819,#21190f 55%,#3d2d1b);box-shadow:inset 0 0 0 1px #18120b,0 1px 3px #0005;pointer-events:none}
.desk-sound-control .sound-track{width:28px;height:14px}
.desk-sound-control .sound-track>span{width:10px;height:10px;top:1px;left:2px}
.desk-sound-control .sound-toggle[aria-pressed="true"] .sound-track>span{transform:translateX(12px)}
.desk-sound-control .sound-state{min-width:16px}
.narration-ambient{margin:20px 0;padding-top:16px;border-top:1px solid #9a7d4b55}
.narration-ambient h3{font:500 23px Georgia,serif;margin:0 0 12px}
@media(prefers-reduced-motion:reduce){.sound-track>span{transition:none}}
@media(min-width:701px) and (hover:hover) and (pointer:fine){
 .profile-trigger .orb-glass{transition:scale .45s ease;scale:1}
 .profile-trigger:hover .orb-glass{scale:1.22;animation:orb-hover-turn 24s linear infinite}
 @keyframes orb-hover-turn{to{rotate:360deg}}
}
@media(prefers-reduced-motion:reduce){.profile-trigger:hover .orb-glass{animation:none;scale:1;transition:none}}
@media(max-width:700px), (max-width:950px) and (pointer:coarse){
 :is(#living,#writing,#art-studio,#guide)>.profile-trigger{display:none}
 #art-studio .studio-bar{padding-left:0}
 .reader-v2 .reader-toolbar{padding-left:0}
 #living:has(.reader-v2:not([hidden]))>.profile-trigger{display:block}
 .reader-v2 .reader-toolbar{height:94px;min-height:94px;display:grid;grid-template-columns:56px 1fr 44px;grid-template-rows:44px 44px;gap:6px}
 .reader-v2 .reader-toolbar>label{grid-column:2;grid-row:1}
 .reader-v2 .narration-toggle{grid-column:3;grid-row:1}
 .reader-v2 .reader-tools{grid-column:1/-1;grid-row:2;justify-content:flex-end}
}
@media(min-width:390px) and (max-width:700px), (min-width:390px) and (max-width:950px) and (pointer:coarse){
 .reader-v2 .reader-toolbar{display:flex;height:44px;min-height:44px;padding-left:56px}
}
