@charset "UTF-8";
:root{--ink:#273e39;--muted:#738079;--paper:#f8f5ef;--cream:#eee7dc;--green:#2f554a;--peach:#d5a080;--line:#dfdfd4;--serif:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;--sans:"Yu Gothic UI","Hiragino Kaku Gothic ProN","Meiryo",sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:var(--sans);font-size:15px;line-height:1.7}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #bd835f;outline-offset:4px}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:500}button{touch-action:manipulation}.site-header{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:0 5vw;background:#f8f5eff5}.brand{text-decoration:none;font-family:var(--serif);font-size:18px;letter-spacing:.04em;white-space:nowrap}.brand-mark{display:inline-block;width:32px;height:32px;vertical-align:middle;color:#ac7d64;margin-right:8px;flex-shrink:0}.brand-mark svg,.small-step>span svg{display:block;width:100%;height:100%}.edition{margin-left:auto;font-size:11px;letter-spacing:.15em;color:var(--muted)}.text-button{border:0;background:transparent;padding:8px 4px;font-size:12px;letter-spacing:.04em}.text-button:hover{text-decoration:underline}.primary-button,.secondary-button,.next-button{border:1px solid var(--green);border-radius:4px;padding:13px 22px;letter-spacing:.06em;font-size:13px;transition:background .2s,transform .2s}.primary-button,.next-button{background:var(--green);color:#fff}.secondary-button{background:transparent;color:var(--green)}.primary-button:hover,.next-button:hover{background:#1c3d33}.secondary-button:hover{background:#ecefe5}.landing{max-width:1160px;margin:auto;padding:48px 28px 30px}.landing-heading{text-align:center}.eyebrow{font-size:11px;letter-spacing:.22em;color:#8b725e}.landing h1{font-family:var(--serif);font-size:clamp(32px,3.4vw,48px);line-height:1.5;letter-spacing:.13em;margin:12px 0}.landing h1 span{color:#ab8065}.mobile-break{display:none}.intro-copy{font-size:14px;line-height:1.95;color:#64716a;letter-spacing:.05em}.duration{font-size:11px;color:#7a8178;margin-top:17px;letter-spacing:.05em}.duration span{font-size:17px;margin-right:5px}.saved-actions{display:flex;justify-content:center;gap:20px;margin:22px 0}.name-row{display:flex;align-items:center;justify-content:center;gap:14px;margin:27px 0 36px;font-size:12px}.name-row input{background:#fffaf2;border:0;border-bottom:1px solid #b6bdb0;border-radius:0;width:150px;padding:6px 8px;text-align:center;color:var(--ink)}.name-row>span{font-size:10px;color:#8b8d81}.selection-heading{display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:24px}.selection-heading h2{font-size:13px;letter-spacing:.1em}.small-line{height:1px;width:52px;background:#c7cbbf}.mentor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.mentor-card{display:block;width:100%;text-align:left;border:1px solid #dcded3;padding:0;border-radius:5px;overflow:hidden;background:#fffdf8;transition:transform .2s,border-color .2s,box-shadow .2s}.mentor-card:hover{transform:translateY(-5px);border-color:#839487;box-shadow:0 12px 30px #243a3010}.mentor-image{height:300px;position:relative;display:block;overflow:hidden;background:radial-gradient(ellipse at 35% 5%,#fffbeb,#dedfd2 80%)}.mentor-card:nth-child(2) .mentor-image{background:radial-gradient(ellipse at 35% 5%,#fff5e4,#e5dac9 80%)}.mentor-card:nth-child(3) .mentor-image{background:radial-gradient(ellipse at 35% 5%,#f6f5ea,#d7dcd7 80%)}.character-art{background-image:url('assets/characters.png');background-repeat:no-repeat;background-size:300% 100%;background-position-x:calc(var(--char) * 50%);aspect-ratio:2/3}.mentor-image .character-art{height:560px;width:373.333px;max-width:none;position:absolute;top:6px;left:50%;transform:translateX(-50%)}.card-number{position:absolute;left:19px;top:14px;color:#7f8d7c88;letter-spacing:.1em;font-size:11px}.mentor-copy{display:block;padding:24px 23px 20px}.roman-name{display:block;letter-spacing:.23em;color:#8a927f;font-size:9px}.mentor-name{display:block;font-family:var(--serif);font-size:24px;letter-spacing:.16em;margin:5px 0 13px}.mentor-name small{display:block;font-family:var(--sans);font-size:10px;letter-spacing:.1em;color:#7f857b;margin-top:5px}.mentor-tag{font-family:var(--serif);display:block;font-size:14px;margin-bottom:8px;letter-spacing:.025em}.mentor-description{display:block;color:#7d8378;font-size:11px;line-height:1.9;min-height:43px}.select-link{display:flex;justify-content:space-between;margin-top:22px;padding-top:15px;border-top:1px solid #e4e5da;font-size:11px;letter-spacing:.06em}.select-link>span{font-size:18px}.landing-note{margin:27px auto 0;max-width:700px;color:#85897e;font-size:10px;text-align:center}.landing-note details{margin-top:12px}.landing-note summary{cursor:pointer}.landing-note details p{margin:12px 0;text-align:left;font-size:11px}.danger{color:#93685f}.game-shell{max-width:1180px;margin:0 auto;padding:0 24px}.chapter-bar{height:67px;display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:.1em}.chapter-bar>div:first-child{display:flex;align-items:center;gap:15px}.chapter-number{font-family:var(--serif);font-size:23px;color:#a98770}.chapter-dots{display:flex;gap:7px}.chapter-dots span{display:block;width:24px;height:2px;background:#d9ddcf}.chapter-dots .done{background:#547566}.story-stage{position:relative;isolation:isolate;overflow:hidden;border-radius:7px;background:#cdcbbd;box-shadow:0 8px 35px #25372d0a;padding-bottom:28px;min-height:590px}.scene-background,.scene-tint{position:absolute;inset:0;z-index:-2}.scene-background{background-image:url('assets/backgrounds.png');background-repeat:no-repeat}.scene-tint{background:linear-gradient(90deg,#102e2b50,#183a2510 65%),linear-gradient(0deg,#1b332b77,transparent 65%);z-index:-1}.visual{height:348px;position:relative;overflow:hidden}.scene-caption{position:relative;z-index:2;color:#fffdf2;padding:45px 0 0 52px;width:55%;text-shadow:0 2px 12px #142c2c80}.scene-caption>span{font-size:10px;letter-spacing:.18em}.scene-caption p{font-size:10px;letter-spacing:.16em;opacity:.9}.stage-character{position:absolute;right:7%;top:6px;height:690px;width:460px;filter:drop-shadow(0 4px 16px #142c2020)}.dialogue-area{position:relative;z-index:3;max-width:980px;margin:-3px auto 0;padding:0 28px}.dialogue-box{background:#fffffff3;border:1px solid #fff;border-radius:5px;padding:19px 30px 14px;box-shadow:0 8px 28px #14322518;min-height:227px;backdrop-filter:blur(10px)}.speaker-line{display:flex;justify-content:space-between;align-items:center;min-height:26px;margin-bottom:9px}.speaker-name{font-family:var(--serif);letter-spacing:.14em;font-size:15px;color:#294e42}.reading-count{font-size:9px;color:#a0a397;letter-spacing:.12em}.dialogue-text{font-size:15px;line-height:2.05;letter-spacing:.045em;min-height:88px;overflow-wrap:anywhere}.narration .dialogue-text{color:#535e52;font-size:14px}.dialogue-actions{display:flex;justify-content:space-between;align-items:center;margin-top:16px;gap:14px}.next-button{min-width:142px;font-size:11px;padding:10px 21px}.choices{margin-top:20px}.choices h2{text-align:center;font-family:var(--serif);font-size:15px;color:#fffdf3;text-shadow:0 2px 12px #12271c;letter-spacing:.06em;margin-bottom:14px}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.choice-button{display:flex;align-items:center;gap:15px;border:1px solid #d4d9cb;border-radius:4px;background:#fffffff5;padding:13px 16px;text-align:left;font-size:12px;line-height:1.75;min-height:76px;transition:background .15s,transform .15s}.choice-button:hover{background:#e8eee1;transform:translateY(-1px)}.choice-number{font-family:var(--serif);font-size:15px;color:#9b886e;flex-shrink:0}.game-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 5px;font-size:10px;letter-spacing:.06em;color:#7b8578}.game-footer button{font-size:10px}.choosing .visual{height:230px}.choosing .stage-character{height:575px;width:383.33px;right:9%}.choosing .scene-caption{padding-top:30px}.choosing .dialogue-box{min-height:160px}.choosing .dialogue-text{min-height:0;font-size:12px}.choosing .dialogue-actions{margin-top:8px}.choosing .speaker-line{display:none}.result-page{padding:45px 24px 20px;max-width:1000px;margin:auto}.result-hero{position:relative;border:1px solid #dadfd2;border-radius:7px;background:#f0f0e5;text-align:center;padding:47px 40px 32px;overflow:hidden}.result-decoration{position:absolute;right:-35px;top:-38px;width:230px;height:230px;color:#ac7d64;opacity:.15;transform:rotate(12deg);pointer-events:none}.result-decoration svg{display:block;width:100%;height:100%}.result-hero>.eyebrow,.result-hero>h1,.result-intro{position:relative}.result-hero h1{font-family:var(--serif);font-size:clamp(25px,3.4vw,36px);letter-spacing:.09em;margin:19px 0 23px;line-height:1.7}.result-intro{max-width:610px;margin:auto;font-size:13px;color:#5b6c5e;line-height:2.1;text-align:left}.result-mentor{display:flex;gap:20px;align-items:center;text-align:left;max-width:530px;margin:30px auto 0;padding-top:25px;border-top:1px solid #d6dccc}.tiny-portrait{width:66px;height:80px;border-radius:40px 40px 5px 5px;background:#e2e5d6;overflow:hidden;position:relative;flex-shrink:0}.tiny-portrait .character-art{height:230px;width:153.3px;position:absolute;left:50%;top:3px;transform:translateX(-50%)}.result-mentor span{font-size:9px;color:#7a8a77;letter-spacing:.06em}.result-mentor strong{display:block;font-family:var(--serif);font-size:18px;font-weight:500;letter-spacing:.1em}.result-mentor p{font-size:11px;color:#6e7b6a;margin-top:4px}.result-body{padding:35px 12px 0}.result-body>h2,.result-evidence>h2{font-family:var(--serif);font-size:19px;letter-spacing:.06em}.axis-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:19px 0 38px}.axis-card{padding:21px 17px;border:1px solid #dfe2d6;border-radius:5px;background:#fffcf6}.axis-title{font-size:10px;color:#8a8e7c;letter-spacing:.04em}.axis-card h3{font-size:12px;min-height:44px;margin:8px 0 13px;line-height:1.8}.axis-track{height:3px;margin:10px 7px;background:linear-gradient(to right,#c2d3ca,#afbea2);position:relative}.axis-center{position:absolute;height:9px;width:1px;background:#a0ad94;left:50%;top:-3px}.axis-dot{position:absolute;top:-4px;width:11px;height:11px;border-radius:50%;background:#35594b;border:2px solid #fcfaf4;transform:translateX(-50%)}.axis-labels{display:flex;justify-content:space-between;font-size:8px;color:#8c9380}.evidence-item{display:flex;gap:23px;padding:25px 0;border-bottom:1px solid #dfe2d6}.evidence-index{font-family:var(--serif);font-size:25px;color:#b3a288}.evidence-scene{font-size:10px;color:#8c8d79;letter-spacing:.06em}.evidence-item blockquote{font-family:var(--serif);font-size:15px;line-height:1.9;margin:8px 0}.evidence-item div>p:last-child{font-size:11px;color:#78816e}.small-step{display:flex;gap:24px;margin:34px 0;padding:25px;background:#e9eee2;border-radius:5px}.small-step>span{width:32px;height:32px;flex-shrink:0;color:#ac7d64}.small-step h2{font-family:var(--serif);font-size:16px;margin-bottom:8px}.small-step p{font-size:12px;line-height:2;color:#65775e}.result-actions{display:flex;justify-content:center;gap:14px;margin:32px 0}.result-method{color:#78816d;font-size:11px;margin:30px 0 15px}.result-method p{margin-top:12px}.result-method summary{cursor:pointer}.result-footnote{text-align:center;font-size:10px;color:#949888;margin:22px 0}dialog{border:1px solid #d3dac8;border-radius:8px;background:var(--paper);color:var(--ink);padding:26px;max-width:min(680px,90vw);max-height:84svh;box-shadow:0 15px 90px #14332745}dialog::backdrop{background:#132c2855;backdrop-filter:blur(3px)}dialog h2{font-family:var(--serif);font-size:20px}dialog>p{font-size:12px;margin:15px 0 25px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.icon-button{border:0;background:transparent;font-size:27px;line-height:1;padding:6px}.dialog-actions{display:flex;gap:14px}#history-dialog{width:650px}#log-content{max-height:65svh;overflow:auto;margin-top:15px;padding-right:14px}.log-section{border-top:1px solid #dbe0d1;padding-top:15px;margin-top:15px}.log-section h3{font-size:11px;color:#8d937d;letter-spacing:.1em}.log-section p{font-size:12px;line-height:1.9;margin:10px 0;white-space:pre-line}.log-section strong{display:block;font-weight:500;color:#3b644f;font-size:10px}.storage-notice{font-size:11px;color:#805b44;background:#fff5e5;padding:12px 17px;border-radius:4px;max-width:850px;margin:15px auto;text-align:center}
@media(min-width:1400px){.landing{padding-top:58px}.mentor-image{height:330px}.mentor-image .character-art{height:600px;width:400px}.visual{height:405px}.stage-character{height:780px;width:520px}}
@media(max-width:760px){.site-header{height:62px;padding:0 22px;gap:12px}.brand{font-size:15px;letter-spacing:0}.brand-mark{width:27px;height:27px;margin-right:8px}.edition{font-size:9px;letter-spacing:0}.landing{padding:32px 22px 24px}.landing h1{font-size:32px;margin:12px 0 18px}.landing .eyebrow{font-size:9px;letter-spacing:.13em}.intro-copy{font-size:12px}.mentor-grid{gap:13px}.mentor-image{height:230px}.mentor-image .character-art{height:460px;width:306.67px}.mentor-copy{padding:17px 14px}.mentor-name{font-size:20px}.mentor-tag{font-size:12px;min-height:42px}.mentor-description{font-size:10px;min-height:76px}.select-link{font-size:10px;letter-spacing:0}.game-shell{padding:0 15px}.chapter-bar{height:56px;font-size:10px}.chapter-number{font-size:20px}.chapter-dots span{width:17px}.dialogue-area{padding:0 17px}.dialogue-box{padding:17px 21px 12px}.dialogue-text{font-size:14px}.scene-caption{padding:35px 0 0 29px;width:58%}.stage-character{right:0;height:630px;width:420px}.visual{height:318px}.choosing .stage-character{right:0}.choosing .scene-caption{padding-top:27px}.choice-button{padding:11px 12px;font-size:11px;gap:10px}.result-page{padding:28px 19px}.result-hero{padding:34px 25px 25px}.result-body{padding:28px 0 0}.axis-grid{gap:11px}.axis-card{padding:16px 13px}.axis-card h3{font-size:11px}.axis-labels{font-size:7px}.result-mentor{gap:16px}}
@media(max-width:560px){.edition{display:none}.site-header #history-button{margin-left:auto}.landing{padding:27px 19px}.landing h1{font-size:32px;letter-spacing:.12em}.mobile-break{display:block}.duration{font-size:10px;margin-top:16px}.name-row{margin:25px 0 30px;gap:10px}.name-row input{width:115px}.name-row>span{font-size:9px}.selection-heading{gap:10px;margin-bottom:18px}.selection-heading h2{font-size:12px}.small-line{width:25px}.mentor-grid{grid-template-columns:1fr;gap:17px}.mentor-card{display:grid;grid-template-columns:42% 58%;min-height:247px}.mentor-image{height:100%;min-height:247px}.mentor-image .character-art{height:420px;width:280px;top:10px;left:51%}.mentor-copy{padding:22px 18px 17px}.roman-name{font-size:8px}.mentor-name{font-size:22px;margin:4px 0 12px}.mentor-name small{font-size:9px}.mentor-tag{font-size:12px;min-height:0}.mentor-description{font-size:10px;min-height:0;line-height:1.85}.select-link{margin-top:17px;padding-top:11px;font-size:9px;gap:8px}.select-link>span{font-size:14px}.landing-note{font-size:9px;margin-top:22px}.game-shell{padding:0 10px}.chapter-bar{height:50px;font-size:10px}.chapter-bar>div:first-child{gap:9px}.chapter-dots{gap:4px}.chapter-dots span{width:13px}.story-stage{min-height:540px;border-radius:5px;padding-bottom:17px}.visual{height:300px}.scene-caption{padding:23px 0 0 21px;width:53%;pointer-events:none}.scene-caption>span{font-size:8px;letter-spacing:.08em}.scene-caption p{font-size:8px;letter-spacing:.06em}.stage-character{right:-45px;top:9px;height:590px;width:393.333px}.dialogue-area{padding:0 12px}.dialogue-box{padding:14px 17px 10px;min-height:244px}.speaker-line{margin-bottom:8px}.speaker-name{font-size:14px}.dialogue-text{font-size:13px;line-height:1.95;letter-spacing:.025em;min-height:105px}.narration .dialogue-text{font-size:12px}.dialogue-actions{margin-top:13px}.dialogue-actions>.text-button{font-size:10px}.next-button{min-width:120px;padding:9px 14px;font-size:10px}.game-footer{padding:10px 2px;font-size:9px}.game-footer button{font-size:9px}.choosing .visual{height:185px}.choosing .stage-character{height:480px;width:320px;right:-27px;top:6px}.choosing .scene-caption{padding:20px 0 0 19px}.choosing .dialogue-box{padding:12px 15px 7px;min-height:135px}.choosing .dialogue-text{font-size:11px;line-height:1.8;min-height:0}.choosing .dialogue-actions{margin-top:3px}.choices{margin-top:14px}.choices h2{font-size:12px;letter-spacing:.02em;text-align:left;margin-bottom:10px}.choice-grid{grid-template-columns:1fr;gap:8px}.choice-button{min-height:64px;padding:10px 13px;font-size:11px;line-height:1.65;gap:13px}.choice-number{font-size:13px}.result-page{padding:24px 15px}.result-hero{padding:32px 22px 23px}.result-hero .eyebrow{font-size:9px;letter-spacing:.12em}.result-hero h1{font-size:26px;line-height:1.7;margin:18px 0}.result-intro{font-size:12px;line-height:2}.result-mentor{gap:13px;margin-top:22px;padding-top:19px}.result-mentor p{font-size:10px}.result-body>h2,.result-evidence>h2{font-size:17px}.axis-grid{grid-template-columns:1fr;gap:11px;margin:17px 0 31px}.axis-card{padding:18px 19px}.axis-card h3{min-height:0;font-size:13px;margin:6px 0 21px}.axis-title{font-size:10px}.axis-labels{font-size:9px;margin-top:11px}.axis-track{margin-left:5px;margin-right:5px}.evidence-item{gap:16px;padding:22px 0}.evidence-index{font-size:22px}.evidence-item blockquote{font-size:14px}.evidence-item div>p:last-child{font-size:11px;line-height:1.9}.small-step{padding:21px 19px;gap:16px;margin:27px 0}.small-step p{font-size:11px}.result-actions{flex-direction:column;gap:12px;margin:24px 0}.result-method{font-size:10px}.result-footnote{font-size:9px}.result-decoration{width:170px;height:170px;top:-30px;right:-35px}dialog{padding:21px;max-width:calc(100vw - 30px)}.dialog-actions{flex-direction:column}.dialog-heading h2{font-size:18px}#history-dialog{width:calc(100vw - 30px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.tiny-portrait .character-art{transform:translateX(calc(-50% - (1 - var(--char)) * 23px))}

/* The portrait layer continues behind and below the dialogue; only the stage clips it. */
.visual.paired{height:355px;overflow:visible;pointer-events:none}
.paired .scene-caption,.cinematic .scene-caption{padding:16px 28px 0;width:100%;display:flex;align-items:baseline;gap:18px;white-space:normal}
.paired .scene-caption>span,.cinematic .scene-caption>span{font-size:9px;flex-shrink:0}
.stage-actor{position:absolute;top:55px;width:420px;filter:drop-shadow(0 3px 12px #182f2520);transition:filter .3s}
.cast-2 .actor-0{left:calc(50% - 440px)}
.cast-2 .actor-1{left:calc(50% + 20px)}
.cast-1 .actor-0{left:calc(50% - 210px)}
.cast-3 .stage-actor{width:350px}
.cast-3 .actor-0{left:calc(50% - 495px)}.cast-3 .actor-1{left:calc(50% - 175px)}.cast-3 .actor-2{left:calc(50% + 145px)}
.stage-actor.speaking{filter:drop-shadow(0 1px 14px #fff7cd70)}
.heroine-art{width:100%;aspect-ratio:1/2}
.heroine-art.modular-avatar{display:block;width:100%;height:auto;aspect-ratio:100/288;overflow:visible;visibility:hidden;isolation:isolate;background:none}
.modular-avatar.avatar-ready{visibility:visible}
.appearance-options>label{display:block;font-size:13px;margin:0 0 5px}.appearance-options select{display:block;width:100%;font:inherit;font-size:13px;padding:9px 27px 9px 10px;border:1px solid #c9cfc1;background:#fffdf7;border-radius:4px;color:var(--ink);margin-bottom:14px;min-width:0}
.avatar-preview-wrap{min-width:0}.avatar-preview-wrap>.text-button{width:100%;font-size:12px}.avatar-preview.face-detail{height:280px;align-items:center}.avatar-preview.face-detail .modular-avatar{height:auto;width:100%;max-width:none;flex-shrink:0;margin:0;aspect-ratio:64/62;overflow:hidden}.avatar-preview[data-zoom="face"] .modular-avatar{aspect-ratio:40/38}
.appearance-entry{text-align:center;margin:-24px 0 25px}.appearance-entry button{font-size:12px;text-underline-offset:4px;text-decoration:underline}
#appearance-dialog{width:740px;max-height:90svh}.appearance-editor{display:grid;grid-template-columns:280px minmax(0,1fr);gap:26px;margin-top:23px}.avatar-preview{height:450px;display:flex;justify-content:center;align-items:flex-start;overflow:hidden;border-radius:5px;background:radial-gradient(ellipse at 50% 25%,#fff9ed,#e0e6d9)}.avatar-preview .heroine-art{height:100%;width:auto;max-width:100%;flex-shrink:0}#appearance-status:empty{display:none}
.appearance-options fieldset{padding:0;border:0;margin:0 0 23px}.appearance-options legend{font-size:14px;margin-bottom:9px}.appearance-options label{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.7;margin:9px 0;cursor:pointer}.appearance-options input{accent-color:var(--green);width:17px;height:17px}.appearance-options>p{font-size:11px;color:var(--muted);margin-bottom:17px}.appearance-options>.primary-button{width:100%}
@media(max-width:560px){.appearance-entry{margin-top:-17px}#appearance-dialog{padding:20px;max-width:calc(100vw - 22px)}.appearance-editor{grid-template-columns:140px minmax(0,1fr);gap:14px}.avatar-preview{height:310px}.avatar-preview .heroine-art{height:100%;width:auto;max-width:100%;margin:0}.avatar-preview.face-detail{height:220px}.avatar-preview.face-detail .modular-avatar{width:100%;height:auto;max-width:none;margin:0}.appearance-options fieldset{margin-bottom:17px}.appearance-options label{font-size:12px}.appearance-options>.primary-button{font-size:12px;padding:11px}}
.game-shell:not(.choosing) .story-stage{padding-bottom:88px}
.mentor-full-art{display:block;width:100%;height:auto;overflow:hidden}
.support-art{display:block;width:100%;height:auto;overflow:hidden}
.choosing .visual.paired{height:280px}
.choosing .stage-actor{top:47px}
.dialogue-box{background:#fffffff0;backdrop-filter:blur(3px)}
.dialogue-text,.narration .dialogue-text{font-size:18px;line-height:1.9;letter-spacing:.025em}
.choosing .dialogue-text{font-size:17px;line-height:1.9}
.choice-button{font-size:16px;line-height:1.75;min-height:84px}
.choices h2{font-size:17px}.speaker-name{font-size:18px}
.reading-count{font-size:12px}.dialogue-actions>.text-button,.next-button{font-size:14px}
.cinematic{height:400px;background:#20372ed9}
.cinematic .scene-caption{height:47px}
.cut-window{position:relative;width:min(100%,624px);aspect-ratio:16/9;margin:0 auto;overflow:hidden;border-radius:3px}
.romance-cut{position:absolute;inset:0;overflow:hidden;clip-path:inset(2px);--cut-row:0%}
.cut-pose{position:absolute;inset:0;background-repeat:no-repeat;background-size:300% 200%;background-position-y:var(--cut-row);opacity:0;transform:scale(1.025);transform-origin:50% 60%}
.cut-rei .cut-pose{background-image:url('assets/cut-rei.png')}.cut-haru .cut-pose{background-image:url('assets/cut-haru.png')}.cut-ritsu .cut-pose{background-image:url('assets/cut-ritsu.png')}
.cut-rei.pov .cut-pose{background-image:url('assets/pov-rei.png')}.cut-haru.pov .cut-pose{background-image:url('assets/pov-haru.png')}.cut-ritsu.pov .cut-pose{background-image:url('assets/pov-ritsu.png')}
.romance-cut.confession{--cut-row:100%}
.pose-0{background-position-x:0%;opacity:1}.pose-1{background-position-x:50%}.pose-2{background-position-x:100%;opacity:1}
.cut-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.video-playing .cut-video{opacity:1}
.ready .cut-pose{animation:cut-drift 7s cubic-bezier(.2,.5,.3,1) both}
@keyframes cut-reveal{from{opacity:0}to{opacity:1}}
@keyframes cut-drift{from{transform:scale(1.025) translateY(0)}to{transform:scale(1.065) translateY(-.4%)}}
.motion-paused .cut-pose{animation-play-state:paused}
.story-outcome{padding:24px 30px;margin-top:18px;border-left:3px solid #b8a383;background:#efeee3}
.story-outcome>span{font-size:9px;letter-spacing:.2em;color:#95846e}
.story-outcome h2{font-family:var(--serif);font-size:21px;margin:5px 0 9px;letter-spacing:.06em}
.story-outcome p{font-size:12px;line-height:2;color:#64725f;max-width:690px}
@media(max-width:760px){.stage-actor{width:360px}.cast-2 .actor-0{left:calc(50% - 370px)}.cast-2 .actor-1{left:calc(50% + 10px)}.cast-3 .stage-actor{width:290px}.cast-3 .actor-0{left:calc(50% - 365px)}.cast-3 .actor-1{left:calc(50% - 145px)}.cast-3 .actor-2{left:calc(50% + 75px)}.visual.paired{height:330px}.paired .scene-caption,.cinematic .scene-caption{padding:14px 19px 0;gap:12px}}
@media(max-width:560px){
 .visual.paired{height:300px}.paired .scene-caption,.cinematic .scene-caption{display:block;padding:12px 17px 0}.paired .scene-caption>span,.cinematic .scene-caption>span{font-size:8px}
 .stage-actor{top:66px;width:340px}.cast-2 .actor-0{left:calc(50% - 265px)}.cast-2 .actor-1{left:calc(50% - 75px)}.cast-1 .actor-0{left:calc(50% - 170px)}
 .cast-3 .stage-actor{width:220px}.cast-3 .actor-0{left:calc(50% - 230px)}.cast-3 .actor-1{left:calc(50% - 110px)}.cast-3 .actor-2{left:calc(50% + 10px)}
 .choosing .visual.paired{height:275px}.choosing .stage-actor{top:64px}
 .dialogue-text,.narration .dialogue-text,.choosing .dialogue-text{font-size:16px;line-height:1.85;letter-spacing:.015em}
 .choice-button{font-size:15px;line-height:1.75;min-height:74px}.choices h2{font-size:15px;line-height:1.8}.speaker-name{font-size:17px}
 .dialogue-actions>.text-button,.next-button{font-size:12px}
 .cinematic{height:auto;padding-bottom:10px}.cinematic .scene-caption{height:68px}.cut-window{width:100%;border-radius:0}
 .story-outcome{padding:20px;margin-top:15px}.story-outcome h2{font-size:19px}.story-outcome p{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.cut-video{display:none}.cut-pose{animation:none!important;transform:none}.pose-0,.pose-1{opacity:0}.pose-2{opacity:1}}

.game-information{max-width:1104px;margin:28px auto 0;padding:48px 28px 44px;border-top:1px solid var(--line)}
.refreshed-result .result-hero h1{font-size:clamp(28px,3.2vw,43px);margin:20px 0 17px}
.refreshed-result .result-intro{font-size:17px;line-height:2;max-width:740px}
.profile-tags{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px;position:relative}.profile-tags span{font-size:12px;padding:5px 12px;border:1px solid #c5d0be;border-radius:30px;background:#f9faf3}
.refreshed-result .result-body{padding-top:40px}.profile-reading>h2,.profile-pair h2,.profile-partner h2,.profile-senior h2{font-family:var(--serif);font-size:23px;line-height:1.7;margin:8px 0 17px;letter-spacing:.025em}
.love-trait{display:flex;gap:25px;padding:25px 0;border-bottom:1px solid var(--line)}.trait-number{font:26px var(--serif);color:#a38b72;padding-top:4px}.trait-title{font-size:11px;color:#7b8577}.love-trait h3{font-size:18px;margin:5px 0 10px}.love-trait div>p:last-child,.profile-pair section>p:last-child,.profile-partner li,.profile-senior div>p{font-size:15px;line-height:2;color:#61715e}
.profile-pair{display:grid;grid-template-columns:1fr 1fr;gap:38px;margin:39px 0;padding:31px 0;border-bottom:1px solid var(--line)}.profile-friction{padding-left:33px;border-left:1px solid var(--line)}
.profile-partner{padding:30px 33px;background:#edf0e5;border-radius:5px}.profile-partner ul{margin:12px 0;padding-left:20px}.profile-partner li+li{margin-top:10px}.profile-note{font-size:11px!important;line-height:1.9!important;color:#7d8775!important;margin-top:17px}
.refreshed-result .small-step p{font-size:15px}.profile-senior{display:flex;gap:25px;padding:22px 0 35px;align-items:flex-start}.profile-senior .tiny-portrait{flex-shrink:0;margin-top:8px;width:100px;height:118px;border-radius:6px}.profile-senior h2{font-size:21px}.profile-senior .eyebrow{font-size:10px}
.result-detail{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin:4px 0 27px}.result-detail summary{cursor:pointer;font-size:14px}.result-detail .axis-grid{margin-bottom:15px}.detail-axis-title{font-size:17px;margin-top:30px}.refreshed-result .evidence-item blockquote{font-size:15px}.refreshed-result .evidence-item div>p:last-child{font-size:13px}
.refreshed-result .story-outcome p{font-size:14px}.refreshed-result .result-method{font-size:12px}
@media(max-width:560px){.refreshed-result .result-hero{padding:29px 22px}.refreshed-result .result-hero h1{font-size:29px}.refreshed-result .result-intro{font-size:16px}.profile-tags{gap:7px}.profile-tags span{font-size:11px;padding:4px 9px}.refreshed-result .result-body{padding-top:31px}.profile-reading>h2,.profile-pair h2,.profile-partner h2{font-size:21px}.love-trait{gap:15px;padding:23px 0}.love-trait h3{font-size:17px}.love-trait div>p:last-child,.profile-pair section>p:last-child,.profile-partner li,.profile-senior div>p{font-size:15px;line-height:1.95}.profile-pair{grid-template-columns:1fr;gap:27px;margin:25px 0;padding:24px 0}.profile-friction{border-left:0;padding:0}.profile-partner{padding:24px 22px}.profile-senior{gap:15px}.profile-senior .tiny-portrait{width:70px;height:92px}.profile-senior h2{font-size:19px}.result-detail summary{font-size:14px}.refreshed-result .story-outcome p{font-size:14px}}
.game-information h2{font-family:var(--serif);font-size:27px;line-height:1.7;letter-spacing:.05em;margin:10px 0 23px}
.game-information p{font-size:13px;line-height:2.15;color:#64716a;margin-top:13px}
.game-information .eyebrow{font-size:10px;letter-spacing:.18em;color:#8b725e;margin:0}
.info-intro{max-width:800px}.info-section{margin-top:57px}.info-axis-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:27px}
.info-axis-grid article{padding:22px 23px 25px;background:#f0f0e6;border-radius:5px}
.info-index{font-family:var(--serif);font-size:21px;color:#a18b70}.info-axis-grid h3{font-size:16px;letter-spacing:.06em;margin:7px 0 13px}
.info-axis-grid p{font-size:12px;margin:0}.game-information .info-note{font-size:11px;color:#838b7f}
.info-story{display:grid;grid-template-columns:1fr 1.5fr;gap:42px;padding:33px 35px;background:#e9eee4;border-radius:5px}
.info-story h2{font-size:25px;margin-bottom:0}.info-story>div>p:first-child{margin-top:0}
.info-faq details{border-bottom:1px solid var(--line);padding:19px 0}.info-faq summary{cursor:pointer;font-size:14px;line-height:1.8;padding-right:15px}.info-faq details p{font-size:12px;max-width:820px;margin:12px 0 3px}
.game-information .info-return{margin-top:30px;text-align:right;font-size:12px}.info-return a{text-underline-offset:5px}
@media(max-width:760px){.game-information{margin:20px 23px 0;padding:36px 0}.game-information h2{font-size:24px}.info-axis-grid{gap:13px}.info-axis-grid article{padding:18px 17px}.info-story{gap:24px;padding:25px}.info-story h2{font-size:21px}}
@media(max-width:560px){.game-information{margin:16px 20px 0;padding-top:31px}.game-information h2{font-size:23px;margin:9px 0 19px}.game-information p{font-size:12px;line-height:2.05}.game-information .eyebrow{font-size:9px}.info-section{margin-top:38px}.info-axis-grid{grid-template-columns:1fr;gap:13px;margin-top:20px}.info-axis-grid article{padding:21px}.info-axis-grid h3{font-size:16px;margin-bottom:10px}.info-story{grid-template-columns:1fr;gap:20px;padding:25px 22px}.info-story h2{font-size:22px;margin-bottom:0}.info-faq summary{font-size:13px}.info-faq details p{font-size:12px}.game-information .info-note{font-size:10px}}

.type-suffix{display:inline-block}















/* Group name and appearance like a familiar profile editor. */
.player-profile{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:20px;padding:20px;border:1px solid #cbd5cb;border-radius:8px;background:#edf0e8}
.setup-portrait{height:116px;position:relative;overflow:hidden;border-radius:45px 45px 5px 5px;background:#f8f4e9}
.setup-portrait .heroine-art{position:absolute;width:142px!important;max-width:none;height:auto!important;left:50%;top:0;transform:translateX(-50%)}
.setup-fields{min-width:0}
.setup-fields h2{font-size:14px;font-weight:500;line-height:1.5;margin:0 0 12px;letter-spacing:.06em}
.setup-fields h2>span{font-size:10px;font-weight:400;color:#657465;letter-spacing:0;margin-left:7px}
.player-profile .name-row{justify-content:flex-start;gap:14px;margin:0 0 10px;font-size:13px}
.player-profile .name-row input{min-width:0;width:100%;height:40px;flex:1;font-size:16px;text-align:left;padding:7px 11px;background:#fffdf7;border:1px solid #a8b9ab;border-radius:4px}
.player-profile .appearance-entry{text-align:left;margin:0}
.player-profile .appearance-entry button{font-size:13px;min-height:38px;padding:7px 15px;text-decoration:none;background:#fffcf5;border-color:#8ba290;letter-spacing:.02em}
.landing .saved-actions{margin:0;justify-content:flex-end;align-items:center;gap:18px;flex-shrink:0}
.landing .saved-actions .secondary-button{font-size:12px;padding:6px 12px}
.landing .saved-actions .text-button{font-size:12px;padding:6px 0}
@media(max-width:899px){
  .player-setup{max-width:390px;margin:28px auto 32px}
  .player-profile{padding:18px;gap:17px}
  .player-profile .name-row input,.player-profile .appearance-entry button{min-height:44px}
  .landing .selection-heading{flex-wrap:wrap}
  .landing .saved-actions{justify-content:center;flex-basis:100%;margin:6px 0 4px}
}

/* Spend the laptop's extra space on breathing room, not a taller crop. */
@media(min-width:900px){
  .home-view .site-header{height:64px}
  .landing{max-width:1200px;padding:36px 36px 30px}
  .landing-top{display:grid;grid-template-columns:minmax(0,1fr) 378px;gap:64px;align-items:center;margin-bottom:32px}
  .landing-heading{text-align:left}
  .landing h1{font-size:44px;line-height:1.25;letter-spacing:.1em;margin:10px 0 14px}
  .landing .eyebrow{font-size:11px;letter-spacing:.16em}
  .intro-copy{font-size:14px;line-height:1.85;letter-spacing:.015em}
  .intro-copy br{display:block}
  .duration{margin-top:13px;font-size:11px}
  .duration span{font-size:14px}
  .player-setup{min-width:0}
  .selection-heading{justify-content:flex-start;gap:20px;margin-bottom:18px}
  .selection-heading .small-line:first-child{display:none}
  .selection-heading>.small-line:nth-child(3){flex:1}
  .selection-heading h2{font-size:14px;letter-spacing:.07em}
  .mentor-grid{gap:28px}
  .mentor-image{height:clamp(136px,calc(100svh - 626px),236px)}
  .mentor-image .character-art{height:540px;width:360px;top:-5px;transform:translateX(calc(-50% - (1 - var(--char)) * 54px))}
  .mentor-copy{padding:17px 20px 15px}
  .roman-name{font-size:9px;line-height:1.5;letter-spacing:.16em}
  .mentor-name{font-size:22px;line-height:1.3;letter-spacing:.12em;margin:4px 0 10px}
  .mentor-name small{font-size:11px;line-height:1.6;margin-top:4px;letter-spacing:.04em}
  .mentor-tag{font-size:14px;line-height:1.6;margin-bottom:8px;min-height:0}
  .mentor-description{font-size:12px;line-height:1.8;min-height:44px}
  .select-link{font-size:12px;letter-spacing:.03em;align-items:center;margin-top:15px;padding-top:11px;line-height:1.6}
  .select-link>span{font-size:17px}
  .landing-note{margin-top:24px}
}
@media(min-width:900px) and (max-height:700px){
  .home-view .site-header{height:54px}
  .landing{padding-top:16px}
  .landing-top{margin-bottom:14px;gap:44px}
  .landing h1{font-size:38px;line-height:1.15;margin:6px 0 8px}
  .landing .eyebrow{line-height:1.5}
  .intro-copy{line-height:1.65}
  .duration{line-height:1.5;margin-top:8px}
  .duration span{font-size:12px}
  .selection-heading{margin-bottom:14px}
  .player-profile{padding:14px 18px}
  .setup-portrait{height:100px}
  .setup-fields h2{margin-bottom:6px}
  .player-profile .name-row{margin-bottom:8px}
  .player-profile .name-row input{height:36px}
  .player-profile .appearance-entry button{min-height:34px;padding-top:5px;padding-bottom:5px}
  .mentor-copy{padding-top:10px;padding-bottom:10px}
  .mentor-image{height:clamp(100px,calc(100svh - 516px),170px)}
  .mentor-image .character-art{height:470px;width:313.333px;transform:translateX(calc(-50% - (1 - var(--char)) * 47px))}
  .mentor-name{margin-bottom:8px}
  .mentor-tag{margin-bottom:6px}
  .select-link{margin-top:8px;padding-top:8px}
}
@media(min-width:900px) and (max-width:1100px) and (max-height:700px){
  .landing{padding-left:26px;padding-right:26px}
  .landing-top{grid-template-columns:minmax(0,1fr) 340px;gap:32px}
  .mentor-grid{gap:20px}
  .mentor-copy{padding-left:15px;padding-right:15px}
  .mentor-image{height:100px}
  .mentor-image .character-art{height:470px;width:313.333px;transform:translateX(calc(-50% - (1 - var(--char)) * 47px))}
}

@media(max-width:560px){
  .mentor-image .character-art{transform:translateX(calc(-50% - (1 - var(--char)) * 42px))}
}




/* The play stage uses the remaining viewport. Nothing is hidden to force a fit. */
@media(min-width:900px) and (min-height:600px){
  .game-view .site-header{height:54px}
  .game-view .game-shell{height:calc(100svh - 54px);display:flex;flex-direction:column;padding:0 24px;max-width:1240px}
  .game-view .chapter-bar{height:44px;flex:0 0 44px;font-size:12px}
  .game-view .game-footer{height:38px;flex:0 0 38px;padding:4px 2px;font-size:11px}
  .game-view .game-footer button{font-size:12px;min-height:32px}
  .game-view .story-stage,.game-view .game-shell:not(.choosing) .story-stage{flex:1;min-height:0;display:flex;flex-direction:column;padding-bottom:16px}
  .game-view .visual,.game-view .visual.paired,.game-view .choosing .visual.paired{height:auto;flex:1;min-height:110px}
  .game-view .scene-caption{padding:13px 24px 0;gap:18px;position:relative;z-index:1}
  .game-view .scene-caption>span{font-size:11px}
  .game-view .stage-actor{width:clamp(380px,33vw,450px);top:10px}
  .game-view .cast-2 .actor-0{left:calc(50% - 410px)}
  .game-view .cast-2 .actor-1{left:calc(50% + 30px)}
  .game-view .cast-1 .actor-0{left:calc(50% - 205px)}
  .game-view .cast-3 .stage-actor{width:320px}
  .game-view .cast-3 .actor-0{left:calc(50% - 475px)}
  .game-view .cast-3 .actor-1{left:calc(50% - 160px)}
  .game-view .cast-3 .actor-2{left:calc(50% + 155px)}
  .game-view .choosing .stage-actor{width:clamp(280px,calc(100svh - 280px),450px);top:8px}
  .game-view .choosing .cast-2 .actor-0{left:calc(50% - 350px)}
  .game-view .choosing .cast-2 .actor-1{left:calc(50% + 90px)}
  .game-view .choices-5 .stage-actor{width:clamp(260px,calc(100svh - 335px),420px);top:-18px}
  .game-view .dialogue-area{width:100%;max-width:1100px;flex:0 0 auto;margin:0 auto;padding:0 24px}
  .game-view .dialogue-box{min-height:0;padding:14px 23px 11px}
  .game-view .speaker-line{min-height:22px;margin-bottom:6px}
  .game-view .dialogue-text,.game-view .narration .dialogue-text{font-size:18px;line-height:1.75;min-height:64px}
  .game-view .dialogue-actions{margin-top:8px}
  .game-view .dialogue-actions button{min-height:34px;padding-top:5px;padding-bottom:5px}
  .game-view .choosing .dialogue-text{font-size:16px;line-height:1.75;min-height:0}

  .game-view .choices{margin-top:12px}
  .game-view .choices h2{font-size:16px;line-height:1.5;margin-bottom:9px}
  .game-view .choice-grid{gap:8px 12px}
  .game-view .choice-button{min-height:53px;font-size:15px;line-height:1.65;padding:8px 14px;gap:12px}
  .game-view .choice-button:last-child:nth-child(odd){grid-column:1/-1}
  .game-view .visual.cinematic{min-height:0;overflow:hidden}
  .game-view .cinematic .scene-caption{height:42px}
  .game-view .cut-window{height:calc(100% - 42px);width:auto;max-width:100%;aspect-ratio:16/9;margin:0 auto}
}
@media(min-width:900px) and (max-width:1100px) and (min-height:600px) and (max-height:700px){
  .game-view .choices-4 .stage-actor{width:clamp(260px,calc(100svh - 340px),350px);top:8px}
}

.game-shell{position:relative}
.chapter-bar>.scene-caption{position:absolute;left:50px;right:50px;top:80px;z-index:4;padding:0;display:flex;align-items:baseline;gap:14px;pointer-events:none}
.chapter-bar>.scene-caption>span{font-size:11px;flex-shrink:0}
.visual.cinematic .cut-window{margin-top:44px}
@media(max-width:899px){.chapter-bar>.scene-caption{left:32px;right:24px;top:69px}}
@media(max-width:560px){.chapter-bar>.scene-caption{left:24px;right:18px;top:61px;gap:8px}.chapter-bar>.scene-caption>span{font-size:10px}}
@media(min-width:900px) and (min-height:600px){
 .game-view .chapter-bar{gap:20px}
 .game-view .chapter-bar>.scene-caption{position:static;flex:1;min-width:0;justify-content:center;gap:12px;padding:0;color:var(--ink);text-shadow:none}
 .game-view .chapter-bar>.scene-caption>span{font-size:10px;color:var(--muted)}
 .game-view .chapter-bar>.chapter-dots{flex-shrink:0}
 .game-view .visual.cinematic .cut-window{height:100%;margin:0 auto}
}

/* Relationship progress fits in the existing chapter bar, outside the artwork. */
.relationship-status{display:flex;align-items:center;gap:22px;flex-shrink:0}
.relationship-status .chapter-dots{gap:5px}.relationship-status .chapter-dots span{width:17px}
.intimacy-meter{display:flex;align-items:center;gap:9px;width:112px;flex-shrink:0;letter-spacing:.05em}
.intimacy-heart{width:36px;height:36px;flex-shrink:0}.intimacy-heart svg{display:block;width:100%;height:100%}
.intimacy-empty{fill:#dedbd7}.intimacy-fill{fill:#bf5965;transform-origin:20px 35px;transform:scaleY(var(--level))}.intimacy-outline{fill:none;stroke:#b8aaa3;stroke-width:.75}
.intimacy-label{display:flex;align-items:baseline;gap:7px;font-size:10px;line-height:1.5;color:#796c62;white-space:nowrap}
.intimacy-value{font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums;color:#9c5660}
.intimacy-change{font-size:10px;font-variant-numeric:tabular-nums;letter-spacing:0}
.intimacy-change.up{color:#9c5f53}.intimacy-change.down{color:#64776f}
.intimacy-meter.changed .intimacy-fill{animation:intimacy-fill .7s cubic-bezier(.22,.68,.28,1) both}
@keyframes intimacy-fill{from{transform:scaleY(var(--from))}to{transform:scaleY(var(--level))}}
@media(max-width:560px){.relationship-status{gap:12px}.relationship-status .chapter-dots{gap:3px}.relationship-status .chapter-dots span{width:9px}.intimacy-meter{width:97px;gap:6px}.intimacy-heart{width:30px;height:30px}.intimacy-label{font-size:9px;gap:5px}.intimacy-value{font-size:11px}.intimacy-change{font-size:9px}}

/* Shared navigation and foreground camera framing. */
.portal-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;margin-left:auto;padding:0 8px;font-size:12px;text-decoration:none;white-space:nowrap;border-radius:4px;color:var(--muted)}
.portal-link svg{width:14px;height:14px}.portal-link:hover{color:var(--green);background:#e9ede5}.site-header #history-button{margin-left:0;min-height:44px;white-space:nowrap}
.stage-actor{transform:translateX(-50%) scale(calc(var(--actor-camera-scale,1) * var(--figure-scale,1)));transform-origin:50% 0}
.visual.paired.cast-1 .actor-0{left:50%}.visual.paired.cast-2 .actor-0{left:26%}.visual.paired.cast-2 .actor-1{left:74%}
.visual.paired.cast-3 .actor-0{left:18%}.visual.paired.cast-3 .actor-1{left:50%}.visual.paired.cast-3 .actor-2{left:82%}
.rechoose-button{color:var(--green);text-decoration:underline;text-underline-offset:4px}
/* The CG is the entire scene. The dialogue overlays that same image. */
.story-stage:has(.cinematic){display:flex;flex-direction:column;min-height:600px;padding-bottom:16px}
.story-stage:has(.cinematic)>.scene-background,.story-stage:has(.cinematic)>.scene-tint{display:none}
.story-stage>.visual.cinematic{position:absolute;inset:0;height:100%;min-height:0;padding:0;background:none;overflow:hidden}
.story-stage>.cinematic .cut-window{position:absolute;inset:0;width:100%;height:100%;max-width:none;aspect-ratio:auto;margin:0;border-radius:0}
.romance-cut{clip-path:none}.cut-frame{display:block;width:100%;height:100%;transform-origin:50% 35%;transform:scale(1)}
.romance-cut.hug .cut-frame{transform-origin:50% 0}
.romance-cut.ready .cut-frame{animation:stable-camera 6s cubic-bezier(.2,0,.2,1) both;will-change:transform}
@keyframes stable-camera{from{transform:scale(1)}to{transform:scale(1.018)}}
.story-stage:has(.cinematic)>.dialogue-area{margin-top:auto}
@media(min-width:900px) and (min-height:600px){.game-view .story-stage:has(.cinematic){min-height:0}}
@media(max-width:560px){.site-header{padding:0 14px;gap:8px}.brand-mark{margin-right:4px}.portal-link{font-size:11px;padding:0 4px}.site-header #history-button{font-size:11px}.story-stage:has(.cinematic){min-height:620px}.dialogue-actions{gap:8px}}
@media(prefers-reduced-motion:reduce){.romance-cut.ready .cut-frame{animation:none}}
.motion-paused .cut-frame{animation-play-state:paused}

/* Safe CG composition and two-line dialogue, including phone widths. */
.stage-heroine{--figure-scale:.92}
.brand-mark{color:var(--green)}
.dialogue-text,.narration .dialogue-text,.choosing .dialogue-text{white-space:pre-wrap;min-height:2lh}
.dialogue-box,.choosing .dialogue-box{min-height:0}
.scene-cg-ambience{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:#493f34}
.ambience-frame{display:block;width:100%;height:100%;filter:blur(22px) brightness(.68);transform:scale(1.13)}
.story-stage:has(.cinematic){display:flex;flex-direction:column;gap:12px;min-height:min(500px,calc(100svh - 166px));padding:32px 0 16px;background:#493f34}
.story-stage>.visual.cinematic{position:relative;inset:auto;width:100%;height:auto;min-height:160px;flex:1;aspect-ratio:16/9;padding:0;overflow:visible}
.game-view .story-stage>.cinematic .cut-window{position:absolute;inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);margin:0;aspect-ratio:auto;overflow:visible}
.romance-cut{overflow:visible}.cut-frame{transform-origin:50% 50%}
.romance-cut.ready .cut-frame{animation:stable-camera 6s cubic-bezier(.2,0,.2,1) both}
@keyframes stable-camera{from{transform:scale(1)}to{transform:scale(1.008)}}
.story-stage:has(.cinematic)>.dialogue-area{margin:0 auto;position:relative;z-index:3}
.game-shell .story-stage:has(.cinematic){padding-bottom:16px}
@media(min-width:900px) and (min-height:600px){.game-view .story-stage:has(.cinematic){min-height:0;padding-top:12px}.game-view .visual.cinematic{min-height:0;aspect-ratio:auto}}
@media(max-width:560px){
 .visual.paired.cast-2 .stage-actor{width:min(250px,65vw)}
 .visual.paired.cast-2 .actor-0{left:16%}.visual.paired.cast-2 .actor-1{left:84%}
 .visual.paired.cast-3 .stage-actor{width:min(180px,47vw)}
 .visual.paired.cast-3 .actor-0{left:9%}.visual.paired.cast-3 .actor-1{left:50%}.visual.paired.cast-3 .actor-2{left:91%}
 .dialogue-box{padding:14px 17px 10px}.dialogue-text,.narration .dialogue-text,.choosing .dialogue-text{min-height:2lh}
}

@media(max-width:360px){.next-button{min-width:105px;padding-left:10px;padding-right:10px}.dialogue-actions{gap:5px}}

.site-header #previous-result-button{min-height:44px;white-space:nowrap}
#recap-dialog{width:560px;max-height:85svh;border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:28px}
#recap-content{font-size:14px;line-height:1.9}.recap-intro{color:var(--muted);margin-bottom:20px}.recap-event{padding:14px 0;border-top:1px solid var(--line)}.recap-time{font-size:11px;color:#94775f;margin-bottom:5px}.recap-action{font-size:12px;color:var(--green);margin-top:6px}.recap-where{font-size:12px;margin-top:16px;color:var(--muted)}.recap-footer{display:flex;justify-content:flex-end;margin-top:22px}
@media(max-width:560px){
 .site-header.has-previous{height:86px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:34px 34px;gap:0 10px;padding:8px 14px}
 .site-header.has-previous .brand{grid-column:1;grid-row:1/3}.site-header.has-previous .portal-link{grid-column:2/4;grid-row:1;justify-self:end;margin-left:0;min-height:34px}
 .site-header.has-previous #previous-result-button{grid-column:2;grid-row:2;min-height:34px;font-size:11px;padding:4px 0;letter-spacing:0}
 .site-header.has-previous #history-button{grid-column:3;grid-row:2;min-height:34px;padding:4px 0;letter-spacing:0}
 .home-view .site-header.has-previous #previous-result-button{grid-column:2/4;justify-self:end}
 #recap-dialog{padding:22px;max-height:85svh}#recap-content{font-size:13px}.recap-footer .primary-button{width:100%}
}
/* Frosted dialogue keeps the scene present without fading the text. */
.dialogue-box{background:rgba(255,253,249,.9);border-color:rgba(255,255,255,.6);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.dialogue-box.speaker-senior{background:rgba(237,245,252,.89)}
.dialogue-box.speaker-heroine{background:rgba(255,241,244,.89)}
/* One quiet surface frames the decision; only the answers are cards. */
.choices{padding:14px 16px 16px;background:rgba(22,43,39,.86);border-radius:6px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.game-view .choices h2{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:0;border:0;border-radius:0;background:transparent;color:#fff9ef;font-size:20px;line-height:1.6;font-weight:500;text-align:left;text-shadow:none;letter-spacing:.06em}
.choices h2::before{content:"";width:24px;height:1px;flex-shrink:0;background:#c6a88b}
.choices .choice-button{background:rgba(255,253,249,.97);border-color:rgba(255,255,255,.45);box-shadow:0 2px 8px #1025210a}
.choices .choice-button:hover{background:#e8eee1;border-color:#bacbbc}
@media(max-width:560px){.choices{padding:14px 12px}.game-view .choices h2{gap:9px;font-size:17px;letter-spacing:.035em;margin-bottom:12px}.choices h2::before{width:18px}}
.share-shortcut{display:inline-block;text-decoration:none;margin-top:24px}.result-share{margin:38px 0;padding:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.result-share h2{font-family:var(--serif);font-size:24px;margin:8px 0 22px}.share-content{display:grid;grid-template-columns:1.15fr 1fr;gap:28px;align-items:start}#share-card{width:100%;height:auto;min-height:0;display:block;border:1px solid var(--line);border-radius:6px;background:var(--paper)}.share-options>p{font-size:12px;color:var(--muted);margin-bottom:18px}.share-options>.primary-button{width:100%;min-height:44px}.share-targets{display:flex;gap:9px;margin:12px 0}.share-targets button{flex:1;min-height:44px;padding:9px 8px}.share-utilities{display:flex;flex-wrap:wrap;gap:6px 14px}.share-utilities button{min-height:38px}.share-options #share-status{font-size:12px;color:var(--green);margin:12px 0}.share-options details{font-size:12px}#share-post{display:block;width:100%;margin-top:12px;border:1px solid var(--line);background:#fffdfa;color:var(--ink);padding:12px;font:12px/1.7 var(--sans);resize:vertical}#share-guide{max-width:520px;border-radius:10px;background:var(--paper)}#share-guide p{font-size:14px;line-height:1.9}.share-guide-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.share-guide-actions a{text-decoration:none}.shared-result{max-width:820px;margin:auto;padding:48px 24px}.shared-result h1{font-family:var(--serif);font-size:clamp(26px,4vw,44px);margin:20px 0}.shared-result>p{color:var(--muted);line-height:1.9}.shared-result #share-card{margin:28px 0}.shared-result .primary-button{display:inline-block;text-decoration:none;margin:24px 0}
@media(max-width:700px){.share-content{grid-template-columns:1fr;gap:22px}.result-share{padding:25px 0}.share-targets button{font-size:12px}.share-utilities button{min-height:44px}.shared-result{padding:30px 20px}}
/* Hug CG: reviewed third-person frames; generated by build-hug-videos.cjs. */
.romance-cut.hug .cut-pose{transform:scale(1);transform-origin:50% 0}
.romance-cut.hug.ready .cut-pose{animation:hug-drift 6s cubic-bezier(.2,.5,.3,1) both}
@keyframes hug-drift{from{transform:scale(1)}to{transform:scale(1.025)}}
.cut-rei.hug .cut-pose{background-image:url('assets/hug-rei-backlit-v2.png');background-size:102.604167% 205.246914%;background-position:50.000000% 0.000000%}
.cut-rei.hug.silhouette .cut-pose{background-image:url('assets/hug-rei-backlit-v2.png');background-size:102.604167% 205.246914%;background-position:50.000000% 97.947214%}
.cut-haru.hug .cut-pose{background-image:url('assets/hug-haru-backlit-v2.png');background-size:204.901961% 205.010893%;background-position:50.000000% 0.000000%}
.cut-haru.hug.silhouette .cut-pose{background-image:url('assets/hug-haru-backlit-v2.png');background-size:204.901961% 205.010893%;background-position:50.000000% 98.547718%}
.cut-ritsu.hug .cut-pose{background-image:url('assets/hug-ritsu-backlit-v2.png');background-size:204.901961% 205.010893%;background-position:50.000000% 0.000000%}
.cut-ritsu.hug.silhouette .cut-pose{background-image:url('assets/hug-ritsu-backlit-v2.png');background-size:204.901961% 205.010893%;background-position:50.000000% 98.547718%}
