@charset "UTF-8";
:root{color-scheme:dark;--ivory:#fff1d5;--muted:#c3cebd;--gold:#ddbb76;--line:rgba(213,189,132,.25);--panel:rgba(15,37,35,.94);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ivory);background:#102b2c;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100svh}.backdrop,.vignette{position:fixed;inset:0;pointer-events:none}.backdrop{background:url('/game-assets/room.webp') center/cover no-repeat;z-index:-2}.vignette{background:linear-gradient(90deg,rgba(10,28,30,.38),transparent 48%,rgba(6,23,25,.5)),linear-gradient(0deg,rgba(4,19,22,.78),transparent 34%,rgba(7,23,25,.44));z-index:-1}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #ffe1a0;outline-offset:5px}button{transition:background .18s,transform .18s}button:hover{filter:brightness(1.1)}button:active{transform:translateY(1px)}button:disabled{opacity:.55;cursor:wait}a{color:var(--gold);text-underline-offset:4px}.topbar{padding:25px 4vw;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(233,212,165,.14);background:rgba(9,26,26,.3)}.brand{display:flex;gap:13px;align-items:center;text-decoration:none;color:var(--ivory);font:600 16px Georgia,serif;letter-spacing:2px}.brand small{display:block;font:9px system-ui,sans-serif;letter-spacing:2px;margin-top:7px;color:#ddcfad}.seal{width:44px;height:44px;display:grid;place-items:center;border:1px solid #e2c186;transform:rotate(-4deg);border-radius:10px 3px;color:var(--gold);font:27px Georgia,serif}.top-right{display:flex;align-items:center;gap:25px}.level-badge{font-size:12px;letter-spacing:2px}.level-badge b{font:26px Georgia,serif;margin-left:7px;color:var(--gold)}.quiet{border:1px solid var(--line);background:rgba(15,32,29,.75);border-radius:6px;padding:11px 17px;font-size:13px}.layout{max-width:1510px;margin:0 auto;padding:36px 4vw 20px;display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:40px;min-height:calc(100svh - 150px)}.room{position:relative;display:flex;flex-direction:column;min-height:660px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:650;color:#dfc48f;margin:0 0 16px;line-height:1.6}.room-heading h1{font:500 clamp(36px,4.8vw,68px)/1.05 Georgia,"Times New Roman",serif;letter-spacing:-1px;margin:0 0 18px;text-shadow:0 2px 25px #132726}.room-heading>p:last-child{font-size:14px;line-height:1.8;color:#eee1c8;text-shadow:0 1px 12px #000;margin:0}.character-area{position:relative;flex:1;min-height:420px;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;margin-top:-30px}#hero{width:min(100%,490px);height:440px;display:block;touch-action:pan-y;cursor:grab;filter:drop-shadow(0 18px 22px rgba(0,0,0,.25))}#hero:active{cursor:grabbing}.hero-caption{text-align:center;display:grid;gap:6px;margin-top:-14px;text-shadow:0 1px 15px #000}.hero-caption .hero-name{font:24px Georgia,serif}.base-tag{font-size:11px;letter-spacing:1px;color:#e4d3b2}.rotate-controls{display:flex;align-items:center;gap:16px;margin-top:14px;font-size:10px;color:#eadcc3}.rotate-controls button{width:35px;height:32px;border:1px solid var(--line);background:rgba(19,42,38,.8);border-radius:20px;font-size:22px}.model-note{font-size:10px;color:#d4c8b2;margin-top:10px}.panel{align-self:center;border:1px solid #797252;border-radius:16px 4px 16px 4px;background:var(--panel);padding:26px;box-shadow:0 20px 60px #05151566, inset 0 0 0 5px rgba(160,146,101,.06);backdrop-filter:blur(16px)}.panel-top{display:flex;justify-content:space-between;align-items:flex-start}.tiny-star{font-size:24px;color:var(--gold)}h2{font:500 30px/1.2 Georgia,"Times New Roman",serif;margin:0 0 13px;overflow-wrap:anywhere}.muted{font-size:13px;color:var(--muted);line-height:1.65;margin:0 0 22px}.primary{width:100%;border:1px solid #f0d59a;background:linear-gradient(110deg,#d8ba7e,#f1d69c);color:#253a32;border-radius:7px;padding:16px 20px;min-height:52px;font-weight:750;box-shadow:0 4px 20px #d0aa4c15}.play{display:flex;justify-content:space-between;text-align:left;align-items:center;font-size:24px;letter-spacing:1px}.play small{display:block;font-size:10px;letter-spacing:0;font-weight:500;margin-top:5px}.play>span:last-child{font-size:30px;font-weight:400}.progress-summary{margin:23px 0 17px;padding-bottom:20px;border-bottom:1px solid var(--line)}.progress-summary>div{display:flex;justify-content:space-between;font-size:11px}.progress-summary b{color:var(--gold);font-weight:500}progress{appearance:none;border:0;display:block;width:100%;height:5px;background:#526353;border-radius:5px;margin:13px 0 9px;overflow:hidden}progress::-webkit-progress-bar{background:#526353}progress::-webkit-progress-value{background:var(--gold)}progress::-moz-progress-bar{background:var(--gold)}.progress-summary small{font-size:10px;color:var(--muted)}.menu{display:grid;gap:3px}.menu button{display:flex;align-items:center;gap:14px;text-align:left;border:0;background:transparent;padding:12px 3px;border-radius:5px;width:100%}.menu button:hover{background:#90b09b12}.menu-icon{font:25px Georgia;color:var(--gold);width:29px;text-align:center}.menu button>span:nth-child(2){flex:1;font-size:14px}.menu small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.menu button>span:last-child{color:var(--gold);font-size:22px}.panel-foot{text-align:center;margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}.panel-foot>span{display:block;color:#d4bb88;letter-spacing:8px;font-size:18px}.panel-foot small{display:block;color:#aebfae;font-size:9px;margin-top:8px}.page-foot{display:flex;justify-content:space-between;padding:10px 4vw 20px;color:#c7c6ae;font-size:10px;letter-spacing:1px}.preview-note{padding:8px 4vw;color:#f0d89f;background:#1b3938e8;font-size:11px}dialog{background:#142e2c;color:var(--ivory);border:1px solid #98875e;border-radius:15px 5px;max-width:560px;width:calc(100% - 30px);padding:35px;box-shadow:0 35px 100px #0009;max-height:88svh;overflow:auto}dialog::backdrop{background:#081c26a8;backdrop-filter:blur(5px)}.close{position:absolute;right:12px;top:9px;border:0;background:transparent;color:#d9c796;font-size:28px;width:35px;height:35px}dialog .eyebrow{margin-right:20px}dialog p{line-height:1.7}dialog h3{font:22px Georgia;margin:24px 0 12px}.gender-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0}.gender-options button{display:grid;gap:8px;justify-items:center;background:#23443b;border:1px solid #63765b;padding:18px 8px;border-radius:9px}.gender-options button[aria-pressed=true]{background:#3b5848;border:2px solid var(--gold);padding:17px 7px}.gender-options span{font-size:32px;color:var(--gold)}.gender-options strong{font-size:15px}.gender-options small{font-size:10px;color:var(--muted)}label{display:block;font-size:13px;margin-bottom:9px}input{width:100%;border:1px solid #63765b;border-radius:6px;background:#0c2423;color:var(--ivory);padding:13px 14px}.form-hint{font-size:11px;color:var(--muted);margin:7px 0 20px}#save-status{font-size:12px;margin-bottom:0}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#f0d69d;color:#16362f;border-radius:8px;padding:12px 20px;z-index:20;display:none;font-size:13px;width:max-content;max-width:90vw}.unlock-list{display:grid;gap:12px;margin:22px 0}.unlock-item{padding:17px;border:1px solid var(--line);border-radius:7px;display:flex;gap:14px;align-items:center}.unlock-item strong{display:block;font-size:14px}.unlock-item small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.unlock-item .symbol{font:28px Georgia;color:var(--gold);min-width:28px}.locked{opacity:.7}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.stat-grid div{border:1px solid var(--line);border-radius:7px;padding:20px}.stat-grid b{display:block;font:35px Georgia;color:var(--gold)}.stat-grid small{display:block;color:var(--muted);font-size:12px;margin-top:8px}.rules-list{padding-left:22px;font-size:14px;line-height:1.8;color:#dbe3d2}.rules-list li{margin-bottom:13px}.text-link{display:block;text-align:center;margin-top:22px}.note-box{padding:14px;background:#253f36;color:#d9dfcb;font-size:12px;border-radius:6px;line-height:1.7}.creator-preview-note{font-size:12px;color:var(--gold)}#render-error{position:absolute;top:30%;max-width:270px;text-align:center;padding:20px;background:#17342f;border:1px solid var(--line);border-radius:8px;font-size:13px}body:has(#creator[open]) .character-area{z-index:0}@media(min-width:1000px){#creator{margin-right:5vw;max-width:390px}#creator::backdrop{background:rgba(8,28,38,.25);backdrop-filter:none}}@media(max-width:900px){.layout{grid-template-columns:1fr 320px;gap:18px;padding:26px 22px}.panel{padding:22px}.room{min-height:620px}.room-heading h1{font-size:45px}.room-heading .eyebrow{max-width:240px;font-size:9px}#hero{height:420px}.character-area{margin-top:0}.topbar{padding:20px 22px}}@media(max-width:680px){.backdrop{background-position:41% center}.layout{display:flex;flex-direction:column;padding:25px 18px;gap:25px}.room{min-height:510px}.room-heading h1{font-size:42px}.room-heading>p:last-child{font-size:12px}.room-heading .eyebrow{max-width:none;font-size:8px;letter-spacing:1.4px}.character-area{min-height:355px;margin-top:-15px}#hero{height:335px;width:340px;max-width:100%}.hero-caption .hero-name{font-size:22px}.panel{width:100%;max-width:480px;padding:25px;align-self:center}.topbar{padding:15px 18px}.brand{font-size:12px;letter-spacing:1px;gap:8px}.brand small{font-size:7px;letter-spacing:.7px}.seal{width:34px;height:34px;font-size:22px}.top-right{gap:12px}.level-badge{font-size:9px}.level-badge b{font-size:20px;margin-left:2px}.quiet{padding:9px;font-size:10px}.page-foot{font-size:8px;gap:20px}.preview-note{font-size:10px}.vignette{background:linear-gradient(0deg,#0c2828 0%,transparent 70%,#102c2c66)}dialog{padding:28px 22px}.room-heading p{text-shadow:0 2px 10px #000}.model-note{color:#eee0c6}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* The invitation is a first-visit step, before character creation. */
#welcome-letter{width:calc(100% - 32px);max-width:565px;margin:auto;padding:38px 48px 30px;text-align:center;background:radial-gradient(ellipse at 12% 15%,#f9eed8,transparent 55%),linear-gradient(135deg,#eee0c5,#f8edd7 55%,#e8d7b8);color:#354337;border:1px solid #c5a76e;box-shadow:0 30px 100px #0009,inset 0 0 0 7px #e4d2ae,inset 0 0 0 8px #bda16c;border-radius:5px 15px 5px 15px}#welcome-letter::backdrop{background:rgba(6,24,28,.7);backdrop-filter:blur(7px)}.letter-seal{margin:0 auto 19px;display:grid;place-items:center;width:52px;height:52px;border:1px solid #a55844;border-radius:7px 3px;transform:rotate(-6deg);color:#994f3f;font:32px Georgia,serif;background:#b45d4710}.letter-kicker{font-size:10px;letter-spacing:3px;color:#7b6743;margin:0 0 16px}#letter-title{font:500 clamp(30px,5vw,39px)/1.18 Georgia,serif;color:#294c40;margin:0 0 24px}#letter-copy p{font-size:14px;line-height:1.8;color:#4f5346;margin:0 0 14px}.letter-signature{font:italic 17px/1.5 Georgia,serif;color:#776246;margin:22px 0 25px}#enter-world{background:#2d594b;color:#fff0d0;border:1px solid #244f41;box-shadow:0 5px 18px #2d594b22}.letter-foot{display:block;font-size:10px;color:#766b54;margin-top:13px}body:has(#welcome-letter[open]) .character-area{visibility:hidden}@media(max-width:600px){#welcome-letter{padding:28px 25px 25px}.letter-seal{width:42px;height:42px;font-size:27px;margin-bottom:14px}#letter-title{margin-bottom:18px}#letter-copy p{font-size:13px;line-height:1.7}.letter-signature{font-size:16px;margin:18px 0}}

/* Warm rose theme. Only the scenery layer is blurred. */
:root{color-scheme:light;--ivory:#513440;--muted:#795d67;--gold:#a24565;--line:rgba(161,85,109,.24);--panel:rgba(255,244,240,.96);background:#74525f}
body{isolation:isolate}.backdrop{inset:-14px;filter:blur(4px) sepia(.28) saturate(.75)}.vignette{background:linear-gradient(90deg,rgba(90,43,62,.45),rgba(193,120,142,.15) 50%,rgba(99,48,62,.3)),linear-gradient(0deg,rgba(70,38,53,.68),rgba(224,165,173,.12) 45%,rgba(98,49,63,.35))}
.topbar{background:rgba(255,235,228,.94);border-color:#d8afb7}.brand{color:#593841}.brand small{color:#79535e}.seal{color:#a34868;border-color:#bd778c;background:#ffece5}.level-badge{color:#79505d}.quiet{color:#7b3f54;background:#fff0e9;border-color:#dcb4bd}.preview-note{color:#6c4051;background:#f7ddd9}.room-heading h1{color:#fff2e9;text-shadow:0 2px 22px #4c2939}.room-heading .eyebrow{color:#ffe5e0}.room-heading>p:last-child{color:#fff3ec;text-shadow:0 1px 10px #492633}.panel{border-color:#d2a1ae;box-shadow:0 20px 60px #44243444,inset 0 0 0 5px #bd85940c}.panel h2{color:#573642}.primary{background:linear-gradient(110deg,#a74465,#ba5b75);color:#fff8f0;border-color:#a44964;box-shadow:0 5px 20px #b3587520}.primary:hover{background:#9e3f60}.progress-summary small{color:#795d67}progress,progress::-webkit-progress-bar{background:#ead0d5}.menu button:hover{background:#b96b8610}.menu button>span:nth-child(2){color:#573642}.panel-foot>span{color:#a0526b}.panel-foot small{color:#80606b}.hero-caption{color:#fff3ed;text-shadow:0 2px 12px #452737}.base-tag,.rotate-controls,.model-note{color:#fff0e9}.rotate-controls button{background:#fff0e9;color:#853c59;border-color:#dcb4bd}.page-foot{color:#fff0e9}.panel-top .eyebrow,dialog .eyebrow{color:#9a4663}
dialog{background:#fff4ef;color:#513440;border-color:#cc98a8;box-shadow:0 30px 90px #50283d66}dialog::backdrop{background:#512d4566}.close{color:#9c4a64}.gender-options button{background:#fbe7e3;border-color:#dcbbc4;color:#654251}.gender-options button[aria-pressed=true]{background:#f3d3d8;border-color:#ab4b6a}.gender-options small,.form-hint{color:#785b68}input{background:#fffaf5;border-color:#d0a6b4;color:#513440}.note-box{background:#f7e1de;color:#73515d}.rules-list{color:#684953}.stat-grid small{color:#795d67}#toast{background:#f9d9da;color:#69384b}#render-error{background:#fff0e9;color:#6c4253}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline-color:#bc6281}
#welcome-letter{background:radial-gradient(ellipse at 12% 15%,#fff5e8,transparent 55%),linear-gradient(135deg,#f3d6d5,#fff0e7 55%,#ebc8cf);border-color:#c78f9f;box-shadow:0 30px 100px #50283d77,inset 0 0 0 7px #f0d5d3,inset 0 0 0 8px #ca97a3}.letter-seal{color:#a14b69;border-color:#b96b81;background:#c77a8c0d}.letter-kicker{color:#8d5366}#letter-title{color:#723b51}#letter-copy p{color:#694c58}.letter-signature{color:#9a5c6e}#enter-world{background:#a84968;border-color:#943e5d;color:#fff6ed}.letter-foot{color:#835e6b}
.room-heading h1,#letter-title{position:relative;padding-right:30px}.room-heading h1{width:fit-content}.room-heading h1:before,.room-heading h1:after,#letter-title:after{content:"";position:absolute;width:11px;height:19px;background:linear-gradient(135deg,#ffe8e9,#d886a3);border-radius:85% 15% 75% 25%;pointer-events:none}.room-heading h1:after,#letter-title:after{right:3px;top:8px;transform:rotate(25deg)}.room-heading h1:before{right:18px;top:-9px;transform:rotate(-35deg);opacity:.85}
@media(max-width:680px){.backdrop{filter:blur(3px) sepia(.28) saturate(.75)}.vignette{background:linear-gradient(0deg,#74525f 0%,rgba(134,75,93,.18) 70%,rgba(103,50,69,.4))}.model-note{color:#fff0e9}}

.speech-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:32px;min-height:32px;padding:5px 8px;background:#f6e1e8;border:1px solid #d9aebd;border-radius:7px;color:#85455f;font:12px system-ui;cursor:pointer;box-shadow:none}.speech-button.speaking{background:#a64b6e;color:#fff4f2}.speech-status{font:12px/1.7 system-ui;color:#895e71;margin:14px 0}.word .speech-button{margin:8px 0}.note-box p{margin:8px 0 0;font-size:12px;line-height:1.7}

.helper-bubble{display:flex;gap:19px;align-items:center;padding:14px 18px;margin:22px 0;background:linear-gradient(110deg,#f6dfe5,#fff8ef);border:1px solid #ddb6c5;border-radius:14px}.helper-avatar{display:block;width:120px;height:120px;object-fit:contain;flex-shrink:0}.helper-label{font:700 9px/1.5 system-ui;letter-spacing:1.2px;color:#a45977}.helper-bubble p{font-size:14px;line-height:1.8;color:#795267;margin:9px 0 0}.helper-hint-avatar{float:left;width:65px;height:65px;object-fit:contain;margin:12px 14px 0 0}.hint:after{content:'';display:block;clear:both}@media(max-width:600px){.helper-bubble{padding:12px;gap:11px}.helper-avatar{width:88px;height:95px}.helper-bubble p{font-size:12px;line-height:1.65}.helper-label{font-size:8px;letter-spacing:.5px}}

.story-item{display:flex;align-items:center;gap:20px;margin:23px 0;padding:20px;border:1px solid #b8c5aa;border-radius:12px;background:#edf0df}.story-item strong{font-size:15px;color:#52674e}.story-item p{font-size:13px;line-height:1.8;margin:8px 0 0;color:#67745d}.jade-tag{position:relative;display:grid;place-items:center;width:47px;height:75px;flex:none;border:2px solid #95b28e;border-radius:9px;background:linear-gradient(130deg,#dce7c6,#bad0a8);box-shadow:0 4px 10px #768a6133;color:#687e58;font:29px Georgia,serif}.jade-tag:before{content:'';position:absolute;top:-8px;width:13px;height:14px;border:2px solid #ae856d;border-bottom:0;border-radius:8px 8px 0 0}@media(max-width:600px){.story-item{padding:16px;gap:15px}.story-item p{font-size:12px}}

/* Wardrobe sections and fitting controls. */
.wardrobe-section{margin:14px 0;border:1px solid #dcb5c3;border-radius:13px;background:#fff9f3;overflow:hidden}.wardrobe-section>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:52px;padding:12px 18px;box-sizing:border-box;font:20px Georgia;color:#82415b;cursor:pointer;list-style:none}.wardrobe-section>summary::-webkit-details-marker{display:none}.wardrobe-section>summary::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .15s;flex:none;margin-right:3px}.wardrobe-section[open]>summary::after{transform:rotate(225deg)}.wardrobe-section>summary:focus-visible{outline:3px solid #ae5277;outline-offset:-4px;border-radius:12px}.wardrobe-section[open]>summary{border-bottom:1px solid #e9ced7}.wardrobe-section-items{padding:0 12px}.wardrobe-section-items .wardrobe-item{margin:12px 0}.wardrobe-item{display:flex;gap:14px;padding:18px;margin:12px 0;border:1px solid #dcb5c3;border-radius:13px;background:#fff9f3}.wardrobe-item>div{min-width:0;flex:1}.wardrobe-item strong,.wardrobe-item small,.item-state{display:block;overflow-wrap:anywhere}.wardrobe-item small{font-size:12px;line-height:1.75;color:#805b6b;margin-top:7px}.wardrobe-icon{font:32px Georgia;color:#ae5277;width:34px;flex:none}.wardrobe-item.locked{opacity:.7;background:#f6e9e9}.item-state{font-size:11px;color:#9b4d70;margin:9px 0}.wardrobe-item button{min-height:44px;padding:10px 18px}.wardrobe-item button:disabled{cursor:default;opacity:.7}#detail{width:min(560px,calc(100vw - 24px));box-sizing:border-box;max-height:90svh;overflow:auto}#wardrobe-status{font-size:13px;line-height:1.7;color:#8a4260}#view-hero,#edit-hero{min-height:44px}@media(max-width:500px){.wardrobe-item{gap:10px;padding:15px}.wardrobe-icon{font-size:27px;width:28px}}
.wardrobe-icon:has(img){display:grid;place-items:center;width:64px;height:64px;border-radius:12px;background:#f6e9e9}
.wardrobe-icon img{display:block;width:58px;height:58px;object-fit:contain}
.fitting-panel h2{margin-top:12px}
.fitting-panel .primary{width:100%;margin-top:20px}
.fitting-genders{display:flex;gap:10px;flex-wrap:wrap}
.fitting-genders a{flex:1;text-align:center;text-decoration:none}
.fitting-genders a[aria-current="page"]{background:#eed2dd;border-color:#b16987}
@media(max-width:500px){.wardrobe-icon:has(img){width:52px;height:52px}.wardrobe-icon img{width:48px;height:48px}}
