/* Original journey UI. Paper = information, forest = structure, gold = next/selected. */
:root{--journey-paper:#fffdf3;--journey-forest:#244b40;--journey-gold:#efc55e;--journey-line:#d7dac7}
body:not([data-view=battle]):not([data-view=story]):not([data-view=encounter]) .shell{padding-bottom:112px}
.bottom-nav{position:fixed;z-index:20;left:50%;bottom:14px;transform:translateX(-50%);width:min(680px,calc(100% - 28px));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:7px;background:var(--journey-forest);border:1px solid #587163;border-radius:22px;box-shadow:0 6px 24px #19382c30}
.bottom-nav button{min-width:0;min-height:58px;border:0;border-radius:14px;box-shadow:none;background:transparent;color:#fffbeb;font-size:16px;padding:4px;line-height:1.2}
.bottom-nav .ui-icon{display:block;margin:0 auto 3px;width:22px;height:22px}
.bottom-nav button[aria-current=page]{background:var(--journey-gold);color:#253f34}
.bottom-nav button:hover{background:#426452}.bottom-nav button[aria-current=page]:hover{background:#f9d981}
.bottom-nav rt{font-size:8px}
.journey-next{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:8px 28px;background:var(--journey-forest);color:#fffbea;border-radius:28px;padding:28px 32px 18px;box-shadow:0 6px 0 #cfceae}
.journey-next::before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 90% 35%,#71885c80,transparent 55%)}
.journey-next h1{font-size:36px;line-height:1.7;margin:6px 0 12px}.journey-next .eyebrow{color:#e5dfb5;font-size:15px;letter-spacing:.04em}.journey-next p{font-size:18px}
.journey-traveler{width:172px;align-self:center}.journey-traveler canvas{filter:drop-shadow(0 6px 8px #0f342940)}
.continue-adventure{display:flex;align-items:center;justify-content:center;gap:12px;width:min(100%,430px);min-height:70px;border-color:#ecd189;border-radius:18px;color:#283d30;box-shadow:0 4px 0 #977531;font-size:25px}
.continue-adventure .ui-icon{width:25px;height:25px}.journey-progress{grid-column:1/-1;display:flex;justify-content:space-between;border-top:1px solid #b6c49855;margin-top:10px;padding-top:12px;font-size:14px;color:#e8ead3}
.region-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.region-heading h2{margin:0}.region-heading .eyebrow{margin-bottom:2px;color:#637562}
.region-quests .quest{padding:16px 0;grid-template-columns:40px minmax(0,1fr) auto;gap:12px}.quest-icon{font-size:22px;font-weight:bold;color:#6b795f}
.region-quests .quest strong{font-size:21px}.region-quests .quest button{min-height:46px;font-size:17px;padding:8px 14px}.region-quests .quest button:disabled{opacity:1;color:#7e8477;background:#eceee1;border-color:#ccd1bf}
.region-quests .next-quest .quest-icon{color:#917122}.region-quests .next-quest button{background:var(--journey-gold)}
.home-team .slots{margin:16px 0}.home-team .slots strong,.home-team .slots small{display:block}.home-team .slots strong{font-size:18px}.home-team .slots img{height:92px}.home-team>button{font-size:18px;min-height:48px;width:100%}
.current-team{padding:18px}.current-team h2{font-size:23px}.current-team .region-heading>button{min-height:44px;font-size:16px;padding:6px 12px;white-space:nowrap}
.current-team .slots{margin-top:14px;gap:10px}.current-team .slots button{border:1px solid var(--journey-line);border-radius:17px;background:#f4f4e7;box-shadow:none;padding:8px 4px;line-height:1.4;color:#294838;min-width:0}
.current-team .slots button[aria-pressed=true]{background:#fff1c4;border:2px solid #b3913b;padding:7px 3px}.current-team .slots button span{font-size:14px}.current-team .slots button strong{display:block;font-size:16px;line-height:1.9}.current-team .slots button small{display:block;font-size:14px}.current-team .slots img{height:82px}
.team-instruction{margin:14px 0 0;font-size:16px;line-height:1.8}.companion-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.companion-card{border:1px solid var(--journey-line);border-radius:20px;min-width:0;padding:12px;background:var(--journey-paper);text-align:center}.companion-card.in-team{border-color:#ae9653;background:#fff9e6}
.companion-profile{padding:0;display:block;border:0;box-shadow:none;background:transparent;width:100%;font-size:18px;min-width:0}.companion-profile:hover{background:#eff3e4}.companion-profile img{display:block;width:100%;height:126px}.companion-profile h3{font-size:18px;line-height:1.9;margin:0;letter-spacing:0}.companion-meta{display:flex;align-items:center;justify-content:center;gap:9px;font-size:14px;font-weight:500}.companion-meta b{padding:1px 7px;border-radius:7px;font-size:12px;background:#e4e9cf;color:#355440}
.companion-role{margin:7px 0 10px;font-size:16px;color:#526147}.companion-card>button:not(.companion-profile){width:100%;min-height:44px;font-size:16px;padding:5px;border-radius:12px;box-shadow:0 2px 0 #6f8166}
.companion-card>button:disabled{opacity:1;background:#e8ebdf;border-color:#c2c8b7;color:#687260;box-shadow:none}.companion-card .card-hint{font-size:12px;margin:7px 0 0;color:#62745e}.join-detail{padding:14px;border-radius:16px;background:#fff1cc;margin-bottom:20px}
.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.menu-item{min-height:150px;background:var(--journey-paper);border-color:var(--journey-line);box-shadow:0 4px 0 #d3d6c2;font-size:25px}.menu-item .ui-icon{width:32px;height:32px}.menu-item small{display:block;margin-top:12px;font-weight:500;font-size:16px}
.result-steps{list-style:none;display:flex;justify-content:center;gap:8px;margin:0 0 20px;padding:0;font-size:14px;color:#5a6956}.result-steps li{padding:5px 9px;background:#eff1e3;border-radius:10px}.result-steps .current{background:#ffe8a9;color:#70531e;font-weight:bold}.result-panel .row{justify-content:center}.claim-reward{min-width:260px}
/* Enemy information, scenery, and the fixed action area are separate readable layers. */
body[data-view=battle] .combat-panel{position:sticky;bottom:10px;margin:0;border:1px solid #b7c2a9;background:var(--journey-paper);padding:10px;border-radius:18px;z-index:6}
body[data-view=battle] .arena.stage-composed{--team-height:0px;--opponent-height:76px;height:550px}
.battle-opponent .enemy-hud .meter{height:9px}.battle-opponent .enemy-hud .hptext{font-size:14px;line-height:1.4;white-space:nowrap}.battle-forecast .intent strong{font-size:17px}.stage-composed .battle-forecast .intent{font-size:14px}
body[data-view=battle] .battle-team{position:static;height:auto;min-height:80px;border:0;border-radius:12px;padding:0 0 8px;background:transparent;gap:6px}
.battle-team .team-status{padding:5px 7px;border:1px solid #c7ccba;background:#f1f3e8;border-radius:10px;line-height:1.35}
.battle-team .team-status[aria-pressed=true]{border:2px solid #a98732;background:#fff1be;padding:4px 6px;box-shadow:none}
.battle-team .team-status strong{font-size:14px;line-height:1.8}.battle-team .team-status .hptext{font-size:14px;margin:2px 0;white-space:nowrap}.battle-team .team-status .meter{height:7px}.battle-team .team-status .actor-mark{position:static;display:block;font-size:12px;line-height:1.2}
.command-heading{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;border-top:1px solid #dbdeca;padding-top:6px}.command-heading .ap-strip{margin:0;display:flex;flex-direction:column;align-items:flex-start;font-size:15px;gap:0}.command-heading .ap-strip b{font-size:14px}.command-heading .ap-strip>span{color:#957623;letter-spacing:3px;line-height:1.2}.command-heading .selected-name{margin:0;display:flex;align-items:center;justify-content:space-between;gap:6px;border:0}.selected-name strong{font-size:18px}.selected-name .quiet{font-size:14px;padding:5px;min-height:44px}
body[data-view=battle] .action-reason{font-size:14px;line-height:1.45;min-height:20px;margin:3px 0 7px;color:#415542}
body[data-view=battle] .combat-actions button,body[data-view=battle] .combat-specials button{border:1px solid #8a9e80;box-shadow:0 2px 0 #8a9e80;border-radius:12px;min-width:0;min-height:74px;height:auto}
body[data-view=battle] .combat-specials button:not(:disabled){background:var(--journey-gold);border-color:#ad8830;box-shadow:0 2px 0 #ad8830}
body[data-view=battle] .combat-actions button:disabled,body[data-view=battle] .combat-specials button:disabled{opacity:1;background:#e8ebdf;color:#67705f;border-color:#c7cdbd;box-shadow:none}
.blocked-reason{display:block;font-size:11px;font-weight:500;line-height:1.45;margin-top:2px}.combat-actions button:disabled>span:last-of-type,.combat-specials button:disabled>span:last-of-type{display:none}
.combat-end button{border:0;box-shadow:none;background:#edf0e0;color:#415741}.combat-end button:disabled{opacity:1;color:#7c8572}
.stage-composed .stage-space::before{background:linear-gradient(#f4efdf30,#f4efdf55 55%,#40553122)}
.stage-composed .stage-space::after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:#142b26;opacity:0;transition:opacity .16s}
.stage-composed:is([data-motion=special],[data-motion=combo]) .stage-space::after{opacity:.48}
.stage-composed:is([data-motion=special],[data-motion=combo])[data-motion-phase=接触] .stage-space::after{opacity:.24}
.stage-composed:is([data-motion=special],[data-motion=combo])[data-motion-phase=戻り] .stage-space::after{opacity:0}
.stage-composed:is([data-motion=special],[data-motion=combo]):is([data-motion-phase=構え],[data-motion-phase=溜め]) :is(.field-actor,.enemy-figure):not(.unit-performing){opacity:.4}
.stage-composed .unit-performing.unit-charged .unit-body{filter:drop-shadow(0 0 6px #ffecaa)}
body[data-reduced=true] .stage-composed .stage-space::after{display:none}
@media(prefers-reduced-motion:reduce){.stage-composed .stage-space::after{display:none}}
@media(max-width:760px){
 .bottom-nav{width:100%;bottom:0;border-radius:18px 18px 0 0;padding:5px 8px max(5px,env(safe-area-inset-bottom))}.bottom-nav button{font-size:14px;min-height:55px}.bottom-nav .ui-icon{width:21px;height:21px}
 .journey-next{grid-template-columns:minmax(0,1fr) 76px;padding:20px 18px 14px;border-radius:23px;gap:6px}.journey-next h1{font-size:24px;line-height:1.8;margin:6px 0 8px}.journey-next .eyebrow{font-size:12px;line-height:1.8}.journey-next p{font-size:14px}.journey-traveler{width:86px;margin-left:-5px;align-self:start;margin-top:26px}.journey-copy{grid-column:1/-1;padding-right:74px}.journey-traveler{position:absolute;right:12px;top:12px;width:74px;margin-top:0;pointer-events:none}.continue-adventure{width:calc(100% + 74px);font-size:22px;min-height:64px;gap:8px;margin-top:17px}.journey-progress{font-size:11px;gap:5px;line-height:1.8;margin-top:6px}
 .region-quests{padding:17px 14px}.region-quests h2{font-size:23px}.region-quests .quest{gap:8px;grid-template-columns:27px minmax(0,1fr) auto;padding:15px 0}.region-quests .quest strong{font-size:17px}.region-quests .quest p{font-size:12px;line-height:1.8}.region-quests .quest button{grid-column:auto;font-size:14px;min-height:44px;padding:6px}.quest-icon{font-size:18px}.home-team .slots strong{font-size:13px}.home-team .slots small{font-size:12px}
 .current-team{padding:14px 12px}.current-team h2{font-size:20px}.current-team .slots{gap:6px}.current-team .slots img{height:66px}.current-team .slots button strong{font-size:11px;line-height:1.9}.current-team .slots button span,.current-team .slots button small{font-size:12px}.team-instruction{font-size:13px;line-height:1.8;margin-top:10px}
 .companion-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.companion-card{padding:10px;border-radius:17px}.companion-profile img{height:105px}.companion-profile h3{font-size:16px}.companion-role{font-size:14px;margin:5px 0 9px}.companion-card>button:not(.companion-profile){font-size:14px}.companion-meta{font-size:13px;gap:6px}.companion-meta b{font-size:10px;padding:2px 4px}
 .menu-grid{gap:12px}.menu-item{font-size:20px;min-height:136px;padding:14px 8px}.menu-item small{font-size:13px;line-height:1.9}.menu-item .ui-icon{display:block;margin:0 auto 8px}.result-steps{font-size:11px;gap:4px}.result-steps li{padding:5px}.result-panel .result-art{height:160px}
 body[data-view=battle] .arena.stage-composed{height:310px;--opponent-height:64px;--team-height:0px}.stage-composed .battle-opponent{height:64px;padding:6px 9px;gap:10px;grid-template-columns:112px minmax(0,1fr)}.battle-opponent .enemy-hud strong{font-size:13px;line-height:1.7}.battle-opponent .enemy-hud .hptext{font-size:12px}.battle-forecast .intent strong{font-size:14px}.stage-composed .battle-forecast .intent{font-size:12px}
 body[data-view=battle] .combat-panel{margin-top:7px;padding:7px;bottom:0;border-radius:16px}.battle-team .team-status strong{font-size:11px}.battle-team .team-status .hptext{font-size:13px}.battle-team .team-status .actor-mark{font-size:11px}.battle-team .team-status{padding:4px 5px}.battle-team .team-status[aria-pressed=true]{padding:3px 4px}body[data-view=battle] .battle-team{min-height:74px;padding-bottom:6px}
 .command-heading{gap:10px;padding-top:4px}.command-heading .ap-strip b{font-size:12px}.command-heading .ap-strip>span{font-size:16px}.command-heading .selected-name strong{font-size:14px}.selected-name .quiet{font-size:12px}
 body[data-view=battle] .action-reason{font-size:12px;min-height:17px;line-height:1.4;margin:2px 0 5px}
 body[data-view=battle] .combat-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}body[data-view=battle] .combat-actions button{min-height:67px;font-size:16px;padding:3px 1px;line-height:1.3}body[data-view=battle] .combat-actions button>strong{font-size:14px;line-height:1.4}body[data-view=battle] .combat-actions button>span:last-of-type{font-size:10px;white-space:nowrap}body[data-view=battle] .combat-actions .blocked-reason{font-size:10px}
 body[data-view=battle] .combat-specials{margin-top:6px;gap:5px}body[data-view=battle] .combat-specials button{min-height:58px;display:flex;flex-direction:column;justify-content:center;gap:1px;font-size:17px;line-height:1.3;padding:4px}body[data-view=battle] .combat-specials .blocked-reason{font-size:10px}.combat-specials button>span:last-of-type{font-size:11px}
 .combat-end{margin-top:5px}.combat-end button{min-height:44px;font-size:12px}.combat-top{gap:5px}.combat-top h1{font-size:15px}.combat-top button{min-height:44px!important}.combat-top>span{font-size:12px}
}
@media(max-height:500px) and (min-width:700px){
 .bottom-nav{bottom:0;padding:4px;width:600px;max-width:100%;border-radius:15px 15px 0 0}.bottom-nav button{min-height:44px;font-size:13px;display:flex;align-items:center;justify-content:center;gap:7px}.bottom-nav .ui-icon{display:inline;margin:0;width:20px}
 .journey-next{grid-template-columns:minmax(0,1fr) 110px;padding:18px 24px 10px}.journey-traveler{width:100px}.journey-next h1{font-size:28px;margin:2px 0}.journey-next p{font-size:15px}.continue-adventure{min-height:52px;font-size:21px}.journey-progress{margin-top:0;padding-top:8px}.companion-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 body[data-view=battle] .shell{padding:4px 8px}.combat-top{margin-bottom:4px;min-height:36px}.combat-top h1{font-size:16px}.combat-top button{min-height:36px!important}.combat-top>span{font-size:12px}
 body[data-view=battle] .arena.stage-composed{height:320px;--opponent-height:62px;--team-height:0px}.stage-composed .battle-opponent{height:62px}.battle-opponent .enemy-hud .hptext{font-size:12px}.battle-opponent .enemy-hud strong{font-size:12px}.stage-composed .battle-forecast .intent{font-size:11px}.battle-forecast .intent strong{font-size:12px}
 body[data-view=battle] .combat-panel{padding:6px;bottom:0}body[data-view=battle] .battle-team{min-height:66px;padding-bottom:4px}.battle-team .team-status strong{font-size:10px}.battle-team .team-status .hptext{font-size:12px}.battle-team .team-status .actor-mark{font-size:10px;display:block}.battle-team .team-status{padding:2px 4px}.battle-team .team-status[aria-pressed=true]{padding:1px 3px}
 .command-heading{padding-top:3px;gap:8px}.command-heading .ap-strip b{font-size:11px}.command-heading .ap-strip>span{font-size:14px}.command-heading .selected-name strong{font-size:13px}.selected-name .quiet{min-height:36px!important;font-size:12px;padding:3px 5px}
 body[data-view=battle] .action-reason{font-size:11px;min-height:16px;margin:2px 0 4px}body[data-view=battle] .combat-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}body[data-view=battle] .combat-actions button{min-height:60px;height:auto;line-height:1.3;padding:2px;font-size:14px}body[data-view=battle] .combat-actions button>strong{font-size:13px;line-height:1.35}body[data-view=battle] .combat-actions button>span:last-of-type{font-size:10px}.blocked-reason{font-size:10px;line-height:1.3}
 body[data-view=battle] .combat-specials{margin-top:5px;gap:4px}body[data-view=battle] .combat-specials button{min-height:52px;height:auto;display:flex;flex-direction:column;font-size:15px;line-height:1.25;padding:3px;gap:1px}body[data-view=battle] .combat-specials button>span:last-of-type{font-size:10px}.combat-specials button .ui-icon{display:none}
 .combat-end{margin-top:4px}.combat-end button{min-height:38px!important;font-size:12px}.combat-end button .ui-icon{width:15px;height:15px}.battle-note{font-size:12px}
}

/* Preparation, companion filters and the local travel notebook. */
.purse .resource-link{border:0;box-shadow:none;background:transparent;padding:4px 5px;font-size:14px;min-height:44px;color:#fff9df}
.companion-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0;padding:18px;background:#edf0df;border-radius:18px}
.companion-filters label{display:flex;flex-direction:column;gap:6px;font-size:14px;min-width:0}.companion-filters .companion-search{grid-column:span 3}.companion-filters input,.companion-filters select{min-width:0;width:100%;min-height:46px;padding:8px;border:1px solid #a9b79a;border-radius:10px;font:16px system-ui;background:#fffef7;color:#294838}.companion-filters button{min-height:46px;align-self:end;font-size:16px}.companion-count{margin:12px 0}.companion-card>.quiet{margin-top:9px}.empty-companions{text-align:center}
.departure-enemy{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:24px}.departure-enemy img{width:100%;height:180px;object-fit:contain}.departure-enemy h2{margin:10px 0}.departure-party{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.departure-party article{min-width:0;padding:12px;background:#f3f2e1;border-radius:16px;text-align:center}.departure-party img{width:100%;height:110px;object-fit:contain}.departure-party h3{font-size:18px;line-height:1.8;margin:4px 0}.departure-party p{font-size:14px}.departure-party .badge{font-size:13px;white-space:normal}.departure-actions{text-align:center;margin:24px 0}.departure-actions>button{width:min(100%,440px);min-height:66px;font-size:24px}.departure-return{display:flex;align-items:center;justify-content:space-between;gap:12px}.departure-return button{min-height:44px}
.resource-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.resource-grid .panel h2{display:flex;align-items:center;gap:10px}.resource-grid .panel h2 strong{margin-left:auto;color:#7f651e}.resource-grid .panel p{font-size:16px}.shard-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid var(--journey-line)}.shard-list small{display:block;font-size:13px;margin-top:5px}.shard-list button{font-size:16px;min-height:44px}.record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.record-grid>div{padding:14px;border-radius:14px;background:#eef0df}.record-grid span,.record-grid strong{display:block}.record-grid span{font-size:15px}.record-grid strong{font-size:30px;color:#756123;margin-top:8px}.record-region+article{margin-top:20px;padding-top:18px;border-top:1px solid var(--journey-line)}.record-region li{margin:10px 0;font-size:16px}
@media(max-width:600px){
 .purse .resource-link{font-size:12px;padding:3px;min-height:44px}body[data-view=departure] .region-heading{align-items:stretch;flex-direction:column}.companion-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:12px 10px}.companion-filters .companion-search{grid-column:1/-1}.companion-filters button{grid-column:1/-1}.departure-enemy{grid-template-columns:100px minmax(0,1fr);gap:12px}.departure-enemy img{height:130px}.departure-enemy h2{font-size:21px}.departure-party{grid-template-columns:1fr}.departure-party article{display:grid;grid-template-columns:90px minmax(0,1fr);gap:2px 10px;text-align:left;padding:12px}.departure-party img{grid-row:1/5;height:100px;align-self:center}.departure-party h3{font-size:17px}.departure-party .badge{justify-self:start}.departure-party p{margin:4px 0}.departure-return{align-items:stretch;flex-direction:column}.resource-grid{grid-template-columns:1fr}.record-grid{grid-template-columns:1fr 1fr}.record-grid span{font-size:13px}.record-grid strong{font-size:26px}.shard-list>div{gap:8px}.shard-list button{font-size:14px;padding:6px}.shard-list small{font-size:12px}
}
/* Let unusually large balances take a second row instead of squeezing save status. */
.topbar{display:flex;flex-wrap:wrap;gap:8px 12px}.topbar>div:first-child{min-width:130px;flex-shrink:0}.topbar .purse{margin-left:auto;max-width:100%;flex-wrap:wrap;justify-content:flex-end}

body[data-view=battle] .topbar .resource-link{display:none}

/* Long accepted creature names keep their full reading on narrow departures. */
@media(max-width:600px){.departure-enemy{grid-template-columns:minmax(0,1fr);gap:8px;text-align:center}.departure-enemy img{width:130px;height:130px;justify-self:center}.departure-enemy>div{min-width:0}.departure-enemy h2{font-size:21px}}

/* Preserve long creature names instead of clipping an unbroken ruby line. */
.profile-hero>div{min-width:0}.creature-name-parts{white-space:normal}
.team-status strong:has(.creature-name-parts){white-space:normal}
body[data-view=battle] .arena.stage-composed:has(.enemy-hud .creature-name-parts){--opponent-height:96px}
.stage-composed:has(.enemy-hud .creature-name-parts) .battle-opponent{height:var(--opponent-height)}
.stage-composed:has(.enemy-hud .creature-name-parts) .enemy-hud .hptext{white-space:nowrap;font-size:11px}
/* Three-part names (e.g. ギラファノコギリクワガタ) wrap to three lines on phones; give the opponent panel the extra line so HP stays above the scenery. */
body[data-view=battle] .arena.stage-composed:has(.enemy-hud .creature-name-parts ruby:nth-of-type(3)){--opponent-height:118px}

/* Notebook reads the current journey; its links lead to existing real actions. */
.local-preview.compact-save-notice{display:block;padding:10px 14px}.compact-save-notice summary{cursor:pointer;min-height:44px;line-height:1.65;font-size:13px}.compact-save-notice summary strong{font-size:13px}.compact-save-notice summary span{display:block;font-size:12px;text-decoration:underline;text-underline-offset:3px}.compact-save-notice>div{padding:12px 0 3px}.compact-save-notice>div>p{font-size:14px;line-height:1.8;margin:8px 0 12px}.compact-save-notice button{min-height:44px}
.activity-hint{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;border-radius:16px;background:#e9eddc;border:1px solid #b8c7a7}.activity-hint p{font-size:14px;margin:5px 0 0}.activity-hint button{flex-shrink:0;min-height:44px}
.activity-list{display:grid;gap:14px}.activity-card{display:flex;align-items:center;gap:18px}.activity-card>img{width:100px;height:120px;object-fit:contain;flex-shrink:0}.activity-card>div{min-width:0}.activity-card h2{font-size:21px;overflow-wrap:anywhere}.activity-card p{font-size:15px}.activity-card button{min-height:44px}
.story-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.story-library button{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;min-height:70px;padding:14px;font-size:17px;line-height:1.7}.story-library small{font-size:13px;color:#626e53}.story-replay .section-top h1{font-size:26px}.story-replay .story-actions button{min-height:48px}.story-replay .story-stage{margin-top:12px}
.story-replay .story-dialogue .speaker{color:#fff9de}
.help-forecast{font-size:12px;line-height:1.5;margin:3px 0 7px;padding:6px 8px;background:#e8f0dd;border-radius:9px;overflow-wrap:anywhere;color:#284f38}
.battle-status-details{margin:12px 0;padding:14px;border:1px solid #b8c7a7;border-radius:12px;background:#f7f7eb}.battle-status-details summary{font-size:14px;line-height:1.7;cursor:pointer;min-height:44px}.battle-status-details dl{margin:12px 0 0}.battle-status-details dt{font-weight:700;margin:14px 0 5px}.battle-status-details dd{margin:0;font-size:15px;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:600px){.activity-hint{align-items:stretch;flex-direction:column;padding:14px}.activity-card{align-items:flex-start;gap:12px;padding:14px}.activity-card>img{width:70px;height:100px}.activity-card h2{font-size:18px}.activity-card .row{align-items:stretch;flex-direction:column}.story-library{grid-template-columns:1fr}.story-replay .section-top{align-items:stretch;flex-direction:column}.help-forecast{font-size:11px;padding:4px 6px;margin-bottom:5px}}
@media(max-height:500px) and (min-width:601px){.help-forecast{font-size:11px;padding:4px 6px}.story-replay .story-stage{height:240px}}

/* Saved parties and finite, record-based achievement rewards. */
.preset-party{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0;list-style:none}.preset-party li{display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center}.preset-party img{width:100%;max-width:150px;height:128px;object-fit:contain}.preset-party strong{overflow-wrap:anywhere}.preset-name-label{display:block;margin:12px 0 6px}.preset-card input{width:100%;max-width:420px;padding:12px;border:1px solid #a7b7a9;border-radius:12px;font:inherit}.preset-card h2,.achievement-card h2{overflow-wrap:anywhere}.preset-card .row{gap:8px}.achievement-card .badge{flex-shrink:0}.achievement-summary{margin-top:16px}@media(max-width:600px){.preset-party{gap:5px}.preset-party img{height:100px}.preset-party strong{font-size:.9rem}.preset-card .row>button{flex:1 1 44%;min-height:44px}.preset-card .region-heading{align-items:flex-start}.current-team .region-heading{flex-wrap:wrap}}

/* 世界地図（map-v01・Codex 2026-10-11）と章の帯 */
.world-map-frame{position:relative;border-radius:18px;overflow:hidden;border:2px solid #b89a4a;background:#0b1f2a}
.world-map-frame>img{display:block;width:100%;height:auto}
.map-point{position:absolute;transform:translate(-50%,-50%);width:17%;min-width:54px;max-width:96px;aspect-ratio:1;min-height:0;padding:0;border-radius:50%;border:3px solid #ffffff99;background:#10245266;color:#fff;box-shadow:0 2px 0 #00000055;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;font-size:14px;line-height:1.15;text-shadow:0 1px 2px #000c}
.map-point b{font-size:20px;line-height:1}
.map-point span{display:block;max-width:100%;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 3px}
.map-point.open{border-color:#ffcc45;background:#ffcc4588;color:#102452;text-shadow:none;animation:map-glow 2.4s ease-in-out infinite}
.map-point.open.done{background:#fff7dd;border-color:#ffcc45}
.map-point[aria-pressed=true]{outline:4px solid #ffcc45;outline-offset:2px;box-shadow:0 0 0 6px #ffcc4555,0 2px 0 #00000055}
.map-point.locked{opacity:.55;filter:grayscale(.5)}
.map-point:disabled{cursor:default}
@keyframes map-glow{50%{box-shadow:0 0 18px 6px #ffcc4599,0 2px 0 #00000055}}
@media(prefers-reduced-motion:reduce){.map-point.open{animation:none}}
.chapter-bands>button,body[data-theme=navy] .map-places.chapter-bands>button{position:relative;overflow:hidden;min-height:96px;padding:12px 14px 12px 36%;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:2px;text-align:right;color:#fff;text-shadow:0 1px 0 #102452,0 0 6px #102452,1px 1px 0 #102452,-1px -1px 0 #102452;background:linear-gradient(90deg,#10245200 38%,#102452d9 62%),var(--band) center/cover no-repeat #102452;border-color:#b89a4a}
body[data-theme=navy] .map-places.chapter-bands>button[aria-pressed=true]{box-shadow:inset 0 0 0 3px #ffcc45,0 0 12px #ffd66644}
body[data-theme=navy] .map-places.chapter-bands>button:disabled{filter:grayscale(.7) brightness(.7);opacity:1;background:linear-gradient(90deg,#10245200 38%,#102452d9 62%),var(--band) center/cover no-repeat #102452;color:#dfe6ea}
.chapter-bands>button strong,.chapter-bands>button span,.chapter-bands>button small,body[data-theme=navy] .map-places.chapter-bands>button span,body[data-theme=navy] .map-places.chapter-bands>button small{display:block;color:#fff;line-height:1.35}
.chapter-bands>button strong,.chapter-bands>button span,.chapter-bands>button small{width:100%;max-width:none}.chapter-bands>button strong{font-size:18px}.chapter-bands>button span{font-size:22px}.chapter-bands>button small{font-size:15px}
