@charset "UTF-8";
:root { --paper:#fcf8f1; --ink:#47534a; --muted:#7d8278; --green:#668574; --line:#e5dfd4; --gold:#b5a079; --serif:"Songti SC","STSong","Noto Serif CJK SC",serif; font-family:"PingFang SC","Microsoft YaHei",sans-serif; color:var(--ink); background:#f5f0e9; font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; background:radial-gradient(ellipse at 5% 0%,#f7e8e580,transparent 55%),radial-gradient(ellipse at 100% 80%,#e4ede480,transparent 60%); }
button,input { font:inherit; }
button { cursor:pointer; color:inherit; border:0; background:none; transition:background .16s,border-color .16s,transform .16s; }
button:disabled { opacity:.45; cursor:not-allowed; }
button:focus-visible,a:focus-visible,input:focus-visible { outline:2px solid #a68650; outline-offset:4px; }
a { color:inherit; text-decoration:none; }
.game { max-width:1600px; margin:auto; padding:0 30px; }
.topbar { height:94px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #d1cdbf; gap:20px; }
.brand { display:flex; align-items:center; gap:12px; font-family:var(--serif); font-size:25px; font-weight:600; letter-spacing:3px; }
.brand-mark { display:grid; place-items:center; width:37px; height:45px; font-size:24px; font-weight:400; border:1px solid #aa765d; color:#9c6754; border-radius:4px 4px 13px 4px; }
.brand small { display:block; margin-top:3px; font-size:9px; letter-spacing:4px; color:#878978; font-family:sans-serif; font-weight:400; }
.chapter-label { font-family:var(--serif); font-size:15px; letter-spacing:2px; }
.chapter-label span { padding-right:17px; color:#898a77; font-size:11px; }
.header-tools { display:flex; align-items:center; gap:18px; font-size:12px; }
.header-tools>button { padding:10px 0; }
.header-tools>button:hover { color:#9c6754; }
.library-button { border-bottom:1px solid var(--gold); }
.count { display:inline-grid; place-items:center; width:17px; height:17px; margin-left:5px; background:#dbddce; border-radius:50%; font-size:10px; }
#save-status { color:#848775; font-size:10px; min-width:110px; }
.game-layout { display:grid; grid-template-columns:minmax(0,1fr) 382px; margin-top:25px; min-height:690px; height:calc(100vh - 170px); max-height:900px; border:1px solid #d4ccba; border-radius:16px; overflow:hidden; box-shadow:0 12px 40px #64593b12; }
.stage { min-width:0; position:relative; overflow:hidden; background:#f3eee3; isolation:isolate; }
.scene-svg { position:absolute; inset:0; width:100%; height:100%; opacity:.7; }
.stage::before { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:radial-gradient(ellipse at 50% 35%,#fff8ec4d,transparent 65%); }
.stage.dock .scene-svg { opacity:.88; }
.scene-title { position:absolute; top:24px; left:25px; display:flex; align-items:flex-start; gap:11px; z-index:2; background:#fff9eddd; padding:11px 15px; border:1px solid #e9dfc98c; border-radius:10px; backdrop-filter:blur(4px); }
.scene-title h2 { font-family:var(--serif); font-size:18px; font-weight:500; margin:0; letter-spacing:4px; }
.scene-title p { font-size:11px; margin:7px 0 0; color:#666d58; letter-spacing:1px; max-width:310px; }
.location-dot { width:5px; height:5px; border:1px solid #656f58; border-radius:50%; margin-top:10px; box-shadow:0 0 0 4px #75816518; }
.figure { position:absolute; bottom:66px; height:83%; width:68%; left:16%; pointer-events:none; z-index:1; filter:drop-shadow(0 9px 9px #5b55401a); }
.character-svg { height:100%; width:100%; overflow:visible; }
.figure .character-svg { opacity:1; }
.figure-caption { position:absolute; bottom:110px; left:32px; z-index:2; max-width:130px; }
.figure-caption>span { font-family:var(--serif); font-size:17px; letter-spacing:3px; }
.figure-caption small { display:block; font-size:9px; margin-top:7px; line-height:1.8; color:#5b604d; }
.pose-tools { display:flex; position:absolute; z-index:2; bottom:105px; right:25px; gap:2px; padding:5px; border-radius:30px; background:#f8f0debf; backdrop-filter:blur(6px); border:1px solid #f7f1e5aa; }
.pose-tools button { border-radius:20px; font-size:11px; padding:9px 13px; }
.pose-tools .active { background:var(--green); color:#fff9eb; }
.scene-nav { position:absolute; left:26px; right:26px; bottom:22px; display:flex; justify-content:center; background:#f1e9d4de; backdrop-filter:blur(8px); border:1px solid #c9bea399; border-radius:10px; z-index:2; }
.scene-nav button { flex:1; padding:14px 0; font-family:var(--serif); font-size:15px; letter-spacing:3px; }
.scene-nav button+button { border-left:1px solid #c9bea366; }
.scene-nav button span { font:9px sans-serif; color:#94947c; letter-spacing:0; margin-right:12px; }
.scene-nav button.active { background:#7f8c7218; color:#455e46; }
.scene-nav button.active:after { content:""; display:inline-block; width:4px; height:4px; border-radius:50%; background:#687e5c; margin-left:10px; vertical-align:middle; }
.scene-bottom-note { position:absolute; z-index:2; left:30px; right:30px; bottom:23px; display:flex; justify-content:space-between; font-size:10px; color:#635e4b; letter-spacing:3px; }
.stage-story { position:absolute; z-index:2; bottom:75px; left:50%; transform:translateX(-50%); width:80%; text-align:center; font-family:var(--serif); font-size:18px; letter-spacing:2px; color:#46533f; background:#e8ddc7cf; border:1px solid #ede7d677; padding:18px; border-radius:4px; }
.control-panel { background:linear-gradient(145deg,#fcf8f1,#f9f4ec); display:flex; flex-direction:column; min-height:0; overflow:auto; padding:30px 25px 22px; }
.eyebrow { font-size:10px; letter-spacing:3px; color:#92917b; }
.panel-heading h2 { font-family:var(--serif); font-size:27px; font-weight:500; margin:11px 0 13px; letter-spacing:1px; }
.panel-heading>p { font-size:12px; color:#92917e; margin:0 0 16px; line-height:1.8; }
.panel-footer { margin-top:auto; padding-top:24px; display:grid; gap:12px; }
.primary { display:flex; align-items:center; justify-content:center; gap:25px; min-height:45px; width:100%; background:var(--green); color:#f6f1e2; border:1px solid var(--green); border-radius:8px; font-size:13px; letter-spacing:1px; padding:12px 17px; }
.primary:not(:disabled):hover { background:#557564; transform:translateY(-1px); }
.secondary { border:1px solid #d2cdbb; border-radius:8px; padding:12px 18px; min-height:43px; font-size:12px; }
.secondary:hover { background:#e6e2d4; }
.hint { font-size:11px; color:#747d6c; line-height:1.9; margin:11px 0; }
.field-title { color:#7f826f; font-size:11px; letter-spacing:1px; margin:21px 0 11px; }
.field-title:first-child { margin-top:9px; }
.editor-controls { flex:1; min-height:0; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#c0c7b0 transparent; padding:3px 2px 13px 0; }
.editor-tabs { display:flex; border-bottom:1px solid var(--line); margin:13px 0 10px; }
.editor-tabs button { flex:1; font-size:12px; padding:13px 0; border-bottom:2px solid transparent; }
.editor-tabs button.active { color:#50694f; border-bottom-color:#637957; font-weight:600; }
.choice-row { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.choice-row.two { grid-template-columns:repeat(2,1fr); }
.choice-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:7px; }
.choice { border:1px solid #dcd7c7; border-radius:7px; padding:10px 5px; font-size:12px; background:#fffdf53d; text-align:center; min-height:39px; }
.choice:hover { background:#e5e7d8; }
.choice.selected { background:#e7eee6; border-color:#93ab94; color:#4b664e; }
.choice small { display:block; margin-top:5px; font-size:9px; color:#8b907b; }
.compact { margin-top:7px; }
.need-list { display:flex; flex-wrap:wrap; gap:5px; margin:7px 0 0; }
.need-pill { font-size:9px; border:1px solid #c9d2bd; background:#e5eadb; color:#6b7d5f; padding:5px 8px; border-radius:2px; }
.need-pill.soft { background:none; border-color:#d7d2c0; color:#99907a; }
.palette-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:7px; }
.palette { padding:0; font-size:9px; color:#8d8977; text-align:center; }
.swatch { display:block; height:35px; margin:3px 2px 9px; border-radius:50% 50% 5px 5px; background:linear-gradient(135deg,var(--swatch-top) 55%,var(--swatch-bottom) 55%); border:2px solid #f7f1e4; box-shadow:0 0 0 1px transparent; }
.palette.selected .swatch { box-shadow:0 0 0 1.5px #7f926e; }
.palette.selected { color:#4f694d; }
.outer-toggle { display:flex; align-items:center; justify-content:space-between; width:100%; border:1px solid #ddd7c5; padding:10px 12px; border-radius:3px; font-size:11px; }
.toggle { width:27px; height:15px; border-radius:20px; background:#d5d6c8; padding:2px; }
.toggle:after { content:""; display:block; height:11px; width:11px; border-radius:50%; background:#fff9eb; transition:transform .2s; }
.toggle.on { background:#859773; }
.toggle.on:after { transform:translateX(12px); }
.editor-footer { border-top:1px solid var(--line); padding-top:14px; flex:none; margin-top:auto; }
.editor-footer>small { display:block; text-align:center; color:#91927d; font-size:9px; margin-top:10px; }
.history-actions { display:flex; justify-content:space-between; margin-bottom:14px; font-size:10px; color:#8d8d79; }
.history-actions button { padding:3px 0; }
.pin-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.pin-card { border:1px solid #ddd7c5; border-radius:8px; background:#fffdf85e; padding:5px; min-height:114px; font-size:11px; }
.pin-card.selected { border-color:#93ab94; background:#e7eee6; box-shadow:inset 0 0 0 1px #93ab9440; }
.pin-card:hover { background:#e8e5d7; }
.pin-card svg { display:block; height:57px; width:100%; }
.pin-card small { display:block; font-size:9px; color:#7b8172; margin-top:5px; }
.slider-label { font-size:10px; color:#858a74; display:flex; justify-content:space-between; margin:20px 0 10px; }
.slider-label output { font:10px monospace; }
.range { width:100%; height:4px; accent-color:#778b67; cursor:pointer; }
.paper-note { margin-top:30px; border-left:2px solid #c4b18b; padding:0 15px; }
.paper-note>span { font-size:10px; color:#a59779; }
.paper-note>p { font-family:var(--serif); font-size:14px; line-height:2; color:#7d7a64; }
.draggable-pattern { pointer-events:all; cursor:grab; touch-action:none; }
.draggable-pattern:active { cursor:grabbing; }
.name-input { width:100%; border:1px solid #d9d2be; background:#fffaf039; color:#55644c; padding:11px 12px; border-radius:3px; font-size:13px; }
.skin-dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; }
.skin-dot.light { background:#eed0b4; }.skin-dot.warm { background:#dbb18d; }.skin-dot.deep { background:#ad7c5d; }
.dialogue-card { margin:13px 0 18px; padding:22px 18px 18px; border:1px solid #e0d9c3; background:#ece6d8; border-radius:3px; }
.speaker { display:block; font-size:10px; color:#9b8f74; letter-spacing:1px; }
.dialogue-card p { font-family:var(--serif); font-size:17px; line-height:1.95; margin:13px 0 0; }
.question-list { display:grid; gap:9px; }
.question { display:flex; justify-content:space-between; align-items:center; font-size:11px; border-bottom:1px solid var(--line); padding:12px 0; text-align:left; gap:8px; }
.question:hover { color:#577451; }
.question small { font-size:9px; color:#92917b; flex-shrink:0; }
.collected-needs { margin-top:20px; font-size:11px; line-height:1.8; color:#7c846d; }
.letter { font-family:var(--serif); font-size:17px; line-height:2.1; color:#787761; padding-top:7px; }
.letter p { margin:14px 0 24px; }
.letter>span { display:block; text-align:right; font-size:14px; margin-top:28px; color:#948568; }
.ending-note { display:flex; align-items:center; gap:20px; border-bottom:1px solid var(--line); padding:3px 0 23px; }
.ending-note p { font-size:11px; line-height:1.9; color:#868975; }
.ending-note b { font-weight:400; font-size:10px; }
.stamp { flex-shrink:0; display:grid; place-items:center; width:45px; height:51px; border:1px solid #af755b; border-radius:4px; color:#ad755b; font-family:var(--serif); font-size:16px; letter-spacing:2px; }
.story-hook { font-family:var(--serif); font-size:16px; line-height:2.1; color:#81826a; }
.story-hook em { font-style:normal; color:#4b644b; display:block; margin-top:12px; letter-spacing:5px; font-size:20px; }
.bottom-bar { display:flex; justify-content:space-between; padding:19px 0; font-size:9px; color:#93927e; letter-spacing:1px; }
.welcome-copy { padding:20px 5px 0; display:flex; flex-direction:column; height:100%; }
.welcome-copy h1 { font-family:var(--serif); margin:25px 0 24px; font-size:65px; line-height:1.2; font-weight:500; letter-spacing:12px; }
.welcome-copy h1>span { display:block; font-size:23px; line-height:1.8; letter-spacing:4px; color:#68755d; margin-top:31px; }
.welcome-copy>p { font-size:12px; line-height:2.2; color:#92907d; }
.large { margin-top:27px; min-height:54px; justify-content:space-between; padding:16px 22px; }
.chapter-seal { display:flex; gap:14px; align-items:center; padding-top:30px; margin-top:auto; font-family:var(--serif); font-size:12px; color:#999079; letter-spacing:2px; }
.chapter-seal>span { color:#a67358; font-size:24px; width:38px; height:44px; border:1px solid #be967e; border-radius:4px; display:grid; place-items:center; }
.chapter-seal small { display:block; font-size:15px; margin-top:8px; color:#6b755e; }
.welcome-copy .small-print { font-size:9px; line-height:1.9; margin:22px 0 0; color:#a19a86; }
.welcome-verse { position:absolute; z-index:2; right:35px; top:175px; writing-mode:vertical-rl; font-family:var(--serif); font-size:20px; letter-spacing:8px; line-height:2.3; color:#6d745b; }
.welcome .figure { height:81%; left:13%; bottom:41px; }
.modal-backdrop { position:fixed; inset:0; z-index:20; display:grid; place-items:center; background:#2d3a31a3; backdrop-filter:blur(6px); padding:25px; }
.modal { background:var(--paper); border:1px solid #cfc3a6; border-radius:16px; padding:29px 32px; width:min(620px,100%); max-height:90vh; overflow:auto; box-shadow:0 30px 100px #202b3060; }
.modal-heading { display:flex; justify-content:space-between; align-items:flex-start; }
.modal-heading h2 { font-family:var(--serif); font-size:26px; margin:10px 0 18px; font-weight:500; }
.close-button { font-size:25px; color:#8b8a75; padding:0 5px; }
.fitting-preview { display:grid; grid-template-columns:1fr 1fr; align-items:center; background:#efeee4; border:1px solid #d9d5bd; border-radius:4px; padding:15px; }
.fitting-preview>svg { height:300px; }
.fitting-preview p { font-family:var(--serif); font-size:19px; line-height:1.9; }
.check-list { margin-top:18px; }
.check { display:flex; align-items:center; gap:10px; padding:12px 0; font-size:11px; color:#9a7d5b; border-bottom:1px solid #cfcdb9; }
.check.pass { color:#667b58; }
.check>span { font-size:16px; }
.check small { margin-left:auto; font-size:9px; }
.fit-feedback { padding:7px 18px; margin-top:16px; background:#ecdfca; border-left:2px solid #b69a70; color:#938062; }
.fit-feedback p { font-size:12px; line-height:1.9; }
.fit-feedback.success { background:#e4e9d8; border-color:#9dab82; color:#788367; }
.modal-actions { display:flex; gap:10px; margin-top:20px; align-items:center; }
.modal-actions>.primary { flex:1; width:auto; }
.modal-actions.split { justify-content:space-between; }
.modal-actions.split>div { display:flex; gap:8px; }
.modal-actions.split>.primary { flex:0 0 auto; }
.library-modal { width:min(760px,100%); }
.library-intro { font-size:13px; line-height:1.9; color:#7d836e; margin-bottom:22px; }
.library-intro small { display:block; font-size:10px; color:#97917b; margin-top:5px; }
.entries { display:grid; gap:15px; }
.entry { display:grid; grid-template-columns:130px 1fr; border:1px solid #dcd6c2; background:#f6f0e2; border-radius:4px; overflow:hidden; }
.entry-art { height:210px; background:#e3e4d4; padding:7px; }
.entry-text { padding:23px 19px; }
.entry-text h3 { font-family:var(--serif); font-size:21px; font-weight:500; margin:10px 0; }
.entry-text p { font-size:11px; color:#858670; line-height:1.9; margin:10px 0; }
.entry-text>small { font-size:9px; color:#98937d; }
.text-button { display:block; padding:14px 0 0; font-size:10px; color:#657b58; }
.empty-library { text-align:center; padding:35px 0 45px; color:#94967d; }
.empty-library>span { font-family:var(--serif); font-size:40px; color:#b3a181; }
.empty-library p { font-size:12px; line-height:2; }
#toast { position:fixed; z-index:50; bottom:29px; left:50%; transform:translate(-50%,20px); color:#fff5dc; background:#53664fec; backdrop-filter:blur(5px); padding:15px 25px; border:1px solid #a6b18b55; border-radius:4px; font-size:12px; line-height:1.8; max-width:min(600px,90vw); box-shadow:0 10px 35px #30352630; pointer-events:none; opacity:0; transition:opacity .2s,transform .2s; }
#toast.visible { opacity:1; transform:translate(-50%,0); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* A calm dressing table: illustration first, tools within easy reach. */
.look-heading { display:flex; align-items:center; justify-content:space-between; margin:10px 0; font-size:11px; color:#6a7f70; }
.look-heading small { font-size:9px; color:#8b8f80; }
.look-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding-bottom:8px; }
.look-card { border:1px solid #e2dbce; background:#faf5eb; border-radius:9px; padding:7px 3px 10px; font-size:11px; overflow:hidden; }
.look-card:hover { border-color:#b6c5af; background:#f0f3e9; }
.look-card.selected { border-color:#8fab98; background:#e9f0e7; }
.look-mini { display:block; height:75px; background:radial-gradient(ellipse,#e8dfd14d,transparent 70%); }
.look-mini svg { height:100%; width:100%; }
.look-card>small { display:block; margin-top:4px; color:#828676; font-size:9px; }
.detail-button { position:absolute; z-index:2; right:27px; top:28px; padding:10px 15px; background:#fff8eddd; border:1px solid #e9dfce; border-radius:25px; color:#637765; font-size:12px; box-shadow:0 3px 15px #7d765012; }
.detail-button:hover { background:#fffdf6; }
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.detail-grid figure { margin:0; }
.detail-art { height:270px; border:1px solid #e5dfd2; border-radius:12px; overflow:hidden; background:radial-gradient(ellipse at 50% 40%,#fbf6eb,#e3e7dd); }
.detail-art.textile { background:radial-gradient(ellipse at 50% 30%,#faf1e9,#ece2d7); }
.detail-art .character-svg { overflow:hidden; }
.detail-grid figcaption { padding:15px 2px 5px; font-family:var(--serif); font-size:16px; color:#687865; }
.detail-grid figcaption small { display:block; margin-top:9px; font:10px/1.9 sans-serif; color:#858578; }
@media (max-width:900px) { .detail-button { right:18px; top:110px; } .detail-art { height:215px; } .look-mini { height:85px; } }
@media (min-width:1500px) { .control-panel{padding:35px 32px 26px}.game-layout{grid-template-columns:minmax(0,1fr) 410px} }
@media (max-height:800px) and (min-width:901px) { .game-layout{min-height:610px;height:calc(100vh - 155px)}.topbar{height:80px}.welcome-copy{padding-top:5px}.welcome-copy h1{font-size:55px;margin:18px 0}.welcome-copy h1>span{margin-top:20px}.welcome-copy .large{margin-top:17px}.chapter-seal{padding-top:20px}.control-panel{padding-top:23px} }
@media (max-width:1100px) { .game{padding:0 16px}.game-layout{grid-template-columns:minmax(0,1fr) 350px}.header-tools{gap:12px}#save-status{display:none}.figure{width:84%;left:8%}.scene-title{left:22px}.figure-caption{left:22px}.figure-caption small{max-width:90px}.welcome-verse{right:22px;font-size:16px}.control-panel{padding:25px 20px 20px}.welcome-copy h1{font-size:55px} }
@media (max-width:900px) { .game{padding:0 12px}.topbar{height:77px;gap:10px}.brand{font-size:21px;gap:8px;letter-spacing:1px}.brand-mark{width:31px;height:38px;font-size:21px}.chapter-label{display:none}.header-tools{gap:15px}.header-tools>button{font-size:11px}.game-layout{height:auto;max-height:none;min-height:0;grid-template-columns:1fr;margin-top:15px}.stage{height:530px}.figure{height:88%;width:65%;left:17%;bottom:50px}.control-panel{padding:27px 25px}.editor-controls{min-height:350px}.welcome .stage{height:440px}.welcome .figure{height:88%;width:70%;left:15%;bottom:25px}.welcome-copy{padding:0}.welcome-copy h1{font-size:50px;margin:20px 0}.welcome-copy h1>span{font-size:20px;margin-top:18px}.welcome-copy>p{margin-top:0}.welcome-copy .large{margin-top:15px}.chapter-seal{margin-top:20px;padding-top:10px}.welcome-copy .small-print{margin-top:20px}.scene-title{top:24px;left:24px}.welcome-verse{top:100px;right:27px}.panel-footer{margin-top:20px}.bottom-bar{font-size:8px;padding:15px 0}.bottom-bar span:nth-child(2){display:none}.palette-grid{gap:10px}.swatch{height:40px;width:40px;margin:3px auto 9px}.pin-card svg{height:70px}.figure-caption{bottom:112px}.modal-backdrop{padding:15px}.modal{padding:24px 21px}.modal-heading h2{font-size:24px}.fitting-preview{padding:5px}.fitting-preview>svg{height:240px}.fitting-preview p{font-size:16px}.modal-actions{flex-wrap:wrap}.modal-actions>.secondary{flex:1}.modal-actions>.primary{flex:1 1 100%}.modal-actions.split>.primary{flex:1 1 100%}.modal-actions.split>div{width:100%}.entry{grid-template-columns:100px 1fr}.entry-art{height:200px}.entry-text{padding:17px 13px}.entry-text h3{font-size:18px} }
@media (max-width:900px) { .editor-controls { overflow:visible; flex:none; } .figure,.welcome .figure { width:110%; left:-5%; height:81%; bottom:66px; } .welcome .figure { height:79%; bottom:30px; } .scene-title { top:18px; left:18px; padding:10px 12px; } .scene-title h2 { font-size:16px; } .scene-title p { font-size:10px; } .pose-tools { top:230px; bottom:auto; right:18px; flex-direction:column; border-radius:26px; } .pose-tools button { min-height:44px; padding:9px 12px; } .choice { min-height:44px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after{animation:none!important;transition:none!important} }

/* Spring letters: discovery and creative rewards. */
.story-start { margin:12px 0; width:100%; }
.stage-actions { position:absolute; top:27px; right:24px; z-index:3; display:flex; gap:6px; }
.stage-actions button { padding:11px 12px; border:1px solid #dfd6c5; border-radius:24px; background:#fff8eded; color:#5d7767; font-size:11px; }
.market-spots { position:absolute; top:125px; left:20px; bottom:170px; z-index:3; display:flex; flex-direction:column; justify-content:space-evenly; gap:10px; }
.market-spot { display:grid; grid-template-columns:34px 1fr; gap:2px 8px; text-align:left; padding:12px; background:#faf5e8ee; border:1px solid #b5bea4; border-radius:12px; box-shadow:0 5px 15px #3f56361a; }
.market-spot>span { grid-row:span 2; font:25px var(--serif); color:#6b876e; align-self:center; }
.market-spot b { font-size:11px; font-weight:500; }.market-spot small { font-size:9px; color:#92937c; }
.commission-list { display:grid; gap:16px; }.commission-card { padding:20px; background:#f2eee2; border:1px solid #ddd7c4; border-radius:12px; }
.journey { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:10px 0 3px; font-size:10px; color:#929080; }
.journey>span { padding:6px 9px; background:#edeadf; border-radius:20px; }.journey b { margin-right:5px; font-weight:500; }.journey .current { background:#e3ebdf; color:#546e58; }.journey .done { color:#5d7c60; }.journey>small { margin-left:auto; font-size:9px; }
.commission-card h3 { font:23px var(--serif); color:#536e5d; margin:12px 0; }.commission-card p { font-size:12px; line-height:1.9; color:#737b67; }
.commission-card small { display:block; color:#8d7a5d; margin-bottom:17px; }.commission-card button { width:100%; }
.reward-note { padding:16px; background:#e8eddf; border:1px solid #c4d2b9; color:#607751; border-radius:9px; font-size:13px; line-height:1.8; margin:15px 0; }
.discovery-note { text-align:center; padding:20px 5px; }.discovery-note p { text-align:left; font:18px/2 var(--serif); }.discovery-glyph { font:50px var(--serif); color:#8c9b78; }
.stitch-cloth { height:230px; position:relative; background:#ede5d1; border-radius:14px; border:2px dashed #c9baa0; margin:25px 0; }
.stitch-cloth>svg { position:absolute; width:100%;height:100%; }.needle { position:absolute; width:44px;height:44px; transform:translate(-50%,-50%); border-radius:50%; background:#fefbef; border:2px solid #79996a; color:#597347; font-size:18px; }
.needle:disabled { opacity:.5; }.needle.sewn { background:#718b64; color:#fff; opacity:1; }.stitch-start { width:100%; margin:16px 0 0; }
.comparison-art { height:380px; border-radius:12px; background:radial-gradient(ellipse,#f8f4e9,#e1e8dc); }.comparison-art svg { width:100%;height:100%; }
.photo-modal { width:min(850px,100%); }.photo-layout { display:grid; grid-template-columns:1.1fr 1fr; gap:25px; }.photo-preview { background:#e5e7da; border:1px solid #d2d4c4; border-radius:10px; overflow:hidden; }.photo-preview>svg { width:100%;height:auto; display:block; }.photo-options { padding-top:10px; }.photo-options .choice-row { margin-bottom:25px; }
button:disabled { cursor:default; }.illustrated-character { overflow:visible; }
@media(max-width:1100px) and (min-width:901px) { .chapter-label{display:none} }
@media(max-width:900px) {
  .header-tools { gap:6px; }.header-tools>button { padding:8px 5px; }.header-tools>button[data-action="letter"] { display:none; }
  .stage-actions { top:99px; right:14px; gap:4px; }.stage-actions button { padding:10px 9px; font-size:10px; min-height:40px; }
  .market-spots { top:153px; left:12px; bottom:148px; max-width:126px; }.market-spot{padding:9px 6px; grid-template-columns:24px 1fr;gap:2px 5px;}.market-spot>span{font-size:20px}.market-spot b{font-size:10px;line-height:1.5}.market-spot small{font-size:8px}
  .figure-caption { max-width:85px; }.photo-layout{grid-template-columns:1fr}.photo-preview{max-width:290px;margin:auto}.comparison-art{height:280px}.photo-options .choice{flex:1}.stitch-cloth{height:200px}.stage-actions button:focus-visible,.needle:focus-visible{outline:3px solid #9bb689;outline-offset:3px}
}
@media(max-width:600px) {
  .topbar { height:auto; min-height:114px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 8px; padding:14px 0; }
  .brand { grid-column:1; grid-row:1; white-space:nowrap; min-width:0; }
  .header-tools { grid-column:2; grid-row:1; gap:4px; white-space:nowrap; }
  .header-tools>button { min-height:44px; padding:8px 4px; }
  .journey { grid-column:1 / -1; grid-row:2; padding:0; gap:6px; }
  .stage { height:600px; }
  .figure { height:72%; bottom:83px; }
  .welcome .stage { height:490px; }
  .welcome .figure { height:76%; bottom:25px; }
  .stage-actions { top:92px; right:12px; flex-direction:column; align-items:stretch; }
  .figure-caption { max-width:95px; bottom:110px; }
  .figure-caption [data-action="compare"] { font-size:10px; line-height:1.7; padding:5px 0; text-align:left; white-space:nowrap; }
  .palette-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
}

/* Cloth choices and the spring night-tour finale. */
.fabric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.fabric-grid .choice{min-height:64px}.fabric-grid small{line-height:1.7}.next-step{padding:10px 12px;background:#eef0e4;border-radius:8px;margin-top:10px}.next-step p{font-size:11px;line-height:1.8;margin:0}.next-step .text-button{font-size:11px;padding-top:8px}.festival-modal{width:min(1000px,100%)}.festival-intro{text-align:center;padding:10px 0 20px}.festival-intro h3{font:27px var(--serif);margin:13px 0}.festival-intro p{font-size:12px;line-height:1.8}.festival-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:22px;padding:18px;background:linear-gradient(150deg,#283e43,#455d54);border-radius:15px}.festival-gallery.theme-flowers{background:linear-gradient(150deg,#473d46,#6b575b)}.festival-gallery.theme-swallows{background:linear-gradient(150deg,#333c4d,#555f77)}.festival-gallery article{min-width:0;padding:14px;background:#fff9edee;border-radius:11px;text-align:center;position:relative}.festival-lantern{display:block;color:#bc9259;font-size:27px}.festival-outfit{height:300px}.festival-outfit svg{width:100%;height:100%}.festival-gallery h3{font:21px var(--serif);margin:8px}.festival-gallery p{font-size:11px;line-height:1.8;text-align:left}.festival-gallery small{font-size:10px;color:#7e816f}.festival-gallery .text-button{display:block;width:100%;margin-top:10px}.festival-progress p{padding:13px;background:#eef0e4;border-radius:8px;font-size:13px}.cloud-works>div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px;align-items:center}.cloud-works a{overflow-wrap:anywhere}.cloud-works p{font-size:12px}#cloud-message{font-size:12px;color:#986547;line-height:1.8}.shared-art{height:470px;background:#f0eee3;border-radius:15px}.shared-art svg{height:100%;width:100%}
@media(max-width:600px){.header-tools{grid-column:1/-1;grid-row:3;justify-content:space-between;flex-wrap:wrap;white-space:normal}.header-tools>button{padding:8px 5px}.topbar{gap:5px 8px}.festival-gallery{grid-template-columns:1fr;padding:12px}.festival-outfit{height:350px}.fabric-grid .choice{padding:8px 3px;font-size:11px}.fabric-grid small{font-size:9px}.cloud-works>div{align-items:flex-start}.shared-art{height:370px}}

.mobile-look-preview{display:none}@media(max-width:600px){.mobile-look-preview{display:flex;align-items:center;gap:15px;padding:10px 12px;background:#f1efdf;border:1px solid #dce0ce;border-radius:12px;margin:10px 0}.mobile-look-preview>div{height:110px;width:85px;flex-shrink:0}.mobile-look-preview svg{width:100%;height:100%}.mobile-look-preview>span{font-size:12px}.mobile-look-preview small{display:block;font-size:10px;line-height:1.8;margin:7px 0}.mobile-look-preview .text-button{font-size:11px;padding:5px 0}}

.photo-selection{font-size:12px;color:#63775d;margin:0 0 12px}@media(max-width:600px){.photo-layout{gap:10px}.photo-preview{max-width:170px}.photo-options{padding-top:0}.photo-options .field-title{margin:10px 0 6px}.photo-options .choice-row{margin-bottom:10px}.photo-options .modal-actions{margin-top:10px}.photo-options .choice{min-height:38px}.photo-selection{margin:0 0 8px;font-size:11px}}

.header-tools .header-start{background:var(--green);color:#fff8e8;border-radius:8px;padding:9px 12px}.header-tools .header-start:hover{background:#557564}#photo-result:empty{display:none}#photo-result{color:#557564;margin:8px 0 0}
/* V0.3: each sleeve, head and skirt moves independently. */
.figure .motion-head{transform-origin:300px 132px;animation:head-breathe 5s ease-in-out infinite}
.figure .motion-skirt{transform-origin:300px 255px;animation:skirt-sway 5s ease-in-out infinite}
.figure .motion-arm-left,.order-fitting .motion-arm-left{transform-origin:246px 178px;animation:arm-left 5s ease-in-out infinite}
.figure .motion-arm-right,.order-fitting .motion-arm-right{transform-origin:354px 178px;animation:arm-right 5s ease-in-out infinite}
.figure .motion-pin{transform-origin:0 0;animation:pin-sway 3.7s ease-in-out infinite}
.figure .motion-ribbon{transform-origin:313px 266px;animation:ribbon-sway 3.6s ease-in-out infinite}
.figure .pose-rowing .motion-skirt{animation:walking-skirt 1.8s ease-in-out infinite}
.figure .pose-rowing .motion-arm-left,.order-fitting .pose-rowing .motion-arm-left{animation:walking-left 1.8s ease-in-out infinite}
.figure .pose-rowing .motion-arm-right,.order-fitting .pose-rowing .motion-arm-right{animation:walking-right 1.8s ease-in-out infinite}
.figure .pose-stage .motion-arm-left,.order-fitting .pose-stage .motion-arm-left{animation:sleeve-lift-left 3.4s ease-in-out infinite}
.figure .pose-stage .motion-arm-right,.order-fitting .pose-stage .motion-arm-right{animation:sleeve-lift-right 3.4s ease-in-out infinite}
.figure .pose-stage .motion-skirt{animation:skirt-sway 3.4s ease-in-out infinite}
@keyframes head-breathe{0%,100%{transform:translateY(0) rotate(-.25deg)}50%{transform:translateY(-1.4px) rotate(.25deg)}}
@keyframes skirt-sway{0%,100%{transform:rotate(-.7deg)}50%{transform:rotate(.7deg)}}
@keyframes arm-left{0%,100%{transform:rotate(.8deg)}50%{transform:rotate(-.8deg)}}
@keyframes arm-right{0%,100%{transform:rotate(-.8deg)}50%{transform:rotate(.8deg)}}
@keyframes pin-sway{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
@keyframes ribbon-sway{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(4deg)}}
@keyframes walking-skirt{0%,100%{transform:rotate(-1.6deg) translateY(0)}50%{transform:rotate(1.6deg) translateY(-1px)}}
@keyframes walking-left{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
@keyframes walking-right{0%,100%{transform:rotate(3deg)}50%{transform:rotate(-3deg)}}
@keyframes sleeve-lift-left{0%,100%{transform:rotate(1deg)}50%{transform:rotate(10deg)}}
@keyframes sleeve-lift-right{0%,100%{transform:rotate(-1deg)}50%{transform:rotate(-10deg)}}
.live-controls{position:absolute;z-index:3;bottom:91px;right:22px;display:grid;gap:7px;max-width:245px;padding:8px;background:#fff8e7df;border:1px solid #cfc6b3;border-radius:12px}
.live-controls .choice-row{margin:0;gap:4px}.live-controls button{padding:8px 10px;min-height:32px;font-size:11px}.live-controls .weather-choice{border-radius:7px}.live-controls .selected{background:#dce4d5}.live-controls .choice{min-width:0}
.ambient{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}.ambient i{position:absolute;display:block;top:-8%;will-change:transform}
.petal{width:8px;height:13px;background:#c79a99aa;border-radius:90% 0 90% 20%;animation:petal-fall 13s linear infinite}.raindrop{width:1px;height:34px;background:linear-gradient(transparent,#688b9b80);animation:rain-fall 1.3s linear infinite}.ambient .firefly{top:calc(20% + var(--i)*5%);width:4px;height:4px;border-radius:50%;background:#ffe6a0;box-shadow:0 0 14px 5px #ffe39b44;animation:firefly-float 5s ease-in-out infinite}
@keyframes petal-fall{0%{transform:translate(0,0) rotate(0)}100%{transform:translate(110px,950px) rotate(300deg)}}@keyframes rain-fall{to{transform:translate(-70px,1000px)}}@keyframes firefly-float{0%,100%{transform:translate(0,0);opacity:.25}50%{transform:translate(18px,-28px);opacity:1}}
.weather-rain .scene-svg{filter:saturate(.75) brightness(.92)}.weather-night{background:#293f50}.weather-night .scene-svg{filter:brightness(.46) saturate(.7)}.weather-night .figure{filter:drop-shadow(0 8px 10px #10283940) brightness(.89)}
.workshop-card{background:#e6ecdf;border:1px solid #c6d3bf;border-radius:10px;padding:14px;margin:12px 0 16px;display:grid;gap:12px}.workshop-card span{font-size:11px;color:#65795d}.workshop-card strong{display:block;font-family:var(--serif);font-size:19px;margin:7px 0}.workshop-card small{font-size:10px;color:#63705f}.workshop-card .primary{min-height:39px;padding:9px}
.workshop-modal{max-width:780px;width:calc(100vw - 36px)}.order-brief h3{font-family:var(--serif);font-size:25px;margin:10px 0}.order-brief p{font-size:13px;line-height:1.9}.order-ledger{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:#747960}.workshop-steps{display:flex;gap:8px;margin:20px 0}.workshop-steps span{flex:1;min-width:0;display:flex;align-items:center;gap:8px;font-size:12px;padding:10px 7px;border-bottom:2px solid #d5d3c5}.workshop-steps b{font-family:var(--serif);font-size:18px;color:#a09170}.workshop-steps .active{border-color:#668574;color:#476950}
#cut-board,#sew-board{display:block;width:100%;max-height:420px;touch-action:none;user-select:none;border:1px solid #dbd4c4;border-radius:10px}.paper-piece{cursor:grab}.paper-piece rect{fill:#fcf4dfdf;stroke:#a19675;stroke-width:1.5}.paper-piece.selected rect{stroke:#5d8467;stroke-width:3}.paper-piece path{stroke:#b6ab8e}.paper-piece text,.grain-label{fill:#646c55;font-family:sans-serif;font-size:13px;pointer-events:none}#sew-board{cursor:crosshair}.paper-nudge{display:flex;align-items:center;gap:5px;margin:9px 0}.paper-nudge button{padding:5px 12px;min-height:34px}.paper-nudge small{font-size:10px;color:#7c806e;line-height:1.5}.craft-status{font-size:12px;min-height:35px;padding:10px;background:#e7ecdf;border-radius:6px}.error{color:#a05242!important}.order-ok{color:#53785c}.workshop-modal .modal-actions .primary{width:auto;flex:1}.assist-option{margin-top:18px;font-size:12px;color:#717766}.assist-option summary{cursor:pointer;padding:8px}.assist-option p{line-height:1.7}.order-fitting{display:grid;grid-template-columns:45% 1fr;gap:24px;align-items:center}.order-fitting>div{height:360px}.order-fitting section{font-size:12px;line-height:1.7}.order-result{text-align:center;padding:25px 0}.result-stars{font-size:36px;color:#ad8e51;letter-spacing:8px}.accessory-shop{display:grid;grid-template-columns:1fr 1fr;gap:16px}.accessory-shop article{border:1px solid #d8d4c5;border-radius:10px;padding:18px}.accessory-shop p{font-size:12px;line-height:1.8}.shop-icon{display:block;font-size:40px;color:#82a28b}.focus-view .live-controls{display:none}
@media(max-width:900px){.live-controls{right:12px;bottom:92px;max-width:215px}.live-controls button{padding:8px}.workshop-card{margin-top:12px}.workshop-modal{padding:20px}.workshop-steps span{font-size:11px;gap:5px;padding:8px 0}.workshop-modal .modal-actions{flex-wrap:wrap}.paper-nudge{flex-wrap:wrap}.order-fitting{grid-template-columns:1fr;gap:0}.order-fitting>div{height:280px}.order-fitting section{text-align:center}.order-ledger{gap:8px}.accessory-shop{gap:10px}.accessory-shop article{padding:12px}}
@media(prefers-reduced-motion:reduce){.figure g,.order-fitting g,.ambient i{animation:none!important;transition:none!important}.ambient .petal,.ambient .raindrop{display:none}}
.figure .pose-rowing .motion-foot-left{animation:step-left 1.8s ease-in-out infinite}.figure .pose-rowing .motion-foot-right{animation:step-right 1.8s ease-in-out infinite}@keyframes step-left{0%,100%{transform:translateY(-4px)}50%{transform:translateY(0)}}@keyframes step-right{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.workshop-card{grid-template-columns:1fr auto;align-items:center;gap:10px;padding:12px}.workshop-card .primary{width:auto;max-width:112px;font-size:12px}.workshop-card strong{font-size:17px}.workshop-card small{font-size:9px}#cut-board,#sew-board{max-height:330px}
@media(max-width:600px){#cut-board,#sew-board{max-height:none}.workshop-card .primary{max-width:108px}}
@media(prefers-reduced-motion:reduce){.figure g{animation:none!important}}
.current-cloth{font-size:12px;padding:8px 0;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.current-cloth .text-button{padding:3px;font-size:11px}

.figure .motion-pattern{transform-origin:300px 255px;animation:skirt-sway 5s ease-in-out infinite}.figure .pose-rowing .motion-pattern{animation:walking-skirt 1.8s ease-in-out infinite}.figure .pose-stage .motion-pattern{animation:skirt-sway 3.4s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.figure .motion-pattern{animation:none!important}}
@media(max-width:600px){.live-controls{left:12px;right:12px;bottom:73px;max-width:none;display:flex;justify-content:center;gap:5px;padding:6px}.live-controls .choice-row{flex:1;min-width:0;gap:2px}.live-controls button{flex:1;min-width:0;padding:6px 3px;font-size:10px;white-space:nowrap}.figure{height:67%;bottom:124px}.figure-caption{bottom:140px}.welcome .figure{height:76%;bottom:25px}}
.weather-breeze .motion-ribbon{animation-duration:2.7s}.weather-rain .motion-ribbon{animation-duration:4.5s}.weather-night .motion-ribbon{animation-duration:6s}

/* The live mirror is kept separate from the painted story panels. */
.room-entry{background:#506e66!important;color:#fff9ec!important;border-color:#506e66!important}
.room-modal{width:min(1150px,100%);padding:20px;overflow:auto}
.room-modal .modal-heading{margin-bottom:12px}
.room-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:20px}
.room-view{position:relative;min-width:0;background:#eee9df;border:1px solid #d9d0bd;border-radius:12px;overflow:hidden}
.room-canvas{height:min(68vh,700px);min-height:440px;touch-action:none}
.room-canvas canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.room-canvas canvas:active{cursor:grabbing}
.room-loading{position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:#eee9dfeb;font-size:18px}
.room-loading[hidden]{display:none}
.room-loading small{display:block;font-size:12px;margin-top:10px;color:#6c7166}
.room-view-tools{position:absolute;top:13px;left:12px;right:12px;display:flex;flex-wrap:wrap;gap:6px;pointer-events:none}
.room-view-tools button{pointer-events:auto;background:#fffaf0db;padding:7px 11px;border-radius:20px;font-size:12px}
.room-gesture{position:absolute;bottom:14px;left:0;right:0;text-align:center;font-size:12px;color:#646d65;pointer-events:none}
.room-controls{min-width:0;padding:8px 0}
.room-controls h3{font-family:var(--serif);font-size:25px;margin:8px 0}
.room-note{color:#68766d;font-size:13px;line-height:1.7;margin-bottom:18px}
.room-controls fieldset{border:0;padding:0;margin:0 0 16px;min-width:0}
.room-controls legend{font-size:12px;letter-spacing:1px;margin-bottom:8px;color:#6c7064}
.room-options{display:flex;gap:6px;flex-wrap:wrap}
.room-options button{padding:8px 11px;font-size:12px;border:1px solid #d5c9b1;border-radius:6px;background:#fffaf0}
.room-options button[aria-pressed=true]{background:#506e66;color:#fff9ee;border-color:#506e66}
.room-swatches{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.room-swatches button{width:29px;height:29px;border-radius:50%;background:var(--swatch);border:2px solid #f9f4e7;box-shadow:0 0 0 1px #bbae99;padding:0}
.room-pause{font-size:12px;margin-top:10px;padding:4px 0;border:0;color:#536d60;background:transparent;text-decoration:underline;text-underline-offset:3px}
.room-bottom{border-top:1px solid #d9d0bd;padding-top:14px}
.room-bottom button{flex:1}.room-bottom button:last-child{background:#506e66;color:white}
.room-feedback{font-size:12px;line-height:1.5;color:#426452;min-height:18px}
.room-limit{font-size:11px;color:#73786c;line-height:1.8;margin-top:14px}
@media(max-width:700px){.room-modal{padding:14px;max-height:94dvh}.room-layout{grid-template-columns:1fr;gap:12px}.room-canvas{height:49dvh;min-height:320px}.room-controls{padding:0}.room-controls h3{font-size:22px}.room-controls fieldset{margin-bottom:13px}.room-note{margin:6px 0 12px}.room-view-tools{top:10px;left:8px;gap:4px}.room-view-tools button{padding:6px 9px;font-size:11px}.room-modal .modal-heading h2{font-size:22px}.room-options button{min-height:36px}}

.street-letter{margin:16px 0 20px;padding:18px;border:1px solid #d9c9ab;border-left:3px solid #a2895c;background:#f4eddc;border-radius:8px}
.street-letter h4{font-family:var(--serif);font-size:20px;margin:8px 0 10px}.street-letter p{font-size:13px;line-height:1.8;margin:0 0 10px}
.letter-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}.letter-choice{padding:12px;text-align:left;white-space:normal;background:#fffaf0;border:1px solid #d8ccb7;border-radius:8px;line-height:1.5}
.letter-choice b{display:block;font-size:13px}.letter-choice small{display:block;margin-top:7px;font-size:11px;color:#6e7565}.letter-choice[aria-pressed=true]{border-color:#557565;box-shadow:inset 0 0 0 1px #557565;background:#e6eddf}
.letter-decision{color:#526e59;font-weight:500}.next-letter-note{font-size:12px;color:#80704f}
.pouch-result{display:flex;gap:12px;align-items:center;justify-content:center;font-size:12px;color:#536e58}.pouch-result svg{width:90px;height:80px}
@media(max-width:480px){.street-letter{padding:13px}.letter-choices{grid-template-columns:1fr}.letter-choice{padding:10px}.street-letter h4{font-size:18px}}

.order-journal{display:flex;align-items:center;gap:12px;margin-top:10px}.order-journal small{font-size:11px;color:#7b765e}.order-journal .text-button{font-size:12px}.challenge-goals{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.challenge-goals span{font-size:12px;background:#eee9db;padding:9px;border-radius:7px}.challenge-goals .done{background:#e2ebdf;color:#4f7058}.letter-goals>p,.journal-gift p{font-size:13px;line-height:1.8}.journal-gift{padding:16px;background:#eee5d4;border-radius:8px;margin:15px 0}.reply-list article{border-bottom:1px solid #d8d1bf;padding:18px 0}.reply-list h3{font-family:var(--serif);font-size:20px;margin:10px 0}.reply-list p{font-size:13px;line-height:1.9}.reply-list small{font-size:11px;color:#8a7551}.shawl-gift{background:#e8eddf;padding:12px;border-radius:8px;font-size:12px}.journal-modal .modal-actions{position:sticky;bottom:-20px;background:#fbf8f0;padding:12px 0;margin-top:16px}
@media(max-width:480px){.order-journal{flex-wrap:wrap;gap:6px}.challenge-goals span{padding:8px;font-size:11px}}

@media(min-width:701px){.room-controls{max-height:68vh;overflow-y:auto;overscroll-behavior:contain;padding-right:8px;scrollbar-width:thin}.room-view{align-self:start}.room-gesture{bottom:12px}}

/* Earned garment patterns */
.recipe-card{display:grid;grid-template-columns:minmax(100px,180px) minmax(0,1fr);gap:24px;align-items:center}.recipe-card>svg{width:100%;max-height:260px;filter:drop-shadow(0 8px 10px #63745b22)}.recipe-goals{display:grid;gap:10px;margin:20px 0}.recipe-goals span{padding:10px 12px;border:1px solid #d9d0bc;border-radius:8px;color:#796e5e}.recipe-goals .done{color:#3c6955;background:#e4ece0;border-color:#b8ccb7}.patterns-modal .recipe-card h3{font-size:25px}.order-journal{flex-wrap:wrap}@media(max-width:480px){.recipe-card{grid-template-columns:1fr;gap:10px}.recipe-card>svg{height:150px;max-width:180px;margin:auto}.recipe-card section{text-align:left}}

/* Customer choice and optional styling requests */
.offers-modal{max-width:1000px}.offer-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.offer-card{display:flex;flex-direction:column;align-items:stretch;padding:20px;border:1px solid #d8ccb7;border-radius:12px;background:#fffdf6}.offer-card h3{font-size:21px;margin:12px 0}.offer-card>p{line-height:1.7}.offer-requirements{padding-left:20px;font-size:13px;line-height:1.9;margin:8px 0;color:#5d695d}.offer-budget{font-weight:bold;border-top:1px solid #e2dbc9;padding-top:12px}.offer-card>button{margin-top:auto}.customer-preference{padding:10px 12px;background:#f0e7d4;border-radius:8px;font-size:13px;line-height:1.6}.customer-preference.matched{background:#e1ecdd;color:#38664d}.offer-card .customer-preference{margin-bottom:16px}@media(max-width:700px){.offer-list{grid-template-columns:1fr;gap:12px}.offer-card{padding:16px}.offer-card>button{margin-top:12px}}
/* Bridge chapter: native scene, with motion respecting player preferences. */
.workshop-card-actions{display:flex;flex-direction:column;align-items:center;gap:4px;flex-shrink:0}
.chapter-heading h3{font-size:26px;margin:8px 0;color:var(--ink)}
.chapter-heading p{line-height:1.8;max-width:650px}
.chapter-scene{display:block;width:100%;height:auto;border-radius:12px;margin:18px 0}
.bridge-lamp{animation:bridge-lamp 5s ease-in-out infinite;animation-delay:var(--delay)}
.bridge-reflection{animation:bridge-glow 4s ease-in-out infinite;animation-delay:var(--delay)}
.bridge-boat{animation:bridge-boat 7s ease-in-out infinite}
.bridge-water{animation:bridge-glow 6s ease-in-out infinite}
@keyframes bridge-lamp{0%,100%{transform:rotate(-1.2deg)}50%{transform:rotate(1.2deg)}}
@keyframes bridge-glow{0%,100%{opacity:.3}50%{opacity:.65}}
@keyframes bridge-boat{0%,100%{transform:translate(-8px,0)}50%{transform:translate(8px,2px)}}
.chapter-progress{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #d9d0ba;flex-wrap:wrap}
.chapter-progress span{font-size:13px;color:#697d70}
.chapter-dialogue{padding:16px 20px;border-left:3px solid #aebcad;background:#eef0e4;line-height:1.9;border-radius:0 8px 8px 0}
.chapter-ending{line-height:2;font-size:16px;padding:4px 8px}
.chapter-routes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.chapter-routes article,.chapter-gift,.chapter-callout{padding:18px;border:1px solid #d5c9aa;border-radius:10px;background:#f5efdf}
.chapter-routes article{display:flex;flex-direction:column;align-items:start}
.chapter-routes p{line-height:1.8;flex:1}
.chapter-gift p,.chapter-callout p{line-height:1.8}
.chapter-gift .btn{margin:5px 8px 5px 0}
.chapter-callout{margin:18px 0;text-align:left}
@media(max-width:700px){.chapter-routes{grid-template-columns:1fr}.chapter-heading h3{font-size:23px}.chapter-dialogue{padding:12px}.workshop-card-actions .btn{white-space:normal}}
@media(prefers-reduced-motion:reduce){.chapter-scene *{animation:none}}
.room-camera-bar{position:absolute;bottom:35px;left:12px;right:12px;display:flex;justify-content:center;gap:6px;pointer-events:none}
.room-camera-bar button{pointer-events:auto;padding:8px 12px;border-radius:18px;background:#f5f1e5df;border:1px solid #c3baa3;font-size:12px;color:#3d5d57;min-width:36px}
.room-camera-bar button[aria-pressed=true]{background:#506e66;color:#fff}
.room-range{font-size:12px;color:#607568;display:grid;grid-template-columns:78px 1fr;align-items:center;gap:8px;margin:10px 0}
.room-range input{min-width:0;width:100%;margin:0;accent-color:#607f71;cursor:pointer}
.room-pattern-tools .room-range{grid-template-columns:1fr auto;gap:5px;margin:12px 0}
.room-pattern-tools .room-range input{grid-column:1/-1}
.room-pattern-tools output{font-variant-numeric:tabular-nums;color:#506e66}
.room-controls .room-options+.room-options{margin-top:8px}
.room-character-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.room-character-list button{position:relative;padding:0;border:1px solid #d5cbb9;border-radius:10px;overflow:hidden;background:#f1eee3;color:#465b50;text-align:left;min-width:0}
.room-character-list img{display:block;width:100%;aspect-ratio:1/1.05;object-fit:cover;background:#dce4d8}
.room-character-list img[hidden]{display:none}
.room-character-list span{display:block;padding:8px 6px}.room-character-list b{font-family:var(--serif);font-size:16px;font-weight:500}.room-character-list small{display:block;font-size:10px;margin-top:3px;color:#73786b}
.room-character-list i{display:none;position:absolute;top:6px;right:6px;width:19px;height:19px;line-height:19px;border-radius:50%;text-align:center;font-style:normal;background:#42695a;color:#fff;font-size:12px}
.room-character-list button[aria-pressed=true]{border-color:#527561;box-shadow:inset 0 0 0 1px #527561;background:#e7eddf}.room-character-list button[aria-pressed=true] i{display:block}
.room-character-description{font-size:11px;line-height:1.7;color:#6c7768;margin:10px 0 0;min-height:37px}
.room-layout-hint{display:block;margin:8px 0}
.room-history{border-top:1px solid #ded4c1;padding-top:12px;margin:12px 0}
.room-gaze,.room-reset{background:transparent;padding:7px 0;font-size:12px;color:#506e66;text-decoration:underline;text-underline-offset:3px}
.room-gaze[aria-pressed=true]{text-decoration:none;background:#edf0e5;padding:7px 11px;border-radius:6px;margin-top:8px}
@media(max-width:700px){.room-camera-bar{bottom:34px;left:6px;right:6px;gap:4px}.room-camera-bar button{font-size:11px;padding:7px 9px}.room-gesture{font-size:10px;bottom:12px}.room-range{grid-template-columns:90px 1fr}.room-options button{min-height:40px}}

/* Small ambient movement stays behind the interactive character. */
.scene-lantern {transform-box:fill-box;transform-origin:50% 0%;animation:scene-lamp-sway 6s ease-in-out infinite alternate;}
.scene-water {animation:scene-water-light 4s ease-in-out infinite alternate;}
@keyframes scene-lamp-sway {from{transform:rotate(-1.8deg)}to{transform:rotate(1.8deg)}}
@keyframes scene-water-light {from{opacity:.24}to{opacity:.62}}
@media(prefers-reduced-motion:reduce){.scene-lantern,.scene-water{animation:none;}}

.atelier-character-picker{margin:12px 0 18px;padding:12px 14px;border:1px solid #dbd2bf;border-radius:10px;background:#f2f1e7}.atelier-character-picker>span{font-size:12px;letter-spacing:1px;color:#6c7768}.atelier-character-picker .choice-row{margin:8px 0}.atelier-character-picker small{font-size:11px;line-height:1.6;color:#78816d}.atelier-character-picker .choice[aria-pressed=true]{background:#e0eadd;border-color:#6f8874;color:#3c6553}
/* On small screens, choose a face before looking into the mirror. */
@media(max-width:700px){.room-layout{display:flex;flex-direction:column;gap:8px}.room-controls{display:contents}.room-character-picker{order:-1}.room-character-list img{aspect-ratio:auto;height:85px;object-position:center 37%}.room-character-description{min-height:0;margin:6px 0 0}.room-character-list span{padding:5px 8px}.room-character-list small{display:inline;margin-left:8px;font-size:10px}.room-character-list b{font-size:15px}.room-controls .room-character-picker{margin-bottom:2px}.room-controls h3{margin-top:12px}.room-view{flex-shrink:0}}
@media(max-width:700px){.room-character-list small{display:block;margin:3px 0 0;line-height:1.35}.room-character-list span{white-space:normal}}

/* One canvas moves between the stage and mirror; illustration stays available. */
.figure.live-figure{width:100%;left:0;height:calc(100% - 110px);bottom:80px;filter:none}
.figure.live-figure>#fitting-room{width:100%;height:100%}
#fitting-room[data-presentation="stage"] .room-layout{display:block;width:100%;height:100%}
#fitting-room[data-presentation="stage"] .room-view{height:100%;border:0;background:transparent;border-radius:0}
#fitting-room[data-presentation="stage"] .room-canvas{height:100%;min-height:0}
#fitting-room[data-presentation="stage"] .room-controls,#fitting-room[data-presentation="stage"] .room-view-tools,#fitting-room[data-presentation="stage"] .room-camera-bar,#fitting-room[data-presentation="stage"] .room-gesture{display:none}
#fitting-room[data-presentation="stage"] canvas{touch-action:auto;cursor:default}
#fitting-room[data-presentation="stage"] .room-loading{background:#fbf6e9d9;border-radius:16px;padding:16px}
@media(max-width:900px){.figure.live-figure{height:calc(100% - 150px);bottom:115px}}

.showcase-callout{display:grid;gap:7px;padding:14px 18px;margin:12px 0;border:1px solid #dbc7b2;border-radius:14px;background:linear-gradient(120deg,#f5e7df,#edf1e9)}.showcase-callout span{font-size:12px;color:#716b61}.showcase-intro h2{font-size:25px}.showcase-progress{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:12px 16px;background:#eee7dd;border-radius:12px}.showcase-progress small{margin-left:auto}.showcase-themes{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:20px 0 12px}.showcase-theme{text-align:left;padding:15px;border:1px solid #d8cbb9;border-radius:12px;background:#fcf8f0}.showcase-theme b,.showcase-theme small{display:block}.showcase-theme small{margin-top:8px;color:#817060;font-size:12px}.showcase-theme[aria-pressed=true]{background:#e4ebe0;border-color:#5f7869}.showcase-lights{display:flex;gap:8px}.showcase-brief{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;margin-top:18px;padding:20px;background:#f5f0e7;border-radius:16px}.showcase-brief h3{font-size:21px;margin:8px 0}.showcase-brief p{font-size:13px;color:#746e65;line-height:1.8}.showcase-brief ul{list-style:none;padding:0;line-height:2.1}.showcase-brief li.done{color:#466d58}.showcase-brief b,.showcase-brief small{display:block}.showcase-art{height:300px;text-align:center}.showcase-art svg{max-height:270px;width:100%}.showcase-art small{font-size:12px;color:#7a746a}.showcase-modal .modal-actions{flex-wrap:wrap}@media(max-width:700px){.showcase-themes{grid-template-columns:repeat(2,1fr)}.showcase-brief{grid-template-columns:1fr;padding:15px}.showcase-art{height:230px}.showcase-art svg{max-height:205px}.showcase-progress small{margin-left:0}.showcase-intro h2{font-size:20px}}
/* Illustration mirror shares the exact plates and design with the main stage. */
.beauty-modal{width:min(1160px,calc(100vw - 40px));max-width:1160px}
.beauty-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:24px}
.beauty-stage{position:relative;isolation:isolate;min-height:560px;overflow:hidden;border-radius:12px;background:#eee8db;border:1px solid #ddd3bf}
.beauty-scene{position:absolute;inset:0;z-index:-2;opacity:.65}
.beauty-scene .scene-svg{opacity:1}
.beauty-stage:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 40%,#fff9ed70,transparent 75%);pointer-events:none}
#beauty-avatar{position:absolute;inset:12px 0 0;display:grid;place-items:center}
#beauty-avatar>svg{width:100%;height:100%;max-height:690px;overflow:hidden}
#beauty-avatar[data-view="face"]{inset:35px 25px 80px}
#beauty-avatar[data-view="fabric"]{inset:15px 20px 65px}
.beauty-view-tools{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;gap:8px;white-space:nowrap;z-index:3}
.beauty-view-tools button{background:#fcf8edf0;border:1px solid #c5bea9;border-radius:24px;padding:10px 15px;font-size:12px}
.beauty-view-tools button[aria-pressed="true"]{background:#557468;color:#fff;border-color:#557468}
.beauty-controls{padding:10px 0;font-size:13px}
.beauty-controls h3{font:24px var(--serif);margin:12px 0 16px}
.beauty-controls p{color:#7b8074;line-height:1.8}
.beauty-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:24px 0}
.beauty-picker>button{border:1px solid #d9d0be;border-radius:8px;overflow:hidden;text-align:left;background:#f1ecdf;padding:0 0 12px}
.beauty-picker>button[aria-pressed="true"]{border:2px solid #5d7a69;padding-bottom:11px;background:#e9eddf}
.beauty-portrait{display:block;height:92px;background:radial-gradient(ellipse,#fcf7e8,#d5dcca);overflow:hidden}
.beauty-portrait svg{width:100%;height:100%}
.beauty-picker b,.beauty-picker small{display:block;margin:8px 5px 0;font-size:12px}.beauty-picker small{font-size:10px;color:#7d8278}
.beauty-controls .modal-actions{align-items:stretch;flex-direction:column;margin-top:28px}
@media(max-width:750px){.beauty-modal{padding:17px;width:calc(100vw - 20px)}.beauty-layout{grid-template-columns:1fr;gap:14px}.beauty-stage{min-height:470px}.beauty-controls{padding:0}.beauty-controls h3{font-size:20px}.beauty-picker{margin:12px 0}.beauty-portrait{height:104px}.beauty-controls .modal-actions{margin-top:16px}.beauty-view-tools button{padding:9px 11px}.beauty-modal .modal-heading{margin-bottom:15px}}
@media(prefers-reduced-motion:reduce){.beauty-stage .motion-head,.beauty-stage .motion-skirt,.beauty-stage .motion-pin{animation:none}}

/* One 3D avatar moves between stage and mirror. Posters show that same model. */
.figure.live-figure.welcome-figure{width:100%;left:0;height:calc(100% - 70px);bottom:30px}
#fitting-room .room-loading{isolation:isolate;overflow:hidden}
#fitting-room .room-loading::before{content:"";position:absolute;inset:0;background:var(--avatar-poster) center/contain no-repeat;opacity:.34;z-index:-1}
#fitting-room[data-presentation="stage"] .room-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:26px;background:transparent;text-shadow:0 1px 4px #fff}
#fitting-room[data-presentation="stage"] .room-loading[hidden]{display:none}
.layer-editor{margin:10px 0 18px}.layer-editor .choice-row{gap:6px}
.stage-actions .avatar-view{max-width:130px}

/* Keep the mobile character description beside the figure, with readable
   lines and a clear lower area for shoes, motion controls and scene travel. */
@media(max-width:600px){
 .figure-caption{top:112px;bottom:auto;left:16px;width:120px;max-width:30%;padding:10px 9px;border:1px solid #ddd3bfc9;border-radius:12px;background:#fffaf0dc;backdrop-filter:blur(5px)}
 .figure-caption>span{font-size:13px;line-height:1.6;letter-spacing:0;white-space:normal}
 .figure-caption small{font-size:10px;line-height:1.65;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:5px 0}
 .figure-caption button{font-size:10px;padding:4px 0;line-height:1.5}
}

.shared-look-modal{width:min(940px,96vw);height:min(900px,90dvh);display:flex;flex-direction:column;overflow:hidden}
.shared-look-modal>.modal-heading,.shared-look-modal>h3,.shared-look-modal>.hint{flex:none}
.shared-look-modal>h3{margin:8px 0 14px}
.shared-look-modal>.hint{margin:12px 0 0}
.shared-look-modal>a{flex:none;font-size:11px;line-height:20px}
.shared-look-modal #shared-avatar{flex:1;min-height:0;overflow:hidden}
.shared-look-modal #fitting-room{height:100%;width:100%}
#fitting-room[data-readonly="true"] .room-layout{display:block;height:100%}
#fitting-room[data-readonly="true"] .room-view{height:100%;min-height:0}
#fitting-room[data-readonly="true"] .room-controls{display:none}
@media(max-height:520px){
 .shared-look-modal{padding:12px 18px}
 .shared-look-modal .modal-heading h2{font-size:20px;margin:4px 0 8px}
 .shared-look-modal>h3{font-size:14px;margin:4px 0 8px}
 .shared-look-modal>.hint{font-size:10px;line-height:1.5;margin:6px 0 0}
}

#fitting-room [data-room-hair][hidden]{display:none}

.fitting-native-photo{display:block;width:100%;height:auto;max-height:56vh;object-fit:contain;border-radius:14px}

/* Direct inspection on both the atelier stage and the mirror. */
.figure.live-figure{pointer-events:auto}
#fitting-room[data-presentation="stage"] canvas{touch-action:none;cursor:grab}
#fitting-room[data-presentation="stage"] canvas:active{cursor:grabbing}
.room-camera-bar{flex-wrap:wrap;gap:4px}.stage-angles{display:none}
#fitting-room[data-presentation="stage"] .room-camera-bar{display:flex;bottom:12px}
#fitting-room[data-presentation="stage"] .stage-angles{display:contents}
#fitting-room[data-presentation="stage"] .room-camera-bar button{padding:6px 9px;min-width:32px;font-size:11px}
#fitting-room[data-presentation="stage"] .camera-step,#fitting-room[data-presentation="stage"] [data-room-orbit]{display:none}
@media(max-width:700px){.room-camera-bar .camera-step{display:none}.room-camera-bar button{padding:6px 8px;font-size:11px}}

.touch-gesture{display:none}
#fitting-room[data-presentation="stage"] .room-camera-bar{bottom:22px}
#fitting-room[data-presentation="stage"] .room-gesture{display:block;bottom:2px;font-size:10px;line-height:1.2}
@media(max-width:700px),(pointer:coarse){.pointer-gesture{display:none}.touch-gesture{display:inline}}

.basewear-editor{margin:12px 0}.basewear-editor small{display:block;margin-top:6px;color:var(--muted)}.entry-art .entry-render{width:100%;height:100%;object-fit:contain}.basewear-preview-label{display:grid;place-items:center;min-height:100px;padding:12px;font-family:serif;color:#5a7369;background:#e8ebe1;border-radius:12px}

.comparison-art img{width:100%;height:100%;object-fit:contain}

/* V47 continuous stage canvas; keep camera controls clear of weather and captions. */
.figure.live-figure:not(.welcome-figure){inset:0;width:100%;height:100%;bottom:0;left:0}.figure.live-figure:not(.welcome-figure) #fitting-room[data-presentation="stage"] .room-camera-bar{left:12px;right:280px;bottom:102px}.figure.live-figure:not(.welcome-figure) #fitting-room[data-presentation="stage"] .room-gesture{left:12px;right:280px;bottom:82px} .figure.live-figure:not(.welcome-figure) #fitting-room[data-presentation="stage"] .room-camera-bar button{padding:6px}.figure-caption{top:116px;bottom:auto}@media(max-width:700px){.stage{height:600px}.figure.live-figure:not(.welcome-figure) #fitting-room[data-presentation="stage"] .room-camera-bar{right:12px;bottom:137px}.figure.live-figure:not(.welcome-figure) #fitting-room[data-presentation="stage"] .room-gesture{right:12px;bottom:121px}.live-controls{left:12px;right:12px;bottom:73px;max-width:none;display:flex;justify-content:center;gap:5px;padding:6px}.live-controls .choice-row{flex:1;min-width:0;gap:2px}.live-controls button{flex:1;min-width:0;padding:6px 3px;font-size:10px;white-space:nowrap}}
