/* The game owns the viewport. Windows are layered over its painted world. */
@font-face{font-family:FreeSenseGame;src:url('assets/Galmuri9.woff2') format('woff2');font-display:swap}
:root{--ink:#493522;--muted:#876f4d;--paper:#eadbbe;--paper-deep:#d5bc8b;--line:#bca174;--green:#405735;--green-dark:#283c24;--rose:#ad6672;--gold:#bf984d;--game-font:FreeSenseGame,'Malgun Gothic',sans-serif;--sans:'Malgun Gothic',system-ui,sans-serif}
html{min-width:0;width:100%;height:100%;overflow:hidden;background:#17180f}body{padding:0;width:100%;height:100dvh;min-height:0;overflow:hidden;background:#17180f;line-height:1.5;color:var(--ink)}#app{width:100%;height:100%;overflow:hidden}.game-shell{width:100%;height:100dvh;min-height:0;max-height:none;max-width:none;border:0;outline:0;outline-offset:0;border-radius:0;margin:0;box-shadow:none;background:#2d2519;display:block;position:relative;overflow:hidden}.game-shell:after{inset:0;border:0;box-shadow:inset 0 0 0 4px #69522c,inset 0 0 0 6px #d6b87788,inset 0 0 50px #161d1266;z-index:17;pointer-events:none}.game-body{position:absolute;inset:0;display:block;min-height:0;width:100%;height:100%;overflow:hidden}.game-footer{display:none!important}
.topbar{position:absolute;left:0;right:0;top:0;height:64px;min-height:64px;z-index:21;background:linear-gradient(#3e2b1b55,#261b13ad),url('assets/wood.webp') center/auto 50px repeat-x;border-bottom:2px solid #a98a4e;box-shadow:0 2px 0 #21180e,0 5px 16px #13160d66;padding:0 25px;color:#e8d2a7;gap:16px}.brand{gap:10px;color:#f4dbab;text-shadow:0 2px 2px #100a06}.brand-mark{color:#d2ad66;filter:drop-shadow(0 2px 1px #150c05)}.brand-mark .icon{width:27px;height:27px}.brand-text{font-family:var(--serif);font-size:22px;letter-spacing:-1px;color:#ead7af}.top-date{font:14px var(--game-font);color:#fae6b6;background:linear-gradient(#4c3925,#2e2419);padding:8px 30px 7px;border:1px solid #aa8a4c;box-shadow:inset 0 0 0 2px #382719,0 2px 3px #100a0855;min-width:210px;line-height:1.4;letter-spacing:0;text-shadow:0 2px #21170e}.top-date small{font:9px var(--sans);color:#bda77c;letter-spacing:0;margin-top:2px}.top-actions{gap:5px}.top-link{display:none}.gold{font-family:var(--game-font);font-size:15px;color:#f5d17d;font-weight:400;gap:7px;margin-right:13px;text-shadow:0 2px #1c1208}.gold small{font-family:var(--sans);font-size:9px;color:#c8ae7a}.gold .icon{color:#e7b95b;width:20px;height:20px}.icon-button{border:1px solid #907244;color:#dfc695;background:linear-gradient(#624b2e,#302319);box-shadow:inset 0 1px #c3a57266,0 2px 2px #140b0666;width:32px;height:32px;border-radius:2px}.icon-button:hover{background:linear-gradient(#7e643d,#4a3520);border-color:#d5b36e;color:#fff0bc}.icon-button:active{transform:translateY(1px);box-shadow:inset 0 2px 4px #0008}.icon-button .icon{width:18px;height:18px}
.scene{position:absolute;inset:0;min-width:0;overflow:hidden;z-index:0;isolation:isolate;background:#7f7655}.scene-background{z-index:-3;width:100%;height:100%;object-fit:cover;object-position:50% 60%;filter:none}.scene:before{inset:0;z-index:1;box-shadow:inset 0 0 100px #2d241352;background:linear-gradient(0deg,#1d261a38,transparent 40%);pointer-events:none}.scene-location{top:78px;left:50%;transform:translateX(-50%);padding:6px 18px;font:11px var(--game-font);letter-spacing:0;background:linear-gradient(#f5e7c9ed,#dac294ee);border:1px solid #8e7140;color:#654b28;box-shadow:inset 0 0 0 2px #f4dfb988,0 3px 9px #35271755;z-index:4;white-space:nowrap}.scene-location:before{background:#78945a;width:5px;height:5px}.scene-season{top:116px;right:auto;left:50%;transform:translateX(-50%);font:10px var(--game-font);color:#fff2cf;text-shadow:0 2px 3px #3a2a13;z-index:4;gap:5px}.scene-season .icon{width:14px;height:14px}.portrait-wrap{left:19%;width:51%;bottom:141px;max-height:740px;justify-content:center;z-index:2;height:calc(100% - 215px);animation:breathe 6s ease-in-out infinite}.portrait-wrap.child{height:calc(88% - 170px)}.portrait-wrap.teen{height:calc(95% - 180px)}.portrait-wrap.adult{height:calc(100% - 190px)}.daughter-portrait{height:100%;width:auto;max-width:100%;filter:drop-shadow(5px 8px 5px #35241055)}.daughter-note{left:calc(50% - 140px);bottom:247px;color:#fff4d2;font-family:var(--game-font);font-size:12px;background:#352b1e88;border:1px solid #c2a46f77;padding:6px 12px;text-shadow:0 2px #342719;box-shadow:inset 0 0 0 1px #3f2c19aa;z-index:4}.daughter-note small{font:9px var(--sans);color:#f5e8c7;opacity:1;margin-top:3px}
.profile-panel,.schedule-panel{position:absolute;top:85px;bottom:128px;width:224px;z-index:12;padding:20px 20px 17px;border:0;border-image:url('assets/parchment.webp') 85 / 13px / 0 stretch;background:linear-gradient(#f0e1c2d6,#e6d3add9),url('assets/paper.webp') center/100% 100%;box-shadow:0 6px 18px #211b1266;display:flex;flex-direction:column;min-height:0;overflow:hidden;scrollbar-width:thin;scrollbar-color:#80623b #e1c89a;color:#4c3822}.profile-panel{left:20px;border-right:0}.profile-intro{margin:0 0 1px;padding-bottom:3px;border-bottom:1px solid #aa8b5544}.profile-intro h1{font-size:25px;line-height:1.35;color:#46341d;text-shadow:0 1px #fff8e2}.profile-age{font:14px var(--game-font);color:#7d5e34}.stage-label{font:9px var(--game-font);line-height:1.6;color:#8d744d;letter-spacing:0;margin:4px 0 11px}.profile-line{display:none}.condition-pair{gap:10px;margin:0 0 12px}.condition label{font:10px var(--game-font);margin-bottom:4px;gap:4px;color:#81613e}.condition label .icon{width:11px;height:11px}.condition strong{font:10px var(--game-font);color:#5e4529}.thin-track{height:5px;border:1px solid #ad926b;background:#b7a17e;border-radius:0;box-shadow:inset 0 1px 2px #4d371d44;overflow:hidden}.thin-track i{box-shadow:inset 0 1px #fff3;background:linear-gradient(#be9c69,#8b6e48)}.condition.love .thin-track i{background:linear-gradient(#c79298,#a36670)}.stat-heading{font:10px var(--game-font);padding-bottom:7px;border-bottom:1px solid #aa8b5577;color:#715433}.stat-heading small{font:8px var(--sans);color:#9d8256}.stat-list{margin:11px 0 13px;gap:9px;flex-shrink:1;min-height:0}.stat-row{flex-shrink:0}.stat-data{font:11px var(--game-font);line-height:1.25;gap:7px;margin-bottom:4px;color:#594329}.stat-data .icon{width:13px;height:13px;filter:drop-shadow(0 1px #fff8)}.stat-data strong{font:11px var(--game-font);color:#5e4728}.stat-track{height:5px;border:1px solid #baa27a;box-shadow:inset 0 1px 2px #6d543344;background:#cbb894;border-radius:0}.stat-track span{box-shadow:inset 0 1px #fff7;min-width:3px}.growth-summary{padding-top:10px;border-top:1px solid #ab8c5866;margin-top:auto}.growth-summary>p{display:none}.growth-step{font:9px var(--game-font);color:#a28860}.growth-step small{font:7px var(--sans);margin-top:3px;color:#9d835c}.growth-step.active{color:#445d31}.growth-step:before{outline-color:#a18d60;background:#a18d60;border-color:#ead7b0}.growth-steps:before{background:#b59c71}.growth-step.active:before{background:#526e35;outline-color:#526e35}.save-state{font:8px var(--sans);color:#8c744f;margin-top:11px;line-height:1.4;gap:4px}.save-state .icon{width:10px;height:10px}
.schedule-panel{right:20px;width:280px;padding:24px 23px 20px;left:auto;border-left:0}.section-eyebrow{font:9px var(--game-font);color:#9a7d4b;letter-spacing:0;line-height:1.5}.section-eyebrow:after{background:#bba16f}.schedule-title{font-size:22px;color:#58401f;line-height:1.5;margin:8px 0}.schedule-caption{font:11px var(--serif);color:#92754c;line-height:1.8;margin-bottom:18px}.schedule-list{display:flex;flex-direction:column;gap:7px}.schedule-slot{border:1px solid #b2986b;background:linear-gradient(#f7eddaa6,#dbc69ba8);box-shadow:inset 0 1px #fff6,inset 0 -2px #9c815633,0 2px 2px #7f643c16;padding:9px 10px 10px;border-radius:1px;min-height:73px}.schedule-slot:first-child{border-top:1px solid #b2986b}.schedule-slot:hover{padding-left:10px;background:linear-gradient(#fff5dc,#dfc89c);border-color:#8c6937;box-shadow:inset 0 0 0 1px #f9e3b7,0 0 9px #b99b5455}.schedule-slot:active{transform:translateY(1px);box-shadow:inset 0 2px 5px #82633833}.slot-date{font:9px var(--game-font);color:#9b7f52;margin-bottom:5px;gap:7px}.slot-date b{font:10px var(--game-font);color:#856032}.slot-main{gap:8px}.slot-icon{width:31px;height:31px;border:1px solid #a99161;background:#e9d6af;box-shadow:inset 0 1px #fffd;border-radius:2px;color:#6b7e49}.slot-icon.work{color:#9d7442;background:#e8d0a7;border-color:#b1915d}.slot-icon.rest{color:#798c69;background:#d6d4ad;border-color:#9b9f75}.slot-name{font:12px var(--game-font);color:#624620}.slot-type{font:8px var(--sans);color:#a0865c;line-height:1.6;margin-top:3px}.slot-main>.icon{color:#a58650;width:13px;height:13px}.schedule-estimate{font:9px var(--game-font);color:#9d7e4d;margin:13px 0 15px;gap:10px;line-height:1.6}.schedule-estimate b{font:11px var(--game-font);line-height:1.6;color:#7d6037;margin-top:4px}.schedule-estimate .positive{color:#547239}.primary-button{font:15px var(--game-font);line-height:1.5;background:linear-gradient(#667c47 0%,#4c6335 45%,#344b28 100%);color:#fff0c8;border:1px solid #29371f;box-shadow:inset 0 1px #e1e2a77a,inset 0 0 0 2px #9fa26b5c,inset 0 -3px #26361d,0 3px 0 #261e1266,0 4px 10px #3b2b1422;border-radius:2px;min-height:48px;padding:12px 19px;text-shadow:0 2px 1px #25331d;gap:10px;transition:filter .15s,transform .1s}.primary-button:hover:not(:disabled){background:linear-gradient(#7a9157,#506d3b);color:#fff8d7;transform:translateY(-1px);filter:brightness(1.07)}.primary-button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 3px 5px #263b23aa,inset 0 0 0 2px #70844d,0 1px #261e1266}.secondary-button{font:11px var(--game-font);line-height:1.5;border:1px solid #9c7d49;color:#765528;background:linear-gradient(#f6e4b9,#d6bd88);box-shadow:inset 0 1px #fff7,inset 0 -2px #aa895355,0 2px 0 #65502e44;min-height:38px;border-radius:2px;padding:9px 15px;text-shadow:0 1px #fff5}.secondary-button:hover{border-color:#806136;background:linear-gradient(#fff2ce,#dcc28b)}.text-button{font:10px var(--game-font);color:#9c7d4f;text-underline-offset:4px}.schedule-hint{font:8px var(--sans);line-height:1.9;color:#9d8055;margin-top:12px}.month-progress{padding-top:14px;gap:6px;margin-top:auto}.month-progress p{font:8px var(--game-font);color:#9a7c4c;line-height:1.7}.month-progress .thin-track{height:4px}.month-progress .thin-track i{background:linear-gradient(#b5a065,#8b7743)}.schedule-tools{margin-top:9px}.schedule-tools button{font:8px var(--game-font);color:#997b48;text-underline-offset:4px}
.dialogue-strip{position:absolute;left:264px;right:320px;bottom:119px;min-height:108px;padding:22px 22px 20px 108px;z-index:10;background:linear-gradient(#f4e5c6e8,#e4cea5f5),url('assets/paper.webp') center/100% 100%;border:0;border-image:url('assets/parchment.webp') 85 / 13px / 0 stretch;box-shadow:0 4px 18px #22190f66;display:flex;flex-direction:column;justify-content:center;border-radius:1px}.butler-mini{width:88px;height:169px;left:11px;bottom:7px;object-fit:contain;object-position:bottom;filter:drop-shadow(2px 3px 2px #4d371b33);z-index:1}.dialogue-name{font:12px var(--game-font);color:#4d6734;margin-bottom:7px;gap:8px;line-height:1.6}.dialogue-name small{font:8px var(--sans);color:#9e8153}.dialogue-text{font:12px var(--game-font);line-height:1.9;color:#624c2b;word-break:keep-all}.talk-button{right:12px;top:-17px;border:1px solid #9a7943;background:linear-gradient(#eedab0,#c7a878);color:#705326;font:9px var(--game-font);padding:7px 11px;box-shadow:inset 0 1px #fffc,0 2px 3px #33230e44;gap:5px}.talk-button:hover{background:#f3dfb2}
.toolbar{position:absolute;left:50%;right:auto;bottom:13px;transform:translateX(-50%);height:92px;min-height:92px;width:min(940px,calc(100% - 40px));padding:5px 19px 7px;background:linear-gradient(#573d2155,#281c11aa),url('assets/wood.webp') center/auto 100% repeat-x;border:2px solid #99713e;box-shadow:inset 0 0 0 2px #dac08a55,inset 0 -4px #160f0977,0 6px 17px #18140cb3;z-index:18;border-radius:4px;gap:3px;overflow:visible}.toolbar:before,.toolbar:after{content:'◆';position:absolute;top:37%;font-size:12px;color:#b49153;text-shadow:0 1px #f6d28b55}.toolbar:before{left:5px}.toolbar:after{right:5px}.toolbar-item{height:77px;flex:1;flex-direction:column;gap:2px;border:1px solid transparent;color:#e6cca0;font:11px var(--game-font);line-height:1.4;text-shadow:0 2px 2px #180e06;position:relative;min-width:0;padding:0 4px;border-radius:2px}.toolbar-item .menu-medallion{height:53px;width:53px;object-fit:contain;filter:drop-shadow(0 3px 2px #130a0688);transition:transform .17s,filter .17s}.toolbar-item .icon{width:37px;height:37px;margin:8px;color:#d4b16f;filter:drop-shadow(0 2px #100a07)}.toolbar-item:last-child{border-right:1px solid transparent}.toolbar-item:hover{background:linear-gradient(#e2c88722,#d0a24c22);border-color:#b8924e88;color:#fff2c7}.toolbar-item:hover .menu-medallion{transform:translateY(-4px) scale(1.05);filter:drop-shadow(0 2px 5px #e8bb5377)}.toolbar-item:active{background:#21180f99;transform:translateY(2px)}.toolbar-item small{top:1px;right:17%;background:#7c2d24;color:#ffe0a7;border:1px solid #cfaa63;padding:1px 3px;font:8px var(--game-font);line-height:1.1;box-shadow:0 1px 3px #1008;border-radius:2px}
.compact-controls,.compact-start{display:none}.window-heading{font-family:var(--game-font)}.loading-screen{color:#e1d0a5;background:#292d20}
/* Every overlay is a game window, with the same wood, brass and parchment. */
dialog{background:linear-gradient(#f0e0c3e8,#e9d5b2e8),url('assets/paper.webp') center/100% 100%;border:2px solid #7c5d31;outline:1px solid #d8b97a;outline-offset:1px;border-radius:3px;box-shadow:inset 0 0 0 2px #c8a56e99,0 14px 90px #0b100cc7;color:#4e3923}dialog::backdrop{background:#131c12a8;backdrop-filter:blur(3px)}.modal-head{padding:15px 20px;background:linear-gradient(#4c351f88,#2c2016c7),url('assets/wood.webp') center/auto 100% repeat-x;border-bottom:2px solid #af8a4e;box-shadow:inset 0 1px #c1a36f55;min-height:67px}.modal-head h2{font:19px var(--game-font);line-height:1.5;color:#f1d9ab;text-shadow:0 2px #170e06;letter-spacing:0}.modal-head h2>.icon{color:#c4a465;width:23px;height:23px}.modal-head small{font:9px var(--sans);color:#bfa87a;margin-top:4px;line-height:1.6}.modal-content{padding:24px 26px;max-height:calc(100dvh - 170px)}.modal-intro{font:12px var(--game-font);color:#97774b;line-height:1.9}.modal-actions{margin-top:20px}.form-field{font:12px var(--game-font);color:#816138}.form-field input{border:1px solid #a48b5d;background:#f7ead0;box-shadow:inset 0 2px 4px #614a2522;color:#5d4322;border-radius:1px;font:14px var(--game-font);padding:11px 12px}.form-note{color:#9a794d;font-size:10px;line-height:1.8}.category-tabs{border-bottom:2px solid #ab8e5c;gap:4px}.category-tab{font:12px var(--game-font);line-height:1.5;background:linear-gradient(#dec89c,#c6ab78);border:1px solid #a78b58;border-bottom:0;color:#8c6b3b;padding:10px 12px;box-shadow:inset 0 1px #fff5;border-radius:2px 2px 0 0}.category-tab.active{background:linear-gradient(#f7e8c7,#ecd6ab);border-color:#93733e;color:#654b24;border-bottom-color:#ecd6ab;box-shadow:inset 0 2px #fff6}.activity-option{border:1px solid #b09664;background:linear-gradient(#f6e9cda8,#e0c99ea8);box-shadow:inset 0 1px #fffa,inset 0 -2px #bca06d33;padding:14px;gap:12px;border-radius:2px}.activity-option.selected{border-color:#577442;background:linear-gradient(#e4e3b6,#ced19d);box-shadow:inset 0 0 0 1px #82975f77}.activity-option:hover:not(:disabled){border-color:#92733e;background:#f3e1b9}.activity-option h3{font:14px var(--game-font);color:#71512a;line-height:1.6}.activity-option p{color:#a08557;font-size:10px;line-height:1.8}.activity-tags{font:10px var(--game-font);line-height:1.8;color:#64804b}.activity-tags .cost{color:#a58242}.activity-tags .stress-plus{color:#b0745c}.activity-lock{color:#a9654b}.activity-option>.icon{color:#8d8b57}.atelier-preview{border-right:2px solid #9b7f4c}.atelier-choices{background:linear-gradient(#eeddba88,#ead3a8aa)}.choice-heading{font:12px var(--game-font);color:#816136;line-height:1.5}.choice-heading small{color:#a08050}.hair-option,.outfit-option{background:linear-gradient(#f5e5c4,#dcc393);border:1px solid #ab8c57;box-shadow:inset 0 1px #fff8,inset 0 -2px #b8985e44;border-radius:2px;font:10px var(--game-font);line-height:1.5;color:#856232}.hair-option.active,.outfit-option.active{border:1px solid #56733c;background:linear-gradient(#e9e7c1,#c9d2a1);box-shadow:inset 0 0 0 1px #859e5b88}.color-option{font:9px var(--game-font);color:#8c6e42;line-height:1.5}.color-swatch{border:3px solid #e7d6af;outline-color:#aa8a55;box-shadow:inset 0 2px 4px #160c0644,0 1px 2px #5f451f33}.color-option.active .color-swatch{outline:2px solid #607d42}.salon-quote{color:#96754a;border-top-color:#b29866;font-family:var(--game-font);font-size:10px;line-height:2}.purchase-line{color:#98733c;font:10px var(--game-font)}.purchase-line strong{font:14px var(--game-font);color:#946d31}.outfit-option h3{font:12px var(--game-font);line-height:1.6;color:#75532c}.outfit-option p,.outfit-option small{color:#9d7d4a}.gift-option{background:linear-gradient(#f6e6c5bb,#dfc697bb);border:1px solid #b2935d;box-shadow:inset 0 1px #fff7,inset 0 -2px #aa8b5533;border-radius:2px}.gift-option h3{font:13px var(--game-font);line-height:1.6;color:#765329}.gift-option p{color:#a3804e;font-size:10px}.gift-option strong{font:12px var(--game-font);color:#a17c38}.npc-card{border:1px solid #a58755;background:linear-gradient(#e6d6b0,#d3ba8b);box-shadow:inset 0 1px #fff5,inset 0 -2px #a0855244}.npc-card h3{font:15px var(--game-font);line-height:1.5;color:#715027}.npc-card p,.npc-card small{color:#9a7845}.npc-dialogue blockquote{font-family:var(--game-font);font-size:16px;line-height:2.1;color:#74552d}.talk-option{background:linear-gradient(#f5e5c3,#ddc599);border:1px solid #a88b57;box-shadow:inset 0 1px #fff9,inset 0 -2px #b2925b44;border-radius:2px}.talk-option h3{font:14px var(--game-font);line-height:1.8;color:#77532e}.talk-option p{color:#9e7b48}.memory-photo{background:#f4e6c9;border-color:#af9461;box-shadow:0 3px 8px #664a2422}.diary-entry{border-bottom-color:#b9a17477}.diary-entry h3{font:14px var(--game-font);color:#76562d;line-height:1.6}.diary-entry p{color:#96784e;font-size:11px;line-height:2}.diary-date{font:11px var(--game-font);line-height:1.6;color:#a17e44}.diary-date small{color:#ad8f5d}.ending-tile{background:linear-gradient(#f0dfba,#dbc390);border:1px solid #ae8f56;box-shadow:inset 0 1px #fff6}.ending-tile h3{font:17px var(--game-font);color:#785729;line-height:1.5}.ending-tile p{color:#9b7847}.ending-tile.earned{border-color:#648045;background:linear-gradient(#e4e5b6,#ced19a)}.rank-filter{background:linear-gradient(#ead5ad,#d0b37e);border:1px solid #a78951;color:#8a6938;font:10px var(--game-font);line-height:1.5;box-shadow:inset 0 1px #fff6}.rank-filter.active{background:linear-gradient(#6a7c45,#405a2f);color:#fff0c4;border-color:#314623}.rank-table th{font:11px var(--game-font);color:#9a7b47}.rank-table td{font:11px var(--game-font);line-height:1.7;color:#816036;border-bottom-color:#b2996c66}.rank-table td:last-child{font:14px var(--game-font);color:#526c38}.rank-table td:first-child{font:15px var(--game-font);color:#ac843c}.rank-note{color:#a0804b;font:10px var(--game-font);line-height:1.9}.score-explanation{color:#9d7b45;font-size:10px;background:#c7b07d33;border-left-color:#9b9d62}.setting-row{border-bottom-color:#b2986766;font:12px var(--game-font);line-height:1.6}.setting-row p{color:#a28250;font:10px var(--sans);line-height:1.8}.setting-row select{font:11px var(--game-font);color:#806036;border-color:#ad8e55;background:#efddb8;box-shadow:inset 0 1px #fffa}.toggle-button{font:11px var(--game-font);color:#e5dfaa;background:linear-gradient(#789454,#4e6b37);border:1px solid #3a5429;box-shadow:inset 0 1px #c9d39f88}.settings-links{color:#9b7b45}.help-list h3{font:15px var(--game-font);line-height:1.6;color:#73522c}.help-list p{color:#97764a;font:11px var(--game-font);line-height:2}.empty-message{font:13px var(--game-font);line-height:2.2;color:#a17e48}.toast{font:11px var(--game-font);line-height:1.8;background:linear-gradient(#4e603beF,#273a25f5);color:#f9ebc0;border:1px solid #c1a665;box-shadow:inset 0 0 0 2px #8d956066,0 5px 25px #16201288;border-radius:2px;bottom:120px}
.dialogue-emphasis{font-weight:700;text-shadow:0 1px #fff8}.dialogue-emphasis.warm{color:#af5766}.dialogue-emphasis.hope{color:#3e6e40}.dialogue-emphasis.wisdom{color:#3b6689}.dialogue-emphasis.warning{color:#ae5137}.event-content .dialogue-emphasis,.credits-text .dialogue-emphasis{font-weight:700;text-shadow:0 1px 3px #182119}.event-content .dialogue-emphasis.warm,.credits-text .dialogue-emphasis.warm{color:#ffb4bf}.event-content .dialogue-emphasis.hope,.credits-text .dialogue-emphasis.hope{color:#c0e293}.event-content .dialogue-emphasis.wisdom,.credits-text .dialogue-emphasis.wisdom{color:#a9d8f3}.event-content .dialogue-emphasis.warning,.credits-text .dialogue-emphasis.warning{color:#ffb382}.dialogue-text strong,.npc-dialogue strong{font-weight:700}.event-content>p{font:13px var(--game-font);line-height:2;color:#fff0ce}.event-content h2{font-family:var(--serif);color:#ffecbb}.event-option{font:12px var(--game-font);line-height:1.6;border:1px solid #c5a76b;background:linear-gradient(#f7e8c9ee,#d4b780ee);color:#6b4b24;box-shadow:inset 0 1px #fff8,inset 0 -2px #92713d66,0 3px 5px #17211366;text-shadow:0 1px #fff5}.event-option:hover{background:#ffebbc;border-color:#e6c57d}.event-modal{border-image:url('assets/parchment.webp') 85 / 12px / 0 stretch}.event-options{gap:9px}.credits-modal{border:0;border-image:none;box-shadow:none;background:#20281d}.credits-controls button{font-family:var(--game-font);background:#332b1ccc;color:#edd9ac;border-color:#b59661;box-shadow:inset 0 1px #fff2}.month-stage{border:2px solid #9b7843;box-shadow:inset 0 0 0 1px #e3c282,0 18px 90px #050b0599}.month-time{font:14px var(--game-font);line-height:1.6}.month-activity h2{font-family:var(--game-font);font-size:32px;text-shadow:0 3px 3px #20321a}.month-activity p{font-family:var(--game-font);font-size:12px;line-height:1.8;color:#f2e1b6}
.title-screen{position:absolute;inset:0;width:100%;height:100%;min-height:0;display:flex;align-items:center}.title-art{width:100%;height:100%;object-fit:cover;object-position:center}.title-screen:after{background:linear-gradient(90deg,#292817e6 0%,#33301cc9 23%,#423c2444 53%,transparent 75%),linear-gradient(0deg,#251e12aa,transparent 35%)}.title-copy{padding:40px 6% 40px;width:55%;margin:34px 0 0;align-self:center}.title-copy h1{color:#eedba9;text-shadow:0 3px 0 #564526,0 6px 14px #18170c99;font-size:clamp(52px,5vw,80px);letter-spacing:-3px;line-height:1.3}.title-overline{font:13px var(--game-font);color:#ccb77d;letter-spacing:1px;line-height:1.8;margin-bottom:23px;text-shadow:0 2px #211909}.title-copy p{font:13px var(--game-font);line-height:2.2;color:#c5b588;text-shadow:0 2px #291e10;max-width:340px}.title-flower{color:#bda360;filter:drop-shadow(0 2px 2px #1d1406);margin-bottom:16px}.title-divider{background:#ac8e4d;margin:23px 0}.title-buttons{max-width:270px;margin-top:29px;gap:12px}.title-buttons .primary-button{font:16px var(--game-font);min-height:54px;color:#fff0c5;background:linear-gradient(#6b7946,#3d562b);border-color:#c1a164;box-shadow:inset 0 0 0 2px #9f995b66,inset 0 -3px #27381d,0 4px 9px #16190c88}.title-buttons .secondary-button{font:13px var(--game-font);color:#dec998;background:linear-gradient(#6b5132dc,#352718ed);border-color:#a08049;text-shadow:0 2px #1e130a;min-height:44px;box-shadow:inset 0 1px #b79d6d66,inset 0 -2px #211709,0 3px 5px #141a0d77}.title-buttons .text-button{color:#bda677;font-size:10px;font-family:var(--game-font)}.title-save-note{font:9px var(--game-font);color:#a28c5e;line-height:1.7;margin-top:15px}.title-bottom{left:6%;bottom:25px;color:#c3aa75;gap:17px;font:9px var(--game-font);line-height:1.8}.title-bottom a{border-bottom-color:#a98d4e66}.title-bottom button{font:9px var(--game-font);color:#c3aa75}.title-cloud-notice{font:10px var(--game-font);line-height:1.9;color:#d0ac7c}.title-screen~.topbar{z-index:20}
.schedule-sheet{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;background:none!important;border:0!important;border-image:none!important;box-shadow:none!important;display:flex!important;overflow:visible!important;padding:0!important;color:#5c4021}.schedule-sheet .section-eyebrow,.schedule-sheet .schedule-title,.schedule-sheet .schedule-caption,.schedule-sheet .month-progress,.schedule-sheet .schedule-tools{display:none}.schedule-sheet .schedule-list{display:flex;gap:9px}.schedule-sheet .schedule-slot{min-height:78px}.schedule-sheet .schedule-estimate{margin:17px 0}.schedule-sheet .schedule-hint{margin-top:14px}.stats-sheet{display:flex!important;position:relative!important;inset:auto!important;width:100%!important;height:auto!important;background:none!important;border:0!important;border-image:none!important;box-shadow:none!important;overflow:visible!important;padding:0!important}.stats-sheet .stat-list{gap:15px;margin:18px 0}.stats-sheet .stat-data{font-size:12px;line-height:1.5}.stats-sheet .stat-data strong{font-size:12px}.stats-sheet .stat-track{height:7px}.stats-sheet .growth-summary{margin-top:15px}.stats-sheet .save-state{margin-top:18px}
@media(min-width:981px) and (max-height:790px){.topbar{height:57px;min-height:57px}.profile-panel,.schedule-panel{top:77px;bottom:122px}.profile-panel{padding:18px 18px 15px}.profile-intro h1{font-size:23px}.profile-age{font-size:12px}.stage-label{font-size:8px;margin:3px 0 9px}.condition-pair{margin-bottom:9px}.condition label{font-size:9px}.stat-heading{font-size:9px;padding-bottom:6px}.stat-list{gap:6px;margin:9px 0 10px}.stat-data{font-size:10px;line-height:1.25;margin-bottom:3px}.stat-data strong{font-size:10px}.stat-track{height:4px}.growth-summary{padding-top:9px}.growth-step{font-size:8px}.growth-step small{font-size:7px}.save-state{font-size:8px;margin-top:9px}.schedule-panel{padding:21px 22px 17px}.schedule-title{font-size:20px;margin:6px 0}.schedule-caption{font-size:10px;margin-bottom:12px;line-height:1.7}.schedule-slot{min-height:65px;padding:7px 9px 8px}.schedule-slot:hover{padding-left:9px}.slot-date{font-size:8px;margin-bottom:4px}.slot-date b{font-size:9px}.slot-name{font-size:11px}.slot-icon{width:27px;height:27px}.slot-icon .icon{width:18px;height:18px}.slot-type{font-size:7px}.schedule-estimate{font-size:8px;margin:10px 0 12px;gap:8px}.schedule-estimate b{font-size:10px;margin-top:2px}.schedule-panel>.primary-button{min-height:45px;font-size:13px;padding:10px 15px}.schedule-hint{font-size:8px;line-height:1.8;margin-top:10px}.month-progress{padding-top:9px}.schedule-tools{margin-top:7px}.schedule-tools button{font-size:7px}.dialogue-strip{min-height:98px;padding-top:18px;padding-bottom:17px;bottom:115px}.dialogue-text{font-size:11px;line-height:1.85}.dialogue-name{font-size:11px;margin-bottom:5px}.daughter-note{bottom:227px;font-size:11px}.butler-mini{height:151px;width:83px}.toolbar{bottom:11px;height:87px;min-height:87px}.toolbar-item{height:73px;font-size:10px}.toolbar-item .menu-medallion{width:49px;height:49px}.scene-location{top:73px;font-size:10px}.scene-season{top:107px}.top-date{font-size:12px;min-width:190px;padding:6px 20px}.brand-text{font-size:20px}.gold{font-size:13px}.portrait-wrap{bottom:143px}.portrait-wrap.child{height:calc(91% - 170px)}.portrait-wrap.teen{height:calc(98% - 181px)}.portrait-wrap.adult{height:calc(100% - 180px)}}
@media(min-width:981px) and (max-height:690px){.profile-panel,.schedule-panel{top:70px;bottom:111px}.profile-panel{padding:16px 18px 14px}.profile-intro h1{font-size:21px}.condition-pair{margin-bottom:7px}.stat-list{gap:5px;margin:8px 0}.stat-data{font-size:9px}.stat-data strong{font-size:9px}.stat-track{height:3px}.growth-summary{display:none}.save-state{margin-top:auto;padding-top:5px}.schedule-panel{padding:17px 21px 15px}.section-eyebrow{display:none}.schedule-title{font-size:18px;margin:0 0 5px}.schedule-caption{font-size:9px;line-height:1.5;margin-bottom:9px}.schedule-slot{min-height:59px;padding:6px 8px}.slot-date{font-size:7px}.slot-name{font-size:10px}.slot-icon{height:25px;width:25px}.slot-type{font-size:7px}.schedule-estimate{margin:8px 0 10px;font-size:7px}.schedule-estimate b{font-size:9px}.schedule-hint{font-size:7px;margin-top:7px}.month-progress,.schedule-tools{display:none}.schedule-panel>.primary-button{min-height:41px;font-size:12px}.dialogue-strip{min-height:87px;bottom:108px;padding-top:15px;padding-bottom:14px}.dialogue-text{font-size:10px}.dialogue-name{font-size:10px}.butler-mini{height:132px;width:73px;left:14px}.daughter-note{bottom:209px;font-size:10px}.toolbar{height:80px;min-height:80px;bottom:10px}.toolbar-item{height:67px;font-size:9px}.toolbar-item .menu-medallion{height:44px;width:44px}.portrait-wrap{bottom:124px}.scene-location{top:69px}.scene-season{top:99px}}
@media(min-width:981px) and (max-width:1200px){.profile-panel{left:13px;width:200px;padding-left:18px;padding-right:18px}.schedule-panel{right:13px;width:254px;padding-left:21px;padding-right:21px}.dialogue-strip{left:228px;right:281px;padding-left:87px;padding-right:19px}.butler-mini{left:8px;width:76px}.brand-text{font-size:19px}.topbar{padding:0 19px}.top-date{min-width:190px;padding-left:18px;padding-right:18px}.gold{font-size:13px;margin-right:9px}.toolbar{width:min(850px,calc(100% - 32px))}.slot-name{font-size:11px}.schedule-title{font-size:19px}.dialogue-text{font-size:11px}.portrait-wrap{left:18%;width:49%}}
/* A narrow play window uses HUD drawers, never a scrolling web layout. */
@media(max-width:980px){html,body{min-width:0;overflow:hidden;width:100%;height:100dvh}.game-shell{min-height:0;height:100dvh;width:100%;overflow:hidden}.topbar{height:52px;min-height:52px;padding:0 16px;gap:8px}.brand-text{font-size:19px;letter-spacing:-1px}.brand-mark .icon{width:23px;height:23px}.brand{gap:7px}.top-date{display:none}.gold{font-size:13px;gap:5px;margin-right:8px}.gold small{font-size:8px}.top-actions{gap:4px}.icon-button{width:29px;height:29px}.icon-button .icon{width:16px;height:16px}.help-button{display:none}.game-body{display:block;inset:0;width:100%;height:100%}.game-body>.profile-panel,.game-body>.schedule-panel{display:none}.scene{position:absolute;inset:0;min-height:0;width:100%;height:100%;grid-column:auto;grid-row:auto}.scene-background{object-fit:cover;object-position:50% 60%}.scene-location{display:none}.scene-season{top:65px;left:50%;right:auto;transform:translateX(-50%);background:linear-gradient(#f4e3bdeB,#dbc296eB);padding:7px 15px;color:#77552a;border:1px solid #8d6a36;box-shadow:inset 0 1px #fff9,0 3px 8px #32221155;font-size:11px;text-shadow:0 1px #fff7;z-index:10;white-space:nowrap}.compact-controls{display:flex;position:absolute;top:65px;left:16px;right:16px;justify-content:space-between;z-index:12;pointer-events:none}.compact-hud-button{pointer-events:auto;display:flex;align-items:center;gap:6px;border:1px solid #aa8547;background:linear-gradient(#6d5433,#342619);color:#edd8ae;box-shadow:inset 0 1px #c7a86d66,0 2px 4px #1d180d77;font:11px var(--game-font);line-height:1.6;padding:7px 10px;min-height:32px;border-radius:2px;text-shadow:0 2px #1c1209}.compact-hud-button .icon{width:15px;height:15px;color:#d0af69}.compact-start{display:flex;position:absolute;left:50%;transform:translateX(-50%);bottom:108px;z-index:15;justify-content:center;width:250px;max-width:calc(100% - 40px)}.compact-start .primary-button{width:100%;font-size:14px;min-height:44px;padding:10px 19px;white-space:nowrap;border-color:#d8b878}.toolbar{left:50%;right:auto;transform:translateX(-50%);bottom:11px;width:calc(100% - 28px);max-width:740px;height:83px;min-height:83px;padding:5px 12px 7px;position:absolute;gap:1px;z-index:18;box-shadow:inset 0 0 0 2px #c5a16a55,0 4px 15px #1b170e99}.toolbar-item{height:69px;gap:3px;font-size:10px;padding:0 1px;border:1px solid transparent}.toolbar-item .menu-medallion{height:46px;width:46px}.toolbar-item .icon{height:32px;width:32px;margin:7px}.toolbar-item small{font-size:7px;right:6%;top:1px}.dialogue-strip{left:24px;right:24px;bottom:171px;min-height:105px;padding:21px 23px 19px 108px;max-width:690px;margin:0 auto;border-image-width:13px;z-index:10}.dialogue-name{font-size:12px;margin-bottom:6px}.dialogue-name small{font-size:8px}.dialogue-text{font-size:12px;line-height:1.9}.butler-mini{width:88px;height:160px;left:12px;bottom:7px}.talk-button{font-size:9px;top:-17px;padding:7px 11px}.portrait-wrap{left:17%;width:66%;bottom:193px;max-height:690px;height:calc(100% - 270px)}.portrait-wrap.child{height:calc(85% - 185px)}.portrait-wrap.teen{height:calc(93% - 210px)}.portrait-wrap.adult{height:calc(100% - 240px)}.daughter-note{left:30px;bottom:293px;max-width:170px;font-size:11px;padding:6px 10px;z-index:6}.daughter-note small{font-size:8px}.sun-dust{top:52px;bottom:170px}.toast{bottom:163px;font-size:10px;max-width:85vw}.title-screen{position:absolute;inset:0;width:100%;height:100dvh;min-height:0;align-items:center}.title-art{object-position:66% center;filter:brightness(.85)}.title-copy{width:70%;padding:45px 7% 35px;margin-top:35px;align-self:center}.title-copy h1{font-size:clamp(44px,7.7vw,65px);letter-spacing:-2px}.title-copy p{font-size:12px;line-height:2.1}.title-overline{font-size:11px;letter-spacing:0;margin-bottom:16px}.title-flower{margin-bottom:17px}.title-flower>.icon{width:37px;height:37px}.title-divider{margin:19px 0}.title-buttons{max-width:250px;margin-top:24px;gap:11px}.title-buttons .primary-button{font-size:14px;min-height:48px}.title-buttons .secondary-button{font-size:11px;min-height:42px}.title-buttons .text-button{font-size:9px}.title-save-note{font-size:8px;margin-top:12px}.title-bottom{bottom:20px;left:7%;font-size:8px;gap:12px}.title-bottom button{font-size:8px}.modal-content .schedule-sheet{display:flex!important}.modal-content .stats-sheet{display:flex!important}.modal-head h2{font-size:18px}.modal-head small{font-size:8px}.modal-content{max-height:calc(100dvh - 150px)}.schedule-sheet .schedule-slot{padding:10px 12px;min-height:77px}.schedule-sheet .slot-name{font-size:13px}.schedule-sheet .slot-type{font-size:9px}.schedule-sheet .slot-date{font-size:9px}.schedule-sheet .slot-date b{font-size:11px}.schedule-sheet .slot-icon{width:33px;height:33px}.schedule-sheet .schedule-estimate{font-size:10px}.schedule-sheet .schedule-estimate b{font-size:12px}.schedule-sheet .schedule-hint{font-size:9px}.schedule-sheet>.primary-button{min-height:49px;font-size:15px}.event-modal{border-image-width:10px}.event-content{padding:29px}.event-content>p{font-size:12px}.event-option{font-size:12px}.credits-portrait{max-width:66%}.credits-text{font-size:17px}}
@media(max-width:540px){.topbar{height:47px;min-height:47px;padding:0 11px}.brand-mark{display:none}.brand-text{font-size:17px;letter-spacing:-1px}.top-actions{gap:3px}.gold{font-size:11px;gap:3px;margin-right:5px}.gold small{display:none}.gold .icon{width:16px;height:16px}.icon-button{width:26px;height:27px}.icon-button .icon{width:15px;height:15px}.sound-toggle{display:none}.compact-controls{left:13px;right:13px;top:61px}.compact-hud-button{font-size:9px;padding:6px 8px;gap:4px;min-height:29px}.compact-hud-button .icon{width:13px;height:13px}.scene-season{top:61px;font-size:9px;padding:7px 12px;line-height:1.5}.scene-season .icon{width:12px;height:12px}.scene-background{object-position:46% center}.portrait-wrap{left:3%;width:94%;bottom:180px;max-height:620px}.portrait-wrap.child{height:calc(88% - 188px)}.portrait-wrap.teen{height:calc(95% - 218px)}.portrait-wrap.adult{height:calc(100% - 245px)}.daughter-note{left:16px;bottom:279px;font-size:10px;padding:5px 8px}.daughter-note small{font-size:7px}.dialogue-strip{left:13px;right:13px;bottom:159px;min-height:101px;padding:19px 18px 17px 78px;border-image-width:11px}.butler-mini{height:135px;width:66px;left:8px;bottom:7px}.dialogue-name{font-size:10px;margin-bottom:4px;gap:6px;line-height:1.5}.dialogue-name small{font-size:7px}.dialogue-text{font-size:10px;line-height:1.9}.talk-button{font-size:8px;right:12px;top:-16px;padding:6px 9px;gap:4px}.talk-button .icon{width:11px;height:11px}.compact-start{bottom:103px;width:223px}.compact-start .primary-button{font-size:12px;min-height:43px;gap:7px;padding:10px 15px}.toolbar{bottom:9px;left:50%;width:calc(100% - 18px);height:80px;min-height:80px;padding:4px 7px 7px;gap:0;border-width:2px}.toolbar:before,.toolbar:after{display:none}.toolbar-item{font-size:8px;line-height:1.5;gap:3px;height:66px;padding:0}.toolbar-item .menu-medallion{height:36px;width:36px;max-width:100%}.toolbar-item .icon{height:26px;width:26px;margin:5px}.toolbar-item small{display:none}.title-screen:after{background:linear-gradient(90deg,#1c2117ed,#293020b3 55%,#1f291b55),linear-gradient(0deg,#201c11bb,transparent 70%)}.title-copy{padding:44px 8% 20px;width:92%;margin-top:20px}.title-copy h1{font-size:clamp(42px,12vw,59px)}.title-overline{font-size:10px;margin-bottom:15px;letter-spacing:0}.title-copy p{font-size:11px;line-height:2}.title-flower{margin-bottom:11px}.title-flower .icon{width:31px;height:31px}.title-divider{margin:19px 0}.title-buttons{max-width:224px;margin-top:22px;gap:10px}.title-buttons .primary-button{font-size:13px;min-height:46px}.title-buttons .secondary-button{font-size:10px;min-height:39px}.title-save-note{font-size:7px;margin-top:12px}.title-bottom{left:8%;font-size:7px;gap:8px;bottom:16px}.title-bottom button{font-size:7px}.title-cloud-notice{font-size:9px}.toast{font-size:9px;bottom:153px;padding:9px 13px;line-height:1.8}.modal-head{padding:13px 15px;min-height:61px}.modal-head h2{font-size:16px;line-height:1.7;gap:8px}.modal-head h2>.icon{width:19px;height:19px}.modal-head small{font-size:7px;line-height:1.7}.modal-content{padding:19px;max-height:calc(100dvh - 125px)}dialog,.modal-wide,.modal-small{width:calc(100vw - 22px);max-height:calc(100dvh - 32px);outline-offset:0}.modal-intro{font-size:10px;line-height:1.95}.primary-button{font-size:13px;min-height:44px}.secondary-button{font-size:10px;line-height:1.5;min-height:36px;padding:9px 11px}.form-note{font-size:9px}.schedule-sheet .schedule-slot{min-height:77px;padding:9px 11px}.schedule-sheet .slot-date{font-size:8px}.schedule-sheet .slot-date b{font-size:10px}.schedule-sheet .slot-name{font-size:12px}.schedule-sheet .slot-type{font-size:8px}.schedule-sheet .schedule-estimate{font-size:9px;flex-wrap:nowrap;justify-content:space-between;gap:8px}.schedule-sheet .schedule-estimate b{font-size:11px}.schedule-sheet .schedule-hint{font-size:8px}.schedule-sheet>.primary-button{font-size:13px;min-height:46px}.stats-sheet .stat-list{gap:14px}.stats-sheet .stat-data{font-size:11px}.stats-sheet .stat-data strong{font-size:11px}.stats-sheet .growth-summary{display:block}.stats-sheet .profile-intro h1{font-size:27px}.stats-sheet .profile-age{font-size:15px}.stats-sheet .stage-label{font-size:10px}.stats-sheet .condition label,.stats-sheet .condition strong{font-size:11px}.stats-sheet .condition label .icon{display:block}.stats-sheet .save-state{font-size:9px}.activity-option{padding:12px;gap:10px}.activity-option h3{font-size:13px}.activity-option p{font-size:9px}.activity-tags{font-size:9px}.category-tab{font-size:10px;padding:9px 7px}.gift-option h3{font-size:11px}.gift-option p{font-size:9px}.gift-option strong{font-size:11px}.npc-dialogue blockquote{font-size:13px;line-height:2.1}.talk-option h3{font-size:12px}.talk-option p{font-size:9px}.talk-option{padding:14px}.setting-row{font-size:11px}.setting-row p{font-size:9px}.setting-row select{font-size:9px}.help-list h3{font-size:13px}.help-list p{font-size:10px}.event-modal{width:calc(100vw - 20px);height:min(780px,92dvh);max-height:92dvh}.event-content{padding:24px 20px}.event-content h2{font-size:25px}.event-content>p{font-size:11px;line-height:2}.event-option{font-size:11px;padding:10px 12px;line-height:1.7}.event-character{bottom:36%;height:48%;max-width:45%}.event-character.alpaca{bottom:39%;height:44%}.event-daughter{bottom:35%;height:58%;max-width:60%}.credits-modal{width:100vw;height:100dvh;max-height:100dvh;max-width:none}.credits-text{font-size:15px;line-height:2.6}.credits-controls button{font-size:10px}.month-overlay{padding:10px}.month-stage{max-height:88dvh}.month-time{font-size:12px;top:24px;left:20px}.month-activity{left:21px;right:21px;bottom:43px}.month-activity h2{font-size:26px}.month-activity p{font-size:11px}.skip-animation{font:8px var(--game-font);right:15px;top:20px}.memory-photo h3{font:11px var(--game-font);line-height:1.6}.diary-entry h3{font-size:12px}.diary-entry p{font-size:10px}.rank-filter{font-size:9px}.rank-table th{font-size:9px}.rank-table td{font-size:9px}.rank-table td:last-child{font-size:11px}.rank-note{font-size:9px}.empty-message{font-size:12px}.hair-option{font-size:8px}.outfit-option h3{font-size:10px}.color-option{font-size:8px}.salon-quote{font-size:9px}.atelier-choices .primary-button{font-size:11px}.outfit-option small,.outfit-option p{font-size:8px}.purchase-line{font-size:9px}.purchase-line strong{font-size:12px}}
@media(max-width:360px){.brand-text{font-size:15px}.topbar{padding:0 9px}.top-actions{gap:3px}.gold{font-size:10px;margin-right:3px}.icon-button{width:25px;height:26px}.compact-hud-button{font-size:8px;padding:6px 7px}.compact-controls{left:10px;right:10px}.scene-season{font-size:8px;padding:7px 10px}.toolbar{height:73px;min-height:73px;bottom:8px;padding-left:4px;padding-right:4px}.toolbar-item{height:60px;font-size:7px}.toolbar-item .menu-medallion{height:32px;width:32px}.toolbar-item .icon{height:23px;width:23px}.compact-start{bottom:92px}.compact-start .primary-button{min-height:42px;font-size:11px}.dialogue-strip{bottom:149px;padding:18px 15px 17px 70px;left:10px;right:10px;min-height:102px}.dialogue-text{font-size:9px}.dialogue-name{font-size:9px}.dialogue-name small{font-size:6px}.butler-mini{height:126px;width:60px;left:6px}.daughter-note{bottom:265px;font-size:9px}.portrait-wrap{bottom:178px}.portrait-wrap.child{height:calc(89% - 195px)}.title-copy h1{font-size:41px}.title-copy p{font-size:10px}.title-copy{padding-top:35px}.title-overline{font-size:9px}.title-buttons{max-width:205px}.title-bottom{font-size:6px}.title-bottom button{font-size:6px}}
@media(max-height:600px) and (max-width:980px){.dialogue-strip{bottom:147px;min-height:86px;padding-top:16px;padding-bottom:15px}.dialogue-text{font-size:9px}.dialogue-name{font-size:9px;margin-bottom:3px}.butler-mini{height:115px;width:60px}.compact-start{bottom:92px}.compact-start .primary-button{min-height:40px;font-size:11px}.toolbar{bottom:8px;height:72px;min-height:72px}.toolbar-item{height:60px;font-size:8px}.toolbar-item .menu-medallion{width:33px;height:33px}.daughter-note{bottom:246px;font-size:9px}.portrait-wrap.child{height:calc(100% - 240px);bottom:175px}.portrait-wrap.teen,.portrait-wrap.adult{height:calc(100% - 220px);bottom:173px}.scene-season,.compact-controls{top:56px}.title-copy{margin:30px 0 0;padding-top:25px;padding-bottom:20px;width:80%}.title-flower{display:none}.title-copy h1{font-size:39px;line-height:1.2}.title-overline{font-size:9px;margin-bottom:11px}.title-divider{margin:13px 0}.title-copy p{font-size:10px;line-height:1.8}.title-buttons{margin-top:17px;gap:8px}.title-buttons .primary-button{min-height:41px;font-size:12px}.title-buttons .secondary-button{min-height:34px;font-size:10px}.title-save-note{display:none}.title-bottom{bottom:12px;font-size:7px}.title-buttons .text-button{font-size:8px}.title-bottom button{font-size:7px}}
.speaking-line{cursor:pointer}.speaking-line:after{content:'▾';font-size:10px;color:#a27c40;margin-left:7px;animation:cursor 1s infinite}.daughter-dialogue{display:grid;grid-template-columns:165px 1fr;gap:21px;align-items:center;min-height:230px}.daughter-dialogue-image{height:230px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#f9edd3,#d1ba8b00 75%);border-bottom:1px solid #b0945b77}.daughter-dialogue-image canvas{position:absolute;top:3px;left:50%;transform:translateX(-50%);width:236px;height:393px;max-width:none;filter:drop-shadow(0 4px 2px #63482122)}.speaker-name{font:13px var(--game-font);color:#668146;margin:0 0 12px}.daughter-dialogue-words blockquote{margin:0;font:15px var(--game-font);color:#7c5c31;line-height:2.2;word-break:keep-all;min-height:130px}.dialogue-emphasis.hope{color:#456d38}.dialogue-emphasis.warm{color:#a64d64}.dialogue-emphasis.wisdom{color:#3e638a}.dialogue-emphasis.warning{color:#aa4e30}
@media(min-width:981px){.scene-season{display:none}.schedule-caption{margin-bottom:13px}.schedule-list{gap:6px}.schedule-slot{min-height:69px;padding-top:8px;padding-bottom:9px}.schedule-estimate{margin:11px 0 13px}.schedule-hint{margin-top:10px;font-size:8px}.schedule-tools{margin-top:6px}.month-progress{padding-top:9px}.schedule-panel{overflow-y:auto}}
@media(max-width:540px){.daughter-dialogue{grid-template-columns:105px 1fr;gap:13px;min-height:210px}.daughter-dialogue-image{height:210px}.daughter-dialogue-image canvas{width:213px;height:355px}.daughter-dialogue-words blockquote{font-size:11px;line-height:2.2;min-height:125px}.speaker-name{font-size:11px;margin-bottom:8px}}
/* PM2-style stat rails: integer values, deep troughs, visible colored gauges. */
.stat-list{gap:8px}.stat-data{margin-bottom:4px;line-height:1.3}.stat-data strong{font-family:var(--game-font);font-variant-numeric:tabular-nums;letter-spacing:.2px;color:#5b3e1d}.stat-track{position:relative;height:13px;min-height:13px;overflow:hidden;border:1px solid #8d6a39;outline:1px solid #f5dfb677;outline-offset:0;border-radius:1px;background:linear-gradient(#a28a64,#cbb388 50%,#ddc79e);box-shadow:inset 0 2px 4px #5a3b1d88,inset 0 -1px #f6e3bd}.stat-track span{height:100%;min-width:3px;position:relative;background:linear-gradient(#ffffff66 0%,#ffffff22 35%,#00000011 70%,#00000033 100%),var(--stat-color);box-shadow:inset 0 1px #f2efd3bb,inset 0 -1px #27381f66,1px 0 #503b1d66;transition:width .75s ease-out}.stat-track:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(10% - 1px),#61452233 calc(10% - 1px),#61452233 10%);pointer-events:none}.stats-sheet .stat-track{height:17px;min-height:17px}.stats-sheet .stat-list{gap:14px}.stats-sheet .stat-data strong{font-size:13px}
.game-body>.schedule-panel .section-eyebrow,.game-body>.schedule-panel .schedule-caption,.game-body>.schedule-panel .schedule-hint{display:none}.game-body>.schedule-panel .schedule-title{margin:0 0 18px;padding-bottom:11px;border-bottom:1px solid #a58a5855}.game-body>.schedule-panel{overflow:hidden}
@media(min-width:981px) and (max-height:790px){.stat-list{gap:6px}.stat-track{height:11px;min-height:11px}.stat-data{margin-bottom:3px;font-size:10px}.stat-data strong{font-size:10px}.stat-heading{font-size:9px}}
@media(min-width:981px) and (max-height:690px){.stat-list{gap:5px}.stat-track{height:9px;min-height:9px}.stat-data{font-size:9px;line-height:1.25;margin-bottom:3px}.stat-data strong{font-size:9px}}
@media(max-width:540px){.stats-sheet .stat-track{height:15px;min-height:15px}.stats-sheet .stat-data{font-size:11px}.stats-sheet .stat-data strong{font-size:12px}.stats-sheet .stat-list{gap:12px}}
.scene-location{display:none!important}
@media(min-width:981px){.portrait-wrap.child{height:calc(100% - 275px)}.portrait-wrap.teen{height:calc(100% - 248px)}.portrait-wrap.adult{height:calc(100% - 220px)}}
@media(prefers-reduced-motion:reduce){.toolbar-item .menu-medallion,.portrait-wrap,.butler-mini,.npc-card img,.event-character,.event-daughter{animation:none!important;transition:none!important}.speaking-line:after{display:none}}

/* Game windows reserve their frame, header and tabs independently of content. */
dialog.modal-window {
  --window-height:720px;
  --window-header-height:80px;
  position:fixed;
  inset:0;
  margin:auto;
  height:min(var(--window-height),calc(100dvh - 48px));
  min-height:0;
  max-height:none;
  aspect-ratio:auto;
  overflow:hidden;
}
dialog.modal-window[open]{display:flex;flex-direction:column}
dialog.modal-window.modal-small{--window-height:640px}
dialog.modal-window.modal-wide{--window-height:760px}
.modal-window>.modal-head{
  flex:0 0 var(--window-header-height);
  height:var(--window-header-height);
  min-height:var(--window-header-height);
  max-height:var(--window-header-height);
  overflow:hidden;
}
.modal-window .modal-head h2{flex:1;min-width:0;font-size:18px;line-height:22px;letter-spacing:0}
.modal-window .modal-heading{display:block;min-width:0}
.modal-window .modal-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.modal-window .modal-head small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:14px;margin-top:4px}
.modal-window .modal-head>.icon-button{flex-shrink:0}
.modal-window>.modal-body{display:flex;flex:1 1 0;flex-direction:column;min-height:0;overflow:hidden}
.modal-window .modal-content{display:flex;flex:1 1 0;flex-direction:column;min-height:0;max-height:none;overflow:hidden}
.modal-window .modal-chrome{flex:0 0 auto;min-height:0}
.modal-window .modal-chrome>.modal-intro{height:48px;line-height:22px;margin:0 0 12px;overflow:hidden}
.modal-window .modal-chrome>.category-tabs{display:flex;height:44px;min-height:44px;max-height:44px;margin:0 0 16px;gap:4px;flex-shrink:0}
.modal-window .category-tab{display:flex;flex:1 1 0;min-width:0;align-items:center;justify-content:center;gap:6px;white-space:nowrap;height:100%;margin:0;padding:8px 10px}
.modal-window .modal-chrome>.ranking-select{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));height:38px;min-height:38px;max-height:38px;gap:5px;margin:0 0 16px}
.modal-window .rank-filter{min-width:0;padding:6px 3px;white-space:nowrap}
.modal-window .modal-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#a38755 #e0cdab}
.modal-window .modal-footer{flex:0 0 auto;padding-top:16px}
.modal-window .modal-footer>.modal-actions{margin-top:0}
.modal-window .atelier-layout{display:grid;flex:1 1 0;grid-template-rows:minmax(0,1fr);height:100%;min-height:0;overflow:hidden}
.modal-window .atelier-preview{height:100%;min-height:0;overflow:hidden}
.modal-window .atelier-choices{height:100%;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.modal-window .town-banner{flex:0 0 160px;height:160px;min-height:0}
dialog.modal-scene.event-modal{position:fixed;inset:0;margin:auto;height:min(740px,calc(100dvh - 48px));min-height:0;max-height:none;aspect-ratio:auto}
dialog.modal-scene.credits-modal{position:fixed;inset:0;margin:0;height:100dvh;min-height:0;max-height:none;aspect-ratio:auto}
@media(max-width:540px){
  dialog.modal-window{--window-header-height:88px;height:min(var(--window-height),calc(100dvh - 28px))}
  .modal-window .modal-head h2{font-size:16px;line-height:21px}
  .modal-window .modal-head small{font-size:8px;line-height:13px}
  .modal-window .modal-chrome>.modal-intro{height:40px;line-height:19px;margin-bottom:10px}
  .modal-window .category-tab{font-size:10px;gap:4px;padding:8px 4px}
  .modal-window .category-tab .icon{width:14px;height:14px}
  .modal-window .modal-chrome>.ranking-select{grid-template-columns:repeat(3,minmax(0,1fr));height:106px;min-height:106px;max-height:106px;gap:5px}
  .modal-window .rank-filter{font-size:10px}
  .modal-window .town-banner{flex-basis:124px;height:124px}
  dialog.modal-scene.event-modal{height:min(740px,calc(100dvh - 28px))}
}

/* Wardrobe and travelling counter keep their tabs and purchase controls docked. */
.modal-window .wardrobe-layout{grid-template-columns:42% 58%}
.wardrobe-side,.merchant-counter{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;padding:20px 23px;background:linear-gradient(#f2e4c4dd,#e2cca4bb)}
.wardrobe-heading{display:flex;align-items:center;justify-content:space-between;flex:0 0 30px;color:#634a29;font:12px var(--game-font);gap:8px}
.wardrobe-heading small{font:9px var(--sans);color:#8c7551;white-space:nowrap}
.wardrobe-tabs,.merchant-tabs{display:flex;flex:0 0 42px;height:42px;margin:8px 0 12px;gap:4px}
.wardrobe-tabs .category-tab,.merchant-tabs .category-tab{font-size:11px;border:1px solid #b59b69;background:#e7d2a8;color:#80623c;box-shadow:inset 0 0 0 1px #f9ebce66}
.wardrobe-tabs .category-tab.active,.merchant-tabs .category-tab.active{background:linear-gradient(#8d996b,#6c7d53);color:#fff3cd;border-color:#586a43;box-shadow:inset 0 0 0 1px #d2d8a14d}
.wardrobe-catalog,.merchant-catalog{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9b7e4c #dfcba5}
.wardrobe-catalog .outfit-grid{gap:9px;padding-right:3px;align-content:start}
.wardrobe-card{position:relative;height:207px;min-width:0;padding:9px;border-color:#b39a6b;background:linear-gradient(#f8ebd0,#e2cda4);box-shadow:inset 0 0 0 1px #fff7df77;overflow:hidden}
.wardrobe-card.active{border-color:#72814f;background:linear-gradient(#e1e4bd,#c3ce9b);box-shadow:inset 0 0 0 1px #798c5188}
.wardrobe-card .outfit-thumb{height:145px;margin-bottom:6px;background:radial-gradient(ellipse,#fff9e980,transparent 72%)}
.wardrobe-card .outfit-thumb img{height:145px;width:auto;max-width:100%;object-fit:contain;object-position:center}
.wardrobe-card h3{font:11px/1.5 var(--game-font);height:19px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.wardrobe-card small{font:9px/1.6 var(--sans);color:#7b734d;margin-top:4px}
.wardrobe-description{position:absolute;bottom:17px;left:16px;right:16px;z-index:3;padding:9px 12px;background:#f9edceea;border:1px solid #ad9563;color:#7a6240;font-size:10px;line-height:1.8;text-align:center;box-shadow:0 2px 8px #4e361c33}
.wardrobe-purchase{flex:0 0 134px;min-height:134px;border-top:1px solid #bda272;margin-top:12px;padding-top:4px}
.wardrobe-purchase .purchase-line{margin:10px 0 10px;font-size:10px;gap:10px}
.wardrobe-purchase .purchase-line strong{font:14px var(--game-font);white-space:nowrap}
.wardrobe-purchase>.primary-button{width:100%;min-height:43px;font-size:12px;padding:10px}
.wardrobe-purchase .form-note{margin-top:8px;font-size:9px;line-height:1.7;height:31px;overflow:hidden;color:#8e7750}
.merchant-layout{display:grid;grid-template-columns:35% 65%;flex:1 1 0;min-height:0;height:100%;overflow:hidden}
.merchant-scene{position:relative;min-width:0;min-height:0;overflow:hidden;background:#6f6047;border-right:2px solid #9c7a45;isolation:isolate}
.merchant-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:30% 50%;z-index:-2;filter:brightness(.83)}
.merchant-scene:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#31221528,transparent 40%,#2c201566)}
.merchant-sign{position:absolute;top:22px;left:20px;right:20px;text-align:center;color:#fff0c4;text-shadow:0 2px 2px #3c241a}
.merchant-sign>span{font:10px var(--sans);letter-spacing:1px}
.merchant-sign>h3{font:24px var(--game-font);margin-top:10px}
.merchant-person{position:absolute;bottom:77px;left:50%;transform:translateX(-50%);height:75%;width:auto;max-width:118%;object-fit:contain;object-position:bottom;filter:drop-shadow(5px 8px 4px #2b1b1580)}
.merchant-words{position:absolute;bottom:20px;left:16px;right:16px;min-height:126px;padding:17px 16px 13px;background:#f4e2bedf;border:1px solid #b39662;box-shadow:inset 0 0 0 2px #efd5a470,0 3px 12px #2e211555;color:#6c4c2e;backdrop-filter:blur(3px)}
.merchant-words>b{font:12px var(--game-font);color:#745330}
.merchant-words>p{font-size:11px;line-height:2.0;margin-top:7px;word-break:keep-all}
.merchant-letter{position:absolute;top:29%;left:10%;right:10%;padding:28px 18px;background:#f1e2bfed;border:1px solid #b59a66;color:#7e6342;font:15px/2.1 var(--game-font);text-align:center;box-shadow:0 5px 14px #271b1a55;transform:rotate(-3deg)}
.merchant-letter small{display:block;font:10px var(--sans);margin-top:20px}
.merchant-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 25px;min-width:0}
.merchant-heading>strong{font:13px var(--game-font);color:#725331}
.merchant-heading>span{font:10px var(--sans);color:#90734a;white-space:nowrap}
.merchant-calendar{flex:0 0 23px;font:10px/23px var(--sans);color:#8c774d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.merchant-stock{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-right:3px;align-content:start}
.merchant-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;height:242px;padding:24px 10px 12px;border:1px solid #b49a67;background:linear-gradient(#f7e9cd,#dfc69b);box-shadow:inset 0 0 0 1px #fff6dc88;color:#71522e}
.merchant-item.active{border-color:#718047;background:linear-gradient(#e9e9c7,#c7d09d);box-shadow:inset 0 0 0 2px #7a8c5380}
.merchant-stock-label{position:absolute;top:7px;left:8px;right:8px;font:8px var(--sans);color:#8c7651;text-align:center}
.merchant-item>img{width:100%;height:155px;object-fit:contain;filter:drop-shadow(0 3px 3px #65422020)}
.merchant-item>h3{font:11px/1.6 var(--game-font);margin:8px 0 5px;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.merchant-item>strong{font:11px var(--game-font);color:#9c703a}
.merchant-item.sold-out{filter:saturate(.58)}
.merchant-purchase{flex:0 0 166px;min-height:166px;border-top:1px solid #b69b6d;margin-top:12px;padding-top:10px}
.merchant-purchase>h3{height:23px;font:13px/23px var(--game-font);color:#765630;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.merchant-purchase>p{height:34px;font:10px/1.7 var(--sans);color:#8a7450;margin:3px 0 9px;overflow:hidden}
.merchant-purchase>.primary-button{width:100%;min-height:44px;font-size:12px;padding:10px}
.merchant-links{display:flex;justify-content:space-between;gap:8px;padding-top:9px}
.merchant-links .text-button{font-size:9px;color:#8e7350}
.merchant-empty{display:flex;min-height:100%;align-items:center;justify-content:center;flex-direction:column;padding:20px 14px;color:#9b8058;text-align:center;gap:14px}
.merchant-empty>h3{font:15px var(--game-font);color:#876841}
.merchant-empty>p{font-size:11px;line-height:2}
.town-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}
.town-services>button{display:flex;align-items:center;gap:12px;text-align:left;padding:14px 17px;background:linear-gradient(#f5e5c1,#dbc297);border:1px solid #b19560;box-shadow:inset 0 0 0 1px #fff1c977;color:#79572f}
.town-services>button.visiting{background:linear-gradient(#e9e6bd,#becb98);border-color:#8a9560}
.town-services>button>span{font:12px var(--game-font);line-height:1.6}
.town-services small{display:block;font:9px/1.7 var(--sans);color:#8e7851;margin-top:3px}
.toolbar-item .visitor-badge{display:block;position:absolute;top:1px;right:4%;padding:3px 5px;background:#7e4b30;border:1px solid #c6a266;color:#fff0c6;font:7px var(--game-font);white-space:nowrap;box-shadow:0 2px 5px #2b1e1a55}
@media(max-width:680px){
  .modal-window .wardrobe-layout{grid-template-columns:1fr;grid-template-rows:204px minmax(0,1fr)}
  .wardrobe-layout .atelier-preview{border-right:0;border-bottom:1px solid #a98b58}
  .wardrobe-layout .atelier-preview canvas{height:198px;bottom:0}
  .wardrobe-layout .atelier-preview .preview-label{top:12px;left:12px;font-size:9px;max-width:44%;line-height:1.8}
  .wardrobe-description{left:auto;right:12px;bottom:12px;width:34%;padding:7px;font-size:8px;line-height:1.7}
  .wardrobe-side{padding:10px 14px}
  .wardrobe-heading{flex-basis:24px;font-size:10px}
  .wardrobe-heading small{font-size:8px}
  .wardrobe-tabs,.merchant-tabs{height:37px;flex-basis:37px;margin:5px 0 8px}
  .wardrobe-tabs .category-tab,.merchant-tabs .category-tab{font-size:9px}
  .wardrobe-card{height:171px;padding:6px}
  .wardrobe-card .outfit-thumb,.wardrobe-card .outfit-thumb img{height:117px}
  .wardrobe-card h3{font-size:9px;height:18px}
  .wardrobe-card small{font-size:8px;margin-top:2px}
  .wardrobe-purchase{flex-basis:119px;min-height:119px;margin-top:8px}
  .wardrobe-purchase .purchase-line{margin:8px 0;font-size:9px}
  .wardrobe-purchase .purchase-line strong{font-size:12px}
  .wardrobe-purchase>.primary-button{font-size:11px;min-height:39px}
  .wardrobe-purchase .form-note{font-size:8px;line-height:1.6;height:27px;margin-top:6px}
  .merchant-layout{grid-template-columns:1fr;grid-template-rows:126px minmax(0,1fr)}
  .merchant-scene{border-right:0;border-bottom:1px solid #a98b58}
  .merchant-backdrop{object-position:50% 56%}
  .merchant-person{height:158px;bottom:-25px;left:24%;max-width:46%}
  .merchant-sign{display:none}
  .merchant-sign>span{font-size:7px;letter-spacing:0}
  .merchant-sign>h3{font-size:15px;margin-top:5px}
  .merchant-words{left:42%;right:11px;bottom:10px;min-height:0;height:104px;padding:10px 11px}
  .merchant-words>b{font-size:10px}
  .merchant-words>p{font-size:9px;line-height:1.8;margin-top:5px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  .merchant-letter{top:14px;left:8%;right:auto;width:30%;padding:12px 6px;font-size:9px;line-height:1.6}
  .merchant-letter small{font-size:7px;margin-top:6px}
  .merchant-counter{padding:10px 14px}
  .merchant-heading{flex-basis:21px}
  .merchant-heading>strong{font-size:10px}
  .merchant-heading>span{font-size:9px}
  .merchant-calendar{font-size:8px;flex-basis:20px;line-height:20px}
  .merchant-item{height:204px;padding:23px 7px 9px}
  .merchant-item>img{height:122px}
  .merchant-item>h3{font-size:9px;margin:6px 0 5px}
  .merchant-item>strong{font-size:10px}
  .merchant-stock-label{font-size:7px}
  .merchant-purchase{flex-basis:148px;min-height:148px;margin-top:8px;padding-top:7px}
  .merchant-purchase>h3{height:20px;font-size:11px;line-height:20px}
  .merchant-purchase>p{font-size:9px;height:30px;margin:3px 0 7px}
  .merchant-purchase>.primary-button{font-size:11px;min-height:39px}
  .merchant-links{padding-top:8px}
  .merchant-links .text-button{font-size:8px}
  .town-services{gap:7px}
  .town-services>button{padding:11px 10px;gap:7px}
  .town-services>button>.icon{width:18px;height:18px;flex-shrink:0}
  .town-services>button>span{font-size:10px}
  .town-services small{font-size:8px}
  .toolbar-item .visitor-badge{display:block;top:0;right:0;font-size:6px;padding:2px 3px}
}
/* Coupon gifts use the same fixed game window and wardrobe frame. */
.coupon-gift{text-align:center;padding:3px 10px 10px;color:#6e4d2c}
.coupon-seal{display:block;font:10px var(--game-font);color:#997843;letter-spacing:.5px}
.coupon-gift>img{display:block;width:190px;height:83px;object-fit:contain;margin:16px auto 10px;filter:drop-shadow(0 3px 3px #65451b33)}
.coupon-gift>h3{font:19px var(--game-font);margin:10px 0 9px;color:#8d3d4c}
.coupon-gift>p{font:11px var(--sans);line-height:1.8;max-width:300px;min-height:40px;margin:0 auto}
.coupon-form{margin:15px auto 0;max-width:360px;width:100%}
.coupon-form input{text-transform:uppercase;letter-spacing:1px;width:100%;min-width:0}
.coupon-form .form-field{height:78px;min-height:78px;box-sizing:border-box}
.coupon-form .form-field input{height:46px;min-height:46px;max-height:46px;box-sizing:border-box}
.coupon-form input[aria-invalid=true]{outline:2px solid #ae554e;outline-offset:1px}
.coupon-form input:disabled{opacity:.55}
.coupon-message{height:48px;margin:10px 0;font:10px var(--sans);line-height:18px;color:#856a45;overflow:hidden}
.coupon-message.error{color:#9c3e36;font-weight:700}.coupon-message.received{color:#546c3c;font-weight:700}
.coupon-form>.primary-button{display:flex;align-items:center;width:100%;height:48px;min-height:48px;justify-content:center}
.coupon-footnote{text-align:center;font:10px var(--sans);line-height:1.8;color:#856a45;margin:16px 0 0}
.wardrobe-tabs .category-tab{padding-left:5px;padding-right:5px}
.accessory-thumb{height:150px;display:flex;align-items:center;justify-content:center;padding:14px;color:#a28a5b}
.accessory-thumb>img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 3px #65451b22)}
.accessory-card>small{display:block;line-height:1.6;min-height:30px}
@media(max-width:600px){.coupon-gift>img{height:68px;margin-top:10px}.coupon-gift>h3{font-size:17px}.accessory-thumb{height:95px}.coupon-form{margin-top:10px}}

/* The first page opens at the girl's portrait and her name, before a save exists. */
.entry-shell{position:fixed;inset:0;width:100vw;height:100dvh}
.entry-scene{position:absolute;inset:0;min-height:0;overflow:hidden}
.entry-scene>.scene-background{z-index:0}
.naming-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1fr);flex:1;min-height:0;overflow:hidden}
.naming-scene{position:relative;min-height:0;overflow:hidden;border-right:2px solid #9b7f4c;isolation:isolate}
.naming-scene>.scene-background{z-index:-1;object-position:48% center}
.naming-portrait{position:absolute;height:calc(100% - 34px);max-width:100%;width:auto;bottom:15px;left:50%;transform:translateX(-50%);object-fit:contain;filter:drop-shadow(0 5px 5px #402e2540)}
.naming-caption{position:absolute;bottom:22px;left:20px;right:20px;padding:12px 16px;text-align:center;background:#f7e9cbeb;border:1px solid #ad8a52;box-shadow:inset 0 0 0 2px #fff4;color:#6d4f2c}
.naming-caption b{display:block;font:21px var(--game-font);line-height:1.5;overflow-wrap:anywhere}
.naming-caption small{display:flex;gap:10px;justify-content:center;font:10px var(--sans);line-height:1.8;color:#987b50;margin-top:3px}
.naming-content{min-width:0;min-height:0;padding:30px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#a38755 #e0cdab}
#new-story-form{display:flex;flex-direction:column;min-height:100%;gap:0}
#new-story-form>.modal-intro{margin:0 0 26px;font-size:12px;line-height:2;word-break:normal}
#new-story-form .form-fields{gap:22px}
#new-story-form>.form-note{margin:22px 0;font-size:10px;line-height:1.9}
.naming-actions{display:flex;flex-direction:column;gap:9px;margin-top:auto;padding-top:16px;flex-shrink:0}
.naming-actions>.primary-button{width:100%;font-size:14px;line-height:1.6}
.naming-import{display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px}
@media(max-width:600px){
  .naming-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:clamp(150px,28dvh,240px) minmax(0,1fr)}
  .naming-scene{border-right:0;border-bottom:2px solid #9b7f4c}
  .naming-portrait{height:390px;max-width:none;width:234px;top:-8px;bottom:auto;left:36%}
  .naming-caption{bottom:15px;left:auto;right:15px;width:44%;padding:9px 10px}
  .naming-caption b{font-size:17px}
  .naming-caption small{gap:7px;font-size:8px}
  .naming-content{padding:18px 21px}
  #new-story-form>.modal-intro{font-size:10px;line-height:1.9;margin-bottom:16px}
  #new-story-form .form-fields{gap:14px}
  #new-story-form>.form-note{margin:14px 0;font-size:9px;line-height:1.8}
  .naming-actions{padding-top:6px;gap:6px}
  .naming-actions>.primary-button{font-size:12px}
  .naming-import{font-size:9px;padding:3px 0}
}

/* Money stays in the window frame while each shop's catalogue scrolls. */
.shop-window .modal-head{gap:16px}
.shop-wallet{flex:0 0 auto;min-width:145px;max-width:48%;padding:7px 14px 8px;background:linear-gradient(#2e241ce6,#1d1c14ed);border:1px solid #b79654;box-shadow:inset 0 0 0 2px #dcc38d22,0 2px 5px #1b100b66;color:#fff0b8}
.shop-wallet-label{display:flex;align-items:center;justify-content:flex-end;gap:6px;font:11px/1.35 var(--sans);color:#e7ce91;white-space:nowrap}
.shop-wallet-label>.icon{color:#eed38a;flex-shrink:0}
.shop-wallet-amount{display:flex;justify-content:flex-end;align-items:baseline;gap:7px;white-space:nowrap;margin-top:3px}
.shop-wallet-amount>strong{font:26px/1 var(--game-font);font-variant-numeric:tabular-nums;color:#ffe8a2;text-shadow:0 1px 1px #000}
.shop-wallet-amount>span{font:11px var(--sans);color:#efdbac}
.shop-window .shop-price{display:inline-block;font:22px/1.25 var(--game-font);font-variant-numeric:tabular-nums;color:#68421b;white-space:nowrap;text-shadow:0 1px #fff8}
.shop-window .shop-price>small{display:inline;font:11px var(--sans);color:#79562d;vertical-align:baseline;margin-left:2px}
.shop-window .purchase-line{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:35px;margin:7px 0 9px;font:12px/1.5 var(--sans);color:#75532b}
.shop-window .purchase-line>span{min-width:0}
.shop-window .purchase-line>strong{font:28px/1.2 var(--game-font);color:#68421b;white-space:nowrap}
.shop-window .wardrobe-card{height:225px}
.shop-window .wardrobe-card>.shop-price{display:block;margin-top:4px;font-size:20px}
.shop-window .wardrobe-card>small{font-size:11px;line-height:1.5}
.shop-window .wardrobe-purchase{flex-basis:147px;min-height:147px}
.shop-window .merchant-item{height:244px}
.shop-window .merchant-item>.shop-price{font-size:21px;line-height:1.3}
.shop-window .merchant-purchase{flex-basis:207px;min-height:207px}
.shop-window .merchant-purchase .purchase-line{margin:4px 0 8px;min-height:32px}
.shop-window .merchant-purchase .purchase-line>strong{font-size:26px}
.shop-window .gift-option>.shop-price{font-size:24px;margin-top:12px}
.shop-window .choice-heading>small{font:13px/1.5 var(--sans);color:#68421b}
.modal-window .atelier-choices.salon-side{display:flex;flex-direction:column;overflow:hidden}
.salon-catalog{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin}
.salon-purchase{flex:0 0 112px;min-height:112px;border-top:1px solid #b69b6d;padding-top:8px;margin-top:12px}
.salon-purchase>.primary-button{width:100%;min-height:44px}
@media(max-width:680px){
  .shop-window .modal-head{gap:9px}
  .shop-window .modal-head h2>.icon{display:none}
  .shop-window .modal-head h2 small{display:none}
  .shop-wallet{min-width:113px;padding:7px 9px;max-width:48%}
  .shop-wallet-label{font-size:9px;gap:4px}
  .shop-wallet-label>.icon{width:14px;height:14px}
  .shop-wallet-amount{gap:5px;margin-top:4px}
  .shop-wallet-amount>strong{font-size:23px}
  .shop-wallet-amount>span{font-size:10px}
  .shop-window .shop-price{font-size:20px}
  .shop-window .shop-price>small{font-size:10px}
  .shop-window .purchase-line{font-size:10px;min-height:30px;gap:8px}
  .shop-window .purchase-line>strong{font-size:24px}
  .shop-window .wardrobe-card{height:188px}
  .shop-window .wardrobe-card>.shop-price{font-size:19px;margin-top:3px}
  .shop-window .wardrobe-card>small{font-size:9px}
  .shop-window .wardrobe-purchase{flex-basis:130px;min-height:130px}
  .shop-window .merchant-item{height:222px}
  .shop-window .merchant-item>.shop-price{font-size:20px}
  .shop-window .merchant-purchase{flex-basis:189px;min-height:189px}
  .shop-window .merchant-purchase .purchase-line>strong{font-size:24px}
  .shop-window .gift-option>.shop-price{font-size:22px}
  .shop-window .choice-heading>small{font-size:11px}
  .salon-purchase{flex-basis:110px;min-height:110px}
  .salon-purchase>.primary-button{font-size:11px}
}

@media (max-width: 980px) and (pointer: coarse) {
  .game-shell { --safe-top: env(safe-area-inset-top); --safe-bottom: env(safe-area-inset-bottom); }
  .game-shell .topbar { height: calc(52px + var(--safe-top)); min-height: 0; padding-top: var(--safe-top); }
  .top-actions .icon-button, .modal-window .modal-head > .icon-button { width: 42px; height: 44px; }
  .compact-controls { top: calc(56px + var(--safe-top)); }
  .compact-hud-button { min-height: 40px; font-size: 11px; }
  .scene-season { top: calc(62px + var(--safe-top)); }
  .toolbar { bottom: calc(6px + var(--safe-bottom)); }
  .compact-start { bottom: calc(89px + var(--safe-bottom)); }
  .compact-start .primary-button { min-height: 44px; }
  .dialogue-strip { bottom: calc(145px + var(--safe-bottom)); }
  .form-field input, .coupon-form input { font-size: 16px; }
  .naming-import { min-height: 40px; }
  .naming-actions > .primary-button { min-height: 44px; }
  dialog.modal-window { --window-header-height: 64px; }
  .modal-window .modal-head { gap: 6px; padding-inline: 8px; }
  .modal-window .modal-head h2 > .icon { flex: 0 0 19px; width: 19px; height: 19px; }
  .modal-window .modal-head small { font-size: 10px; }
  .modal-window .modal-scroll, .naming-content { touch-action: pan-y; }
  .modal-window .modal-chrome > .category-tabs { gap: 2px; }
  .modal-window .category-tab { white-space: normal; line-height: 1.2; min-height: 44px; }
}

@media (max-width: 980px) and (max-height: 540px) and (orientation: landscape) and (pointer: coarse) {
  .game-shell .toolbar { height: 58px; min-height: 58px; padding-block: 1px; }
  .game-shell .toolbar-item { height: 52px; font-size: 9px; }
  .game-shell .toolbar-item .menu-medallion { width: 29px; height: 29px; }
  .game-shell .compact-start { bottom: calc(70px + var(--safe-bottom)); left: 12px; width: min(44%,260px); transform: none; }
  .game-shell .dialogue-strip {
    left: auto; right: 12px; bottom: calc(70px + var(--safe-bottom)); max-width: 49%; max-height: 40%;
    min-height: 0; padding: 13px 11px 11px 60px; overflow-y: auto; touch-action: pan-y;
  }
  .game-shell .butler-mini { width: 52px; height: 88px; left: 5px; bottom: 2px; }
  .game-shell .dialogue-text { font-size: 11px; }
  .game-shell .portrait-wrap { left: 1%; width: 57%; height: calc(100% - 116px); bottom: calc(76px + var(--safe-bottom)); }
  .game-shell .daughter-note { bottom: calc(128px + var(--safe-bottom)); }
  dialog.modal-window { --window-header-height: 52px; height: min(var(--window-height),calc(100dvh - 16px)); }
  .modal-window .modal-head h2 { line-height: 1.15; }
  .modal-window .modal-chrome > .modal-intro { height: auto; margin-bottom: 6px; }
  .modal-window .modal-chrome > .category-tabs { margin-bottom: 5px; }
  .modal-window .modal-footer { padding-top: 6px; }
  .modal-window .wardrobe-layout { grid-template: minmax(0,1fr) / minmax(0,36%) minmax(0,1fr); }
  .wardrobe-layout .atelier-preview { border-right: 1px solid #a98b58; border-bottom: 0; }
  .wardrobe-layout .atelier-preview canvas { height: min(100%,220px); }
  .naming-content { padding: 10px 13px; }
  #new-story-form .form-fields { gap: 8px; }
  #new-story-form > .form-note { margin: 7px 0; }
  .naming-actions { padding-top: 3px; gap: 3px; }
}

dialog.modal-window.keyboard-visible {
  --window-header-height: 48px;
  top: calc(var(--keyboard-top) + 6px); bottom: auto; margin-block: 0;
  height: calc(var(--keyboard-height) - 12px);
}
.keyboard-visible .naming-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
.keyboard-visible .naming-scene { display: none; }
.keyboard-visible .naming-content { padding: 8px 12px; }
