:root{--ul-style-version:"1.1.27";}

/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');
*{box-sizing:border-box}body{margin:0;background:#11101b;color:#eee9f5;font-family:'Space Grotesk',system-ui,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;background:#292437;border:1px solid #494055;border-radius:9px;padding:10px 15px;transition:.2s}button:focus-visible{outline:3px solid #c7fa79;outline-offset:3px}button:disabled{opacity:.4;cursor:not-allowed}header{max-width:1450px;margin:auto;padding:28px 48px;display:flex;align-items:center;gap:40px;border-bottom:1px solid #302938}.brand{font-weight:700;letter-spacing:-1px;font-size:23px;color:white;text-decoration:none;line-height:1}.brand span{display:block;color:#c7fa79;letter-spacing:7px}.tag{font-size:11px;letter-spacing:2px;color:#aaa1b7}.tag b{display:block;margin-top:8px;font-size:9px;color:#e6c2ed}header>button{margin-left:auto}.dot{display:inline-block;background:#c7fa79;width:6px;height:6px;border-radius:50%;margin-left:8px}main{max-width:1450px;margin:auto;padding:36px 48px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}small{font-size:10px;letter-spacing:2px;color:#b7a8c9;font-weight:600}h1{font-size:clamp(28px,3.2vw,46px);line-height:1.12;letter-spacing:-2px;margin:12px 0}h1 em{color:#c7fa79;font-style:normal}.clock{border:1px solid #484052;border-radius:12px;padding:16px 24px;text-align:right;color:#cabbd8}.clock strong{display:block;font-size:27px;color:white}.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.world{overflow:hidden;background:#211c30;border:1px solid #44374e;border-radius:16px}.worldbar{display:flex;align-items:center;justify-content:space-between;padding:19px 24px}h2{font-size:21px;margin:7px 0 10px;letter-spacing:-.5px}.worldbar h2{margin-bottom:0}#scene{aspect-ratio:1.5;background:#191627;position:relative}#scene svg{width:100%;height:100%;display:block}.building{cursor:pointer;outline:none}.building:hover .roof,.building:focus .roof{fill:#c7fa79}.building text{pointer-events:none}.building:hover{filter:brightness(1.2)}.hint{padding:13px 24px;font-size:12px;color:#b4a7bf;background:#292236}aside{display:flex;flex-direction:column;gap:13px}.profile,.panel{border:1px solid #393143;border-radius:14px;background:#1c1827;padding:20px}.profile{display:grid;grid-template-columns:64px 1fr;gap:12px}.portrait{background:#4c355a;border-radius:16px;font-size:34px;display:flex;align-items:center;justify-content:center;color:#c7fa79;min-height:65px}.profile h2{margin:5px 0}.profile p{font-size:12px;color:#c1adc9;margin:0}.stats{grid-column:1/-1;display:grid;gap:12px;margin-top:8px}.stat{font-size:12px;display:grid;grid-template-columns:65px 1fr 25px;align-items:center;gap:8px}.bar,.progress{height:6px;background:#3b3049;border-radius:6px;overflow:hidden}.bar i,.progress i{display:block;height:100%;background:#c7fa79}.stat:nth-child(2) i{background:#c599ec}.panel p{font-size:13px;color:#beb0ca;line-height:1.6;margin:10px 0}.panel h2{font-size:18px}.friend{display:flex;align-items:center;gap:10px;margin-top:14px;font-size:13px}.friend span{margin-left:auto;color:#c7fa79}.friend b{font-size:21px}#save{font-size:10px;color:#93a685}.actionpanel{margin-top:20px;border:1px solid #413349;background:linear-gradient(110deg,#262032,#191622);padding:24px;border-radius:14px;display:grid;grid-template-columns:1fr 1fr;gap:24px}.actionpanel p{color:#bcaec7;font-size:14px;line-height:1.6;margin-bottom:0}#actions{display:flex;gap:8px;flex-wrap:wrap;align-content:center}#actions button{flex:1 1 140px;min-height:46px}.accent{background:#c7fa79;color:#1c2115;border-color:#c7fa79}footer{max-width:1450px;margin:auto;padding:18px 48px 30px;display:flex;justify-content:space-between;color:#82748e;font-size:10px;letter-spacing:1px}footer button{font-size:10px;padding:5px 8px;margin-left:8px}dialog{background:#211b30;color:#eee9f5;border:1px solid #816293;border-radius:20px;width:min(530px,92vw);padding:32px;max-height:85vh;overflow:auto}dialog::backdrop{background:#090811cc;backdrop-filter:blur(8px)}dialog h2{font-size:27px}dialog p{line-height:1.7;color:#c7b9d2}dialog button.choice{display:block;width:100%;text-align:left;margin:10px 0;padding:15px}.close{float:right;font-size:20px;padding:3px 10px}.post{border:1px solid #493b56;border-radius:12px;padding:16px;margin:14px 0}.post small{color:#c7fa79}.post p{font-size:14px;margin-bottom:8px}.post span{font-size:11px;color:#a694b6}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#c7fa79;color:#202518;padding:12px 20px;border-radius:10px;display:none;z-index:9;max-width:90vw} @media(max-width:1000px){header,main{padding:24px}.layout{grid-template-columns:1fr 255px}#scene{aspect-ratio:1.25}.tag{display:none}.panel,.profile{padding:15px}}@media(max-width:760px){header{padding:20px}.brand{font-size:18px}main{padding:20px 14px}.intro{gap:10px}.clock{padding:10px;font-size:11px}.clock strong{font-size:20px}.layout{grid-template-columns:1fr}#scene{aspect-ratio:1.25}aside{display:grid;grid-template-columns:1fr 1fr;gap:10px}.actionpanel{grid-template-columns:1fr;padding:20px}.worldbar{padding:15px}footer{padding:20px;gap:20px;line-height:2}h1{letter-spacing:-1px}.hint{font-size:11px;padding:12px}.panel p{font-size:12px}}
/* Original 2D style, expanded city */
#scene{aspect-ratio:800/970}#scene:has(svg[aria-label^="Interiér"]){aspect-ratio:800/590}#release-log{position:fixed;right:22px;bottom:20px;z-index:8;background:#32273e;border-color:#9b7eac;box-shadow:0 8px 25px #0004;padding:11px 18px;color:#eee5f5}.release{border-top:1px solid #493651;margin-top:22px;padding-top:20px}.release h3{font-size:18px;margin:10px 0}.release ul{padding-left:20px;color:#bfb1cb;font-size:13px;line-height:1.65}.release li{margin-bottom:7px}footer{padding-bottom:85px}.building:hover{filter:brightness(1.14)}.building:hover .roof,.building:focus .roof{fill:#9c84b0}dialog:before{content:"";position:absolute;right:-30px;top:70px;width:100px;height:240px;border:24px solid #45637440;transform:rotate(25deg);border-radius:50%;pointer-events:none}#modalcontent{position:relative}@media(max-width:760px){#scene{aspect-ratio:800/970}#release-log{right:14px;bottom:14px;padding:10px 16px}}
dialog>.close{position:sticky;top:0;z-index:3;background:#33283f;box-shadow:0 2px 10px #0003}
/* 0.4.0: illustrated neon indie world */
body{background:#0c0b12;background-image:radial-gradient(ellipse at 80% 0,#30203955,transparent 40%),radial-gradient(ellipse at 5% 60%,#19253a44,transparent 50%)}header{padding-top:21px;padding-bottom:21px;border-bottom-color:#7f527533}.brand span{color:#ee89df}small{color:#a998b3}h1 em{color:#eca0e5}h1{font-size:clamp(28px,3vw,42px)}main{padding-top:26px}.intro{margin-bottom:22px}.layout{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.world{background:#14111d;border-color:#734d7655;box-shadow:0 18px 60px #0004}.worldbar{padding:16px 22px}.worldbar h2{font-size:21px}.worldbar button{border-color:#7d507d}.worldbar small{color:#dc95d0}#scene{aspect-ratio:auto;background:#14111d}#scene:has(svg[aria-label^="Interiér"]){aspect-ratio:auto}.city-scroll{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#9a5f91 #22182a}.city-board{position:relative;aspect-ratio:3/2;min-width:640px;overflow:hidden}.city-art{width:100%;height:100%;object-fit:cover;display:block}.city-board:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 50px #07030a88}.city-hotspot{position:absolute;transform:translate(-50%,-50%);background:#0b0814cf;border:1px solid #be83b975;border-radius:6px;padding:7px 10px;box-shadow:0 3px 14px #0007;color:#f6edf8;z-index:2;white-space:nowrap;font-size:11px;backdrop-filter:blur(6px)}.city-hotspot:focus{background:#452040df;border-color:#f2a1df;box-shadow:0 0 20px #d68bbe77}.pin-dot{display:inline-block;width:5px;height:5px;background:#e3a0da;border-radius:50%;margin-right:6px;box-shadow:0 0 8px #ef9ded}.map-atmosphere{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#080612dd);padding:40px 20px 16px;font-size:9px;letter-spacing:2px;color:#e4c6e6;pointer-events:none}.map-atmosphere span{float:right;color:#bea6c7;letter-spacing:0;font-size:10px}.place-directory{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:#302038;padding:1px;border-top:1px solid #774d7950}.place-directory button{background:#1a1422;border:0;border-radius:0;text-align:left;font-size:10px;line-height:1.45;padding:10px 9px;min-height:42px;color:#cab8d3;display:flex;align-items:center;justify-content:space-between;gap:3px}.place-directory span{color:#bf78b4}.hint{font-size:11px;background:#211629;color:#ab95b7}.profile,.panel{background:linear-gradient(130deg,#1f182a,#15111e);border-color:#69476e55}.portrait{background:none;padding:0;overflow:hidden;min-height:72px}.character-face{display:inline-block;background-size:500% 100%;background-position:calc(var(--face)*25%) center;background-repeat:no-repeat;width:42px;height:48px;border-radius:10px;border:1px solid #ad729474;flex-shrink:0}.portrait .character-face{width:100%;height:100%;min-height:75px;border-radius:14px}.friend{gap:9px}.friend small{font-size:8px;letter-spacing:0;display:block;margin-top:3px;color:#9784a3}.friend span{color:#d394d1;font-size:11px}.stats .bar i,.progress i{background:#c67bc8}.stats .stat:nth-child(2) i{background:#ed729e}.stat{color:#bdafca}.actionpanel{background:linear-gradient(120deg,#2a1b31,#16111f);border-color:#73477660}.accent{background:#cf8acb;border-color:#cf8acb;color:#211025}button:focus-visible{outline-color:#eca2df}.clock{border-color:#67486d;background:#17121e99}.clock strong{color:#f3ddf3}.dot{background:#e48cd4}.illustrated-room{position:relative;aspect-ratio:3/2;background-image:none;background-size:cover;background-position:var(--room-x) var(--room-y);overflow:hidden}.room-light{position:absolute;inset:0;background:linear-gradient(#10081a55,transparent 30%,transparent 65%,#100819aa);pointer-events:none}.scene-caption{position:absolute;top:22px;left:24px;text-shadow:0 2px 10px #000}.scene-caption small{color:#e6b7de;font-size:9px}.scene-caption h3{margin:7px 0;font-size:24px}.room-person{position:absolute;left:48%;bottom:15%;display:flex;flex-direction:column;align-items:center}.room-person .character-face{width:45px;height:55px;border-color:#df9de2;box-shadow:0 0 25px #d58ee855}.room-person span:last-child{background:#140b20d9;border:1px solid #774d7e;padding:3px 9px;font-size:9px;border-radius:5px;margin-top:4px}.npc-card{position:absolute;right:7%;bottom:13%;display:flex;gap:10px;align-items:center;backdrop-filter:blur(8px);background:#160c22c9;border-color:#d093c875;font-size:13px;text-align:left}.npc-card small{display:block;font-size:9px;letter-spacing:0;margin-top:4px;color:#d193c6}.room-note{position:absolute;bottom:15px;left:24px;font-size:10px;color:#d4bddc}dialog{background:linear-gradient(145deg,#26172e,#14101e);border-color:#b476a1;box-shadow:0 25px 100px #0009}dialog:before{opacity:.3}.dialog-character{display:flex;gap:18px;align-items:center;margin:22px 0}.character-face.large{width:120px;height:140px;border-radius:15px;box-shadow:0 0 35px #e095c322}.dialog-character h2{margin:9px 0;font-size:33px;color:#e8addc}.trust{font-size:11px;color:#bc99ca}.spoken{padding:15px 0;border-top:1px solid #7e4e7650}.choice{background:#38223c;border-color:#875d8550}.phone-mode{width:430px;max-height:88vh;padding:22px;border-radius:35px;border:2px solid #8a5d96;background:#09060e;box-shadow:0 0 0 5px #201229,0 20px 100px #000}.phone-mode:before{display:none}.phone-mode>.close{border-radius:50%;position:sticky;top:0;background:#271830}.phone-status{display:flex;justify-content:space-between;font-size:10px;color:#dfcce7;padding:5px 5px 15px}.phone-brand{text-align:center;font-weight:700;font-size:26px;font-style:italic;color:#e397d9;letter-spacing:1px;padding:12px;border-bottom:1px solid #45213f}.phone-brand span{font-size:18px;margin-left:8px}.stories{display:flex;justify-content:space-between;gap:8px;padding:18px 0}.stories>div{text-align:center}.stories .character-face{border-radius:50%;width:49px;height:49px;border:2px solid #b673b4}.stories small{display:block;font-size:9px;letter-spacing:0;margin-top:6px;color:#dbbfdf}.social-post{border-top:1px solid #42223e;padding:14px 0}.post-author{display:flex;align-items:center;gap:10px;color:#e8d6ee;font-size:12px;margin-bottom:12px}.post-author .character-face{width:34px;height:34px;border-radius:50%}.post-author small{display:block;letter-spacing:0;font-size:9px;margin-top:3px;color:#997ca8}.feed-picture{height:235px;background-image:none;background-size:cover;background-position:0 0;border-radius:9px;border:1px solid #5e3858}.social-post p{font-size:12px;line-height:1.65;margin:10px 0;color:#d9c1e2}.social-actions{font-size:16px;color:#dda1cf}.phone-footnote{text-align:center;font-size:9px;color:#886a98;padding:10px}.phone-mode .choice{font-size:12px}#release-log{background:#322039;border-color:#b276a0}footer{color:#89708f}@media(max-width:1000px){.layout{grid-template-columns:minmax(0,1fr) 255px}.place-directory{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.layout{grid-template-columns:1fr}.intro{margin-bottom:18px}.city-board{min-width:670px}.city-hotspot{font-size:11px}.place-directory{grid-template-columns:repeat(3,1fr)}.place-directory button{font-size:10px;min-height:45px}.worldbar{padding:14px}.map-atmosphere span{display:none}.illustrated-room{aspect-ratio:1.12;background-size:400% 200%}.scene-caption{top:14px;left:14px}.scene-caption h3{font-size:20px}.npc-card{right:5%;bottom:13%;padding:7px;gap:5px}.npc-card .character-face{width:34px;height:41px}.room-person{left:38%}.dialog-character .large{width:95px;height:110px}.dialog-character{gap:12px}.dialog-character h2{font-size:28px}.room-note{left:14px;font-size:9px}.brand span{color:#e994df}}
.room-park,.room-skate,.room-weed{background-size:230% 230%}.room-park{background-position:100% 100%}.room-skate{background-position:50% 45%}.room-weed{background-position:25% 100%}
@media(max-width:760px){.illustrated-room{background-size:300% 200%}.room-park,.room-skate,.room-weed{background-size:230% 230%}}
.room-objects{position:absolute;left:20px;top:110px;display:flex;flex-direction:column;gap:7px;z-index:2}.room-objects button{background:#170d21cd;border-color:#9c6d9855;font-size:11px;padding:9px 13px;text-align:left;backdrop-filter:blur(8px)}@media(max-width:760px){.room-objects{left:12px;top:90px;gap:5px}.room-objects button{font-size:10px;padding:7px 10px}}
.character-face{background-size:500% auto;background-position:calc(var(--face)*25%) 40%}.illustrated-room{background-size:300% auto}.feed-picture{background-size:300% auto}@media(max-width:760px){.illustrated-room{background-size:300% auto}.room-park,.room-skate,.room-weed{background-size:230% 230%}}
.room-park,.room-skate,.room-weed{background-size:230% 230%}
#toast{background:#e4a1d7;color:#25142d;border:1px solid #f4c1e9;box-shadow:0 8px 30px #0004}

/* Kompaktní rozložení: svět rovnou pod hlavičkou, čas v pravém panelu. */
main{padding-top:18px}.sidebar-clock{text-align:left;padding:14px 18px;font-size:11px;letter-spacing:1px}.sidebar-clock strong{display:block;font-size:26px;margin-top:5px}@media(max-width:760px){main{padding-top:12px}.sidebar-clock{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:12px}.sidebar-clock strong{margin:0;font-size:23px}}

.worldbar[hidden]{display:none}.header-actions{margin-left:auto;display:flex;gap:10px;align-items:center}.city-title{position:absolute;bottom:18px;left:22px;margin:0;padding:9px 15px;background:#130c20dc;border:1px solid #a3729755;border-radius:9px;color:#f2deee;font-size:21px;pointer-events:none}.people-nav{display:flex;justify-content:space-between;align-items:center;text-align:left;background:#322039;border-color:#825576}.people-nav span{font-size:10px;color:#c5a6cb}.people-page{padding:26px;background:linear-gradient(140deg,#2b1b33,#14101e)}.people-page>h2{font-size:30px}.people-page>p{color:#bba9c6;font-size:13px}.people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:24px}.person-card{border:1px solid #694764;border-radius:14px;background:#1e1628;padding:18px}.person-card h3{margin:14px 0 8px}.person-card small{letter-spacing:1px}.person-card p{font-size:12px;line-height:1.6;color:#c9b6d1}.person-card .character-face{width:100%;height:155px;border-radius:10px}.person-card button{font-size:12px;margin-top:12px;width:100%}.person-trust{font-size:11px;color:#e4a1d6}@media(max-width:760px){header{gap:10px}.header-actions{gap:6px}.header-actions button{font-size:12px;padding:9px}.city-title{font-size:18px;left:15px;bottom:15px}.people-nav{grid-column:1 / -1}.people-page{padding:18px}.people-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.person-card{padding:12px}.person-card .character-face{height:130px}}

/* Čtyři místa v řádku a kompaktní horní navigace. */
.city-board{aspect-ratio:2/3;min-width:0}.city-art{object-fit:fill}.city-hotspot{font-size:11px;padding:8px 10px;white-space:nowrap}.header-actions{gap:8px}header{gap:22px;padding-top:18px;padding-bottom:18px;padding-right:115px}.header-clock{text-align:left;padding:10px 14px;font-size:10px;letter-spacing:.7px;flex-shrink:0}.header-clock strong{font-size:23px;margin-top:3px}#release-log{top:23px;bottom:auto;right:max(18px,calc((100vw - 1450px)/2 + 18px));padding:10px 14px}.layout{grid-template-columns:minmax(0,780px) minmax(240px,300px);justify-content:center}@media(max-width:1000px){header{gap:12px}.tag{display:none}.city-hotspot{font-size:10px;padding:6px 7px}.layout{grid-template-columns:minmax(0,1fr) 255px}}@media(max-width:760px){header{padding:16px 14px;flex-wrap:wrap;gap:12px}.brand{font-size:20px}.header-actions{margin-left:auto;margin-right:63px;gap:5px}.header-actions button{padding:8px 9px;font-size:11px}.header-clock{width:100%;display:flex;align-items:center;justify-content:space-between;padding:9px 12px}.header-clock strong{margin:0;font-size:20px}#release-log{top:17px;right:12px;padding:8px 10px;font-size:11px}.layout{grid-template-columns:1fr}.city-board{min-width:0}.city-hotspot{font-size:8px;padding:5px 4px;max-width:24%;white-space:normal}.city-title{font-size:16px;bottom:8px;left:9px;padding:6px 10px}}

/* Společné menu jako Log, původní mapa a poloviční výška času. */
.top-menu{position:fixed;top:20px;right:max(18px,calc((100vw - 1450px)/2 + 18px));display:flex;gap:8px;z-index:8}.top-menu button,.top-menu #release-log{position:static;margin:0;padding:10px 14px;font-size:13px;background:#322039;border:1px solid #b276a0;box-shadow:0 8px 25px #0004}header{padding-right:425px;min-height:82px}.header-clock{height:34px;padding:5px 10px;display:flex;align-items:center;gap:12px;margin-left:auto;font-size:9px;line-height:1;white-space:nowrap}.header-clock strong{font-size:18px;line-height:1;margin:0}.city-board{aspect-ratio:3/2;min-width:640px}.city-art{object-fit:cover}.layout{grid-template-columns:minmax(0,1fr) 300px;justify-content:normal}.city-hotspot{font-size:11px;max-width:none;white-space:nowrap}@media(max-width:1000px){header{padding-right:390px}.layout{grid-template-columns:minmax(0,1fr) 255px}}@media(max-width:760px){.top-menu{top:10px;right:12px;gap:5px}.top-menu button,.top-menu #release-log{padding:8px 10px;font-size:11px}header{padding:58px 14px 14px;min-height:0;flex-wrap:nowrap}.header-clock{width:auto;height:25px;font-size:8px;gap:8px;padding:3px 8px}.header-clock strong{font-size:15px}.layout{grid-template-columns:1fr}.city-board{min-width:670px}.city-hotspot{font-size:11px;padding:6px 7px;white-space:nowrap;max-width:none}}

.reference-face{background-image:url(assets/characters-reference.webp);background-repeat:no-repeat}.stories{overflow-x:auto;justify-content:flex-start}.stories>div{flex:0 0 49px}.person-card .reference-face{height:auto;aspect-ratio:1.1}.npc-card .reference-face{flex-shrink:0}

/* Nové kreslené tváře a postavy. */
.character-face.hd-face{background-repeat:no-repeat;background-size:200% auto;background-position:left 20%}.character-body{display:block;background-repeat:no-repeat;background-size:200% 100%;background-position:right center;aspect-ratio:1/2;flex-shrink:0}.character-duo{display:grid;grid-template-columns:1fr .7fr;gap:8px;align-items:center;border-radius:12px;background:radial-gradient(ellipse at center,#61406955,transparent 70%);min-height:240px}.person-card .character-duo .hd-face{width:100%;height:auto;aspect-ratio:1;border:1px solid #795275;border-radius:12px}.person-card .character-body{width:100%;height:auto}.room-person{left:36%;bottom:12%;pointer-events:none}.room-person .room-sprite{width:95px;height:190px;filter:drop-shadow(0 8px 4px #08041299)}.room-npc{position:absolute;bottom:12%;right:20%;padding:0;background:transparent;border:0;display:flex;align-items:center;flex-direction:column;z-index:2}.room-npc .room-sprite{width:95px;height:190px;filter:drop-shadow(0 8px 4px #08041299);transition:filter .2s}.room-npc:hover{background:transparent;border:0}.room-npc:hover .room-sprite{filter:drop-shadow(0 0 8px #d895cd)}.room-npc>span:last-child{background:#140b20e6;border:1px solid #8b6088;border-radius:7px;padding:5px 9px;font-size:11px}.room-npc small{display:block;letter-spacing:0;font-size:9px;color:#deb0d9;margin-top:3px}.character-profile{padding:26px;background:linear-gradient(140deg,#2d1c35,#15101f)}.character-profile>small{display:block;margin-top:22px;text-transform:uppercase}.character-profile>h2{font-size:32px;margin:10px 0 22px}.profile-art{display:grid;grid-template-columns:1fr 1fr;gap:20px}.profile-art>div{padding:15px;border:1px solid #694668;border-radius:15px;background:radial-gradient(ellipse at center,#62427388,#1c142900 70%)}.art-label{display:block;font-size:9px;letter-spacing:2px;color:#cb9bcc;margin-bottom:12px}.profile-art .profile-face{display:block;width:100%;height:auto;aspect-ratio:1;border:0;border-radius:13px}.profile-art .profile-body{width:100%;height:auto;max-height:500px}.profile-story p{font-size:14px;line-height:1.7;color:#c9b5d4}.profile-story h3{margin-top:23px;font-size:15px}.profile-story{margin-top:24px}.room-objects{z-index:3}.stories .hd-face{background-position:left 20%}@media(max-width:760px){.character-duo{min-height:160px}.room-person{left:28%;bottom:11%}.room-person .room-sprite,.room-npc .room-sprite{width:70px;height:140px}.room-npc{right:16%;bottom:11%}.character-profile{padding:17px}.profile-art{gap:10px}.profile-art>div{padding:10px}.profile-art .profile-body{max-height:none}.character-profile>h2{font-size:27px}}
/* Sady mají detail tváře ve dvou levých třetinách a postavu v pravé třetině. */
.character-face.hd-face{background-size:150% auto;background-position:left 20%}.character-body{background-size:300% 100%;aspect-ratio:1/3}.room-person .room-sprite,.room-npc .room-sprite{width:65px;height:195px}.person-card .character-body{max-width:90px;justify-self:center}.profile-art .profile-body{width:min(100%,166px);max-height:none;margin:auto}.stories .hd-face{background-position:left 20%}@media(max-width:760px){.room-person .room-sprite,.room-npc .room-sprite{width:47px;height:141px}.person-card .character-body{max-width:62px}.profile-art .profile-body{width:min(100%,110px)}}
.character-body{clip-path:polygon(0 0,100% 0,100% 100%,20% 100%,20% 55%,0 45%)}.room-person{left:49%;bottom:9%}@media(max-width:760px){.room-person{left:43%;bottom:9%}}

/* 0.8: independent floating controls and personal journal. */
body{padding-right:112px}.top-menu{top:auto;bottom:22px;right:16px;display:flex;flex-direction:column;gap:9px;z-index:8}.top-menu button,.top-menu #release-log{width:96px;min-height:42px;text-align:left;padding:10px 12px;border-radius:10px;transition:transform .18s,background .18s,box-shadow .18s}header{padding:20px 48px;min-height:82px}.header-clock{margin-left:auto}.feeling-panel{margin-top:18px;padding:24px;border:1px solid #73477660;border-radius:14px;background:linear-gradient(120deg,#2a1b31,#16111f)}.feeling-panel p{color:#bcaec7;line-height:1.6}.feeling-form{width:100%;display:grid;gap:10px}.rating-guide{font-size:12px!important;margin:0!important}.feeling-stars{display:flex;flex-wrap:wrap;gap:6px}#actions .feeling-stars button,.feeling-stars button{flex:0 0 auto;min-height:38px;padding:8px;font-size:13px;color:#e6b1dc}.feeling-stars button[aria-pressed=true]{background:#cf8acb;color:#211025;border-color:#f4b8ec;box-shadow:0 0 15px #cf8acb44}.feeling-label{font-size:12px;color:#dfc2e5}.feeling-label span{color:#a68cab}#feeling-note{width:100%;resize:vertical;background:#140f1e;border:1px solid #765477;border-radius:8px;padding:10px;color:#eee9f5;font:inherit;font-size:13px}#feeling-note:focus{outline:2px solid #eca2df}.feeling-saved{color:#dca1d4!important}#rating-selection{font-size:11px;color:#b798c0}.diary-page{padding:30px;min-height:450px}.diary-page>h2{font-size:32px;margin:10px 0}.diary-page>p{color:#bcaec7}.diary-entries{display:grid;gap:16px;margin-top:26px}.diary-entry{background:#25172d;border:1px solid #79507877;border-radius:12px;padding:20px}.diary-entry h3{font-size:19px;line-height:1.4}.diary-rating{color:#eaa4de;letter-spacing:2px}.diary-rating span{font-size:12px;color:#cbb3d2;letter-spacing:0}.diary-context{font-size:12px;color:#ac91b5;line-height:1.6}.diary-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:#f0deef;border-left:2px solid #cc8bc6;padding-left:14px}.diary-empty{text-align:center;padding:40px 10px;color:#cda8d1}body:has(.diary-page) .actionpanel{grid-template-columns:1fr 1fr}@media(max-width:1000px){header{padding:20px 24px}}@media(max-width:760px){body{padding-right:78px}.top-menu{right:7px;bottom:12px;top:auto;gap:7px}.top-menu button,.top-menu #release-log{width:66px;padding:9px 6px;font-size:10px;min-height:38px}.top-menu .dot{display:none}header{padding:16px 12px;flex-wrap:wrap;gap:10px}.header-clock{margin-left:0}.brand{font-size:17px}aside{grid-template-columns:1fr}.feeling-panel,.diary-page{padding:18px}.feeling-stars{gap:4px}#actions .feeling-stars button,.feeling-stars button{font-size:11px;padding:7px 5px}body:has(.diary-page) .actionpanel{grid-template-columns:1fr}footer{flex-wrap:wrap;padding:14px}}

.top-menu button{display:flex;align-items:center;gap:4px}.top-menu .dot{flex-shrink:0;margin:0}

/* 0.9: centered controls, aligned portraits, sharp individual backgrounds. */
.top-menu{top:50%;bottom:auto;transform:translateY(-50%);gap:7px;max-height:calc(100dvh - 20px);overflow-y:auto;overflow-x:hidden;padding:5px}.top-menu button,.top-menu #release-log{min-height:38px;padding:9px 9px;width:99px;font-size:12px}.friend{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:10px}.friend>.character-face{margin:0!important;width:42px;height:48px;justify-self:start;display:block}.friend>div{min-width:0}.friend>span:last-child:not(.character-face){margin:0;text-align:right;justify-self:end}.chapter-panel{margin:0;border-radius:0;border:0;border-bottom:1px solid #73477660;padding:13px 20px;display:grid;grid-template-columns:auto 1fr;column-gap:22px;align-items:center}.chapter-panel h2{font-size:17px;margin:3px 0}.chapter-panel small{font-size:8px}.chapter-panel p{grid-column:2;grid-row:1/3;margin:0;font-size:12px;line-height:1.4}.chapter-panel .progress{grid-column:1/-1;margin-top:9px;height:3px}.chapter-panel[hidden],.hint[hidden]{display:none}.illustrated-room{background-size:cover;background-position:center center;aspect-ratio:3/2;image-rendering:auto}.room-light{opacity:.65}.feed-picture{background-image:url('assets/perf-v14/home-v3/bedroom.webp');background-size:cover;background-position:center}.compact-checkin{padding:13px 18px;gap:15px;margin-top:12px}.compact-checkin h2,.feeling-panel h2{font-size:18px;margin:7px 0}.compact-checkin p,.feeling-panel p{font-size:12px;line-height:1.4;margin:5px 0}.compact-checkin small{font-size:8px}.feeling-panel{padding:13px 18px;margin-top:12px}.feeling-form{grid-template-columns:1fr auto;gap:6px;align-items:center}.rating-guide{grid-column:1/-1;font-size:10px!important}.feeling-stars{grid-column:1;grid-row:2;gap:5px;flex-wrap:nowrap}.feeling-stars button,#actions .feeling-stars button{width:29px;min-height:29px;height:29px;padding:4px;font-size:17px;flex:none}.feeling-stars .lit{color:#ffcef0;background:#58354c;border-color:#b978a8}.feeling-extra{grid-column:1/-1;font-size:11px;color:#b798c0}.feeling-extra summary{cursor:pointer;display:inline-block;padding:2px}.feeling-extra summary:hover{color:#ecc3e5}#actions #save-feeling,#save-feeling{grid-column:2;grid-row:2;min-height:30px;font-size:11px;padding:7px 10px;flex:none}#rating-selection{display:none}.feeling-saved{margin:0!important;font-size:12px!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.history-since{font-size:11px!important;color:#9d81a9!important}.diary-entry{padding:15px}.diary-entry h3{font-size:16px;margin:10px 0}.diary-entry blockquote{margin:8px 0;padding:10px;border-left:2px solid #c381b8;color:#dcc2e3}@media(max-width:760px){.top-menu{top:50%;bottom:auto;right:3px;gap:6px;padding:4px}.top-menu button,.top-menu #release-log{width:67px;min-height:34px;padding:8px 4px;font-size:9px}.chapter-panel{display:block;padding:11px 13px}.chapter-panel p{font-size:11px;margin-top:6px}.chapter-panel h2{font-size:16px}.compact-checkin{padding:12px;gap:8px}.compact-checkin h2,.feeling-panel h2{font-size:16px}.compact-checkin #description{display:none}.feeling-form{grid-template-columns:1fr}.feeling-stars{grid-column:1;grid-row:2}.feeling-extra{grid-row:4}#actions #save-feeling,#save-feeling{grid-column:1;grid-row:3;justify-self:start}.feeling-panel{padding:12px}.illustrated-room{background-size:cover;aspect-ratio:1.12}.friend{grid-template-columns:42px minmax(0,1fr) 42px}}

@media(max-width:760px){.compact-checkin h2{margin:5px 0}.feeling-form{grid-template-columns:1fr auto;gap:5px}.feeling-stars{grid-column:1;grid-row:2;gap:3px}.feeling-stars button,#actions .feeling-stars button{width:23px;height:27px;min-height:27px;padding:3px;font-size:15px}#actions #save-feeling,#save-feeling{grid-column:2;grid-row:2;min-height:27px;padding:5px 7px;font-size:10px}.feeling-extra{grid-column:1/-1;grid-row:3}.rating-guide{font-size:10px!important}.compact-checkin{gap:5px}}

/* Eight independent city illustrations, one persistent appearance preference. */
.map-style-toolbar{display:flex;gap:10px;align-items:center;padding:10px 16px;background:#1b1425;border-bottom:1px solid #70476c66}.map-style-toolbar label{font-size:11px;color:#bda5c9;white-space:nowrap}.map-style-toolbar select{min-width:0;flex:1;font:inherit;font-size:12px;color:#f0ddea;background:#302036;border:1px solid #815577;border-radius:8px;padding:8px;cursor:pointer}.map-style-toolbar select:focus-visible{outline:2px solid #eca2df}.map-style-toolbar button{font-size:11px;padding:8px 10px;white-space:nowrap}.map-styles-modal{width:min(940px,94vw);max-height:90dvh}.map-style-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.style-card{padding:0;overflow:hidden;text-align:left;background:#211529;border-color:#765071;display:flex;flex-direction:column;position:relative}.style-card img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover}.style-card strong{font-size:13px;padding:11px 12px 4px}.style-card span{font-size:11px;line-height:1.45;padding:0 12px 13px;color:#bda4c8}.style-card em{position:absolute;top:8px;right:8px;font-style:normal;font-size:10px;padding:4px 7px;background:#d09acb;color:#231329;border-radius:5px}.style-card[aria-pressed=true]{border-color:#efb5df;box-shadow:0 0 0 1px #efb5df}.map-sketch .city-hotspot,.map-watercolor .city-hotspot{background:#251b20e8;color:#fff2e6;border-color:#b4a593}.map-sketch .pin-dot{background:#c9b193}.map-sketch .city-title,.map-watercolor .city-title{background:#27202ae6}@media(max-width:760px){.map-style-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;padding:10px}.map-style-toolbar label{font-size:10px}.map-style-toolbar select{font-size:11px;width:100%;padding:7px}.map-style-toolbar button{grid-column:1/-1;padding:6px 9px;font-size:10px;justify-self:start}.map-style-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.map-styles-modal{padding:22px 16px}.style-card strong{font-size:12px;padding:9px 8px 4px}.style-card span{font-size:10px;padding:0 8px 10px}}
/* 0.11 · shared story, relationships, home rooms and inline interactions */
footer #release-log{position:static;inset:auto;transform:none;box-shadow:none;padding:5px 8px;font-size:10px;margin-left:8px;display:inline-block}footer{padding-bottom:26px;align-items:center;gap:12px}footer>span:last-child{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px}.top-menu button{width:99px}.stats{gap:9px}.stat{grid-template-columns:106px minmax(20px,1fr) 25px;font-size:10px;gap:6px;line-height:1.3}#manual-save{grid-column:1/-1;min-height:34px;font-size:12px;padding:7px 12px}.stat:nth-child(3) i{background:#b67ee0}.stat:nth-child(4) i{background:#ed78a8}.stat:nth-child(5) i{background:#61b6dc}.stat:nth-child(6) i{background:#62c7a4}.stat:nth-child(7) i{background:#e5ba68}.friend-link{width:100%;text-align:left;background:transparent;border:0;padding:0;grid-template-columns:42px minmax(0,1fr) 34px}.friend-link>span{margin-left:0}.friend-link>.hd-face{width:42px;height:48px}.friend-link>span:last-child{text-align:right;font-size:12px}.friend-link small{line-height:1.3}.bond-stats{display:grid;gap:8px;margin:15px 0}.bond-stats>div{display:grid;grid-template-columns:70px minmax(30px,1fr) 54px;gap:8px;align-items:center;font-size:11px}.bond-stats strong{font-size:10px;color:#dbadcf;font-weight:500;text-align:right}.bond-stats meter{width:100%;height:9px;accent-color:#c487be}.bond-stats meter::-webkit-meter-bar{background:#3a2a46;border:0;border-radius:6px}.bond-stats meter::-webkit-meter-optimum-value{background:#c487be;border-radius:6px}.bond-stats>div:nth-child(2) meter::-webkit-meter-optimum-value{background:#73bea7}.bond-stats>div:nth-child(3) meter::-webkit-meter-optimum-value{background:#e080a7}.interest-tags{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0}.interest-tags span{background:#312237;border:1px solid #76506a77;border-radius:99px;padding:5px 9px;font-size:10px;color:#d8b8d4}.people-divider{border:0;border-top:1px solid #825777;margin:36px 0 24px}.people-page>h3{font-size:16px;color:#ddbfdd}.person-card p{font-size:12px;line-height:1.6}.interest-picker{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;padding:10px 0}.interest-picker label{font-size:12px;display:flex;gap:7px;align-items:center}.interest-picker input{accent-color:#c487be}.save-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:22px 0}.save-slots article{padding:12px;border:1px solid #73506c;border-radius:10px}.save-slots h3{font-size:15px;margin:0}.save-slots p{font-size:10px;line-height:1.6}.save-slots button{width:100%;padding:8px 5px;font-size:11px;margin:5px 0}.save-file{border-top:1px solid #573752;padding-top:16px;display:grid;gap:16px}.save-file label{display:grid;gap:9px;font-size:12px}.save-file input{font:inherit;font-size:11px;max-width:100%}.illustrated-room{background-size:cover;background-position:center;isolation:isolate}.scene-caption{top:16px;left:18px;max-width:calc(100% - 36px)}.scene-caption h3{font-size:21px}.scene-caption small{font-size:8px}.room-objects{left:12px;top:85px;bottom:14px;width:155px;display:flex;flex-direction:column;gap:6px;overflow-y:auto;scrollbar-width:thin;z-index:3}.room-objects button{flex-shrink:0;max-width:100%;white-space:normal;text-align:left;background:#160e20e8;font-size:10px;padding:8px 9px;border-color:#986c9366;line-height:1.4}.room-options{position:absolute;z-index:5;right:15px;top:65px;bottom:15px;width:min(390px,calc(100% - 182px));background:#170f22ef;border:1px solid #c188b4;border-radius:14px;padding:18px;overflow:auto;box-shadow:0 12px 50px #0009;scrollbar-width:thin}.inline-close{position:sticky;top:0;float:right;font-size:18px;padding:0 7px;z-index:2}.room-options h2{font-size:20px}.room-options p{font-size:12px;color:#d7c1de;line-height:1.6}.room-options .choice{display:block;width:100%;font-size:11px;text-align:left;margin-top:8px;padding:9px}.room-options .dialog-character .large{width:62px;height:70px}.room-options .dialog-character small{font-size:8px;letter-spacing:.5px}.room-options .bond-stats{gap:5px}.room-options .bond-stats>div{font-size:9px;grid-template-columns:57px 1fr 45px}.room-options .bond-stats strong{font-size:8px}.room-options .phone-frame{width:100%;max-width:100%;padding:10px;border-radius:12px;max-height:100%;overflow:auto}.room-options .stories{overflow-x:auto}.room-options .stories>div{flex-shrink:0}.room-tabs{display:flex;flex-wrap:wrap;gap:7px;padding:12px;background:#211529;border-top:1px solid #614057}.room-tabs button{flex:1 1 90px;font-size:11px;padding:9px 5px}.room-tabs button[aria-pressed=true]{background:#c487be;color:#241126;border-color:#e7ade1}.local-roster{display:grid;gap:8px}.local-roster button{display:flex;align-items:center;gap:10px;text-align:left;padding:8px;font-size:12px}.local-roster .hd-face{width:42px;height:48px}.local-roster small{display:block;font-size:9px;letter-spacing:0;margin-top:4px}.actionpanel.room-actionpanel{display:none}.city-hotspot{padding:5px 8px;font-size:10px;transform:translate(-50%,-50%);backdrop-filter:none}.city-art{image-rendering:auto;filter:none}.city-board:after{box-shadow:inset 0 0 24px #07030a44}.pin-dot{display:none}.room-light{opacity:.28}body:has(.people-page) aside,body:has(.character-profile) aside,body:has(.diary-page) aside{align-self:start;position:sticky;top:15px}body:has(.people-page) .actionpanel,body:has(.character-profile) .actionpanel{display:none}
@media(max-width:1000px){.stat{grid-template-columns:98px 1fr 23px;font-size:9px}.room-options{right:10px;width:calc(100% - 164px);padding:13px}.room-objects{width:140px}}
@media(max-width:760px){.top-menu button{width:67px}.room-objects{left:7px;top:65px;bottom:8px;width:92px;gap:4px}.room-objects button{font-size:9px;padding:6px;min-height:30px}.room-options{top:60px;right:6px;bottom:7px;width:calc(100% - 111px);padding:9px}.room-options h2{font-size:15px}.room-options p{font-size:10px}.room-options .choice{font-size:9px;padding:7px}.room-options .dialog-character{display:block}.room-options .dialog-character .large{width:40px;height:42px;float:left;margin-right:7px}.room-options .bond-stats>div{grid-template-columns:1fr 38px;font-size:8px;gap:4px}.room-options .bond-stats meter{display:none}.room-options .bond-stats strong{font-size:7px}.scene-caption{top:12px;left:10px}.scene-caption h3{font-size:17px}.room-tabs{gap:5px;padding:8px}.room-tabs button{font-size:9px;flex:1 1 65px;padding:7px 4px}.save-slots{grid-template-columns:1fr}.save-slots article{display:grid;grid-template-columns:1fr 1fr;gap:5px}.save-slots h3,.save-slots p{grid-column:1/-1}.interest-picker{grid-template-columns:1fr}.bond-stats>div{grid-template-columns:61px 1fr 49px;font-size:10px;gap:5px}.person-card .bond-stats>div{grid-template-columns:1fr 49px}.person-card .bond-stats meter{display:none}.friend-link>span:last-child{font-size:11px}body:has(.people-page) aside,body:has(.character-profile) aside,body:has(.diary-page) aside{position:static}.city-hotspot{font-size:9px;padding:4px 6px}.room-person{left:42%}.room-npc{right:15%}.local-roster button{flex-wrap:wrap}.room-options .local-roster button{font-size:10px}.room-options .local-roster small{font-size:8px}footer>span:last-child{justify-content:flex-start}}
.modal-chapter{border-bottom:1px solid #67476b;padding:0 0 10px;margin:0 0 18px}.modal-chapter small{font-size:8px;letter-spacing:1px}.modal-chapter p{font-size:10px;line-height:1.5;margin:7px 0 0;color:#bba1c9}.room-options .modal-chapter{display:none}
/* 0.12 — příběh, komiks a místnosti */
header #mapbtn{margin-left:auto;padding:7px 11px;font-size:12px;white-space:nowrap}.header-clock{margin-left:8px}.chapter-panel{display:flex;flex-wrap:wrap;gap:9px 16px;padding:20px 22px;background:linear-gradient(120deg,#46283f,#252037);border-bottom:2px solid #cd91c5}.chapter-panel>small{width:100%;font-size:12px;letter-spacing:2px;color:#f9c8ed}.chapter-panel h2{font-size:22px;width:100%;margin:0}.chapter-panel p{font-size:15px;line-height:1.55;flex:1;min-width:180px}.chapter-panel .progress{width:100%;height:5px}.chapter-panel #guide-next{font-size:13px;padding:10px 13px}.modal-chapter small{font-size:10px}.map-hotspot{font-size:12px!important}.room-objects button{font-size:12px!important}footer #adminbtn,footer #release-log,footer #help,footer #reset{background:#292437;border:1px solid #494055;color:#e5d9ed;margin:0;padding:7px 10px;font-size:11px}footer #adminbtn:hover,footer #help:hover,footer #reset:hover{background:#4b3558;border-color:#9b7eac}footer #manual-save{width:auto;min-height:30px;padding:7px 10px}#previous-step{border-top:1px solid #59425e;padding-top:10px;font-size:11px;color:#bfa9cb}.friend-link{grid-template-columns:56px minmax(0,1fr) 30px;gap:9px}.friend-link>.hd-face{width:56px;height:63px;background-size:150% auto;background-position:left 28%;border:1px solid #b884ac;border-radius:9px}.profile #portrait{width:85px;height:96px}.profile #portrait .hd-face{width:85px;height:96px;background-position:left 28%}.profile{grid-template-columns:85px 1fr}.rename-person{margin-top:8px;font-size:11px}#person-name{display:block;width:100%;padding:12px;margin-top:8px;background:#1a1424;color:#fff;border:1px solid #c98cbb;border-radius:8px}#rename-error{color:#ffacc9;font-size:12px}.illustrated-room{background:none;isolation:isolate}.room-viewport{position:absolute;inset:0;overflow:hidden;touch-action:pan-y;z-index:0}.room-stage{position:absolute;inset:0;background-size:100% 100%;transform-origin:center;will-change:transform}.room-viewport.zoomed{cursor:grab;touch-action:none}.room-viewport:active{cursor:grabbing}.room-stage .room-person,.room-stage .room-npc{position:absolute;padding:0;margin:0;display:block;background:transparent;border:0;z-index:2}.room-stage .room-sprite{width:100%;height:100%;background-size:300% 100%;aspect-ratio:1/3}.room-person>span:last-child,.room-npc>span:last-child{position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:10px;padding:3px 6px;background:#140b20e8;border-radius:6px}.room-stage .behind-counter .room-sprite{clip-path:polygon(0 0,100% 0,100% 57%,0 57%)}.room-objects,.scene-caption{z-index:4}.camera-tools{position:absolute;right:12px;bottom:28px;display:flex;align-items:center;gap:4px;z-index:5;background:#181020e8;padding:4px;border-radius:8px}.camera-tools button{padding:4px 8px;font-size:14px}.camera-tools span{font-size:10px;min-width:40px;text-align:center}.camera-hint{position:absolute;bottom:7px;right:10px;font-size:9px;color:#f0d8ec;background:#171021b8;padding:3px 6px;z-index:4}.movable-prop{position:absolute;width:7%;min-width:27px;max-width:75px;aspect-ratio:80/85;transform:translate(-50%,-50%);padding:0;background:transparent;border:0;cursor:grab;touch-action:none;z-index:3;filter:drop-shadow(0 3px 2px #10091c)}.movable-prop svg{width:100%;height:100%;display:block}.movable-prop:hover,.movable-prop:focus-visible{background:#bd8acf22;outline:2px dashed #ecc8e9;outline-offset:2px}.movable-prop:active{cursor:grabbing}.comic-diary{padding:24px;background:#201726}.comic-diary>h2{font-size:29px;margin:9px 0}.comic-diary>p{font-size:13px;line-height:1.6;color:#cfbbd8}.comic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}.comic-panel{position:relative;border:2px solid #a77caa;border-radius:4px;background:linear-gradient(145deg,#432b47,#241c30);padding:16px;box-shadow:4px 4px 0 #100d19;overflow:hidden}.comic-time{font-size:10px;line-height:1.5;color:#e0c2df;border-bottom:1px solid #a47da6;padding-bottom:9px}.comic-cast{display:flex;gap:15px;justify-content:space-around;margin:12px 0;background:radial-gradient(ellipse at center,#b1679b44,transparent 70%)}.comic-cast figure{margin:0;text-align:center}.comic-face{display:block;width:90px;height:100px;border-radius:12px;background-position:left 28%!important}.comic-cast figcaption{font-size:12px;margin-top:5px;color:#efd3e7}.speech{position:relative;background:#ecdcf0;color:#332239;border-radius:16px;margin:12px 0;padding:13px;font-size:13px;line-height:1.55;border:1px solid #ffedf5}.speech b{display:block;font-size:11px;margin-bottom:5px}.player-speech{background:#bf9cc7;margin-left:20px}.comic-caption{font-size:14px;line-height:1.6;color:#f5dfec}.comic-impact{display:flex;flex-wrap:wrap;gap:5px}.comic-impact span{font-size:10px;background:#282136;border:1px solid #9578a3;border-radius:5px;padding:5px 7px;color:#d3eddf}.comic-archive{font-size:10px;line-height:1.5;color:#ac93b9}.comic-stars{color:#f9c578}.room-options{z-index:7}
@media(max-width:760px){header #mapbtn{font-size:10px;padding:5px 7px;margin-left:0}.chapter-panel{padding:15px 13px;gap:8px}.chapter-panel>small{font-size:10px}.chapter-panel h2{font-size:19px}.chapter-panel p{font-size:13px}.chapter-panel #guide-next{font-size:11px}.map-hotspot{font-size:10.8px!important}.room-objects button{font-size:10.8px!important}.room-stage{background-size:cover;background-position:center}.illustrated-room{aspect-ratio:3/2}.camera-hint{font-size:7px;max-width:65%;text-align:right}.camera-tools{right:6px;bottom:24px}.camera-tools button{padding:3px 5px;font-size:12px}.comic-grid{grid-template-columns:1fr}.comic-diary{padding:13px}.comic-face{width:78px;height:87px}.room-stage .room-person>span:last-child,.room-stage .room-npc>span:last-child{font-size:8px;padding:2px 4px}.room-npc small{font-size:7px}.room-objects{top:58px;bottom:47px}.scene-caption h3{font-size:15px}.scene-caption{top:10px}.comic-diary>h2{font-size:24px}}
.actionpanel.page-actionpanel{display:none}
.room-stage .behind-counter>span:last-child{top:58%}
@media(max-width:760px){.room-objects{bottom:15px}.camera-tools{z-index:5}.room-options{z-index:7}}
.comic-cast{gap:10px}.comic-cast figure{flex:0 1 90px;min-width:0}.comic-face{width:100%;height:auto;aspect-ratio:9/10}.comic-cast figcaption{overflow-wrap:anywhere}@media(max-width:760px){.comic-cast{gap:7px}.comic-cast figure{flex-basis:78px}.comic-face{width:100%;height:auto}}

.character-face.hd-face.optimized-face{background-size:cover!important;background-position:center!important}


/* world-v13.css */
#pausebtn{padding:7px 11px;font-size:12px;white-space:nowrap}#pausebtn[aria-pressed=true]{background:#d4a76b;color:#251727;border-color:#f5cc91}.header-clock{margin-left:0}header{gap:12px}.chapter-panel{display:grid;grid-template-columns:1fr auto;gap:4px 16px;padding:13px 20px;background:#241c30;border-bottom:1px solid #795b7f}.chapter-panel>small{grid-column:1;grid-row:1;font-size:9px;letter-spacing:1.6px;color:#cfabce}.chapter-panel h2{grid-column:1;grid-row:2;font-size:17px;margin:0}.chapter-panel p{grid-column:1;grid-row:3;font-size:12px;line-height:1.45;min-width:0;margin:3px 0}.chapter-panel #guide-next{grid-column:2;grid-row:1/4;align-self:center;font-size:11px;padding:9px 12px}.chapter-panel .progress{grid-column:1/-1;grid-row:4;height:3px;margin-top:5px}.room-stage{background-size:100% 100%!important;background-position:center;filter:none}.room-stage .room-sprite{clip-path:polygon(0 0,100% 0,100% 100%,20% 100%,20% 55%,0 45%);filter:drop-shadow(1px 3px 1px #100c1880)}.room-stage .room-person{pointer-events:none}.room-person>span:last-child,.room-npc>span:last-child{font-size:9px;padding:2px 5px}.room-npc small{font-size:8px}.room-npc:hover .room-sprite{filter:drop-shadow(0 0 3px #f9b8e4)}.movable-prop{aspect-ratio:1;filter:drop-shadow(4px 6px 3px #110c1780);overflow:visible}.illustrated-prop{display:block;width:100%;height:100%;background-repeat:no-repeat;position:relative;z-index:2}.prop-lamp:before,.prop-candle:before{content:'';position:absolute;inset:-90%;background:radial-gradient(ellipse,#ffd59058 0,#ffcf6730 24%,transparent 65%);pointer-events:none;mix-blend-mode:screen}.prop-lamp:after,.prop-candle:after{content:'';position:absolute;left:-55%;top:60%;width:230%;height:100%;background:radial-gradient(ellipse,#ffb84844,transparent 70%);transform:skewX(-25deg);pointer-events:none}.character-age,.whereabouts{font-size:12px;color:#c9add0}.simulation-paused .illustrated-room:after{content:'Ⅱ POZASTAVENO';position:absolute;right:10px;top:12px;background:#261a20ec;border:1px solid #daa663;color:#f4d3a3;padding:5px 8px;font-size:10px;z-index:9;border-radius:6px;pointer-events:none}.simulation-paused .room-npc,.simulation-paused .movable-prop{pointer-events:none}.printed-comic{background:#e6dcc7;color:#211b27;padding:24px;font-family:Georgia,'Times New Roman',serif;background-image:radial-gradient(#b5a28c33 .6px,transparent .6px);background-size:4px 4px}.printed-comic>small{font-family:Arial,sans-serif;color:#504352;font-size:9px;letter-spacing:1.8px}.printed-comic>h2{font-size:38px;font-weight:900;text-transform:uppercase;font-style:italic;color:#282031;border-bottom:3px solid #29222f;padding-bottom:10px;text-shadow:1px 1px #fff}.printed-comic .comic-intro{font-size:12px;color:#554756}.print-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:20px}.print-panel{border:3px solid #211b28;background:#fbf4e5;box-shadow:2px 3px 0 #b8a591;overflow:hidden;position:relative;align-self:start}.print-panel:nth-child(3n){grid-column:1/-1}.print-label{background:#f8de8e;color:#29212b;font:700 9px/1.5 Arial,sans-serif;letter-spacing:.4px;padding:5px 9px;border-bottom:2px solid #211b28}.print-scene{position:relative;min-height:345px;isolation:isolate;overflow:hidden;background:#b0a0ac}.print-scene:before{content:'';position:absolute;inset:0;background-image:var(--comic-scene);background-size:cover;background-position:center;filter:grayscale(.75) contrast(1.3);opacity:.7;z-index:-2}.print-scene:after{content:'';position:absolute;inset:0;background:radial-gradient(#2a172e38 .7px,transparent .7px);background-size:3px 3px;pointer-events:none;z-index:-1}.print-dialogues{position:relative;display:grid;gap:8px;padding:12px;z-index:2}.print-balloon{position:relative;background:#fffaf0;color:#1b1620;border:2px solid #251c2b;border-radius:47% 44% 43% 38% / 28% 30% 31% 26%;box-shadow:2px 3px 0 #21152755;padding:14px 18px;margin:0 8px 13px 0;font:12px/1.45 'Trebuchet MS',Arial,sans-serif}.print-balloon:after{content:'';position:absolute;bottom:-13px;left:32px;border-top:14px solid #251c2b;border-right:17px solid transparent}.print-balloon:before{content:'';position:absolute;bottom:-9px;left:34px;border-top:12px solid #fffaf0;border-right:13px solid transparent;z-index:1}.print-balloon b{display:block;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.7px;margin-bottom:5px}.player-balloon{margin-left:15px;margin-right:0;background:#fff3bd}.player-balloon:before{border-top-color:#fff3bd}.player-balloon:after,.player-balloon:before{left:auto;right:30px;transform:scaleX(-1)}.print-cast{position:relative;display:flex;align-items:end;justify-content:space-around;gap:2px;height:210px;padding:0 5px;margin-top:0;z-index:1}.print-figure{height:100%;width:auto;aspect-ratio:.3;flex:0 0 auto;background-repeat:no-repeat;filter:drop-shadow(2px 2px 0 #24152555)}.print-figure:nth-child(2){height:97%;transform:scaleX(-1)}.print-cast:has(.print-figure:nth-child(3)){gap:0}.fallback-figure .character-body{height:100%;width:100%;filter:grayscale(1) contrast(1.5)}.print-narration{font-size:12px;line-height:1.5;margin:0;padding:10px;background:#f8eac6;border-top:2px solid #211b28}.print-impact,.print-feeling{font:10px/1.5 Arial,sans-serif;margin:0;padding:7px 10px;color:#35223a;background:#eddbc2;border-top:1px solid #977f81}.print-archive{display:block;font:9px/1.4 Arial,sans-serif;padding:7px 10px;color:#63565b}.printed-comic button{background:#312537;color:#f5e6cf;border-color:#867183;margin-top:15px}.comic-empty{padding:30px 0;color:#504352}.scene-caption{max-width:calc(100% - 145px)}
@media(max-width:760px){#pausebtn{font-size:10px;padding:5px 7px}header{gap:8px}.chapter-panel{padding:11px 13px;gap:5px}.chapter-panel h2{font-size:15px}.chapter-panel p{font-size:11px}.chapter-panel #guide-next{grid-column:1;grid-row:auto;justify-self:start;padding:6px 9px;font-size:10px}.chapter-panel>small{font-size:8px}.printed-comic{padding:11px}.printed-comic>h2{font-size:27px}.print-pages{grid-template-columns:1fr;gap:12px}.print-panel:nth-child(3n){grid-column:auto}.print-balloon{font-size:11px;padding:12px 14px}.print-scene{min-height:320px}.print-dialogues{padding:9px}.print-cast{height:210px}.room-stage .room-person>span:last-child,.room-stage .room-npc>span:last-child{font-size:7px}.room-npc small{display:none}.scene-caption{max-width:calc(100% - 100px)}.movable-prop{min-width:23px}}
/* Keep zoom controls away from the floor and let their non-button gaps pass dragging through. */
.camera-tools{top:12px;bottom:auto;pointer-events:none}.camera-tools button{pointer-events:auto}.camera-hint,.scene-caption{pointer-events:none}
@media(max-width:760px){.camera-tools{top:9px;bottom:auto}.scene-caption{max-width:calc(100% - 145px)}}
/* Stable header geometry and accessible protagonist portrait. */
.header-controls{display:flex;align-items:center;gap:10px;margin-left:auto;flex:0 0 auto}.header-controls #mapbtn{margin:0!important}.header-controls #pausebtn{width:92px;flex:0 0 92px}.header-controls #clock{box-sizing:border-box;width:190px;min-width:190px;max-width:190px;margin:0;display:flex;gap:10px;justify-content:space-between}.clock-day{min-width:0;overflow:hidden;text-overflow:ellipsis}.header-controls #clock strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-variant-numeric:tabular-nums;font-feature-settings:'tnum';flex:0 0 5ch;width:5ch;text-align:right;letter-spacing:0}.profile #portrait[role=button]{cursor:pointer;border-radius:12px;transition:box-shadow .2s,transform .2s}.profile #portrait[role=button]:focus-visible{outline:2px solid #f1b5e6;outline-offset:4px}
/* A vivid printed graphic novel, using the original commissioned comic figures. */
.printed-comic{background-color:#f4e6cf;padding:24px;background-image:radial-gradient(#96695e28 .6px,transparent .6px),linear-gradient(135deg,#fff4de,#efd7bf);background-size:4px 4px,100% 100%}.printed-comic>h2{font-family:'Trebuchet MS',Arial,sans-serif;font-size:43px;letter-spacing:-2px;line-height:1.05;background:#30203d;color:#ffe4bd;padding:20px 16px;margin:12px -8px 16px;transform:rotate(-1deg);border:3px solid #201629;box-shadow:5px 5px 0 #dc88b1;text-shadow:2px 2px #9c4c85}.print-pages{gap:19px}.print-panel{border:3px solid #23162d;box-shadow:5px 6px 0 #a36d87;border-radius:3px}.print-label{background:#ffdc82;font-weight:900;padding:8px 10px}.print-panel:nth-child(4n+2) .print-label{background:#e4b5f0}.print-panel:nth-child(4n+3) .print-label{background:#afe1d6}.print-scene{background:#725775}.print-scene:before{filter:saturate(.85) contrast(1.1);opacity:.85}.print-scene:after{background:radial-gradient(#31204735 .6px,transparent .6px),linear-gradient(0deg,#31204770,transparent 60%);background-size:4px 4px,100% 100%}.print-dialogues{padding:16px}.print-balloon{font-size:13px;line-height:1.5;font-weight:500;box-shadow:3px 4px 0 #30203b60;border-width:2px;background:#fffdf3}.print-balloon b{font-size:10px;color:#71395f}.player-balloon{background:#fff1af}.print-cast{height:235px;padding:0 12px}.print-figure{filter:drop-shadow(2px 3px 0 #22132caa) drop-shadow(0 0 5px #ffe4ee99)}.print-narration{background:#fff4d9;font-size:13px;line-height:1.6;padding:13px}.print-impact{display:flex;flex-wrap:wrap;gap:6px;padding:11px;background:#f4d6d4}.impact-chip{display:inline-flex;gap:7px;align-items:center;background:#fff5e8;border:1px solid #876074;border-radius:5px;padding:5px 8px;font-size:10px}.impact-chip b{color:#22674f}.impact-chip.loss b{color:#993656}
@media(max-width:760px){.header-controls{gap:6px;max-width:100%;margin-left:auto}.header-controls #pausebtn{width:78px;flex-basis:78px}.header-controls #clock{width:142px;min-width:142px;max-width:142px;gap:5px}.printed-comic{padding:13px}.printed-comic>h2{font-size:30px;letter-spacing:-1px;margin-left:0;margin-right:0;padding:16px 9px}.print-pages{gap:18px}.print-dialogues{padding:10px}.print-balloon{font-size:12px}.print-cast{height:210px;padding:0 5px}.print-narration{font-size:12px;padding:10px}}


/* personality.css */
.personality-details{margin-top:28px;padding-top:20px;border-top:1px solid #59465e}.personality-details>header,.personality-editor>header{display:flex;justify-content:space-between;align-items:center;gap:16px}.personality-details h3,.personality-editor h3{margin:7px 0}.personality-note,.personality-age,.personality-sync{font-size:12px;line-height:1.6;color:#cbbdd1}.personality-age{padding:10px 12px;background:#211b29;border-radius:9px}.personality-group{border:1px solid #4e3b58;border-radius:12px;margin:10px 0;background:#18131f;overflow:hidden}.personality-group summary{padding:14px 16px;font-weight:700;cursor:pointer;color:#efcee6}.personality-group[open] summary{border-bottom:1px solid #44334f}.personality-group dl{padding:0 16px;margin:0}.personality-group dl>div{display:grid;grid-template-columns:minmax(110px,32%) 1fr;gap:15px;padding:12px 0;border-bottom:1px solid #302536}.personality-group dl>div:last-child{border:0}.personality-group dt{font-size:12px;color:#d9afd2}.personality-group dd{margin:0;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.personality-sheet-link{display:inline-block;margin:14px 0;color:#e9a5d7}.personality-sync{display:block}.personality-editor{padding:18px;background:#1c1524;border:1px solid #b579bc;border-radius:16px}.personality-editor>p{font-size:12px;line-height:1.6;color:#d2bfd6}.personality-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px}.personality-field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#eac6df;min-width:0}.personality-field.field-wide{grid-column:1/-1}.personality-field input,.personality-field textarea,.personality-field select{width:100%;box-sizing:border-box;color:#f5e9f8;background:#100d17;border:1px solid #694c73;border-radius:8px;padding:11px;font-family:inherit;font-size:14px;line-height:1.5}.personality-field textarea{resize:vertical}.personality-field small{font-size:10px;color:#baa6c2}.personality-field :focus{outline:2px solid #d286c0;outline-offset:2px}.personality-editor-footer{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.personality-age-lock{font-size:11px;color:#cdb5d5}.personality-interest-picker{padding:0 16px 16px}.personality-interest-picker summary{border:0!important;font-size:12px;padding:8px 0}.personality-interest-options{display:flex;flex-wrap:wrap;gap:6px}.personality-interest-options button{font-size:11px;padding:5px 8px}.personality-interest-options button.chosen{background:#5b3463}.personality-form-status{color:#ffbcce;font-size:12px}.personality-cancel[aria-label]{font-size:22px;padding:4px 12px}@media(max-width:600px){.personality-details>header,.personality-editor>header{align-items:flex-start;flex-wrap:wrap}.personality-form-grid{grid-template-columns:1fr}.personality-group dl>div{grid-template-columns:1fr;gap:5px}.personality-editor{padding:12px}.personality-group summary{padding:12px}.personality-form-grid{padding:12px}}


/* performance-v14.css */
.boot-loading{padding:40px 24px;text-align:center;color:#dcb5db;background:#211929;border-radius:14px}.room-viewport{overscroll-behavior:contain}.room-objects{overscroll-behavior:contain}.room-npc::after{content:'';position:absolute;inset:-7px;pointer-events:auto}.city-scroll{overscroll-behavior-x:contain}.city-hotspot{touch-action:manipulation}.top-menu button,button.choice,.room-objects button,.room-tabs button{touch-action:manipulation}.room-options{max-height:100%;overflow:auto;overscroll-behavior:contain}
@media(max-width:760px){.top-menu button{min-height:44px}.city-hotspot{min-height:40px}.room-objects button,.room-tabs button,button.choice{min-height:42px}.person-card button,.header-controls button{min-height:34px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Keep every room action reachable when the illustrated viewport is short. */
.room-objects{overflow-y:auto;min-height:0;scrollbar-width:thin}.room-objects button{flex-shrink:0}

.artwork-retry{position:absolute;left:50%;bottom:1rem;transform:translateX(-50%);z-index:150;max-width:90%;background:#32233e;color:#ffe3f1;border:1px solid #d794bc;padding:.6rem .9rem;border-radius:8px}


/* world-v15.css */
/* Dynamic lighting leaves controls and stored game state untouched. */
:root{--scene-filter:brightness(1.08) saturate(.92);--scene-tint:linear-gradient(145deg,#c6dcf224,transparent 65%)}
:root[data-period=morning]{--scene-filter:brightness(1.36) contrast(.93) saturate(.95);--scene-tint:linear-gradient(125deg,#ffe4a944,transparent 57%,#fff8d611)}
:root[data-period=afternoon]{--scene-filter:brightness(1.12) contrast(.97) saturate(.92);--scene-tint:linear-gradient(135deg,#a9cfff30,transparent 62%,#526daf19)}
:root[data-period=evening]{--scene-filter:brightness(1.03) saturate(1.14);--scene-tint:linear-gradient(135deg,#f2a25b33,#cf68b722 52%,#8461b533)}
:root[data-period=night]{--scene-filter:brightness(.64) contrast(1.08) saturate(.91);--scene-tint:linear-gradient(135deg,#41226849,#100b3838)}
.city-art,.room-stage{filter:var(--scene-filter);transition:filter 1.3s ease}
.city-board:after,.room-stage:after{content:'';position:absolute;inset:0;pointer-events:none;background:var(--scene-tint);mix-blend-mode:soft-light;z-index:110;transition:background 1.3s ease}
.city-board:after{z-index:1}.city-hotspot{z-index:2}
[data-period=night] .city-board:before{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse at 45% 62%,#f883e844,transparent 15%),radial-gradient(ellipse at 17% 38%,#ffd49c38,transparent 10%),radial-gradient(ellipse at 72% 71%,#c889ff3b,transparent 17%);mix-blend-mode:screen}
[data-period=night] .room-stage:before{content:'';position:absolute;inset:0;z-index:109;pointer-events:none;background:radial-gradient(ellipse at 72% 37%,#f8b06235,transparent 33%),radial-gradient(ellipse at 15% 45%,#a571c527,transparent 26%);mix-blend-mode:screen}
.daylight-caption{position:absolute;right:14px;top:48px;z-index:5;font-size:9px;letter-spacing:.14em;padding:4px 7px;background:#15111dbd;border-radius:5px;color:#ecdbf5;pointer-events:none}
.header-controls #pausebtn{background:#cf8acb;color:#211025;border-color:#cf8acb}.header-controls #pausebtn:hover{background:#e3a5de;color:#211025;border-color:#e3a5de}
.room-stage .room-sprite{clip-path:none}.room-stage .room-person,.room-stage .room-npc{filter:drop-shadow(0 4px 2px #120d2677)}.room-stage .counter-person .room-sprite{clip-path:polygon(0 0,100% 0,100% calc(var(--counter-cut,.64)*100%),0 calc(var(--counter-cut,.64)*100%))}.room-stage .counter-person>span:last-child{top:calc(var(--counter-cut,.64)*100%)}
.movable-prop[class*=cannabis-]{width:10%;max-width:105px;min-width:34px;transform:translate(-50%,-100%);aspect-ratio:.5}.planter-art{display:block;width:100%;height:100%;background-repeat:no-repeat;background-size:300% 100%;pointer-events:none}.movable-prop[class*=cannabis-]::before,.movable-prop[class*=cannabis-]::after{display:none}
.chibi-journal{padding:24px;background:#f2e9ee;color:#362f40;border-radius:12px;overflow:hidden}.journal-heading{display:block;min-height:0;padding:0 0 19px;margin:0 0 20px;border:0;border-bottom:1px solid #cdbfcf;background:none}.journal-heading small{font-size:10px;letter-spacing:.14em;color:#8f758e}.journal-heading h2{font-family:inherit;font-size:25px;line-height:1.2;letter-spacing:0;text-transform:none;transform:none;text-shadow:none;margin:7px 0;color:#463447}.journal-heading p{font-size:12px;line-height:1.6;color:#867489;margin:0}.chibi-pages{display:grid;gap:24px}.chibi-entry{overflow:hidden;border:2px solid #4f405a;border-radius:6px;background:#faf6f8;box-shadow:4px 4px 0 #cabbcf}.journal-stamp{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:10px;letter-spacing:.05em;background:#ece2ef;padding:10px 14px;color:#705b77;min-height:0;border:0}.journal-stamp span{font-size:11px;letter-spacing:0;color:#57455c}.chibi-scene{position:relative;isolation:isolate;padding:18px 18px 0;overflow:hidden;background:#ddcce4;min-height:260px;border-top:2px solid #4f405a;border-bottom:2px solid #4f405a}.chibi-scene::before{content:'';position:absolute;inset:0;background-image:linear-gradient(#eee1f0bb,#ddd0e999),var(--journal-art);background-size:cover;background-position:center;z-index:-1}.chibi-dialogues{display:grid;grid-template-columns:1fr 1fr;gap:20px;position:relative;z-index:2;margin-bottom:12px}.chibi-bubble{position:relative;background:#fffcf8;border:2px solid #594760;border-radius:25px;padding:14px 16px;font-size:13px;line-height:1.6;margin:0;box-shadow:2px 3px 0 #4f405a25;color:#34273b}.chibi-bubble:after{content:'';position:absolute;bottom:-12px;left:30px;width:18px;height:18px;transform:skewY(-30deg);background:#fffcf8;border-right:2px solid #594760;border-bottom:2px solid #594760}.chibi-bubble b{display:block;color:#ae5a93;font-size:10px;letter-spacing:.08em;margin-bottom:6px}.answer-bubble{background:#f3e4f5;align-self:start;margin-top:18px}.answer-bubble:after{background:#f3e4f5;left:auto;right:32px}.post-bubble{grid-column:1 / -1;background:#e9eff7}.post-bubble:after{background:#e9eff7}.chibi-cast{display:flex;align-items:flex-end;justify-content:space-evenly;gap:10px;padding-top:10px;min-height:210px}.chibi-cast figure{margin:0;display:flex;flex-direction:column;align-items:center;max-width:30%;flex:1;filter:drop-shadow(0 4px 1px #43334d33)}.chibi-figure{height:230px;max-width:100%;background-repeat:no-repeat;flex-shrink:0}.chibi-cast figcaption{font-size:10px;font-weight:600;color:#56435c;padding:4px 8px;background:#f8f1f6ce;border-radius:8px;margin:6px 0 12px}.chibi-after{padding:15px 18px}.chibi-after p{font-size:13px;line-height:1.6;margin:0 0 12px;color:#5a4c63}.chibi-after small{font-size:10px;color:#8f7e94}.journal-effects{display:flex;flex-wrap:wrap;gap:6px}.journal-effects span{font-size:10px;padding:5px 7px;border-radius:7px;background:#e8e0eb;color:#746079}.journal-effects .positive{background:#e1efe6;color:#436955}.journal-effects .negative{background:#f2e3e8;color:#8a5868}.journal-effects b{margin-left:3px}.journal-empty{font-size:13px;padding:25px 0;color:#826b87}
@media(max-width:760px){.chibi-journal{padding:16px 12px}.journal-heading h2{font-size:22px}.journal-stamp{padding:9px 10px;flex-wrap:wrap}.chibi-scene{padding:12px 9px 0;min-height:210px}.chibi-dialogues{gap:8px;grid-template-columns:1fr}.chibi-bubble{font-size:12px;padding:11px 13px}.answer-bubble{margin:8px 0 0 25px}.chibi-cast{min-height:140px;gap:5px}.chibi-figure{height:165px}.chibi-cast figure{max-width:40%}.chibi-after{padding:12px}.daylight-caption{top:45px;right:8px;font-size:8px}}



.room-stage .counter-person{clip-path:none}
/* Inline result under the illustration, outside the scene camera and its lighting. */
#toast{position:relative;inset:auto;transform:none;width:100%;max-width:100%;margin:10px 0;padding:12px 16px;z-index:1;font-size:13px;line-height:1.5;overflow-wrap:anywhere;box-shadow:0 3px 12px #0002;animation:none}


/* world-v16.css */
.new-prop-art{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;filter:drop-shadow(3px 7px 4px #06030a70)}.movable-prop:has(.new-prop-art){aspect-ratio:1;width:9%;min-width:28px}.storage-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid #654762;padding:9px 0;font-size:12px}.storage-row>span{flex:1;min-width:0}.storage-row button{font-size:11px;padding:6px 8px}.storage-row select{max-width:100px;font-size:11px}.exhibit-note{font-size:10px;line-height:1.4;padding:5px;color:#ecd0e5}.room-tabs{flex-wrap:wrap}.new-resident-body{background-size:contain!important;background-position:center!important;clip-path:none!important}.new-resident-face{background-size:cover!important;background-position:center!important}.room-npc .new-resident-body{width:100%;height:100%}.person-card .new-resident-body{max-width:120px}.storage-row select{color:#eadbea;background:#312237;border:1px solid #8a6487;border-radius:6px}
.movable-prop[data-prop$="v16-lamp"]::before,.movable-prop[data-prop$="v16-candle"]::before{content:'';position:absolute;left:-50%;right:-50%;bottom:-30%;height:70%;background:radial-gradient(ellipse,#ffbf6366,transparent 70%);pointer-events:none;z-index:-1}.room-home:has([data-scope="storage"]) .movable-prop{width:7%;max-width:66px}


/* world-v17.css */
:root[data-period=day]{--scene-filter:brightness(1.65) contrast(.88) saturate(1.02);--scene-tint:linear-gradient(125deg,#fff4d84d,#fffbea18 62%,#fff8de26)}
.admin-game-settings{border:1px solid #73527a;border-radius:12px;padding:16px;margin:16px 0;background:#b385c510}.admin-game-settings h3{margin:0 0 12px}.cycle-switch{display:flex;align-items:center;gap:12px}.cycle-switch input{width:20px;height:20px;accent-color:#cf8acb}.cycle-switch strong{margin-left:auto}.admin-game-settings p{font-size:13px}.admin-game-settings button{width:100%}
#improvement-form{display:grid;gap:12px}#improvement-form label{display:grid;gap:8px;font-size:13px}#improvement-form textarea,#improvement-form select{box-sizing:border-box;width:100%;min-width:0;background:#211c2c;border:1px solid #756180;color:#f5edf7;padding:12px;border-radius:9px;font:inherit}#improvement-form textarea{resize:vertical}#improvement-form p{font-size:12px;margin:0}#improvement-history{max-height:260px;overflow:auto;margin:22px 0}.improvement-entry{padding:12px 0;border-bottom:1px solid #75618055}.improvement-entry p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.improvement-entry small{font-size:10px}
footer #improvebtn{background:#282437;color:#ddd1e4;border-color:#44384d}footer #improvebtn:hover{background:#b785c3;color:#17111d;border-color:#b785c3}
.district-extension{margin-top:0}.district-bridge{height:65px;position:relative;background:linear-gradient(90deg,#211e2c 0 39%,#73708355 40% 44%,#322c3d 45% 55%,#73708355 56% 60%,#211e2c 61%);display:flex;align-items:center;justify-content:center;border-block:1px solid #685c7855}.district-bridge span{font-size:9px;letter-spacing:.18em;color:#ccb8d6;background:#241c30;padding:6px 10px;border-radius:5px}.district-board{position:relative;min-width:700px;aspect-ratio:3/2}.district-board .city-art{width:100%;height:100%;object-fit:cover;display:block}.district-board .district-hotspot{font-size:12px;line-height:1.25;padding:7px 8px;max-width:19%;white-space:normal;text-align:center;transform:translate(-50%,-50%)}
.header-controls{flex-wrap:wrap}#fullscreenbtn{white-space:nowrap}html:fullscreen{background:#100e17;overflow:auto}html:-webkit-full-screen{background:#100e17;overflow:auto}
@media(max-width:760px){.district-board{min-width:650px}.header-controls #fullscreenbtn{font-size:10px;padding:8px}.admin-game-settings{padding:12px}footer>span:last-child{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.cycle-switch{font-size:12px}}
#modal:has(#improvement-form){overflow-x:hidden}#modal:has(#improvement-form) #modalcontent{min-width:0;overflow-wrap:anywhere}

:root[data-period=day] .city-board:after{box-shadow:inset 0 0 32px #07030a22}


/* world-v18.css */
/* Compact header; clock and controls retain fixed widths as the day advances. */
body>header{min-height:57px;padding-block:14px;gap:20px}body>header .brand{font-size:20px}body>header .tag{font-size:9px}body>header .tag b{margin-top:5px;font-size:8px}body>header .header-controls{margin-left:auto;gap:6px}.header-clock{flex-shrink:0}body>header #mapbtn{margin:0}
.unified-city{aspect-ratio:3/4;min-width:640px}.unified-city .city-art{object-fit:fill}.unified-city .city-hotspot{max-width:19%;white-space:normal;text-align:center;padding:5px 7px;line-height:1.3}
.layout>aside{align-self:start}.layout>aside #chapter{border:1px solid #795b7f;border-radius:14px;display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:15px}.layout>aside #chapter>small{font-size:9px}.layout>aside #chapter h2{font-size:17px;line-height:1.3}.layout>aside #chapter p{font-size:12px;line-height:1.5;margin:4px 0;min-width:0}.layout>aside #guide-next{align-self:stretch;margin-top:5px;font-size:12px;white-space:normal;text-align:left}.layout>aside #chapter .progress{width:100%;margin-top:7px}
.movable-prop{transition:none!important}.movable-prop.dragging-prop{will-change:transform;cursor:grabbing;outline:1px solid #efbbe4;outline-offset:4px;filter:drop-shadow(5px 7px 4px #09051080)}.room-viewport.dragging-scene{touch-action:none;cursor:grabbing}.dragging-prop:before{opacity:.65}
.live-phone{width:100%;max-width:none}.live-phone .stories{display:flex;gap:9px;padding:8px 0}.live-phone .stories>button{flex:0 0 48px;padding:0;border:0;background:none;display:flex;flex-direction:column;gap:5px;align-items:center}.live-phone .stories small{font-size:9px;letter-spacing:0}.social-tabs{display:flex;gap:4px;margin:10px 0}.social-tabs button{flex:1;font-size:11px;padding:9px 4px}.social-tabs button[aria-pressed=true]{background:#6b3965;border-color:#d790c9}.social-compose{border:1px solid #805073;border-radius:10px;padding:12px;margin:10px 0}.social-compose summary{font-size:13px;cursor:pointer}.social-compose form{display:grid;gap:9px;margin-top:12px}.social-compose textarea,.social-discussion input{font:inherit;font-size:12px;background:#221a2b;color:#f9e8f5;border:1px solid #79526e;border-radius:7px;padding:10px;width:100%;min-width:0}.social-compose textarea{resize:vertical}.social-compose label{font-size:11px;display:flex;align-items:center;gap:7px}.social-compose p{font-size:10px;margin:0;line-height:1.4}.social-compose button{font-size:12px}.social-refresh{display:flex;align-items:center;gap:8px;font-size:9px!important;line-height:1.3!important}.social-refresh button{font-size:10px;padding:6px;flex-shrink:0}.live-post{padding:13px;border:1px solid #503748;border-radius:12px;background:#17101d;margin:16px 0}.live-post p{font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.social-profile{padding:0;border:0;background:none;font-weight:600;font-size:13px}.social-photo{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:8px;margin-top:10px;display:block}.social-reactions{display:flex;gap:6px;align-items:center}.social-reactions button{padding:7px 8px;font-size:11px}.social-reactions button[aria-pressed=true]{background:#774566;border-color:#e798ce}.social-reactions span{font-size:11px;margin-left:auto}.social-invite{padding:11px;border:1px solid #9c7198;border-radius:8px;background:#50324844;display:flex;gap:6px;flex-wrap:wrap}.social-invite b{width:100%;font-size:11px}.social-invite button{padding:6px 8px;font-size:10px}.social-discussion{margin-top:13px;border-top:1px solid #634058;padding-top:9px}.social-discussion summary{cursor:pointer;font-size:12px;color:#d8a9ce}.social-discussion p{display:flex;gap:8px;font-size:11px;white-space:normal}.social-discussion p .hd-face{flex:0 0 29px;width:29px;height:32px}.social-discussion p b{display:block;font-size:11px;color:#d9a5ce;margin-bottom:3px}.social-discussion form{display:flex;gap:6px}.social-discussion form button{font-size:10px;padding:7px 9px}.social-empty{font-size:13px;padding:20px 0}.live-phone>#social-more,.live-phone>#social-offline{width:100%;margin:6px 0;font-size:12px}.phone-mode:has(.live-phone){width:min(480px,92vw)}
@media(max-width:1000px){body>header{padding-inline:24px;gap:12px}.header-controls{gap:5px}}
@media(max-width:760px){body>header{padding:10px 12px;gap:8px;min-height:57px;flex-wrap:wrap}.header-controls{width:100%;justify-content:flex-end}body>header .brand{font-size:17px}.unified-city{min-width:640px}.layout>aside #chapter{padding:12px}.social-tabs button{font-size:10px}.social-reactions button{font-size:10px}.phone-mode:has(.live-phone){width:min(480px,95vw);padding:14px}.live-post{padding:10px}.social-discussion form{flex-wrap:wrap}.social-discussion form input{flex:1 1 160px}.social-refresh{flex-wrap:wrap}.social-refresh button{min-height:34px}.live-phone .stories button{min-height:60px}}
body>header{padding-block:10px}
/* Keep intrinsic raster dimensions from expanding the draggable button. */
.movable-prop .new-prop-art{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%}
/* Thirty percent lower than the previous 87px desktop header. */
body>header{padding-block:8px}
/* Graphite stays monochrome through both day-cycle lighting presets. */
.city-board.map-pencil .city-art{filter:var(--scene-filter) grayscale(1)}
.city-board.map-pencil:after{filter:grayscale(1)}


/* world-v20.css */

header .header-controls #mapbtn,header .header-controls #pausebtn,header .header-controls #fullscreenbtn{box-sizing:border-box;height:34px;min-height:34px;margin:0;padding:7px 11px;border-width:1px;border-style:solid;border-radius:10px;font-size:12px;line-height:18px;white-space:nowrap;font-weight:inherit}
#admin-map-styles select{display:block;width:100%;margin:8px 0 14px;padding:10px;background:#211b2f;color:#f5e7f4;border:1px solid #665073;border-radius:8px}#admin-map-styles summary{cursor:pointer;padding:8px 0}.admin-style-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.admin-style-grid button{padding:6px;text-align:center;font-size:11px}.admin-style-grid button[aria-pressed="true"]{border-color:#dc9ccf;background:#46314e}.admin-style-grid img{display:block;width:100%;height:115px;object-fit:cover;object-position:center 25%;border-radius:5px;margin-bottom:7px}.admin-style-grid span{display:block}
@media(max-width:760px){header .header-controls #mapbtn,header .header-controls #pausebtn,header .header-controls #fullscreenbtn{font-size:10px;padding:7px 8px}.admin-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* world-v21.css */
.top-menu #pausebtn{background:#cf8acb;color:#211025;border-color:#cf8acb}.top-menu #pausebtn:hover{background:#e3a5de;color:#211025}.top-menu{bottom:auto;top:50%;transform:translateY(-50%);gap:6px}.room-stage .room-person,.room-stage .room-npc{clip-path:none!important}.room-stage .room-sprite{mask-image:none!important;-webkit-mask-image:none!important}.room-tabs{max-height:180px;overflow:auto;align-content:start}.calendar-page{padding:24px;background:#211a2d}.calendar-page>small{font-size:10px;letter-spacing:2px;color:#cbb0d0}.calendar-page h2{font-size:26px}.calendar-week-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:18px 0}.calendar-week-controls button{padding:8px;font-size:12px}.calendar-week-controls strong{margin-right:auto}.calendar-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.calendar-day{background:#171222;border:1px solid #4e3c5b;border-radius:12px;padding:12px}.calendar-day.today{border-color:#d699cd}.calendar-day h3{font-size:14px;margin:0 0 12px}.calendar-event{display:flex;align-items:start;gap:9px;padding:10px 0;border-top:1px solid #473449}.calendar-event>.hd-face{flex:none;width:42px;height:52px}.calendar-event h4{font-size:14px;line-height:1.4;margin:5px 0}.calendar-event small,.calendar-event p{font-size:11px;line-height:1.5}.calendar-event button{font-size:10px;padding:6px;margin:4px 3px 0 0}.calendar-event button[aria-pressed=true]{background:#a270ae}.phone-profile-card{text-align:center;padding:20px 12px;border-bottom:1px solid #634565}.phone-profile-card>.hd-face{width:112px;height:125px;display:block;margin:0 auto 12px;background-size:contain}.phone-profile-card h2{font-size:24px;margin:8px}.phone-profile-card p{font-size:13px;line-height:1.6}.phone-bonds{font-size:11px;color:#ddb5d7}.phone-person-profile #phone-profile-back{font-size:12px;padding:8px}.phone-person-profile .social-photo{width:100%;object-fit:cover;aspect-ratio:3/2;border-radius:8px}.phone-person-profile>.live-post{margin-bottom:12px}
@media(max-width:760px){.calendar-page{padding:13px}.calendar-days{grid-template-columns:1fr}.room-tabs{max-height:150px}.top-menu{top:auto;bottom:12px;transform:none;max-height:calc(100dvh - 80px);overflow:auto}.calendar-week-controls strong{font-size:12px}}

body:has(.calendar-page) .actionpanel{display:none}

/* Scene anchors must settle immediately; generic button transitions animate old room coordinates. */
.room-stage .room-person,.room-stage .room-npc{transition:filter .2s}


/* world-v22.css */
/* Match the header's outer inset with the gap below its controls. */
body>header{padding-block:10px}body>main{padding-top:0}.world{min-width:0}.city-hotspot{text-decoration:none;color:inherit;display:inline-block;border:1px solid #a8739755;border-radius:8px;background:#17101ee8;font-weight:600;cursor:pointer}.city-hotspot:focus-visible{background:#56324f;border-color:#df9dcc;outline:2px solid #d99bc4;outline-offset:2px}
#scene>#feelingpanel{margin-top:12px;padding:14px 16px}#scene>#feelingpanel h2{font-size:16px}#scene>#feelingpanel p{font-size:12px}.movable-prop::after{content:attr(data-prop-name);position:absolute;bottom:110%;left:50%;transform:translateX(-50%);padding:6px 9px;border:1px solid #c59bbe;border-radius:7px;background:#1b1326f5;color:#f5e7f3;font-size:11px;line-height:1.4;white-space:normal;min-width:110px;max-width:200px;pointer-events:none;opacity:0}.movable-prop:hover::after,.movable-prop:focus-visible::after{opacity:1}.movable-prop.dragging-prop::after{opacity:0}.catalog-page{padding:22px;background:#211a2d}.catalog-page h2{font-size:26px}.catalog-page>p{font-size:12px;color:#cbb6d0}.catalog-page label{display:block;font-size:12px;margin:18px 0 8px}.catalog-page input{width:100%;padding:12px;border:1px solid #806086;border-radius:8px;background:#171221;color:#f5e7f3;font:inherit}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.catalog-item{border:1px solid #5f496a;border-radius:10px;padding:14px;background:#191322}.catalog-item[hidden]{display:none}.catalog-item h3{font-size:14px}.catalog-item p{font-size:11px;line-height:1.6;color:#cab8d0}.catalog-item small{font-size:10px;color:#dfa9d1}.catalog-art{height:95px;width:70px;margin:0 auto;display:flex;align-items:center;justify-content:center}.catalog-art>*{width:100%;height:100%;object-fit:contain}.catalog-art .illustrated-prop,.catalog-art .planter-art{display:block}footer #catalogbtn{background:#292437;border:1px solid #494055;color:#e5d9ed;margin:0;padding:7px 10px;font-size:11px}footer #catalogbtn:hover{background:#4b3558;border-color:#9b7eac}body:has(.catalog-page) .actionpanel{display:none}@media(max-width:760px){body>header{padding-block:10px}body>main{padding-top:0}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-page{padding:13px}.catalog-item{padding:10px}}


/* world-v23.css */
.unified-city .city-hotspot{margin-top:-16px}.unified-city .city-hotspot[data-place=park]{max-width:none;white-space:nowrap;min-width:130px;padding-inline:12px}#city-style-panel label{display:block;font-size:11px;margin:10px 0 7px}#city-style-panel select{width:100%;min-width:0;padding:9px;background:#1b1525;border:1px solid #796080;border-radius:7px;color:#f0e3f2;font:inherit;font-size:12px}#city-style-panel p{font-size:11px;line-height:1.6;color:#cfb9d4}#city-style-panel button{font-size:11px;padding:8px;margin-top:6px}#city-style-panel details{margin-top:14px;font-size:11px;color:#c4a9cd}#city-style-panel details a{display:block;margin-top:12px;color:#dfa9d5}#city-style-panel details small{display:block;letter-spacing:0;line-height:1.5;margin-top:8px;font-size:10px}#city-style-import{display:block;width:100%;margin-top:10px;padding:12px;background:#1a1424;border:1px solid #9a71a0;border-radius:8px;color:#efe3f5;font:inherit;font-size:12px;resize:vertical}#city-style-error{color:#ffc0d2;font-size:12px}@media(max-width:760px){.unified-city .city-hotspot[data-place=park]{min-width:120px;padding-inline:9px}}

.city-style-picker1113{display:flex;flex-direction:column;gap:8px;margin:16px 0}.city-style-picker1113 select{width:100%;min-height:48px;padding:10px;color:inherit;background:#211529;border:1px solid #a57a9c;border-radius:8px;font:inherit;font-size:16px}.map-styles-modal .style-card{touch-action:manipulation}.map-styles-modal .style-card>*{pointer-events:none}#social-photo-preview1113 .phone-photo533{max-width:320px;margin:12px auto}@media(min-width:761px){.city-style-picker1113{max-width:460px}}


/* world-v24.css */
/* Three compact columns: context, feeling, submit. */
#scene>#feelingpanel.checkin-row24,.actionpanel.compact-checkin.checkin-row24{display:grid;grid-template-columns:minmax(0,1fr) minmax(175px,auto) auto;gap:14px;align-items:center;padding:12px 15px;position:relative}
.checkin-row24 .feeling-form,.checkin-row24 #actions{display:contents}.checkin-copy24{min-width:0}.checkin-copy24 small{font-size:8px;letter-spacing:1px}.checkin-row24 .checkin-copy24 h2{font-size:14px!important;line-height:1.35;margin:4px 0}.checkin-row24 .checkin-copy24 p{font-size:11px!important;line-height:1.4;margin:3px 0;color:#bcaac6}.checkin-rating24{position:relative;min-width:0}.checkin-row24 .rating-guide{font-size:9px!important;margin:0 0 4px!important}.checkin-row24 .feeling-stars{gap:4px;flex-wrap:nowrap}.checkin-row24 .feeling-stars button,.checkin-row24 #actions .feeling-stars button{width:26px;height:27px;min-height:27px;padding:3px;font-size:16px}.checkin-row24 .feeling-extra{font-size:9px;margin-top:4px}.checkin-row24 .feeling-extra[open]{position:absolute;z-index:105;top:100%;right:0;width:240px;padding:12px;border:1px solid #87648f;border-radius:9px;background:#24192f;box-shadow:0 6px 24px #0008}.checkin-row24 #save-feeling,.checkin-row24 #actions #save-feeling,.checkin-row24 #read-diary{font-size:11px;padding:8px 10px;white-space:nowrap}.checkin-row24 .checkin-submit24{justify-self:end}.checkin-row24 .feeling-saved{font-size:11px!important}.checkin-row24 #rating-selection{display:block;font-size:9px;margin-top:3px;min-height:0}.checkin-row24 #rating-selection:empty{display:none}
@media(max-width:600px){#scene>#feelingpanel.checkin-row24,.actionpanel.compact-checkin.checkin-row24{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px}.checkin-copy24{grid-column:1/-1}.checkin-row24 .checkin-copy24 p#description{display:block}.checkin-row24 .checkin-copy24 h2{font-size:13px!important}.checkin-row24 .feeling-extra[open]{right:auto;left:0;max-width:calc(100vw - 100px)}}


/* world-v25.css */
/* 22 rooms including entrance: equal-width buttons, no stretched final items. */
.room-tabs.zoo-room-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:268px;overflow-y:auto;overflow-x:hidden;align-items:stretch;scrollbar-gutter:stable}
.room-tabs.zoo-room-tabs button{width:100%;min-width:0;min-height:42px;margin:0;flex:none;padding:10px 12px;text-align:center;overflow-wrap:anywhere;line-height:1.4}
@media(max-width:760px){.room-tabs.zoo-room-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:240px}.room-tabs.zoo-room-tabs button{font-size:10px;padding:9px 6px;min-height:46px}}


/* comic-v26.css */
/* Printed comic rhythm: open vignettes, widescreen cuts and overlapping ink. */
.ink-journal{background:#f5eee7;color:#2b2333;padding:24px 20px 32px;border-radius:4px;overflow:hidden;background-image:radial-gradient(#92677918 .6px,transparent .7px);background-size:4px 4px}
.ink-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 4px 17px;border-bottom:2px solid #332c3a}.ink-heading small{font-size:9px;letter-spacing:2px;color:#80647a}.ink-heading h2{font:italic 600 30px/1.2 Georgia,serif;letter-spacing:-.7px;margin:8px 0;color:#33273b}.ink-heading p{font-size:11px;line-height:1.6;margin:0;color:#796375}.ink-mark{font-size:60px;color:#b96b9a;transform:rotate(-12deg)}
.ink-bookmarks{display:flex;gap:6px;flex-wrap:wrap;padding:14px 0 5px}.ink-bookmarks a{color:#715770;border:1px solid #c4a9b9;padding:5px 8px;border-radius:3px;text-decoration:none;font-size:10px;background:#fff8ef}.ink-bookmarks a:focus-visible{background:#e5bed5;color:#39233d}.ink-bookmarks .ink-latest{margin-left:auto}
.ink-spread{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px 14px;align-items:start;margin-top:10px}.ink-day{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin:12px 2px 2px;scroll-margin-top:16px}.ink-day span{font:italic 600 18px Georgia,serif;white-space:nowrap;color:#71526d}.ink-day i{width:100%;height:1px;background:#c6b0bd}
.ink-panel{grid-column:span 3;position:relative;isolation:isolate;display:flex;flex-direction:column;border:2px solid #332b3b;background:#e7d5e4;min-width:0;padding:12px 12px 0;scroll-margin-top:16px;box-shadow:3px 4px 0 #332b3b16}
.ink-setting{position:absolute;inset:0;z-index:-2;background-image:linear-gradient(#f4dfed39,#f0dce84d),var(--ink-art);background-size:cover;background-position:center;filter:saturate(.65) contrast(1.12)}.ink-setting:after{content:'';position:absolute;inset:0;background:radial-gradient(#32223d25 .8px,transparent 1px);background-size:4px 4px;opacity:.5}.ink-redrawn .ink-setting{filter:none}
.ink-stamp{display:flex;justify-content:space-between;gap:5px;align-items:start;margin:-4px -4px 12px}.ink-stamp span{background:#fff8e9;border:1px solid #332b3b;font-size:9px;padding:4px 6px;line-height:1.4;max-width:80%;box-shadow:1px 2px 0 #312a3944}.ink-stamp span:first-child{font-variant-numeric:tabular-nums;white-space:nowrap;transform:rotate(-3deg)}
.ink-dialogue{position:relative;display:flex;align-items:start;flex-wrap:wrap;gap:14px 12px;z-index:3}.ink-bubble{position:relative;background:#fffdf4;color:#302339;border:2px solid #302339;border-radius:45% 40% 44% 37% / 24% 27% 22% 26%;margin:0 0 16px;padding:15px 17px;font:12px/1.55 'Trebuchet MS',Arial,sans-serif;flex:1 1 180px;min-width:0;box-shadow:2px 3px 0 #3c28453b;overflow-wrap:anywhere}.ink-bubble cite{display:block;font-style:normal;font-weight:700;font-size:9px;letter-spacing:.7px;color:#8d4c7a;margin-bottom:5px}.ink-bubble p{margin:0}.ink-bubble:after{content:'';position:absolute;bottom:-13px;left:27px;width:18px;height:18px;transform:skewY(-35deg);background:#fffdf4;border-right:2px solid #302339;border-bottom:2px solid #302339;z-index:-1}.player-line{background:#f9e4f2;transform:rotate(1deg);margin-top:15px}.player-line:after{background:#f9e4f2;left:auto;right:26px;transform:skewY(35deg)}.post-line{border-radius:12px;background:#fbf8fc;border-width:3px;border-bottom-width:12px}.post-line:after{display:none}
.ink-cast{position:relative;display:flex;align-items:flex-end;justify-content:space-evenly;gap:8px;padding-top:4px;min-height:180px;z-index:2}.ink-person{margin:0;min-width:0;max-width:40%;display:flex;flex-direction:column;align-items:center;filter:drop-shadow(2px 4px 0 #2b1e383b)}.ink-person .chibi-figure{height:205px;max-width:100%}.ink-person figcaption{font-size:9px;padding:3px 6px;background:#fff5eacc;border:1px solid #52354d55;border-radius:10px;margin-top:4px;margin-bottom:8px}.ink-person-1 .chibi-figure{transform:scaleX(-1) rotate(3deg)}.ink-person-2 .chibi-figure{height:175px}
.ink-caption{position:relative;background:#fff2d3;border:1px solid #413140;box-shadow:2px 3px 0 #49334530;padding:9px 11px;margin:10px -7px -5px;z-index:4;transform:rotate(-.5deg)}.ink-caption p{font:12px/1.6 'Trebuchet MS',Arial,sans-serif;margin:0;color:#453040;overflow-wrap:anywhere}.ink-caption small{font-size:9px;color:#856579;display:block;line-height:1.5;margin-top:6px}
.ink-impact{display:flex;flex-wrap:wrap;gap:5px;background:#f5eee7;margin:5px -12px 0;padding:12px 8px 7px}.ink-impact span{font-size:9px;padding:3px 5px;color:#594755}.ink-impact .gain b{color:#367255}.ink-impact .loss b{color:#a34b68}
.ink-opening,.ink-wide,.ink-cinema{grid-column:1/-1}.ink-opening{border-width:3px;border-radius:2px;transform:rotate(-.4deg);padding:16px 18px 0}.ink-opening .ink-cast{min-height:250px}.ink-opening .chibi-figure{height:265px}.ink-opening .ink-setting{background-position:center 45%}.ink-opening .ink-caption{margin-left:8%;margin-right:-12px}.ink-duet{grid-column:span 4;border-radius:2px 2px 12px 2px;transform:rotate(.5deg)}.ink-duet .ink-dialogue{gap:5px}.ink-duet .ink-bubble{flex-basis:140px}.ink-aside{grid-column:span 2;background:#ead5e8;transform:rotate(-1deg);border-radius:4px}.ink-aside .ink-cast{min-height:130px}.ink-aside .chibi-figure{height:150px}.ink-aside .ink-person{max-width:48%}.ink-aside .ink-bubble{font-size:11px;padding:12px 10px;flex-basis:100%}.ink-aside .player-line{margin-top:0;margin-left:8px}.ink-aside .ink-caption{font-size:11px}.ink-free{grid-column:span 3;background:none;border:0;box-shadow:none;padding:14px 8px 0}.ink-free .ink-setting{inset:18px 0 35px;border-radius:50%;mask-image:radial-gradient(ellipse,#000 40%,transparent 72%);opacity:.65}.ink-free .ink-cast{margin-top:-8px}.ink-free .chibi-figure{height:245px}.ink-free .ink-caption{border-left:3px solid #bb77a2;background:#fff6e9;border-radius:0 12px 12px 0;transform:rotate(1deg)}.ink-free .ink-impact{background:transparent}.ink-cinema{min-height:270px;border-width:3px 0}.ink-cinema .ink-dialogue{width:75%;align-self:center}.ink-cinema .chibi-figure{height:160px}.ink-cinema .ink-cast{min-height:130px}.ink-cinema .ink-caption{margin-left:20%;margin-right:6%}.ink-phone{grid-column:span 3;border-radius:20px 20px 7px 7px;border-top-width:8px;background:#f2d7e5;transform:rotate(1deg)}.ink-phone .ink-stamp span{border:0;background:#fff9efce}.ink-phone .chibi-figure{height:180px}.ink-empty{display:flex;align-items:center;gap:30px;padding:30px 10px}.ink-empty .chibi-figure{height:210px}.ink-empty p{font-size:14px;line-height:1.8;color:#756071}.ink-more{margin-top:25px;background:#493449;color:#fff7eb;border-color:#98708c;font-size:12px;padding:10px 15px}
@media(max-width:760px){.ink-journal{padding:16px 10px 25px}.ink-heading h2{font-size:26px}.ink-heading p{font-size:10px}.ink-mark{font-size:38px}.ink-bookmarks a{font-size:9px}.ink-spread{gap:19px 9px}.ink-opening,.ink-wide,.ink-duet,.ink-cinema,.ink-phone{grid-column:1/-1}.ink-aside,.ink-free{grid-column:span 3}.ink-panel{padding:10px 8px 0;transform:none}.ink-opening .ink-cast{min-height:190px}.ink-opening .chibi-figure{height:190px}.ink-bubble{font-size:12px;flex-basis:100%;padding:12px 13px}.player-line{margin-top:0;margin-left:15px}.ink-person .chibi-figure{height:155px}.ink-person-2 .chibi-figure{height:135px}.ink-aside .ink-person .chibi-figure,.ink-free .ink-person .chibi-figure{height:130px}.ink-aside .ink-cast,.ink-free .ink-cast{flex-wrap:wrap;min-height:130px}.ink-aside .ink-person,.ink-free .ink-person{max-width:90%}.ink-aside .ink-bubble,.ink-free .ink-bubble{font-size:11px;line-height:1.55;padding:11px 9px}.ink-caption{margin-left:-5px;margin-right:-5px;padding:8px}.ink-caption p{font-size:11px}.ink-opening .ink-caption,.ink-cinema .ink-caption{margin-left:0;margin-right:0}.ink-cinema .ink-dialogue{width:100%}.ink-impact{margin-left:-8px;margin-right:-8px}.ink-empty{gap:15px;padding:20px 0}.ink-empty .chibi-figure{height:160px}.ink-empty p{font-size:12px}}
@media(max-width:430px){.ink-aside,.ink-free{grid-column:1/-1}.ink-free .ink-dialogue{max-width:80%;margin-left:auto}.ink-free .ink-cast{justify-content:start;margin-top:-30px}.ink-free .ink-person{max-width:45%}.ink-free .ink-person .chibi-figure{height:185px}}

.ink-vignette{grid-column:1/-1;background:none;border:0;box-shadow:none}.ink-vignette .ink-setting{mask-image:radial-gradient(ellipse,#000 30%,transparent 73%);opacity:.7}.ink-vignette .ink-cast{min-height:230px}.ink-vignette .chibi-figure{height:250px}.ink-vignette .ink-dialogue{width:88%;align-self:center}.ink-vignette .ink-caption{margin-left:8%;margin-right:6%;transform:rotate(1deg)}.ink-vignette .ink-impact{background:transparent}.ink-pair{grid-column:span 3}
@media(max-width:760px){.ink-pair{grid-column:1/-1}.ink-vignette .ink-dialogue{width:100%}.ink-vignette .ink-cast{min-height:170px}.ink-vignette .chibi-figure{height:185px}.ink-vignette .ink-caption{margin-left:0;margin-right:0}}


/* comic-notes-v27.css */
.ink-spread{position:relative}.margin-note27{position:absolute;z-index:5;align-self:start;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:13px 12px;color:#79576f;border:1px dashed #bd95af80;border-radius:45% 35% 42% 28% / 8% 10% 7% 12%;background:#f5e8ef88;box-shadow:none;min-width:0;overflow:auto;font-size:12px}.margin-note27>small{font-size:8px;letter-spacing:1px;color:#99718c}.margin-text27{margin:0;font:italic 14px/1.65 Georgia,serif;color:#70415f;white-space:pre-wrap;overflow-wrap:anywhere}.margin-note27 button{font-size:10px;line-height:1.5;color:#805875;background:transparent;border:0;padding:5px;white-space:normal;text-align:left}.margin-note27 button:focus-visible{color:#42243c;background:#ddbcd344}.note-start27{align-self:center}.note-start27 span{display:block;font-size:29px;margin-bottom:8px;color:#b47b9d}.margin-note27.editing{border:1px solid #b77b9f;background:#fff6e9;justify-content:start;border-radius:10px}.margin-note27 label{display:flex;flex-direction:column;gap:6px;min-height:0;flex:1;font-size:11px;color:#78556e}.margin-note27 textarea{box-sizing:border-box;width:100%;min-height:60px;flex:1;resize:none;background:#fffaf4;color:#493345;border:1px solid #cfadc1;border-radius:6px;padding:9px;font:12px/1.6 'Trebuchet MS',Arial,sans-serif}.note-controls27{display:flex;gap:6px}.margin-note27 .note-save27{background:#be8bb1;color:#2c1630;border-radius:5px;padding:5px 9px}.margin-note27 .note-cancel27{border:1px solid #c4a3b8;border-radius:5px;padding:5px 9px}.saved-margin27{position:relative;grid-column:1/-1;margin:0 8% 5px;max-width:80%;background:#f6e7ef;border-style:none;border-left:2px solid #bc81a3;border-radius:0 15px 15px 0;min-height:0;padding:15px 20px}.saved-margin27 .note-start27{display:none}@media(max-width:760px){.margin-note27{padding:10px}.margin-text27{font-size:13px}.saved-margin27{margin:2px 3% 8px;max-width:94%;padding:13px}}


/* objects-v30.css */
.object-detail-art{width:100px;margin:8px auto}.object-detail-art svg{width:100%}.object-shelf30{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:55vh;overflow:auto}.object-shelf-item{display:flex;align-items:center;text-align:left;gap:8px;min-width:0}.object-shelf-item svg,.object-shelf-item img{width:56px;height:68px;flex-shrink:0;object-fit:contain}.object-shelf-item small{display:block;opacity:.65}.object-lit30{filter:drop-shadow(0 0 12px #ffcb71);}.object-lit30:before{content:'';position:absolute;inset:-30%;background:radial-gradient(ellipse,#ffd98650,transparent 70%);pointer-events:none}.catalog-item .catalog-art svg{height:100%;width:100%}@media(max-width:650px){.object-shelf30{grid-template-columns:1fr 1fr}}@media(max-width:420px){.object-shelf30{grid-template-columns:1fr}}

.catalog-item{content-visibility:auto;contain-intrinsic-size:auto 280px}#object-room30{display:block;width:100%;margin:10px 0;font:inherit;background:#2d2236;color:#f8eaf5;border:1px solid #a56b99;padding:8px;border-radius:8px}.stat:nth-child(5) .bar i{background:#71b8c4}

/* Painted cutouts retain a fixed footprint while their image decodes. */
.painted-object31{position:relative;display:block;width:100%;height:auto;aspect-ratio:1;pointer-events:none}
.painted-object31 img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;pointer-events:none;-webkit-user-drag:none;user-select:none}
.object-detail-art .painted-object31{width:100%;height:auto}
.object-shelf-item .painted-object31{width:56px;height:56px;flex:0 0 56px}
.painted-lit31{filter:drop-shadow(0 0 7px #ffce78a0)}
.painted-flame31{position:absolute;left:50%;top:15%;width:7%;height:12%;transform:translateX(-50%);border-radius:75% 25% 70% 30%;background:radial-gradient(ellipse at 50% 70%,#fff8ba 12%,#ffc95b 50%,#ed854000 80%);filter:drop-shadow(0 0 4px #fbb244)}
.catalog-item .catalog-art{width:min(100%,140px);height:140px}

.movable-prop .painted-object31{position:absolute;bottom:0;height:auto}


/* rooms-v30.css */
/* Six equal pavilion columns on desktop; comfortable tap targets on smaller screens. */
.room-tabs.zoo-room-tabs{grid-template-columns:repeat(6,minmax(0,1fr));max-height:none;overflow:visible;scrollbar-gutter:auto;gap:7px}
.room-tabs.zoo-room-tabs button{min-height:50px;padding:8px 5px;font-size:11px;line-height:1.25;overflow-wrap:normal}
@media(max-width:1000px){.room-tabs.zoo-room-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.room-tabs.zoo-room-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.room-tabs.zoo-room-tabs button{font-size:11px;min-height:46px}}


/* navigation-v32.css */
/* Keep every floating control reachable on short and mobile viewports. */
.top-menu{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.top-menu #manual-save{background:#cf8acb;color:#211025;border-color:#cf8acb}
.top-menu #manual-save:hover{background:#e3a5de;color:#211025}
header .header-controls #help{box-sizing:border-box;height:34px;min-height:34px;margin:0;padding:7px 11px;border:1px solid #494057;border-radius:10px;background:#292437;color:#eee9f5;font-size:12px;line-height:1;white-space:nowrap}
header .header-controls #help:hover{background:#b785c3;color:#17111d;border-color:#b785c3}
footer #release-log{margin-left:0}
@media(max-width:760px){.top-menu{max-height:calc(100dvh - 140px)}header .header-controls #help{font-size:10px;padding:7px 8px}.header-controls{flex-wrap:wrap}}


/* experience-v33.css */
.help33{max-width:720px}.help33 h2{font-size:26px;margin:8px 0 22px}.help33 p{font:inherit;font-size:16px;line-height:1.75;color:inherit;margin:0 0 20px}@media(max-width:1024px),(pointer:coarse){.help33 p{font-size:17px}}
.handwritten33{border:2px solid #76556c;border-radius:6% 4% 7% 3% / 4% 7% 3% 6%;background:#fff8ed;box-shadow:3px 4px 0 #6f4a641a;padding:17px 14px;color:#493543;transform:rotate(-1deg)}
.handwritten33.note-right33{transform:rotate(1.2deg)}.handwritten33.note-center33{transform:rotate(-.3deg)}
.handwritten33 .margin-text27{font:15px/1.7 'Segoe Print','Bradley Hand','Comic Sans MS',cursive;color:#4f354b}.handwritten33>small{letter-spacing:.4px;text-transform:none;font:italic 12px Georgia,serif;color:#a06b8d}.handwritten33:after{content:'✎';position:absolute;right:10px;top:7px;font-size:17px;color:#b483a3;opacity:.5;pointer-events:none}.handwritten33.editing{transform:none}.handwritten33.saved-margin27{width:76%;max-width:76%;margin:8px 0 20px;justify-self:start;grid-column:1/-1}.handwritten33.saved-margin27.note-right33{justify-self:end}.handwritten33.saved-margin27.note-center33{justify-self:center}
@media(min-width:761px){.ink-panel[data-note-lane=left][data-note-order=first]{grid-column:3/span 2}.ink-panel[data-note-lane=left][data-note-order=second]{grid-column:5/span 2}.ink-panel[data-note-lane=right][data-note-order=first]{grid-column:1/span 2}.ink-panel[data-note-lane=right][data-note-order=second]{grid-column:3/span 2}.ink-panel[data-note-lane=center][data-note-order=first]{grid-column:1/span 2}.ink-panel[data-note-lane=center][data-note-order=second]{grid-column:5/span 2}.ink-panel[data-note-lane] .ink-bubble{flex-basis:100%;padding:12px 10px;font-size:11px}.ink-panel[data-note-lane] .ink-cast{flex-wrap:wrap}.ink-panel[data-note-lane] .ink-person{max-width:80%}.ink-panel[data-note-lane] .chibi-figure{height:150px}}
@media(max-width:760px){.handwritten33.saved-margin27{width:88%;max-width:88%}.handwritten33 .margin-text27{font-size:14px}}


/* notes-typography.css */
@font-face{font-family:'Diary Pencil';src:url('assets/fonts/shadows-into-light-two.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
/* Saved words keep their original value; capitals are presentation only. */
.handwritten33 .margin-text27{position:relative;font-family:'Diary Pencil','Segoe Print','Bradley Hand',cursive;font-size:24px;font-weight:400;font-style:normal;line-height:1.3;letter-spacing:.025em;text-transform:uppercase;color:#493b49;transform:rotate(-3deg);transform-origin:left center;margin:8px 3px 12px 0;padding-bottom:18px}
.handwritten33 .margin-text27:after{content:'';display:block;width:95%;height:22px;margin-top:7px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' fill='none'%3E%3Cpath d='M3 19L49 14L102 9L151 5L197 2M29 22L75 17L126 12L176 8M68 23L111 18L148 14' stroke='%23493b49' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left center/100% 100% no-repeat;pointer-events:none;opacity:.85}
@media(max-width:760px){.handwritten33 .margin-text27{font-size:22px;line-height:1.35}}


/* action-notice.css */
/* Outside the camera transform; clicks pass through to the scene. */
.illustrated-room,.city-scroll{position:relative}
#toast.scene-notice{position:absolute;top:16px;left:50%;right:auto;bottom:auto;transform:translateX(-50%);width:max-content;max-width:min(560px,calc(100% - 32px));margin:0;padding:12px 18px;z-index:130;background:rgba(43,23,46,.78);color:#fff0fb;border:1px solid rgba(246,184,228,.65);border-radius:12px;box-shadow:0 6px 24px #0005;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);pointer-events:none;text-align:center;font-size:14px;line-height:1.5;font-weight:600;box-sizing:border-box;overflow-wrap:anywhere}
@media(max-width:760px){#toast.scene-notice{top:10px;max-width:calc(100% - 20px);padding:9px 12px;font-size:12px;border-radius:9px}}


/* wardrobe-v34.css */
.wear-body34{position:relative;background:none!important;clip-path:none!important;aspect-ratio:3/8!important;overflow:visible}
.wardrobe-preview34{float:left;width:95px;min-height:254px;margin:0 18px 12px 0;padding:10px;border-radius:12px;background:radial-gradient(ellipse,#80516f55,transparent 75%)}
.wardrobe-preview34>.wardrobe-body34{width:100%;height:auto!important;min-height:220px}
.wardrobe-equipped34{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.wardrobe-equipped34>button{text-align:left;padding:8px 10px;font-size:11px}
.wardrobe-grid34{clear:both;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wardrobe-grid34 .object-shelf-item{min-width:0;text-align:left}.wardrobe-grid34 .object-shelf-item>span{overflow-wrap:anywhere}
.wardrobe-grid34 .object-shelf-item img{height:55px;width:55px;object-fit:contain}
.room-options:has(.wardrobe-preview34){overflow-y:auto;max-height:calc(100% - 24px)}
@media(max-width:760px){.wardrobe-grid34{grid-template-columns:1fr}.wardrobe-preview34{width:68px;min-height:184px;margin-right:10px}.wardrobe-preview34>.wardrobe-body34{min-height:165px}.wardrobe-equipped34>button{font-size:10px}}

.wardrobe-grid34 .object-shelf-item span{font-size:12px;line-height:1.35}
.wardrobe-grid34 .object-shelf-item small{font-size:10px}
.room-home+.room-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:760px){.room-home+.room-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:760px){.illustrated-room:has(.wardrobe-panel34){width:100%;max-width:100%;aspect-ratio:auto!important;min-height:470px}.room-options.wardrobe-panel34{left:10px;right:10px;top:12px;bottom:12px;width:auto;max-height:calc(100% - 24px);overflow-y:auto}.wardrobe-panel34 .object-detail-art{height:95px}.wardrobe-panel34 .object-detail-art img{height:90px;object-fit:contain}.wardrobe-panel34 h2{font-size:18px}.wardrobe-panel34 p{font-size:12px;line-height:1.45}}

.worn-list124{display:flex;flex-direction:column;gap:8px}.worn-list124 button{text-align:left;padding:10px 14px}


/* school-exhibits-v35.css */
.school-exhibit35{display:block;width:100%;height:100%;aspect-ratio:1;background-image:url('assets/objects-v35/school-exhibits.webp');background-repeat:no-repeat;background-size:400% 300%;background-position:calc(var(--tile-x)*100%/3) calc(var(--tile-y)*50%);pointer-events:none}
.school-prop35{aspect-ratio:1}.school-prop35 .school-exhibit35{position:absolute;inset:0}
.object-detail-art:has(.school-exhibit35){width:180px;aspect-ratio:3/2}
.object-shelf-item>.school-exhibit35{width:62px;height:42px;flex-shrink:0}
.catalog-art>.school-exhibit35{width:100%;height:100%;aspect-ratio:1}

.school-card35{display:block;width:100%;height:100%;pointer-events:none}

.movable-prop.school-table35{max-width:none}

.school-trim35{clip-path:inset(0 0 0 7%)}


/* branding-v351.css */
/* Preserve supplied lettering; black blends with the existing dark header. */
body>header .brand{display:flex;align-items:center;justify-content:flex-start;width:184px;height:54px;flex:0 0 184px;line-height:1;text-decoration:none}
body>header .brand .brand-image{display:block;width:100%;height:auto;max-height:100%;object-fit:contain;object-position:left center;mix-blend-mode:screen}
body>header .brand:focus-visible{outline:2px solid #f58cce;outline-offset:4px;border-radius:4px}
@media(max-width:760px){body>header .brand{width:172px;height:47px;flex-basis:172px}}
@media(max-width:420px){body>header .brand{width:150px;height:44px;flex-basis:150px}}


/* ziny-v36.css */
.zin-gallery36,.zin-editor36{padding:24px;background:radial-gradient(ellipse at 10% 0,#62304750,transparent 55%),#17121f;min-height:480px}
.zin-gallery36>header,.zin-editor36>header{position:static;display:flex;justify-content:space-between;align-items:start;flex-wrap:wrap;gap:14px;padding:0 0 22px;border:0;min-height:0}.zin-gallery36 h2,.zin-editor36 h2{font-size:32px;margin:7px 0}.zin-gallery36 header p,.zin-editor36 header p{font-size:13px;line-height:1.5;max-width:490px;margin:0;color:#cbbdd0}
.zin-gallery-grid36{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px;margin-bottom:24px}.zin-card36{padding:0 0 12px;background:transparent;border:0;text-align:left;min-width:0;transition:transform .18s}.zin-card36>span:last-of-type{display:block;font-weight:700;padding-top:12px;overflow-wrap:anywhere}.zin-card36>small{display:block;font-size:10px;line-height:1.5;margin-top:6px}
.zin-cover36{position:relative;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;isolation:isolate;aspect-ratio:3/4;width:100%;padding:17px;color:#241b28;background:#f0e5d1;border:2px solid #211929;box-shadow:5px 6px 0 #08060b90;transform:rotate(-1deg)}
.zin-cover36>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;opacity:.55;filter:grayscale(1) contrast(1.15)}.zin-cover36:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(160deg,#f5ebd4e0 10%,#f5ebd411 60%,#f5ebd4d9);pointer-events:none}.zin-cover-meta36{font-size:9px;letter-spacing:1px;line-height:1.5;text-transform:uppercase;max-width:90%;background:#f0e5d1cc;padding:5px}.zin-cover-title36{font-family:'Diary Pencil',cursive;font-size:clamp(21px,2.8vw,38px);line-height:1.1;font-weight:800;text-transform:uppercase;overflow-wrap:anywhere;background:#f8eddaed;padding:9px 6px;transform:rotate(-5deg);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}.zin-cover-author36{font-size:9px;letter-spacing:1px;align-self:start;background:#241b28;color:#f1e2ed;padding:6px}
.zin-tape36{position:absolute;width:57%;height:22px;top:-5px;left:30%;background:#dacf9da0;transform:rotate(7deg);mix-blend-mode:multiply}
.zin-punk36{border:3px solid #1d1823;transform:rotate(-2deg)}.zin-punk36 .zin-cover-title36{background:#e784bb;color:#231525;box-shadow:3px 3px 0 #241b28}
.zin-ink36{background:#37253e;color:#fae8f5;transform:rotate(2deg)}.zin-ink36:after{background:linear-gradient(145deg,#2c1d36d9,#72426345,#2c1d36dd)}.zin-ink36 .zin-cover-meta36{background:#30203ccc}.zin-ink36 .zin-cover-title36{background:#30203ce6;color:#f5cae9;text-decoration-color:#c59ee1}
.zin-paper36 .zin-cover-title36{font-family:'Diary Pencil',cursive;background:#eee5d5;box-shadow:none;color:#302d35}.zin-paper36>img{opacity:.35}
.zin-workbench36{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(150px,.8fr);gap:28px}.zin-workbench36 form{display:flex;flex-direction:column;gap:14px}.zin-workbench36 label,.zin-uses36 label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600}.zin-workbench36 input,.zin-workbench36 textarea,.zin-workbench36 select,.zin-uses36 select{font:inherit;font-size:13px;line-height:1.5;padding:10px;background:#241b2e;color:#f1e7f2;border:1px solid #77617e;border-radius:8px;width:100%;min-width:0}.zin-workbench36 textarea{resize:vertical}.zin-form-row36{display:grid;grid-template-columns:1fr 1fr;gap:10px}.zin-cost36{font-size:12px;line-height:1.6;padding:12px;border:1px solid #986484;background:#56334733;border-radius:9px}.zin-draft-note36,.zin-preview-note36{font-size:11px!important;line-height:1.5;color:#c3aebf}.zin-empty36{padding:40px 20px;border:1px dashed #8a627e;background:#221827;border-radius:12px}.zin-rules36{margin-top:25px;border-top:1px solid #684764;padding-top:18px}.zin-rules36 p{font-size:12px;line-height:1.7}.zin-rules36 summary{cursor:pointer;font-weight:600}
.zin-detail36{display:grid;grid-template-columns:minmax(160px,.75fr) minmax(240px,1.2fr);gap:25px;margin-top:25px}.zin-uses36{display:flex;flex-direction:column;gap:10px}.zin-uses36 h3{margin:0 0 5px}.zin-uses36 button{text-align:left;font-size:12px;line-height:1.45}.zin-uses36 p,.zin-stamp36{font-size:11px;line-height:1.65;color:#c9b5c8}.zin-uses36 button:disabled{opacity:.55;cursor:default}
.zin-reader36{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:32px}.zin-page36{padding:20px;background:#f0e7d7;color:#27202d;box-shadow:3px 4px 0 #08060c;overflow:hidden;min-height:230px}.zin-page36>small{color:#6b546b;font-size:9px;letter-spacing:1px}.zin-page36 h3{font-size:22px;font-family:'Diary Pencil',cursive;color:#312030;line-height:1.2}.zin-page36 p{font-size:13px;line-height:1.75;overflow-wrap:anywhere;white-space:normal}.zin-page36 img{display:block;width:100%;max-height:170px;object-fit:cover;filter:grayscale(.8);border:7px solid #faf6ed;transform:rotate(-2deg);box-shadow:2px 3px 0 #927c9455}.zin-page-136{transform:rotate(1deg);background:#e9dfef}.zin-page-236{grid-column:1/-1;background:#f2e4dc}.zin-page36 blockquote{border-left:3px solid #8c5e79;padding-left:10px;font-size:12px;line-height:1.6}
.zin-feed-cover36{display:block;width:100%;padding:14px;background:#1c1526;border:0;border-radius:0}.zin-small36{max-width:200px;margin:0 auto}.zin-small36 .zin-cover-title36{font-size:28px}
@media(max-width:900px){.zin-gallery-grid36{grid-template-columns:repeat(2,minmax(0,1fr))}.zin-detail36{grid-template-columns:1fr}.zin-detail36>.zin-cover36{max-width:300px}}
@media(max-width:760px){.zin-gallery36,.zin-editor36{padding:16px}.zin-gallery36 h2,.zin-editor36 h2{font-size:26px}.zin-workbench36{grid-template-columns:1fr;gap:20px}.zin-workbench36>div{max-width:230px;margin:auto}.zin-form-row36{grid-template-columns:1fr}.zin-reader36{grid-template-columns:1fr}.zin-page-236{grid-column:auto}.zin-detail36{display:flex;flex-direction:column}.zin-detail36>div:first-child{max-width:230px;margin:auto}.zin-cover36{padding:12px}.zin-cover-title36{font-size:25px}.zin-gallery-grid36{gap:18px 10px}.zin-cover-meta36{font-size:8px}.zin-card36>small{font-size:9px}}
@media(max-width:420px){.zin-gallery-grid36{grid-template-columns:1fr}.zin-card36{max-width:250px;margin:auto;width:100%}}

#zin-source36[hidden]{display:none}

.actionpanel[hidden]{display:none!important}
#toast.zin-notice36{position:relative;inset:auto;transform:none;pointer-events:none;width:100%;margin:0 0 20px;padding:12px 15px;border-radius:9px;background:#6e385b80;color:#ffe8f5;border:1px solid #bd85a88c;box-shadow:none}


/* anatomy-v36.css */
.anatomy-prop36{display:block;width:100%;height:100%;background-image:url('assets/objects-v36/anatomy.webp');background-repeat:no-repeat;background-size:200% 100%;background-position:calc(var(--anatomy-column)*100%) center;pointer-events:none}
.anatomy-object36 .anatomy-prop36{position:absolute;inset:0}.object-shelf-item>.anatomy-prop36{width:55px;height:70px;flex-shrink:0}.object-detail-art:has(.anatomy-prop36){width:155px;height:155px}

.catalog-art>.anatomy-prop36{width:140px;height:140px;max-width:100%;margin:auto}


/* continuity-v37.css */
.continuity37{margin-top:24px;padding-top:20px;border-top:1px solid #765477}.continuity37 details{margin:15px 0;padding:12px;background:#211727;border:1px solid #644b70;border-radius:10px}.continuity37 summary{cursor:pointer}.continuity37 input:not([type=checkbox]),.continuity37 textarea{display:block;width:100%;margin:8px 0;padding:12px;color:#eee;background:#130f1b;border:1px solid #765477;border-radius:8px;font:inherit;overflow-wrap:anywhere}.continuity37 button{margin:5px 6px 5px 0}.continuity37 textarea{font-family:monospace;height:100px}.continuity37 #local-backups37{display:flex;flex-wrap:wrap;gap:5px}.continuity37 label{display:block;line-height:1.6}.continuity37 [hidden]{display:none!important}

#continuity-status37{margin:10px 0 0;font-size:12px;line-height:1.5;grid-column:1/-1;padding:9px;border:1px solid #735b79;border-radius:8px;color:#e8d9ef;background:#211727}#continuity-status37[data-save-kind=server]{border-color:#78aa91;color:#b8efcf}#continuity-status37[data-save-kind=pending],#continuity-status37[data-save-kind=local]{color:#f2dda6}#continuity-status37[data-save-kind=error],#continuity-status37[data-save-kind=conflict]{color:#ffc4ce;border-color:#d78598}@media(pointer:coarse){#continuity-status37{font-size:14px}}


/* mobile-v38.css */
/* Touch layout: readable controls, no dependence on hover. */
.room-viewport.touch-camera-active38{touch-action:none}
.touch-camera38{display:none}
@media(max-width:1024px),(pointer:coarse){
 body{font-size:17px;padding-right:130px;-webkit-text-size-adjust:100%}main{padding:12px}.layout{grid-template-columns:minmax(0,1fr);gap:16px}aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.chapter-panel{grid-column:1/-1}.top-menu{right:max(6px,env(safe-area-inset-right));top:50%;bottom:auto;width:120px;max-height:calc(100dvh - 16px);padding:4px;gap:6px}.top-menu button{width:110px;min-height:44px;font-size:16px;padding:10px 8px;line-height:1.2}.room-tabs button,.room-actions button,.room-objects button,.choice,#actions button{font-size:16px;min-height:44px;padding:10px 12px;line-height:1.35}.city-hotspot{line-height:1.2;white-space:nowrap}.room-npc>span:last-child{font-size:13px}.room-npc small{font-size:12px}.room-options p,.spoken,.panel p,.profile p,.profile-story p,.help33 p,.help33 li{font-size:16px;line-height:1.55}.room-options h2{font-size:23px}.room-options button,.wardrobe-equipped34>button{font-size:16px;min-height:44px}.wardrobe-grid34 .object-shelf-item span{font-size:15px}.wardrobe-grid34 .object-shelf-item small{font-size:13px}.stat{font-size:14px;grid-template-columns:145px minmax(25px,1fr) 30px}.friend{font-size:16px}.friend small{font-size:13px}.camera-tools button{font-size:17px;min-width:44px;min-height:44px;padding:8px}.camera-tools .touch-camera38{display:block;font-size:14px;min-width:105px}.camera-tools span{font-size:13px}.camera-hint{font-size:12px;max-width:95%;white-space:normal}.room-options{max-height:calc(100% - 16px);overflow:auto;-webkit-overflow-scrolling:touch}.room-options.wardrobe-panel34 p{font-size:16px}.room-options.wardrobe-panel34 h2{font-size:23px}.room-home+.room-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}dialog{max-height:calc(100dvh - 24px);width:min(92vw,650px);overflow:auto}dialog p,dialog label,dialog input,dialog textarea,dialog select{font-size:16px}.header-controls button{min-height:44px!important;font-size:15px!important}#clock strong{font-size:22px}header{padding:8px 12px;gap:12px}.comic-page p,.comic-page .speech,.zin-page36 p{font-size:16px}.scene-caption h3{font-size:22px}.compact-checkin h2,.feeling-panel h2{font-size:18px}.compact-checkin p,.feeling-panel p{font-size:15px}
}
@media(max-width:600px){body{padding-right:110px}.top-menu{width:102px}.top-menu button{width:94px;font-size:15px}aside{grid-template-columns:1fr}.room-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}.camera-tools{right:4px;bottom:32px;gap:2px;flex-wrap:wrap;max-width:calc(100% - 8px)}.camera-tools .touch-camera38{min-width:88px;font-size:12px}.camera-tools button{min-width:40px;padding:7px}.camera-hint{bottom:5px;font-size:11px}.stat{grid-template-columns:125px minmax(20px,1fr) 28px;font-size:13px}.wardrobe-grid34{grid-template-columns:1fr}}
@media(orientation:landscape) and (max-height:650px) and (max-width:1400px){
 body{padding-right:114px}header{padding:5px 10px;gap:12px;min-height:50px;flex-wrap:nowrap}.brand img{max-height:44px!important;width:auto!important}.tag{display:none}.header-controls{gap:5px;flex-wrap:nowrap}.header-controls button{font-size:14px!important;min-height:40px!important;height:40px!important;padding:7px!important}.header-clock{padding:4px 8px!important}.header-clock strong{font-size:20px}.header-clock small{font-size:11px}main{padding:8px 10px}.layout{grid-template-columns:1fr}.top-menu{width:108px;right:4px;max-height:calc(100dvh - 8px);gap:4px}.top-menu button{width:100px;font-size:15px;min-height:44px}.illustrated-room:not(:has(.room-options)){aspect-ratio:2/1!important;min-height:240px}.scene-caption{padding:8px 12px!important}.scene-caption h3{font-size:19px}.camera-tools{bottom:30px}.camera-hint{font-size:11px}.room-actions{gap:5px}.room-actions button{font-size:15px;padding:8px 10px}.room-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px}.room-tabs button{font-size:15px;min-height:44px}.illustrated-room:has(.room-options){min-height:420px!important;aspect-ratio:auto!important}.room-options{top:8px;bottom:8px;max-height:calc(100% - 16px);overflow:auto}aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.chapter-panel{grid-column:1/-1}.wardrobe-grid34{grid-template-columns:repeat(2,minmax(0,1fr))}.phone-frame{max-width:100%}dialog{max-height:calc(100dvh - 16px)}
}
@media(max-width:1024px),(pointer:coarse){.top-menu #manual-save,.top-menu #pausebtn{font-size:16px;min-height:44px;padding:10px 8px}}
@media(orientation:landscape) and (max-height:650px) and (max-width:1400px){.top-menu #manual-save,.top-menu #pausebtn{font-size:15px;min-height:44px}}
@media(orientation:landscape) and (max-height:650px) and (max-width:1400px){.illustrated-room:not(:has(.room-options)){height:calc(100svh - 84px);min-height:230px;max-height:420px;aspect-ratio:auto!important}}
@media(max-width:1024px),(pointer:coarse){.top-menu{position:fixed;transform:translateY(-50%);top:50%;bottom:auto}}


/* interface-v39.css */
/* Sidebar controls remain in normal layout flow on every screen. */
.layout>aside>#clock.sidebar-clock39{box-sizing:border-box;width:100%;min-width:0;height:58px;min-height:58px;margin:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#292235;border:1px solid #51415e;border-radius:14px;flex:none}
.sidebar-clock39 .clock-day{font-size:12px;white-space:nowrap}.sidebar-clock39 strong{font-size:24px;font-variant-numeric:tabular-nums;min-width:5ch;text-align:right}.retired-journal39{display:none!important}
#sidebar-actions39[hidden]{display:none!important}#sidebar-actions39{padding:14px}#sidebar-actions39>small{display:block;letter-spacing:1.6px;color:#ccb1d0;font-size:10px;margin-bottom:10px}
#sidebar-actions39 #room-actions{position:static!important;inset:auto!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:none;max-height:none;overflow:visible;gap:8px;padding:0;margin:0;background:none;border:0;transform:none}
#sidebar-actions39 #room-actions button{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:0;padding:10px 8px;font-size:13px!important;line-height:1.3;white-space:normal;overflow-wrap:anywhere;text-align:center}
#sidebar-actions39 #room-actions>p,#sidebar-actions39 #room-actions>span{grid-column:1/-1;font-size:12px}
/* Actors always stay above props, including a prop being dragged (layer 300). */
.room-stage .room-person,.room-stage .room-npc{z-index:400!important}.room-stage .room-npc>.room-sprite,.room-stage .room-npc>span{pointer-events:none}.room-stage .movable-prop{z-index:200!important}.room-stage .movable-prop.dragging-prop{z-index:300!important}
footer #pausebtn,footer #manual-save{background:#cf8acb;color:#211025;border:1px solid #cf8acb;border-radius:9px;min-height:40px;padding:8px 12px;font-size:12px}footer #pausebtn:hover,footer #manual-save:hover{background:#e3a5de}footer #help{min-height:40px}
@media(max-width:1024px){.sidebar-actions39{grid-column:1/-1}#sidebar-actions39 #room-actions button{font-size:16px!important}.layout>aside>#clock.sidebar-clock39{grid-column:1/-1}.layout>aside>#chapter{grid-column:1/-1}}

@media(orientation:landscape) and (max-height:600px) and (min-width:740px){.layout{grid-template-columns:minmax(0,1fr) 250px!important;gap:12px}.layout>aside{display:flex;flex-direction:column;align-items:stretch}.layout>aside>*{width:100%;box-sizing:border-box}#sidebar-actions39 #room-actions button{font-size:15px!important}}
/* Bound unusually large props so the edge rows remain usable on small screens. */
.room-stage .movable-prop{max-width:10%!important;max-height:16%!important}

.illustrated-room>.camera-tools{position:absolute;top:10px;right:10px;bottom:auto;left:auto;z-index:250;display:flex;align-items:center;flex-wrap:nowrap;gap:4px;max-width:calc(100% - 20px);width:auto;margin:0;padding:4px;background:#21192dd9;border:1px solid #695372;border-radius:10px;transform:none}
.camera-tools[hidden]{display:none!important}.illustrated-room>.camera-tools button{box-sizing:border-box;min-width:30px;width:30px;min-height:30px;height:30px;padding:4px;font-size:14px;line-height:1;border-radius:7px}.illustrated-room>.camera-tools .zoom-level{font-size:11px;min-width:43px;text-align:center}.illustrated-room>.camera-tools .touch-camera38{display:none;width:auto;font-size:11px}
select#zoom-visible41{display:block;width:100%;font:inherit;padding:8px;margin-top:8px;background:#2a2135;color:#f4e7f3;border:1px solid #8e6d9b;border-radius:8px}
@media(pointer:coarse),(max-width:1024px){.illustrated-room>.camera-tools button{min-width:36px;width:36px;min-height:36px;height:36px;font-size:16px}.illustrated-room>.camera-tools .touch-camera38{display:block;width:64px;min-width:64px;max-width:64px;font-size:10px;white-space:normal;line-height:1.1}.illustrated-room>.camera-tools{top:7px;right:7px;padding:3px;gap:3px}.illustrated-room>.camera-tools .zoom-level{font-size:10px;min-width:36px}}

.room-stage .room-person{pointer-events:auto!important;cursor:grab;touch-action:none}.room-stage .room-npc{cursor:grab;touch-action:none}.room-stage [data-person]{user-select:none;-webkit-user-select:none}.room-stage .dragging-actor41{cursor:grabbing;z-index:450!important;will-change:transform;outline:1px dashed #dda4d7;outline-offset:3px}.room-stage [data-person]:focus-visible{outline:2px solid #dca2d7;outline-offset:3px}

.room-stage .dragging-actor41{transition:none!important}.simulation-paused .room-stage [data-person]{pointer-events:none!important}

/* Keep the fixed dock beside the centered game (1450px content + 112px reserved rail).
   Compact and touch layouts keep their existing viewport-edge controls. */
@media(min-width:1025px) and (pointer:fine){
 .top-menu{right:max(16px,calc((100vw - 1450px - 112px)/2 + 16px))}
}

header #mapbtn{display:none!important}


/* wardrobe-v43.css */
/* Opaque, self-contained garment parts replace all old atlas/CSS overlays. */
.wear-body43 .wear-figure43{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible;pointer-events:none;filter:none}
.wear-body43{background:none!important;filter:none!important;clip-path:none!important;isolation:isolate}
.garment-icon43{display:block;width:100%;height:100%;max-height:150px;pointer-events:none;filter:none!important;opacity:1}
.object-shelf-item>.garment-icon43{width:68px;height:78px;flex-shrink:0}
.object-detail-art>.garment-icon43{max-height:190px}
.movable-prop>.garment-icon43{height:100%;max-height:none}


/* admin-time-v45.css */
/* Seconds use tabular digits and a fixed column, avoiding a moving sidebar. */
.layout>aside>#clock.sidebar-clock39{gap:8px;padding-inline:12px}
.sidebar-clock39 .clock-day{font-size:11px}
.sidebar-clock39 strong{font-size:21px;min-width:8ch;width:8ch;flex:none;font-variant-numeric:tabular-nums}
.admin45>h2{margin:9px 0 14px}.admin45-summary{padding:12px 16px;background:#292235;border:1px solid #51415e;border-radius:12px;margin-bottom:16px}.admin45-summary p{margin:4px 0;font-size:13px;line-height:1.5}#admin-clock45{font-variant-numeric:tabular-nums;font-weight:600}.admin45-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin45-grid .admin-game-settings{margin:0;padding:14px;border:1px solid #51415e;border-radius:12px}.admin45-grid h3{margin:0 0 12px;font-size:17px}.admin45-grid p,.admin45-grid label{font-size:13px;line-height:1.5}.admin45-grid button{width:100%;font-size:13px}.admin45-grid select{display:block;margin-top:9px;padding:8px;font:inherit;color:inherit;background:#292235;border:1px solid #725781;border-radius:8px}#admin-log45{margin-top:16px}
@media(max-width:600px){.admin45-grid{grid-template-columns:1fr}.admin45-grid label,.admin45-grid p,.admin45-grid button{font-size:16px}.sidebar-clock39 strong{font-size:20px}.sidebar-clock39 .clock-day{font-size:11px}}


/* player-terms-v46.css */
#terms-dialog46{position:fixed;inset:0;margin:auto;width:min(740px,calc(100vw - 32px));max-width:740px;max-height:calc(100dvh - 32px);padding:28px;z-index:10000;background:linear-gradient(145deg,#291d34,#15121f);color:#eee9f5;border:1px solid #b587bc;border-radius:20px;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 100px #0009}#terms-dialog46::backdrop{background:#080612b8;backdrop-filter:blur(6px) brightness(.55);-webkit-backdrop-filter:blur(6px) brightness(.55)}.terms46>small{letter-spacing:2px;font-size:10px;color:#d2afda}.terms46 h2{font-size:26px;margin:12px 0}.terms46 p{line-height:1.5;font-size:14px}.terms-document46{padding:12px 18px;background:#ffffff08;border:1px solid #72577e;border-radius:12px}.terms-document46 ul{margin:0;padding-left:20px}.terms-document46 li{font-size:15px;line-height:1.6;margin:10px 0}.terms-checkbox46{display:flex;align-items:flex-start;gap:12px;font-size:16px;line-height:1.5;margin:20px 0}.terms-checkbox46 input{width:22px;height:22px;flex:none;accent-color:#cf8acb}.terms46 button{min-height:44px;font-size:16px}#terms-player46,[data-player-id46]{overflow-wrap:anywhere;word-break:break-word;font-family:monospace}.player-support46{padding:9px 0;display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:11px!important}.player-support46>span{color:#bcabc6}.player-support46 code{font-size:11px;line-height:1.5}.player-support46 button{padding:5px 7px;font-size:11px}.admin-terms46{padding:12px 0;font-size:13px}.admin-terms46 code{overflow-wrap:anywhere}.admin-terms46 input,#terms-target46{display:block;width:100%;margin:8px 0;padding:9px;border-radius:8px;border:1px solid #71547d;background:#21182b;color:#fff;font:inherit}.admin45-grid #force-terms-player46,.admin45-grid #lookup-player46{margin-top:8px}
@media(max-width:600px),(max-height:550px){#terms-dialog46{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:18px;border-radius:14px}.terms46 h2{font-size:22px}.terms-document46 li,.terms46 p{font-size:16px}.terms-document46{padding:10px 14px}}

@media(pointer:coarse){.player-support46{font-size:13px!important}.player-support46 code{font-size:13px}.player-support46 button{min-height:40px;font-size:14px}}



/* analytics-v47.css */
#statistics-settings47{margin-left:10px}iframe[title="Statistika hry"]{display:none!important}
.terms-statistics482{margin-top:18px;padding:14px 18px;border:1px solid #72577e;border-radius:12px;background:#ffffff08}.terms-statistics482 h3{margin:0 0 10px;font-size:19px}.terms-statistics482 .terms-checkbox46{margin-bottom:0}#approval-requirement482{font-weight:600}#approval-decline482{margin:10px 0 0 8px}#terms-accept46:disabled{cursor:not-allowed;opacity:.45}.terms-document46 h3{font-size:16px;margin-top:0}

.approval-checks483{display:flex;flex-direction:column;gap:12px;margin:20px 0}.approval-checks483 .terms-checkbox46{margin:0}

/* Shared reading typography; button styles deliberately remain unchanged. */
.terms46{--approval-text-size:14px}
.terms46 p,.terms-document46 li,.approval-checks483 .terms-checkbox46{font-family:inherit;font-size:var(--approval-text-size);font-weight:400;line-height:1.5}
.terms-document46 li{color:#c7b9d2}
.terms-document46 h3{font-size:19px;line-height:normal;margin:0 0 10px}
.approval-checks483 .terms-checkbox46{color:#fff}
@media(max-width:600px),(max-height:550px){.terms46{--approval-text-size:16px}}

/* Each long document scrolls independently; choices remain in the same dialog. */
.approval-section545>h3{margin:0 0 10px;font-size:19px}
.approval-scroll545{max-height:min(26dvh,240px);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;padding:12px 16px;border:1px solid #72577e;border-radius:12px;background:#ffffff08;touch-action:pan-y}
.approval-scroll545:focus-visible{outline:2px solid #f2a4da;outline-offset:2px}
.approval-scroll545 h4{margin:18px 0 8px;font-size:inherit;color:#fff}
.approval-scroll545 h4:first-child{margin-top:0}
.approval-scroll545 p,.approval-scroll545 li{white-space:pre-wrap;overflow-wrap:anywhere}
.terms-statistics482.approval-section545{padding:0;border:0;background:none}
.terms-statistics482 .approval-scroll545 p{margin:8px 0 14px}
.settings-measurements545 h4{margin:10px 0 0;font-size:inherit}
@media(max-height:550px){.approval-scroll545{max-height:140px}}

/* A row in the text sheet becomes one semantic block, never a control. */
.approval-scroll545 .sheet-line547{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0;min-height:1em}
.approval-scroll545 .sheet-version547{font-size:12px;margin:0 0 14px}


/* story-v48.css */
#tutorial48{position:fixed;z-index:10010;left:50%;top:50%;transform:translate(-50%,-50%);overflow:auto;width:min(430px,calc(100vw - 40px));padding:22px;border:1px solid #d583d5;border-radius:18px;background:rgba(24,19,35,.97);box-shadow:0 12px 50px #0009;color:#faf2fc}#tutorial48 h2{font-size:23px;margin:8px 0}#tutorial48 p{font-size:16px;line-height:1.55}#tutorial48>div{display:flex;gap:8px;flex-wrap:wrap}#tutorial48 button{min-height:44px}.guide-target48{outline:2px solid #e9a1dc!important;outline-offset:4px}.story-message48{padding:16px;border:1px solid #935a96;border-radius:14px;background:#271d33;margin:12px 0}.relationship-memory48,.story-reflection48{border-left:3px solid #c17bc0;padding:12px;margin:12px 0;background:#ffffff08;font-size:15px;line-height:1.5}@media(max-width:700px),(max-height:500px){#tutorial48{width:min(430px,calc(100vw - 20px));padding:14px;max-height:calc(100dvh - 24px);overflow:auto}#tutorial48 h2{font-size:20px}#tutorial48 p{font-size:16px}}


/* traits-v49.css */
#traits-help49{font-size:12px;line-height:1.5;margin:10px 0;color:#c7b9d2}#traits-help49 summary{cursor:pointer;color:#eee9f5}#traits-help49 p{font-size:12px}


/* beta-story-v50.css */
.beta-ending50 ul{padding-left:20px}.beta-ending50 li{margin:10px 0;font-size:15px;line-height:1.6}.beta-ending50 p{line-height:1.6}.beta-ending50 strong{color:#fff}


/* content-controls-v52.css */
.content-note52{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:12px 16px;background:#242035;border:1px solid #766485;border-radius:12px;margin-bottom:12px;font-size:14px}.content-note52 span{flex:1;min-width:190px}.content-note52 button{font-size:13px}.content-settings52{display:grid;gap:16px;margin:20px 0}.content-settings52 label{display:flex;align-items:flex-start;gap:12px;line-height:1.5}.content-settings52 input{min-width:20px;height:20px;margin-top:3px;accent-color:#ca80bb}.teaching-card52{width:100%;height:100%;filter:drop-shadow(0 5px 4px #17102288)}#supportbtn52{color:#eedcf1}#modalcontent a{color:#edb8e9}

.sensitive-details56{padding:12px;border:1px solid #8e7091;border-radius:10px;margin:12px 0}.sensitive-details56 summary{cursor:pointer;font-size:15px;line-height:1.5}.sensitive-details56 p{font-size:15px}


/* social-selfies-v54.css */
.selfie-photo54{position:relative;margin:12px 0;aspect-ratio:4/5;overflow:hidden;border-radius:12px;background:#211b2d;isolation:isolate}.selfie-photo54>img{width:100%;height:100%;object-fit:cover;display:block}.selfie-photo54:not(.selfie-baked54)>img{filter:brightness(.7)}.selfie-person54{position:absolute;inset:0;overflow:hidden;z-index:1}.selfie-person54>.hd-face{position:absolute;width:86%;height:82%;bottom:0;left:7%;border-radius:42% 42% 0 0;box-shadow:0 6px 20px #0008}.selfie-person54>.wear-body34{position:absolute;width:90%;height:auto!important;min-height:0!important;left:5%;top:6%;aspect-ratio:3/8!important;filter:drop-shadow(0 8px 10px #0008)}.selfie-person54>.wear-body34>svg{width:100%;height:auto}.selfie-photo54 figcaption{position:absolute;bottom:0;left:0;right:0;padding:18px 12px 12px;background:linear-gradient(transparent,#0f091dd9);color:#fff;font-size:13px;z-index:2}#phone-selfie54{width:100%;margin:10px 0;font-size:15px;min-height:44px}#selfie-compose54 label{display:block}#selfie-compose54 textarea{width:100%;margin:8px 0;font-size:16px}#selfie-compose54 button{margin:5px 0;min-height:44px}#selfie-compose54 p{font-size:13px;line-height:1.5}


/* interface-v508.css */
/* One footer control system; existing button handlers and IDs are retained. */
body>footer>span:last-child{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
body>footer>span:last-child>button{position:static!important;inset:auto!important;transform:none!important;box-shadow:none!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:27.2px!important;height:27.2px!important;margin:0!important;padding:3px 11px!important;font:inherit!important;font-size:12px!important;line-height:18px!important;white-space:nowrap!important;border:1px solid #9b7eac!important;border-radius:9px!important;background:#32273e!important;color:#eee5f5!important}
body>header .header-controls{margin-left:auto;justify-content:flex-end;flex-wrap:nowrap}
body>header .tag b{margin:0;font-size:11px;white-space:nowrap}
.top-menu button{display:flex;align-items:center;justify-content:center;gap:5px}
#tutorial48{position:fixed;margin:0;inset:auto;transform:translate(-50%,-50%);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
#tutorial48::backdrop{background:#09081170;backdrop-filter:none}
#tutorial48 ul{padding-left:20px;margin:12px 0 18px;font-size:16px;line-height:1.5}
#tutorial48 li+li{margin-top:8px}
@media(min-width:1025px) and (pointer:fine){
 #stats .stat{font-size:15px;grid-template-columns:minmax(145px,1.6fr) minmax(28px,1fr) 30px;line-height:1.4}
}
@media(max-width:1024px),(pointer:coarse){
 body>header .tag{display:block}
 body>header .tag b{font-size:10px;letter-spacing:.5px}
 body>header .header-controls #mapbtn{display:none}
 .top-menu .dock-icon508{display:inline-block;flex:0 0 14px;font-size:14px;line-height:1;text-align:center}
 .top-menu button{font-size:14px!important;gap:4px;white-space:nowrap;padding-inline:4px;overflow-wrap:normal;word-break:normal;line-height:1.2}
 .top-menu #clock.sidebar-clock39{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;height:36px;min-height:36px;flex:none;padding:4px;margin:0;border:1px solid #51415e;border-radius:9px;background:#292235;gap:0}
 .top-menu #clock .clock-day{font-size:16px;white-space:nowrap}
 .top-menu #clock strong{display:none}
 #chapter.chapter-panel{font-size:16px;padding:16px;gap:8px}
 #chapter.chapter-panel>small{font-size:14px;letter-spacing:1px;line-height:1.4}
 #chapter.chapter-panel h2{font-size:20px;line-height:1.3}
 #chapter.chapter-panel p,#chapter.chapter-panel #quest{font-size:16px;line-height:1.5}
 #chapter.chapter-panel #guide-next{font-size:16px;min-height:44px;padding:10px 12px}
 body>footer>span:last-child>button{font-size:14px!important;min-height:35.2px!important;height:35.2px!important;padding:6px 12px!important}
}
/* 0.50.10: the compact clock keeps a fixed two-line footprint. */
@media(max-width:1024px),(pointer:coarse){
 .top-menu #clock.sidebar-clock39{height:58px;min-height:58px;flex-direction:column;gap:3px}
 .top-menu #clock strong{display:block;font-size:16px;line-height:20px;font-variant-numeric:tabular-nums;letter-spacing:.3px;white-space:nowrap}
}
/* Tablet room navigation uses one grid and one button shape in every house. */
@media(min-width:601px) and (max-width:1024px),(min-width:601px) and (pointer:coarse){
 #scene .room-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:1fr;gap:8px;max-height:none;overflow:visible;scrollbar-gutter:auto;padding:12px}
 #scene .room-tabs button{box-sizing:border-box;width:100%;min-width:0;min-height:52px;height:100%;margin:0;padding:10px 7px;transition:background-color .15s,border-color .15s,color .15s;flex:none;border-radius:9px;text-align:center;white-space:normal;overflow-wrap:anywhere;line-height:1.3;font-size:16px}
 #scene .room-tabs.zoo-room-tabs{grid-template-columns:repeat(7,minmax(0,1fr))!important}
 #scene .room-tabs.zoo-room-tabs button{font-size:17px;padding:10px 4px}
 #scene .room-graveyard+.room-tabs button{font-size:14px}
}

.brand-motto511{display:block;font-size:10px;line-height:1.4;letter-spacing:1px;margin-bottom:3px}body>header .tag b{display:block}
@media(max-width:1024px),(pointer:coarse){.top-menu .dock-label508{min-width:0;white-space:nowrap;font-size:14px;line-height:1.2}.brand-motto511{font-size:9px;letter-spacing:.3px}.tag{flex-shrink:0}}

/* 0.50.13: readable support identity across the complete profile width. */
.layout>aside>.profile>.player-support46{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;width:100%;min-width:0;box-sizing:border-box}
.layout>aside>.profile>.player-support46>code{grid-column:1/-1;grid-row:2;display:block;width:100%;min-width:0;font-family:monospace;line-height:1.5;letter-spacing:0}
.layout>aside>.profile>.player-support46>button{grid-column:1/-1;grid-row:3;justify-self:start}
.brand-motto511{font-size:12px}body>header .tag b{font-size:8.8px}
@media(min-width:1025px) and (pointer:fine){
 #stats .stat{font-size:12.6px}
 .layout>aside>.profile>.player-support46>code{font-size:11px;white-space:nowrap;word-break:normal;overflow-wrap:normal}
}
@media(max-width:1024px),(pointer:coarse){
 .brand-motto511{font-size:10.8px}body>header .tag b{font-size:8px}
 .layout>aside>.profile>.player-support46>code{font-size:12px;white-space:normal;word-break:break-all;overflow-wrap:anywhere}
}

.footer-brand555{display:flex;flex-direction:column;gap:5px}.footer-brand555 small{font:inherit;opacity:.8}


/* comfort-v509.css */
/* Explicit containing dimensions avoid WebKit shrinking empty sprite spans to zero. */
.room-stage .room-npc>.character-body,.room-stage .room-person>.character-body{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;min-width:0!important;aspect-ratio:auto!important}
.person-profile509{width:100%;padding:0;border:1px solid transparent;cursor:pointer}.person-profile509:focus-visible{border-color:#f9118e}.person-profile509 .character-body{width:100%}
.selfie-photo54>img{position:absolute;inset:0;width:100%;height:100%;margin:0}.photo-retry509{position:absolute;z-index:5;top:12px;left:12px;right:12px;font-size:14px;background:#251c30ee;color:white}
.catalog-filters509{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.catalog-filters509 label{display:grid;gap:6px}.catalog-filters509 select,.catalog-filters509 input{width:100%;min-height:44px;font-size:16px;background:#241b30;color:#fff;border:1px solid #806284;border-radius:8px;padding:8px}@media(max-width:600px){.catalog-filters509{grid-template-columns:1fr}}

/* 0.50.12: interior first, followed by one continuous touch sidebar. */
@media(max-width:1024px),(pointer:coarse){
 .layout:has(.illustrated-room){grid-template-columns:minmax(0,1fr)!important}
 .layout:has(.illustrated-room)>aside{display:flex!important;flex-direction:column;align-items:stretch;gap:16px}
 .layout:has(.illustrated-room)>aside>*{width:100%;box-sizing:border-box;min-width:0}
 .layout:has(.illustrated-room)>aside>#chapter{order:0}
 .layout:has(.illustrated-room)>aside>#sidebar-actions39{order:1}
 .layout:has(.illustrated-room)>aside>.profile{order:2}
 .layout:has(.illustrated-room)>aside>.panel:has(#relations){order:3}
 #scene .room-tabs button{border:1px solid #695372;border-radius:9px;background:#292235;color:#eee5f5;font-weight:600;box-shadow:none}
 #scene .room-tabs button.active,#scene .room-tabs button[aria-selected=true]{background:#61456e;border-color:#d8a0d0;color:#fff}
}
.object-detail-art{width:min(260px,80%);margin:16px auto}
.object-detail-art>svg,.object-detail-art>img,.object-detail-art .painted-object31{width:100%;height:230px;object-fit:contain}
.room-options:has(.object-detail-art) button,#modalcontent:has(.object-detail-art) button{font-size:17px!important;min-height:44px;line-height:1.35}
@media(max-width:1024px),(pointer:coarse){
 .room-options:has(.object-detail-art){left:8px;right:8px;width:auto;box-sizing:border-box;padding:16px}
 .room-options:has(.object-detail-art) .object-detail-art{width:min(260px,100%)}
}
@media(max-width:600px){
 #scene .room-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;grid-auto-rows:1fr;max-height:none;overflow:visible;padding:10px}
 #scene .room-tabs button{width:100%;min-width:0;height:100%;min-height:48px;margin:0;padding:10px 6px;font-size:16px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
}
.illustrated-room:has(.object-detail-art)>.camera-tools{display:none}


/* bug-report.css */
.bug-report518{max-width:620px;margin:auto}.bug-report518 .ul-contact-form{display:flex;flex-direction:column;gap:10px}.bug-report518 label{font-size:16px;font-weight:650;margin-top:8px;color:#fff}.bug-report518 input:not([type=hidden]):not([type=submit]),.bug-report518 textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #746080;border-radius:10px;background:#191422;color:#fff;padding:12px;font:inherit;font-size:16px}.bug-report518 textarea{resize:vertical;min-height:120px}.bug-report518 input:focus-visible,.bug-report518 textarea:focus-visible{outline:2px solid #f9118e;outline-offset:3px}.bug-report518 .ul-form-hint{font-size:13px;line-height:1.55;color:#cfc4d5}.bug-report518 #message-hint{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.bug-report518 .ul-action{min-height:48px;cursor:pointer;font-size:16px}.bug-report518 #bug-status518:empty{display:none}.bug-report518 #bug-status518{font-size:14px;line-height:1.5}
.bug-report518 .ul-action{border:1px solid #f2a3dd;border-radius:10px;background:#dfa1d5;color:#241325;padding:12px 18px;font-family:inherit;font-weight:650;transition:background .15s}.bug-report518 small.ul-form-hint{letter-spacing:normal;text-transform:none}


/* settings-v522.css */
.settings522{min-width:0}.settings-section522{display:flex;flex-direction:column;gap:10px;padding:24px 0;border-top:1px solid #705778}.settings-section522 h2{font-size:22px;margin:0}.settings-section522 p{margin:4px 0}.settings-section522>small{display:none}.settings-section522 button{min-height:44px}.settings-section522 .save-slots{grid-template-columns:1fr}.settings-section522 input:not([type=checkbox]),.settings-section522 textarea{max-width:100%;box-sizing:border-box}.settings-section522 .player-support46{max-width:100%}#settingsbtn{white-space:nowrap}#settings-legacy522{display:none!important}

/* Settings read in a single, predictable vertical flow. */
.settings522 .admin45-grid{grid-template-columns:minmax(0,1fr)}
.settings522 [data-settings-section=player]{align-items:stretch}
.settings522 [data-settings-section=player] h2{font-family:inherit;font-weight:700;font-size:22px;line-height:1.3}
.settings522 [data-settings-section=player] code{width:100%;box-sizing:border-box}

/* One spacing rhythm, including content moved from the legacy dialogs. */
.settings522>h2{margin:0 0 16px}
.settings522 .settings-section522{gap:12px}
.settings522 .settings-section522 h2{margin:0;font-size:22px;line-height:1.3}
.settings522 .settings-section522 p{margin:0;line-height:1.6}
.settings522 .settings-section522>div:not(.admin45-grid),.settings522 [data-settings-section=admin]>.admin45{display:flex;flex-direction:column;gap:12px}
.settings522 .admin45-summary{margin:0;gap:8px}
.settings522 .continuity37{margin:0;padding:0;border:0;display:flex;flex-direction:column;gap:12px}
.settings522 .continuity37 h3{margin:0;line-height:1.3}
.settings522 .continuity37 details{margin:0}
.settings522 .continuity37 .settings-backup-note544,.settings522 .settings-policy-note516{font-size:.77em}
.settings522 .admin45-grid .cycle-switch{display:flex;align-items:center;gap:12px}
.settings522 .admin45-grid .cycle-switch input{width:20px;height:20px;flex:none;accent-color:#cf8acb}
.settings522 .admin45-grid .cycle-switch strong{margin-left:auto}
#settings-back544{margin:16px 0 24px}
#modalcontent>[data-settings-section=restart]{gap:12px}

.settings522 .settings-consent-status514{margin:0;padding-left:1.4em;list-style:disc;line-height:1.6}
.settings522 .settings-consent-status514 li{display:list-item;margin:0 0 4px}
.settings522 .settings-backup-divider514{border:0;border-top:1px solid #705778;width:100%;margin:12px 0}


/* polish-v523.css */
.layout>aside>.profile>.player-support46{text-align:left}.layout>aside>.profile>.player-support46>button{justify-self:end}
.bag-grid523{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.bag-grid523>button{position:relative;min-width:0;aspect-ratio:1;padding:12px;display:grid;place-items:center}.bag-grid523 svg,.bag-grid523 img{width:100%;height:100%;max-height:150px;object-fit:contain}.bag-grid523 .illustrated-prop{width:100%;height:100%}.bag-legacy-detail523{width:180px;max-width:100%;margin:auto}.bag-legacy-detail523 svg{width:100%}@media(max-width:600px){.bag-grid523{grid-template-columns:repeat(2,minmax(0,1fr))}}
.selfie-photo54{border:0;box-shadow:none}.selfie-photo54 .selfie-person54{visibility:hidden}.selfie-photo54:has(>img[data-ready523]) .selfie-person54{visibility:visible}.selfie-person54>.selfie-avatar523{position:absolute!important;display:block!important;left:5%!important;top:5%!important;bottom:auto!important;width:90%!important;height:245%!important;max-width:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;background-color:transparent!important;filter:drop-shadow(0 4px 5px #0004)}
.selfie-person54>.wear-body34{border:0!important;border-radius:0!important;box-shadow:none!important}.selfie-photo54>img{border:0!important;border-radius:0!important;box-shadow:none!important}


/* interface-v525.css */

/* Align the dock label group consistently; retain mobile single-line labels. */
.top-menu button{justify-content:flex-start!important;text-align:left!important;padding-left:3mm!important;padding-right:1mm!important}body>header .header-controls button:focus-visible{background:#4b395a!important;border-color:#bb93cc!important}
@media(max-width:1024px),(pointer:coarse){
 .top-menu button{padding-left:3mm!important;padding-right:1mm!important}
}
@media(max-width:600px) and (orientation:portrait){
 #scene .room-tabs button{min-height:24px;height:auto;padding-block:2px;font-size:14px;line-height:20px}
 .ink-journal:has(.ink-empty) .ink-heading p,.ink-journal .ink-empty p{font-size:18px;line-height:1.55}
 .ink-journal:has(.ink-empty) .ink-heading small{font-size:14px}
 .ink-journal .ink-empty{flex-direction:column;text-align:center;gap:12px}
}


/* journal-v530.css */
/* Spray-paint texture is CSS only: no additional artwork download. */
.ink-journal{color:#f1e7f4;background-color:#19151f;background-image:radial-gradient(ellipse at 3% 4%,#f9118e18,transparent 28%),radial-gradient(ellipse at 98% 55%,#9559d51c,transparent 30%),radial-gradient(#d1a9da15 .7px,transparent .9px);background-size:100% 100%,100% 100%,5px 5px;border:1px solid #57415f;border-radius:14px}
.ink-heading{border-color:#b765a5}.ink-heading h2{color:#fff0fa}.ink-heading small,.ink-heading p,.ink-empty p{color:#d4bddb}.ink-mark{color:#f9118e;text-shadow:3px 3px 0 #622851}
.ink-bookmarks a{background:#302338;color:#f3d9ed;border-color:#805a86}.ink-bookmarks a:focus-visible{background:#6a305a;color:#fff}
.ink-day span{color:#e7b7dc}.ink-day i{background:linear-gradient(90deg,#bb659f,#bb659f00)}
.ink-panel{background-color:#302338;border-color:#97719e;box-shadow:3px 4px 0 #0b080e80}.ink-free,.ink-vignette{background:transparent;box-shadow:none}
.ink-setting{background-image:linear-gradient(#19101f18,#19101f55),var(--ink-art)}
.ink-stamp span,.ink-phone .ink-stamp span{color:#f3e3f3;background:#251d30ed;border-color:#9b75a4}
.ink-bubble,.post-line{background:#292032;color:#fff1fa;border-color:#bd91c4;box-shadow:2px 3px 0 #0d071777}.ink-bubble:after{background:#292032;border-color:#bd91c4}.ink-bubble cite{color:#ff9cdb}
.ink-bubble.player-line{background:#43263f;border-color:#df9ccf}.ink-bubble.player-line:after{background:#43263f;border-color:#df9ccf}
.ink-person figcaption{background:#231b2de8;color:#f3e3f3;border-color:#97719e}
.ink-caption,.ink-free .ink-caption{background:#302638;border-color:#aa7b9d;box-shadow:2px 3px 0 #100a1870}.ink-caption p{color:#f6e8f2}.ink-caption small{color:#ceb5cc}
.ink-impact{background:#19151fe8}.ink-impact span{color:#d9c6dd}.ink-impact .gain b{color:#8de3b5}.ink-impact .loss b{color:#ff9bb9}
.ink-journal .margin-note27{background:#302238b8;color:#ebc6e0;border-color:#bd80aa}.ink-journal .handwritten33{background:#302238;box-shadow:3px 4px 0 #100a1855}
.ink-journal .margin-note27>small,.ink-journal .margin-note27 label{color:#dcbad5}.ink-journal .margin-text27{color:#f3d5e9}.ink-journal .margin-text27:after{filter:brightness(0) invert(90%) sepia(12%) saturate(510%) hue-rotate(260deg)}
.ink-journal .margin-note27 button{color:#f3c5e4}.ink-journal .margin-note27 button:focus-visible{background:#59394f;color:#fff}.ink-journal .note-start27 span{color:#f28bc5}
.ink-journal .margin-note27.editing{background:#302238}.ink-journal .margin-note27 textarea{background:#1c1525;color:#fff1fa;border-color:#a2769b}.ink-journal .margin-note27 .note-save27{background:#b34b8b;color:#fff}.ink-journal .margin-note27 .note-cancel27{border-color:#a2769b}

/* Use the existing local handwritten face for comic dialogue and narration. */
.ink-journal .ink-bubble,.ink-journal .ink-caption p,.ink-journal .post-line{font-family:'Diary Pencil','Segoe Print','Bradley Hand',cursive;font-size:20px;line-height:1.45;font-weight:400;letter-spacing:.015em}
.ink-journal .ink-bubble{font-size:18px}
.ink-journal .ink-bubble cite{font-family:inherit;font-size:14.4px}


/* phone-media-v533.css */
.phone-photo533{position:relative;margin:12px 0;aspect-ratio:4/5;overflow:hidden;border-radius:12px;background:radial-gradient(ellipse at 50% 40%,#3d2945,#201a2b);isolation:isolate}
.phone-photo533>img{width:100%;height:100%;object-fit:cover;display:block;visibility:hidden}
.phone-photo533[data-photo533=ready]>img,.phone-photo533[data-background-ready=true]>img{visibility:visible}
.phone-photo533 .selfie-person54{visibility:hidden!important}
.phone-photo533[data-photo533=ready] .selfie-person54{visibility:visible!important}
.phone-photo-status533{position:absolute;inset:35% 16px auto;text-align:center;font-size:14px;line-height:1.6;color:#e7cfe6;padding:16px;border-radius:12px;background:#21152de8;z-index:4}
.phone-photo533[data-photo533=ready]>.phone-photo-status533{display:none}
.phone-photo533>.photo-retry509{position:absolute;inset:auto 15px 22%;z-index:5;min-height:44px;font-size:14px}
.phone-photo533>.photo-retry509[hidden]{display:none!important}


/* zines-v535.css */
/* Original art stays in full colour; player writing is part of each printed page. */
.zin-art-page535{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;gap:24px;min-width:0;width:100%;min-height:640px;aspect-ratio:2/3;padding:7%;background:#17111f;color:#fff;overflow:hidden;border:1px solid #a58caa60;box-shadow:0 14px 32px #0008;text-align:left;}
.zin-art-page535>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3;filter:none;opacity:1;}
.zin-art-page535:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#100c168c,transparent 36%,#0b08154d 56%,#0b0815b3);pointer-events:none;}
.zin-art-grain535{position:absolute;inset:0;z-index:-1;opacity:.15;background:repeating-linear-gradient(0deg,transparent 0 3px,#ddd1 3px 4px);pointer-events:none;}
.zin-art-page535>.zin-page-heading535,.zin-art-page535>.zin-page-folio535{position:static!important;min-height:0!important;display:block;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;transform:none!important;width:auto!important;}
.zin-art-page535>.zin-page-heading535 small{display:inline-block;font-size:11px;letter-spacing:1.8px;text-transform:uppercase;background:#140f1dcc;color:#f3d2eb;padding:6px 9px;}
.zin-art-page535>.zin-page-heading535 h3{font-family:'Diary Pencil',cursive;font-size:clamp(30px,3.8vw,58px);font-weight:500;line-height:1.12;letter-spacing:.02em;color:white;text-shadow:0 2px 8px #000b;margin:18px 0 0;overflow-wrap:anywhere;}
.zin-art-writing535{margin-top:auto;padding:18px 20px;background:#14101de8;border-left:3px solid #ed7ec2;box-shadow:4px 5px 0 #09071066;transform:rotate(-1deg);}
.zin-art-writing535 p{font-size:17px!important;line-height:1.65!important;margin:0!important;color:#fff!important;overflow-wrap:anywhere;white-space:pre-wrap;}
.zin-text-paper535 .zin-art-writing535{background:#f4eadcf2;border-left-color:#ae497e;transform:rotate(.7deg)}
.zin-text-paper535 .zin-art-writing535 p{color:#251d2d!important;font-family:'Diary Pencil',cursive;font-size:22px!important;line-height:1.4!important;}
.zin-text-ink535 .zin-art-writing535{border-left:0;border-top:1px solid #c89cdd;background:#21132de8;transform:none;}
.zin-art-page535>.zin-page-folio535{display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:1.3px;text-transform:uppercase;color:#fff;}
.zin-compact535{min-height:0;aspect-ratio:2/3;padding:8%;gap:8px;}
.zin-compact535 .zin-art-writing535{max-height:28%;overflow:hidden;padding:8px;}
.zin-compact535 .zin-art-writing535 p{font-size:10px!important;line-height:1.45!important;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;}
.zin-compact535>.zin-page-heading535 h3{font-size:clamp(21px,2.2vw,32px);margin:12px 0 0;}
.zin-compact535>.zin-page-heading535 small{font-size:8px;letter-spacing:1px;padding:4px;}
.zin-compact535>.zin-page-folio535{font-size:8px;letter-spacing:.5px;}
.zin-reader36:has(.zin-art-page535){display:flex;flex-direction:column;gap:32px;max-width:760px;margin:32px auto;}
.zin-detail36 .zin-art-page535{max-width:280px;margin:auto;}
.zin-editor535>header{margin-bottom:12px}.zin-editor535 form{display:flex;flex-direction:column;gap:20px;}
.zin-editor535 label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600;}
.zin-editor535 input,.zin-editor535 select,.zin-editor535 textarea{width:100%;min-width:0;padding:12px;border-radius:9px;border:1px solid #75607f;background:#241a30;color:white;font:inherit;font-size:16px;line-height:1.5;}
.zin-editor535 textarea{resize:vertical;min-height:180px;}
.zin-workbench535{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:28px;}
.zin-tools535{display:flex;flex-direction:column;gap:14px;min-width:0;}
#zin-tabs535{display:flex;flex-wrap:wrap;gap:7px;}#zin-tabs535 button{flex:1;padding:10px 8px;font-size:12px;}
#zin-tabs535 [aria-pressed=true]{background:#c384bf;color:#18101e;border-color:#ebb7e3;}
.zin-art-heading535{margin-top:8px;}.zin-art-heading535 h3{margin:0 0 4px;font-size:18px;}.zin-art-heading535 span,#zin-counter535{font-size:12px;color:#c9b6d1;}
#zin-art-choices535{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
#zin-art-choices535 button{padding:0;overflow:hidden;text-align:left;border:2px solid transparent;background:#241a30;transition:transform .15s,border-color .15s;}
#zin-art-choices535 button[aria-pressed=true]{border-color:#ff9bdd;box-shadow:0 0 0 2px #ff9bdd55;}
#zin-art-choices535 img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;}
#zin-art-choices535 span{display:block;padding:8px 6px;font-size:10px;line-height:1.3;overflow-wrap:anywhere;}
.zin-preview535{position:sticky;top:20px;min-width:0;}.zin-preview535 .zin-art-page535{min-height:560px;}.zin-preview535>p{font-size:12px!important;color:#cbb4d1;line-height:1.5;}
#zin-error535{color:#ffb9dc;font-size:14px;line-height:1.5;margin:0;}
.zin-editor535 .zin-cost36{font-size:14px;line-height:1.7;}
.zin-gallery36 .zin-card36:has(.zin-art-page535){max-width:none;}.zin-card36 .zin-art-page535{transition:transform .2s;}
@media(max-width:1100px){.zin-workbench535{grid-template-columns:1fr}.zin-preview535{position:static;max-width:560px;width:100%;margin:auto}.zin-tools535{display:contents}.zin-preview535{grid-row:1}#zin-art-choices535{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.zin-editor535 label,.zin-editor535 .zin-cost36{font-size:16px}.zin-editor535 .zin-form-row36{grid-template-columns:1fr}.zin-editor535{padding:14px}.zin-art-page535{min-height:560px;padding:20px;gap:18px;aspect-ratio:auto}.zin-art-page535>.zin-page-heading535 h3{font-size:36px}.zin-art-writing535{padding:14px}.zin-art-writing535 p{font-size:16px!important;line-height:1.6!important}.zin-preview535 .zin-art-page535{min-height:560px}.zin-compact535{min-height:0;aspect-ratio:2/3;padding:8%}.zin-compact535>.zin-page-heading535 h3{font-size:26px}.zin-compact535 .zin-art-writing535 p{font-size:10px!important}#zin-art-choices535{grid-template-columns:repeat(3,minmax(0,1fr))}#zin-art-choices535 span{font-size:12px}.zin-reader36:has(.zin-art-page535){gap:24px}.zin-preview535{grid-row:auto}.zin-tools535{display:flex}.zin-workbench535{display:flex;flex-direction:column}.zin-preview535{order:-1}.zin-tools535{width:100%}}
@media(prefers-reduced-motion:reduce){#zin-art-choices535 button,.zin-card36 .zin-art-page535{transition:none}}


/* campaign-v553.css */
.campaign553{max-width:760px;margin:auto;line-height:1.65}.campaign553 h2{margin:.45rem 0 1rem}.campaign553 small{color:#f1a1cd;letter-spacing:.08em}.campaign-image553{height:180px;position:relative;overflow:hidden;border-radius:14px;margin-bottom:1rem;background:#17131e}.campaign-image553 img{width:100%;height:100%;object-fit:cover}.campaign-image553 span{position:absolute;bottom:0;left:0;right:0;padding:.65rem 1rem;background:linear-gradient(transparent,#100b19);color:white}.campaign-speaker553{display:flex;gap:.7rem;align-items:center;font-weight:700}.campaign-speaker553 img,.campaign-speaker553 .portrait{width:52px;height:52px;object-fit:cover;border-radius:50%}.campaign-copy553{font-size:1.1rem;white-space:pre-line}.campaign-previous553{margin:.7rem 0;color:#c9c1d6}.campaign-echo553{border-left:3px solid #ed75b9;padding-left:1rem}.campaign-tools553{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}.campaign-tools553 button{font-size:.9rem}.campaign-initial553{display:grid;place-items:center;width:48px;height:48px;border:1px solid #ad6aac;border-radius:50%}@media(max-width:700px){.campaign-image553{height:130px}.campaign-copy553{font-size:1rem}.campaign553{line-height:1.55}}


/* profile-loading-v518.css */
.profile-face{position:relative;overflow:hidden}.profile-preview518{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;pointer-events:none}


/* interface-v520.css */
/* Slightly more air in comic lettering, without stretching the artwork. */
.ink-journal .ink-bubble,.ink-journal .ink-caption p,.ink-journal .post-line{letter-spacing:.055em}
#settingsbtn .dock-icon508{display:inline-flex;width:14px;height:14px;flex:0 0 14px;align-items:center}
#settingsbtn .dock-icon508 svg{width:14px;height:14px;display:block}
.camera-tools,.camera-hint{display:none!important}
.settings522 #continuity-status37{border:0;background:none;box-shadow:none;padding:0;border-radius:0}
.settings522 .continuity37 details{border:0;background:none;box-shadow:none;padding:0;border-radius:0}
.settings522 #recovery-code37{border:0;background:none;padding:0;box-shadow:none;border-radius:0}
.room-select520{display:none}
@media(max-width:600px),(max-width:960px) and (max-height:600px){
 #scene .people-grid{grid-template-columns:minmax(0,1fr)!important}
 #scene .room-tabs{display:block!important;padding:10px}
 #scene .room-tabs>button{display:none!important}
 .room-select520{display:grid;gap:6px;font-size:14px}
 .room-select520 select{width:100%;min-width:0;min-height:44px;padding:10px;color:#eee5f5;background:#292235;border:1px solid #695372;border-radius:9px;font:inherit;font-size:16px}
 .top-menu #clock,.top-menu #clock strong,.top-menu #clock .clock-day{font-size:12.8px!important}
}
@media(max-width:600px) and (orientation:portrait){
 .layout:has(.illustrated-room)>aside>#feelingpanel{order:99;width:100%}
}

/* Compact room views keep artwork clear and actions equally sized. */
@media(max-width:600px),(max-width:960px) and (max-height:600px){
 #scene .illustrated-room>.scene-caption{display:none}
 #sidebar-actions39 #room-actions button{aspect-ratio:1/1;height:auto;min-height:0;align-self:start;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px;overflow-wrap:anywhere}
}

/* Comic lettering, locally hosted; irregular ink-and-paper signs. */
@font-face{font-family:'City Comic';src:url('assets/fonts/bangers.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.city-board .city-hotspot{--sign-angle:-2deg;--sign-ink:#ffb9dd;font-family:'City Comic','Diary Pencil',cursive;font-size:clamp(19px,1.8vw,25px);font-weight:400;letter-spacing:.045em;line-height:1.05;border:2px solid #171021;border-radius:3px 8px 3px 6px;background:var(--sign-ink);color:#201125;text-shadow:1px 1px 0 #ffffff80;box-shadow:3px 4px 0 #140d20,0 0 0 1px #fff1f5;padding:6px 10px;transform:translate(-50%,-50%) rotate(var(--sign-angle));backdrop-filter:none;transition:transform .15s ease,box-shadow .15s ease;max-width:15%;white-space:normal;box-sizing:border-box;text-align:center}
.city-board .city-hotspot:nth-of-type(3n+2){--sign-angle:2deg;--sign-ink:#ffe6aa;border-radius:7px 2px 6px 3px}
.city-board .city-hotspot:nth-of-type(3n){--sign-angle:-1deg;--sign-ink:#d9c8ff;border-radius:2px 6px 3px 8px}.city-board .city-hotspot:focus-visible{background:#fff1c4;color:#1b0b22;transform:translate(-50%,-50%) rotate(0deg) scale(1.06);box-shadow:4px 5px 0 #f9118e,0 0 0 2px #fff;outline:2px solid #fff;outline-offset:3px;z-index:4}
@media(max-width:760px){.city-board .city-hotspot{font-size:19px;padding:5px 7px}.city-board .city-hotspot[data-place=park]{min-width:0;max-width:15%;white-space:normal;padding-inline:7px}}
@media(prefers-reduced-motion:reduce){.city-board .city-hotspot{transition:none}}

.city-board.unified-city .city-hotspot[data-place=park]{min-width:0;max-width:15%;white-space:normal}
.city-board .city-hotspot[data-place=shop]{max-width:19%;padding-inline:5px;letter-spacing:.015em}

footer #catalogbtn .dock-icon508,footer #settingsbtn .dock-icon508{display:none}


/* localization.css */
/* System font stacks cover Cyrillic and CJK without extra downloads for Czech. */
html:lang(ru){--ul-local-font:system-ui,"Segoe UI",Arial,sans-serif}
html:lang(ja){--ul-local-font:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,"Noto Sans JP",sans-serif}
html:lang(ko){--ul-local-font:"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif}
html:is(:lang(ru),:lang(ja),:lang(ko)) body,
html:is(:lang(ru),:lang(ja),:lang(ko)) :is(button,input,textarea,select,h1,h2,h3,h4,.ink-bubble,.ink-caption,.post-line){font-family:var(--ul-local-font)!important;letter-spacing:normal}
html:lang(ja) :is(p,button,label,.ink-bubble){line-break:strict;word-break:normal;overflow-wrap:anywhere;line-height:1.6}
html:lang(ko) :is(p,button,label,.ink-bubble){word-break:keep-all;overflow-wrap:anywhere;line-height:1.6}
html:not(:lang(cs)) .dock-label508{white-space:normal;overflow-wrap:anywhere;line-height:1.25;min-width:0}
html:not(:lang(cs)) .top-menu button{height:auto;min-height:44px}


/* experience-v107.css */
.city-board.unified-city{aspect-ratio:3/3.4}
.city-board .city-hotspot{font-family:'Diary Pencil','Segoe Print',cursive;font-size:clamp(15.39px,1.458vw,19.44px);letter-spacing:.10em;background:#261b32b8;color:#fff1fa;border:1px solid #e9bdd2b0;box-shadow:1px 2px 3px #09061270;text-shadow:0 1px 1px #100c18;--sign-angle:-1deg;padding:4.4px 7px}
.city-board .city-hotspot:nth-of-type(3n+2),.city-board .city-hotspot:nth-of-type(3n){background:#261b32b8}.city-board .city-hotspot:focus-visible{background:#532742db;color:#fff;box-shadow:1px 2px 5px #09061280;outline:1px solid #f3bddb}
.layout>aside #chapter{border:1px solid #b279a5;border-left:4px solid #f091c7;box-shadow:0 4px 18px #f15bb520;background:linear-gradient(125deg,#35233d,#251b30);padding:18px}
.layout>aside #chapter h2{font-family:'Diary Pencil','Segoe Print',cursive;font-weight:700;font-size:22px;line-height:1.3;letter-spacing:.04em}
.layout>aside #chapter p{font-size:15.3px;line-height:1.55}
.layout>aside #chapter small{font-family:'Diary Pencil','Segoe Print',cursive;font-size:12px;letter-spacing:1.1px;color:#ffc3e6}
.layout>aside #chapter button{font-size:16px;line-height:1.35;min-height:44px}
.movable-prop.prop-load-error107:after{content:attr(aria-label);position:absolute;inset:0;display:grid;place-items:center;font:10px/1.2 sans-serif;background:#281c35e8;border:1px dashed #d2a4ce;border-radius:5px;color:#fff;overflow:hidden;pointer-events:none}

.layout>.world:has(.city-board){align-self:start}


/* experience-v108.css */
#footer-player108{display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap;white-space:nowrap;font-size:clamp(9px,2.3vw,12px);text-align:center!important;gap:7px;margin:8px auto 28px!important;padding:12px 16px!important;border:0!important;width:100vw;max-width:none;box-sizing:border-box;float:none!important}
#footer-player108 code{display:block!important;text-align:center!important;max-width:100%;overflow-wrap:normal;white-space:nowrap;font-size:inherit}
#footer-player108 button{display:block!important;justify-self:center!important;align-self:center!important;margin:0!important;float:none!important;font-size:inherit;padding:6px 8px!important}
#install-offer108{box-sizing:border-box;width:min(520px,calc(100% - 28px));max-height:90svh;overflow:auto;margin:auto;padding:28px;border:1px solid #9f6e97;border-radius:18px;background:#251a30;color:#f8ecf6;box-shadow:0 12px 50px #0008}
#install-offer108::backdrop{background:#0c0717b8}#install-offer108 h2{font-size:25px;line-height:1.2}#install-offer108 p{line-height:1.6}#install-offer108 .install-note108{font-size:14px;color:#cbb8d1}#install-offer108>div{display:flex;gap:10px;flex-wrap:wrap}#install-offer108 button{min-height:44px}
.city-board .city-hotspot{-webkit-text-stroke:.38px currentColor;font-weight:400}.city-hotspot>span{display:block;white-space:nowrap}


/* experience-v111.css */
#stats .stat-group111{border-top:1px solid #c9a9c530;padding-top:9px;margin-top:5px}.install-panel111 p{line-height:1.6}.install-panel111 button[hidden]{display:none}


/* mush-dream-v115.css */
/* Transform only the foliage; the pot and draggable hit area stay in place. */
.mush-art115{filter:drop-shadow(0 0 3px #71eed947)}
.mush-plant115{aspect-ratio:1}
.mush-base115,.mush-leaves115{position:absolute;inset:0;pointer-events:none}
.mush-base115{clip-path:inset(77% 0 0)}
.mush-leaves115{clip-path:inset(0 0 21%);transform-origin:50% 79%}
.room-stage .mush-plant115 .mush-leaves115{animation:mush-sway115 6s ease-in-out infinite alternate}
.room-stage .mush-orchid115 .mush-leaves115{animation-duration:7.8s;animation-delay:-2s}
.room-stage .mush-bonsai115 .mush-leaves115{animation-duration:9s;animation-delay:-4s}
.garment-glow115{filter:drop-shadow(0 0 5px #a2ffe377)}
@keyframes mush-sway115{from{transform:rotate(-1.15deg)}to{transform:rotate(1.15deg)}}
@media(prefers-reduced-motion:reduce){.room-stage .mush-plant115 .mush-leaves115{animation:none}}


/* comfort-v120.css */
/* Both visitors remain outside document flow and never intercept game input. */
.screen-visitor126{position:fixed;width:210px;max-width:42vw;z-index:10050;pointer-events:none;transition:transform .6s cubic-bezier(.2,.8,.25,1);filter:drop-shadow(0 5px 8px #0008)}
.screen-visitor126 svg,.screen-visitor126 img{display:block;width:100%;height:auto;overflow:visible}
#peek-cat120{top:0;left:50%;transform:translate(-50%,-110%)}
#peek-cat120.visible{transform:translate(-50%,-6px)}
#peek-chinchilla126{bottom:0;left:50%;transform:translate(-50%,110%)}
#peek-chinchilla126.visible{transform:translate(-50%,6px)}
#tutorial48::before,#tutorial48::after{display:none!important}
.screen-visitor126.visible .visitor-eye126{transform-origin:center;transform-box:fill-box;animation:visitor-blink126 6s 1s infinite}
#peek-chinchilla126 .visitor-eye126{animation-delay:2s}
@keyframes visitor-blink126{0%,5%,100%{transform:scaleY(1)}2.5%{transform:scaleY(.08)}}
@media(prefers-reduced-motion:reduce){.screen-visitor126{transition:none}.screen-visitor126.visible .visitor-eye126{animation:none}}
@media(max-width:700px),(max-height:500px) and (pointer:coarse){
 #tutorial48{width:min(420px,calc(100vw - 20px))!important;max-height:calc(100dvh - 16px)!important;padding:12px!important;box-sizing:border-box;overflow:auto;overscroll-behavior:contain}
 #tutorial48 h2{font-size:19px!important;line-height:1.2;margin:7px 0!important}
 #tutorial48 p,#tutorial48 ul{font-size:14px!important;line-height:1.35!important;margin:8px 0!important}
 #tutorial48 ul{padding-left:18px!important}#tutorial48 li+li{margin-top:5px!important}
 #tutorial48>div{gap:6px!important}#tutorial48 button{font-size:13px!important;min-height:38px!important;padding:7px 10px!important}
 #tutorial48 small{font-size:10px!important}
}

/* Bottom visitors share three lanes even on narrow screens; game input passes through. */
#peek-dog130,#peek-hamster130{bottom:0;max-width:30vw;transform:translate(-50%,115%)}
#peek-dog130{left:18%;width:205px}
#peek-hamster130{left:82%;width:160px}
#peek-dog130.visible,#peek-hamster130.visible{transform:translate(-50%,8px)}
#peek-chinchilla126{max-width:32vw}
#peek-dog130 .visitor-eye126{animation-delay:1.4s}
#peek-hamster130 .visitor-eye126{animation-delay:2.7s}

/* Four bottom lanes keep Oliver beside Masha without covering each other. */
#peek-dog130{left:12.5%;max-width:24vw}
#peek-chinchilla126{left:37.5%;max-width:24vw}
#peek-hamster130{left:62.5%;max-width:24vw}
#peek-rat131{bottom:0;left:87.5%;width:170px;max-width:24vw;transform:translate(-50%,115%)}
#peek-rat131.visible{transform:translate(-50%,8px)}
#peek-rat131 .visitor-eye126{animation-delay:3.3s}

/* Panda peeks from the upper right; it never captures clicks. */
#peek-panda140{top:0;left:80%;width:195px;max-width:32vw;transform:translate(-50%,-115%)}
#peek-panda140.visible{transform:translate(-50%,-5px)}
#peek-panda140 .visitor-eye126{animation-delay:2.3s}


/* mobile-polish-v121.css */
.approval-summary121{display:none}
#terms-dialog46::before,#terms-dialog46::after{display:none!important}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
 #terms-dialog46{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:14px!important;border-radius:14px}
 #terms-dialog46 .approval-scroll545,#terms-dialog46 .terms46>small,#terms-dialog46 .terms46>p:has(#terms-player46){display:none!important}
 #terms-dialog46 .approval-summary121{display:block;margin:4px 0;font-size:13px!important;line-height:1.35!important}
 #terms-dialog46 .approval-summary121 a{color:#ffb9e2;text-decoration:underline}
 #terms-dialog46 .terms46 h2{font-size:20px;margin:0 0 10px}
 #terms-dialog46 .approval-section545{margin:8px 0;padding:0;border:0}
 #terms-dialog46 .approval-section545 h3{font-size:15px;margin:0 0 3px}
 #terms-dialog46 #approval-requirement482{font-size:12px;line-height:1.35;margin:8px 0}
 #terms-dialog46 .approval-checks483{margin:8px 0;padding:0}
 #terms-dialog46 .terms-checkbox46{font-size:13px!important;line-height:1.3!important;gap:8px;margin:5px 0!important;min-height:36px;align-items:center}
 #terms-dialog46 .terms-checkbox46 input{width:22px;height:22px;margin:0;flex:none}
 #terms-dialog46 .terms46>button{font-size:13px;min-height:38px;padding:7px 10px;margin:2px}
 #terms-dialog46 #terms-status46:empty{display:none}
 #footer-player108{display:grid!important;grid-template-columns:auto auto;width:max-content;max-width:100%;gap:3px 6px;padding:7px!important;margin:5px auto 16px!important;font-size:11px}
 #footer-player108 button{grid-column:1/-1;padding:4px 9px!important;min-height:32px}
 .person-card .bond-stats>div{grid-template-columns:70px minmax(35px,1fr) 52px;font-size:11px}
 .person-card .bond-stats meter{display:block!important;height:12px}
 .personality-details>header{flex-direction:column;align-items:flex-start!important}
 .personality-details [data-edit-personality]{align-self:flex-start!important;margin-left:0!important}
 .zin-gallery36>header{flex-direction:column;align-items:stretch}
 #new-zin36{align-self:center;margin-inline:auto}
 .catalog-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-height:500px) and (orientation:landscape) and (pointer:coarse){
 #terms-dialog46 .terms46{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}
 #terms-dialog46 #terms-title46{grid-column:1/-1;margin-bottom:0}
 #terms-dialog46 .approval-section545{grid-column:1;margin:2px 0}
 #terms-dialog46 .approval-checks483{grid-column:2;grid-row:2/5;margin:0}
 #terms-dialog46 #approval-requirement482{grid-column:1;margin:2px 0}
 #terms-dialog46 #terms-status46{grid-column:1/-1;margin:0}
}


/* story-polish-v122.css */
/* Half the previous 58px panel height; keep a stable, readable clock. */
.layout>aside>#clock.sidebar-clock39,.top-menu #clock.sidebar-clock39{height:29px;min-height:29px;padding:3px 8px;gap:6px;flex-direction:row;align-items:center;justify-content:space-between}
.sidebar-clock39 strong{font-size:16px;line-height:20px;min-width:8ch;width:8ch}
@media(max-width:1024px){
 .top-menu #clock.sidebar-clock39{height:29px;min-height:29px;padding:2px 4px;gap:3px}
 .top-menu #clock .clock-day,.top-menu #clock strong{font-size:10px!important;line-height:15px;min-width:0;width:auto;letter-spacing:0}
}

/* Match the story guide heading without reducing the button hit area. */
#chapter>small,#chapter #guide-next{font-family:'Diary Pencil','Segoe Print',cursive}
#chapter #guide-next{letter-spacing:.04em}

/* Room names share the story-guide heading typography. */
.illustrated-room .scene-caption h3{font-family:'Diary Pencil','Segoe Print',cursive;font-weight:700;letter-spacing:.04em}


/* world-authoring-v123.css */
.catalog-visit123{font-size:12px;margin-top:10px;text-align:left;width:100%}
.catalog-target123{outline:3px solid #f9118e!important;outline-offset:5px}
.author-item123{display:flex;align-items:center;gap:12px;border-top:1px solid #64465d;padding:12px 0}.author-item123 label{flex:1}.author-item123 input{display:block;width:90px;margin-top:5px;padding:8px}

.catalog-unavailable168{border-color:#67616b!important;background:#252429!important;color:#aaa6af}.catalog-unavailable168 .catalog-art{filter:grayscale(1);opacity:.65}.catalog-unavailable168 h3,.catalog-unavailable168 p{color:#aaa6af!important}.catalog-availability168{font-size:12px;font-style:italic}


/* room-comfort-v128.css */
.room-stage .bed-sleep128{position:absolute;z-index:auto;border:0;border-radius:20%;padding:0;background:transparent;color:#fff;cursor:pointer;box-shadow:none;touch-action:manipulation}
.bed-sleep128 span{position:absolute;z-index:31;left:50%;top:45%;transform:translate(-50%,-50%);white-space:nowrap;font-size:clamp(10px,1.1vw,15px);padding:5px 9px;border:1px solid #f2c9ea66;border-radius:8px;background:#25172ac9;box-shadow:0 2px 8px #0008}
.room-stage .bed-sleep128:hover,.room-stage .bed-sleep128:focus-visible{background:#d9a4d222;outline:2px solid #eed1ed88}


#sleep-overlay133{position:fixed;inset:0;z-index:20000;background:#100d18d9;display:grid;place-items:center;padding:20px;backdrop-filter:blur(3px)}
#sleep-overlay133 section{width:min(360px,100%);box-sizing:border-box;text-align:center;padding:24px;background:#2b2035;border:1px solid #d5a1cc;border-radius:16px;color:#fff}
#sleep-overlay133 progress{width:100%;accent-color:#dc98cf}


/* wardrobe-mobile-v134.css */
/* Dedicated viewport-sized phone wardrobe; no nested room scrolling. */
@media(max-width:700px),(max-height:500px) and (pointer:coarse){
 #modal.wardrobe-dialog134{position:fixed;inset:0;margin:auto;width:calc(100% - 12px);max-width:720px;height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);padding:0;overflow:hidden;border-radius:15px;background:#211a2d;box-sizing:border-box}
 #modal.wardrobe-dialog134::before{display:none}
 #modal.wardrobe-dialog134 #close{position:absolute;top:max(6px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));z-index:5;width:46px;height:46px;min-height:46px;padding:5px;font-size:27px;background:#3c2c46;box-shadow:0 2px 10px #0005}
 #modal.wardrobe-dialog134 #modalcontent{height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;box-sizing:border-box;padding:18px max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));scroll-padding-top:58px}
 #modal.wardrobe-dialog134 h2{font-size:22px;line-height:1.25;margin:0 50px 14px 0;overflow-wrap:anywhere}
 #modal.wardrobe-dialog134 p{font-size:15px;line-height:1.45;margin:8px 0 14px}
 #modal.wardrobe-dialog134 button,#modal.wardrobe-dialog134 select{font-size:16px;min-height:48px;line-height:1.25;touch-action:manipulation;box-sizing:border-box}
 #modal.wardrobe-dialog134 .choice{display:block;width:100%;margin:10px 0 0;padding:12px;white-space:normal}
 #modal.wardrobe-dialog134 .wardrobe-preview34{float:none;flex:0 0 68px;width:68px;height:180px;min-height:0;padding:0;margin:0;background:none}
 #modal.wardrobe-dialog134 .wardrobe-preview34>.wardrobe-body34{width:100%;height:180px!important;min-height:0}
 .wear-summary134{display:flex;gap:18px;align-items:center;margin-bottom:14px}
 .wear-summary134 p{flex:1;min-width:0}
 .wear-tabs134{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 14px}
 .wear-tabs134 button[aria-pressed="true"]{background:#ce91c7;color:#22172a;border-color:#ebbae5}
 .wear-filter134{display:block;font-size:14px;margin:0 0 14px}
 .wear-filter134 select{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid #796380;border-radius:9px;color:#f5eaf6;background:#30253b}
 .wear-list134{display:flex;flex-direction:column;gap:10px}
 .wear-row134{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px;border:1px solid #735778;border-radius:12px;background:#2c2236}
 #modal.wardrobe-dialog134 .wear-detail134{display:flex;gap:8px;align-items:center;min-width:0;border:0;background:transparent;box-shadow:none;text-align:left;padding:0;font-size:15px;white-space:normal}
 .wear-detail134>span:last-child{min-width:0;overflow-wrap:anywhere}
 .wear-detail134 small{display:block;font-size:12px;letter-spacing:0;line-height:1.35;color:#c4afce;margin-top:4px}
 .wear-art134{display:block;width:48px;height:62px;flex:0 0 48px;position:relative;pointer-events:none}
 .wear-art134>img,.wear-art134>svg,.wear-art134>span{width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain}
 #modal.wardrobe-dialog134 .wear-action134{padding:10px 9px;font-size:14px;min-width:82px}
 #modal.wardrobe-dialog134 .object-detail-art{float:none;width:150px;height:160px;margin:12px auto;max-width:100%}
}
@media(max-height:500px) and (pointer:coarse){
 #modal.wardrobe-dialog134 .wardrobe-preview34{height:110px;width:42px;flex-basis:42px}
 #modal.wardrobe-dialog134 .wardrobe-preview34>.wardrobe-body34{height:110px!important}
 .wear-summary134{margin-bottom:8px}.wear-summary134 p{max-width:420px}
}

@media(max-height:500px) and (pointer:coarse){
 #modal.wardrobe-list-view134 #modalcontent{display:grid;grid-template-columns:140px minmax(0,1fr);align-content:start;column-gap:18px}
 #modal.wardrobe-list-view134 h2{grid-column:1/-1}
 #modal.wardrobe-list-view134 .wear-summary134{grid-column:1;grid-row:2/6;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px}
 #modal.wardrobe-list-view134 .wardrobe-preview34{width:60px;height:160px;flex-basis:auto}
 #modal.wardrobe-list-view134 .wardrobe-preview34>.wardrobe-body34{height:160px!important}
 #modal.wardrobe-list-view134 .wear-summary134 p{font-size:12px;margin:0}
 #modal.wardrobe-list-view134 .wear-tabs134,#modal.wardrobe-list-view134 .wear-filter134,#modal.wardrobe-list-view134 .wear-list134,#modal.wardrobe-list-view134 .choice{grid-column:2}
}


/* mobile-layout-v136.css */
/* Phone layouts keep the existing controls and saved positions intact. */
@media(max-width:760px),(max-height:500px) and (pointer:coarse){
 body>header{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between;gap:10px}
 body>header .brand{flex:0 1 48%;min-width:0}
 body>header .brand-image{width:100%;height:auto;max-height:64px;object-fit:contain;object-position:left center}
 body>header .tag{display:block!important;flex:0 1 auto!important;margin:0 0 0 auto!important;text-align:right!important;align-self:center!important;min-width:0}
 body>header .brand-motto511{white-space:nowrap;font-size:clamp(9px,2.6vw,12px);letter-spacing:.5px}
 body>header .tag b{white-space:nowrap;font-size:8px}
 body>header .header-controls{display:none!important}
 #footer-player108{transform:translateX(calc((100vw - 100%)/2));width:100%!important;max-width:100%!important;box-sizing:border-box;display:grid!important;grid-template-columns:auto auto;justify-content:center!important;justify-items:center;text-align:center!important;margin-inline:auto!important}
 #footer-player108 button{grid-column:1/-1;justify-self:center!important}
 .world>#chapter{margin:0 0 12px!important;width:100%;box-sizing:border-box}
 #room-options.mobile-interaction136{position:relative!important;inset:auto!important;transform:none!important;display:block;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;box-sizing:border-box;padding:20px 16px!important;margin:0!important;border:1px solid #a878a4;border-radius:14px;background:#2a2035;box-shadow:0 5px 20px #10091855;scroll-margin-top:12px;z-index:auto}
 #room-options.mobile-interaction136 .inline-close{position:absolute;top:5px;right:5px;min-width:42px;min-height:42px;font-size:25px}
 .mobile-interaction136 #inlinecontent{min-width:0;padding-top:18px}
 #room-options.mobile-interaction136 h2{font-size:24px;line-height:1.25;padding-right:20px}
 #room-options.mobile-interaction136 p{font-size:17px;line-height:1.55}
 #room-options.mobile-interaction136 .choice{display:block;width:100%;min-height:48px;font-size:16px;line-height:1.4;text-align:left;white-space:normal;padding:13px;margin:9px 0}
 #room-options.mobile-interaction136 .dialog-character{display:flex;gap:12px;align-items:center}
 #room-options.mobile-interaction136 .dialog-character .large{float:none;width:64px;height:70px;flex:none;margin:0}
 #room-options.mobile-interaction136 .bond-stats>div{grid-template-columns:75px minmax(30px,1fr) 50px;font-size:12px;gap:7px}
 #room-options.mobile-interaction136 .bond-stats meter{display:block;width:100%}
 #room-options.mobile-interaction136 .bond-stats strong{font-size:12px}
 .character-profile .profile-art{display:grid;grid-template-columns:1fr .7fr;gap:8px;align-items:center;min-height:160px;border-radius:12px;background:radial-gradient(ellipse at center,#61406955,transparent 70%)}
 .character-profile .profile-art>div{min-width:0;padding:0;border:0;background:none;border-radius:0}
 .character-profile .profile-art .art-label{display:none}
 .character-profile .profile-art .profile-face{width:100%;height:auto;aspect-ratio:1;border:1px solid #795275;border-radius:12px;box-sizing:border-box}
 .character-profile .profile-art .profile-body{width:100%;max-width:62px;height:auto;max-height:none;margin:auto}
}


/* room-packs-v139.css */
.astral-projection139{position:absolute;pointer-events:none;left:-70%;right:-70%;bottom:40%;height:280%;background:radial-gradient(circle at 28% 20%,#e9daff 0 1%,transparent 2%),radial-gradient(circle at 70% 35%,#a7fff0 0 1%,transparent 2%),radial-gradient(circle at 50% 50%,#a5d8ff77,transparent 65%);clip-path:polygon(50% 100%,0 0,100% 0);opacity:.8;filter:drop-shadow(0 0 5px #a5ccff);animation:astral-breathe139 5s ease-in-out infinite alternate}
@keyframes astral-breathe139{to{opacity:.4;filter:drop-shadow(0 0 10px #bb8aff)}}
@media(prefers-reduced-motion:reduce){.astral-projection139{animation:none}}
.wear-body43[data-hair-overlay139] .hair-length126{display:none}


/* visual-polish-v141.css */
#stats .stat .bar i{background:var(--stat-fill,#a8dc53)}
.mirrored-art141{display:block;width:100%;height:100%;transform:scaleX(-1);pointer-events:none}


/* event-v142.css */
@media(min-width:1001px) and (hover:hover) and (pointer:fine){#scene .room-tabs.zoo-room-tabs{grid-template-columns:repeat(8,minmax(0,1fr))!important}}
.event-controls142{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.event-controls142 label{display:grid;gap:7px;flex:1;min-width:130px;font-size:14px}.event-controls142 select{width:100%;min-height:44px;border:1px solid #9b78ac;border-radius:8px;background:#271d32;color:white;padding:8px;font:inherit}
.movable-prop.stage-light142{filter:drop-shadow(0 3px 4px #070710)!important;isolation:isolate;overflow:visible!important}
.stage-light142>svg{position:relative;z-index:1}.stage-light142::before{display:none}
.stage-beam142{position:absolute;pointer-events:none;z-index:-1;left:-100%;top:40%;width:300%;height:360%;transform-origin:50% 0;transform:rotate(var(--stage-angle));clip-path:polygon(48% 0,52% 0,100% 100%,0 100%);background:linear-gradient(var(--stage-color),transparent);opacity:.42;mix-blend-mode:screen}
.stage-pool142{position:absolute;pointer-events:none;z-index:-1;width:220%;height:85%;left:-60%;top:40%;transform-origin:50% 0;transform:rotate(var(--stage-angle)) translateY(270%);border-radius:50%;background:radial-gradient(ellipse,var(--stage-color),transparent 70%);opacity:.5;mix-blend-mode:screen}
.event-shadow142{filter:drop-shadow(var(--event-shadow))!important}


/* room-packs-v147.css */
/* Christmas pieces retain their readable scale instead of the generic tiny-prop cap. */
.room-stage .movable-prop[data-prop*="v147-"]{max-width:16%!important;max-height:25%!important}
.room-stage .movable-prop[data-prop*="v147-tree"]{max-width:27%!important;max-height:48%!important}
.room-stage .movable-prop[data-prop*="v147-garland"]{max-width:26%!important;max-height:22%!important}


/* screen-visitor-v147.css */
/* Only the dismiss button receives input; the scene remains playable. */
#screen-squirrel147{position:fixed;inset:0;z-index:10040;overflow:hidden;pointer-events:none;isolation:isolate;contain:layout style paint}
.squirrel-actor147{position:absolute;left:0;top:0;aspect-ratio:1;opacity:0;transform-origin:50% 94%;will-change:transform,opacity;pointer-events:none;filter:drop-shadow(2px 4px 3px #100a1948);z-index:3}
.chinchilla-frame154{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transform-origin:50% 94%;pointer-events:none}
.squirrel-shadow147{position:absolute;z-index:0;border-radius:50%;background:#05020c;transform:translate(-50%,-50%);filter:blur(7px);opacity:0;pointer-events:none}
.squirrel-dust147{position:absolute;inset:0;pointer-events:none;z-index:4}
.squirrel-dust147 i{position:absolute;left:0;top:0;width:5px;height:3px;border-radius:50%;background:#c7b5a4;opacity:0}
.squirrel-dismiss147{position:absolute!important;top:max(10px,env(safe-area-inset-top))!important;right:max(10px,env(safe-area-inset-right))!important;left:auto!important;bottom:auto!important;z-index:10;pointer-events:auto!important;display:grid!important;place-items:center;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:1px solid #c9bfdf83!important;border-radius:50%!important;background:#171322ed!important;color:#fff4df!important;font:26px/1 system-ui!important;box-shadow:0 3px 16px #08050a66!important;cursor:pointer}.squirrel-dismiss147:focus-visible{outline:3px solid #d8c8f1;outline-offset:3px}
.squirrel-status147{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(prefers-reduced-motion:reduce){.squirrel-actor147{will-change:opacity}}


/* mobile-zoom-v150.css */
#mobile-room-zoom150[hidden]{display:none!important}
@media(max-width:1024px),(pointer:coarse){
 .top-menu.mobile-room-dock150{position:absolute!important;top:var(--room-dock-top150,8px)!important;bottom:auto!important;transform:none!important;max-height:none!important;overflow:visible!important;padding-top:0!important}
 #mobile-room-zoom150{box-sizing:border-box;height:var(--room-zoom-height150,260px);min-height:150px;flex:none;width:100%;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 4px;background:#241b30e8;border:1px solid #75566e;border-radius:16px;color:#f9eafa;box-shadow:0 3px 14px #08051033}
 #mobile-room-zoom150 label{font-size:13px;line-height:18px;font-weight:700}
 #mobile-room-zoom150 output{font-size:13px;line-height:18px;font-variant-numeric:tabular-nums}
 .zoom-track150{position:relative;flex:1;width:48px;min-height:44px;display:flex;justify-content:center}
 #room-zoom-slider150{writing-mode:vertical-lr;direction:rtl;appearance:none;-webkit-appearance:none;width:44px;height:100%;margin:0;padding:0;background:transparent;touch-action:none;cursor:ns-resize;outline-offset:2px}
 #room-zoom-slider150::-webkit-slider-runnable-track{width:8px;border-radius:8px;background:linear-gradient(to top,#f3a0d2 var(--zoom-fill150,0%),#5a4565 var(--zoom-fill150,0%))}
 #room-zoom-slider150::-webkit-slider-thumb{-webkit-appearance:none;width:32px;height:32px;margin-left:-12px;border-radius:50%;border:3px solid #fff0fb;background:#e852ae;box-shadow:0 2px 7px #0006}
 #room-zoom-slider150::-moz-range-track{width:8px;border-radius:8px;background:#5a4565}
 #room-zoom-slider150::-moz-range-thumb{width:28px;height:28px;border-radius:50%;border:3px solid #fff0fb;background:#e852ae}
 #room-zoom-slider150:focus-visible{outline:2px solid #ffd7ed;border-radius:12px}
 .top-menu #mobile-room-zoom150 .zoom-reset150{width:auto!important;min-width:60px;min-height:44px!important;height:44px;padding:4px 8px!important;font-size:12px!important;justify-content:center;border-radius:9px;margin:0}
}


/* room-packs-v153.css */
/* The artwork stays above the existing colored beam and floor illumination. */
.stage-light142 > .pack-art153{position:relative;z-index:1}
.movable-prop:not(.stage-light142) .pack-light153 img{filter:brightness(.66) saturate(.65)}


/* nika-loading-v155.css */
.nika-pending155>.wear-figure43{visibility:hidden}
.nika-failed155{position:relative}
.nika-retry155{position:absolute;bottom:0;left:0;min-width:100%;font-size:12px;pointer-events:auto}
/* Keep scene artwork behind the complete hero, including on cold mobile loads. */
.room-stage:has(.nika-pending155:not(.nika-failed155)){background-image:none!important}
.room-stage:has(.nika-pending155:not(.nika-failed155)) .movable-prop{visibility:hidden}


/* mobile-scene-v156.css */
/* The phone canvas owns the entire row; navigation begins with the story below it. */
body.phone-scene156{padding-right:0!important;padding-left:0!important}
body.phone-scene156 main{padding:0!important;max-width:none!important;width:100%;box-sizing:border-box}
body.phone-scene156 .layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px;width:100%;max-width:none;margin:0}
body.phone-scene156 .world{width:100%;min-width:0;max-width:none;padding:0!important;margin:0!important;border:0;border-radius:0}
body.phone-scene156 #scene{width:100%;max-width:none;margin:0;padding:0;border-radius:0}
body.phone-scene156 .illustrated-room,body.phone-scene156 .city-scroll{width:100%!important;max-width:none!important;border-radius:0!important;border-inline:0!important;box-sizing:border-box}
body.phone-scene156 .layout>aside{display:flex!important;flex-direction:column;gap:14px;width:calc(100% - 136px);margin:0 0 0 8px;min-width:0;box-sizing:border-box;position:static!important}
body.phone-scene156 .layout>aside>*{width:100%;box-sizing:border-box;margin:0!important}
body.phone-scene156 .top-menu.mobile-room-dock150{right:4px!important;left:auto!important;top:var(--room-dock-top150)!important;position:absolute!important;transform:none!important;max-height:none!important;overflow:visible!important}
body.phone-scene156 #mobile-room-zoom150{display:flex;flex-direction:row;align-items:center;gap:10px;height:58px!important;min-height:58px;width:100%;padding:6px 12px;border-radius:0;background:#241b30;box-sizing:border-box}
body.phone-scene156 #mobile-room-zoom150 label{font-size:13px}
body.phone-scene156 #mobile-room-zoom150 output{width:44px;flex:none;font-size:12px;text-align:right}
body.phone-scene156 .zoom-track150{flex:1;min-width:44px;width:auto;height:44px;align-items:center}
body.phone-scene156 #room-zoom-slider150{writing-mode:horizontal-tb;direction:ltr;width:100%;height:44px;cursor:ew-resize}
body.phone-scene156 #room-zoom-slider150::-webkit-slider-runnable-track{height:8px;width:100%;background:linear-gradient(to right,#f3a0d2 var(--zoom-fill150,0%),#5a4565 var(--zoom-fill150,0%))}
body.phone-scene156 #room-zoom-slider150::-webkit-slider-thumb{margin-left:0;margin-top:-12px}
body.phone-scene156 #room-zoom-slider150::-moz-range-track{height:8px;width:100%}
body.phone-scene156 #mobile-room-zoom150 .zoom-reset150{min-height:44px;padding:4px 8px;font-size:12px;margin:0}
body.phone-scene156 #footer-player108{transform:none!important}
@media(max-width:600px){body.phone-scene156 .layout>aside{width:calc(100% - 116px)}}

@media(max-width:760px),(max-width:960px) and (max-height:600px){
 .top-menu #settingsbtn .dock-label508{font-size:12px!important;white-space:nowrap}
 .top-menu #clock strong{min-width:0!important;width:auto!important;flex:none;font-variant-numeric:tabular-nums}
 .top-menu #clock{white-space:nowrap;gap:4px;box-sizing:border-box}
}
#sleep-overlay133 section{box-sizing:border-box;max-height:calc(100dvh - 32px);overflow-y:auto}
.sleep-question158{margin:16px 0;padding:14px 0;border-block:1px solid #a87ba555}
.sleep-question158 small{font-size:12px;letter-spacing:.08em;color:#d7accf}
.sleep-question158 p{font-size:17px;line-height:1.45;margin:8px 0 0}

/* Keep the map guide below the city in both phone orientations. */
@media(max-width:760px),(max-width:960px) and (max-height:600px){
 .layout:has(.city-scroll){grid-template-columns:minmax(0,1fr)!important}
}

/* Portrait only: twice the phone frame height and uniform scene scaling. */
@media(orientation:portrait){
body.phone-scene156 .illustrated-room.phone-canvas114{height:var(--phone-canvas-height114)!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important}
body.phone-scene156 .phone-canvas114 .room-stage{left:-50%;right:auto;width:200%;height:100%;background-position:center center}
}


/* phone-dialog-v157.css */
.person-card{display:flex;flex-direction:column}
.person-card .visit-person157{margin-top:auto;align-self:stretch;min-height:44px}
@media(max-width:760px),(max-width:960px) and (max-height:600px){
 #modal.phone-interaction157{position:fixed!important;inset:0!important;margin:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;box-sizing:border-box;border:0!important;border-radius:0!important;padding:16px max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))!important;overflow-y:auto!important;overscroll-behavior:contain;background:#21182c}
 #modal.phone-interaction157>.close{position:sticky;top:0;float:right;z-index:20;width:44px;height:44px;min-height:44px;margin:0 0 8px 8px;background:#38263f;border:1px solid #a87ba5;border-radius:12px;font-size:28px}
 #modal.phone-interaction157 #modalcontent{padding-top:48px;width:100%;box-sizing:border-box}
 #modal.phone-interaction157 h2{font-size:25px;line-height:1.25}
 #modal.phone-interaction157 p{font-size:17px;line-height:1.5}
 #modal.phone-interaction157 .choice{width:100%;min-height:48px;margin:10px 0;padding:12px;font-size:16px;line-height:1.4;white-space:normal;text-align:left}
 #modal.phone-interaction157 .object-detail-art{width:min(100%,320px);height:auto;min-height:180px;margin:12px auto}
 #modal.phone-interaction157 .object-detail-art img,#modal.phone-interaction157 .object-detail-art svg{max-width:100%;max-height:34dvh;object-fit:contain}
}


/* home-objects-v160.css */
/* Thirteen classrooms: two balanced rows, without changing the phone dropdown. */
@media(min-width:1025px){
 .room-school~.room-tabs{display:grid!important;grid-template-columns:repeat(14,minmax(0,1fr))!important;gap:7px}
 .room-school~.room-tabs>button{grid-column:span 2;min-width:0;min-height:48px;white-space:normal;overflow-wrap:anywhere;margin:0}
 .room-school~.room-tabs>button:nth-of-type(8):nth-last-of-type(6){grid-column:2/span 2}
}
@media(min-width:761px) and (max-width:1024px){
 .room-school~.room-tabs{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important;gap:6px}
 .room-school~.room-tabs>button{grid-column:span 2;min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere;margin:0}
 .room-school~.room-tabs>button:nth-of-type(11):nth-last-of-type(3){grid-column:3/span 2}
}


/* rules-v162.css */
#sim-values162{font-size:.82rem;color:var(--muted,#c8bed0);margin:.7rem 0}
#sim-values162 summary{cursor:pointer;padding:.4rem 0}
#sim-values162 table{width:100%;border-collapse:collapse;text-align:left;font-size:inherit}
#sim-values162 td,#sim-values162 th{padding:.3rem .2rem;border-bottom:1px solid #ffffff14}
#sim-values162 th:not(:first-child),#sim-values162 td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.rules-effects162{padding:.5rem 0;font-size:.92rem;line-height:1.5}
#sim-effects162{font-size:.8rem;color:#d1bddb}


/* rest-feedback-v165.css */
#rest-dialog165{box-sizing:border-box;width:min(580px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;padding:24px;border:1px solid #b578aa;border-radius:18px;background:#241b2d;color:#fff;box-shadow:0 20px 80px #0008}
#rest-dialog165::backdrop{background:#100d18dc;backdrop-filter:blur(3px)}
#rest-dialog165 h2{margin:0 0 14px}#rest-dialog165 h3{font-size:20px;line-height:1.4;margin:9px 0}#rest-dialog165 progress{width:100%;accent-color:#e099d5}
#rest-dialog165 .rest-checkin165{margin:20px 0;padding-top:18px;border-top:1px solid #ffffff20}#rest-dialog165 .rest-context165{font-size:14px;opacity:.78}
#rest-dialog165 .feeling-form{display:flex;flex-direction:column;gap:12px}#rest-dialog165 .feeling-stars{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}#rest-dialog165 .feeling-stars button{min-width:0;min-height:44px;padding:6px;font-size:25px}#rest-dialog165 .rest-note165{display:flex;flex-direction:column;gap:7px;font-size:15px}#rest-dialog165 textarea{box-sizing:border-box;width:100%;font:inherit;color:#fff;background:#120e19;border:1px solid #86647e;border-radius:8px;padding:10px}#rest-dialog165 button{min-height:44px}#rest-dialog165 [data-rest-close]{width:100%}
@media(max-width:600px){#rest-dialog165{padding:16px}#rest-dialog165 h3{font-size:18px}#rest-dialog165 .rest-context165{font-size:13px}}

/* The decorative global dialog ring must not widen the scrollable sleep panel. */
#rest-dialog165::before{display:none}


/* mobile-dialogs-v171.css */
/* Full-screen touch dialogs, one scrolling surface, no narrow room-side panel. */
@media(max-width:760px),(max-width:960px) and (max-height:600px){
 dialog#modal[open],dialog#rest-dialog165[open]{position:fixed!important;inset:0!important;margin:0!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;overflow-y:auto!important;overscroll-behavior:contain;scroll-padding:64px 16px;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))!important;-webkit-overflow-scrolling:touch}
 #modal::before,#rest-dialog165::before{display:none}
 #rest-dialog165 .feeling-stars button{width:100%;height:48px;min-height:48px}
 #modal #modalcontent{width:100%;min-width:0;box-sizing:border-box;padding-top:48px}
 #modal>.close{position:sticky!important;top:0;float:right;z-index:30;min-width:44px;min-height:44px;background:#38263f;border:1px solid #a87ba5;border-radius:12px}
 #modal :is(p,label,textarea,input,select),#rest-dialog165 :is(p,label,textarea){font-size:16px;line-height:1.45}
 #modal :is(button,.choice),#rest-dialog165 button{min-height:44px;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation}
 #modal .choice{display:block;width:100%;font-size:16px;padding:12px;margin:10px 0;line-height:1.4}
 #modal :is(input,textarea,select){box-sizing:border-box;max-width:100%}
 #rest-dialog165 .rest-checkin165{margin:16px 0;padding-top:14px}
 #rest-dialog165 .feeling-stars{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
 #rest-dialog165 textarea{min-height:88px;font-size:16px}
 #rest-dialog165 [data-rest-close]{position:sticky;bottom:0;background:#38263f;margin-top:12px;z-index:2}
 #modal .phone-frame{width:100%;max-width:100%;box-sizing:border-box}
}


/* screen-resize-v174.css */
.screen-controls174{margin:20px 0;padding:16px;border:1px solid #735d80;border-radius:12px;background:#241b30}.screen-controls174 label{display:grid;grid-template-columns:1fr auto;gap:8px;margin:16px 0}.screen-controls174 input{grid-column:1/-1;width:100%;min-height:44px;accent-color:#e3a3d5;touch-action:pan-y}.screen-controls174 output{font-variant-numeric:tabular-nums}.projection-screen174>svg{width:100%!important;height:100%!important}


/* perception-v189.css */
/* Effects never transform game geometry, text, actors or pointer targets. */
.perception189{position:absolute;inset:0;pointer-events:none!important;z-index:210;overflow:hidden;contain:layout paint;--fx-alpha:.42;--fx-color:#e2c68f;--fx-other:#94d8d1}
.perception189 *{pointer-events:none!important;box-sizing:border-box}
.perception189[data-level="full"]{--fx-alpha:.78}
.perception-layer189{position:absolute;inset:0;opacity:var(--fx-alpha)}
.perception-layer189[data-branch="1"]{--fx-color:#bfa8c8;--fx-other:#c9a677}
.perception-layer189[data-branch="2"]{--fx-color:#8198bc;--fx-other:#8c929d;filter:saturate(.45)}
.perception-background189{position:absolute;inset:0;background-size:cover;background-position:center;mask-image:radial-gradient(ellipse at center,#0004 15%,#000 85%);-webkit-mask-image:radial-gradient(ellipse at center,#0004 15%,#000 85%)}
.cannabis .perception-background189{filter:blur(2px);animation:perception-breathe189 11s ease-in-out infinite alternate}
.psychedelic .perception-background189{filter:drop-shadow(3px 0 var(--fx-color)) drop-shadow(-3px 0 var(--fx-other)) saturate(1.3);animation:perception-texture189 15s ease-in-out infinite alternate}
.alcohol .perception-background189{filter:blur(2px);transform:translateX(2px)}
[data-sway="true"] .alcohol .perception-background189{animation:perception-sway189 13s ease-in-out infinite}
.perception-detail189{position:absolute;height:auto}
.perception-detail189 img{display:block;width:100%;height:100%;object-fit:contain}
.perception-detail189.halo{filter:blur(9px);opacity:.9;scale:1.12}
.alcohol .halo{scale:1.45 .75;filter:blur(8px)}
.perception-detail189.leaf{filter:drop-shadow(0 0 5px var(--fx-color));animation:perception-leaf189 9s ease-in-out infinite alternate;transform-origin:bottom}
.perception-detail189.contour{filter:drop-shadow(3px 0 var(--fx-color)) drop-shadow(-3px 0 var(--fx-other));animation:perception-leaf189 14s ease-in-out infinite alternate}
.perception-detail189.mandala{translate:-50% -50%;aspect-ratio:1;overflow:hidden;color:var(--fx-color)}
.mandala svg{width:100%;stroke:currentColor;stroke-width:1;fill:none;animation:perception-pattern189 38s linear infinite}
.nicotine{background:radial-gradient(ellipse at center,transparent 50%,#89919c2b);}
.perception-smoke189{position:absolute;width:19%;height:45%;translate:-50% -100%;color:var(--fx-color);background:radial-gradient(ellipse at 50% 90%,#c98d5c20,transparent 45%)}
.perception-smoke189 svg{width:100%;height:100%;stroke:currentColor;stroke-width:3;stroke-linecap:round}
.perception-smoke189 path{animation:perception-smoke189 10s ease-in-out infinite alternate;transform-origin:bottom}
.perception-smoke189 path:nth-child(2){animation-delay:-4s}
[data-branch="2"] .perception-smoke189{background:none;filter:blur(.4px)}
.perception-calm189{position:absolute;right:8px;bottom:8px;z-index:510;font:600 13px/1.3 system-ui;padding:9px 12px;min-height:40px;background:#201a2ded;color:#fff;border:1px solid #ddd8;border-radius:8px}
html[data-perception-drag="true"] .perception189{opacity:0}
html[data-perception-hidden="true"] .perception189 *{animation-play-state:paused!important}
.perception189[data-still="true"] *{animation:none!important}
@keyframes perception-breathe189{from{transform:scale(1)}to{transform:scale(1.065) skewY(.7deg)}}
@keyframes perception-texture189{from{transform:scale(1.025) translate(-5px,2px) skewX(-1.5deg);filter:blur(.5px) saturate(1.3)}to{transform:scale(1.075) translate(7px,-4px) skewX(2deg);filter:blur(3px) saturate(1.65)}}
@keyframes perception-sway189{0%,100%{transform:rotate(-.25deg) scale(1.012)}31%{transform:rotate(.3deg) scale(1.015)}73%{transform:rotate(-.1deg) translateX(3px) scale(1.012)}}
@keyframes perception-leaf189{from{rotate:-2deg}to{rotate:2.5deg}}
@keyframes perception-pattern189{to{transform:rotate(360deg)}}
@keyframes perception-smoke189{from{transform:translateY(2px) skewX(-3deg)}to{transform:translateY(-28px) skewX(12deg)}}
@media(prefers-reduced-motion:reduce){.perception189 *{animation:none!important}}

.perception-preview191{position:relative!important;inset:auto!important;width:100%!important;height:240px!important;max-height:32vh;overflow:hidden;background-size:cover;background-position:center;border:1px solid #a58bb6;border-radius:12px;margin:16px 0;isolation:isolate;pointer-events:none}
.perception-preview191 .room-person,.perception-preview191 .room-npc{z-index:400!important}
.perception-preview191 .movable-prop{pointer-events:none!important}

.perception-motif191{left:76%;top:30%;width:22%;color:#9ee9e7;filter:drop-shadow(2px 0 #e2a471)}

/* Slow refraction phases; only decorative copies move, never actors or controls. */
.psychedelic .perception-background189::after{content:"";position:absolute;inset:-8%;background-image:inherit;background-size:cover;background-position:center;opacity:.4;mix-blend-mode:screen;animation:perception-refraction112 19s ease-in-out infinite}
.psychedelic::after{content:"";position:absolute;inset:-10%;background:radial-gradient(ellipse at 20% 30%,#935be75c,transparent 55%),radial-gradient(ellipse at 80% 70%,#40bbc74d,transparent 55%);animation:perception-color112 23s ease-in-out infinite alternate}
.alcohol .perception-background189{animation:perception-focus112 9s ease-in-out infinite}
@keyframes perception-refraction112{0%,100%{transform:translate(-1%,0) scale(1.02);filter:blur(1px)}35%{transform:translate(2%,1%) scale(1.06) skewY(2deg);filter:blur(3px)}70%{transform:translate(-2%,-1%) scale(1.03) skewY(-1deg);filter:blur(.5px)}}
@keyframes perception-color112{from{transform:rotate(-8deg) scale(1);opacity:.35}to{transform:rotate(12deg) scale(1.15);opacity:.8}}
@keyframes perception-focus112{0%,100%{filter:blur(.5px);transform:translateX(-2px)}50%{filter:blur(3px);transform:translateX(7px)}}
.perception189[data-still="true"] *::after{animation:none!important}
html[data-perception-hidden="true"] .perception189 *::after{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.perception189 *::after{animation:none!important}}


/* control-hover-v118.css */
/* One hover palette for interface controls. Scene sprites keep transparent hit areas. */
@layer control-hover {
 @media (hover:hover) {
  :is(button,input[type=submit],input[type=button],[role=button],.city-hotspot,.ink-bookmarks a):not(:disabled):not([aria-disabled=true]):not(.movable-prop):not(.room-npc):not(.room-person):not(.bed-sleep128):hover {
   background:#4b395a!important;
   border-color:#bb93cc!important;
   color:#fff!important;
   box-shadow:0 0 12px #bb93cc33!important;
  }
 }
 :is(button,input[type=submit],input[type=button],[role=button],.city-hotspot,.ink-bookmarks a):not(:disabled):not([aria-disabled=true]):focus-visible {
  outline:2px solid #bb93cc!important;
  outline-offset:3px!important;
 }
}


/* prop-text-v123.css */
/* Cards adapt to their panel width, not only to the browser viewport. */
.object-shelf30,.wardrobe-grid34{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.object-shelf-item{width:100%;box-sizing:border-box;white-space:normal;word-break:normal}
.object-shelf-item>span:last-child:not(:first-child){flex:1 1 0;min-width:0;white-space:normal;word-break:normal;overflow-wrap:break-word;text-align:left}
.catalog-item{min-width:0;box-sizing:border-box}
.catalog-item :is(h3,p,small),.room-options :is(h2,p),#modalcontent:has(.object-detail-art) :is(h2,p){white-space:normal;word-break:normal;overflow-wrap:break-word;max-width:100%}

/* Preserve a readable text column beside the artwork and action. */
.wear-list134{container-type:inline-size}
.wear-detail134>span:last-child{flex:1 1 0;word-break:normal;overflow-wrap:break-word}
@container(max-width:380px){
 .wear-row134{grid-template-columns:minmax(0,1fr)}
 #modal.wardrobe-dialog134 .wear-action134{width:100%;min-width:0}
}

@media(max-width:700px){.wear-row134{grid-template-columns:minmax(0,1fr)}#modal.wardrobe-dialog134 .wear-action134{width:100%;min-width:0}}
/* Scene SVG rules must not expand a card thumbnail to the panel width. */
.object-shelf-item>:first-child:not(:last-child){width:68px!important;min-width:68px!important;max-width:68px!important;height:78px!important;flex:0 0 68px!important;object-fit:contain}


/* onboarding-v124.css */
/* New-player options are progressively disclosed; drafts and the full editor are retained. */
.first-zine124:not(.expanded124) .zin-form-row36,.first-zine124:not(.expanded124) .zin-tools535>label:has(select),.first-zine124:not(.expanded124) #zin-tabs535{display:none}
.first-zine124:not(.expanded124) #zin-art-choices535>button:nth-child(n+4):not([aria-pressed="true"]){display:none}
.first-zine124 #zin-art-choices535{grid-template-columns:repeat(3,minmax(0,1fr))}
.first-zine124 .zin-workbench535{gap:16px}.first-zine-help124{line-height:1.5}
#next-thumb124[hidden]{display:none!important}
#next-thumb124{position:fixed;left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));width:calc(100% - 24px);z-index:450;min-height:50px;border-radius:14px;box-shadow:0 4px 24px #080410b0;font:700 17px/1.2 system-ui;text-align:center;padding:12px 16px}
@media(max-width:760px),(max-width:960px) and (max-height:600px){
 body.thumb-next124{padding-bottom:calc(80px + env(safe-area-inset-bottom))!important}
 #chapter{padding:16px!important}#chapter h2{font-size:22px!important;line-height:1.25}#quest{font-size:17px!important;line-height:1.45}
 #start-help124{font-size:14px;line-height:1.4;color:#d9bedb;margin:10px 0 0}
 #chapter #guide-next{min-height:48px;width:100%;white-space:normal}
 .first-zine124 .zin-workbench535{display:flex;flex-direction:column}.first-zine124 .zin-preview535{order:-1;max-width:160px;margin:auto}
 .first-zine124 .zin-tools535{min-width:0}.first-zine124 textarea{min-height:110px}
 .first-zine124 button,.first-zine124 input,.first-zine124 select{min-height:44px;font-size:16px}
 .campaign553 .campaign-image553{max-height:140px}.campaign553 .campaign-copy553{font-size:18px;line-height:1.5}
 #modalcontent .choice{min-height:48px;white-space:normal;line-height:1.35}
}
@media(max-width:760px) and (orientation:portrait){
 body.phone-scene156 .phone-canvas114 .room-stage{left:0;width:100%;height:100%}
 body.phone-scene156 .layout>aside{width:calc(100% - 16px)!important;margin:0 8px!important;min-height:0!important}
 body.phone-scene156 .top-menu.compact-nav124{position:static!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;max-width:none!important;padding:0!important;gap:6px!important;background:none;border:0}
 body.phone-scene156 .top-menu.compact-nav124>button{width:100%!important;min-width:0!important;min-height:46px!important;max-width:none!important;margin:0!important;padding:7px!important;justify-content:center!important}
 body.phone-scene156 .top-menu.compact-nav124 .dock-label508{font-size:11px!important;text-align:center!important;white-space:nowrap}
 body.phone-scene156 .top-menu.compact-nav124 .dock-icon508{display:none!important}
 body.phone-scene156 .top-menu.compact-nav124 #clock{grid-column:1/-1;width:100%!important}
 body.phone-scene156 #mobile-room-zoom150{height:48px!important;min-height:48px;padding-block:2px}
}

@media(max-width:760px),(max-width:960px) and (max-height:600px){
 body.onboarding-editor124{padding-right:0!important}
 body.onboarding-editor124 .layout{display:block!important}
 body.onboarding-editor124 .layout>aside{width:100%!important;margin:16px 0!important}
 body.onboarding-editor124 .top-menu.compact-nav124{position:static!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;max-width:none!important;margin:12px 0!important;padding:0!important;gap:6px!important}
 body.onboarding-editor124 .top-menu.compact-nav124 button{width:100%!important;min-width:0!important;padding:7px!important;min-height:44px!important}
 body.onboarding-editor124 .top-menu.compact-nav124 .dock-icon508{display:none!important}
 body.onboarding-editor124 .top-menu.compact-nav124 .dock-label508{font-size:12px!important;white-space:nowrap}
 body.onboarding-editor124 #clock{grid-column:1/-1;width:100%!important}
}


/* first-ten-v126.css */
.opening-impact126{display:flex;align-items:center;gap:12px;padding:12px 16px;margin:10px 0;border:1px solid #ed80bd66;border-radius:14px;background:#49304455;color:#f8e8f1;font-size:15px;line-height:1.45}
.opening-impact126>svg,.opening-impact126>img{width:66px!important;height:66px!important;max-width:66px!important;max-height:66px!important;flex:0 0 66px!important;object-fit:contain;transform:rotate(-5deg)}
.opening-impact126>span{min-width:0;overflow-wrap:anywhere}
.opening-impact126 strong{color:#ffc4e3}.opening-starter126{margin:8px 0 14px;min-height:44px}
#opening-more126[hidden]{display:none!important}
@media(max-width:760px),(max-width:960px) and (max-height:600px){
 body.simple-mobile126{padding-right:0!important;padding-left:0!important}
 body.simple-mobile126 main{padding-inline:8px!important;width:100%!important;box-sizing:border-box}
 body.simple-mobile126 .layout{display:flex!important;flex-direction:column!important;gap:12px}
 body.simple-mobile126 .layout>aside{width:100%!important;margin:0!important;min-height:0!important;box-sizing:border-box}
 body.simple-mobile126 .top-menu.simple-nav126{position:static!important;inset:auto!important;transform:none!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;max-width:none!important;padding:0!important;gap:6px!important;margin:8px 0!important;background:none!important;border:0!important}
 body.simple-mobile126 .top-menu.simple-nav126:not(.nav-expanded126)>button:not(#floatingmapbtn):not(#phone):not(#bagbtn):not(#opening-more126){display:none!important}
 body.simple-mobile126 .top-menu.simple-nav126>button{width:100%!important;min-width:0!important;min-height:48px!important;max-width:none!important;margin:0!important;padding:8px 4px!important;justify-content:center!important;font-size:14px!important;line-height:1.2!important}
 body.simple-mobile126 .simple-nav126 .dock-label508{font-size:13px!important;white-space:nowrap}
 body.simple-mobile126 .simple-nav126 .dock-icon508{display:none!important}
 body.simple-mobile126 .simple-nav126 #clock{grid-column:1/-1;width:100%!important;box-sizing:border-box}
 body.simple-mobile126 #modalcontent .choice{font-size:17px;line-height:1.4;min-height:52px;padding:12px 14px}
 body.simple-mobile126 .opening-impact126{font-size:15px;padding:10px;gap:8px}
 body.simple-mobile126 #chapter #quest{margin-bottom:12px}
}
@media(max-width:760px),(max-width:960px) and (max-height:600px){
 body.simple-mobile126 .world,body.simple-mobile126 #scene{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box}
 body.simple-mobile126 .city-scroll{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto}
 body.simple-mobile126 .simple-nav126>button{order:5}
 body.simple-mobile126 .simple-nav126 #clock{order:0}
 body.simple-mobile126 .simple-nav126 #floatingmapbtn{order:1}
 body.simple-mobile126 .simple-nav126 #phone{order:2}
 body.simple-mobile126 .simple-nav126 #bagbtn{order:3}
 body.simple-mobile126 .simple-nav126 #opening-more126{order:4}
}
