@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;500;600&display=swap');
:root{--ink:#513844;--muted:#967c85;--rose:#c96281;--pink:#e9b1bf;--line:#efdee2;--paper:#fff8f7;--serif:'Noto Serif JP',serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 95% 10%,#f8e3e5,transparent 55%),radial-gradient(ellipse at 0 70%,#f7ece1,transparent 55%),var(--paper);color:var(--ink);font:14px/1.7 'Noto Sans JP',sans-serif}button{font:inherit;cursor:pointer;touch-action:manipulation;color:inherit;transition:background .2s,transform .2s}button:hover:not(:disabled){transform:translateY(-1px)}button:disabled{opacity:.45;cursor:default}button:focus-visible{outline:3px solid #a54a68;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2,h3,.serif{font-family:var(--serif);font-weight:500}button.primary{border:0;background:linear-gradient(120deg,#cf718b,#b95275);color:white;padding:16px 28px;min-height:50px;border-radius:30px;box-shadow:0 8px 24px #b9527526;letter-spacing:.06em}button.light{border:1px solid #e7ced5;background:#fffcfbbf;padding:12px 20px;min-height:46px;border-radius:25px}button.light:hover{background:#f9e9ed}button.small{border:0;background:none;min-height:44px;font-size:11px;color:var(--muted);padding:8px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:.2em;color:#b56d84}.subtle,.help-text{color:var(--muted);font-size:12px;line-height:2}.help-text{font-size:10px}.title-screen{max-width:1320px;padding:30px 52px;margin:auto}.brand{display:flex;justify-content:space-between;align-items:center;padding-bottom:22px;border-bottom:1px solid var(--line)}.brand b{letter-spacing:.18em;font-size:11px}.hero{display:grid;grid-template-columns:.95fr 1.05fr;min-height:700px;gap:30px;align-items:center}.hero-copy{padding:35px 0}.hero h1{margin:18px 0 20px}.english-title{display:block;font:clamp(60px,6.8vw,100px)/.92 Georgia,serif;letter-spacing:-.065em;color:#9a4a68}.english-title em{font-weight:400;color:#d68aa0}.japanese-title{display:block;font-size:21px;letter-spacing:.16em;margin-top:26px}.hero .lead{font-size:18px;letter-spacing:.08em;margin:26px 0 16px}.hero-buttons{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:28px 0 12px}.cover{position:relative;height:570px;isolation:isolate;overflow:hidden;border-radius:220px 220px 12px 12px;background:linear-gradient(#eee1dd88,#e1b0cbb0),url('assets/bg-lounge.webp') center/cover;box-shadow:0 30px 60px #a9687c18}.cover:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 55%,#e6b5c4);pointer-events:none;z-index:3}.cover-halo{position:absolute;width:330px;height:330px;border:1px solid #fff9;box-shadow:0 0 0 25px #fff2;top:50px;left:50%;transform:translateX(-50%);border-radius:50%}.cover-person{position:absolute;bottom:0;width:68%;height:94%;z-index:2}.cover-person.girl{left:-12%;z-index:3}.cover-person.boy{right:-8%}.character-img{width:100%;height:100%;object-fit:contain;object-position:center bottom;display:block}.cover-note{position:absolute;bottom:26px;text-align:center;left:0;right:0;z-index:4;color:#6d4052}.cover-note span{display:block;font:10px Georgia;letter-spacing:.3em}.cover-note b{display:block;font-family:var(--serif);font-size:21px;font-weight:500;letter-spacing:.16em;margin-top:8px}.float-word{position:absolute;right:12px;top:38px;z-index:4;font:italic 22px/1.2 Georgia;color:#9e5c76;transform:rotate(8deg)}.footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);font-size:10px;color:var(--muted);gap:20px;padding:16px 0}.topbar{position:sticky;top:0;z-index:20;background:#fff9f8ed;backdrop-filter:blur(16px);display:flex;align-items:center;justify-content:space-between;padding:14px max(24px,calc((100vw - 1120px)/2));border-bottom:1px solid #ecd9de;height:86px;gap:20px}.logo{font:26px/.95 Georgia,serif;background:none;border:0;text-align:left;white-space:nowrap;padding:4px 0;letter-spacing:-.04em}.logo em{color:#c26c87}.logo span{display:block;font:9px/1.6 'Noto Sans JP';letter-spacing:.2em;margin-top:7px;color:var(--muted)}.top-facts{display:flex;align-items:center;gap:16px}.age{font-family:var(--serif);font-size:26px;white-space:nowrap}.age small{font:12px 'Noto Sans JP'}.remaining{font-size:10px;border-left:1px solid var(--line);padding-left:16px;color:var(--muted)}.top-right{display:flex;gap:22px;align-items:center}.funds span{font-size:9px;display:block;color:var(--muted);letter-spacing:.1em}.funds b{font-size:18px;font-weight:500;white-space:nowrap}.funds small{font-size:10px}.menu-button{width:36px;height:40px;border:0;background:none;font-size:18px}.show-layout{max-width:1120px;margin:26px auto 0;padding:0 24px 130px}.romance-stage{height:460px;position:relative;border-radius:20px;isolation:isolate;overflow:hidden;box-shadow:0 16px 50px #a86a7c15;scroll-margin-top:105px;background:#ecd1d4}.stage-scene{position:absolute;inset:-12px;background:var(--scene) center/cover;filter:blur(3px);z-index:-2;transform:scale(1.03)}.romance-stage:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#f6e3e588,#e7c2cc35,#f6e3e588);z-index:-1}.romance-stage:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#f7e1e7ed);z-index:3;pointer-events:none}.stage-top{display:flex;justify-content:space-between;align-items:center;position:absolute;top:20px;left:24px;right:24px;z-index:5}.scene-tag{font-size:10px;background:#fff8;padding:7px 15px;border:1px solid #fffa;backdrop-filter:blur(12px);border-radius:20px}.scene-caption{font-family:var(--serif);font-size:12px;background:#fff8;padding:4px 10px;border-radius:20px}.stage-person{position:absolute;bottom:-20px;height:110%;width:48%;z-index:2}.stage-person.self{left:1%}.stage-person.partner{right:1%}.stage-amp{position:absolute;left:50%;top:39%;transform:translate(-50%,-50%);font:italic 86px Georgia;color:#fff9;z-index:1}.person-label{position:absolute;bottom:70px;z-index:4;text-shadow:0 1px 8px #fff;color:#603e4b}.person-label.self{left:38px}.person-label.partner{right:38px;text-align:right}.person-label>span{font-size:8px;letter-spacing:.25em}.person-label h2{font-size:29px;margin:2px 0 3px}.person-label p{font-size:11px;margin:0}.stage-bottom{position:absolute;bottom:15px;left:25px;right:25px;z-index:5;text-align:center;padding-top:11px;border-top:1px solid #bb879b44}.stage-bottom span{display:block;letter-spacing:.25em;font:8px Georgia;color:#9e6980}.stage-bottom b{font-family:var(--serif);font-weight:400;letter-spacing:.12em;font-size:13px}.unknown-partner{position:absolute;right:10%;top:29%;text-align:center;z-index:2;color:#7b5669}.unknown-partner>span{display:block;font:90px Georgia;color:#fff9;line-height:1;text-shadow:0 0 25px #8b4c6044}.unknown-partner p{font-family:var(--serif);margin-top:20px;font-size:18px;line-height:2}.year-meter{padding:27px 5px 20px}.year-label{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:13px}.year-label>div{display:flex;align-items:center;gap:16px}.year-label b{font-family:var(--serif);font-size:15px;font-weight:500}.year-label>span{font:24px Georgia;color:#ad5875}.year-label small{font:10px 'Noto Sans JP';color:var(--muted)}.year-track{display:grid;grid-template-columns:repeat(12,1fr);gap:5px}.year-track i{height:9px;background:#ecdce0;border-radius:6px;position:relative}.year-track i.filled{background:linear-gradient(90deg,#edbbc6,#cb7291);box-shadow:0 2px 8px #c5748c33}.year-track span{display:none}.year-ends{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.12em;color:#ab8a96;margin-top:9px}.year-ends span:nth-child(2){letter-spacing:.08em}.profile-strip{display:flex;align-items:center;gap:25px;background:#fffafb;border:1px solid #eed8df;border-radius:12px;padding:16px 22px;flex-wrap:wrap;margin-bottom:20px}.profile-strip>div:first-child{display:flex;flex-direction:column}.profile-strip b{font-weight:500;font-size:12px}.quick-stats{display:flex;gap:25px;flex:1}.quick-stats>span{font-size:9px;color:var(--muted)}.quick-stats b{display:block;font:22px Georgia;color:var(--ink);margin-top:2px}.partner-strip{padding:4px 5px 24px}.partner-tabs{display:flex;gap:10px;margin:12px 0;overflow-x:auto}.partner-tab{display:flex;gap:9px;align-items:center;background:#fffcfa;border:1px solid var(--line);border-radius:25px;padding:5px 15px 5px 5px;min-width:max-content;font-size:11px}.partner-tab small{display:block;color:var(--muted);font-size:8px}.partner-tab.chosen{border-color:#c9869c;background:#f9e8ed}.avatar{width:38px;height:38px;border-radius:50%;background:#f2dce3;overflow:hidden;flex:none;display:inline-block}.relationship-meters{max-width:500px}.meters{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.meter-row{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin:0 0 5px}.meter{height:5px;background:#eadce1;border-radius:5px;grid-row:2;overflow:hidden}.meter i{display:block;height:100%;background:linear-gradient(90deg,#eaa7bd,#c36586)}.meter.trust i{background:linear-gradient(90deg,#b4b8db,#8c86b8)}.story-grid{margin-top:12px}.feed-header{display:flex;align-items:center;justify-content:space-between;padding:5px 4px 18px}.feed-header h2{font-size:22px;letter-spacing:.08em;margin:5px 0}.chip{font-size:10px;border-radius:20px;background:#f4e1e7;padding:5px 12px}.post{background:#fffdfcf2;border:1px solid #efdee3;border-radius:14px;padding:25px;margin-bottom:16px;box-shadow:0 4px 20px #aa738b05;scroll-margin-top:105px}.post p{line-height:2.05;white-space:pre-line;font-size:13px;margin-bottom:14px}.post p:last-child{margin-bottom:0}.post h3{font-size:21px;letter-spacing:.04em;line-height:1.7;margin:15px 0}.post-head{display:flex;gap:11px;align-items:center;margin-bottom:16px}.post-name{font-size:11px;font-weight:500}.date{font-size:9px;color:#aa8d97}.system-avatar{display:inline-grid;place-items:center;background:#f5e8df;color:#c58c6e}.choices{display:grid;gap:9px;margin-top:20px}.choice{text-align:left;background:#fcf4f6;border:1px solid #eedbe1;border-radius:9px;padding:14px 16px;font-size:12px;line-height:1.7;min-height:48px}.choice:hover{background:#f5dfe7}.next-step{background:linear-gradient(125deg,#fffaf9,#f8e9ee)}.next-step .primary{font-size:12px;padding:12px 22px}.dock{position:fixed;bottom:0;left:0;right:0;background:#fffbfaee;backdrop-filter:blur(18px);border-top:1px solid #e7cfd9;display:flex;justify-content:center;gap:12px;padding:12px 24px;z-index:25;box-shadow:0 -4px 25px #b9879e0a}.dock button{border:0;background:transparent;min-width:150px;min-height:52px;padding:5px 22px;font-size:11px;border-radius:9px;color:#876574}.dock button span{display:block;font-size:20px;line-height:1.2;color:#bb6786;margin-bottom:4px}.dock button:first-child{background:#f6e6ec}.dock button:hover{background:#f6e6ec}.gacha{max-width:960px;margin:40px auto;padding:24px}.gacha h1{font-size:30px;margin:10px 0}.gacha-grid{display:grid;grid-template-columns:300px 1fr;gap:35px;padding:28px;background:#fffcfbe6;border:1px solid var(--line);border-radius:18px}.portrait{border-radius:150px 150px 10px 10px;overflow:hidden;background:linear-gradient(#f8eceb88,#efcfdb99),url('assets/bg-park.webp') center/cover;min-height:300px}.profile-name{font-family:var(--serif);font-size:24px;margin:10px 0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px 12px}.stat span{display:block;color:var(--muted);font-size:9px}.stat b{display:block;font-size:16px;font-weight:500;margin-top:5px}.gacha-actions{display:flex;gap:12px;justify-content:flex-end;margin:22px 0}.encounter-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}.encounter-card{border:1px solid var(--line);padding:0 0 12px;border-radius:10px;overflow:hidden;background:#fcf2f4;min-width:0}.encounter-face{display:block;height:150px;background:linear-gradient(#fae4e8,#f4d3e1)}.encounter-card b{display:block;font-size:11px;font-weight:500;margin-top:8px}.encounter-card small{display:block;color:var(--muted);font-size:9px}dialog{border:1px solid var(--line);background:#fff8f7;border-radius:18px;padding:28px;color:var(--ink);max-width:520px;width:calc(100% - 32px);max-height:85vh}dialog::backdrop{background:#4a203c66;backdrop-filter:blur(6px)}dialog h2{font-size:25px;margin:10px 0 20px}dialog button{display:block;width:100%;margin:8px 0}.toast{position:fixed;top:96px;left:50%;transform:translateX(-50%);background:#854b67ed;color:white;padding:12px 20px;border-radius:20px;z-index:50;font-size:11px;width:max-content;max-width:85vw;text-align:center}.danger{color:#b94f68}.end{max-width:850px;margin:35px auto;padding:25px;text-align:center}.end h1{font-size:32px;margin:15px 0}.end .cg{display:flex;height:390px;justify-content:center;background:linear-gradient(#f9e7ec66,#e8c5d599),url('assets/bg-lounge.webp') center/cover;border-radius:170px 170px 12px 12px;margin:25px 0;overflow:hidden}.end p{line-height:2.2}.panel{background:#fffaf9;border:1px solid var(--line);border-radius:12px;padding:22px}.end .primary,.end .light{margin:5px}.title-screen,.gacha,.end{animation:appear .45s ease}@keyframes appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:900px){.title-screen{padding:25px}.hero{gap:15px;min-height:650px}.cover{height:490px}.english-title{font-size:75px}.stage-person{height:105%;width:55%}.stage-person.self{left:-5%}.stage-person.partner{right:-5%}.remaining{display:none}.quick-stats{gap:20px}.profile-strip{gap:15px}.topbar{padding:14px 24px}}
@media(max-width:650px){body{font-size:13px}.title-screen{padding:20px}.brand b{font-size:9px}.brand .eyebrow{font-size:7px;letter-spacing:.1em}.hero{display:flex;flex-direction:column-reverse;gap:0;min-height:0}.cover{width:100%;height:350px;border-radius:150px 150px 12px 12px;margin:22px 0}.cover-person{height:110%;bottom:-30px;width:75%}.cover-person.girl{left:-17%}.cover-person.boy{right:-15%}.float-word{font-size:18px;top:38px}.cover-note{bottom:13px}.cover-note b{font-size:17px}.hero-copy{padding:10px 5px 30px;width:100%}.english-title{font-size:68px;line-height:.9}.english-title br{display:none}.english-title em{display:block;margin-left:60px}.japanese-title{font-size:16px;margin-top:15px}.hero h1{margin:15px 0}.hero .lead{font-size:17px;margin:22px 0 12px}.hero .subtle{font-size:11px}.hero-buttons{margin:22px 0 10px}.hero-buttons .primary{flex:1;font-size:12px}.hero-buttons .light{font-size:12px}.footer{align-items:flex-start;font-size:9px;gap:12px}.footer .small{font-size:9px;min-width:100px}.topbar{height:74px;padding:10px 14px;gap:10px}.logo{font-size:20px;white-space:normal;line-height:1}.logo em{display:block}.logo span{display:none}.age{font-size:20px}.age small{font-size:10px}.top-right{gap:6px}.funds b{font-size:15px}.funds span{font-size:8px}.menu-button{font-size:16px;width:25px}.top-facts{gap:0}.show-layout{padding:0 14px 110px;margin-top:16px}.romance-stage{height:370px;border-radius:14px;scroll-margin-top:90px}.stage-top{left:12px;right:12px;top:12px}.scene-tag{font-size:9px;padding:5px 10px}.scene-caption{display:none}.stage-person{height:97%;width:72%;bottom:0}.stage-person.self{left:-14%}.stage-person.partner{right:-14%}.person-label{bottom:66px}.person-label.self{left:16px}.person-label.partner{right:16px;max-width:54%}.person-label h2{font-size:22px;line-height:1.3}.person-label>span{font-size:7px;letter-spacing:.15em}.person-label p{font-size:9px;line-height:1.7}.stage-bottom{left:15px;right:15px;bottom:12px}.stage-bottom b{font-size:10px;letter-spacing:.08em}.stage-amp{font-size:55px;top:37%}.unknown-partner{right:3%;top:25%;max-width:45%}.unknown-partner p{font-size:14px}.unknown-partner>span{font-size:70px}.year-meter{padding:22px 2px 18px}.year-label>div{gap:8px}.year-label .eyebrow{font-size:8px;letter-spacing:.13em}.year-label b{font-size:12px}.year-label>span{font-size:20px}.year-track{gap:4px}.year-track i{height:8px}.year-ends{font-size:6px}.profile-strip{padding:14px;gap:10px;border-radius:10px}.profile-strip>div:first-child{flex:1}.profile-strip>div:first-child b{font-size:11px}.quick-stats{order:3;width:100%;flex:auto;justify-content:space-between;gap:10px}.quick-stats>span{font-size:9px}.quick-stats b{font-size:21px}.profile-strip .small{min-height:30px;padding:0;font-size:10px}.feed-header{padding:4px 3px 14px}.feed-header h2{font-size:21px}.post{padding:20px;margin-bottom:13px;border-radius:12px}.post p{font-size:12px}.post h3{font-size:18px}.choice{padding:13px;font-size:11px}.post .eyebrow{font-size:9px}.post .primary{font-size:11px}.dock{gap:0;padding:8px 5px max(8px,env(safe-area-inset-bottom));justify-content:space-around}.dock button{min-width:0;flex:1;padding:4px 0;font-size:9px;min-height:52px}.dock button span{font-size:20px}.gacha{margin:20px auto;padding:18px}.gacha h1{font-size:23px}.gacha-grid{grid-template-columns:1fr;padding:20px;gap:12px}.gacha-grid .portrait{height:280px;min-height:280px;max-width:240px;width:100%;margin:auto}.profile-name{font-size:22px}.stats{gap:16px 10px}.stat b{font-size:14px}.gacha-actions{justify-content:stretch}.gacha-actions button{font-size:11px;padding:13px 16px}.gacha-actions .primary{flex:1}.encounter-cards{gap:6px}.encounter-face{height:125px}.encounter-card b{font-size:10px}.encounter-card small{font-size:8px}.end{padding:18px;margin-top:15px}.end h1{font-size:24px}.end .cg{height:280px}.end p{font-size:12px}.toast{top:82px}.relationship-meters{max-width:100%}}

.footer>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}@media(max-width:650px){.footer{flex-direction:column;align-items:stretch}.footer>div{justify-content:flex-start}}

