:root {
  --bg:#0d1717; --panel:#152323; --panel2:#1b2d2d; --paper:#eee5cf; --ink:#26231f;
  --muted:#9bb0ab; --line:#2d4442; --accent:#d8b66a; --danger:#b44f4f; --good:#669a73;
  --orange:#c98d4a; --white:#f4f4ef;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--white);font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;min-height:100%}
button{font:inherit}
body{min-height:100dvh;background:radial-gradient(circle at top,#1b3230 0,#0d1717 55%)}
#app{max-width:520px;margin:0 auto;min-height:100dvh;padding:env(safe-area-inset-top) 14px calc(18px + env(safe-area-inset-bottom))}
.screen{min-height:100dvh;display:flex;flex-direction:column;gap:14px;padding:18px 0}
.center{justify-content:center;text-align:center}
.brand{font-size:44px;font-weight:800;letter-spacing:.18em;margin-right:-.18em}.subbrand{font-size:14px;letter-spacing:.28em;color:var(--accent);margin-top:4px}
.tagline{color:#d7ddd8;line-height:1.8;margin:24px auto;max-width:320px}
.btn{width:100%;border:0;border-radius:14px;padding:14px 16px;background:var(--accent);color:#1b1b18;font-weight:800;min-height:48px;cursor:pointer;box-shadow:0 8px 20px #0004}.btn.secondary{background:#263c3a;color:#f3f1e9;border:1px solid #3b5552}.btn.danger{background:var(--danger);color:white}.btn.ghost{background:transparent;color:#d8dfda;border:1px solid var(--line);box-shadow:none}.btn.small{width:auto;min-height:38px;padding:9px 12px;border-radius:10px;font-size:13px}.btn:disabled{opacity:.45;cursor:not-allowed}
.card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 10px 30px #0003}.paper{background:var(--paper);color:var(--ink);border-radius:18px;padding:18px;box-shadow:0 12px 32px #0005}.paper h2{margin-top:0}
.topbar{position:sticky;top:0;z-index:4;background:linear-gradient(#0d1717f2,#0d1717d9);backdrop-filter:blur(8px);padding:8px 0 10px}.dayrow{display:flex;justify-content:space-between;align-items:end}.day{font-size:24px;font-weight:800}.stage{font-size:12px;color:var(--muted)}.progress{height:5px;background:#20312f;border-radius:10px;overflow:hidden;margin-top:9px}.progress>i{display:block;height:100%;background:var(--accent)}
.person{display:flex;justify-content:space-between;gap:12px;align-items:center}.name{font-size:19px;font-weight:800}.meta{font-size:12px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}.stat{background:#0f1c1b;border-radius:10px;padding:9px;text-align:center}.stat b{display:block;font-size:18px}.hearts{font-size:18px;letter-spacing:2px}.healthdots{color:var(--orange);letter-spacing:3px}
.event-title{font-size:22px;font-weight:900;margin-bottom:8px}.event-text{line-height:1.75;white-space:pre-line}.choices{display:grid;gap:10px;margin-top:16px}.choice{padding:13px;border:1px solid #b8ad91;border-radius:12px;background:#fff8e8;color:#2b2822;text-align:left;font-weight:700}.choice small{display:block;color:#746b5b;margin-top:4px;font-weight:500}
.inventory{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.slot{min-height:76px;border:1px dashed #4b615e;border-radius:12px;padding:8px;text-align:center;background:#101d1c;color:#dce3df}.slot .ico{font-size:24px}.slot .label{font-size:11px;margin-top:3px}.slot.empty{opacity:.45}.section-title{font-size:12px;letter-spacing:.16em;color:var(--muted);font-weight:800;margin-bottom:8px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.character{cursor:pointer;transition:.15s transform}.character:hover{transform:translateY(-2px)}.avatar{font-size:38px}.ability{font-size:12px;color:#cdd9d4;line-height:1.5;margin-top:8px}.selected{outline:2px solid var(--accent)}
.modalWrap{position:fixed;inset:0;background:#000a;z-index:20;display:flex;align-items:flex-end;justify-content:center;padding:12px}.modal{width:min(520px,100%);max-height:88dvh;overflow:auto;background:#142321;border:1px solid var(--line);border-radius:20px 20px 14px 14px;padding:18px}.modal h2{margin-top:0}.row{display:flex;gap:8px;align-items:center}.between{justify-content:space-between}.list{display:grid;gap:8px}.listItem{background:#0e1a19;border:1px solid #2b403e;border-radius:12px;padding:12px}.dead{opacity:.45;filter:grayscale(1)}.log{font-size:13px;line-height:1.55;color:#cad6d1;max-height:260px;overflow:auto}.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#f0e3c4;color:#25231f;padding:10px 14px;border-radius:999px;z-index:40;box-shadow:0 8px 25px #0007;font-weight:700;max-width:90%;text-align:center}.result{font-size:13px;color:#433e34;background:#fff6e3;border-radius:10px;padding:10px;margin-top:12px}.bad{color:#ffb1a9}.good{color:#a8ddb5}.muted{color:var(--muted)}.divider{height:1px;background:var(--line);margin:12px 0}.score{font-size:64px;font-weight:900;color:var(--accent)}
@media (max-width:390px){.brand{font-size:38px}.card{padding:14px}.stats{gap:6px}.stat{padding:8px 4px}.inventory{gap:6px}.slot{min-height:70px;padding:6px}}

.islandCard{padding:14px;background:linear-gradient(180deg,#183134,#152626);overflow:hidden}
.islandMap{position:relative;height:330px;border-radius:24px;background:linear-gradient(180deg,#9be0ff 0%,#8ed4ff 38%,#7cc7f8 100%);overflow:hidden;border:2px solid #bde8ff;box-shadow:inset 0 0 0 1px #ffffff33}
.islandSea{position:absolute;inset:0;background:
  radial-gradient(circle at 16% 22%,#ffffff55 0 18px,transparent 19px),
  radial-gradient(circle at 85% 74%,#ffffff44 0 20px,transparent 21px),
  radial-gradient(circle at 70% 18%,#ffffff33 0 14px,transparent 15px),
  linear-gradient(180deg,#a9e9ff00 0%,#6fbef880 100%)}
.islandBody{position:absolute;left:10%;right:10%;top:8%;bottom:12%;background:radial-gradient(circle at 45% 38%,#dff8bf 0%,#c8e996 35%,#a9d276 65%,#8fba66 100%);border-radius:44% 56% 52% 48% / 42% 40% 60% 58%;transform:rotate(-8deg);box-shadow:inset 0 -18px 0 #8abd61,inset 0 26px 0 #efffd5}
.mapSpot{position:absolute;transform:translate(-50%,-50%);border:0;background:transparent;padding:0;cursor:pointer;width:84px;text-align:center}
.mapSpot .pin{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#fffef2;color:#2d624b;font-size:18px;box-shadow:0 6px 16px #0003;border:2px solid #f6d488}
.mapSpot.known .pin{background:#fff7df}
.spotLabel{display:block;margin-top:5px;background:#103333cc;color:#f4fbff;padding:4px 6px;border-radius:999px;font-size:11px;line-height:1.2;box-shadow:0 4px 12px #0002;backdrop-filter:blur(3px)}
.mapSpot:hover .pin,.mapSpot:active .pin{transform:translateY(-1px) scale(1.04)}
.mapLegend{font-size:12px;line-height:1.6;color:#d4ebe5;margin-top:10px}
@media (max-width:390px){.islandMap{height:290px}.mapSpot{width:74px}.spotLabel{font-size:10px;padding:3px 5px}}

/* v1.3 location / animation / ranking enhancements */
.topTools{display:flex;align-items:center;gap:8px}.soundBtn{border:1px solid var(--line);background:#142321;color:#fff;border-radius:10px;width:36px;height:32px;cursor:pointer}.statusLine{position:relative}
.mapSpot.current .pin{outline:3px solid #ffda7a;box-shadow:0 0 0 5px #fff6,0 7px 18px #0004;animation:mapPulse 1.8s ease-in-out infinite}.mapSpot.current .spotLabel{background:#76591dcc;color:#fff7d7}
@keyframes mapPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.eventPaper{animation:cardIn .32s ease-out}.encounterPaper{animation:cardIn .32s ease-out}.nightPaper{animation:nightIn .45s ease-out}
@keyframes cardIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
@keyframes nightIn{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
.typingLocked{opacity:.42;pointer-events:none;filter:grayscale(.3)}
.itemName{color:#b06d1e;font-weight:900;background:#fff0bf;border-radius:5px;padding:0 3px}.richResult{font-size:14px;line-height:1.65}
.statFx{position:fixed;z-index:80;left:50%;top:34%;transform:translate(-50%,0);font-size:25px;font-weight:900;padding:10px 18px;border-radius:999px;box-shadow:0 12px 30px #0007;pointer-events:none;animation:statFloat 1s ease-out forwards}.statFx.plus{background:#ddf5e3;color:#26733d}.statFx.minus{background:#ffe1de;color:#9d2c2c}
@keyframes statFloat{0%{opacity:0;transform:translate(-50%,16px) scale(.8)}20%{opacity:1;transform:translate(-50%,0) scale(1.08)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-48px) scale(.98)}}
.dayTransition{position:fixed;inset:0;z-index:70;background:#07110fe8;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:.28s opacity}.dayTransition.show{opacity:1}.dayTransitionInner{text-align:center;transform:translateY(8px);transition:.35s transform}.dayTransition.show .dayTransitionInner{transform:none}.dayBig{font-size:50px;font-weight:950;letter-spacing:.08em;color:#f2df9c;text-shadow:0 10px 30px #000}.dayLoc{margin-top:8px;color:#c8dcd5;letter-spacing:.12em}.lifeWarning{margin-top:18px;padding:9px 13px;border-radius:10px;background:#6f2525;color:#ffe0da;font-weight:850;animation:warningPulse .72s ease-in-out infinite alternate}@keyframes warningPulse{from{transform:scale(1);box-shadow:0 0 0 #c44a4a00}to{transform:scale(1.035);box-shadow:0 0 24px #c44a4a66}}
.difficultyGrid{display:grid;gap:12px}.difficultyCard{position:relative;text-align:left;border:1px solid var(--line);background:var(--panel);color:#fff;border-radius:18px;padding:18px;cursor:pointer;min-height:108px;box-shadow:0 10px 26px #0003}.difficultyCard b{display:block;font-size:23px;margin-bottom:7px}.difficultyCard span{display:block;color:#bdcfca;line-height:1.6;font-size:13px}.difficultyCard em{position:absolute;right:14px;top:14px;font-style:normal;color:#1a211d;background:#e5c872;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:800}.difficultyCard.easy{border-color:#416d56}.difficultyCard.normal{border-color:#8a7140}.difficultyCard.hard{border-color:#714747}
.meetList{display:grid;gap:8px;margin-top:14px}.meetPerson{border:1px solid #c6b99a;background:#fff8e8;color:#26231f;border-radius:12px;padding:10px;display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;text-align:left;cursor:pointer}.meetPerson>span{grid-row:1/3;font-size:25px;align-self:center}.meetPerson>b{font-size:15px}.meetPerson small{color:#756c5d}.meetPerson.selected{outline:3px solid #d29b46;background:#fff0c7}.targetHint{margin-top:12px;padding:8px 10px;border-radius:9px;background:#fff3ce;color:#51452d;font-size:13px}
.nightScope{margin-top:14px;border-radius:10px;padding:9px 10px;background:#e9e3d4;color:#574f42;font-size:12px}.nightScope.affected{background:#f6d6d2;color:#7d2d29;font-weight:800}
.leaderboardSubmit{text-align:left}.submitRow{display:flex;gap:8px}.submitRow input{flex:1;min-width:0;background:#0f1d1b;border:1px solid var(--line);color:#fff;border-radius:10px;padding:10px 11px;font-size:15px}.rankMsg{min-height:18px;margin-top:6px;font-size:12px}.rankSuccess{padding:11px;background:#10251b;border:1px solid #355c45;border-radius:10px;color:#d8eee0}.rankSuccess strong{color:#f0d278;font-size:20px}.leaderboardRows{display:grid;gap:7px;max-height:64dvh;overflow:auto}.leaderHead,.leaderRow{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.leaderHead{font-size:11px;color:var(--muted);padding:0 8px}.leaderRow{background:#0d1a18;border:1px solid #2a413e;border-radius:11px;padding:9px 10px}.leaderRow span{min-width:0}.leaderRow span small{display:block;color:#78918b;font-size:10px;margin-top:2px}.leaderRow strong{font-size:13px;color:#e8d495}.leaderRow.topRank{border-color:#92743a;background:#1d2117}.leaderRow.topRank>b{color:#f1d36e}
@media(max-width:390px){.dayBig{font-size:42px}.statFx{font-size:21px}.submitRow{flex-direction:column}.difficultyCard{padding:15px}}

/* v1.4 anime portraits / relationships / camp / story / crisis */
.homeScreen{padding-top:10px;justify-content:flex-start}.homeHero{position:relative;height:230px;border-radius:24px;overflow:hidden;border:1px solid #4f7778;box-shadow:0 16px 38px #0007}.homeHero>img{width:100%;height:100%;object-fit:cover;display:block}.homeHeroShade{position:absolute;inset:0;background:linear-gradient(180deg,#03101b22 15%,#06151ed9 100%)}.homeTitle{position:absolute;left:0;right:0;bottom:22px;text-align:center}.homeTitle .brand{font-size:42px;text-shadow:0 5px 20px #000}.castStrip{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin-top:-32px;position:relative;z-index:2;padding:0 10px}.castStrip img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center top;border-radius:10px;border:2px solid #e8cf88;box-shadow:0 7px 16px #0008;background:#1c3338}.homeScreen .tagline{margin:16px auto;max-width:420px}
.charPortraitBox{margin:-16px -16px 12px;height:150px;overflow:hidden;border-radius:17px 17px 9px 9px;background:#20383e}.charPortrait{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}.animeCard{overflow:hidden;padding-top:16px}.animeCard .name{font-size:17px}.animeCard .ability{min-height:54px}
.heroStatus{background:linear-gradient(135deg,#152a2b,#122121)}.heroPerson{align-items:stretch}.portraitWrap{width:82px;min-width:82px;height:100px;position:relative;border-radius:15px;overflow:hidden;border:1px solid #d7bb75;box-shadow:0 8px 20px #0005}.portraitMain{width:100%;height:100%;object-fit:cover;object-position:center top}.roleIcon{position:absolute;right:4px;bottom:4px;background:#102220dd;border-radius:999px;padding:3px 5px;font-size:14px}.heroMeta{flex:1;display:flex;flex-direction:column;justify-content:center;gap:5px}.heroMeta .name{font-size:17px}.portraitDifficulty{width:84px;height:105px;object-fit:cover;object-position:center top;border-radius:13px;border:1px solid #d6b96e}.difficultyHero{display:flex;align-items:center;gap:14px}
.meetPerson{display:flex!important;grid-template:none!important;align-items:center;gap:10px}.meetPortrait{width:56px;height:66px;object-fit:cover;object-position:center top;border-radius:9px;border:1px solid #c8a969;flex:none}.meetInfo{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.meetInfo b{font-size:15px}.meetInfo small{font-size:11px}.relationBadge{font-style:normal;font-size:11px;font-weight:800;margin-top:3px}.relGood{color:#4f9c69!important}.relBad{color:#b84c4c!important}.relNormal{color:#a17a35!important}.encounterFaces{display:flex;justify-content:center;align-items:center;margin:-2px 0 14px}.encounterPortrait{width:92px;height:112px;object-fit:cover;object-position:center top;border-radius:14px;border:3px solid #fff2c9;box-shadow:0 8px 18px #0004}.encounterPortrait+ .encounterPortrait{margin-left:-14px;transform:translateY(8px)}
.relationItem{display:flex;gap:10px;align-items:center}.listPortrait{width:58px;height:72px;object-fit:cover;object-position:center top;border-radius:10px;border:1px solid #35534f;flex:none}.relationBody{flex:1;min-width:0}.relationMeter{height:5px;background:#263936;border-radius:999px;margin-top:7px;overflow:hidden}.relationMeter i{display:block;height:100%;background:linear-gradient(90deg,#a64646,#d6b86b 50%,#66ad79);border-radius:999px}.relationText{font-size:11px;margin-top:3px;font-weight:800}.endPerson{display:inline-flex;align-items:center;gap:7px}.endPortrait{width:32px;height:38px;object-fit:cover;object-position:center top;border-radius:6px}
.crisisBanner{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:15px;border:1px solid #b4774e;background:linear-gradient(120deg,#3e241e,#281d1c);box-shadow:0 8px 22px #0004;animation:cardIn .35s ease-out}.crisisBanner.now{border-color:#d74f46;background:linear-gradient(120deg,#5c211e,#321716);animation:warningPulse .85s ease-in-out infinite alternate}.crisisIcon{font-size:30px}.crisisBanner b{display:block;color:#ffd4b3;font-size:14px}.crisisBanner span{display:block;color:#d2b9a9;font-size:11px;line-height:1.55;margin-top:3px}.storyHint{display:flex;gap:10px;align-items:center;border:1px solid #5b597c;background:linear-gradient(120deg,#25243b,#1a2130);border-radius:14px;padding:10px 12px}.storyHint>span{font-size:24px}.storyHint b,.storyHint small{display:block}.storyHint b{font-size:13px;color:#e7ddff}.storyHint small{font-size:11px;color:#aaa9c7;margin-top:2px}.mapSpot.storySpot .pin{outline:3px solid #a990e9;animation:storyPulse 1.25s ease-in-out infinite}.mapSpot.storySpot .spotLabel{background:#46376dcc}@keyframes storyPulse{0%,100%{box-shadow:0 0 0 2px #a990e933}50%{box-shadow:0 0 0 8px #a990e922}}
.campMini{display:flex;justify-content:space-between;align-items:center;background:#142b23;border:1px solid #365d4a;border-radius:12px;padding:9px 11px;color:#d7ebdd;font-size:12px;cursor:pointer}.campMini:hover{border-color:#6e9f7e}.campLocation{padding:9px 10px;background:#0e1d1a;border-radius:10px;color:#bcd4ca;font-size:12px}.campMaterials{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0}.campMaterials span{background:#0e1b19;border:1px solid #2c4440;border-radius:10px;padding:9px 5px;text-align:center;font-size:11px}.campMaterials b{display:block;font-size:18px;color:#e3cd88;margin-top:3px}.campStorage{display:grid;grid-template-columns:1fr 1fr;gap:8px}.campBuildList{display:grid;gap:8px}.campBuild{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:9px;padding:10px;background:#0e1b19;border:1px solid #29413c;border-radius:12px}.campBuild.built{border-color:#45735a;background:#11251c}.campBuildIcon{font-size:27px;text-align:center}.campBuildText b,.campBuildText span,.campBuildText small{display:block}.campBuildText b{font-size:13px}.campBuildText span{font-size:10px;color:#a8bbb4;line-height:1.4;margin-top:2px}.campBuildText small{font-size:10px;color:#d7bd75;margin-top:4px}.campBuild em{font-style:normal;font-size:20px;color:#77c38e}
.eventPaper{position:relative;overflow:hidden}.eventPaper:before{content:'';position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,#76a8a1,#d8b66a,#76a8a1)}.event-title{letter-spacing:.01em}.choice{transition:.15s transform,.15s box-shadow,.15s background}.choice:active{transform:scale(.985);box-shadow:inset 0 0 0 2px #e2bd6a}.richResult{border-left:4px solid #d2a650}.nightPaper{position:relative;overflow:hidden}.nightPaper:before{content:'☾';position:absolute;right:16px;top:10px;color:#777067;font-size:34px;opacity:.28}
@media(max-width:390px){.homeHero{height:205px}.homeTitle .brand{font-size:36px}.castStrip{gap:3px;margin-top:-26px}.charPortraitBox{height:126px}.portraitWrap{width:72px;min-width:72px;height:90px}.campStorage{grid-template-columns:1fr}.campBuild{grid-template-columns:36px 1fr auto}.encounterPortrait{width:78px;height:98px}}
.storyPaper:before{background:linear-gradient(90deg,#8872c7,#d0a9ef,#8872c7)}.storyPaper{box-shadow:0 12px 34px #57458255}
.dayPortrait{width:80px;height:98px;object-fit:cover;object-position:center top;border-radius:50% 50% 44% 44%;border:2px solid #ecd58d;box-shadow:0 10px 28px #0008;margin-bottom:10px}.dayCrisis{margin-top:12px;color:#ffbda9;font-weight:800;font-size:13px}
.homeSub{margin:10px 0 0}.homeSub+.castStrip{margin-top:0}
.eventLocIcon{position:absolute;right:18px;top:18px;font-size:42px;opacity:.16;filter:saturate(.8);transform:rotate(6deg)}.eventPaper .section-title,.eventPaper .event-title,.eventPaper .event-text,.eventPaper .choices,.eventPaper .result{position:relative;z-index:1}

/* v1.5 — 8格背包、地点行动中心、关系互动 */
.inventory.inventory8{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.inventory8 .slot{position:relative;min-height:72px;padding:7px 4px}
.inventory8 .slot .ico{font-size:22px}
.inventory8 .slot .label{font-size:10px;line-height:1.25;word-break:break-all}
.slot.starterSlot{border-style:solid;border-color:#d5b45f;background:linear-gradient(145deg,#2b2a1c,#18221d);box-shadow:inset 0 0 0 1px #f0d98422,0 4px 12px #0002}
.starterBadge{position:absolute;right:3px;top:3px;padding:2px 4px;border-radius:999px;background:#d9b65f;color:#292217;font-size:8px;font-weight:950;letter-spacing:.03em}
.locationBrief{position:relative;overflow:hidden;background:linear-gradient(150deg,#f5ecd7,#e7dcc2);border:1px solid #d1c19c}
.locationBrief:after{content:'◌';position:absolute;right:14px;top:9px;font-size:58px;color:#917f5a16;pointer-events:none}
.locationBrief .locationIcon{font-size:30px;margin-bottom:5px}
.locationBrief .event-text{font-size:14px;color:#443d32}
.actionHub{display:grid;gap:9px}
.actionHint{font-size:12px;color:#a9bbb6;line-height:1.55;padding:0 2px}
.meetList.compact{margin-top:0}
.meetList.compact .meetPerson{min-height:72px;background:#142523;border-color:#34514c;color:#eef4f1;border-radius:13px;padding:8px 10px;text-align:left}
.meetList.compact .meetPerson:hover{border-color:#758f87}
.interactionPaper{position:relative;overflow:hidden}
.interactionPaper .dialogue{background:#fff9e9;border:1px solid #d2c3a5;border-radius:12px;padding:12px 13px;line-height:1.7;white-space:pre-line;margin-top:10px}
.interactionMeta{display:flex;gap:7px;flex-wrap:wrap;margin:7px 0 0}
.interactionMeta span{font-size:11px;background:#e5dac2;color:#564a38;border-radius:999px;padding:4px 8px}
.tradeChoice{position:relative;padding-right:30px}
.tradeChoice:after{content:'⇄';position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#8d6e31;font-size:18px}
.dangerPaper{border:1px solid #8e4841;background:linear-gradient(145deg,#f5dfd3,#eac9bc);box-shadow:0 12px 30px #7f262633}
.dangerPaper .event-title{color:#8e2f2b}
.protectedNote{margin:8px 0 0;padding:8px 10px;border-radius:10px;background:#2b291b;border:1px solid #6e6032;color:#e7d79a;font-size:11px;line-height:1.5}
.choice:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.45)}
@media(max-width:390px){
  .inventory.inventory8{gap:5px}
  .inventory8 .slot{min-height:66px;padding:6px 2px}
  .inventory8 .slot .ico{font-size:20px}
  .inventory8 .slot .label{font-size:9px}
  .starterBadge{font-size:7px;padding:2px 3px}
  .locationBrief .event-text{font-size:13px}
}

/* v1.6：地图细节、每日双行动、文字与反馈优化 */
body{font-size:15px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-feature-settings:"kern" 1,"liga" 1}
.paper,.card{letter-spacing:.005em}
.event-title{font-size:23px;line-height:1.35;letter-spacing:.02em;text-wrap:balance}
.event-text{font-size:15px;line-height:1.9;color:#3d392f;text-wrap:pretty;word-break:break-word}
.result{font-size:14px;line-height:1.75}
.section-title{line-height:1.5}
.choice{font-size:15px;line-height:1.45;padding:14px 14px;box-shadow:0 4px 10px #0000000d}
.choice small{font-size:12px;line-height:1.5;margin-top:5px}
.itemName{font-weight:900;color:#9b5b16;background:#fff0b8;padding:0 3px;border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.interactionSceneTitle{display:inline-block;margin:2px 0 10px;padding:4px 9px;border-radius:999px;background:#dceee7;color:#356455;font-size:12px;font-weight:850;letter-spacing:.05em}
.dailyActionStatus{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.dailyActionStatus span{font-size:10px;padding:5px 7px;border-radius:999px;background:#253b39;color:#bcd0ca;border:1px solid #38514e}.dailyActionStatus span.done{background:#214d39;color:#c8f1d3;border-color:#3f7658}
.endDayChoice{background:#edf0ef;border-color:#aeb8b5;color:#34423f}.postButtons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.meetPerson:disabled{opacity:.45;filter:grayscale(.4);cursor:not-allowed}

/* 更丰富的海岛地图 */
.islandMap{height:355px;background:linear-gradient(180deg,#b6edff 0%,#8bd4f6 52%,#69bce8 100%);border-color:#d6f5ff;box-shadow:inset 0 0 0 1px #fff8,inset 0 -30px 60px #2799d42b,0 12px 26px #0002}
.islandBody{background:
  radial-gradient(circle at 43% 32%,#efffd8 0 12%,transparent 13%),
  radial-gradient(circle at 63% 62%,#d8f5af 0 10%,transparent 11%),
  radial-gradient(circle at 45% 38%,#dff8bf 0%,#c7e996 35%,#a8d273 66%,#87b95d 100%);box-shadow:inset 0 -18px 0 #80ad56,inset 0 18px 0 #efffd2,0 7px 18px #1a795d33}
.mapTerrain{position:absolute;inset:8% 10% 12% 10%;width:80%;height:80%;z-index:1;pointer-events:none;transform:rotate(-8deg)}
.mapTerrain .river{fill:none;stroke:#67c9e8;stroke-width:2.3;stroke-linecap:round;filter:drop-shadow(0 1px 0 #e7ffff)}
.mapTerrain .trail{fill:none;stroke:#b8a16f;stroke-width:1.1;stroke-dasharray:2 2;opacity:.68}.mapTerrain .trail.alt{opacity:.48}
.mapTerrain .sandPatch{fill:#ead89a;opacity:.78}.mapTerrain .pond{fill:#70c7d9;stroke:#c6fbff;stroke-width:.7}.mapTerrain .pond.tiny{opacity:.8}
.terrainIcon{position:absolute;z-index:2;pointer-events:none;filter:drop-shadow(0 2px 1px #315e3d55);opacity:.86;font-size:20px}.terrainIcon.mountain{font-size:26px}.terrainIcon.m1{left:43%;top:12%}.terrainIcon.m2{left:58%;top:16%;transform:scale(.8)}.terrainIcon.p1{left:24%;top:27%}.terrainIcon.p2{left:31%;top:35%;font-size:16px}.terrainIcon.t1{left:31%;top:59%}.terrainIcon.t2{left:48%;top:49%;font-size:17px}.terrainIcon.plane{left:52%;top:20%;transform:rotate(-14deg);font-size:17px}.terrainIcon.campMark{left:49%;top:57%;font-size:17px}.terrainIcon.rocks{left:76%;top:38%;font-size:16px}
.waveLine{position:absolute;z-index:1;color:#e8fbffb8;letter-spacing:3px;font-size:13px;pointer-events:none;text-shadow:0 1px #4ba9cf}.waveLine.w1{left:3%;top:48%;transform:rotate(-14deg)}.waveLine.w2{right:4%;bottom:20%;transform:rotate(14deg)}
.cloudShade{position:absolute;z-index:2;width:64px;height:20px;border-radius:50%;background:#ffffff38;filter:blur(8px);pointer-events:none}.cloudShade.c1{left:9%;top:12%;transform:rotate(-10deg)}.cloudShade.c2{right:9%;top:9%;width:48px}
.mapSpot{z-index:5}.mapSpot .pin{transition:.18s transform,.18s box-shadow}.mapSpot:active .pin{transform:scale(.94)}.mapSpot.current .pin{box-shadow:0 0 0 4px #fff8,0 7px 18px #1d704b66}.spotLabel{font-weight:750;letter-spacing:.01em}

.conversionFx{position:fixed;z-index:90;left:50%;top:27%;transform:translate(-50%,-10px) scale(.96);opacity:0;min-width:240px;max-width:88vw;padding:12px 16px;border-radius:16px;background:linear-gradient(135deg,#fff4c6,#dff5df);color:#31573c;box-shadow:0 18px 42px #0006;border:1px solid #fff;pointer-events:none;transition:.25s opacity,.25s transform;text-align:center}.conversionFx.show{opacity:1;transform:translate(-50%,0) scale(1)}.conversionFx b{display:block;font-size:17px;color:#927021}.conversionFx span{display:block;margin-top:4px;font-size:12px;font-weight:700}

@media(max-width:390px){
  body{font-size:14px}.event-title{font-size:21px}.event-text{font-size:14px;line-height:1.85}.choice{font-size:14px;padding:13px 12px}.choice small{font-size:11px}.islandMap{height:315px}.terrainIcon{font-size:16px}.terrainIcon.mountain{font-size:21px}.dailyActionStatus{max-width:160px}.dailyActionStatus span{font-size:9px}.postButtons{grid-template-columns:1fr}.conversionFx{top:23%}
}

/* v1.7 关键信息高亮与情侣关系 */
.roleName{color:#2f78b8;font-weight:900;background:#dff1ff;border-radius:5px;padding:0 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.placeName{color:#2f7c57;font-weight:900;background:#e2f5e8;border-radius:5px;padding:0 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.keyState{color:#a33d55;font-weight:900;background:#ffe2e8;border-radius:5px;padding:0 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.relCouple{color:#d4497d!important}
.relationBadge.relCouple{background:#ffe3ef;border:1px solid #f4acc9;border-radius:999px;padding:2px 7px;width:max-content}
.interactionSceneTitle{font-weight:900;letter-spacing:.03em;color:#8d5a20;margin:6px 0 10px;font-size:16px}
.event-text .roleName,.event-text .itemName,.event-text .placeName,.event-text .keyState,.richResult .roleName,.richResult .itemName,.richResult .placeName,.richResult .keyState{white-space:nowrap}

/* v1.8 场景图、人物叠加与晨间停留选择 */
.scenePanel{overflow:hidden;border-radius:20px;background:linear-gradient(180deg,#152a2b,#10201f);border:1px solid #355552;box-shadow:0 12px 30px #0004}
.sceneHead{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:13px 14px 10px}.sceneHead .section-title{margin:0}.sceneName{font-size:22px;font-weight:950;color:#f5efd9;letter-spacing:.03em}.sceneCount{font-size:11px;color:#b9d0c8;background:#203b37;border:1px solid #365850;border-radius:999px;padding:5px 8px;white-space:nowrap}
.sceneImageWrap{position:relative;aspect-ratio:16/9;background:#18302e;overflow:hidden}.sceneImage{display:block;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(1.05) contrast(1.02)}.sceneShade{position:absolute;inset:0;background:linear-gradient(180deg,#0000 45%,#071311bb 100%);pointer-events:none}
.scenePeople{position:absolute;left:10px;right:10px;bottom:9px;z-index:3}.scenePeopleTitle{font-size:10px;font-weight:800;color:#eaf8f3;text-shadow:0 2px 5px #000;margin-bottom:5px}.scenePeopleRow{display:flex;gap:7px;flex-wrap:wrap}.scenePerson{display:flex;align-items:center;gap:5px;border:1px solid #ffffff8a;background:#0c2423d9;color:#fff;border-radius:999px;padding:3px 7px 3px 3px;box-shadow:0 5px 12px #0005;backdrop-filter:blur(4px);cursor:pointer}.scenePerson:active{transform:scale(.97)}.sceneAvatar{width:34px;height:34px;object-fit:cover;object-position:center top;border-radius:50%;border:1px solid #f1d997}.scenePerson span{font-size:11px;font-weight:900;white-space:nowrap}
.sceneBrief{padding:12px 14px 14px;color:#dbe9e5;font-size:13px;line-height:1.8;background:linear-gradient(180deg,#10201f,#122624)}
.morningChoice{border:1px solid #d6c292;background:linear-gradient(150deg,#f7eed9,#e9ddc1)}.morningChoice .event-title{color:#493d2d}.morningChoice .event-text{color:#51483a}
.actionSubTitle{margin-top:12px!important;margin-bottom:5px}.actionHub .meetPerson:disabled{opacity:.5}.actionHub .meetPerson small{color:#9cb3ad}.actionHub .meetPerson:not(:disabled) small{color:#c5d7d1}
.personInfoHero{display:flex;align-items:center;gap:14px;margin:8px 0 14px}.personInfoPortrait{width:98px;height:122px;object-fit:cover;object-position:center top;border-radius:14px;border:1px solid #d2b96f;box-shadow:0 8px 20px #0004}.personInfoHero b{font-size:18px}.personInfoStats{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}.personInfoStats span{background:#0e1b1a;border:1px solid #2e4542;border-radius:9px;padding:8px 9px;font-size:12px}.personAbility{font-size:13px;line-height:1.65;color:#d9e4df;background:#102120;border-left:3px solid #c7aa62;border-radius:8px;padding:9px 10px}
@media(max-width:390px){.sceneName{font-size:20px}.sceneBrief{font-size:12px;line-height:1.75}.scenePerson{padding-right:6px}.sceneAvatar{width:30px;height:30px}.scenePerson span{font-size:10px}.scenePeopleRow{gap:5px}.personInfoPortrait{width:82px;height:103px}}

/* v1.9 手机单屏主界面 / 个人窝棚 / AI生存行为 */
#app:has(.gameScreen){height:100dvh;min-height:100dvh;overflow:hidden;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.gameScreen{height:100%;min-height:0;padding:5px 0 4px;gap:6px;overflow:hidden}
.gameStage{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:7px;padding:0 1px 3px;scrollbar-width:thin}
.mobileHud{flex:0 0 auto;position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px;background:linear-gradient(135deg,#142828,#0e1c1c);border:1px solid #31504d;border-radius:14px;padding:6px 7px;box-shadow:0 6px 18px #0003}
.hudIdentity{display:flex;align-items:center;gap:7px;min-width:0}.hudPortrait{width:40px;height:40px;object-fit:cover;object-position:center top;border-radius:50%;border:1px solid #d7bb75;flex:none}.hudIdentity>div{min-width:0}.hudIdentity b{font-size:14px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hudIdentity small{font-size:10px;color:#9fb7b0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.hudVitals{display:flex;gap:4px}.hudVitals span{font-size:11px;font-weight:850;padding:5px 6px;border-radius:9px;white-space:nowrap}.hudVitals .life{background:#402425;color:#ffc2bd}.hudVitals .health{background:#234130;color:#c6efd1}.hudIcons{display:flex;gap:4px}.hudIcons button{width:31px;height:31px;border:1px solid #35524f;background:#19302e;color:#fff;border-radius:9px;padding:0;font-size:15px}
.hudAlert,.hudShelter{position:absolute;top:100%;z-index:6;font-size:9px;font-weight:800;padding:3px 7px;border-radius:0 0 8px 8px}.hudAlert{right:40px;background:#9a423d;color:#fff}.hudShelter{left:52px;background:#284c39;color:#d8f1df}
.quickDock{flex:0 0 auto;display:grid;grid-template-columns:repeat(6,1fr);gap:4px;background:#0c1818;border:1px solid #293f3d;border-radius:13px;padding:4px;box-shadow:0 -6px 16px #0002}.quickDock button{border:0;background:#172725;color:#cbd8d4;border-radius:9px;min-height:44px;font-size:9px;font-weight:750;padding:3px 1px}.quickDock button span{display:block;font-size:16px;line-height:18px;margin-bottom:1px}.quickDock button:active{transform:scale(.96);background:#253c39}

.gameScreen .scenePanel{border-radius:14px}.gameScreen .sceneHead{padding:7px 9px 5px}.gameScreen .sceneHead .section-title{font-size:9px}.gameScreen .sceneName{font-size:17px}.gameScreen .sceneCount{font-size:9px;padding:3px 6px}.gameScreen .sceneImageWrap{aspect-ratio:16/7;min-height:132px}.gameScreen .sceneBrief{font-size:11px;line-height:1.55;padding:7px 9px 8px;max-height:64px;overflow:auto}.gameScreen .scenePeople{bottom:5px;left:6px;right:6px}.gameScreen .scenePeopleTitle{display:none}.gameScreen .sceneAvatar{width:27px;height:27px}.gameScreen .scenePerson{padding:2px 5px 2px 2px}.gameScreen .scenePerson span{font-size:9px}
.compactMorning{padding:9px 10px;border-radius:13px}.compactMorning .section-title{margin-bottom:5px}.twoChoices{grid-template-columns:1fr 1fr!important;margin-top:6px!important}.twoChoices .choice{min-height:58px;padding:8px 9px;font-size:13px}.twoChoices .choice small{font-size:10px;margin-top:2px}

.compactHub{padding:8px 9px;border-radius:13px;gap:6px}.actionHubHead{display:flex;align-items:center;justify-content:space-between;gap:6px}.actionHubHead b{font-size:12px}.actionHubHead span{font-size:9px;color:#8fa9a2}.actionPeople{display:flex;gap:5px;overflow-x:auto;padding:1px 0 3px}.actionPerson{flex:0 0 62px;border:1px solid #36514e;background:#10201f;color:#fff;border-radius:10px;padding:4px 3px}.actionPerson .meetPortrait{width:27px;height:27px;border-radius:50%;object-fit:cover;object-position:center top}.actionPerson span,.actionPerson small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.actionPerson span{font-size:10px;font-weight:850;margin-top:2px}.actionPerson small{font-size:8px;color:#9db5ae}.actionPerson.done{opacity:.42}.compactActions{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.quickAction{border:1px solid #3b5652;background:#18302e;color:#fff;border-radius:10px;min-height:48px;font-size:17px;padding:5px 2px}.quickAction span{display:block;font-size:9px;margin-top:2px}.quickAction.explore{background:#294a38}.quickAction.rest{background:#3b3651}.quickAction.shelter{background:#4b3e25}.quickAction.end{background:#6b3632}.actionHint{font-size:9px;color:#a4bbb5;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.sceneStrip{flex:0 0 auto;background:#142625;border:1px solid #34504d;border-radius:12px;overflow:hidden}.sceneStripHead{height:26px;display:flex;align-items:center;justify-content:space-between;padding:0 8px}.sceneStripHead b{font-size:12px}.sceneStripHead span{font-size:9px;color:#a3b9b3}.sceneStripImage{height:86px;position:relative;overflow:hidden}.sceneStripImage>img{width:100%;height:100%;object-fit:cover;filter:saturate(1.04)}.sceneStripImage:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,#0612119c)}.sceneStripPeople{position:absolute;z-index:2;left:6px;bottom:4px;display:flex;gap:4px}.sceneStripPeople button{display:flex;align-items:center;gap:3px;border:1px solid #ffffff85;background:#102322dc;color:#fff;border-radius:999px;padding:2px 5px 2px 2px}.sceneStripPeople .sceneAvatar{width:25px;height:25px}.sceneStripPeople span{font-size:8px;font-weight:800}
.compactPaper{padding:10px 11px;border-radius:13px;box-shadow:0 7px 18px #0004}.compactPaper .event-title{font-size:18px;margin-bottom:4px}.compactPaper .event-text{font-size:13px;line-height:1.65}.compactChoices{gap:6px;margin-top:8px}.compactChoices .choice{padding:8px 9px;font-size:12px;border-radius:9px;min-height:42px}.compactChoices .choice small{font-size:9px;line-height:1.3}.interactionHeader{display:flex;align-items:center;gap:8px}.interactionHeader .encounterPortrait{width:46px;height:54px;border-radius:10px;object-fit:cover;object-position:center top}.interactionHeader .event-title{margin:0}.resultPaper{padding:8px 10px}.resultPaper .event-title{font-size:15px}.resultPaper .result{margin-top:4px;padding:7px;font-size:12px;line-height:1.5}

.modalInventory{grid-template-columns:repeat(4,1fr)!important}.overviewList{display:grid;grid-template-columns:1fr 1fr;gap:7px}.overviewList .choice{padding:10px;font-size:12px;margin:0}.infoGrid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0}.infoGrid span{background:#0d1b1a;border:1px solid #2a4340;border-radius:9px;padding:8px;font-size:11px}.infoGrid b{display:block;margin-top:2px;color:#e7d79a}.personAi{margin:10px 0;padding:8px 9px;border-radius:9px;background:#10211f;border-left:3px solid #69a790;color:#bbd3cc;font-size:11px;line-height:1.55}

.shelterInterior{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:13px;border:1px solid #4e655c;box-shadow:0 8px 22px #0005;margin:8px 0}.shelterBuildIntro{display:grid;gap:8px}.shelterBuildIntro>div{display:grid;gap:3px}.shelterBuildIntro span,.shelterBuildIntro small,.shelterDesc{font-size:11px;color:#b7c9c3;line-height:1.55}.shelterLocation{font-size:11px;color:#b5cac4;margin-bottom:5px}.campMaterials.compact{margin:7px 0;padding:6px;grid-template-columns:repeat(3,1fr)}.shelterFacilityList{display:grid;gap:6px}.shelterFacility{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:7px;background:#0f1e1d;border:1px solid #2c4642;border-radius:10px;padding:7px}.facilityIcon{font-size:22px;text-align:center}.shelterFacility b{font-size:11px}.shelterFacility small,.shelterFacility em{display:block;font-size:9px;line-height:1.4;color:#93aaa3;font-style:normal}.shelterFacility.built{border-color:#4e795c}.maxShelter{text-align:center;padding:9px;background:#213e2d;border-radius:10px;color:#c6edcf;font-size:11px;font-weight:800}

.deathAlert{text-align:center}.deathAlertIcon{font-size:34px}.deathAlert h2{color:#f1b1ab}.deathPortrait{width:100px;height:120px;object-fit:cover;object-position:center top;border-radius:14px;filter:grayscale(.7);border:1px solid #8c5550}.deathName{font-size:20px;font-weight:900;color:#f3b0aa;margin-top:8px}.deathAlert p{color:#bac6c2}

.gameScreen .islandCard{padding:8px}.gameScreen .islandMap{height:min(46vh,315px);border-radius:16px}.gameScreen .mapLegend{font-size:9px;line-height:1.4;margin-top:5px}.gameScreen .islandCard>.row{margin-bottom:4px}.gameScreen .islandCard .name{font-size:14px!important}.gameScreen .spotLabel{font-size:8px;padding:2px 4px}.gameScreen .mapSpot{width:60px}.gameScreen .mapSpot .pin{width:29px;height:29px;font-size:14px}

@media(max-height:700px){
  .mobileHud{padding:4px 6px}.hudPortrait{width:34px;height:34px}.hudVitals span{font-size:10px;padding:4px}.quickDock button{min-height:39px}.quickDock button span{font-size:14px}.gameScreen .sceneImageWrap{min-height:112px}.gameScreen .sceneBrief{max-height:52px}.compactActions .quickAction{min-height:43px}.sceneStripImage{height:72px}.compactPaper .event-text{line-height:1.5}
}
@media(max-width:390px){
  .gameScreen{gap:4px}.mobileHud{gap:4px}.hudIdentity b{font-size:12px}.hudIdentity small{font-size:8px}.hudPortrait{width:35px;height:35px}.hudVitals{gap:2px}.hudVitals span{font-size:9px;padding:4px 5px}.hudIcons button{width:27px;height:28px}.quickDock{gap:2px}.quickDock button{font-size:8px}.gameScreen .sceneImageWrap{aspect-ratio:16/6.7}.compactActions{gap:3px}.quickAction{font-size:15px}.actionPerson{flex-basis:57px}.modalInventory{gap:5px}
}

/* v2.2：无页面滚动的满屏布局、可读性、双人互动、结构损坏 */
#app:has(.gameScreen){overflow:hidden}
.gameScreen{font-size:13px}
.gameStage{overflow:hidden!important;scrollbar-width:none;padding-bottom:2px}
.gameStage::-webkit-scrollbar{display:none}
.mobileHud{padding:7px 8px;gap:8px}
.hudPortrait{width:44px;height:44px}
.hudIdentity b{font-size:15px}.hudIdentity small{font-size:11px}
.hudVitals span{font-size:12px;padding:6px 7px}
.hudIcons button{width:34px;height:34px;font-size:17px}
.quickDock button{font-size:10px;min-height:46px}.quickDock button span{font-size:18px;line-height:19px}

.phase-morning,.phase-location{display:flex;flex-direction:column;min-height:0}
.phase-morning .scenePanel,.phase-location .scenePanel{flex:1;min-height:0;display:flex;flex-direction:column}
.phase-morning .sceneImageWrap,.phase-location .sceneImageWrap{flex:1;min-height:190px;height:auto;aspect-ratio:auto}
.phase-morning .sceneBrief,.phase-location .sceneBrief{flex:0 0 auto;max-height:92px;overflow:auto;font-size:13px!important;line-height:1.62!important;padding:8px 10px 9px!important}
.gameScreen .sceneHead{padding:8px 10px 6px}.gameScreen .sceneHead .section-title{font-size:10px}.gameScreen .sceneName{font-size:20px}.gameScreen .sceneCount{font-size:10px;padding:4px 7px}
.gameScreen .scenePeople{bottom:7px;left:8px;right:8px}.gameScreen .sceneAvatar{width:38px;height:38px;border-width:2px}.gameScreen .scenePerson{padding:3px 8px 3px 3px;gap:4px}.gameScreen .scenePerson span{font-size:11px}
.compactMorning{flex:0 0 auto;padding:10px 11px}.compactMorning .section-title{font-size:11px}.twoChoices .choice{min-height:64px;font-size:14px}.twoChoices .choice small{font-size:11px}
.compactHub{flex:0 0 auto;padding:9px 10px}.actionHubHead b{font-size:13px}.actionHubHead span{font-size:10px}.actionPerson{flex-basis:72px;padding:5px 4px}.actionPerson .meetPortrait{width:34px;height:34px}.actionPerson span{font-size:11px}.actionPerson small{font-size:9px}.quickAction{min-height:52px;font-size:19px}.quickAction span{font-size:10px}.actionHint{font-size:10px}

/* 探索/结果页面内容在可用区域内自适应，不让整页上下滚 */
.phase-event,.phase-post,.phase-post_action{display:flex;flex-direction:column;min-height:0}
.phase-event .sceneStrip,.phase-post .sceneStrip,.phase-post_action .sceneStrip{flex:0 0 104px}
.phase-event .compactPaper,.phase-post .resultPaper,.phase-post_action .resultPaper{flex:1;min-height:0;overflow:auto}
.compactPaper .event-title{font-size:19px}.compactPaper .event-text{font-size:14px;line-height:1.72}.compactChoices .choice{font-size:13px;min-height:45px}.compactChoices .choice small{font-size:10px}
.sceneStripHead b{font-size:13px}.sceneStripHead span{font-size:10px}.sceneStripImage{height:78px}.sceneStripPeople .sceneAvatar{width:31px;height:31px}.sceneStripPeople span{font-size:9px}

/* 双人互动：场景图上放两张大头像 */
.phase-interaction{display:flex;flex-direction:column;min-height:0;gap:6px}
.interactionVisual{position:relative;flex:0 0 min(35vh,260px);min-height:180px;border-radius:15px;overflow:hidden;border:1px solid #3a5b57;background:#10201f;box-shadow:0 8px 22px #0004}
.interactionBg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(1.06)}
.interactionShade{position:absolute;inset:0;background:linear-gradient(180deg,#06111026 0,#0611107d 58%,#061110e5 100%)}
.interactionDuo{position:absolute;left:14px;right:14px;bottom:10px;display:grid;grid-template-columns:1fr 28px 1fr;align-items:end;gap:6px;z-index:2;text-align:center}
.interactionDuo>div{display:flex;flex-direction:column;align-items:center;gap:3px}.interactionDuo>span{font-size:18px;color:#f1d69c;padding-bottom:37px}.interactionDuo b{font-size:13px;color:white;text-shadow:0 2px 5px #000}
.interactionBigPortrait{width:92px;height:112px;object-fit:cover;object-position:center top;border-radius:16px;border:2px solid #f0d18a;box-shadow:0 8px 20px #0008;background:#203433}
.interactionRel{position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:3;background:#0a1717dd;border:1px solid #ffffff44;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:850;white-space:nowrap}
.interactionPaper{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}.interactionSceneTitle{font-size:15px;font-weight:900;margin-bottom:5px;color:#5a4c34}.dialogueTranscript{display:grid;gap:5px;max-height:118px;overflow:auto;padding:1px 2px 4px}.dialogueLine{display:flex;align-items:flex-start;gap:6px}.dialogueLine.mine{flex-direction:row-reverse}.dialogueAvatar{width:32px;height:37px;border-radius:9px;object-fit:cover;object-position:center top;flex:none}.dialogueLine>div{max-width:82%;background:#fff8e9;border:1px solid #d4c4a3;border-radius:10px;padding:5px 7px}.dialogueLine.mine>div{background:#dceaf3;border-color:#aac5d3}.dialogueLine b{display:block;font-size:10px;margin-bottom:2px}.dialogueLine span{display:block;font-size:12px;line-height:1.55;color:#302b23}.interactionStoryChoices{overflow:auto;min-height:0;flex:1;padding-bottom:3px}.interactionUtility{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;flex:0 0 auto;padding-top:5px;border-top:1px solid #c7b99b}.interactionUtility button{border:1px solid #aa9c7d;background:#fff5df;border-radius:9px;padding:7px 3px;color:#3b3429;font-size:16px}.interactionUtility button span{display:block;font-size:10px;font-weight:800;margin-top:2px}.interactionUtility button.rob{background:#f6dddd;border-color:#dca5a5;color:#7a2929}.interactionUtility button:disabled{opacity:.38}

/* 关系档次弹窗 */
.relationAlert{text-align:center}.relationAlertPortrait{width:112px;height:136px;object-fit:cover;object-position:center top;border-radius:16px;border:2px solid #d6be7c}.relationAlertTag{display:inline-block;margin-top:8px;padding:4px 10px;border-radius:999px;background:#334b47;color:#dcebe7;font-size:11px}.relationAlert h2{margin:8px 0 3px}.relationJump{font-size:18px;font-weight:900;color:#e2c56e}.relationAlert.negative .relationJump{color:#f18b82}.relationAlert p{font-size:12px;color:#b8cbc5}.specialDialogue{background:#f3ead6;color:#3b342a;border-radius:10px;padding:10px;margin:10px 0;text-align:left;font-size:13px;line-height:1.65}

/* 堆叠道具、损坏与修复 */
.slot{position:relative}.stackBadge{position:absolute;right:4px;top:4px;background:#d6b35e;color:#1d1a15;font-size:10px;font-weight:900;border-radius:999px;padding:2px 5px;box-shadow:0 2px 5px #0005}
.damageTag{display:inline-block!important;color:#ffaaa2!important;background:#612f2d;padding:1px 5px;border-radius:999px;font-size:9px!important;margin-left:3px}.campBuild.damaged,.shelterFacility.damaged{border-color:#9f4f49!important;background:#2e1d1c!important}.structureDamage{display:grid;gap:6px;background:#4a2422;border:1px solid #9d514b;border-radius:11px;padding:9px;margin:8px 0}.structureDamage b{color:#ffb0a8}.structureDamage span{font-size:11px;color:#e3c3c0}.shelterResources{grid-template-columns:repeat(5,1fr)!important}.shelterResources span{font-size:10px;padding:6px 3px}

/* v2.2 较小屏仍优先可读，不再把文字压到 8px */
@media(max-height:700px){
  .hudPortrait{width:39px;height:39px}.hudIdentity b{font-size:13px}.hudIdentity small{font-size:10px}.hudVitals span{font-size:10px}.quickDock button{min-height:41px;font-size:9px}.quickDock button span{font-size:15px}.phase-morning .sceneImageWrap,.phase-location .sceneImageWrap{min-height:150px}.gameScreen .sceneBrief{font-size:12px!important;max-height:76px}.interactionVisual{flex-basis:190px;min-height:150px}.interactionBigPortrait{width:76px;height:92px}.dialogueTranscript{max-height:92px}.dialogueLine span{font-size:11px}.compactChoices .choice{min-height:40px;padding:7px 8px}
}
@media(max-width:390px){
  .gameScreen{font-size:12px}.hudPortrait{width:39px;height:39px}.gameScreen .sceneAvatar{width:35px;height:35px}.gameScreen .scenePerson span{font-size:10px}.interactionBigPortrait{width:82px;height:100px}.interactionDuo{left:8px;right:8px}.interactionUtility button{font-size:15px}.shelterResources{grid-template-columns:repeat(3,1fr)!important}
}
/* v2.2 首日沉浸式开场需要稍多文字空间，但仍保持单屏 */
.phase-morning .sceneBrief{max-height:132px}
@media(max-height:700px){.phase-morning .sceneBrief{max-height:108px!important}}

/* v2.2：把叙事信息叠加到场景画面，提升手机单屏信息密度 */
.sceneBriefOverlay{position:absolute;z-index:4;left:8px;right:8px;bottom:8px;max-height:66%;overflow:auto;background:linear-gradient(135deg,#071413e8,#102827d4);border:1px solid #ffffff38;border-radius:11px;padding:8px 10px;color:#f1f7f4;font-size:14px;line-height:1.65;text-shadow:0 1px 2px #000;backdrop-filter:blur(5px);box-shadow:0 6px 18px #0005}
.phase-morning .scenePeople,.phase-location .scenePeople{left:auto!important;right:8px!important;top:8px!important;bottom:auto!important;max-width:55%;z-index:6}
.phase-morning .scenePeopleRow,.phase-location .scenePeopleRow{justify-content:flex-end}
.phase-morning .scenePerson,.phase-location .scenePerson{background:#071b1bdc}
.gameScreen .sceneBriefOverlay .roleName,.gameScreen .sceneBriefOverlay .itemName,.gameScreen .sceneBriefOverlay .placeName,.gameScreen .sceneBriefOverlay .keyState{font-size:inherit}

.eventSceneStrip{flex:0 0 132px!important}.eventSceneStrip .sceneStripImage{height:104px!important}.sceneStripShade{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,#04111018 0,#04111032 30%,#041110d5 100%)}
.sceneEventOverlay{position:absolute;z-index:4;left:8px;right:8px;bottom:7px;max-height:72%;overflow:auto;background:#081a19dc;border:1px solid #ffffff35;border-radius:10px;padding:7px 9px;color:#fff;backdrop-filter:blur(4px);box-shadow:0 5px 14px #0005}.sceneEventOverlay>b{display:block;color:#ffe2a3;font-size:16px;margin-bottom:3px}.sceneEventOverlay>div{font-size:14px;line-height:1.62;text-shadow:0 1px 2px #000}.eventSceneStrip .sceneStripPeople{top:5px;bottom:auto;right:5px;left:auto;z-index:5}
.phase-event .eventPaper{flex:1;min-height:0;overflow:auto}.phase-event .eventPaper .section-title{font-size:11px}.phase-event .compactChoices .choice{font-size:14px;line-height:1.35}
.phase-post .sceneEventOverlay>div,.phase-post_action .sceneEventOverlay>div{font-size:13px}

.interactionSceneTalk{position:absolute;z-index:4;top:40px;left:8px;right:8px;max-height:36%;overflow:auto;display:grid;gap:4px;padding:6px 7px;background:#071615d5;border:1px solid #ffffff33;border-radius:10px;backdrop-filter:blur(4px);box-shadow:0 5px 14px #0005}.sceneTalkLine{font-size:13px;line-height:1.48;color:#f4f7f5}.sceneTalkLine b{color:#ffe1a0;margin-right:5px}.sceneTalkLine span{color:#f2f7f5}.dialogueLine span{font-size:13px!important;line-height:1.62!important}.dialogueLine b{font-size:11px!important}.interactionSceneTitle{font-size:17px!important}.interactionStoryChoices .choice{font-size:13px!important}

.phase-travel{display:flex;flex-direction:column;min-height:0}.phase-travel .eventSceneStrip{flex:0 0 150px!important}.phase-travel .travelPaper{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:8px}.travelPaper .result{font-size:14px;line-height:1.65}.travelPaper .choice{font-size:14px}

@media(max-height:700px){
  .sceneBriefOverlay{font-size:12.5px;line-height:1.5;max-height:63%;padding:6px 8px}
  .eventSceneStrip{flex-basis:112px!important}.eventSceneStrip .sceneStripImage{height:86px!important}.sceneEventOverlay>b{font-size:14px}.sceneEventOverlay>div{font-size:12.5px;line-height:1.48}
  .interactionSceneTalk{top:34px;max-height:34%;padding:5px 6px}.sceneTalkLine{font-size:11.5px;line-height:1.4}.dialogueLine span{font-size:12px!important}.interactionSceneTitle{font-size:15px!important}
  .phase-travel .eventSceneStrip{flex-basis:120px!important}
}
@media(max-width:390px){
  .sceneBriefOverlay{font-size:13px;line-height:1.52}.sceneEventOverlay>div{font-size:13px}.sceneEventOverlay>b{font-size:15px}.sceneTalkLine{font-size:12px}.phase-morning .scenePeople,.phase-location .scenePeople{max-width:60%}
}

/* v2.3 阅读设置 */
html[data-font-size="small"]{--read-body:13px;--read-detail:12px;--read-scene:13px;--read-dialogue:14px;--read-choice:13px}
html[data-font-size="medium"]{--read-body:14px;--read-detail:13px;--read-scene:15px;--read-dialogue:15px;--read-choice:14px}
html[data-font-size="large"]{--read-body:16px;--read-detail:15px;--read-scene:17px;--read-dialogue:17px;--read-choice:16px}
.gameScreen,.modal{font-size:var(--read-body,14px)}
.gameScreen .meta,.modal .meta,.peopleScoreHint{font-size:var(--read-detail,13px)!important}
.sceneBriefOverlay,.sceneEventOverlay>div{font-size:var(--read-scene,15px)!important;line-height:1.62}
.choice,.compactChoices .choice,.interactionStoryChoices .choice{font-size:var(--read-choice,14px)!important}
.settingsBlock{display:grid;gap:7px;padding:12px;margin:10px 0;border:1px solid #34514d;border-radius:14px;background:#0d1b1a}.settingsBlock>b{font-size:16px}.settingsBlock>.muted{font-size:12px;line-height:1.55}.settingPills{display:flex;gap:7px;flex-wrap:wrap}.settingPill{border:1px solid #55716d;background:#192b29;color:#e7efec;border-radius:999px;padding:8px 13px;min-width:52px;font-weight:800}.settingPill.active{background:#d6b460;color:#211d16;border-color:#f0d28c}.musicPills .settingPill{min-width:calc(50% - 4px)}

/* v2.3 3:4 大幅海岛地图 */
.mapPortraitCard{max-height:calc(100dvh - 126px);overflow:auto}.portraitMap{width:100%;height:auto!important;aspect-ratio:3/4;max-height:68dvh;background:#5fc7ee!important;border-radius:20px}.islandMapArt{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}.portraitMap .mapSpot{z-index:3;width:88px}.portraitMap .mapSpot .pin{width:40px;height:40px;font-size:20px}.portraitMap .spotLabel{font-size:11px;background:#082b31dc;border:1px solid #ffffff47}.portraitMap .mapSpot.current .pin{outline:3px solid #ffd66c}

/* 场景内人物头像进一步放大 */
.gameScreen .sceneAvatar{width:50px!important;height:50px!important;border-width:2px!important}.scenePerson span{font-size:12px!important}.phase-morning .scenePeople,.phase-location .scenePeople{max-width:68%!important}.scenePeopleRow{gap:7px!important}.actionPerson .meetPortrait{width:44px!important;height:44px!important}.actionPerson span{font-size:12px!important}

/* RPG 式逐句对白 */
.rpgInteractionVisual{min-height:250px}.enlargedDuo .interactionBigPortrait{width:108px;height:132px}.enlargedDuo>span{color:#f5a7b6;font-size:22px}.rpgDialogueOverlay{position:absolute;z-index:7;left:8px;right:8px;bottom:8px}.rpgDialogue{display:flex;align-items:flex-end;gap:8px}.rpgDialogue.mine{flex-direction:row-reverse}.rpgSpeakerPortrait{width:72px;height:88px;object-fit:cover;object-position:center top;border-radius:13px;border:2px solid #f0d39b;box-shadow:0 6px 16px #0008;flex:none}.rpgBubble{position:relative;flex:1;min-height:86px;background:#fff8ebf2;color:#2b2b27;border:1px solid #e0cda8;border-radius:16px;padding:10px 12px 34px;box-shadow:0 7px 20px #0007;backdrop-filter:blur(4px)}.rpgDialogue.mine .rpgBubble{background:#e3f1f8f2;border-color:#a9c9d9}.rpgBubble>b{display:block;color:#80612e;margin-bottom:4px;font-size:13px}.rpgBubble>div{font-size:var(--read-dialogue,15px);line-height:1.65}.dialogueNext{position:absolute;right:8px;bottom:7px;border:0;border-radius:999px;background:#233f3d;color:#fff;padding:5px 11px;font-size:12px;font-weight:800}.dialogueNext span{font-size:17px;vertical-align:-1px}.interactionPaper{max-height:36dvh}.interactionStoryChoices{max-height:22dvh}

/* 女性次日临时加成、疲惫提示 */
.tempBoost{color:#ffcf76;font-size:10px;margin-left:2px}.forcedRestCard{border:1px solid #906968;background:#f4e2d5}.forcedRestCard .event-title{font-size:18px}.forcedRestCard .event-text{font-size:14px;line-height:1.65;margin-bottom:12px}

/* 夜间情侣红心动画 */
.nightScreen{position:relative;overflow:hidden}.heartRise{position:fixed;inset:0;z-index:5;pointer-events:none;overflow:hidden}.heartRise i{position:absolute;bottom:-30px;left:calc(8% + (var(--i) * 7%));color:#ff7188;font-style:normal;font-size:calc(18px + (var(--i) % 4) * 4px);opacity:0;animation:heartFloat 3.2s ease-out calc((var(--i) % 6) * .12s) forwards}@keyframes heartFloat{0%{transform:translateY(0) scale(.7) rotate(-8deg);opacity:0}16%{opacity:.9}100%{transform:translateY(-82dvh) translateX(calc((var(--i) % 3 - 1)*22px)) scale(1.35) rotate(14deg);opacity:0}}.intimateNightPaper{border:1px solid #d58a99;box-shadow:0 0 35px #df72865c}.intimateNightTag{background:#ffe0e7;color:#8e3045;border-radius:12px;padding:8px 10px;margin-bottom:9px;font-size:13px;font-weight:850}

/* 人物实时评分 */
.peopleScoreHint{color:#9fb5af;line-height:1.5;margin:-2px 0 10px}.scoredPeople .relationItem{position:relative;padding-left:42px}.rankBadge{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#203b38;color:#f1d88d;font-weight:900;font-size:12px}.currentScore{color:#f2cd72;white-space:nowrap;font-size:14px}

/* 系统与情侣住所提示 */
.systemAlert,.coupleHomeModal{text-align:center}.systemAlertIcon{font-size:44px}.systemAlert h2,.coupleHomeModal h2{margin:8px 0}.systemAlert p,.coupleHomeModal p{line-height:1.7;color:#c9d8d3}.coupleHomeCard{text-align:left}.coupleHomeCard span{display:block;margin-top:5px;color:#3c5d4f;font-size:12px;font-weight:700}

/* 结局演出 */
.endCinematic{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;background:#081514}.endCinematic .cinematicBg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.endCinematic.fail .cinematicBg{filter:grayscale(.72) brightness(.34)}.endCinematic.win .cinematicBg{filter:saturate(1.25) brightness(.86)}.cinematicShade{position:absolute;inset:0;background:linear-gradient(#07151944,#061013db)}.cinematicContent{position:relative;z-index:2;width:min(88%,430px);animation:cinematicIn 1.3s ease-out}.cinematicContent h1{font-size:40px;margin:10px 0;color:#ffe8aa;text-shadow:0 5px 22px #000}.endCinematic.fail h1{color:#ffd0cb}.cinematicContent p{font-size:16px;line-height:1.8;color:#f0f5f2;text-shadow:0 2px 5px #000}.cinematicPortrait{width:126px;height:152px;border-radius:18px;object-fit:cover;object-position:center top;border:2px solid #f5dca2}.endCinematic.fail .cinematicPortrait{filter:grayscale(.75)}.cinematicAction{opacity:0;animation:buttonReveal .7s ease 2.3s forwards}.rescueGlow{position:absolute;width:240px;height:240px;border-radius:50%;background:#ffe89970;filter:blur(30px);animation:rescuePulse 2s ease-in-out infinite}.rescueShip{font-size:72px;animation:shipIn 3s ease-out both}.failRain{position:absolute;inset:-20%;background:repeating-linear-gradient(100deg,transparent 0 16px,#b8d9e31f 17px 19px);animation:rainMove .6s linear infinite}@keyframes cinematicIn{from{opacity:0;transform:scale(.92) translateY(18px)}to{opacity:1;transform:none}}@keyframes buttonReveal{to{opacity:1}}@keyframes rescuePulse{50%{transform:scale(1.35);opacity:.6}}@keyframes shipIn{from{transform:translateX(45vw) scale(.5);opacity:0}to{transform:none;opacity:1}}@keyframes rainMove{to{transform:translate(-30px,90px)}}

@media(max-width:390px){.gameScreen .sceneAvatar{width:46px!important;height:46px!important}.enlargedDuo .interactionBigPortrait{width:94px;height:116px}.rpgSpeakerPortrait{width:64px;height:80px}.rpgBubble{min-height:80px;padding:8px 10px 32px}.portraitMap .mapSpot{width:76px}.portraitMap .spotLabel{font-size:10px}.interactionPaper{max-height:35dvh}}
.actionOrderLine{font-size:12px;line-height:1.5;color:#7b6d59;background:#f7edda;border:1px dashed #cdbb99;border-radius:9px;padding:6px 8px;margin:4px 0 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* v2.4 细节打磨：统一声音、阅读档位、窝棚提示、场景头像和结果布局 */
html[data-font-size="small"]{--read-result:13px}
html[data-font-size="medium"]{--read-result:15px}
html[data-font-size="large"]{--read-result:17px}
.richResult,.resultPaper .result,.travelPaper .result{font-size:var(--read-result,15px)!important;line-height:1.72!important}
.richResult br{display:block;content:"";margin-top:4px}
.materialName{color:#ffd36f;font-weight:950;background:#503a1480;border-radius:5px;padding:0 4px;white-space:nowrap}

/* 到达新地点：人物放在画面中下方，既醒目又不挡顶部状况描述 */
.phase-location .scenePeople{left:50%!important;right:auto!important;top:auto!important;bottom:12%!important;transform:translateX(-50%);max-width:92%!important;width:max-content}
.phase-location .scenePeopleRow{justify-content:center!important;flex-wrap:nowrap!important}
.phase-location .scenePerson{background:#071b1be8;box-shadow:0 7px 18px #0008}

/* 探索/途中事件把描述区留得更完整，选项与结果框下移并压缩高度 */
.phase-event .sceneStrip,.phase-post .sceneStrip,.phase-post_action .sceneStrip{flex:1 1 auto!important;min-height:155px!important}
.phase-event .compactPaper,.phase-post .resultPaper,.phase-post_action .resultPaper{flex:0 0 auto!important;max-height:29dvh!important;overflow:auto;margin-top:7px}
.phase-travel .eventSceneStrip{flex:1 1 auto!important;min-height:175px!important}
.phase-travel .travelPaper{flex:0 0 auto!important;max-height:28dvh!important;overflow:auto;margin-top:8px}
.phase-event .compactChoices,.phase-travel .compactChoices{margin-top:5px!important;gap:5px!important}
.phase-event .compactChoices .choice,.phase-travel .compactChoices .choice{min-height:38px!important;padding:7px 9px!important}

/* 我的窝棚：材料需求更醒目；不足/可升级直接显示在画面中央 */
.shelterHero{align-items:stretch!important}.shelterBuildInfo{display:flex;flex-direction:column;gap:6px;min-width:0}.shelterBuildInfo>b{font-size:18px}.shelterBuildInfo>span{line-height:1.55}
.materialTitle{font-size:14px;font-weight:950;color:#f5d27e;margin-top:3px}
.materialCosts{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.materialNeed{font-size:14px;font-weight:900;border-radius:8px;padding:6px 8px;border:1px solid #526b66;background:#102220;color:#e9f1ee;white-space:nowrap}
.materialNeed.enough{border-color:#4e9b70;background:#143426;color:#b8f0c8}.materialNeed.lack{border-color:#a96156;background:#3b211f;color:#ffbeb5}
.shelterInteriorWrap{position:relative;border-radius:14px;overflow:hidden;background:#0d1b1a}.shelterInteriorWrap .shelterInterior{display:block;width:100%;margin:0!important}
.shelterCenterNotice,.shelterCenterUpgrade{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;border-radius:12px;padding:11px 17px;font-size:18px;font-weight:950;box-shadow:0 8px 24px #0009;backdrop-filter:blur(4px);white-space:nowrap}
.shelterCenterNotice.lack{background:#511f1fd9;color:#ffd4cf;border:1px solid #e89086}
.shelterCenterUpgrade{border:1px solid #f0d079;background:#1f5b3ee8;color:#fff2b3;cursor:pointer}
.shelterUpgradeNeed{margin:10px 0;padding:9px 10px;border:1px solid #36524e;border-radius:12px;background:#0f201f}
.facilityCost{margin-top:5px}.facilityCost>.materialCosts{gap:4px}.facilityCost .materialNeed{font-size:12px;padding:4px 6px}

@media(max-width:390px){
  .phase-location .scenePeople{bottom:10%!important;max-width:96%!important}.phase-location .scenePerson span{display:none}.phase-location .sceneAvatar{width:48px!important;height:48px!important}
  .phase-event .sceneStrip,.phase-post .sceneStrip,.phase-post_action .sceneStrip{min-height:140px!important}.phase-travel .eventSceneStrip{min-height:155px!important}
  .materialNeed{font-size:13px;padding:5px 7px}.shelterCenterNotice,.shelterCenterUpgrade{font-size:16px;padding:9px 13px}
}

/* v2.5 显示与动物系统 */
/* 中/大字号时扩大事件与互动内容区，减少在小框内反复滚动 */
html[data-font-size="medium"] .phase-travel .travelPaper,
html[data-font-size="medium"] .phase-event .eventPaper,
html[data-font-size="medium"] .phase-post .resultPaper,
html[data-font-size="medium"] .phase-post_action .resultPaper{max-height:40dvh!important;overflow:auto!important}
html[data-font-size="large"] .phase-travel .travelPaper,
html[data-font-size="large"] .phase-event .eventPaper,
html[data-font-size="large"] .phase-post .resultPaper,
html[data-font-size="large"] .phase-post_action .resultPaper{max-height:48dvh!important;overflow:auto!important}
html[data-font-size="medium"] .interactionPaper{max-height:45dvh!important}
html[data-font-size="large"] .interactionPaper{max-height:52dvh!important}
html[data-font-size="medium"] .interactionStoryChoices{max-height:31dvh!important}
html[data-font-size="large"] .interactionStoryChoices{max-height:36dvh!important}
html[data-font-size="medium"] .sceneEventOverlay{max-height:82%!important}
html[data-font-size="large"] .sceneEventOverlay{max-height:88%!important}
html[data-font-size="medium"] .phase-travel .eventSceneStrip{min-height:205px!important}
html[data-font-size="large"] .phase-travel .eventSceneStrip{min-height:235px!important}
html[data-font-size="medium"] .phase-event .eventSceneStrip{min-height:180px!important}
html[data-font-size="large"] .phase-event .eventSceneStrip{min-height:210px!important}

/* 夜间 16:9 场景图 */
.nightHero16x9{position:relative;width:100%;aspect-ratio:16/9;border-radius:18px;overflow:hidden;border:1px solid #365d68;box-shadow:0 12px 28px #0008;flex:none}
.nightHero16x9 img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.08) brightness(.86)}
.nightHeroCaption{position:absolute;left:10px;bottom:8px;padding:5px 9px;border-radius:999px;background:#071322d9;color:#e9f5ff;font-size:13px;font-weight:850;letter-spacing:.05em}
.nightScreen .nightPaper{width:100%;text-align:left}

/* 设施按窝棚等级解锁 */
.facilityLevel{display:inline-block;font-style:normal;font-size:10px;color:#ffda87;background:#473a1e;border-radius:999px;padding:1px 5px;margin-left:3px}
.lockedFacility{opacity:.58;filter:saturate(.55)}
.lockedFacility>div>em{color:#d5c68e!important}

/* 动物：地点头像、资料与互动 */
.animalAvatar,.animalMeetPortrait{object-fit:cover!important;object-position:center!important;border-color:#91d7a6!important;background:#183326!important}
.animalScenePerson{border-color:#6fae81!important}
.animalAction{border-color:#4e8d62!important;background:#153422!important}
.animalInfoImage{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px;border:1px solid #4d7168;box-shadow:0 10px 24px #0006;margin:6px 0 12px}
.animalInteractionScene{position:relative;min-height:300px;border-radius:18px;overflow:hidden;border:1px solid #43645d;background:#10221f;box-shadow:0 12px 28px #0006}
.animalInteractionBg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.72) saturate(.95)}
.animalInteractionShade{position:absolute;inset:0;background:linear-gradient(180deg,#0612131f 5%,#06121347 45%,#061213e8 100%)}
.animalInteractionPortrait{position:absolute;z-index:3;left:50%;bottom:88px;transform:translateX(-50%);width:148px;height:148px;object-fit:cover;border-radius:24px;border:3px solid #d8eaa9;box-shadow:0 12px 28px #0009;background:#19362a}
.animalDialogueCard{position:absolute;z-index:4;left:10px;right:10px;bottom:10px;background:#0b1d1bdc;border:1px solid #ffffff37;border-radius:13px;padding:10px 12px;color:#eff8f3;backdrop-filter:blur(5px)}
.animalDialogueCard .event-title{font-size:18px;color:#ffe3a2;margin:1px 0 5px}.animalDialogueCard .event-text{font-size:var(--read-scene,15px);line-height:1.62}
.animalChoicePaper{margin-top:8px;max-height:38dvh;overflow:auto}

/* 地点画面中人物/动物区稍加宽，动物也可点击 */
.scenePeopleRow{align-items:flex-end}.scenePerson{min-width:56px}.scenePerson .animalAvatar{width:54px!important;height:54px!important}

@media(max-width:390px){
  .animalInteractionScene{min-height:270px}.animalInteractionPortrait{width:126px;height:126px;bottom:96px}.animalDialogueCard{padding:8px 9px}
  html[data-font-size="large"] .phase-travel .travelPaper,html[data-font-size="large"] .phase-event .eventPaper{max-height:45dvh!important}
}


/* v2.6 interaction / layout polish */
.copyrightLine{margin-top:16px;padding-top:10px;border-top:1px solid #ffffff1f;color:#8ea8a2;font-size:10px;line-height:1.6;text-align:center;letter-spacing:.01em}
.overviewCopyright{margin-top:18px;padding-bottom:2px}
/* Arriving at a location: companions sit in the upper-middle of the scene, away from action controls. */
.phase-location .scenePeople{left:50%!important;right:auto!important;top:27%!important;bottom:auto!important;transform:translateX(-50%)!important;max-width:94%!important;width:max-content!important;z-index:7!important}
.phase-location .scenePeopleRow{justify-content:center!important;align-items:center!important;flex-wrap:nowrap!important}
.phase-location .scenePerson{background:#071b1be6!important;box-shadow:0 7px 18px #0008!important}
/* Dialogue keeps only speaker portrait + RPG bubble; remove dead space previously reserved for two large portraits. */
.dialogueOnlyVisual{min-height:220px!important;flex-basis:220px!important}
.dialogueOnlyVisual .rpgDialogueOverlay{left:10px;right:10px;bottom:10px}
.postTalkPanel{max-height:42dvh!important;overflow:auto!important}
.interactionUtilityLabel{font-size:11px;line-height:1.55;color:#746b5b;margin:8px 0 5px}
html[data-font-size="medium"] .interactionUtilityLabel{font-size:13px}
html[data-font-size="large"] .interactionUtilityLabel{font-size:15px}
@media(max-width:390px){
  .phase-location .scenePeople{top:25%!important;max-width:96%!important}
  .phase-location .sceneAvatar{width:48px!important;height:48px!important}
  .phase-location .scenePerson span{font-size:10px!important;display:block!important}
  .dialogueOnlyVisual{min-height:205px!important;flex-basis:205px!important}
  .copyrightLine{font-size:9px}
}

/* v2.7：移动/特别事件在中大字号下优先保证完整可读 */
.phase-travel .eventSceneStrip{flex:0 0 auto!important}
.phase-travel .eventSceneStrip .sceneStripImage{height:clamp(190px,30dvh,260px)!important;min-height:190px}
.phase-travel .sceneEventOverlay{top:10px;bottom:auto;max-height:calc(100% - 20px);overflow:auto;padding:10px 12px}
.phase-travel .sceneEventOverlay>b{font-size:18px}
.phase-travel .sceneEventOverlay>div{line-height:1.72!important}
html[data-font-size="medium"] .phase-travel .eventSceneStrip .sceneStripImage{height:clamp(215px,33dvh,285px)!important}
html[data-font-size="large"] .phase-travel .eventSceneStrip .sceneStripImage{height:clamp(245px,37dvh,320px)!important}
html[data-font-size="large"] .phase-travel .sceneEventOverlay{padding:12px 14px}
@media(max-height:700px){
  .phase-travel .eventSceneStrip .sceneStripImage{height:190px!important;min-height:190px}
  html[data-font-size="large"] .phase-travel .eventSceneStrip .sceneStripImage{height:225px!important}
}

/* 探索页只保留场景和事件信息，不再在右上角重复显示同地点伙伴头像 */
.phase-event .sceneStripPeople,.phase-post .sceneStripPeople{display:none!important}

/* 动物互动说明提高前景/背景反差，避免深灰文字落在深色卡片上 */
.animalDialogueCard{background:#071817f2!important;border-color:#ffffff54!important}
.animalDialogueCard .event-text,.animalDialogueCard .event-text *{color:#f4faf7!important;text-shadow:0 1px 3px #000!important;opacity:1!important}
.animalDialogueCard .section-title{color:#c5d8d1!important}
.animalDialogueCard .event-title{color:#ffe39f!important;text-shadow:0 1px 2px #000}

/* 中、大字体时，动物说明卡也给予更充足的高度 */
html[data-font-size="medium"] .animalInteractionScene{min-height:330px}
html[data-font-size="large"] .animalInteractionScene{min-height:370px}
html[data-font-size="large"] .animalDialogueCard{padding:12px 14px}


/* v2.8：场景描述框扩大约50%，中/大字号给予额外垂直空间 */
.sceneBriefOverlay{max-height:66%!important}
html[data-font-size="medium"] .sceneBriefOverlay{max-height:72%!important}
html[data-font-size="large"] .sceneBriefOverlay{max-height:78%!important}
@media(max-width:390px){
  .sceneBriefOverlay{max-height:63%!important}
  html[data-font-size="medium"] .sceneBriefOverlay{max-height:70%!important}
  html[data-font-size="large"] .sceneBriefOverlay{max-height:76%!important}
}

/* v2.9 interaction-result portrait + milestone celebration */
.resultFocus{position:absolute;z-index:5;left:50%;top:54%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}
.resultFocus img{width:118px;height:118px;border-radius:50%;object-fit:cover;object-position:center top;border:4px solid #e9d893;background:#17312c;box-shadow:0 12px 32px #0009,0 0 0 5px #122f2caa}
.resultFocus.animal img{width:132px;height:132px;border-radius:24px;border-color:#d9eaa7}
.resultFocus span{max-width:150px;padding:5px 12px;border-radius:999px;background:#071917dd;color:#f6f0d8;font-size:14px;font-weight:900;letter-spacing:.04em;box-shadow:0 5px 15px #0007}

.interactionUtility .finishInteractionBtn{background:linear-gradient(180deg,#243d4a,#172a35)!important;border:1px solid #7296a2!important;color:#f3fbff!important;box-shadow:inset 0 1px 0 #ffffff1f,0 4px 10px #0002}
.interactionUtility .finishInteractionBtn span{color:#f3fbff!important}
.interactionUtility .finishInteractionBtn:hover,.interactionUtility .finishInteractionBtn:active{background:linear-gradient(180deg,#315467,#1d3542)!important}

.celebrationOverlay{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;background:#07131088;backdrop-filter:blur(3px);opacity:0;transition:opacity .22s ease;pointer-events:none;overflow:hidden}
.celebrationOverlay.show{opacity:1}.celebrationOverlay.fade{opacity:0;transition:opacity .48s ease}
.celebrationCard{position:relative;z-index:3;min-width:min(330px,82vw);max-width:88vw;text-align:center;padding:24px 24px 22px;border-radius:24px;background:linear-gradient(155deg,#fff5d6,#f6d18a);color:#3d2a15;border:2px solid #fff1bd;box-shadow:0 22px 70px #000b,0 0 45px #ffd5687a;transform:scale(.72) translateY(16px);animation:celebrationPop .55s cubic-bezier(.18,.9,.24,1.22) forwards}
.celebrationOverlay.love .celebrationCard{background:linear-gradient(155deg,#fff0f4,#ffc4d2);border-color:#ffe0e8;box-shadow:0 22px 70px #000b,0 0 55px #ff7ca37a;color:#642638}
.celebrationIcon{font-size:64px;filter:drop-shadow(0 7px 8px #0002);animation:celebrateBounce .75s ease-in-out infinite alternate}
.celebrationPortraits{display:flex;justify-content:center;align-items:center;margin-bottom:8px}
.celebrationPortraits img:first-child{transform:translateX(8px) rotate(-3deg)}.celebrationPortraits img:last-child{transform:translateX(-8px) rotate(3deg)}
.celebrationPortrait{width:84px;height:96px;border-radius:18px;object-fit:cover;object-position:center top;border:3px solid #fff;box-shadow:0 8px 18px #7b31463d;background:#fff}
.celebrationTitle{font-size:27px;line-height:1.15;font-weight:1000;letter-spacing:.05em;margin:6px 0 8px}
.celebrationText{font-size:14px;line-height:1.65;font-weight:700;opacity:.82}
.celebrationParticles{position:absolute;inset:0;z-index:2;pointer-events:none}
.celebrationParticles i{position:absolute;left:calc(5% + (var(--i) * 4.25%));bottom:-24px;font-style:normal;font-size:calc(17px + (var(--i) % 5) * 4px);color:#ffd65a;text-shadow:0 3px 10px #0006;animation:celebrateRise 2s ease-out calc((var(--i) % 7)*.055s) forwards}
.celebrationOverlay.love .celebrationParticles i{color:#ff6b91}
@keyframes celebrationPop{0%{transform:scale(.72) translateY(16px)}65%{transform:scale(1.045) translateY(-3px)}100%{transform:scale(1) translateY(0)}}
@keyframes celebrateRise{0%{opacity:0;transform:translateY(0) scale(.6) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translateY(-95vh) translateX(calc((var(--i) % 3 - 1)*26px)) scale(1.3) rotate(240deg)}}
@keyframes celebrateBounce{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-7px) rotate(2deg)}}

@media(max-width:390px){
  .resultFocus{top:56%}.resultFocus img{width:104px;height:104px}.resultFocus.animal img{width:116px;height:116px}.resultFocus span{font-size:12px}
  .celebrationCard{padding:20px 18px}.celebrationTitle{font-size:23px}.celebrationText{font-size:13px}.celebrationPortrait{width:72px;height:84px}
}
.phase-post_action .eventSceneStrip .sceneStripImage{height:180px!important;min-height:180px}
@media(max-width:390px){.phase-post_action .eventSceneStrip .sceneStripImage{height:165px!important;min-height:165px}}
.interactionVisual .resultFocus.interactionFocus{top:55%}
.interactionVisual .resultFocus.interactionFocus img{width:112px;height:128px;border-radius:20px}


/* v2.10：探索返回结果框扩大约50%，优先改善大字号阅读 */
.phase-post .resultPaper{
  max-height:44dvh!important;
  min-height:24dvh!important;
  overflow:auto!important;
}
html[data-font-size="medium"] .phase-post .resultPaper{
  max-height:60dvh!important;
  min-height:31dvh!important;
}
html[data-font-size="large"] .phase-post .resultPaper{
  max-height:72dvh!important;
  min-height:36dvh!important;
}
/* 为结果区腾出更多垂直空间，同时保留地点画面氛围 */
.phase-post .eventSceneStrip .sceneStripImage{height:145px!important;min-height:145px!important}
@media(max-width:390px){
  .phase-post .eventSceneStrip .sceneStripImage{height:132px!important;min-height:132px!important}
  .phase-post .resultPaper{max-height:46dvh!important;min-height:25dvh!important}
  html[data-font-size="medium"] .phase-post .resultPaper{max-height:61dvh!important;min-height:32dvh!important}
  html[data-font-size="large"] .phase-post .resultPaper{max-height:70dvh!important;min-height:38dvh!important}
}

/* v2.11：修复“行动完成”页场景区域占高过大，保证今日行动/结束今天直接可见 */
.phase-post_action .sceneStrip,
.phase-post_action .eventSceneStrip{
  flex:0 0 auto!important;
  min-height:0!important;
  height:auto!important;
}
.phase-post_action .eventSceneStrip .sceneStripImage{
  height:108px!important;
  min-height:108px!important;
}
.phase-post_action .sceneStripImage{
  height:108px!important;
  min-height:108px!important;
}
.phase-post_action .resultPaper{
  flex:0 0 auto!important;
  min-height:0!important;
  max-height:24dvh!important;
  overflow:auto!important;
  margin-top:5px!important;
}
.phase-post_action .compactHub{
  flex:0 0 auto!important;
  margin-top:0!important;
}
@media(max-width:390px){
  .phase-post_action .eventSceneStrip .sceneStripImage,
  .phase-post_action .sceneStripImage{
    height:92px!important;
    min-height:92px!important;
  }
  .phase-post_action .resultPaper{max-height:22dvh!important}
}
@media(max-height:700px){
  .phase-post_action .eventSceneStrip .sceneStripImage,
  .phase-post_action .sceneStripImage{
    height:82px!important;
    min-height:82px!important;
  }
}

/* v2.12：进一步压缩“行动完成”页空白区，优先给今日行动/结束今天留空间 */
.phase-post_action .sceneStrip,
.phase-post_action .eventSceneStrip{
  flex:0 0 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:104px!important;
}
.phase-post_action .sceneStripHead{
  height:23px!important;
  min-height:23px!important;
  padding:0 8px!important;
}
.phase-post_action .eventSceneStrip .sceneStripImage,
.phase-post_action .sceneStripImage{
  height:72px!important;
  min-height:72px!important;
  max-height:72px!important;
}
/* 行动完成页仍保留互动对象，但改为紧凑头像，避免头像本身撑高场景 */
.phase-post_action .resultFocus{
  top:50%!important;
  gap:2px!important;
}
.phase-post_action .resultFocus img{
  width:58px!important;
  height:58px!important;
  border-width:2px!important;
  box-shadow:0 5px 14px #0008,0 0 0 2px #122f2caa!important;
}
.phase-post_action .resultFocus.animal img{
  width:62px!important;
  height:62px!important;
  border-radius:15px!important;
}
.phase-post_action .resultFocus span{
  font-size:10px!important;
  line-height:1.15!important;
  padding:2px 7px!important;
  max-width:105px!important;
}
.phase-post_action .resultPaper{
  margin-top:4px!important;
  padding-top:12px!important;
  padding-bottom:12px!important;
  max-height:21dvh!important;
}
.phase-post_action .resultPaper .result{
  margin-top:6px!important;
  padding:8px 10px!important;
}
.phase-post_action .compactHub,
.phase-post_action .actionHub{
  margin-top:0!important;
  gap:6px!important;
}
@media(max-width:390px){
  .phase-post_action .sceneStrip,
  .phase-post_action .eventSceneStrip{max-height:91px!important}
  .phase-post_action .sceneStripHead{height:21px!important;min-height:21px!important}
  .phase-post_action .eventSceneStrip .sceneStripImage,
  .phase-post_action .sceneStripImage{height:62px!important;min-height:62px!important;max-height:62px!important}
  .phase-post_action .resultFocus img{width:50px!important;height:50px!important}
  .phase-post_action .resultFocus.animal img{width:54px!important;height:54px!important}
  .phase-post_action .resultFocus span{font-size:9px!important;padding:2px 6px!important}
  .phase-post_action .resultPaper{max-height:19dvh!important;padding-top:10px!important;padding-bottom:10px!important}
}
@media(max-height:760px){
  .phase-post_action .eventSceneStrip .sceneStripImage,
  .phase-post_action .sceneStripImage{height:58px!important;min-height:58px!important;max-height:58px!important}
  .phase-post_action .resultFocus img{width:48px!important;height:48px!important}
  .phase-post_action .resultFocus.animal img{width:52px!important;height:52px!important}
  .phase-post_action .resultPaper{max-height:18dvh!important}
}
/* v2.12b：按反馈继续收紧，保留头像识别但不再让展示区占据大块高度 */
.phase-post_action .sceneStrip,
.phase-post_action .eventSceneStrip{max-height:86px!important}
.phase-post_action .eventSceneStrip .sceneStripImage,
.phase-post_action .sceneStripImage{height:60px!important;min-height:60px!important;max-height:60px!important}
.phase-post_action .resultFocus img{width:46px!important;height:46px!important}
.phase-post_action .resultFocus.animal img{width:50px!important;height:50px!important;border-radius:13px!important}
.phase-post_action .resultFocus span{display:none!important}
@media(max-width:430px){
  .phase-post_action .sceneStrip,.phase-post_action .eventSceneStrip{max-height:78px!important}
  .phase-post_action .sceneStripHead{height:20px!important;min-height:20px!important}
  .phase-post_action .eventSceneStrip .sceneStripImage,.phase-post_action .sceneStripImage{height:52px!important;min-height:52px!important;max-height:52px!important}
  .phase-post_action .resultFocus img{width:42px!important;height:42px!important}
  .phase-post_action .resultFocus.animal img{width:46px!important;height:46px!important}
  .phase-post_action .resultPaper{max-height:18dvh!important;margin-top:3px!important}
}
@media(max-height:760px){
  .phase-post_action .eventSceneStrip .sceneStripImage,.phase-post_action .sceneStripImage{height:48px!important;min-height:48px!important;max-height:48px!important}
  .phase-post_action .sceneStrip,.phase-post_action .eventSceneStrip{max-height:74px!important}
  .phase-post_action .resultFocus img{width:40px!important;height:40px!important}
  .phase-post_action .resultFocus.animal img{width:44px!important;height:44px!important}
}
