:root{--paper:#fff8ee;--white:#fffdf5;--ink:#704f3a;--muted:#a38b72;--green:#62866a;--sage:#f0f1d6;--gold:#c99855;--line:#e7cda746;--pink:#ffdcca;--shadow:0 14px 40px #7e4c2514;background:#f8e9d0;color:var(--ink)}
body{background:#f9ecd7}.game-world{min-height:100dvh;padding-bottom:105px;isolation:isolate}.world-background{position:fixed;inset:-15px;z-index:-2;background:#f9ecd7 url('assets/scene.jpg') center/cover no-repeat;filter:blur(7px);transform:scale(1.025)}.world-background:after{content:"";position:absolute;inset:0;background:#fff6e5c4}.in-scene .world-background{filter:blur(0)}.in-scene .world-background:after{background:linear-gradient(0deg,#f7ecd8f0,#fff9e8c4 32%,#fff7e1a3)}.game-header{position:relative;z-index:5;max-width:1440px;margin:auto;padding:24px 38px 8px;display:flex;align-items:center;justify-content:space-between;gap:25px}.game-brand{font-family:Georgia,serif;font-size:46px;font-style:italic;line-height:.9;color:#82603e;letter-spacing:-2.6px;white-space:nowrap;text-shadow:0 1px #fff}.game-brand span{font-family:inherit;font-style:normal;display:block;letter-spacing:2.6px;font-size:7px;margin:12px 0 0 5px;color:#ad9166}.game-header .stats{margin:0;display:flex;gap:11px}.game-header .stat{position:relative;min-width:120px;border:1px solid #fffcddc4;border-radius:100px;background:#fff9e3b8;box-shadow:0 3px 15px #9c733218;backdrop-filter:blur(12px);padding:10px 19px 11px;display:flex;align-items:center;gap:12px}.game-header .stat-top{font-size:0;margin:0}.game-header .stat-top svg{width:24px;height:24px;stroke-width:1.4;color:#c79a54;filter:drop-shadow(0 2px 1px #f2d998)}.game-header .stat:nth-child(1) .stat-top svg{fill:#ffdda1;stroke:#b68540}.game-header .stat:nth-child(4) .stat-top svg{fill:#f7b6a0;stroke:#c28469}.game-header .stat-value{font-size:18px;color:#89643f}.game-header .stat-value small{font-size:10px;color:#b39b75}.game-header .mini-bar{position:absolute;left:53px;right:19px;bottom:7px;height:2px;background:#d8c7a14f}.game-header .mini-bar span{background:#c5a15e}.game-profile{padding:0;background:#fff7da;border:3px solid #fff8e0;border-radius:50%;height:48px;width:48px;box-shadow:0 5px 15px #9b74302b;overflow:hidden;flex-shrink:0}.game-profile img{width:100%;height:100%;object-fit:cover;object-position:33% 35%;transform:scale(2)}.world-page{max-width:1440px;margin:auto}.living-scene{position:relative;min-height:710px;height:calc(100dvh - 185px);max-height:1050px;overflow:hidden;margin:0 25px;border-radius:35px;isolation:isolate;--px:0px;--py:0px}.scene-depth{position:absolute;inset:-25px;background:#cba878 url('assets/scene.jpg') center/cover no-repeat;transform:translate(calc(var(--px)*-.5),calc(var(--py)*-.5)) scale(1.035);transition:transform .7s ease-out;z-index:-4}.living-scene:before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#fff6deeb 0%,#fff4dfc9 20%,#fff7e651 46%,transparent 67%),linear-gradient(0deg,#fff2d8e6 0%,transparent 40%)}.living-scene:after{content:"";position:absolute;inset:0;z-index:7;border:1px solid #fff3ce99;border-radius:35px;box-shadow:inset 0 0 70px #fff1d45e;pointer-events:none}.scene-location{position:absolute;top:24px;left:32px;font-size:11px;display:flex;align-items:center;gap:8px;color:#9c774f;z-index:2}.scene-location svg{color:#a58255;width:17px}.scene-location span{color:#ac9574;font-size:10px}.story-cloud{position:absolute;top:20%;left:6%;width:45%;z-index:3;animation:cloudEnter 1s cubic-bezier(.2,.8,.2,1) both}.story-cloud .eyebrow{color:#ba9761;letter-spacing:2.6px;font-size:9px}.story-cloud h2{font-size:clamp(38px,4.1vw,62px);line-height:1.08;color:#865a39;letter-spacing:-1.7px;margin:19px 0 22px;text-shadow:0 1px 0 #fff7e7,0 5px 25px #fff5d8}.story-cloud h2 em{font-family:Georgia,serif;font-weight:400;color:#ac7750}.story-cloud p{font-size:13px;line-height:1.95;color:#99744f;text-shadow:0 1px #fff5df}.story-start{position:relative;background:linear-gradient(#e9a68b,#d68d76);border-radius:35px;padding:16px 28px;font-size:13px;box-shadow:0 5px 0 #be7c6242,0 10px 30px #bd795b24;border:1px solid #fce0bd;color:#fffaf0;margin-top:26px;text-shadow:0 1px #be8063}.story-start:hover{background:linear-gradient(#efb296,#df987e);transform:translateY(-2px);box-shadow:0 7px 0 #be7c6242,0 14px 30px #bd795b24}.handwritten{font-family:Georgia,serif;font-size:17px;font-style:italic;color:#ba9362;margin:23px 0 0 10px;transform:rotate(-4deg);letter-spacing:-.2px}.heroine{position:absolute;right:4%;bottom:9%;width:46%;height:91%;padding:0;display:flex;align-items:flex-end;justify-content:center;border:0;background:transparent;z-index:1;transform:translate(calc(var(--px)*1.1),calc(var(--py)*.4));transition:transform .9s ease-out;isolation:isolate;animation:characterEnter 1.4s cubic-bezier(.2,.7,.2,1) both}.heroine>img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(8px 12px 14px #71472628);transform-origin:50% 95%;animation:characterIdle 5.8s ease-in-out infinite;pointer-events:none}.heroine:hover>img{filter:drop-shadow(8px 12px 14px #71472630) brightness(1.025)}.character-shadow{position:absolute;left:20%;right:15%;bottom:1%;height:8%;border-radius:50%;background:#805d3630;filter:blur(15px);z-index:-1;animation:shadowBreathe 5.8s ease-in-out infinite}.heroine-hint{position:absolute;bottom:23%;right:16%;background:#fff8e9df;border:1px solid #fffdf1c4;border-radius:25px;padding:9px 16px;color:#9a714e;font-family:Georgia,serif;font-size:14px;display:flex;align-items:center;gap:7px;box-shadow:0 5px 15px #8c52251a;animation:memoryFloat 6s ease-in-out infinite}.heroine-hint svg{width:12px;height:12px;color:#d89b80;fill:#f4c4ac}.heroine.greet>img{animation:characterGreet 1.2s ease-in-out,characterIdle 5.8s ease-in-out 1.2s infinite}.character-speech{position:absolute;top:25%;left:0;max-width:205px;min-width:150px;transform:translateY(10px) scale(.9);opacity:0;background:#fffceef5;border-radius:23px 23px 5px 23px;color:#a0774e;padding:17px 20px;font-size:12px;line-height:1.6;box-shadow:0 8px 30px #9164321f;pointer-events:none;transition:.35s}.character-speech.shown{transform:translateY(0) scale(1);opacity:1}.floating-memory{position:absolute;right:32px;top:25px;display:flex;align-items:center;gap:10px;background:#fff9e9e8;padding:14px 16px 12px;border-radius:5px 20px 9px 18px;box-shadow:0 6px 25px #6f482219;transform:rotate(4deg);z-index:3;text-align:left;font-family:Georgia,serif;font-style:italic;color:#a77f55;font-size:14px;line-height:1.5;animation:memoryFloat 7s ease-in-out infinite}.floating-memory:before{content:"";position:absolute;top:-6px;width:60px;height:14px;background:#e8cb8b75;left:35%;transform:rotate(-9deg)}.memory-heart{color:#cf9c7c}.memory-heart svg{fill:#e8ba9566;width:17px}.floating-memory b{font-weight:400;font-size:19px}.memory-photo{height:57px;width:57px;border:4px solid #fffdf4;box-shadow:0 3px 5px #8d603522;overflow:hidden;transform:rotate(-6deg);border-radius:3px}.memory-photo img{width:100%;height:100%;object-fit:cover;object-position:center 20%;transform:scale(1.3)}.scene-actions{position:absolute;bottom:13px;left:5%;right:5%;z-index:5}.scene-actions-caption{font-family:Georgia,serif;font-style:italic;color:#a37d54;font-size:16px;display:flex;align-items:center;gap:8px;margin:0 0 18px 5px;text-shadow:0 1px 7px #fff3d5}.scene-actions-caption svg{width:15px;height:15px;color:#d1a45c}.scene-actions .actions{display:flex;gap:16px;max-width:800px}.scene-actions .action-card{background:linear-gradient(145deg,#fffdf1f2,#fff5dce6);border:1px solid #fffbed;backdrop-filter:blur(12px);border-radius:22px 19px 25px 17px;box-shadow:0 7px 20px #8b5a2412;min-height:112px;flex:1;min-width:0;padding:17px 15px 14px;transition:transform .3s,box-shadow .3s;overflow:visible}.scene-actions .action-card:nth-child(2){transform:rotate(-1.3deg);border-radius:19px 24px 18px 23px}.scene-actions .action-card:nth-child(3){transform:rotate(1deg)}.scene-actions .action-card:nth-child(4){transform:rotate(-.7deg)}.scene-actions .action-card:hover{transform:translateY(-7px) rotate(-1deg);box-shadow:0 12px 28px #92653128}.scene-actions .icon-box{position:absolute;right:13px;top:-17px;box-shadow:0 3px 12px #b08e3e1a;width:41px;height:41px;border:2px solid #fff8e4;border-radius:15px;transform:rotate(8deg);color:#bb8b49;background:#fae3b4}.scene-actions .action-card:nth-child(2) .icon-box{background:#ffdcd0;color:#cc9680}.scene-actions .action-card:nth-child(3) .icon-box{background:#eaddf3;color:#a894b7}.scene-actions .action-card:nth-child(4) .icon-box{background:#e4edcb;color:#9cac72}.scene-actions .action-arrow{display:none}.scene-actions h3{font-size:22px;margin:3px 0 6px;color:#92704c}.scene-actions p{font-size:10px;color:#baa17e;white-space:nowrap}.scene-actions .cost{font-size:8px;left:15px;bottom:12px;color:#b7996a}.scene-actions .end-row{max-width:800px;border:0;margin:8px 0 0;padding:9px 0 0}.scene-actions .save-hint{color:#ab9574;font-size:9px}.end-button{color:#9b7654;font-size:11px}.floor-glow{position:absolute;bottom:-5%;left:-10%;right:-10%;height:30%;background:linear-gradient(0deg,#f8e9d4f0,#fff3d600);z-index:0;pointer-events:none}.sunlight{position:absolute;inset:-30%;z-index:-1;pointer-events:none;background:linear-gradient(114deg,transparent 48%,#fff9da24 50%,#fff9da07 56%,transparent 59%);animation:sunDrift 17s ease-in-out infinite}.scene-sparkles{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}.scene-sparkles i{position:absolute;left:var(--x);top:var(--y);width:3px;height:3px;background:#fff4bd;border-radius:50%;box-shadow:0 0 6px 2px #ffecab90;opacity:0;animation:dustFloat var(--duration) ease-in-out var(--delay) infinite}.scene-sparkles i:nth-child(3n){width:5px;height:5px;filter:blur(.6px)}.game-nav{position:fixed;z-index:15;bottom:19px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;padding:9px 18px 8px;border:1px solid #fff9e4;background:#fff9e7e8;backdrop-filter:blur(15px);border-radius:35px;box-shadow:0 9px 30px #8f623c19}.game-nav button{min-width:75px;display:flex;gap:8px;align-items:center;justify-content:center;padding:11px 13px;background:none;color:#b39873;border-radius:25px;font-size:11px;white-space:nowrap;transition:.25s}.game-nav button svg{width:18px;height:18px;stroke-width:1.5}.game-nav button.active{background:#eadfc4;color:#937043;box-shadow:inset 0 1px 2px #b8a57b19}.game-nav button:hover{background:#f1e6cd;transform:translateY(-2px)}.game-day-label{position:absolute;top:109px;right:65px;z-index:6;font-family:Georgia,serif;font-style:italic;font-size:11px;color:#b19161}.game-day-label span{opacity:.65}.in-scene .game-day-label{display:none}.storybook{position:relative;max-width:1100px;margin:30px auto 0;padding:35px 50px 45px;background:#fffaf0e8;backdrop-filter:blur(16px);border-radius:8px 45px 13px 38px;border:1px solid #fffaf0;box-shadow:0 20px 60px #9a6b3421;animation:bookEnter .6s ease-out both}.book-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.book-top button svg{transform:rotate(180deg)}.text-link{color:#ab8357}.page-title{font-size:42px;color:#966d47;letter-spacing:-1px}.page-intro{font-size:13px;line-height:1.9;color:#af9576;max-width:750px}.person{background:#fffcf5d6;border:1px solid #eddbb080;box-shadow:0 7px 20px #a6752f0a;border-radius:35px 22px 29px 16px;animation:personEnter .8s ease-out both}.person:nth-child(2){animation-delay:.1s}.person:nth-child(3){animation-delay:.2s}.person:nth-child(4){animation-delay:.3s}.people-grid{gap:25px}.person>img{height:300px;object-position:center 30%;border-radius:30px 20px 45% 8%;transition:transform 1s ease;animation:portraitBreathe 10s ease-in-out infinite}.person:nth-child(2)>img{animation-delay:-3s}.person:nth-child(3)>img{animation-delay:-6s}.person .person-copy{position:relative;padding:24px 27px 29px;background:#fffcf5ed;z-index:1}.person h3{font-size:29px;color:#9c7553}.person .role{font-size:8px;letter-spacing:1.6px;color:#c6a16f;margin:7px 0 15px}.person p{font-size:12px;color:#b09574;line-height:1.8}.person .relation{color:#b49d7e}.person .mini-bar{background:#f0e6d0}.person .mini-bar span{background:#c6c693}.soft-card{background:#f4eddbab;border:1px solid #fff7e7;border-radius:28px 18px 30px 17px;padding:28px}.soft-card h3{font-size:26px;color:#a47a50}.soft-card p{color:#af9470;font-size:12px}.btn{border-radius:24px;background:#9ab19a;color:#fffdf5;box-shadow:0 3px 8px #7e9a7920;padding:13px 23px}.btn:hover{background:#89a58b}.btn.outline{border:1px solid #dcc6a080;color:#ab8556;background:#fff8e987}.btn.ghost{background:#f4ead6;color:#b49870}.btn.story-start{background:linear-gradient(#e9a68b,#d68d76);color:#fffaf0;box-shadow:0 5px 0 #be7c6242,0 10px 30px #bd795b24;padding:16px 28px;border:1px solid #fce0bd}.metrics{gap:20px;margin:27px 0}.metric{border:0;border-radius:25px;background:#f7eedb86;padding:23px}.metric label{color:#bea27b}.metric strong{color:#a17a4e}.metric small{color:#bba181}.panel{background:#fffaf0ba;border:1px solid #ead6af60;border-radius:30px;padding:29px}.list-row{background:#fffaf0b0;border:1px solid #e7d5b040;border-radius:20px;padding:21px 24px}.list-row h3{color:#a27e58}.list-row p{font-size:12px;color:#b29979}.list-row small{color:#b7a078}.salon-banner{height:330px;border-radius:30px}.salon-banner img{filter:brightness(.88);object-position:left 30%;animation:portraitBreathe 18s ease-in-out infinite}.section-title h2{color:#a17b52}.section-title small{color:#c0a67f}.format{background:#fcf3e4a6;border:0;border-radius:29px 18px 24px 16px}.format h3{color:#ad875c}.format p{color:#b79a74}.form-field{color:#b29875}input,select,textarea{background:#fffcf4c9;border:1px solid #e6d6b890;border-radius:17px;color:#98744c;padding:14px}input::placeholder,textarea::placeholder{color:#c6b394}.footer-note,.disclaimer{color:#b69d7a}.report-lines>div{border-color:#e9d9bd80}.report-lines span{color:#b39a74}.badge{background:#f1e6cf;color:#b59a6f}.story-history{border-color:#e1cda360}.story-history h3{color:#a17c50}.story-history p{font-size:12px;color:#b29a78}.plot span{background:linear-gradient(#d4c795,#b7c29b)}.empty{border-color:#e1cda38a;color:#b09875}dialog{border:2px solid #fff4dc;border-radius:30px;background:#fff9eded;backdrop-filter:blur(15px);box-shadow:0 20px 100px #5b3d2c4a;animation:dialogEnter .45s cubic-bezier(.2,.8,.2,1)}dialog::backdrop{background:#72503570;backdrop-filter:blur(7px)}.modal-head{height:255px}.modal-head img{animation:portraitBreathe 15s ease-in-out infinite}.modal-head:after{background:linear-gradient(0deg,#9b734fa0,transparent 75%)}.close-modal{background:#fff9e5e0;color:#bd9c70}.modal-body{padding:29px 35px 34px}.modal-body h2,.simple-modal h2{color:#a0784e}.dialogue{color:#af9472;font-size:14px}.speaker{color:#c5a273}.choice{background:#fffdf2ce;border:1px solid #e3cca158;border-radius:20px;padding:18px 20px;animation:choiceEnter .4s ease-out both}.choice:nth-child(2){animation-delay:.08s}.choice:nth-child(3){animation-delay:.16s}.choice:hover{background:#f6edda;border-color:#d8b47b;transform:translateX(4px)}.choice strong{color:#a3835d;font-size:13px}.choice small{color:#c3ab84;font-size:10px}.choice svg{color:#bea277}.simple-modal{padding:35px}.simple-modal p{color:#b09877}.result-icon{background:#f3e6c5;color:#c6a36b;animation:resultPop .6s ease-out both}.gain{background:#edf0d7;color:#a2ae75;animation:gainPop .6s .1s ease-out both}.gain:nth-child(2){animation-delay:.2s}.gain:nth-child(3){animation-delay:.3s}.gain.negative{background:#f8e4d6;color:#c69b80}.choice-celebration:before{content:"✧   ♡   ✧";position:absolute;right:32px;top:40px;color:#e1b876;font-size:25px;letter-spacing:10px;animation:celebration 1.8s ease-out both;pointer-events:none}#toast{background:#a18b65ee;color:#fff9e7;border:1px solid #fff0d6b3;backdrop-filter:blur(8px);bottom:107px;border-radius:25px;font-size:12px}
@keyframes characterIdle{0%,100%{transform:translateY(0) rotate(-.3deg) scaleY(1)}50%{transform:translateY(-5px) rotate(.35deg) scaleY(1.009)}}@keyframes characterGreet{0%,100%{transform:rotate(0)}25%{transform:translateY(-9px) rotate(-1.3deg)}65%{transform:translateY(-3px) rotate(.8deg)}}@keyframes shadowBreathe{0%,100%{transform:scaleX(1);opacity:.6}50%{transform:scaleX(.95);opacity:.4}}@keyframes characterEnter{from{opacity:0;translate:30px 15px}to{opacity:1;translate:0 0}}@keyframes cloudEnter{from{opacity:0;translate:-20px 5px}to{opacity:1;translate:0 0}}@keyframes memoryFloat{0%,100%{translate:0 0;rotate:0deg}50%{translate:0 -6px;rotate:1deg}}@keyframes dustFloat{0%{opacity:0;transform:translate(0,30px) scale(.5)}30%{opacity:.75}75%{opacity:.4}100%{opacity:0;transform:translate(20px,-65px) scale(1.2)}}@keyframes sunDrift{0%,100%{opacity:.5;transform:translateX(-3%)}50%{opacity:1;transform:translateX(3%)}}@keyframes bookEnter{from{opacity:0;transform:translateY(18px) rotate(-.2deg)}to{opacity:1;transform:translateY(0) rotate(0)}}@keyframes personEnter{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@keyframes portraitBreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.025)}}@keyframes dialogEnter{from{opacity:0;transform:translateY(20px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes choiceEnter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes resultPop{0%{transform:scale(.4) rotate(-15deg);opacity:0}65%{transform:scale(1.1) rotate(5deg)}100%{transform:scale(1) rotate(0);opacity:1}}@keyframes gainPop{from{opacity:0;transform:translateY(8px) scale(.8)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes celebration{0%{opacity:0;transform:translateY(20px) scale(.7)}30%{opacity:1}100%{opacity:0;transform:translateY(-35px) scale(1.1)}}
@media(min-width:1600px){.game-header{padding-top:30px}.living-scene{min-height:780px}.scene-actions .actions{max-width:850px}.scene-actions .action-card{min-height:130px;padding:21px}.scene-actions .end-row{max-width:850px}.heroine{right:2%;width:47%}.story-cloud{top:22%}}
@media(max-width:1100px){.game-header{padding:23px 25px 13px;gap:16px}.game-header .stat{min-width:100px;padding:11px 14px;gap:8px}.game-header .stat-value{font-size:16px}.game-header .stat-top svg{width:20px;height:20px}.game-header .mini-bar{left:41px;right:15px}.game-header .stats{gap:8px}.living-scene{margin:0 15px;min-height:750px}.story-cloud{left:5%;top:21%;width:45%}.story-cloud h2{font-size:43px}.heroine{right:-3%;width:56%;height:86%;bottom:10%}.scene-actions{left:4%;right:4%}.scene-actions .actions{max-width:700px;gap:13px}.scene-actions .end-row{max-width:700px}.floating-memory{font-size:11px;right:25px;top:22px}.memory-photo{height:45px;width:45px}.storybook{margin:24px 25px;padding:30px}.game-nav{gap:4px;padding:8px 12px}.game-nav button{min-width:65px;font-size:10px;padding:12px}.game-brand{font-size:42px}}
@media(max-width:760px){.game-world{padding-bottom:85px}.game-header{padding:20px 18px 12px;display:grid;grid-template-columns:1fr 40px;gap:16px 8px}.game-brand{font-size:38px;letter-spacing:-2px;grid-row:1}.game-brand span{font-size:6px;letter-spacing:2px;margin-top:9px}.game-profile{height:40px;width:40px;grid-row:1;grid-column:2}.game-header .stats{grid-column:1/-1;grid-row:2;justify-content:space-between;gap:7px}.game-header .stat{min-width:0;padding:10px 10px 11px;gap:6px;flex:1;justify-content:center}.game-header .stat-top svg{width:17px;height:17px}.game-header .stat-value{font-size:14px;letter-spacing:-.5px}.game-header .stat-value small{font-size:8px}.game-header .mini-bar{left:30px;right:12px;bottom:6px}.living-scene{margin:0 8px;height:760px;min-height:760px;max-height:none;border-radius:25px}.living-scene:after{border-radius:25px}.scene-depth{background-position:61% center;inset:-15px}.living-scene:before{background:linear-gradient(90deg,#fff5dfc4,transparent 75%),linear-gradient(0deg,#fff3dcec,transparent 60%)}.scene-location{left:18px;top:20px;font-size:9px;gap:6px}.scene-location svg{width:14px}.scene-location span{font-size:7px}.story-cloud{left:24px;top:15%;width:57%;max-width:255px}.story-cloud .eyebrow{font-size:7px;letter-spacing:1.8px}.story-cloud h2{font-size:35px;letter-spacing:-1px;line-height:1.11;margin:16px 0}.story-cloud p{font-size:10px;line-height:1.9;max-width:185px;text-shadow:0 1px 1px #fff4df,0 0 10px #fff3d9}.story-cloud p br{display:none}.btn.story-start{font-size:10px;padding:13px 18px;margin-top:20px}.handwritten{font-size:12px;line-height:1.6;margin-top:16px;max-width:170px}.heroine{right:-27%;width:90%;height:72%;bottom:19%;z-index:1}.heroine>img{filter:drop-shadow(5px 8px 8px #71472624)}.heroine-hint{font-size:11px;padding:7px 12px;right:29%;bottom:27%}.character-speech{top:32%;left:18%;max-width:150px;min-width:125px;font-size:10px;padding:12px 14px;z-index:10}.floating-memory{right:17px;top:53px;font-size:9px;gap:5px;padding:10px;opacity:.95;max-width:150px}.memory-heart{display:none}.memory-photo{width:36px;height:36px;border-width:3px}.floating-memory b{font-size:14px}.scene-actions{left:17px;right:17px;bottom:10px}.scene-actions-caption{font-size:12px;line-height:1.5;margin:0 0 23px 2px;gap:6px}.scene-actions-caption svg{width:13px}.scene-actions .actions{display:grid;grid-template-columns:1fr 1fr;gap:22px 12px}.scene-actions .action-card{min-height:105px;padding:16px 15px 14px;border-radius:20px 15px 23px 15px;background:#fff8e7e8;backdrop-filter:blur(8px)}.scene-actions h3{font-size:22px;margin:0 0 5px}.scene-actions p{font-size:9px}.scene-actions .icon-box{height:33px;width:33px;border-radius:12px;top:-14px;right:12px}.scene-actions .icon-box svg{width:18px;height:18px}.scene-actions .cost{font-size:7px;left:15px;bottom:13px}.scene-actions .end-row{padding:7px 0 2px;margin-top:13px}.scene-actions .save-hint{font-size:7px;gap:4px}.scene-actions .save-hint svg{width:10px}.scene-actions .end-button{font-size:9px;padding:7px}.scene-actions .end-button svg{width:13px}.game-nav{bottom:calc(10px + env(safe-area-inset-bottom));padding:8px 7px;gap:0;left:10px;right:10px;transform:none;justify-content:space-around;border-radius:27px;box-shadow:0 5px 25px #8f623c25}.game-nav button{display:grid;justify-items:center;gap:5px;padding:7px 5px;min-width:0;font-size:7px;flex:1;border-radius:18px}.game-nav button svg{width:19px;height:19px}.game-nav button.active{background:#efe3c9}.game-day-label{font-size:8px;right:24px;top:28px}.in-scene .game-day-label{display:block}.storybook{margin:12px 13px 20px;padding:25px 20px;border-radius:8px 30px 12px 28px}.book-top{margin-bottom:24px}.book-top .text-link{font-size:9px;gap:5px}.book-top .eyebrow{font-size:7px}.page-title{font-size:33px;line-height:1.13;margin-bottom:15px}.page-intro{font-size:11px;line-height:1.9;margin-bottom:22px}.people-grid{grid-template-columns:1fr;gap:22px}.person>img{height:310px;object-position:center 25%;border-radius:30px 20px 45% 5%}.person .person-copy{padding:21px 23px 25px}.person h3{font-size:28px}.person .role{font-size:8px;letter-spacing:1.3px}.person p{font-size:12px}.soft-card{padding:23px 21px;border-radius:25px 17px 28px 16px}.soft-card h3{font-size:25px}.soft-card p{font-size:11px}.btn{font-size:10px;padding:12px 19px}.row-buttons{gap:10px;margin-top:22px}.metrics{gap:8px;margin:23px 0}.metric{padding:15px 10px;border-radius:18px}.metric strong{font-size:18px}.metric label{font-size:8px;line-height:1.6}.metric small{font-size:8px;line-height:1.6}.list-row{padding:17px 15px;border-radius:18px;flex-wrap:wrap}.list-row p{font-size:10px}.list-row h3{font-size:18px}.panel{padding:22px 18px;border-radius:23px}.section-title{gap:12px;align-items:flex-start;flex-wrap:wrap}.section-title h2{font-size:24px}.salon-banner{height:270px;border-radius:25px}.salon-banner img{object-position:left center}.salon-banner h2{font-size:29px}.salon-banner>div{left:20px;right:15px}.salon-banner p{font-size:9px;line-height:1.8}.report-lines>div{font-size:10px;line-height:1.7}.report-lines strong{font-size:11px;text-align:right}.form-field{font-size:10px}input,select,textarea{font-size:12px;padding:12px}.modal-head{height:220px}.modal-body{padding:25px 23px 28px}.modal-body h2{font-size:28px}.dialogue{font-size:13px;line-height:1.9}.choice{padding:15px 16px}.choice strong{font-size:12px}.choice small{font-size:9px;line-height:1.6}.simple-modal{padding:30px 24px}.simple-modal h2{font-size:29px}.simple-modal p{font-size:12px}dialog{border-radius:27px;max-height:88dvh}.result-icon{width:49px;height:49px}.choice-celebration:before{right:19px;font-size:20px;letter-spacing:4px}.story-history p{font-size:11px}#toast{bottom:98px;font-size:11px;width:max-content;max-width:87vw}}
@media(max-width:375px){.game-header{padding:18px 12px 12px}.game-header .stat{padding:10px 7px;gap:4px}.game-header .stat-top svg{width:15px;height:15px}.game-header .stat-value{font-size:12px}.game-header .mini-bar{left:26px;right:9px}.living-scene{height:760px;min-height:760px}.story-cloud{left:19px;top:16%;width:56%}.story-cloud h2{font-size:31px}.heroine{right:-31%;width:95%;height:69%;bottom:21%}.scene-actions{left:14px;right:14px}.scene-actions h3{font-size:20px}.scene-actions p{font-size:8px}.btn.story-start{font-size:9px;padding:13px 16px}.scene-actions-caption{font-size:11px}.story-cloud p{font-size:9px;max-width:160px}.game-nav button{font-size:6px}.game-nav button svg{width:17px}.floating-memory{top:58px;font-size:8px;padding:8px}.memory-photo{width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.heroine,.scene-depth{transform:none!important}}
/* Keep the airy palette readable over a detailed illustrated scene. */
.story-cloud p{color:#87613e}.person p,.soft-card p,.page-intro,.list-row p,.dialogue,.simple-modal p{color:#967451}.person .relation{color:#a88b61}.choice strong{color:#967048}.choice small{color:#aa8c64}.handwritten{color:#a77a49}.footer-note,.disclaimer{color:#a48a65}
@media(max-width:760px){.living-scene:before{background:linear-gradient(90deg,#fff5dfee 0%,#fff5dfd9 27%,#fff5df73 53%,transparent 83%),linear-gradient(0deg,#fff3dcec,transparent 60%)}.story-cloud{z-index:3}.story-cloud p{color:#8e6944}.scene-actions-caption{color:#a27c4d}.handwritten{font-size:12px;color:#a27b4c}}
.pet-card{display:flex;align-items:center;gap:23px;position:relative;overflow:visible;padding:24px 30px 28px}.pet-description{flex:1}.pet-berg{position:relative;flex-shrink:0;width:205px;height:230px;background:transparent;transform-origin:50% 95%;animation:bergBreathe 4s ease-in-out infinite}.pet-berg img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 7px 6px #85603120)}.berg-body{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,0 64%,31% 64%,31% 40%,0 40%)}.berg-paw{clip-path:polygon(11% 40%,32% 40%,32% 64%,11% 64%);transform-origin:31% 55%;animation:bergPaw 4s ease-in-out infinite}.pet-love{position:absolute;top:8%;right:15%;font-size:40px;color:#e8a98c;opacity:0;pointer-events:none}.pet-berg.happy{animation:bergHappy .7s ease-in-out 2}.pet-berg.happy .pet-love{animation:petLove 1.5s ease-out both}.pet-berg.happy .berg-paw{animation:bergPaw .45s ease-in-out 3}.pet-berg:hover{filter:brightness(1.03)}
@keyframes bergBreathe{0%,100%{transform:rotate(-.3deg) scaleY(1)}50%{transform:translateY(-3px) rotate(.3deg) scaleY(1.012)}}@keyframes bergPaw{0%,45%,100%{transform:rotate(0)}55%,75%{transform:rotate(-9deg)}65%,85%{transform:rotate(4deg)}}@keyframes bergHappy{0%,100%{transform:translateY(0) rotate(0)}40%{transform:translateY(-9px) rotate(-3deg)}70%{transform:translateY(-4px) rotate(2deg)}}@keyframes petLove{0%{opacity:0;transform:translateY(10px) scale(.6)}25%{opacity:1}100%{opacity:0;transform:translateY(-50px) scale(1.3)}}
@media(max-width:760px){.pet-card{display:block;padding:24px 21px}.pet-berg{display:block;margin:-5px auto 13px;width:205px;height:220px}.pet-description h3{font-size:25px}.pet-description p{font-size:11px}}
@media(prefers-reduced-motion:reduce){.pet-berg,.berg-paw,.pet-berg.happy,.pet-berg.happy .pet-love{animation:none!important}}
/* The hit area stays still while the drawn dog moves inside it. */
.pet-berg,.pet-berg.happy{animation:none}.berg-body{animation:bergBreathe 4s ease-in-out infinite}.pet-berg.happy .berg-body{animation:bergHappy .7s ease-in-out 2}
@media(prefers-reduced-motion:reduce){.berg-body,.pet-berg.happy .berg-body{animation:none!important}}
.telegram-gate{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:23px;padding:35px 25px;background:linear-gradient(#fff6e8e0,#fff5e4f5),url('assets/scene.jpg') center/cover;color:#9b7751;text-align:center}.gate-brand{font-family:Georgia,serif;font-style:italic;font-size:59px;letter-spacing:-3px}.telegram-gate h1{font-size:34px;max-width:650px;line-height:1.15}.telegram-gate p{font-size:13px;line-height:1.9;max-width:460px}.telegram-gate .text-link{margin-top:8px}.account-line{font-size:11px;line-height:1.8;color:#ac8a61;display:flex;align-items:center;gap:10px;margin:10px 0 24px;padding:13px 18px;background:#fff4dc;border-radius:18px}.sync-state{display:inline-flex;align-items:center;gap:5px;font-size:9px;color:#9d875c}.sync-state[data-status="offline"],.sync-state[data-status="conflict"]{color:#bb826b}.demo-ribbon{font-size:8px;letter-spacing:1.3px;color:#ac9067;position:fixed;left:25px;bottom:20px;z-index:12;max-width:170px;line-height:1.6}.save-hint button{border:0;background:none;padding:0;color:inherit;font:inherit;cursor:pointer}.telegram-account{font-size:9px;color:#aa936d}.game-world .save-hint{max-width:270px}
@media(max-width:760px){.demo-ribbon{position:static;text-align:center;max-width:none;padding:10px 15px 0;font-size:7px}.account-line{font-size:10px}.telegram-gate h1{font-size:29px}.telegram-gate p{font-size:12px}.game-world .save-hint{max-width:150px;line-height:1.6}.sync-state{font-size:7px}}
/* Larger, steady navigation and a visible way out of every scene. */
.game-brand{display:flex;align-items:center;gap:10px;letter-spacing:-1px;line-height:1;background:none;white-space:normal}.game-brand>img{width:64px;height:64px;border-radius:50%;box-shadow:0 3px 12px #9b743022}.game-brand .brand-wordmark{display:block;font-size:38px;letter-spacing:-1.8px;margin:0;color:#82603e;font-style:italic}.brand-wordmark small{display:block;font-size:11px;letter-spacing:.5px;font-style:normal;margin-top:7px}.game-nav button{font-size:14px;min-height:48px;min-width:100px;color:#795b3e}.game-nav button.active{color:#5e472f;background:#eadfc4}.game-nav button svg{width:22px;height:22px}.book-top .text-link{font-size:15px;min-height:48px}.text-link,.end-button{min-height:44px}.page-intro,.person p,.soft-card p,.list-row p,.story-history p{font-size:16px;line-height:1.75;color:#795c43}.person .role,.eyebrow,.footer-note,.disclaimer{font-size:12px;line-height:1.6}.btn{min-height:48px;font-size:15px}.btn.outline{color:#795b3e}.dialogue,.simple-modal p{font-size:17px;line-height:1.75;color:#795b3e}.speaker{font-size:13px}.choice{padding:18px 20px;min-height:80px}.choice strong{font-size:17px;line-height:1.45;color:#705036}.choice small{font-size:14px;line-height:1.6;margin-top:7px;color:#86674a}.choice>span{min-width:0}.choice svg{width:24px;height:24px}.report-lines>div,.report-lines strong{font-size:15px}.gain{font-size:14px}.form-field,input,select,textarea{font-size:16px}.metric label,.metric small,.section-title small,.account-line{font-size:13px}.metric strong{font-size:26px}.relation,.story-history small{font-size:14px}.footer-note{color:#866c51}.game-world{padding-bottom:115px}dialog{padding:0;max-height:92dvh;max-width:min(640px,calc(100vw - 24px));overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;isolation:isolate}dialog::backdrop{background:#4c352c66;backdrop-filter:blur(5px)}.dialog-toolbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff8ee;box-shadow:0 2px 10px #704f3a15;border-bottom:1px solid #e8d8bd;padding:8px 12px;color:#795b3e}.dialog-toolbar>span{font:italic 14px Georgia,serif;color:#937252}.dialog-back,.dialog-x{display:flex;align-items:center;justify-content:center;min-height:48px;background:#f1e7d4;border-radius:22px;color:#705036;font-size:16px;font-weight:600;padding:10px 18px}.dialog-x{width:48px;flex-shrink:0;padding:0;background:none;font-size:30px;font-weight:400}.modal-head{height:190px}.modal-head .eyebrow{font-size:12px}.close-modal{display:none}.simple-modal{padding:28px 28px 32px}.menu-grid{display:grid;gap:12px;margin-top:24px}.menu-grid>button{display:flex;align-items:center;gap:15px;background:#f4ecd9;border:1px solid #e4d4b5;border-radius:20px;padding:15px;text-align:left;min-height:76px;color:#705036}.menu-grid>button>span{flex:1}.menu-grid strong{display:block;font-size:17px;font-weight:500}.menu-grid small{display:block;font-size:14px;line-height:1.5;color:#866c51;margin-top:4px}.gate-brand{display:flex;align-items:center;gap:15px}.gate-brand img{height:90px;width:90px;border-radius:50%}.telegram-gate p{font-size:16px}.telegram-gate .btn,.telegram-gate .text-link{font-size:16px}.game-day-label{display:none!important}
@media(max-width:760px){
 .game-header{padding:16px 14px 12px;gap:14px 8px}.game-brand>img{width:58px;height:58px}.game-brand .brand-wordmark{font-size:34px}.brand-wordmark small{font-size:11px;letter-spacing:.2px}.game-profile{height:44px;width:44px}.game-header .stat-value{font-size:16px}.game-header .stat-value small{font-size:11px}.game-header .stat{gap:5px;padding:12px 6px}.game-header .stat-top svg{width:17px;height:17px}.game-header .mini-bar{left:25px;right:9px}.game-world{padding-bottom:112px}.game-nav{bottom:calc(8px + env(safe-area-inset-bottom));left:8px;right:8px;padding:7px 4px;border-radius:25px}.game-nav button{min-width:0;min-height:58px;padding:6px 3px;font-size:12px;gap:5px}.game-nav button svg{width:22px;height:22px}.book-top{gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.book-top .text-link{font-size:15px;padding:0}.book-top .eyebrow{font-size:11px}.storybook{padding:20px 18px 28px;margin:8px 10px 20px}.page-title{font-size:34px}.page-intro,.person p,.soft-card p,.pet-description p,.list-row p,.story-history p{font-size:16px;line-height:1.75}.person .role{font-size:11px}.person .relation{font-size:14px}.person .person-copy{padding:22px}.page-intro{margin-bottom:24px}.list-row h3{font-size:22px}.section-title small,.metric label,.metric small{font-size:12px}.metric strong{font-size:23px}.metrics{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.metric{padding:17px}.btn{font-size:15px;padding:13px 18px;min-height:48px}.row-buttons .btn{flex-grow:1}.salon-banner p{font-size:14px}.report-lines>div,.report-lines strong{font-size:14px}.report-lines>div{gap:12px}.form-field,input,select,textarea{font-size:16px}.account-line{font-size:14px}.footer-note,.disclaimer{font-size:13px;line-height:1.7}.eyebrow{font-size:11px}.modal-head{height:145px}.modal-body{padding:24px 22px 28px}.modal-body h2,.simple-modal h2{font-size:30px;line-height:1.15}.dialogue,.simple-modal p{font-size:17px;line-height:1.75}.choice{padding:17px 16px;gap:12px}.choice strong{font-size:17px}.choice small{font-size:14px}.simple-modal{padding:25px 22px 30px}.speaker{font-size:13px}.dialog-toolbar{padding:6px 8px}.dialog-toolbar>span{font-size:13px}dialog{max-height:94dvh;border-radius:24px;scrollbar-gutter:auto;width:calc(100vw - 20px);max-width:none}.result-gains .gain{font-size:14px}.living-scene{height:1000px;min-height:1000px}.scene-location{font-size:12px}.scene-location span{font-size:11px}.story-cloud{top:12%;left:22px;width:59%;max-width:290px}.story-cloud .eyebrow{font-size:11px;letter-spacing:1px}.story-cloud h2{font-size:35px;line-height:1.12}.story-cloud p{font-size:16px;line-height:1.65;max-width:230px;color:#795b3e}.btn.story-start{font-size:15px;padding:15px 19px;min-height:50px;margin-top:20px}.handwritten{font-size:16px;max-width:220px}.heroine{right:-29%;bottom:34%;height:58%;width:90%;pointer-events:auto}.heroine-hint{font-size:13px;right:28%;bottom:24%}.floating-memory{top:48px;font-size:12px;max-width:165px}.scene-actions{bottom:14px;left:18px;right:18px}.scene-actions-caption{font-size:16px;margin-bottom:25px}.scene-actions .actions{gap:24px 12px}.scene-actions .action-card{min-height:128px;padding:17px 13px 31px}.scene-actions h3{font-size:23px}.scene-actions p{font-size:13px;line-height:1.5;white-space:normal}.scene-actions .cost{font-size:12px;bottom:12px;left:13px}.scene-actions .end-row{align-items:stretch;gap:10px;flex-direction:column}.scene-actions .save-hint{font-size:12px;max-width:none;order:2;justify-content:center}.scene-actions .end-button{font-size:16px;min-height:48px;justify-content:center;background:#f8edda;border:1px solid #ddc6a1;border-radius:24px}.scene-actions .end-button svg{width:20px}.sync-state{font-size:12px}.character-speech{font-size:14px;max-width:190px;left:13%}.demo-ribbon{font-size:11px;padding-bottom:12px}#toast{font-size:15px;bottom:105px;max-width:90vw}.telegram-gate p{font-size:16px}
}
@media(max-width:375px){.game-brand .brand-wordmark{font-size:30px}.game-brand>img{width:52px;height:52px}.brand-wordmark small{font-size:10px}.game-header .stat-value{font-size:15px}.game-header .stat-value small{font-size:10px}.story-cloud{left:18px;width:60%;top:12%}.story-cloud h2{font-size:32px}.story-cloud p{font-size:16px;max-width:210px}.game-nav button{font-size:12px}.scene-actions h3{font-size:22px}.scene-actions p{font-size:13px}.living-scene{height:1030px;min-height:1030px}.heroine{bottom:35%;height:55%}.scene-actions-caption{font-size:15px}}