.year-track i.running-month{overflow:hidden}.running-month em{display:block;height:100%;background:linear-gradient(90deg,#edbbc6,#cb7291);border-radius:6px}.month-clock{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;margin-top:15px;padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:#fff9fa;font-size:10px}.month-clock>span{color:var(--muted)}.month-clock b{font-weight:500;color:#a54a68;font-variant-numeric:tabular-nums}.month-clock small{margin-left:auto;font-size:9px;color:var(--muted)}.choice-note{display:block;font-size:10px;margin:4px 0 0}@media(max-width:650px){.month-clock{gap:6px 10px;font-size:9px}.month-clock small{font-size:8px}}

.action-budget{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 16px;padding:12px 16px;border-radius:10px;background:#f8e8ef;color:#97536b;font-size:11px}.action-budget b{font-weight:500}.action-budget span{font-size:9px;color:var(--muted)}.message-question{background:linear-gradient(135deg,#fffdfc,#edf6f0);border-color:#cee1d4}.message-question .eyebrow{color:#5a8068}.message-question .post-head small{font-size:9px;color:var(--muted)}.message-question .choice{background:#f8fffa;border-color:#d6e7dc}.message-question .choice:hover{background:#e3f1e8}.commitment-note{font-size:10px;color:#9c5672;line-height:1.8;margin:12px 0 0}dialog button{white-space:normal;line-height:1.7}@media(max-width:650px){.action-budget{font-size:10px}.action-budget span{font-size:8px}}

.bgm-controls{position:fixed;right:18px;bottom:100px;z-index:28;display:flex;align-items:center;gap:4px;padding:5px 9px 5px 5px;background:#fff9f5ef;border:1px solid #e5cdd7;border-radius:24px;box-shadow:0 3px 18px #8f5c7812;backdrop-filter:blur(12px);font-size:10px}.bgm-controls>button{border:0;background:#f5e3ea;border-radius:20px;padding:8px 13px;min-height:36px;font-size:10px}.bgm-settings summary{cursor:pointer;padding:8px 4px;list-style:none;color:#9b6a80;font-size:10px}.bgm-settings summary::-webkit-details-marker{display:none}.bgm-options{position:absolute;right:0;bottom:56px;width:230px;border:1px solid #e5cdd7;border-radius:14px;background:#fff9f7;box-shadow:0 8px 28px #83546b22;padding:18px;display:grid;gap:10px}.bgm-options b{font:italic 14px Georgia;color:#a05f79}.bgm-options label{font-size:10px}.bgm-options input{width:100%;accent-color:#c96281;cursor:pointer;min-height:28px}.bgm-options small{font-size:9px;color:var(--muted);line-height:1.8}body[data-game-screen="title"] .bgm-controls,body[data-game-screen="gacha"] .bgm-controls,body[data-game-screen="ending"] .bgm-controls{bottom:18px}.date-picker{display:grid;gap:8px}.date-person{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #e7ced5;border-radius:12px;background:#fffdfb;padding:10px 14px;min-height:66px}.date-person b{display:block;font-size:12px;font-weight:500}.date-person small{display:block;font-size:10px;color:var(--muted)}.date-person-arrow{margin-left:auto;color:#b9708a}@media(max-width:650px){.bgm-controls{right:12px;bottom:86px}.bgm-controls>button{font-size:9px;min-height:34px;padding:6px 10px}.bgm-settings summary{font-size:9px}.bgm-options{width:210px}.date-person small{font-size:9px}}

.menu-bgm{border:1px solid #e7ced5;border-radius:12px;padding:14px;margin:18px 0;background:#fffdfb}.menu-bgm h3{font-size:16px;margin:0 0 8px}.menu-bgm label{display:grid;gap:6px;font-size:10px;color:var(--muted);margin:12px 0 0}.menu-bgm input{width:100%;min-height:28px;accent-color:#c96281}

/* Answer feedback: actual applied changes, including 0/100 clamping. */
.meter-cell{position:relative;min-width:0}.meter-cell .meter{grid-row:auto}.meter-change{position:absolute;right:6px;top:-20px;z-index:6;font-size:calc(16px - 2pt);font-weight:700;line-height:1.3;padding:2px 9px;border-radius:20px;pointer-events:none;box-shadow:0 2px 10px #83546b15;animation:meter-pop 2.2s ease-out both}.meter-change.positive{background:#fff0f5;color:#ad3c6a;border:0}.meter-change.negative{background:#f0f0fa;color:#655796;border:0}.meter-changing{animation:meter-fill .55s ease-out both}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes meter-pop{0%{opacity:0;transform:translateY(8px) scale(.85)}15%{opacity:1;transform:translateY(-4px) scale(1.12)}25%{transform:translateY(-7px) scale(1)}80%{opacity:1}100%{opacity:0;transform:translateY(-22px)}}@keyframes meter-fill{from{width:var(--meter-from)}}@media(prefers-reduced-motion:reduce){.meter-change,.meter-changing{animation:none}.meter-change{top:-24px}}

/* Portrait-first play layout. */
.show-layout{margin-top:8px}.year-meter{padding:8px 3px 9px}.year-label{margin-bottom:7px}.year-label b{font-size:12px}.year-label>span{font-size:18px}.year-track i{height:6px}.progress-hud{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.progress-hud .month-clock,.progress-hud .action-budget{display:flex;justify-content:center;align-items:center;gap:12px;margin:0;padding:6px 10px;min-height:30px;font-size:10px;border:1px solid #ecd9df;background:#fff9faaa;border-radius:8px;white-space:nowrap}.progress-hud .month-clock b,.progress-hud .action-budget b{font-weight:500}.romance-stage{height:330px;position:sticky;top:86px;z-index:12;box-shadow:0 8px 24px #81526720}.romance-stage:after{inset:32% 0 0;background:linear-gradient(transparent,#fff5f6ee 88%)}.stage-person{height:118%;width:48%;bottom:-50px}.stage-person.self{left:0}.stage-person.partner{right:0}.person-label{bottom:14px;max-width:44%}.person-label.self{left:22px}.person-label.partner{right:22px;width:42%;max-width:260px}.person-label h2{font-size:24px;margin:1px 0 3px}.person-label p{font-size:11px;line-height:1.65;margin:0}.stage-detail{font:inherit;font-size:11px;line-height:1.7;color:#83546b;border:0;background:none;padding:2px 0;min-height:24px;text-decoration:underline;text-underline-offset:3px}.person-label .meters{margin-top:6px;text-shadow:none}.person-label .meter-row{font-size:9px}.person-label .stage-deadline{font-size:9px}.stage-amp{top:25%;font-size:58px}.stage-feedback{position:absolute;right:4%;top:35%;width:44%;z-index:8;display:flex;flex-direction:column;gap:7px;align-items:center;pointer-events:none}.stage-feedback .stage-change{position:relative;inset:auto;display:block;font-size:calc(16px - 2pt);padding:5px 14px;white-space:nowrap}.story-grid{margin-top:12px}.feed-header{padding-bottom:10px}.feed-header h2{font-size:20px;margin-top:2px}.post{scroll-margin-top:440px}.stage-top{top:12px;left:18px;right:18px}.stage-top .scene-tag{font-size:9px;padding:4px 10px}.stage-top .scene-caption{font-size:10px}.unknown-partner{top:16%;right:10%}
@media(max-width:650px){.show-layout{margin-top:5px}.year-meter{padding:5px 2px 8px}.year-label>div{gap:6px}.year-label b{font-size:10px}.year-label .eyebrow{font-size:7px}.year-label>span{font-size:16px}.progress-hud{gap:6px;margin-bottom:8px}.progress-hud .month-clock,.progress-hud .action-budget{font-size:9px;padding:4px 5px;gap:7px;min-height:27px}.romance-stage{top:74px;height:300px;border-radius:12px}.stage-person{height:112%;width:68%;bottom:-32px}.stage-person.self{left:-13%}.stage-person.partner{right:-13%}.person-label{bottom:10px;max-width:45%}.person-label.self{left:12px}.person-label.partner{right:12px;width:44%}.person-label h2{font-size:19px}.person-label p,.stage-detail{font-size:9px;line-height:1.65}.stage-detail{min-height:22px}.person-label .meter-row{font-size:8px}.person-label .meters{gap:0 8px;margin-top:5px}.person-label .stage-deadline{font-size:8px}.stage-top{left:10px;right:10px;top:8px}.stage-top .scene-tag{font-size:8px;padding:3px 8px}.stage-feedback{right:1%;top:30%;width:49%;gap:5px}.stage-feedback .stage-change{font-size:calc(12px - 2pt);padding:4px 10px}.post{scroll-margin-top:385px}.unknown-partner{right:4%;top:12%}.unknown-partner p{font-size:12px}.story-grid{margin-top:9px}.feed-header .eyebrow{font-size:8px}.feed-header h2{font-size:19px}.bgm-controls{bottom:84px}}
@media(max-height:650px){.romance-stage{height:240px}.stage-person{height:130%;bottom:-56px}.stage-feedback{top:25%}.person-label h2{font-size:18px}}
/* Keep focused choices in the usable area below the pinned portrait. */
html:has(body[data-game-screen="play"]){scroll-padding-top:432px;scroll-padding-bottom:100px}.choice{scroll-margin-top:12px;scroll-margin-bottom:12px}@media(max-width:650px){html:has(body[data-game-screen="play"]){scroll-padding-top:390px;scroll-padding-bottom:90px}}@media(max-height:650px){html:has(body[data-game-screen="play"]){scroll-padding-top:340px}}

.stage-top .relationship-status{display:inline-block;color:#88546b;border:1px solid #fff9;background:#fff9f1d9;padding:5px 12px;font-family:inherit;font-size:10px;white-space:nowrap}.person-label.partner>span{letter-spacing:.12em}@media(max-width:650px){.stage-top .relationship-status{display:inline-block;font-size:9px;padding:4px 9px;max-width:65%;overflow:hidden;text-overflow:ellipsis}}

.travel-stage .stage-scene{filter:blur(.5px)}.travel-stage:before{background:linear-gradient(90deg,#f6e3e560,#ffffff12,#f6e3e560)}.travel-stage .scene-tag{background:#fff5ddeb;color:#865b33}.travel-stage{animation:trip-arrival .7s ease-out}@keyframes trip-arrival{from{box-shadow:0 0 0 3px #f6d998aa}to{box-shadow:0 8px 24px #81526720}}@media(prefers-reduced-motion:reduce){.travel-stage{animation:none}}

.marriage-guide{background:linear-gradient(120deg,#fff8ec,#fff0f5);border-color:#ead3b6}.marriage-guide h3{font-size:19px;margin:10px 0}.marriage-checks{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 17px}.marriage-checks span{font-size:10px;background:#fff9;border:1px solid #ebd7d8;border-radius:14px;padding:4px 10px}.marriage-guide .subtle{font-size:10px;margin:12px 0 0}.end .cg.wedding-cg{height:auto;display:block;padding:0;overflow:hidden;background:#faece9;aspect-ratio:16/9}.wedding-ending-image{display:block;width:100%;height:100%;object-fit:cover}.end .wedding-cg .wedding-ending-image{position:static;transform:none}@media(max-width:650px){.marriage-checks{display:grid;gap:5px}.marriage-checks span{font-size:9px}.marriage-guide h3{font-size:17px}}

.person-label.self .groom-bonus{color:#a33f69;font-weight:600}.person-label.self{padding-top:4px}

.compatibility-table{width:100%;border-collapse:collapse;font-size:12px;margin:16px 0}.compatibility-table th,.compatibility-table td{border-bottom:1px solid var(--line);padding:8px;text-align:left}.person-label.partner .stage-detail{font-size:9px}

.contact-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.contact-actions button{margin:0;width:100%;min-height:48px;text-align:center}.contact-actions button:last-child{grid-column:1/-1}@media(max-width:650px){.contact-actions{grid-template-columns:1fr;gap:8px}.contact-actions button:last-child{grid-column:auto}}

/* 365日のシンデレラ：編集できる見出しと、画像のキービジュアル。 */
.title-screen.cinderella-title{max-width:1320px;padding:30px 40px 20px}.cinderella-hero{display:grid;grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr);gap:40px;align-items:center;min-height:calc(100svh - 120px)}.cinderella-copy{--title-message-size:25px;padding:18px 0}.cinderella-genre{font-family:var(--serif);font-size:13px;letter-spacing:.19em;color:#866c70;margin:0 0 18px}.cinderella-wordmark{margin:0 -15px 4px;line-height:1}.cinderella-wordmark img{display:block;width:100%;height:auto;max-width:570px}.cinderella-subtitle{font-family:var(--serif);font-size:var(--title-message-size);letter-spacing:.04em;color:#815567;margin:5px 0 23px}.cinderella-question{font-size:var(--title-message-size);line-height:1.7;letter-spacing:.08em;margin:20px 0 14px;color:#634550}.cinderella-intro{font-size:12px;line-height:2.1;color:var(--muted);margin:0 0 20px}.cinderella-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 12px}.cinderella-buttons .primary{min-width:210px}.cinderella-rules{font-size:10px;line-height:1.9;margin:12px 0 0}.cinderella-key-art{margin:0;position:relative;border-radius:140px 140px 24px 24px;overflow:hidden;height:clamp(450px,75vh,760px);border:1px solid #e5ccb7;box-shadow:0 16px 54px #a2786324;background:#f3e5db}.cinderella-key-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:53% 48%}.cinderella-footer{padding-top:22px}.cinderella-game-logo{font-family:var(--serif);min-width:160px;line-height:1.12}.cinderella-game-logo .logo-days{display:block;font-family:var(--serif);font-size:13px;color:#80546b;letter-spacing:.08em;margin:0 0 3px}.cinderella-game-logo em{display:block;font-family:var(--serif);font-size:25px;font-style:normal;color:#b66d88}
@media(max-width:900px){.title-screen.cinderella-title{padding:24px}.cinderella-hero{gap:22px}.cinderella-key-art{height:560px;border-radius:110px 110px 18px 18px}.cinderella-copy{--title-message-size:21px}.cinderella-genre{font-size:11px;letter-spacing:.12em}.cinderella-buttons .primary{min-width:170px}.cinderella-wordmark{margin-left:-8px;margin-right:-8px}}
@media(max-width:650px){.title-screen.cinderella-title{padding:16px 20px 22px}.cinderella-hero{display:flex;flex-direction:column-reverse;min-height:0;gap:0}.cinderella-key-art{width:100%;height:auto;aspect-ratio:4/3;border-radius:80px 80px 16px 16px;margin:0 0 18px}.cinderella-key-art img{object-position:52% 36%}.cinderella-copy{--title-message-size:22px;width:100%;padding:0 2px}.cinderella-genre{font-size:10px;text-align:center;margin:0 0 5px;letter-spacing:.12em}.cinderella-wordmark{margin:0 -7px}.cinderella-wordmark img{width:100%;max-width:none}.cinderella-subtitle{text-align:center;letter-spacing:0;margin:0 0 18px}.cinderella-question{margin:10px 0;text-align:center;line-height:1.6}.cinderella-intro{text-align:center;font-size:11px;line-height:1.9;margin:12px 0}.cinderella-buttons{justify-content:center;margin:18px 0 10px}.cinderella-buttons .primary{min-width:0;flex:1}.cinderella-buttons .light{font-size:11px}.cinderella-rules{text-align:center;font-size:9px;line-height:1.9}.cinderella-footer{flex-direction:column;align-items:center;text-align:center;padding-top:26px;gap:12px}.cinderella-footer>div{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.cinderella-footer .small{font-size:9px;min-width:0}.cinderella-game-logo{min-width:108px;max-width:125px}.cinderella-game-logo .logo-days{display:block;font-size:10px;margin:0 0 2px}.cinderella-game-logo em{font-size:18px;white-space:nowrap}}

/* One result, revealed after a slowing portrait roulette. */
.gacha-roulette{text-align:center;min-height:85svh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}.gacha-roulette h1{margin:5px 0;font-size:clamp(24px,4vw,42px)}.roulette-window{position:relative;width:min(340px,76vw);height:min(410px,49svh);overflow:hidden;border:3px solid #e8c7cf;border-radius:140px 140px 28px 28px;background:linear-gradient(155deg,#fff9ef,#f3d9e1);box-shadow:0 16px 60px #b05a7722}.roulette-portrait{height:100%;animation:reel-frame .14s ease-out}.roulette-portrait img{width:100%;height:100%;object-fit:contain;object-position:center bottom}.roulette-spark{position:absolute;right:18px;top:25px;color:#fff6d7;font-size:30px}.roulette-status{color:#b14f73;letter-spacing:.12em;font-size:13px}.gacha-revealed .gacha-grid{animation:reveal-life .5s ease-out}@keyframes reel-frame{from{transform:translateY(-14px);opacity:.5}to{transform:translateY(0);opacity:1}}@keyframes reveal-life{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.roulette-portrait,.gacha-revealed .gacha-grid{animation:none}}

.goal-editor h3{margin:15px 0 18px}.goal-editor label{display:block;font-size:13px;margin-bottom:10px}.goal-editor textarea{width:100%;min-height:112px;resize:vertical;display:block;box-sizing:border-box;padding:14px 16px;border:1px solid #dfb9c7;border-radius:14px;background:#fffdfc;color:var(--ink);font:16px/1.8 'Noto Sans JP',sans-serif;letter-spacing:.02em}.goal-editor textarea:focus{outline:2px solid #c96281;outline-offset:2px}.goal-editor .help-text{margin:8px 0}.goal-error{color:#9f385e;min-height:20px;font-size:12px!important}.goal-buttons{display:flex;gap:12px;flex-wrap:wrap}.goal-copy{white-space:pre-line}@media(max-width:650px){.goal-editor label{font-size:12px}.goal-editor textarea{min-height:130px}.goal-buttons .primary{flex:1;font-size:12px}}

.scene-caption.relationship-status{display:inline-flex!important;align-items:center;justify-content:center;font-family:'Noto Sans JP',sans-serif;font-size:17px;font-weight:700;line-height:1.5;color:#ba356b;background:#fff0f6f2;border:1px solid #efb8d0;padding:9px 18px;border-radius:24px;box-shadow:0 3px 16px #ad3c6a19;max-width:70%;white-space:nowrap}@media(max-width:650px){.scene-caption.relationship-status{font-size:12px;padding:7px 12px;max-width:70%;letter-spacing:.02em}}

.marriage-ready{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border:1px solid #edcfda;background:#fff6f9;border-radius:16px;margin-bottom:16px}.marriage-ready span{color:#9e4e70}.date-question{border-color:#e7bfd0;background:linear-gradient(130deg,#fff8fb,#fff1f6)}.date-question .eyebrow{color:#b4547c}

.outgoing-chat-note{color:#986779;font-size:12px}.contact-actions button:last-child:nth-child(even){grid-column:auto}

/* Larger, readable partner stats and numeric relationship values. */
.person-label.partner p{font-size:14px;line-height:1.65}
.person-label.partner .meter-row{font-size:12px;font-weight:600}
.person-label.partner .male-look-score{color:#8e4968;font-weight:600}
.compatibility-table{font-size:16px}
@media(max-width:650px){.person-label.partner p{font-size:12px}.person-label.partner .meter-row{font-size:11px}.compatibility-table{font-size:14px}}

.result-share{margin:32px 0;padding:24px;border:1px solid var(--line);border-radius:22px;background:#fffcfb;text-align:left}.result-share h2{font-size:24px}.result-share canvas{display:block;width:100%;height:auto;border-radius:14px;border:1px solid var(--line);background:#f6e8ec}.result-share-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.result-share-actions a{display:inline-flex;align-items:center;border:1px solid #e7ced5;border-radius:30px;padding:12px 20px;color:var(--ink);text-decoration:none}.share-copy-label{display:block;font-weight:600;margin:16px 0 6px}.result-share textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:12px;padding:14px;background:#fff;font:inherit;font-size:14px;line-height:1.7;color:var(--ink)}#result-share-status{font-size:13px;margin:10px 0;color:#95627a}.result-share .help-text{font-size:12px;margin-bottom:0}@media(max-width:650px){.result-share{padding:14px}.result-share h2{font-size:20px}.result-share-actions>*{width:100%;justify-content:center}.result-share textarea{font-size:16px}}

/* A brief month change announcement never blocks choices or taps. */
.month-cutin{position:fixed;inset:0;z-index:150;display:grid;place-items:center;pointer-events:none;background:radial-gradient(ellipse,rgba(255,240,246,.38),transparent 65%);animation:month-veil 1.9s ease both}
.month-cutin-card{position:relative;width:min(88vw,440px);padding:22px 34px 18px;text-align:center;border:1px solid #ffffffde;border-radius:28px;background:linear-gradient(125deg,#fff9f5f5,#fbe0ecef,#efe7f8ef);box-shadow:0 20px 80px #a84d7830,0 0 36px #fff9;color:#a33b6c;animation:month-card 1.9s ease both}
.month-cutin-card>span{display:block;font-size:15px;font-weight:600;letter-spacing:.1em}.month-cutin-card strong{display:block;font-family:Georgia,serif;font-size:100px;line-height:1.05;font-weight:500}.month-cutin-card small{font-family:inherit;font-size:30px;margin-left:8px}.month-cutin-card i{position:absolute;right:30px;top:28px;font-size:28px;color:#ce9a4f;font-style:normal}
@keyframes month-card{0%{opacity:0;transform:translateY(18px) scale(.93)}16%,76%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-14px) scale(1.025)}}
@keyframes month-veil{0%,100%{opacity:0}15%,80%{opacity:1}}
@media(prefers-reduced-motion:reduce){.month-cutin-card{animation:none}.month-cutin{animation:month-veil 1.9s linear both}}

.ending-insight{margin:24px 0 14px;padding:0 4px;text-align:left}.ending-insight h3{font-size:18px;color:#a64470;margin:0 0 12px}.ending-insight p{font-size:16px;line-height:1.9;margin:8px 0}.ending-insight .ending-insight-note{font-size:14px;color:#8a6d79}

.stage-contacts{position:absolute;top:42px;left:10px;right:10px;z-index:9;display:flex;gap:5px;overflow-x:auto;padding:3px;scrollbar-width:thin}.stage-contacts:empty{display:none}.stage-contact{display:flex;align-items:center;gap:4px;flex:none;max-width:145px;min-height:44px;border:1px solid #e5c6d0;border-radius:8px;background:#fff9f5ed;padding:3px 6px;color:#714659;font:inherit;font-size:9px;text-align:left}.stage-contact[aria-pressed="true"]{outline:2px solid #b34b73;outline-offset:-2px}.stage-contact:disabled{opacity:1;cursor:default}.stage-contact small{display:block;font-size:8px}.contact-face{display:block;width:26px;height:34px;overflow:hidden;border-radius:5px}.contact-face img{width:100%;height:100%;object-fit:cover;object-position:top}

.event-still-layer{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:#151222f5;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain}.event-still-frame{position:relative;width:min(1100px,100%);border:1px solid #e3d1e0;border-radius:14px;overflow:hidden;background:#171324;box-shadow:0 0 50px #e9abc040}.event-still-image{display:block;width:100%;max-height:calc(100dvh - 32px);object-fit:contain;min-height:180px}.event-still-copy{position:absolute;inset:auto 0 0;padding:45px 20px 20px;text-align:center;color:#fff;background:linear-gradient(transparent,#171126ed 35%)}.event-still-copy h2{font-size:clamp(18px,2.5vw,30px);color:inherit;line-height:1.6;margin:0 0 8px}.event-still-copy p{font-size:clamp(12px,1.7vw,18px);line-height:1.8;margin:0 0 16px}.event-still-copy button{min-width:160px;min-height:44px}.event-still-layer.bright .event-still-frame{box-shadow:0 0 70px #f2cf7280}.event-still-layer.uneasy .event-still-copy{background:linear-gradient(transparent,#241b34f5 35%)}.event-notification{width:min(520px,100%);border-radius:18px;background:#fff6f5;color:#72465e;padding:28px;box-shadow:0 14px 60px #0007}.event-notification>span{font-size:12px}.event-notification h2{font-size:20px;line-height:1.8}.event-notification button{margin-top:14px;min-height:44px}@media(max-width:650px){.event-still-frame{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);overflow:auto}.event-still-image{min-height:0;max-height:62dvh;flex:none;object-fit:contain}.event-still-copy{position:relative;padding:20px 16px;background:#21182e}.event-still-copy h2{font-size:18px}.event-still-copy p{font-size:12px}.event-still-layer.uneasy .event-still-copy{background:#21182e}}

/* Test-play improvements T-003–T-011: preserve the original artwork. */
.life-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.life-cards .choice{min-width:0;padding:18px 12px;text-align:center}.life-cards b{display:block;font-size:18px;line-height:1.5}.life-cards small{display:block;font-size:11px;margin-top:8px;font-weight:400}
.romance-stage{height:280px;position:relative;top:auto;z-index:1}.stage-person{width:50%;height:390px;bottom:-108px}.stage-person.self{left:0}.stage-person.partner{right:0}.person-label{bottom:10px;max-width:47%}.person-label.self{left:12px}.person-label.partner{right:12px;width:45%}.person-label h2{font-size:21px}.person-label .spec-band{font-size:11px;line-height:1.6;padding:3px 5px;background:#fffaf2d9;border-radius:4px}.person-label .groom-bonus{font-size:11px}.person-label .relationship-status{display:block;font-size:10px;color:#9e456b}.person-label .meters{background:#fffaf2dd;padding:3px 5px;border-radius:5px}.stage-detail,.person-label.partner .stage-detail{font-size:11px;text-decoration:underline;border:0;border-radius:0;background:transparent;padding:3px 0}.stage-contacts{top:9px;left:auto;right:8px;max-width:48%;gap:5px}.stage-contact{min-width:40px;width:40px;min-height:44px;padding:2px;border-radius:50%;background:#fff8;justify-content:center}.contact-face{width:34px;height:38px;border-radius:50%}.stage-contact[aria-pressed="true"]{outline:3px solid #ed72a1}.stage-amp{top:22%;font-size:42px}
[data-funds-value],[data-groom-value]{position:relative;display:inline-block}.resource-pop{position:absolute;inset:0;display:grid;place-items:center;white-space:nowrap;background:#fff7f4f2;font-size:19px;z-index:10;animation:resource-pop 2s ease both}.resource-pop.expense{color:#d53850}.resource-pop.income{color:#246cc8}.resource-pop.groom{color:#b75d13;font-size:19px;background:#fff8ddef;text-shadow:0 0 8px #fbc84e}.hint-target{outline:3px solid #dc79a2;outline-offset:-4px}.tutorial-bubble{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);z-index:100;width:min(90vw,420px);padding:20px;background:#fff7fb;border:2px solid #dc79a2;border-radius:20px;box-shadow:0 8px 35px #71465940}.tutorial-bubble:after{content:'';position:absolute;bottom:-12px;left:48%;border:6px solid transparent;border-top-color:#dc79a2}.tutorial-bubble p{font-size:15px}.tutorial-bubble button{min-height:44px}.event-still-layer{padding:0;overflow:hidden}.event-still-frame{width:100vw;height:100dvh;max-height:none;border:0;border-radius:0;display:block;overflow:hidden;isolation:isolate}.still-backdrop{position:absolute;inset:-4%;width:108%;height:108%;object-fit:cover;filter:blur(24px) brightness(.65);z-index:-1}.event-still-image{width:100%;height:100%;max-height:none;min-height:0;object-fit:contain}.event-still-copy,.event-still-layer.uneasy .event-still-copy{position:absolute;inset:auto 0 0;padding:70px 20px max(30px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#21182eea 45%)}.wedding-reflection{min-height:80dvh;display:flex;flex-direction:column;justify-content:center}.journey-story{margin:24px auto;max-width:600px;line-height:2.2;text-align:left}.wedding-reflection h1{font-size:clamp(24px,5vw,40px)}
@keyframes resource-pop{0%{opacity:0;transform:scale(.7)}15%,75%{opacity:1;transform:scale(1)}100%{opacity:0;transform:translateY(-8px)}}
@media(max-width:650px){.life-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.life-cards b{font-size:16px}.life-cards small{font-size:11px}.romance-stage{height:260px;top:auto}.stage-person{height:355px;bottom:-92px;width:64%}.stage-person.self{left:-7%}.stage-person.partner{right:-7%}.person-label h2{font-size:18px}.person-label .spec-band{font-size:10px;line-height:1.65}.person-label .meter-row{font-size:10px}.person-label .groom-bonus{font-size:10px}.stage-top{max-width:45%}.event-still-image{height:100%;max-height:none;object-fit:contain}.event-still-copy h2{font-size:21px}.event-still-copy p{font-size:14px}.event-still-copy{padding-left:16px;padding-right:16px}.post{scroll-margin-top:90px}}
@media(prefers-reduced-motion:reduce){.resource-pop{animation:none}}
.stage-person.partner{height:360px;bottom:-82px}.person-label .meter-row{white-space:nowrap}.stage-contacts{max-width:140px}
@media(max-width:650px){.romance-stage{height:280px}.stage-person.partner{height:330px;bottom:-56px}.stage-contacts{max-width:140px}.person-label.partner .meters{display:grid;grid-template-columns:1fr;gap:3px}.person-label.partner .meter-row{display:flex;justify-content:space-between;font-size:10px;line-height:1.5}.person-label.partner .spec-band{font-size:9px}.person-label.partner{width:45%}.person-label.self .spec-band{font-size:10px}.person-label.partner .meter{height:4px}}

/* V2.0 compact interface. Character image sizing remains in existing rules. */
.version-label{display:block;color:#9b7d84;font-family:Georgia,serif;font-size:12px;letter-spacing:.22em;margin:-8px 0 12px}
.my-life-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.my-life-heading h3{margin:0}.my-life-heading small{font-size:11px}.my-life-heading>span{font-size:12px;margin-left:auto}
.meter-cell{position:relative}.meter-cell .meter-change{position:absolute;right:0;top:-22px;z-index:4;font-size:calc(18px - 2pt);white-space:nowrap}.family-profile{font-size:11px;margin:4px 0 0}.dock button{color:#84415a}.dock button:disabled{color:#906d7b;opacity:.7}
.topbar{gap:14px;padding:8px 18px;min-height:74px}.cinderella-game-logo img{width:138px;height:58px;object-fit:contain}.header-month{font-size:32px;color:#ac2356;white-space:nowrap}.header-month small{font-size:18px}.top-facts{display:flex;gap:18px;align-items:center;flex:1}.header-progress{flex:1;min-width:100px}.header-progress-copy{font-size:12px;display:flex;gap:12px;align-items:baseline}.header-progress-copy #clock-time{font-size:11px;color:#ac2356}.header-progress .year-meter{margin:5px 0 0;padding:0}.header-progress .year-label{display:none}.header-progress .year-track{gap:3px}.header-progress .year-track i{height:5px}.header-action{display:grid;gap:2px;white-space:nowrap;border-right:1px solid #e5cdd5;padding-right:12px}.header-action small{font-size:10px}.header-action b{font-size:20px}.feed-header{min-height:28px;padding:6px 12px;margin:0}.feed-header .eyebrow{font-size:11px}.show-layout{padding-top:8px}.timeline .post{padding:18px 24px;margin-bottom:14px}.message-question .post-head{gap:12px}.message-question .post-head small{font-size:11px}.message-question .choices{gap:8px}.message-question .choice{padding:13px 16px}.message-question p{margin:10px 0 18px}.invitation-result{border:2px solid #c68d9d;box-shadow:0 12px 36px #8b536122}.my-life-heading+.eyebrow{display:none}
@media(min-width:900px){.topbar{position:relative}.show-layout{padding-top:0}.story-grid{margin-top:4px}.stage-top .scene-tag{display:none}.message-question .post-head .eyebrow{font-size:10px}.message-question .post-head small{display:inline}.message-question .post-head .post-name{display:inline;margin-right:12px}}
@media(max-width:600px){.topbar{gap:6px;padding:6px 10px;flex-wrap:wrap}.cinderella-game-logo img{width:90px;height:42px}.top-facts{gap:8px}.header-month{font-size:25px}.header-progress-copy{font-size:10px;display:block}.header-action{padding-right:6px}.header-action b{font-size:15px}.top-right{gap:7px}.header-progress{min-width:80px}.timeline .post{padding:16px}.family-profile{max-width:165px;line-height:1.4}.my-life-heading{gap:8px}.my-life-heading h3{font-size:16px}}
.invitation-result{position:fixed;z-index:100;top:50%;left:50%;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 32px));max-height:85vh;overflow:auto;background:#fff8fa;box-shadow:0 0 0 100vmax #48313e66,0 16px 60px #48313e44}

@media(max-width:600px){.topbar{height:auto;min-height:74px;display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;position:relative}.top-facts{min-width:0}.header-progress{min-width:0}.top-right{grid-column:1 / -1;justify-content:flex-end;padding-top:2px;border-top:1px solid #efdee4}.header-action{display:flex;align-items:baseline;gap:6px}.header-action b{font-size:14px}.header-progress-copy{white-space:normal}.header-progress-copy #clock-time{display:inline-block;margin-left:4px}.family-profile{font-size:10px}.person-label .spec-band{font-size:10px}}
.post:has(.my-life-heading)>.eyebrow{display:none}@media(max-width:600px){.my-life-heading{flex-wrap:nowrap;gap:4px}.my-life-heading h3{font-size:14px;white-space:nowrap}.my-life-heading small{font-size:9px}.my-life-heading>span{font-size:10px;white-space:nowrap}}

/* Keep each disclosed requirement readable at narrow widths. */
.person-label .family-profile{line-height:1.4}.family-profile span{display:inline-block;white-space:nowrap}

/* Next test UI */
.next-dock{display:flex;justify-content:center;gap:12px}.new-encounter,.relationship-main{background:#bb3657;color:#fff;border:0;border-radius:12px;padding:12px 18px;min-height:48px;font-weight:700}.relationship-main{margin:8px 0;max-width:100%;white-space:normal}.person-label.partner .spec-band{background:transparent;border:0;box-shadow:none;font-size:11px}.male-profile-link{color:#31744c}.male-profile-cards{display:flex;overflow-x:auto;gap:18px;scroll-snap-type:x mandatory;max-width:82vw}.male-profile-card{flex:0 0 280px;scroll-snap-align:start}.profile-portrait{height:220px;background:#f4eee8;border-radius:16px}.profile-portrait img{height:100%;width:100%;object-fit:contain}.male-profile-card dl>div{display:flex;justify-content:space-between;border-bottom:1px solid #eee;padding:7px}.male-profile-card dd{margin:0}.male-profile-card dt{color:#777}.stage-contacts{z-index:6}.person-label.partner{z-index:5}dialog{max-width:min(95vw,960px)}@media(min-width:900px){.stage-person.self{left:11%}.stage-person.partner{right:11%}}@media(max-width:600px){.relationship-main{font-size:11px;padding:8px;min-height:40px}.person-label.partner .spec-band{font-size:10px}.male-profile-card{flex-basis:245px}.next-dock{padding-bottom:env(safe-area-inset-bottom)}.person-label.partner{max-width:48%}}

.relationship-row{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px;align-items:center}.relationship-row .relationship-main{width:110px;font-size:11px;padding:8px}.relationship-row>div{min-width:0}.person-label.partner .spec-band{padding:2px 0!important;background:none!important;border:0!important;box-shadow:none!important}@media(max-width:600px){.relationship-row{grid-template-columns:75px minmax(0,1fr);gap:4px}.relationship-row .relationship-main{width:75px;font-size:10px;line-height:1.5}.person-label.partner{max-width:49%;right:1%}.male-profile-link{display:block}}
.romance-stage{height:410px}.stage-person.self{top:0;bottom:auto;height:360px;width:45%}.stage-person.partner{top:0;bottom:auto;height:340px;width:45%}.relationship-row{grid-template-columns:120px minmax(0,1fr)}.relationship-row .relationship-main,.next-dock .new-encounter{width:120px;min-height:64px;height:64px;margin:0;background:#bb3657;color:#fff;flex:none}.next-dock .new-encounter{background:#bb3657!important;color:white!important;border-radius:12px}.person-label.partner .male-profile-link{color:#31744c}.stage-contacts .small{background:#fffdf4e8;color:#714659;border:1px solid #e4ccd3;border-radius:8px;padding:5px 8px}.person-label.partner .spec-band{font-size:11px}@media(max-width:650px){.romance-stage{height:400px}.stage-person.self{left:-4%;height:290px;width:60%}.stage-person.partner{right:-4%;height:290px;width:60%}.relationship-row{grid-template-columns:90px minmax(0,1fr);gap:4px}.relationship-row .relationship-main,.next-dock .new-encounter{width:90px;height:64px;min-height:64px}.relationship-row .relationship-main{font-size:10px}.person-label.partner .meter-row{font-size:9px}.person-label.partner{width:48%;max-width:48%;right:2%}.person-label.self{max-width:45%}.person-label.partner .spec-band{font-size:9px}}
.stage-relationship-bar{position:absolute;z-index:6;bottom:10px;right:12px;width:45%;align-items:center}.stage-relationship-bar .meters{display:grid;gap:6px;background:#fffaf2d9;padding:8px;border-radius:6px;margin:0}.stage-relationship-bar .meter-row{font-size:11px;white-space:nowrap}.person-label.partner{bottom:90px}.stage-contacts{top:8px}.stage-contacts .small{font-size:9px;min-height:32px}@media(max-width:650px){.romance-stage{height:450px}.person-label.self,.person-label.partner{bottom:90px}.stage-relationship-bar{left:10px;right:10px;width:auto;grid-template-columns:90px minmax(0,1fr);gap:10px}.stage-relationship-bar .meter-row{font-size:10px}.stage-contacts{max-width:130px}.stage-contacts .small{font-size:8px}}

.stage-person.self,.stage-person.partner{top:40px}

/* V2.2 compact overrides */
.cinderella-footer{display:block!important;text-align:left!important}.cinderella-footer>div{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-start!important}.cinderella-footer button{font-weight:800!important;color:#ffb8d8!important}.title-notice{font-size:12px;line-height:1.9;color:#f0dce6;max-width:1000px;margin:16px 0}.header-progress{max-width:215px}.year-track{height:5px}.year-track span{display:none}.top-right{gap:6px;flex-wrap:nowrap}.header-love,.header-meet{font-size:12px;padding:8px;line-height:1.5;max-width:140px;min-height:44px}.header-meet.emphasis{background:#c83266;color:white}.header-meet.muted{opacity:.6}.header-action b{white-space:nowrap;font-size:17px}.groom-bonus{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.groom-bonus .stage-detail{margin:0}.stage-contacts{display:flex!important;align-items:center;gap:4px;max-width:95%;overflow-x:auto;z-index:7}.contact-circle{border-radius:50%;padding:0;width:36px;height:36px;flex:0 0 36px;overflow:hidden;background:#f7d8df}.contact-circle img{width:100%;height:100%;object-fit:cover;object-position:50% 15%}.male-profile-cards{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;max-width:min(88vw,1000px)}.male-profile-card{flex:0 0 270px;scroll-snap-align:start}.male-profile-cards.single{max-width:280px}.male-profile-card>button{width:100%}dialog:has(.male-profile-cards){width:fit-content;max-width:96vw}.male-profile-cards .profile-portrait{height:220px}.photo-breakup{position:absolute;top:0;left:0;width:100%;font-size:11px;z-index:8;background:#b62c5c;color:white;padding:5px}.stage-person.partner{position:absolute}.spec-band b,[data-funds-value],[data-groom-value]{position:relative}.resource-pop,.meter-change{position:absolute;right:0;top:-18px;z-index:20;white-space:nowrap;font-weight:800;pointer-events:none}.rank-sparkle{animation:rankSparkle 1s}.rank-sparkle:after{content:'✦ ✧ ✦';position:absolute;top:-20px;left:0;color:#f8c642}.engagement-cutin{position:fixed;inset:35% 5% auto;background:#fff3cf;color:#a25714;border:3px solid #e6b74a;box-shadow:0 0 60px #ffe8a7;z-index:1000;text-align:center;padding:35px;font-size:28px;font-weight:bold;border-radius:20px}@keyframes rankSparkle{50%{filter:drop-shadow(0 0 8px gold);transform:scale(1.08)}}
@media(max-width:600px){body{overflow-x:hidden}.topbar{padding:3px!important;gap:3px!important;flex-wrap:wrap!important}.topbar .logo{width:76px!important;flex:0 0 76px}.top-facts{flex:1!important;min-width:0!important}.header-progress{max-width:180px}.header-progress-copy{font-size:11px!important;white-space:normal!important}.top-right{width:100%;display:grid!important;grid-template-columns:60px 66px minmax(0,1.25fr) minmax(0,1fr) 28px;gap:3px!important}.header-action,.funds{padding:2px!important;min-width:0!important}.header-action small,.funds span{font-size:10px!important}.header-action b,.funds b{font-size:13px!important}.header-love,.header-meet{padding:4px 3px!important;font-size:11px!important;width:100%;max-width:none;overflow-wrap:anywhere}.menu-button{padding:3px!important;min-width:0!important}.show-layout,.story-grid,.timeline,.dock{margin-left:3px!important;margin-right:3px!important;padding-left:0!important;padding-right:0!important;width:auto!important}.romance-stage{margin-left:0!important;margin-right:0!important}.stage-contacts{gap:3px!important}.stage-relationship-bar{justify-content:flex-end!important}.person-label.self .spec-band{font-size:9px!important}.groom-bonus{font-size:10px!important}.groom-bonus button{font-size:10px!important}.choices{gap:3px!important}.choice{padding:10px 6px!important;overflow-wrap:anywhere}.male-profile-card{flex-basis:240px}.male-profile-cards{max-width:83vw}.cinderella-footer{padding:12px 3px!important}.cinderella-footer>div{gap:3px}.cinderella-footer button{font-size:12px}.title-notice{font-size:11px}}
.header-love.muted{opacity:.55}@media(max-width:600px){.photo-breakup{width:auto;right:15px;left:auto;max-width:160px}}
.stage-relationship-bar{display:block!important}.stage-relationship-bar .meters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.stage-relationship-bar .meter-row{display:flex;justify-content:space-between;gap:4px}.cinderella-footer button{color:#cb2c70!important}.title-notice{color:#765363}@media(max-width:650px){.stage-relationship-bar{left:3px;right:3px;width:auto;bottom:8px}.stage-relationship-bar .meters{gap:10px}.stage-relationship-bar .meter-row{font-size:11px}}

/* V2.3 compact conversation cards and anchored tutorial */
.timeline>.conversation-post{display:grid;grid-template-columns:40px minmax(0,1fr);gap:2px 10px;padding:12px 14px;min-height:0;}
.timeline>.conversation-post .post-head{display:contents}.timeline>.conversation-post .post-head>.avatar{grid-column:1;grid-row:1 / span 2;width:40px;height:40px}.timeline>.conversation-post .post-head>div:last-child{grid-column:2}.timeline>.conversation-post>p{grid-column:2;margin:0;overflow-wrap:anywhere;line-height:1.65}.timeline>.conversation-post .post-name{font-size:13px;line-height:1.4}.timeline>.conversation-post .date{display:none}
.tutorial-bubble::before{content:'';position:absolute;left:var(--arrow-x,50%);top:-9px;bottom:auto;border-left:9px solid transparent;border-right:9px solid transparent;border-bottom:10px solid #fff;transform:translateX(-50%)}

.compact-main .timeline>.conversation-post>p{margin:0;font-size:14px;line-height:1.65;align-self:start}.compact-main .timeline>.conversation-post{row-gap:2px;align-content:start}.compact-main .timeline>.conversation-post .post-head{margin:0}

.tutorial-bubble::after{display:none}.tutorial-bubble::before{top:-11px;border-bottom-color:#dc79a2}

/* Keep skill EP and action-count feedback anchored to its own value. */
[data-skill],[data-action-count-value]{position:relative}
.meter-change.resource-change,.compact-main .meter-change.resource-change{position:absolute;inset:auto auto auto 0;top:100%;margin-top:2px;display:inline-block;font-size:calc(17px - 2pt);line-height:1.3;padding:2px 9px;border:0;border-radius:20px;box-shadow:0 2px 10px #83546b15;animation:meter-pop 2.2s ease-out both;pointer-events:none;z-index:20}
.resource-change.action-use{background:#fff0f5;color:#ad3c6a;border:0}
@media(prefers-reduced-motion:reduce){.resource-change{animation:none}}

.meter-change.resource-change.money-change{top:-24px;margin-top:0}
