:root{--ink:#263244;--muted:#68758b;--paper:#fffdfa;--line:#e4e3e2;--rose:#ab647b;--deep:#254d5d;--bg:#f8f4ef}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--bg);font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;min-height:100vh}
button{font:inherit;cursor:pointer}
button:focus-visible,a:focus-visible{outline:3px solid #5f9ac4;outline-offset:3px}
a{color:inherit}
[hidden]{display:none!important}
.top{height:74px;background:rgba(255,253,250,.96);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1160px)/2))}
.brand-area{display:flex;gap:16px;align-items:center;min-width:0}
.home-link{text-decoration:none;font-size:13px;color:#5a6d7d;font-weight:750;white-space:nowrap}
.brand-divider{width:1px;height:20px;background:#ddd1cc}
.brand{font-family:Georgia,serif;font-size:26px;font-weight:700;text-decoration:none;letter-spacing:-1px;white-space:nowrap}
.brand i{color:var(--rose);font-style:normal}
.top-right{display:flex;align-items:center;gap:16px}
.top-right span{font-size:11px;letter-spacing:.13em;color:#82909c}
.language-switch{display:inline-flex;gap:3px;padding:3px;background:#eee9e5;border:1px solid #e1d9d3;border-radius:12px;flex-shrink:0}
.language-option{border:0;border-radius:9px;background:transparent;color:#667382;font-size:13px;line-height:1.2;padding:9px 13px;font-weight:700;min-height:36px;white-space:nowrap;transition:background .15s,color .15s,box-shadow .15s}
.language-option:hover:not(.is-active){background:rgba(255,255,255,.65);color:#334253}
.language-option.is-active{background:#fff;color:#233d50;box-shadow:0 1px 5px rgba(43,44,55,.13)}
@media(max-width:390px){.language-option{padding:8px 9px;font-size:12px}.language-switch{gap:1px;padding:2px}.top-right{gap:3px}}
main{max-width:1170px;margin:auto;padding:0 24px}
.intro{padding:54px 0 26px;position:relative}
.kicker,.place,.scene-kicker{font-size:11px;letter-spacing:.12em;font-weight:750;color:#a16c7d}
.intro h1{font-size:clamp(36px,5.4vw,64px);letter-spacing:-.06em;line-height:1.15;margin:15px 0 14px;font-weight:800;max-width:850px}
.intro p{font-size:18px;color:#596879;margin:0;max-width:none;width:100%}
.intro-actions{display:flex;align-items:center;gap:24px;margin:26px 0 19px;flex-wrap:wrap}
.big-btn{background:#203e4e;color:#fff;padding:14px 22px;border:none;border-radius:14px;font-weight:750;box-shadow:0 7px 16px rgba(31,59,79,.17);transition:transform .18s,background .18s}
.big-btn:hover{background:#365c6e;transform:translateY(-2px)}
.soft-link{color:#586e7f;font-size:14px;font-weight:750;text-decoration:none}
.intro small{font-size:11px;letter-spacing:.09em;color:#8a91a2}
.life-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;padding:12px 0 28px}
.life-card{text-align:left;padding:0 0 15px;border:1px solid #e7e2df;border-radius:20px;overflow:hidden;background:var(--paper);color:var(--ink);display:flex;flex-direction:column;box-shadow:0 5px 19px rgba(59,58,68,.05);transition:transform .18s,box-shadow .2s}
.life-card:hover{transform:translateY(-5px);box-shadow:0 13px 38px rgba(45,51,68,.15)}
.card-image{aspect-ratio:1.76;overflow:hidden;background:#b7cad1}
.dream-art{display:block;width:100%;height:100%;object-fit:cover}
.life-card .dream-art{transition:transform .8s cubic-bezier(.18,.9,.22,1)}
.life-card:hover .dream-art{transform:scale(1.055)}
.life-card .place{padding:16px 18px 6px;color:var(--accent)}
.life-card>strong{font-size:20px;line-height:1.3;padding:0 18px;letter-spacing:-.02em;min-height:50px}
.life-card .tease{padding:7px 18px 12px;color:#727a85;font-size:13px;line-height:1.5;min-height:57px}
.card-foot{border-top:1px solid #f1eae6;margin:0 18px;padding-top:12px;display:flex;align-items:center;justify-content:space-between;color:#9792a0;font-size:11px;font-weight:800;letter-spacing:.07em}
.card-foot b{font-size:20px;color:var(--accent)}
.album{border-top:1px solid #e5dcd6;margin:20px 0 52px;padding:25px 0}
.album-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.album h2{font-size:23px;margin:0}
.album-head>span{font-size:12px;color:#838d94}
.album-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-top:16px}
.album-cards>p{font-size:14px;color:#7d8288}
.album-card{background:#fff;border:1px solid #eee6dd;border-radius:12px;padding:13px 15px;min-height:84px}
.album-card span{display:block;font-size:10px;letter-spacing:.06em;color:#ac8d88}
.album-card strong{font-size:13px;display:block;margin-top:9px}
#game,#ending{max-width:1090px;margin:20px auto 60px}
.game-top{height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#768290;font-size:12px;letter-spacing:.04em;font-weight:650}
.ghost-btn{background:none;border:none;color:#637b89;padding:9px 0;font-weight:700;white-space:nowrap}
.ghost-btn:hover{text-decoration:underline}
.game-top .count{font-variant-numeric:tabular-nums}
.scene{background:#fff;border:1px solid #e7ded9;border-radius:25px;overflow:hidden;box-shadow:0 22px 70px rgba(36,43,51,.09)}
.scene-picture{position:relative;aspect-ratio:2.12;overflow:hidden;background:#a2bdbd}
.scene-picture .dream-art{width:100%;height:100%;transition:transform 1s,filter 1s}
.scene-picture[data-phase="1"] .dream-art{transform:scale(1.1) translateX(-2.5%);filter:saturate(1.14)}
.scene-picture[data-phase="2"] .dream-art{transform:scale(1.17) translateX(2%);filter:brightness(.9) saturate(1.27)}
.scene-picture:after{content:"";pointer-events:none;position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(22,29,40,.48))}
.art-label{position:absolute;bottom:26px;left:34px;right:30px;color:#fff;text-shadow:0 2px 9px rgba(0,0,0,.25);z-index:2}
.art-label span{font-size:11px;font-weight:800;letter-spacing:.19em}
.art-label h2{font-size:clamp(22px,3.5vw,37px);letter-spacing:-.03em;margin:3px 0 0;font-weight:780}
.secret-pin{position:absolute;top:22%;right:17%;z-index:3;width:49px;height:49px;border-radius:50%;border:2px solid rgba(255,255,255,.8);background:rgba(255,243,207,.64);color:#6b4e81;font-size:24px;box-shadow:0 0 0 7px rgba(255,255,255,.12);animation:glimmer 2.6s ease-in-out infinite}
.secret-pin:hover{transform:scale(1.08)}
.secret-pin.is-found{opacity:.58;animation:none}
@keyframes glimmer{50%{box-shadow:0 0 0 13px rgba(255,246,226,.17)}}
.scene-body{padding:27px clamp(23px,5vw,68px) 36px;max-width:850px;margin:auto}
.progress-track{height:4px;background:#edf0ee;border-radius:10px;margin-bottom:24px;overflow:hidden}
.progress-track span{display:block;height:100%;background:#c18c90;transition:width .35s}
.scene-body .scene-kicker{color:#b4888c}
.scene-body>h2{font-size:clamp(24px,3vw,36px);line-height:1.18;letter-spacing:-.04em;margin:8px 0 11px}
.story-line{font-size:17px;line-height:1.65;color:#556174;margin:0 0 24px;max-width:700px}
.found-clue{border:1px solid #ece0c5;background:#fffaeb;color:#aa8251;border-radius:11px;font-size:12px;padding:9px 13px;margin-bottom:20px}
.choices-label{font-size:11px;font-weight:800;letter-spacing:.13em;color:#a87984;margin-bottom:11px}
.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.choice{background:#fcf9f5;border:1px solid #e8dfd8;border-radius:15px;min-height:101px;text-align:left;padding:15px 15px 13px;display:flex;flex-direction:column;justify-content:space-between;color:#344253;transition:transform .15s,background .15s,border-color .15s}
.choice:hover{background:#fff2e8;border-color:#c59a9e;transform:translateY(-2px)}
.choice-num{font-size:11px;letter-spacing:.13em;color:#a2a5aa}
.choice strong{font-size:15px;line-height:1.45;font-weight:750}
.choice>span:last-child{align-self:flex-end;color:#c08a88;font-size:18px;line-height:1}
.impact{border-left:4px solid #c891a7;background:#faf2ef;border-radius:0 17px 17px 0;padding:20px 22px 22px;animation:appear .3s both}
.impact>span{font-size:11px;font-weight:800;letter-spacing:.13em;color:#a67987}
.impact p{font-size:19px;font-weight:650;line-height:1.5;margin:10px 0 19px}
@keyframes appear{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.ending-art{aspect-ratio:2.12;position:relative;border-radius:24px 24px 0 0;overflow:hidden}
.ending-art>span{position:absolute;bottom:24px;left:28px;color:white;text-shadow:0 1px 9px #203440;background:rgba(25,32,42,.35);border-radius:50px;padding:7px 12px;font-size:12px}
.ending-paper{background:white;text-align:center;border:1px solid #ece3de;border-top:0;border-radius:0 0 24px 24px;padding:36px 30px 43px}
.ending-paper h1{font-family:Georgia,"Noto Serif SC",serif;font-weight:700;letter-spacing:-.04em;font-size:clamp(32px,4.8vw,52px);line-height:1.15;margin:13px auto 13px}
.ending-paper>p{font-size:17px;color:#667181;max-width:650px;margin:0 auto 24px;line-height:1.7}
.footprints{display:flex;gap:9px;align-items:center;justify-content:center;flex-wrap:wrap;margin:16px auto 27px}
.footprints span{background:#f7f2ec;color:#8c7580;font-size:11px;border-radius:30px;padding:8px 11px}
.footprints b{color:#c6b7b8}
.end-actions{display:flex;justify-content:center;gap:11px;flex-wrap:wrap}
.outline-btn{background:white;border:1px solid #c3cbd0;border-radius:13px;color:#466174;padding:13px 17px;font-size:13px;font-weight:700}
.outline-btn:hover{background:#f5f7f7}
.footer{padding:25px 22px 40px;text-align:center;font-size:11px;letter-spacing:.12em;color:#a2a0a3;border-top:1px solid #e6ddd5}
#toast{position:fixed;left:50%;bottom:23px;transform:translateX(-50%);max-width:90vw;background:#293b4a;color:#fff;padding:12px 20px;border-radius:12px;box-shadow:0 12px 45px #0002;z-index:10;font-size:13px;text-align:center}
@media(max-width:850px){.life-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.album-cards{grid-template-columns:repeat(3,1fr)}.choices{gap:9px}.choice{padding:12px}}
@media(max-width:600px){.top{height:60px;padding:0 15px}.brand{font-size:21px}.brand-area{gap:9px}.top-right span{display:none}.home-link{font-size:11px}.top-right{gap:7px}main{padding:0 13px}.intro{padding:30px 7px 15px}.intro h1{font-size:clamp(29px,8.1vw,40px);margin-top:10px}.intro p{font-size:15px}.intro-actions{margin:22px 0 14px;gap:16px}.big-btn{font-size:13px;padding:13px 15px}.soft-link{font-size:12px}.intro small{font-size:10px}.life-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding-top:11px}.life-card{border-radius:13px;padding-bottom:10px}.card-image{aspect-ratio:1.27}.life-card .place{padding:12px 11px 4px;font-size:9px;letter-spacing:.07em}.life-card>strong{font-size:15px;min-height:55px;padding:0 11px}.life-card .tease{font-size:11px;min-height:68px;padding:5px 11px 11px}.card-foot{margin:0 11px;padding-top:8px;font-size:9px}.album-head h2{font-size:19px}.album-cards{grid-template-columns:repeat(2,1fr)}#game,#ending{margin:4px auto 44px}.game-top{height:48px;font-size:10px}.game-top>span:nth-child(2){max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scene{border-radius:17px}.scene-picture{aspect-ratio:1.37}.art-label{left:18px;right:12px;bottom:19px}.art-label span{font-size:9px}.art-label h2{font-size:22px}.secret-pin{top:17%;right:13%;width:38px;height:38px;font-size:19px}.scene-body{padding:22px 17px 26px}.scene-body>h2{font-size:25px}.story-line{font-size:15px;margin-bottom:20px}.choices{grid-template-columns:1fr;gap:8px}.choice{min-height:62px;padding:11px 13px;flex-direction:row;align-items:center;gap:12px}.choice-num{min-width:24px}.choice strong{flex:1;font-size:14px}.choice>span:last-child{font-size:18px}.impact{padding:16px}.impact p{font-size:16px}.ending-art{aspect-ratio:1.37;border-radius:17px 17px 0 0}.ending-paper{padding:26px 20px 31px}.ending-paper>p{font-size:15px}.end-actions{flex-direction:column}.end-actions button{width:100%}.footprints{gap:5px}.footprints span{font-size:10px;padding:6px 8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Dream Lives v2: keep the active decision beside the artwork on desktop. */
#game{margin:10px auto 24px}
.game-top{height:45px;gap:10px}
.game-tools{display:flex;gap:12px;align-items:center;justify-content:flex-end;flex-shrink:0}
.game-place{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.dream-sound{display:flex;gap:4px;align-items:center}
.dream-sound-button{display:inline-flex;gap:5px;align-items:center;justify-content:center;border-radius:10px;min-height:32px;padding:5px 9px;background:#fff8f3;border:1px solid #e6d6d1;color:#5b6977;font-size:11px;font-weight:700;white-space:nowrap}
.dream-sound-button:hover{background:#f3e9e8}
.dream-sound-button.muted{color:#8b8f97;background:#f4f2f0}
.dream-sound-button>span:first-child{font-size:18px;line-height:1}
.home-audio{margin-top:8px}
.moment-pips{display:flex;gap:5px;margin:0 0 12px}
.moment-pips span{height:5px;width:23px;background:#e9e7e7;border-radius:10px}
.moment-pips .is-done{background:#c3a4a1}
.moment-pips .is-current{background:#bd7290;width:38px}
.story-echo{font-size:13px;line-height:1.5;color:#986c82;border-left:3px solid #d6a8b6;padding-left:10px;margin:0 0 17px}
.scene-body{min-width:0}
.scene .choices{gap:9px}
.scene .choice{min-height:70px}
.scene .choice>span:last-child{margin:0}
.ending-echo{margin:-8px auto 20px!important;font-size:14px!important;font-style:italic;color:#94718a!important}
.scene-sealed .dream-art{filter:blur(7px) brightness(.7) saturate(.95)!important}
.twist-curtain{position:absolute;inset:0;z-index:7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;text-align:center;color:#fff;border:0;background:radial-gradient(circle at 50% 45%,rgba(192,120,166,.68),rgba(25,39,75,.70) 66%,rgba(22,31,59,.86));backdrop-filter:blur(3px);text-shadow:0 2px 12px rgba(0,0,0,.34);cursor:pointer}
.twist-curtain .curtain-eye{font-size:clamp(48px,8vw,94px);line-height:1;animation:twistHover 1.9s ease-in-out infinite}
.twist-curtain small{font-size:11px;font-weight:800;letter-spacing:.25em}
.twist-curtain strong{font-size:clamp(25px,3vw,40px);line-height:1.1}
.twist-curtain>span:last-child{display:grid;place-items:center;background:rgba(255,255,255,.24);border:1px solid #fff8;border-radius:50%;width:43px;height:43px;font-size:21px}
.scene-sealed .art-label{display:none}
.reveal-cta .big-btn{min-width:175px}
.surprise-particles{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:hidden}
.surprise-particles i{position:absolute;left:50%;top:50%;width:9px;height:24px;border-radius:3px;background:#ffe9bd;opacity:0;transform:translate(-50%,-50%);box-shadow:0 0 13px #ffefce}
.surprise-particles i:nth-child(3n){background:#e0afff}
.surprise-particles i:nth-child(4n){background:#9cf7ed}
.scene.twist-burst .surprise-particles i{animation:twistSpark 1.1s cubic-bezier(.17,.67,.26,1) forwards;animation-delay:calc(var(--n) * 32ms)}
.scene-picture:before{content:"";position:absolute;z-index:4;inset:0;pointer-events:none;opacity:0}
.scene.twist-burst .scene-picture:before{background:radial-gradient(circle at 50% 45%,rgba(255,255,255,.94),rgba(255,241,190,.41) 35%,transparent 80%);animation:twistFlash 1.24s ease-out}
.scene.twist-burst .dream-art{animation:twistZoom 1.4s ease-out}
@keyframes twistSpark{0%{opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(0)}14%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(190deg)}}
@keyframes twistFlash{0%{opacity:.9}15%{opacity:.96}100%{opacity:0}}
@keyframes twistZoom{0%{filter:brightness(2.2) saturate(1.4);transform:scale(1.21)}100%{filter:brightness(1) saturate(1);transform:scale(1.06)}}
@keyframes twistHover{50%{transform:translateY(-8px) scale(1.08)}}
@media(min-width:701px){
 .scene{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,.93fr);height:clamp(490px,calc(100svh - 151px),780px);min-height:0}
 .scene-picture{height:100%;min-height:0;aspect-ratio:auto}
 .scene-picture .dream-art{height:100%;width:100%}
 .scene-body{height:100%;overflow-y:auto;max-width:none;display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:clamp(14px,2vw,28px) clamp(18px,2.7vw,40px);scrollbar-width:thin}
 .progress-track{margin-bottom:14px}
 .scene-body>h2{font-size:clamp(22px,2.2vw,31px);margin:6px 0 10px}
 .story-line{font-size:clamp(14px,1.3vw,16px);line-height:1.55;margin-bottom:17px}
 .scene .choices{display:grid;grid-template-columns:1fr;gap:8px}
 .scene .choice{padding:11px 13px;min-height:64px;flex-direction:row;align-items:center;gap:11px}
 .choice-num{min-width:22px}
 .choice strong{flex:1;font-size:14px;line-height:1.35}
 .choice>span:last-child{font-size:18px}
 .art-label{left:20px;right:18px;bottom:22px}
 .art-label h2{font-size:clamp(21px,2.8vw,33px)}
 .scene .secret-pin{width:43px;height:43px}
}
@media(min-width:701px) and (max-height:680px){
 .scene{height:calc(100svh - 137px);min-height:390px}
 .scene-body{padding:12px 19px}
 .moment-pips{margin-bottom:5px}
 .progress-track{margin-bottom:7px}
 .scene-body>h2{font-size:22px;margin:4px 0 7px}
 .story-line{line-height:1.42;margin-bottom:9px;font-size:13px}
 .scene .choices{gap:5px}
 .scene .choice{min-height:49px;padding:8px 12px}
 .scene-kicker{font-size:9px}
}
@media(max-width:700px){
 #game{margin:0 auto 20px}
 .game-top{height:47px}
 .game-tools{gap:7px}
 .game-place{font-size:10px}
 .sound-label{display:none}
 .dream-sound-button{padding:5px 8px;min-height:31px;min-width:34px}
 .scene{display:block;height:auto}
 .scene-picture,.ending-art{height:clamp(145px,25svh,235px);aspect-ratio:auto}
 .scene-body{max-width:none;padding:13px 18px 19px}
 .progress-track{margin-bottom:10px}
 .moment-pips{margin-bottom:7px}
 .scene-body>h2{font-size:21px;line-height:1.16;margin:6px 0}
 .story-line{font-size:14px;line-height:1.45;margin-bottom:12px}
 .scene .choices{grid-template-columns:1fr;gap:6px}
 .scene .choice{min-height:54px;flex-direction:row;align-items:center;padding:9px 12px;gap:10px}
 .choice strong{flex:1;font-size:13px;line-height:1.3}
 .choice-num{min-width:22px}
 .choice>span:last-child{align-self:center;font-size:17px}
 .scene .secret-pin{width:36px;height:36px;font-size:17px}
 .art-label{left:16px;bottom:14px}
 .art-label h2{font-size:21px}
 .art-label span{font-size:10px}
 .story-echo{font-size:12px;margin-bottom:10px}
 .footprints span:nth-child(n+5){display:none}
}
@media(max-width:370px){
 .top{padding:0 9px}.brand-area{gap:6px}.brand{font-size:19px}.home-link{font-size:10px}
 .game-top .game-place{display:none}
 .scene-picture{height:clamp(132px,22svh,175px)}
 .scene-body{padding:11px 12px 15px}
 .scene .choice{min-height:51px}
}
@media(prefers-reduced-motion:reduce){
 .twist-curtain .curtain-eye,.scene.twist-burst .surprise-particles i,.scene.twist-burst .scene-picture:before,.scene.twist-burst .dream-art{animation:none!important}
 .scene-sealed .dream-art{filter:brightness(.7)}
}

/* Keep mandatory music attribution readable but secondary to gameplay. */
.footer{display:flex;flex-wrap:wrap;gap:7px 20px;align-items:center;justify-content:center;padding:18px 20px 24px}
.music-credit{font-size:10px;letter-spacing:0;text-transform:none;color:#8e8f98}
.music-credit a{text-decoration:underline;text-underline-offset:2px}


/* Casefiles v3 — concrete investigation resources, continuous story and earned endings. */
.case-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;min-height:25px}
.case-resources{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.case-resources>span{display:inline-flex;gap:5px;align-items:center;background:#f4efec;border:1px solid #ebe2dd;border-radius:999px;font-size:10px;font-weight:700;color:#7b6975;padding:4px 7px;white-space:nowrap}
.case-resources b{font-size:12px;color:#263e4c}
.case-objective{margin:0 0 13px;line-height:1.45;font-size:11px;color:#7f7581;border-left:3px solid #d6b6bf;padding:1px 0 2px 8px}
.case-objective b{font-size:10px;letter-spacing:.02em;color:#8e7588;margin-right:3px}
.case-previous{font-size:11px;line-height:1.35;color:#8b8493;background:#f7f4f7;border-radius:9px;padding:7px 9px;margin:-6px 0 11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.case-previous b{color:#795f76}
.case-gain,.case-secret-found{display:inline-flex;align-items:center;font-size:11px;font-weight:760;padding:6px 9px;border-radius:999px;background:#edf7f4;color:#326f64;margin-bottom:11px}
.case-gain.allies{background:#f0ebf8;color:#6f4d85}
.case-gain.leverage{background:#fff3e7;color:#8c6339}
.case-secret-found{background:#fff9e5;color:#99732d;max-width:fit-content}
.impact{padding:13px 15px}
.impact p{font-size:16px;line-height:1.4;margin:7px 0 9px}
.impact .big-btn{display:block;margin-top:4px}
.scene-body>.story-line{margin-bottom:14px}
.scene-body>.case-objective+h2{margin-top:5px}
.case-report .case-grade{display:table;margin:0 auto 9px;background:#eaf7ee;border:1px solid #c3dfcc;color:#326749;border-radius:100px;font-size:11px;font-weight:850;letter-spacing:.02em;padding:6px 13px}
.case-report .case-grade.cost{background:#fff5e9;border-color:#edd6b6;color:#92653b}
.case-report .case-grade.perfect{background:#f4edff;border-color:#cfc0ed;color:#6f509b}
.case-report .kicker{display:block;margin-top:11px}
.case-verdict{font-size:13px;color:#60717a;max-width:690px;margin:-8px auto 19px}
.case-summary{max-width:720px;margin:0 auto 22px;padding:19px 21px;text-align:left;background:#fcfaf7;border:1px solid #eee4dc;border-radius:17px}
.case-summary>strong{font-size:13px;display:block;margin-bottom:9px}
.case-key-actions{margin-top:15px;border-top:1px solid #e9dfda;padding-top:13px}
.case-key-actions>span{font-size:11px;letter-spacing:.08em;color:#9a7d8b;font-weight:800}
.case-key-actions p{font-size:12px;line-height:1.5;color:#636d79;margin:7px 0 0}
.case-gallery-note{color:#8e8a93;font-size:10px;margin-top:14px}
@media(min-width:701px){
 .scene-body{justify-content:center}
 .scene-body .progress-track{margin-bottom:10px}
 .scene-body .moment-pips{margin-bottom:6px}
 .scene-body .case-topline{margin-bottom:6px}
 .scene-body .case-objective{margin-bottom:9px}
 .scene-body>h2{font-size:clamp(21px,2vw,29px);margin:4px 0 9px}
 .scene-body>.story-line{margin-bottom:11px;font-size:clamp(13px,1.24vw,15px);line-height:1.52}
 .scene .choice{min-height:57px;padding:10px 13px}
 .scene .choices{gap:7px}
 .scene-body .case-previous{-webkit-line-clamp:1;margin:-3px 0 9px}
}
@media(min-width:701px) and (max-height:690px){
 .case-objective{font-size:10px}
 .case-resources>span{font-size:9px;padding:3px 5px}
 .scene .choice{min-height:47px;padding:7px 10px}
 .scene-body .story-line{font-size:12.5px;line-height:1.38;margin-bottom:7px}
 .scene-body .case-previous{margin:-2px 0 7px;padding:5px 7px;font-size:10px}
}
@media(max-width:700px){
 .case-topline{flex-wrap:wrap;gap:5px;margin-bottom:8px}
 .case-resources>span{padding:4px 7px;font-size:9px}
 .case-objective{margin-bottom:9px;font-size:10px}
 .case-previous{font-size:10px;-webkit-line-clamp:1;margin:-2px 0 8px}
 .scene-body>.story-line{font-size:13px;line-height:1.46;margin-bottom:10px}
 .scene-body>h2{font-size:20px}
 .case-summary{padding:14px;text-align:left}
 .case-report{padding:26px 16px}
}

/* The final choice makes its win condition explicit, not a personality-test label. */
.case-goal{font-size:10px;line-height:1.3;color:#84788a;margin:-4px 0 8px}
.case-demand{font-size:10px;font-weight:800;flex-shrink:0;border-radius:50px;padding:3px 7px;background:#edf8ef;color:#37734d;line-height:1.2}
.case-demand.is-short{background:#fff1e4;color:#9e6d37}
@media(max-width:700px){
 .case-demand{font-size:9px;padding:3px 5px}
 .scene .choice:has(.case-demand){gap:5px}
 .scene .choice:has(.case-demand) strong{font-size:12px}
}

/* Make cause and effect clear. Previous choice is visible before the next scene, not as unrelated footnote. */
.case-previous{display:block;-webkit-line-clamp:unset;border-left:3px solid #c4adbb;padding:7px 10px;margin:3px 0 11px;background:#f8f3f5}
.case-previous b{font-size:10px;margin-right:7px;color:#8d647a}
.case-previous span{font-size:11px;font-weight:750;color:#584d60}
.case-previous em{display:block;font-style:normal;font-size:11px;line-height:1.4;color:#75737e;margin-top:3px}
.case-topline .scene-kicker{line-height:1.3;font-size:10px;letter-spacing:0}
.scene[data-genre="romance"] .case-gain,.scene[data-genre="wild"] .case-gain,.scene[data-genre="wonder"] .case-gain,.scene[data-genre="spectacle"] .case-gain{background:#f4e9f1;color:#855272}
@media(min-width:701px) and (max-height:690px){.case-previous{padding:5px 7px;margin:3px 0 6px}.case-previous em{font-size:10px;line-height:1.25}}
@media(max-width:700px){.case-previous{padding:6px 9px;margin:3px 0 9px}.case-previous em{line-height:1.3}}


/* Elsewhere hero: one deliberate line in Chinese and English, without clipping at mobile widths. */
.intro h1{
 white-space:nowrap!important;
 overflow-wrap:normal;
 word-break:keep-all;
 max-width:100%;
 width:max-content;
 font-size:clamp(24px,3.35vw,46px);
 letter-spacing:-.052em;
 line-height:1.15;
}
@media(max-width:700px){
 .intro h1{
  font-size:clamp(15px,4.35vw,24px);
  letter-spacing:-.065em;
 }
}
.story-link{border-left:3px solid #e9b8a1;background:#fff8f1;padding:7px 10px;margin:0 0 9px;font-size:11px;line-height:1.45;color:#855c57;border-radius:0 8px 8px 0}
@media(min-width:701px) and (max-height:680px){.story-link{font-size:10px;line-height:1.3;padding:5px 8px;margin:0 0 6px}}
@media(max-width:700px){.story-link{font-size:10.5px;line-height:1.35;padding:6px 8px}}

/* Use the actual page width for the introduction instead of an arbitrary 800px text column.
   On wide viewports keep the compact introduction in one line; on phones allow natural wrapping. */
@media(min-width:960px){
 .intro p{white-space:nowrap;font-size:clamp(16px,1.5vw,18px);letter-spacing:-.012em}
}
@media(max-width:959px){
 .intro p{white-space:normal;overflow-wrap:anywhere}
}

/* Compact, browsable 80-ending collector; each route is a separate, accessible record. */
.album .album-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.album-world{min-width:0;border:1px solid #e8dde2;background:#fffdfa;border-radius:13px;overflow:hidden;box-shadow:0 3px 12px rgba(40,43,60,.04)}
.album-world[open]{grid-column:1/-1}
.album-world summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 18px;font-size:13px;font-weight:750;color:#394358;list-style:none}
.album-world summary::-webkit-details-marker{display:none}
.album-world summary span{min-width:0}
.album-world summary b{white-space:nowrap;color:#996c87;font-weight:700;font-size:12px}
.album-world summary:focus-visible{outline:3px solid #6394a7;outline-offset:-3px}
.album-world[open] summary{border-bottom:1px solid #eee8e4}
.album-world-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px}
.ending-route-label{font-size:11px;color:#8d6d81;margin:5px 0 13px;letter-spacing:.035em;font-weight:750}
.ending-art{background:#495a77}
.ending-art:after{content:"";pointer-events:none;position:absolute;inset:55% 0 0;background:linear-gradient(transparent,color-mix(in srgb,var(--ending-accent),#182232 72%));opacity:.35}
@media(max-width:700px){.album .album-cards{grid-template-columns:1fr}.album-world-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.album-world summary{padding:12px 13px}.ending-route-label{font-size:10px}}

/* Eight stories: use a balanced four-by-two desktop gallery, with no lonely
   two-card final row. Small screens retain two columns for easy browsing. */
@media(min-width:851px){.life-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.life-card>strong{font-size:clamp(16px,1.5vw,19px);min-height:52px}.life-card .tease{min-height:66px}.life-card .place{font-size:10px}.life-card .card-image{aspect-ratio:1.55}}

/* Situation-specific narrative decisions and route-dependent endings. */
.life-causal-bridge{background:rgba(251,236,230,.68);border-left:3px solid var(--rose);padding:8px 11px;border-radius:0 9px 9px 0;margin:8px 0!important;font-size:12px!important;line-height:1.42!important}
.life-causal-bridge b{color:#94566c;letter-spacing:.02em}
.life-specific-question{font-weight:830!important;color:#7e455f!important;letter-spacing:0!important;font-size:15px!important;line-height:1.35!important;margin:12px 0 8px!important}
.life-choice-made{display:block;font-size:13px;line-height:1.4;color:#a65d7c;margin:4px 0 6px}
.life-ending-moments{margin:13px 0 12px;padding:12px 14px;border:1px solid #eddcdf;border-radius:12px;background:#fff6f8}
.life-ending-moments>strong{display:block;color:#8a536a;font-size:12px;letter-spacing:.025em;margin-bottom:6px}
.life-ending-moments p{font-size:12.5px!important;line-height:1.4!important;margin:5px 0!important;color:#574c63!important}
@media(max-width:560px){.life-causal-bridge{font-size:11.5px!important;padding:6px 9px}.life-specific-question{font-size:13.5px!important;margin:8px 0 6px!important}.life-ending-moments{margin:9px 0;padding:9px 11px}.life-ending-moments p{font-size:12px!important}}

/* Decisions and consequences: visible, bilingual, mobile-friendly. */
.choice-impact{display:block;font-size:11px;line-height:1.5;font-weight:700;letter-spacing:.01em;color:#6e7f90;margin-top:9px}
.choice-impact.is-ready{color:#276f61}
.choice-impact.is-short{color:#9a5c64}
.choice-trail{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:10px 0 16px;margin-bottom:7px;border-bottom:1px solid #eee4df}
.trail-heading{font-size:10px;color:#8a7882;letter-spacing:.1em;font-weight:800;margin-right:4px;white-space:nowrap}
.trail-step{display:inline-flex;align-items:center;gap:7px;max-width:240px;padding:6px 10px;border-radius:99px;background:#f7f2ee;color:#506071;font-size:11px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trail-step b{display:inline-flex;align-items:center;justify-content:center;flex:none;width:18px;height:18px;border-radius:50%;background:#d8a5a1;color:#fff;font-size:10px}
.ending-momentum{max-width:650px;margin:4px auto 18px!important;padding:12px 16px;background:#f4faf7;border:1px solid #d8e8df;border-radius:13px;font-size:13px!important;line-height:1.6;color:#46665b!important}
.ending-momentum strong{color:#275647}
@media(max-width:600px){.choice-impact{font-size:10px;margin-top:5px}.choice-trail{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:12px}.trail-heading,.trail-step{flex-shrink:0}.trail-step{max-width:185px}.ending-momentum{font-size:12px!important}}
