/* 紺と金のテーマ（B案）。ホーム・出発前・戦闘・結果の4画面に body[data-theme=navy] で当てる。
   文字は5段階（見出し大28／見出し21／本文17／ラベル15／注記14）。絵の上の文字は縁取り。 */
body[data-theme=navy]{
 --navy-0:#061219;--navy-1:#0b1f2a;--navy-2:#102c3b;--navy-3:#163a4a;--line:#5d7f8c;
 --gold:#ffd666;--gold-2:#f0b93a;--ink:#fff7dd;--ink-2:#e2e9dc;--ink-3:#b9cbd2;
 --fs-hero:24px;--fs-h:18px;--fs-body:16px;--fs-label:16px;--fs-note:13px;
 --outline:0 1px 0 var(--navy-0),0 0 2px var(--navy-0),0 0 6px #061219cc;
 --paper:#102c3b;--journey-gold:var(--gold);
 color:var(--ink);background:#0d2231
}
body[data-theme=navy]::before{content:'';position:fixed;inset:0;z-index:-1;background:#0d2231 var(--region-scenery,url('../../assets/rpg/stages/grassland-oblique-v02.png')) center/cover;filter:saturate(1.05) brightness(.42) blur(3px);transform:scale(1.06)}
body[data-theme=navy] main.shell{background:transparent;padding:12px 14px 118px}
body[data-theme=navy] details.local-preview{display:none}
body[data-theme=navy] p.footnote,body[data-theme=navy] [data-release-hint]{display:none}
body[data-theme=navy] rt{color:inherit;opacity:.85}
body[data-theme=navy] h1,body[data-theme=navy] h2,body[data-theme=navy] h3{color:var(--ink)}
body[data-theme=navy] p,body[data-theme=navy] .small{color:var(--ink-2)}
body[data-theme=navy] .small{font-size:var(--fs-note);line-height:1.5}
body[data-theme=navy] .eyebrow{font-size:var(--fs-note);color:var(--gold);letter-spacing:.08em;margin:0}
/* 上の帯 */
body[data-theme=navy] .topbar{align-items:center;padding:6px 12px;min-height:52px;background:linear-gradient(#0b1f2af0,#0b1f2ab3);border-bottom:1px solid #ffd66644;box-shadow:none}
body[data-theme=navy] .topbar .brand{font-size:17px;color:var(--ink)}body[data-theme=navy] .brand-icon{width:24px;height:24px}body[data-theme=navy] .save-status{display:none}
body[data-theme=navy] .purse{gap:6px}
body[data-theme=navy] .purse .resource-link,body[data-theme=navy] .purse .music-toggle{background:var(--navy-1);border:1.5px solid #ffd66699;border-radius:999px;padding:4px 11px;color:var(--ink);font-size:var(--fs-label);min-height:38px;box-shadow:none}
/* 面と枠 */
body[data-theme=navy] .panel,body[data-theme=navy] .combat-panel,body[data-theme=navy] .result-panel,body[data-theme=navy] .departure-enemy{background:#102c3be6;border:1.5px solid #ffd66680;border-radius:18px;box-shadow:0 0 0 3px var(--navy-1),0 8px 22px #0007;color:var(--ink);backdrop-filter:blur(6px);padding:16px}
body[data-theme=navy] .panel h2{font-size:var(--fs-h);line-height:1.3;margin:0 0 8px;color:var(--gold);text-shadow:var(--outline)}
body[data-theme=navy] .panel p{font-size:var(--fs-body);line-height:1.65}
body[data-theme=navy] .mt{margin-top:16px}
/* ボタン */
body[data-theme=navy] button{font-size:var(--fs-label);min-height:48px;border-radius:14px;background:var(--navy-3);color:var(--ink);border:1.5px solid #8fb3c0;box-shadow:0 3px 0 var(--navy-0),inset 0 1px 0 #ffffff22}
body[data-theme=navy] button:hover{background:#1d4a5e}
body[data-theme=navy] button.primary,body[data-theme=navy] .primary{background:linear-gradient(#ffe38a,#f0b93a);border-color:#fff2c0;color:#2b2000;box-shadow:0 0 16px #ffd66677,0 4px 0 #8a5d10;text-shadow:0 1px 0 #fff6}
body[data-theme=navy] button.primary:hover{background:linear-gradient(#fff0b0,#f5c552)}
body[data-theme=navy] button.quiet,body[data-theme=navy] .quiet{background:var(--navy-1);color:var(--ink);border-color:var(--line)}
body[data-theme=navy] button:disabled{opacity:1;background:#0f2733;border-color:#2f4f5c;box-shadow:none;color:#8aa3ad}
body[data-theme=navy] button .ui-icon{stroke:currentColor}
body[data-theme=navy] .badge{background:var(--gold);color:#2b2000;font-size:var(--fs-note);border-radius:999px;padding:2px 10px}
/* たたみ（details.fold） */
body[data-theme=navy] details.fold{margin-top:12px;border-top:1px solid #ffd66633;padding-top:8px}
body[data-theme=navy] details.fold>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;font-size:var(--fs-label);color:var(--gold);min-height:36px}
body[data-theme=navy] details.fold>summary::-webkit-details-marker{display:none}
body[data-theme=navy] details.fold>summary::after{content:'＋';margin-left:auto;width:26px;height:26px;border-radius:50%;border:1.5px solid #ffd66699;display:grid;place-items:center;font-size:14px}
body[data-theme=navy] details.fold[open]>summary::after{content:'－'}
body[data-theme=navy] details.fold p{font-size:var(--fs-label);line-height:1.6;margin:6px 0;color:var(--ink-2)}
/* 下の帯 */
body[data-theme=navy] .bottom-nav{background:#0b1f2af7;border:1.5px solid #ffd66688;box-shadow:0 0 0 3px var(--navy-1),0 10px 30px #000a;padding:5px;border-radius:20px}
body[data-theme=navy] .bottom-nav button{color:var(--ink-3);background:transparent;border:0;box-shadow:none;font-size:var(--fs-note);border-radius:14px;min-height:58px}
body[data-theme=navy] .bottom-nav button:hover{background:#163a4a}
body[data-theme=navy] .bottom-nav button[aria-current=page]{background:linear-gradient(#ffe38a,#f0b93a);color:#2b2000}
body[data-theme=navy] .bottom-nav .ui-icon{margin:0 auto 2px;width:28px;height:28px}

/* ===== ホーム：主役の札、4つの近道、この章の地点。残りは「ほかの冒険と地図」に畳む ===== */
body[data-theme=navy] .journey-next{display:block;position:relative;padding:0;border-radius:22px;background:var(--navy-1);border:2px solid var(--gold);box-shadow:0 0 0 4px var(--navy-1),0 0 26px #ffd66544;min-height:0;overflow:hidden;color:var(--ink)}
body[data-theme=navy] .journey-next::before{content:'';position:absolute;inset:0;z-index:0;background:var(--region-scenery,url('../../assets/rpg/stages/grassland-oblique-v02.png')) center 30%/cover}
body[data-theme=navy] .journey-next::after{content:'';position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,#0b1f2a10 10%,#0b1f2aee 66%)}
body[data-theme=navy] .journey-next>*{position:relative;z-index:1}
body[data-theme=navy] .journey-copy{padding:118px 18px 0}
body[data-theme=navy] .journey-next .eyebrow{font-size:var(--fs-note);color:var(--gold);text-shadow:var(--outline);line-height:1.5}
body[data-theme=navy] .journey-next h1{font-size:var(--fs-hero);line-height:1.3;margin:4px 0 2px;text-shadow:var(--outline),0 0 14px #ffd66655;white-space:nowrap}
body[data-theme=navy] .journey-next p{font-size:var(--fs-label);margin:0 0 12px;text-shadow:var(--outline);color:var(--ink-2)}
body[data-theme=navy] .continue-adventure{width:100%;min-height:62px;font-size:22px;border-radius:16px;white-space:nowrap;margin-top:0}
body[data-theme=navy] .hero-portrait.journey-traveler{position:absolute;right:12px;top:12px;width:96px;margin:0;pointer-events:none}
body[data-theme=navy] .hero-portrait [data-hero-error]{display:none}
body[data-theme=navy] .journey-progress{display:flex;justify-content:space-between;padding:10px 18px 14px;font-size:var(--fs-note);color:var(--gold);margin:0;line-height:1.5}
body[data-theme=navy] .home-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body[data-theme=navy] .home-shortcuts button{position:relative;display:grid;justify-items:center;align-content:center;gap:4px;min-height:92px;padding:8px 2px;border-radius:16px;background:#102c3be6;border:1.5px solid #ffd66680;font-size:var(--fs-note);line-height:1.3;font-weight:700}
body[data-theme=navy] .home-shortcuts .ui-icon{width:36px;height:36px;padding:7px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#2b5a6c,#0b1f2a);border:1.5px solid #ffd666aa;box-shadow:0 0 10px #ffd66633;stroke:var(--gold)}
body[data-theme=navy] .shortcut-count{position:absolute;top:4px;right:6px;min-width:22px;height:22px;border-radius:11px;background:#ff6b5a;color:#fff;font-size:13px;line-height:22px;box-shadow:0 0 0 2px var(--navy-1)}
body[data-theme=navy] .region-quests{padding:14px 14px 6px}
body[data-theme=navy] .region-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
body[data-theme=navy] .region-heading .eyebrow{color:var(--gold)}
body[data-theme=navy] .region-quests h2{margin:0;color:var(--ink)}
body[data-theme=navy] .region-quests .quest{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;margin:0;border:0;border-top:1px solid #ffffff14;border-radius:0;background:none}
body[data-theme=navy] .region-quests .quest strong{font-size:var(--fs-body);color:var(--ink)}
body[data-theme=navy] .region-quests .quest p{font-size:var(--fs-note);margin:2px 0 0;line-height:1.5}
body[data-theme=navy] .quest-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--navy-1);border:1.5px solid #ffd66699;color:var(--gold);font-weight:800;font-size:var(--fs-label)}
body[data-theme=navy] .region-quests .quest button{min-height:42px;padding:0 14px;font-size:var(--fs-label)}
body[data-theme=navy] .region-quests .next-quest{background:linear-gradient(90deg,#ffd6661f,transparent);border-radius:12px;padding-left:6px;border-top-color:transparent}
body[data-theme=navy] .region-quests .next-quest .quest-icon{background:var(--gold);color:#2b2000}
body[data-theme=navy] .region-quests .next-quest button:not(:disabled){background:linear-gradient(#ffe38a,#f0b93a);color:#2b2000;border-color:#fff2c0}
body[data-theme=navy] details.home-more{background:#0b1f2acc;border:1.5px solid #5d7f8c;padding:0 14px}
body[data-theme=navy] details.home-more>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:10px;padding:10px 0;min-height:60px;color:var(--ink)}
body[data-theme=navy] details.home-more>summary::-webkit-details-marker{display:none}
body[data-theme=navy] details.home-more>summary>span{font-size:var(--fs-body);font-weight:700;white-space:nowrap}
body[data-theme=navy] details.home-more>summary>small{grid-column:1;grid-row:2;font-size:var(--fs-note);color:var(--ink-3)}
body[data-theme=navy] details.home-more>summary::after{content:'＋';grid-column:2;grid-row:1/3;width:28px;height:28px;border-radius:50%;border:1.5px solid #ffd66699;display:grid;place-items:center;color:var(--gold)}
body[data-theme=navy] details.home-more[open]>summary::after{content:'－'}
body[data-theme=navy] details.home-more>section{margin:0 0 14px}
body[data-theme=navy] .map-places button{background:var(--navy-3);color:var(--ink)}
body[data-theme=navy] .map-places button[aria-pressed=true]{border-color:var(--gold);box-shadow:0 0 12px #ffd66644}
body[data-theme=navy] .map-places button small,body[data-theme=navy] .map-places button span{color:var(--ink-3)}
body[data-theme=navy] .operation-reason{background:#2b2000;color:var(--gold);border-radius:10px;padding:8px 12px}

/* ===== 出発前：敵は要点の札だけ、説明と数値は畳む、出発ボタンは下に固定 ===== */
body[data-theme=navy] .section-top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:16px}
body[data-theme=navy] .section-top h1{font-size:var(--fs-hero);line-height:1.3;margin:2px 0 0;white-space:nowrap;text-shadow:var(--outline)}
body[data-theme=navy] .section-top>button{min-height:44px;padding:0 14px}
body[data-theme=navy] .departure-enemy{display:grid;grid-template-columns:104px minmax(0,1fr);gap:14px;align-items:center;text-align:left}
body[data-theme=navy] .departure-enemy img{width:104px;height:104px;object-fit:contain;justify-self:center;filter:drop-shadow(0 4px 8px #000a)}
body[data-theme=navy] .departure-enemy>div:nth-child(2){display:grid;justify-items:start;min-width:0}
body[data-theme=navy] .departure-enemy h2{font-size:var(--fs-h);margin:6px 0 4px;color:var(--ink)}
body[data-theme=navy] .stat-chips{display:flex;gap:6px;flex-wrap:wrap}
body[data-theme=navy] .stat-chips span{font-size:var(--fs-note);padding:3px 10px;border-radius:999px;background:var(--navy-1);border:1px solid #ffd66666;color:var(--ink);white-space:nowrap}
body[data-theme=navy] .departure-enemy details.fold{grid-column:1/-1}
body[data-theme=navy] .departure-party{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 0}
body[data-theme=navy] .departure-party article{display:flex;flex-direction:column;align-items:center;min-width:0;padding:8px 4px 10px;background:var(--navy-1);border:1.5px solid #5d7f8c;border-radius:14px;text-align:center;box-shadow:none}
body[data-theme=navy] .departure-party article:first-child{border-color:var(--gold);box-shadow:0 0 12px #ffd66644}
body[data-theme=navy] .departure-party article>*{max-width:100%;margin:0}
body[data-theme=navy] .departure-party img{width:72px;height:72px;object-fit:contain;grid-row:auto}
body[data-theme=navy] .departure-party h3{font-size:var(--fs-label);margin:4px 0 2px;line-height:1.3;text-align:center}
body[data-theme=navy] .departure-party p{font-size:12.5px;text-align:center;color:var(--ink-2);line-height:1.4}
body[data-theme=navy] .departure-party .badge{display:inline-block;margin-top:6px;font-size:12px;padding:1px 7px;white-space:nowrap;line-height:1.6}
body[data-theme=navy] .departure-detail{margin:8px 0}body[data-theme=navy] .departure-detail b{display:block;color:var(--gold)}
body[data-view=departure][data-theme=navy] .region-heading{flex-direction:row;align-items:center}
body[data-theme=navy] .region-heading button{min-height:40px;padding:0 12px;font-size:var(--fs-note)}
body[data-theme=navy] .reward-chips{display:flex;flex-wrap:wrap;gap:6px}
body[data-theme=navy] .reward-chips span{background:var(--navy-1);border:1.5px solid var(--gold);border-radius:999px;padding:5px 12px;font-size:var(--fs-label);color:var(--gold)}
body[data-theme=navy] .departure-actions{position:sticky;bottom:92px;z-index:5;margin:16px 0 0;padding:8px 10px;border-radius:20px;background:#0b1f2af2;border:1.5px solid #ffd66688;box-shadow:0 -6px 20px #0008}
body[data-theme=navy] .departure-actions>button{width:100%;min-height:62px;font-size:22px}
body[data-theme=navy] .departure-actions .small{text-align:center;margin:4px 0 0;font-size:13px}
body[data-theme=navy] .departure-actions [role=status]{color:var(--gold);font-size:var(--fs-note);margin:6px 0 0}

/* ===== 戦闘：技はアイコン＋名前＋数値。理由は選択中の仲間の1行にまとめる ===== */
body[data-view=battle][data-theme=navy]{background:#0d2231}
body[data-theme=navy] .combat-top{display:flex;align-items:center;gap:8px;background:#0b1f2ae0;border:1.5px solid #ffd66670;border-radius:14px;padding:6px 8px 6px 12px;margin:0}
body[data-theme=navy] .combat-top h1{font-size:var(--fs-label);margin:0;white-space:nowrap;flex:1;overflow:hidden;text-overflow:ellipsis;color:var(--ink)}
body[data-theme=navy] .combat-top>span{font-size:var(--fs-note);color:var(--gold);white-space:nowrap}
body[data-theme=navy] .combat-top button{min-height:40px;font-size:var(--fs-note);padding:0 10px;border-radius:999px}
body[data-theme=navy] .combat-top button[data-command] span{display:none}
body[data-theme=navy] .auto-status{margin:8px 0 0;padding:6px 12px;border-radius:10px;background:#2b2000;color:var(--gold);font-size:var(--fs-note);line-height:1.5}
body[data-theme=navy] .auto-status[data-auto-status=off]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body[data-theme=navy] .battlefield.arena{border:2px solid var(--gold);border-radius:20px;box-shadow:0 0 0 4px var(--navy-1),0 0 22px #ffd66644;margin-top:10px}
body[data-theme=navy] .stage-composed .stage-huds .enemy-hud,body[data-theme=navy] .enemy-hud{background:#0b1f2aeb!important;border:1px solid #ffd66699;color:var(--ink)}
body[data-theme=navy] .enemy-hud strong,body[data-theme=navy] .enemy-hud .hptext{color:var(--ink)}
body[data-theme=navy] .battle-forecast{background:#0b1f2ad0;border-radius:10px;padding:4px 8px;color:var(--ink)}
body[data-theme=navy] .battle-forecast .intent,body[data-theme=navy] .battle-forecast .intent strong,body[data-theme=navy] .battle-forecast span{color:var(--ink)}
body[data-theme=navy] .combat-panel{padding:8px;margin-top:10px;background:#102c3bf0;border-radius:18px}
body[data-theme=navy] .battle-team{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:0;min-height:0;background:none}
body[data-theme=navy] .battle-team .team-status{position:relative;min-height:0;padding:5px 8px;border-radius:12px;background:var(--navy-3);border:1.5px solid var(--line);text-align:left;color:var(--ink);box-shadow:none}
body[data-theme=navy] .battle-team .team-status[aria-pressed=true]{background:#21452e;border-color:var(--gold);box-shadow:0 0 10px #ffd66655;padding:5px 8px}
body[data-theme=navy] .team-status strong{font-size:var(--fs-note);color:var(--ink);line-height:1.4}
body[data-theme=navy] .team-status .hptext{font-size:12.5px;color:var(--ink)}
body[data-theme=navy] .team-status .actor-mark{position:absolute;top:4px;right:6px;font-size:11px;color:var(--gold)}
body[data-theme=navy] .meter{background:var(--navy-0)}body[data-theme=navy] .meter i{background:linear-gradient(90deg,#7ff58a,#2fcf6b)}
body[data-theme=navy] .command-heading{display:flex;align-items:center;gap:10px;margin:4px 0 0;padding:0}
body[data-theme=navy] .command-heading .ap-strip b,body[data-theme=navy] .command-heading .ap-strip>span{color:var(--gold);font-size:var(--fs-label)}
body[data-theme=navy] .command-heading .selected-name{display:flex;align-items:center;gap:8px;margin-left:auto}
body[data-theme=navy] .command-heading .selected-name strong{font-size:var(--fs-body);color:var(--ink)}
body[data-theme=navy] .selected-name .quiet{min-height:34px;font-size:var(--fs-note);padding:0 10px}
body[data-theme=navy] .action-reason{font-size:var(--fs-note);color:var(--ink-3);margin:0 0 6px;min-height:0;line-height:1.4}
body[data-theme=navy] .help-forecast{background:#0b1f2a;color:var(--ink);border:1px solid #2fcf6b88;font-size:13px;padding:3px 10px;border-radius:8px;margin:0 0 6px;line-height:1.4}
body[data-theme=navy] .combat-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
body[data-theme=navy] .combat-actions button{display:grid;justify-items:center;align-content:start;gap:2px;min-height:76px;height:auto;padding:6px 2px 5px;border-radius:14px;background:var(--navy-3);border:1.5px solid #8fb3c0;box-shadow:0 3px 0 var(--navy-0);color:var(--ink);line-height:1.25}
body[data-view=battle][data-theme=navy] .combat-actions button:not(:disabled):hover{background:#1d4a5e}
body[data-theme=navy] .combat-actions button>.ui-icon{display:block;width:30px;height:30px;padding:6px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#2b5a6c,#0b1f2a);border:1.5px solid #ffd666aa;box-shadow:0 0 10px #ffd66633;stroke:var(--gold);margin:0}
body[data-theme=navy] .combat-actions button>strong{font-size:var(--fs-label);color:var(--ink);line-height:1.25}
body[data-theme=navy] .combat-actions button>span:last-of-type{display:block;font-size:12.5px;color:var(--ink-3);white-space:nowrap}
body[data-theme=navy] .combat-actions button:disabled{background:#0f2733;border-color:#2f4f5c;box-shadow:none;color:#8aa3ad}
body[data-theme=navy] .combat-actions button:disabled>.ui-icon{stroke:#6f8a95;border-color:#2f4f5c;box-shadow:none;background:#0b1f2a}
body[data-theme=navy] .combat-actions button:disabled>strong,body[data-theme=navy] .combat-actions button:disabled>span{color:#8aa3ad}
/* 使えない理由は選択中の仲間の1行（action-reason）に出すので、ボタンの中の文は読み上げ用に残す */
body[data-theme=navy] .combat-actions .blocked-reason,body[data-theme=navy] .combat-specials .blocked-reason{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body[data-theme=navy] .combat-actions button:disabled>span:last-of-type{display:block}
body[data-theme=navy] .combat-specials{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}
body[data-theme=navy] .combat-specials button.special-button{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;column-gap:10px;row-gap:2px;align-items:center;justify-items:start;text-align:left;min-height:46px;height:auto;padding:3px 12px;background:#2a1748;border:1.5px solid #c89bff;box-shadow:0 0 12px #c89bff44,0 3px 0 #1b0b30;color:#f1e6ff;grid-column:auto;grid-row:auto;position:relative}
body[data-theme=navy] .combat-specials button.special-button:hover{background:#3a2160}
body[data-theme=navy] .combat-specials button.special-button:disabled{background:#1c1530;border-color:#5e4a80;box-shadow:none;color:#b9a9d6}
body[data-theme=navy] .combat-specials .special-button>.ui-icon{display:block;grid-row:1/3;width:30px;height:30px;stroke:#e6d2ff;margin:0}
body[data-theme=navy] .combat-specials .special-button>span:first-of-type{font-size:var(--fs-body);font-weight:800}
body[data-theme=navy] .combat-specials .special-button>span:nth-of-type(2){font-size:12.5px;color:#d9c8f5;grid-column:2}
body[data-theme=navy] .charge-pips{display:inline-flex;align-items:center;gap:5px;grid-column:3;grid-row:1/3;margin-left:6px}
body[data-theme=navy] .charge-pips i{width:10px;height:10px;border-radius:50%;border:1.5px solid #c89bff;display:inline-block}
body[data-theme=navy] .charge-pips i.on{background:#c89bff;box-shadow:0 0 6px #c89bff}
body[data-theme=navy] .combat-specials .special-button>span:nth-of-type(2){grid-row:2}
body[data-theme=navy] .combat-end{display:grid;grid-template-columns:1fr auto;gap:6px;margin-top:6px}
body[data-theme=navy] .combat-end .quiet{font-size:var(--fs-body);min-height:42px;border-color:#ffd666aa}
body[data-theme=navy] .combat-end button[data-battle-log]{min-height:42px;padding:0 14px;font-size:var(--fs-label);background:var(--navy-1);color:var(--ink);border:1.5px solid var(--line)}
body[data-theme=navy] .battle-note{background:#0b1f2ae0;border:1px solid #ffd66655;border-radius:12px;font-size:var(--fs-label);padding:10px 14px;color:var(--ink);margin-top:10px}
body[data-theme=navy] details.battle-status-details,body[data-theme=navy] details.combat-help{background:#0b1f2acc;border:1px solid var(--line);border-radius:12px;color:var(--ink);margin-top:8px;padding:6px 12px;font-size:var(--fs-label)}
body[data-theme=navy] details.battle-status-details p,body[data-theme=navy] details.combat-help p,body[data-theme=navy] details.combat-help summary,body[data-theme=navy] details.battle-status-details summary{color:var(--ink)}
body[data-theme=navy] .multi-queue{background:#0b1f2acc;border:1px solid var(--line);color:var(--ink)}

/* ===== 結果：喜び → ごほうび → 次の一手。ほかの行き先はアイコンの札、細かい入口は小さな丸ボタン ===== */
body[data-view=result][data-theme=navy] .section-top .eyebrow{display:none}
body[data-theme=navy] .result-panel{display:flex;flex-direction:column;align-items:stretch;border-radius:22px;padding:16px 14px;text-align:center;background:radial-gradient(ellipse at 50% 18%,#ffd66630 0,transparent 52%),#102c3be6}
body[data-theme=navy] .result-steps{display:flex;gap:6px;justify-content:center;padding:0;margin:0 0 4px}
body[data-theme=navy] .result-steps li{padding:3px 10px;border-radius:999px;background:var(--navy-3);list-style:none;color:var(--ink-3);font-size:12.5px}
body[data-theme=navy] .result-steps li.current{background:var(--gold);color:#2b2000}
body[data-theme=navy] .result-panel .result-art{height:200px;margin:0 auto;filter:drop-shadow(0 0 18px #ffd66666)}
body[data-theme=navy] .result-panel h2{font-size:var(--fs-hero);line-height:1.3;margin:6px 0 4px;color:var(--gold);text-shadow:var(--outline),0 0 14px #ffd66655}
body[data-theme=navy] .result-panel>p{font-size:var(--fs-body);margin:0 0 10px}
body[data-theme=navy] .result-panel .reward-chips{justify-content:center}
body[data-theme=navy] .result-panel .reward-chips span{font-size:var(--fs-body);padding:6px 14px}
body[data-theme=navy] .result-panel .badge{display:inline-block;margin-top:8px}
body[data-theme=navy] .result-panel>p.small{order:9;margin:12px 0 0;font-size:var(--fs-note);line-height:1.5;color:var(--ink-3)}
body[data-theme=navy] .result-panel .reward-chips+.badge,body[data-theme=navy] .result-panel .badge{align-self:center}
body[data-theme=navy] .result-panel .claim-reward{width:100%;min-height:64px;font-size:22px}
body[data-theme=navy] .result-panel>.mt>.row.mt{display:block}
body[data-theme=navy] .result-continuation{background:#0b1f2acc;border:1px solid #ffd66655;border-radius:16px;padding:12px;margin-top:16px;text-align:left}
body[data-theme=navy] .result-continuation h3{font-size:var(--fs-label);color:var(--gold);margin:0 0 8px}
body[data-theme=navy] .result-continuation p{font-size:var(--fs-label);line-height:1.6;color:var(--ink-2)}
body[data-theme=navy] .result-continuation>.row{display:grid;gap:8px}
body[data-theme=navy] .result-continuation>.row>button{width:100%;min-height:64px;font-size:18px;display:flex;align-items:center;justify-content:center;gap:8px}
body[data-theme=navy] .result-continuation>.row>button>.ui-icon{flex:none;width:22px;height:22px}
body[data-theme=navy] .result-continuation>.row.route-tiles{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:12px}
body[data-theme=navy] .result-continuation>.row.route-tiles>button{display:grid;justify-items:center;align-content:center;gap:4px;min-height:84px;padding:8px 2px;font-size:12.5px;line-height:1.25;white-space:normal;border-radius:16px}
body[data-theme=navy] .result-continuation>.row.route-tiles>button>.ui-icon{width:36px;height:36px;padding:7px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#2b5a6c,#0b1f2a);border:1.5px solid #ffd666aa;stroke:var(--gold)}
body[data-theme=navy] .result-continuation>.row.route-tiles>button.primary>.ui-icon{background:#2b2000;stroke:var(--gold)}
/* iPhone の幅では行き先の札を2列に（4列だと「もう一度挑戦/する」「編成・育成/へ」と語が割れる：2026-10-18） */
@media(max-width:480px){body[data-theme=navy] .result-continuation>.row.route-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-theme=navy] .result-continuation>.row.route-tiles>button{font-size:13px;min-height:76px}}
body[data-theme=navy] .result-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:16px}
body[data-theme=navy] .result-links button{min-height:40px;padding:0 14px;font-size:var(--fs-note);border-radius:999px;background:var(--navy-1);border-color:var(--line);display:inline-flex;align-items:center;gap:6px}
body[data-theme=navy] .result-links button .ui-icon{width:18px;height:18px}
body[data-theme=navy] .expedition-result{background:#0b1f2acc;border:1px solid #ffd66655;border-radius:16px;padding:12px;margin-top:12px;color:var(--ink)}

/* 横向き（844×390 など）は幅が広いので、縦長向けの段組みだけを戻す */
@media(max-height:500px) and (min-width:700px){
 body[data-theme=navy] .journey-copy{padding-top:24px;padding-right:130px}
 body[data-theme=navy] .combat-actions button{min-height:72px;padding:6px 2px}
 body[data-theme=navy] .combat-actions button>.ui-icon{width:30px;height:30px;padding:6px}
 body[data-theme=navy] .departure-actions{position:static}
}
body[data-theme=navy] .combat-specials button:disabled>.charge-pips{display:inline-flex}
/* 戦闘の操作盤は画面の下に貼り付くので、縦 844px で舞台の仲間に触れる高さ（約 390px 以下）に収める */
body[data-theme=navy] .command-heading{line-height:1.2}
body[data-theme=navy] .command-heading rt,body[data-theme=navy] .combat-actions rt,body[data-theme=navy] .combat-specials rt,body[data-theme=navy] .team-status rt{font-size:.45em}
body[data-theme=navy] .selected-name .quiet{min-height:28px;padding:0 8px;font-size:13px}
body[data-theme=navy] .action-reason{font-size:13px;line-height:1.3;margin:0 0 4px}
body[data-theme=navy] .help-forecast{line-height:1.3;padding:2px 10px;margin:0 0 4px}
body[data-theme=navy] .combat-actions button{min-height:0;gap:1px;padding:5px 2px 4px}
body[data-theme=navy] .combat-actions button>strong{line-height:1.1}
body[data-theme=navy] .combat-actions button>span:last-of-type{line-height:1.2}
body[data-theme=navy] .combat-specials button.special-button{min-height:0;padding:3px 12px;row-gap:0}
body[data-theme=navy] .combat-specials .special-button>span:first-of-type{line-height:1.1}
body[data-theme=navy] .combat-specials .special-button>span:nth-of-type(2){line-height:1.2}
/* 仲間の札：名前／ゲージ／げんきの3段。状態（選択中・行動済み・休憩・援護）は3段目の右端に小さく置き、名前と重ねない */
body[data-theme=navy] .battle-team .team-status{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;column-gap:4px;align-items:center}
body[data-theme=navy] .battle-team .team-status>strong{grid-column:1/-1;grid-row:1}
body[data-theme=navy] .battle-team .team-status>.meter{grid-column:1/-1;grid-row:2}
body[data-theme=navy] .battle-team .team-status>.hptext{grid-column:1;grid-row:3}
body[data-theme=navy] .battle-team .team-status>.actor-mark{position:static;grid-column:2;grid-row:3;font-size:11px;color:var(--gold);white-space:nowrap}

/* ===== ほかの画面：紙色の札・入力欄・選択中の見た目を紺と金に揃える（2026-10-10 テル回答 A） ===== */
/* 札（白・クリーム色の面） */
body[data-theme=navy] .card,body[data-theme=navy] .companion-card,body[data-theme=navy] .companion-card.in-team,body[data-theme=navy] .codex-card,body[data-theme=navy] .album-card,body[data-theme=navy] .profile-hero,body[data-theme=navy] .hero-summary,body[data-theme=navy] .form-card,body[data-theme=navy] .form-card.form-current,body[data-theme=navy] .skill-list article,body[data-theme=navy] .stat-grid>div,body[data-theme=navy] .record-grid>div,body[data-theme=navy] .draw-lobby,body[data-theme=navy] .draw-result,body[data-theme=navy] .draw-obtained,body[data-theme=navy] .envelope,body[data-theme=navy] .wardrobe-preview,body[data-theme=navy] .multi-target-summary,body[data-theme=navy] .multi-queue,body[data-theme=navy] .multi-queue li,body[data-theme=navy] .enemy-targets .enemy-target,body[data-theme=navy] .nursery-slot,body[data-theme=navy] .empty-nest,body[data-theme=navy] .hatch-ready,body[data-theme=navy] .hatch-result,body[data-theme=navy] .exp-reward,body[data-theme=navy] .exp-reward article,body[data-theme=navy] .exp-progress,body[data-theme=navy] .growth-cost,body[data-theme=navy] .growth-success,body[data-theme=navy] .join-detail,body[data-theme=navy] .local-preview,body[data-theme=navy] .notice,body[data-theme=navy] .expansion-save-note,body[data-theme=navy] .fact,body[data-theme=navy] .fiction,body[data-theme=navy] .log,body[data-theme=navy] .command-dock,body[data-theme=navy] .rival-sign,body[data-theme=navy] .skill-scene,body[data-theme=navy] .companion-filters,body[data-theme=navy] .story-dialogue,body[data-theme=navy] .result-grow-hint,body[data-theme=navy] .operation-reason,body[data-theme=navy] .cap-route .opened,body[data-theme=navy] .training-stepper output,body[data-theme=navy] .activity-hint{background:#102c3be6;color:var(--ink);border-color:#ffd66680;box-shadow:0 0 0 2px var(--navy-1),0 6px 18px #0006}
body[data-theme=navy] .card *,body[data-theme=navy] .companion-card *,body[data-theme=navy] .codex-card *,body[data-theme=navy] .album-card *,body[data-theme=navy] .profile-hero *,body[data-theme=navy] .form-card *,body[data-theme=navy] .skill-list article *,body[data-theme=navy] .stat-grid>div *,body[data-theme=navy] .record-grid>div *,body[data-theme=navy] .draw-lobby *,body[data-theme=navy] .draw-result *,body[data-theme=navy] .wardrobe-preview *,body[data-theme=navy] .nursery-slot *,body[data-theme=navy] .exp-reward *,body[data-theme=navy] .story-dialogue *,body[data-theme=navy] .multi-queue *,body[data-theme=navy] .multi-target-summary *{color:inherit}
body[data-theme=navy] .story-dialogue{background:#0b1f2af0}
body[data-theme=navy] .story-dialogue .speaker,body[data-theme=navy] .story-dialogue strong{color:var(--gold)}
body[data-theme=navy] .companion-card{border:1.5px solid #5d7f8c}
body[data-theme=navy] .companion-card.in-team{border-color:var(--gold);box-shadow:0 0 0 2px var(--navy-1),0 0 14px #ffd66644}
body[data-theme=navy] .companion-card.unowned{opacity:.85}
body[data-theme=navy] .companion-card.unowned img,body[data-theme=navy] .codex-card.locked img{filter:brightness(.6) saturate(.6)}
body[data-theme=navy] .companion-meta b{background:var(--gold);color:#2b2000}
body[data-theme=navy] .companion-profile:hover{background:#163a4a}
body[data-theme=navy] .card-hint,body[data-theme=navy] .companion-role,body[data-theme=navy] .companion-count{color:var(--ink-3)}
body[data-theme=navy] .album-card p,body[data-theme=navy] .album-card small{color:var(--ink-2)}
body[data-theme=navy] .profile-hero h1,body[data-theme=navy] .profile-hero h2{color:var(--ink);text-shadow:var(--outline)}
body[data-theme=navy] .profile-hero p{color:var(--ink-2)}
body[data-theme=navy] .record-grid>div span{color:var(--ink-3)}body[data-theme=navy] .record-grid>div strong{color:var(--gold)}
body[data-theme=navy] .stat-grid>div span{color:var(--ink-3)}
body[data-theme=navy] .draw-lobby h2,body[data-theme=navy] .draw-result h2{color:var(--gold)}
body[data-theme=navy] .growth-table em{background:var(--gold);color:#2b2000}
/* 入力欄 */
body[data-theme=navy] input,body[data-theme=navy] select,body[data-theme=navy] textarea,body[data-theme=navy] .companion-filters input,body[data-theme=navy] .companion-filters select,body[data-theme=navy] .gear-target-label select{background:var(--navy-1);color:var(--ink);border:1.5px solid var(--line);border-radius:12px;color-scheme:dark}
body[data-theme=navy] .companion-filters label{color:var(--ink-2)}
body[data-theme=navy] input::placeholder{color:#8aa3ad}
body[data-theme=navy] input[type=checkbox]{accent-color:var(--gold)}
/* 選択中・押されたタブや札は金 */
body[data-theme=navy] .current-team .slots button,body[data-theme=navy] .wardrobe-choices button,body[data-theme=navy] .gear-grid button,body[data-theme=navy] .profile-tabs button,body[data-theme=navy] .growth-subtabs button,body[data-theme=navy] .map-tabs button,body[data-theme=navy] .board-nodes button{background:var(--navy-3);color:var(--ink);border-color:#8fb3c0}
body[data-theme=navy] .current-team .slots button[aria-pressed=true],body[data-theme=navy] .wardrobe-choices button[aria-pressed=true],body[data-theme=navy] .gear-grid button[aria-pressed=true],body[data-theme=navy] .profile-tabs button[aria-pressed=true],body[data-theme=navy] .growth-subtabs button[aria-pressed=true],body[data-theme=navy] .map-tabs button[aria-pressed=true],body[data-theme=navy] .board-nodes button[aria-pressed=true],body[data-theme=navy] .auto-toggle[aria-pressed=true],body[data-theme=navy] .enemy-targets .targeted{background:linear-gradient(#ffe38a,#f0b93a);color:#2b2000;border-color:#fff2c0;box-shadow:0 0 12px #ffd66666,0 3px 0 #8a5d10}
body[data-theme=navy] .current-team .slots button[aria-pressed=true] *,body[data-theme=navy] .wardrobe-choices button[aria-pressed=true] *,body[data-theme=navy] .gear-grid button[aria-pressed=true] *,body[data-theme=navy] .profile-tabs button[aria-pressed=true] *,body[data-theme=navy] .growth-subtabs button[aria-pressed=true] *,body[data-theme=navy] .map-tabs button[aria-pressed=true] *,body[data-theme=navy] .board-nodes button[aria-pressed=true] *,body[data-theme=navy] .enemy-targets .targeted *{color:#2b2000}
body[data-theme=navy] .board-nodes button:disabled,body[data-theme=navy] .board-nodes button[aria-pressed=true]:disabled{background:#0f2733;color:#8aa3ad;border-color:#2f4f5c}
body[data-theme=navy] .board-node-icon{background:var(--navy-1);border-color:#ffd66699}
body[data-theme=navy] .companion-card>button:disabled,body[data-theme=navy] .map-places button:disabled,body[data-theme=navy] .region-quests .quest button:disabled{background:#0f2733;color:#8aa3ad;border-color:#2f4f5c;opacity:1}
/* 確認ダイアログ */
body[data-theme=navy] dialog.progression-confirm,body[data-theme=navy] dialog.save-confirm{background:#102c3b;color:var(--ink);border:1.5px solid var(--gold);border-radius:18px;box-shadow:0 0 0 3px var(--navy-1),0 12px 40px #000c}
body[data-theme=navy] dialog.progression-confirm *,body[data-theme=navy] dialog.save-confirm *{color:inherit}
body[data-theme=navy] dialog::backdrop{background:#061219b3}
/* 出会い・お話 */
body[data-view=story][data-theme=navy],body[data-view=encounter][data-theme=navy]{background:#0d2231}
body[data-theme=navy] .story-stage{border:2px solid var(--gold);box-shadow:0 0 0 4px var(--navy-1)}
body[data-theme=navy] .separator{background:#ffd66644}
/* 持ち物・記録・手帳の見出し色 */
body[data-theme=navy] .resource-grid .panel h2 strong,body[data-theme=navy] .shard-list strong{color:var(--gold)}
body[data-theme=navy] .shard-list>div{border-bottom-color:#ffffff14}
body[data-theme=navy] .menu-item{background:#102c3be6;color:var(--ink);border:1.5px solid #ffd66680}
body[data-theme=navy] .menu-item small{color:var(--ink-3)}
/* 仲間の絞り込み：見出しの文字が1字ずつ縦に割れないよう、見出しは1行・入力欄はその下 */
body[data-theme=navy] .companion-filters label{display:block;font-size:var(--fs-note);color:var(--ink-3);white-space:nowrap}
body[data-theme=navy] .companion-filters label>select,body[data-theme=navy] .companion-filters label>input{display:block;width:100%;margin-top:4px;white-space:normal;font-size:var(--fs-label);min-height:44px}
body[data-theme=navy] .map-panel{background:#102c3be6;border:1.5px solid #ffd66680;border-radius:18px;color:var(--ink);padding:16px}
body[data-theme=navy] .map-panel h2{color:var(--gold)}
/* 金の面（主ボタン・札・選択中）の文字は必ず濃い茶。札の中の「* {color:inherit}」より後に置いて勝たせる */
body[data-theme=navy] .primary,body[data-theme=navy] .primary *,body[data-theme=navy] button.primary,body[data-theme=navy] button.primary *,body[data-theme=navy] .badge,body[data-theme=navy] .badge *,body[data-theme=navy] .result-steps li.current,body[data-theme=navy] .companion-meta b,body[data-theme=navy] .growth-table em,body[data-theme=navy] [aria-pressed=true].primary *{color:#2b2000}
body[data-theme=navy] .primary rt,body[data-theme=navy] .badge rt{color:#2b2000;opacity:.8}
body[data-theme=navy] .combat-top .speed-toggle{min-width:44px;padding:0 10px;font-weight:800}
body[data-theme=navy] .combat-top .speed-toggle[aria-pressed=true],body[data-theme=navy] .combat-top .auto-toggle[aria-pressed=true]{background:linear-gradient(#ffe38a,#f0b93a);color:#2b2000;border-color:#fff2c0}
/* 仲間の札：選択中は金の枠で分かるので文字は出さない。「行動済み」「休憩」だけを3段目の右端に小さな札で */
body[data-theme=navy] .battle-team .team-status>.hptext{white-space:nowrap;font-size:12px}
body[data-theme=navy] .battle-team .team-status>.actor-mark{display:none}
body[data-theme=navy] .battle-team .team-status>.actor-mark[data-mark=used],body[data-theme=navy] .battle-team .team-status>.actor-mark[data-mark=rest]{display:block;position:absolute;top:3px;right:4px;font-size:10px;padding:0 6px;border-radius:999px;background:var(--navy-0);color:var(--gold);line-height:1.6;box-shadow:0 0 0 1px #ffd66655}
body[data-theme=navy] .battle-team .team-status>.actor-mark[data-mark=rest]{color:#ff9f8a}
body[data-theme=navy] .combat-specials{grid-template-columns:1fr}
body[data-theme=navy] .combat-actions button>span:last-of-type{white-space:nowrap;overflow:hidden;text-overflow:clip;max-width:100%;font-size:12px}
/* 「？」：どの画面でも右上から、その画面の説明を開く */
body[data-theme=navy] .purse .help-toggle{width:38px;min-width:38px;height:38px;min-height:38px;padding:0;border-radius:50%;background:var(--gold);color:#2b2000;border:1.5px solid #fff2c0;font-weight:900;font-size:18px;box-shadow:0 0 10px #ffd66666}
body[data-theme=navy] dialog.help-sheet{background:#102c3b;color:var(--ink);border:1.5px solid var(--gold);border-radius:18px;box-shadow:0 0 0 3px var(--navy-1),0 12px 40px #000c;width:min(92vw,520px);max-height:84vh;overflow:auto;padding:18px}
body[data-theme=navy] dialog.help-sheet h2{color:var(--gold);font-size:var(--fs-h);margin:0 0 10px}
body[data-theme=navy] dialog.help-sheet p{font-size:var(--fs-body);line-height:1.7;margin:0 0 10px;color:var(--ink-2)}
body[data-theme=navy] dialog.help-sheet button{width:100%;min-height:52px;margin-top:6px}
/* 育成ボード：6つのしるしを3列×2段。2段目は同じ列の1段目の下 */
body[data-theme=navy] .board-nodes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body[data-theme=navy] .board-nodes button{display:grid;justify-items:center;gap:3px;min-height:112px;padding:8px 4px;border-radius:18px;font-size:var(--fs-note);line-height:1.3;text-align:center}
body[data-theme=navy] .board-nodes button strong{font-size:var(--fs-label)}
body[data-theme=navy] .board-nodes button>span:not(.board-node-icon){font-size:12px;color:var(--ink-3)}
body[data-theme=navy] .board-nodes button small{font-size:11px;color:var(--gold)}
body[data-theme=navy] .board-node-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center}
body[data-theme=navy] .board-nodes button[aria-pressed=true] small,body[data-theme=navy] .board-nodes button[aria-pressed=true]>span{color:#2b2000}
body[data-theme=navy] .board-nodes button{grid-template-columns:1fr;grid-template-rows:auto auto auto auto;align-content:start;white-space:normal;word-break:keep-all}
body[data-theme=navy] .board-nodes button strong{white-space:nowrap}
body[data-theme=navy] .board-nodes button>span:not(.board-node-icon){line-height:1.3}
/* 総点検（2026-10-11）：アイコンの右余白で中心が3px左にずれていた札、幅が足りず切れていた技の数値、図鑑の長い名前 */
body[data-theme=navy] .home-shortcuts .ui-icon,body[data-theme=navy] .route-tiles .ui-icon,body[data-theme=navy] .result-links .ui-icon,body[data-theme=navy] .board-node-icon .ui-icon,body[data-theme=navy] .combat-specials .ui-icon{margin:0}
body[data-theme=navy] .combat-actions button>span:last-of-type{white-space:normal;overflow:visible;line-height:1.2;max-width:100%;padding:0 2px}
body[data-theme=navy] .combat-actions button>.ui-icon{width:26px;height:26px;padding:5px}
body[data-theme=navy] .combat-actions button{padding:4px 2px 4px}
body[data-theme=navy] .codex-card strong{font-size:15px;line-height:1.3;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;text-align:center;max-width:100%}
body[data-theme=navy] .nest-number{position:static;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--navy-1);border:1.5px solid #ffd66699;color:var(--gold);margin:0 auto 6px}
body[data-theme=navy] .journey-progress{flex-wrap:wrap;gap:4px 12px}
body[data-theme=navy] .journey-progress span{white-space:nowrap}
body[data-theme=navy] .result-continuation>.row>button>span{white-space:normal;line-height:1.3}
/* テルの指摘（2026-10-11 #FB）：ふりがな（rt）のぶん、ボタンの文字が下に寄って見える。中身を縦の真ん中に、下の余白を少し多く */
body[data-theme=navy] button{display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.25;padding-top:6px;padding-bottom:9px}
body[data-theme=navy] button rt{line-height:1;font-size:.46em}
body[data-theme=navy] button ruby{line-height:1.25}
body[data-theme=navy] .combat-actions button,body[data-theme=navy] .home-shortcuts button,body[data-theme=navy] .route-tiles>button,body[data-theme=navy] .board-nodes button,body[data-theme=navy] .combat-specials button.special-button,body[data-theme=navy] .menu-item,body[data-theme=navy] .team-status,body[data-theme=navy] .preparation-links button,body[data-theme=navy] .map-places button,body[data-theme=navy] .bottom-nav button,body[data-theme=navy] .gear-grid button,body[data-theme=navy] .companion-profile,body[data-theme=navy] .field-actor,body[data-theme=navy] .current-team .slots button,body[data-theme=navy] .wardrobe-choices button{display:grid}
body[data-theme=navy] .bottom-nav button{display:block}
body[data-theme=navy] .row>button+button{margin-left:0}
body[data-theme=navy] .row+p.small,body[data-theme=navy] .row+.small{margin-top:12px}
/* 舞台の「選択中」の札：ふりがな込みで札の中央に */
body[data-theme=navy] .field-actor .role{display:inline-flex;align-items:center;justify-content:center;line-height:1.1;padding:3px 8px 4px;background:#0b1f2aeb;color:var(--gold);border:1px solid #ffd66699}
body[data-theme=navy] .field-actor .role rt{line-height:1;font-size:.46em}
body[data-theme=navy] .companion-profile{display:block}
/* 戦闘のカットイン（2026-10-11 C）：舞台の中央に大きく1語。種類で色を変える */
body[data-theme=navy] .battle-banner{position:absolute;left:50%;top:46%;z-index:9;transform:translate(-50%,-50%);padding:10px 22px;border-radius:999px;font-size:26px;font-weight:900;letter-spacing:.04em;white-space:nowrap;pointer-events:none;color:#2b2000;background:linear-gradient(#ffe38a,#f0b93a);border:2px solid #fff2c0;box-shadow:0 0 0 3px var(--navy-1),0 0 28px #ffd666aa;text-shadow:0 1px 0 #fff8}
body[data-theme=navy] .battle-banner[data-kind=special]{background:linear-gradient(#e9d6ff,#c89bff);border-color:#f6ecff;box-shadow:0 0 0 3px var(--navy-1),0 0 32px #c89bffcc;color:#2a0f4e}
body[data-theme=navy] .battle-banner[data-kind=guard]{background:linear-gradient(#cfe9ff,#7fb6e8);border-color:#eaf5ff;box-shadow:0 0 0 3px var(--navy-1),0 0 24px #7fb6e8aa;color:#0b2540}
body[data-theme=navy] .battle-banner[data-kind=effective]{font-size:30px;background:linear-gradient(#ffd0a8,#ff8a4a);border-color:#ffe9d6;box-shadow:0 0 0 3px var(--navy-1),0 0 32px #ff8a4acc;color:#3a1200}
body[data-theme=navy] .battle-banner[data-kind=ready]{background:linear-gradient(#e9d6ff,#c89bff);border-color:#f6ecff;color:#2a0f4e;top:60%}
/* ひっさつ OK：ボタンが光る */
body[data-theme=navy] .combat-specials button.special-button.ready{background:linear-gradient(#e9d6ff,#c89bff);border-color:#f6ecff;color:#2a0f4e;animation:navy-ready 1.1s ease-in-out infinite}
body[data-theme=navy] .combat-specials button.special-button.ready *{color:#2a0f4e}
body[data-theme=navy] .combat-specials button.special-button.ready .charge-pips i{border-color:#2a0f4e;background:#2a0f4e}
@keyframes navy-ready{50%{box-shadow:0 0 0 6px #c89bff55,0 0 28px #c89bffcc,0 3px 0 #1b0b30}}
body[data-reduced=true] .combat-specials button.special-button.ready{animation:none;outline:3px solid #c89bff}
/* きょうの1戦 */
body[data-theme=navy] .daily-card{padding:12px 14px;margin-bottom:12px;background:linear-gradient(90deg,#2b2000cc,#102c3be6);border-color:var(--gold)}
body[data-theme=navy] .daily-card h2{font-size:var(--fs-h);margin:0;color:var(--ink)}
body[data-theme=navy] .daily-card button{margin-top:10px;min-height:46px}
body[data-theme=navy] .daily-card .badge.daily-reward{background:var(--navy-1);color:var(--gold);border:1px solid #ffd66699}
/* テルの指摘（2026-10-11 #FB 2回目）：短い語のボタンは折り返さない。ふりがな OFF が既定になったぶん、行の高さを詰める */
body[data-theme=navy] .story-skip button,body[data-theme=navy] .story-actions button,body[data-theme=navy] .section-top button,body[data-theme=navy] .menu-heading button,body[data-theme=navy] .achievement-card .row button,body[data-theme=navy] .combat-end button,body[data-theme=navy] .combat-top button,body[data-theme=navy] .region-heading button,body[data-theme=navy] .daily-card button{white-space:nowrap}
body[data-theme=navy] .badge{white-space:nowrap}
body[data-theme=navy] .story-dialogue p{line-break:strict;word-break:keep-all;overflow-wrap:anywhere}
body[data-theme=navy] .daily-card h2{line-height:1.3}
body[data-theme=navy] .command-heading .selected-name strong{white-space:nowrap}
body[data-ruby=off][data-theme=navy] .story-dialogue p{line-height:1.75}
body[data-ruby=off][data-theme=navy] button{padding-top:7px;padding-bottom:7px}
/* #FB 3回目（2026-10-11）：話し手の札とアイコン付きボタンの文字を縦の真ん中に */
body[data-theme=navy] .story-dialogue .speaker{display:inline-flex;align-items:center;line-height:1.1;padding:6px 14px 7px}
body[data-theme=navy] button .ui-icon{margin:0;align-self:center}
body[data-theme=navy] button>span{display:inline-flex;align-items:center;line-height:1.15}
/* メニューの札：ふりがなの語が1語ずつ縦に割れないよう、名前をひとかたまりの行にする */
body[data-theme=navy] .menu-item>.menu-label{display:block;text-align:center;line-height:1.5}
body[data-theme=navy] .preset-card .row>button{display:block;text-align:center;line-height:1.5}
/* 世界地図の地点：点は丸く番号だけ。地名は点の下（下端の地点は上）に札で全部見せる */
body[data-theme=navy] .world-map-frame .map-point{display:flex;border-radius:50%;width:13%;min-width:40px;max-width:84px;min-height:0;padding:0;overflow:visible}
body[data-theme=navy] .world-map-frame .map-point b{font-size:clamp(17px,2.4vw,26px)}
body[data-theme=navy] .world-map-frame .map-point>.map-point-name{position:absolute;left:50%;top:calc(100% + 2px);transform:translateX(-50%);display:block;width:max-content;max-width:7.5em;padding:1px 6px 2px;border-radius:8px;background:#0b1f2ae6;color:#fff;font-size:12px;font-weight:700;line-height:1.3;text-align:center;white-space:normal;overflow:visible;text-overflow:clip;text-shadow:none;pointer-events:none}
body[data-theme=navy] .world-map-frame .map-point.label-up>.map-point-name{top:auto;bottom:calc(100% + 2px)}
body[data-theme=navy] .world-map-frame .map-point.locked>.map-point-name{color:#cfd8dc}
@media(min-width:761px){body[data-theme=navy] .world-map-frame .map-point>.map-point-name{font-size:15px;white-space:nowrap;max-width:none}}
/* 狭い画面（スマホ縦）は名札が重なるので、点は番号だけにして、地図の下に番号つきの地名を並べる */
.map-legend{display:none}
@media(max-width:760px){
 body[data-theme=navy] .world-map-frame .map-point>.map-point-name{display:none}
 .map-legend{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;margin:10px 0 0;padding:0;list-style:none}
 .map-legend li{display:flex;align-items:center;gap:6px;min-width:0;font-size:14px;line-height:1.35;color:var(--ink)}
 .map-legend li b{flex:0 0 26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:13px;background:#ffcc45;color:#102452}
 .map-legend li span{min-width:0;overflow-wrap:anywhere}
 .map-legend li.locked{opacity:.6}.map-legend li.locked b{background:#5b6b74;color:#fff}
 .map-legend li.here b{outline:3px solid #ffcc45;outline-offset:1px;background:#fff7dd}
}
/* 章の帯：左の絵の分の余白を、並び全体ではなく帯自身の幅で取る（2〜3列のとき地名が細く折れていた） */
body[data-theme=navy] .map-places.chapter-bands>button{padding-left:14px}
body[data-theme=navy] .map-places.chapter-bands>button>:is(strong,span,small){width:auto;max-width:72%}
.map-panel .chapter-bands+p{margin-top:12px}
/* C1 仲間一覧の顔の格子（4列。広い画面は6〜8列） */
.companion-layout{display:flex;gap:8px;margin:4px 0 12px}
body[data-theme=navy] .companion-layout button{min-height:44px;font-size:15px;padding:6px 14px}
body[data-theme=navy] .companion-layout button[aria-pressed=true]{background:#ffcc45;color:#102452;border-color:#ffcc45}
.companion-faces{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media(min-width:761px){.companion-faces{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:14px}}
body[data-theme=navy] .companion-faces .companion-face{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:0;padding:6px 4px 8px;border-radius:16px;background:#102c3be6;border:1.5px solid #ffd66655}
.companion-faces .companion-face .face-art{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:12px;border:0;box-shadow:none;background:#0b1f2a}
.companion-face.in-team{border-color:#ffcc45!important;box-shadow:0 0 0 2px #ffcc4555}
.companion-face.unowned .face-art{filter:grayscale(.85) brightness(.6)}
body[data-theme=navy] .companion-face>.companion-face-level{display:block;font-size:14px;font-weight:800;line-height:1.2;color:var(--ink)}
body[data-theme=navy] .companion-face>.companion-face-stars{display:block;font-size:13px;line-height:1;color:#ffcc45;letter-spacing:1px}
.companion-face-team{position:absolute;top:2px;left:50%;transform:translateX(-50%);padding:0 6px;border-radius:8px;background:#ffcc45;color:#102452;font-size:11px;line-height:1.5;white-space:nowrap}
@media(min-width:761px){body[data-theme=navy] .companion-face>.companion-face-level{font-size:16px}body[data-theme=navy] .companion-face>.companion-face-stars{font-size:15px}}
/* I3 ひとやすみの合図：rest_card の絵に、相棒の寝顔（partner-emotes の sleep）を重ねる */
.rest-nudge-art{position:relative;display:flex;align-items:flex-end;justify-content:center;min-height:150px;margin:0 0 6px}
.rest-nudge-art .card-art{width:min(100%,300px);height:auto;border-radius:14px}
.rest-nudge-art .rest-nudge-buddy{position:absolute;right:4%;bottom:-6px;width:42%;max-width:170px;height:auto;filter:drop-shadow(0 4px 4px #0008)}
body[data-theme=navy] dialog.rest-nudge h2{text-align:center}
body[data-theme=navy] dialog.rest-nudge p{text-align:center}
.rest-nudge-setting{margin-top:6px}
body[data-theme=navy] .rest-nudge-setting button[aria-pressed=true]{background:#ffcc45;color:#102452;border-color:#ffcc45}
.rest-nudge-art .rest-nudge-hero{position:absolute;left:4%;bottom:-6px;width:26%;max-width:110px;filter:drop-shadow(0 4px 4px #0008)}
/* ボタンの中の「ふりがな付きの語＋地の文」のかたまり（app.js joinButtonText）。すき間を空けず、ふつうの文字として折り返す */
body[data-theme=navy] button>span.btn-text{display:inline;line-height:inherit}
body[data-theme=navy] button>span>span.btn-text{display:inline}

/* ===== DEV12 R1（2026-10-17）：改行・はみ出し・重なり・片付け ===== */
/* 和文の改行：わかち書きの空白で折り返し、語の途中では折らない（空白の無い長い語だけ、はみ出す所で折る） */
body[data-theme=navy]{word-break:keep-all;overflow-wrap:break-word;line-break:strict}
body[data-theme=navy] h1,body[data-theme=navy] .section-top h1{overflow-wrap:break-word;white-space:normal}
/* 戦闘の「選択中」は選んだ1体だけ */
body[data-theme=navy] .field-actor:not(.selected-actor) .role{display:none}
/* 「行動済み」「休憩」の札は げんきの数字に重ねず、札の下の縁に */
body[data-theme=navy] .battle-team .team-status>.actor-mark[data-mark=used],body[data-theme=navy] .battle-team .team-status>.actor-mark[data-mark=rest]{top:auto;bottom:-9px;right:8px}
body[data-theme=navy] .battle-team .team-status:has(>.actor-mark[data-mark=used]){opacity:.72}
/* 重なり順：下のメニューは本文の演出より上 */
body[data-theme=navy] .bottom-nav{z-index:30}
/* 指さしの吹き出しは読み終えたら薄く消える（押す所の光は残る） */
.coach-bubble{transition:opacity .35s ease-out,transform .35s ease-out}
.coach-bubble.coach-fade{opacity:0;transform:translateY(6px);pointer-events:none}

/* ===== DEV12 R2（2026-10-17）：文字は4段（24 見出し／18 区切り／16 本文とボタン／13 短い補足）。太字は見出しとボタンだけ ===== */
body[data-theme=navy] #app :is(p,li,dd,td,label,blockquote){font-size:16px;font-weight:400;line-height:1.75}
body[data-theme=navy] #app h1{font-size:24px;line-height:1.35;font-weight:800}
body[data-theme=navy] #app h2{font-size:18px;line-height:1.45;font-weight:800}
body[data-theme=navy] #app :is(h3,h4){font-size:16px;line-height:1.5;font-weight:800}
body[data-theme=navy] #app button{font-size:16px;font-weight:700}
body[data-theme=navy] #app :is(small,.small,.eyebrow,.card-hint,.companion-role,.companion-meta,figcaption,.hptext,.actor-mark,.badge){font-size:13px;font-weight:400}
body[data-theme=navy] #app button small{font-size:13px;font-weight:400}
body[data-theme=navy] #app .eyebrow{font-weight:700;letter-spacing:.04em}
/* 数字の見出し（たね・ゲージ・HP など）は本文と同じ大きさで、太さだけ上げる */
body[data-theme=navy] #app :is(strong,b){font-weight:700}
/* 余白は 8・16・24 の3種 */
body[data-theme=navy] #app .panel{padding:16px}
body[data-theme=navy] #app .panel+.panel,body[data-theme=navy] #app .mt{margin-top:16px}
body[data-theme=navy] #app .section-top{margin-bottom:16px}
/* 戦闘の札は枠を消して色の面だけに（箱の入れ子を1段減らす） */
body[data-theme=navy] .battle-team .team-status{border-color:transparent;box-shadow:none}
body[data-theme=navy] .battle-team .team-status[aria-pressed=true]{border-color:var(--gold)}
body[data-theme=navy] .combat-actions button{box-shadow:none}
/* 主役選び：3列の細いカードをやめ、1列の横長カード（絵・名前と説明・ボタン） */
body[data-theme=navy] .cards.starter{display:grid;grid-template-columns:1fr;gap:12px}
body[data-theme=navy] .cards.starter .card{display:grid;grid-template-columns:96px 1fr auto;align-items:center;gap:12px;padding:12px 16px;text-align:left;min-height:0}
body[data-theme=navy] .cards.starter .card img{width:96px;height:80px;object-fit:contain;margin:0}
body[data-theme=navy] .cards.starter .card p{margin:0}
body[data-theme=navy] .cards.starter .card strong{font-size:18px}
body[data-theme=navy] .cards.starter .card button{white-space:nowrap;margin:0}
@media(max-width:380px){body[data-theme=navy] .cards.starter .card{grid-template-columns:72px 1fr;}body[data-theme=navy] .cards.starter .card button{grid-column:1/-1}}
body[data-theme=navy] #app .combat-top h1{font-size:16px;font-weight:700}
body[data-theme=navy] #app .ap-strip b,body[data-theme=navy] #app .selected-name strong{font-size:16px}
/* 4段からはみ出していた所（実測で拾った残り） */
body[data-theme=navy] .companion-faces .companion-face>.companion-face-level{font-size:13px}
body[data-theme=navy] #app button>span:not(.btn-text):last-child,body[data-theme=navy] #app button>.btn-text:last-child:not(:first-child){font-size:13px}
body[data-theme=navy] #app .intent strong{font-size:16px}body[data-theme=navy] #app .intent span{font-size:13px}
body[data-theme=navy] #app .exp-reward-grid :is(span,b,strong){font-size:16px}
body[data-theme=navy] #app summary{font-size:16px}
.coach-bubble p{font-size:16px}
/* 下のメニューは不透明に（後ろの文字が透けない） */
body[data-theme=navy] .bottom-nav{background:#0b1f2a;backdrop-filter:none}

/* ===== DEV12 R3（2026-10-17）：演出（1瞬間1強調・出は200〜400ms ease-out・必ず片付く・素材の質感をそろえる） ===== */
/* LV UP：黒い太棒に小さな文字 → 細い金のゲージと、名前の横に飛び出す札 */
body[data-theme=navy] .exp-bar{height:8px;background:#ffffff1f;border:0;margin:8px 0 6px;overflow:visible}
body[data-theme=navy] .exp-bar i{background:linear-gradient(90deg,#ffd666,#fff1b8);box-shadow:0 0 8px #ffd66688}
body[data-theme=navy] .exp-bar.levelup::after{content:'LEVEL UP';inset:auto;right:0;top:-34px;display:block;padding:2px 10px;border-radius:999px;font-size:13px;font-weight:800;letter-spacing:.12em;color:#2b2000;background:linear-gradient(#ffe38a,#f0b93a);text-shadow:none;box-shadow:0 2px 0 #7a5a10,0 0 14px #ffd66699;animation:lvup-in .4s cubic-bezier(.2,.8,.2,1) both}
@keyframes lvup-in{0%{transform:translateY(8px) scale(.6);opacity:0}100%{transform:none;opacity:1}}
/* きらめき：文字記号をやめ、星の素材を小さく */
.moment-sparks img{position:absolute;width:16px;height:16px;margin:-8px 0 0 -8px}.moment-sparks img.spark-small{width:10px;height:10px;margin:-5px 0 0 -5px}
/* 指さし：絵文字をやめ、金の矢じるし（Codex の指の絵が届くまでの仮） */
.coach-hand svg{display:block;filter:drop-shadow(0 1px 1px #0006)}
/* ずっと続く点滅は3回で止める（ほかの強調を食わない） */
body[data-theme=navy] .team-status.pinch{animation-iteration-count:3}
body[data-theme=navy] .combat-specials .special-button.ready,body[data-theme=navy] .combat-specials button.ready{animation-iteration-count:4}
/* はじめての板：文字が画面の幅で折り返せるように */
.firsttime-board{max-width:88vw}.firsttime-board b{white-space:normal!important;word-break:keep-all}

/* ===== DEV12 R4（2026-10-17）：戦闘は斜めの配置（相手が右上・仲間が左下）。右向きの後ろ姿が、そのまま相手を向く ===== */
body[data-theme=navy] .stage-composed:not(.multi-arena) .enemy-row{left:calc(50% - 62px);top:calc(48% - 110px)}
@media(max-width:760px){body[data-theme=navy] .stage-composed:not(.multi-arena) .enemy-row{left:calc(50% - 43px);top:calc(48% - 78px)}}
@media(max-width:400px){body[data-theme=navy] .stage-composed:not(.multi-arena) .enemy-row{left:calc(50% - 36px);top:calc(48% - 65px)}}
/* 予告の板は小さく1行に（相手の頭にかぶせない） */
body[data-theme=navy] .battle-forecast .intent{padding:6px 10px}
body[data-theme=navy] .battle-forecast .intent img,body[data-theme=navy] .battle-forecast .intent .ui-icon{width:20px;height:20px}
/* タイトル（縦持ち）：ロゴを上へ。流れ星 → ロゴ → 主人公たち → ボタン の順に目が下りる。下はホームバーの安全域を空ける */
@media(orientation:portrait){
 body .title-screen{background-size:auto 118%;background-position:center 100%;grid-template-rows:auto 1fr auto auto auto;padding-bottom:max(34px,calc(env(safe-area-inset-bottom) + 12px))}
 body .title-screen .title-logo-big{align-self:start;width:min(66vw,300px);margin-top:max(9vh,calc(env(safe-area-inset-top) + 24px));animation:title-in .7s cubic-bezier(.2,.8,.2,1) both,title-float 4s ease-in-out .7s infinite}
 .title-screen .title-actions{grid-row:3}.title-screen .title-tip{grid-row:4}.title-screen .title-version{grid-row:5}
}
@keyframes title-in{0%{opacity:0;transform:translateY(-14px) scale(.96)}100%{opacity:1;transform:none}}
body[data-reduced=true] .title-screen .title-logo-big{animation:none}
/* 一覧の向き：絵が左・文が右の札では、生き物が文の方（右）を向くように反転（絵は左向きで描かれている） */
body[data-theme=navy] .cards.starter .card>img,body .guide-face img,body[data-theme=navy] .departure-enemy>div:first-child img{transform:scaleX(-1)}
/* きがえの選択肢が枠の右にはみ出さない */
body[data-theme=navy] .wardrobe-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body[data-theme=navy] .wardrobe-choices button{min-width:0;padding-left:6px;padding-right:6px}
body[data-theme=navy] .menu-item>.ui-icon{margin:0 auto 6px}

/* ===== DEV12 提案（2026-10-17）===== */
/* A 案内の札は6秒で畳む */
.guide-bubble{transition:opacity .35s ease-out,max-height .4s ease-out,margin .4s ease-out,padding .4s ease-out;max-height:320px;overflow:hidden}
.guide-bubble.guide-fold{opacity:0;max-height:0;margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;border-width:0}
/* B 戦闘の上の帯：地点名を省略せず、ボタンは小さな丸に（AUTO の入切は色で分かる） */
body[data-theme=navy] #app .combat-top{flex-wrap:wrap;row-gap:4px;padding:6px 8px 6px 12px}
body[data-theme=navy] #app .combat-top h1{flex:1 1 auto;min-width:0;white-space:normal;overflow:visible;text-overflow:clip;font-size:16px;line-height:1.3}
body[data-theme=navy] #app .combat-top>span{font-size:13px}
body[data-theme=navy] #app .combat-top button{min-height:36px;height:36px;padding:0 10px;font-size:13px;gap:4px}
body[data-theme=navy] #app .combat-top button .ui-icon{width:18px;height:18px}
body[data-theme=navy] #app .combat-top .auto-word{display:inline;font-size:13px;font-weight:800;letter-spacing:.04em}
body[data-theme=navy] #app .combat-top{flex-wrap:nowrap;gap:6px}
body[data-theme=navy] #app .combat-top h1{font-size:16px;letter-spacing:-.02em}
body[data-theme=navy] #app .combat-top>button,body[data-theme=navy] #app .combat-top>a{min-height:36px!important;height:36px;padding:0 8px!important;flex:none}
body[data-theme=navy] #app .combat-top>button:last-child{width:36px;padding:0!important}
/* 戦闘の操作盤を前の高さ（約410px）に戻し、舞台の仲間を隠さない */
body[data-theme=navy] #app .combat-panel .action-reason{font-size:13px;line-height:1.4;min-height:0;margin:2px 0}
body[data-theme=navy] #app .combat-panel .help-forecast{font-size:13px;line-height:1.4;padding:4px 10px;margin:2px 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-theme=navy] #app .combat-actions button{min-height:0;padding:6px 4px;gap:2px}
body[data-theme=navy] #app .combat-actions button .ui-icon{width:22px;height:22px}
body[data-theme=navy] #app .combat-actions button>strong,body[data-theme=navy] #app .combat-actions button>span:first-of-type{font-size:16px;line-height:1.2}
body[data-theme=navy] #app .combat-actions button>span:last-child{font-size:13px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
body[data-theme=navy] #app .combat-actions button>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* 見た目の検査（check:look）で拾った4段の外 */
body[data-theme=navy] #app .field-actor .role{font-size:13px}
body[data-theme=navy] #app .current-team .slots :is(span,strong,small,b){font-size:13px}
body[data-theme=navy] #app .current-team .slots strong{font-size:16px}
.companion-face-team{font-size:13px!important}

/* ===== 攻撃・防御・回復の演出（2026-10-17 battle-fx.js）===== */
.stage-composed .field-actor,.stage-composed [data-unit]{overflow:visible}
.fx-aura{position:absolute;left:50%;bottom:4%;width:calc(70px + var(--p,1)*34px);height:calc(18px + var(--p,1)*8px);border-radius:50%;pointer-events:none;z-index:0;opacity:0;
 background:radial-gradient(closest-side,#fff7d0 0,#ffd666cc 35%,#ffb23e55 65%,transparent 100%);box-shadow:0 0 calc(10px + var(--p,1)*8px) #ffd66699;mix-blend-mode:screen}
.fx-aura-special,.fx-aura-combo{background:radial-gradient(closest-side,#ffffff 0,#d9b8ff 30%,#8a5cff77 62%,transparent 100%);box-shadow:0 0 26px #b48cffaa}
.fx-rise{position:absolute;bottom:12%;width:6px;height:6px;border-radius:50%;pointer-events:none;z-index:6;opacity:0;background:#fff3b0;box-shadow:0 0 8px 2px #ffd666}
.fx-rise-heal{background:#d8ffd0;box-shadow:0 0 8px 2px #7ff58a}
.fx-flash{position:absolute;left:50%;top:48%;width:120%;aspect-ratio:1;border-radius:50%;pointer-events:none;z-index:7;opacity:0;background:radial-gradient(closest-side,#ffffff 0,#fff6d8cc 40%,transparent 72%);mix-blend-mode:screen}
.fx-ring{position:absolute;left:50%;top:48%;width:70%;aspect-ratio:1;border-radius:50%;pointer-events:none;z-index:7;opacity:0;border:calc(2px + var(--p,1)*1.5px) solid #fff2b8;box-shadow:0 0 14px #ffd666,inset 0 0 10px #ffd66688}
.fx-streak{position:absolute;left:50%;top:48%;width:26px;height:4px;border-radius:4px;pointer-events:none;z-index:8;opacity:0;transform-origin:0 50%;background:linear-gradient(90deg,#ffffff,#ffd666 60%,transparent)}
.fx-shield{position:absolute;left:50%;top:50%;width:118%;aspect-ratio:1;border-radius:50%;pointer-events:none;z-index:7;opacity:0;overflow:hidden;
 background:radial-gradient(closest-side,transparent 55%,#8fd3ff33 72%,#bfe8ff99 92%,#e8f7ff 100%);box-shadow:0 0 16px #7cc8ff99,inset 0 0 18px #9fd8ff88}
.fx-shield-hit{background:radial-gradient(closest-side,transparent 45%,#bfe8ff66 70%,#ffffffcc 95%)}
.fx-shield-shine{position:absolute;inset:-10% 40% -10% 40%;background:linear-gradient(90deg,transparent,#ffffffcc,transparent);opacity:.8}
.fx-heal{position:absolute;left:50%;top:52%;width:110%;aspect-ratio:1;border-radius:50%;pointer-events:none;z-index:6;opacity:0;background:radial-gradient(closest-side,#e8ffe0cc 0,#7ff58a66 45%,transparent 75%);mix-blend-mode:screen}
body[data-theme=navy] .impact-value{font-weight:900;letter-spacing:.02em}
body[data-reduced=true] :is(.fx-aura,.fx-rise,.fx-flash,.fx-ring,.fx-streak,.fx-shield,.fx-heal){display:none}
/* 技の名前の板：白い四角 → 紺に金の文字で、技の名前を大きく */
body[data-theme=navy] .stage-composed .battle-forecast .motion-label{background:linear-gradient(90deg,#0b1f2af2,#102c3bf2);color:var(--gold);font-size:18px;font-weight:800;letter-spacing:.06em;border-radius:10px;padding-left:16px;text-shadow:0 0 10px #ffd66666}
/* 属性の粒（葉っぱ・しぶき・石）と火花 */
.fx-bit{position:absolute;left:50%;top:48%;pointer-events:none;z-index:8;opacity:0;width:10px;height:10px;background:linear-gradient(135deg,var(--a,#fff2b8),var(--b,#ffb23e));box-shadow:0 0 6px #0004}
.fx-bit-leaf{width:14px;height:8px;border-radius:0 100% 0 100%}
.fx-bit-drop{width:9px;height:12px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:radial-gradient(circle at 35% 30%,#fff,var(--a) 40%,var(--b));box-shadow:0 0 6px #7cc8ff88}
.fx-bit-chip{width:9px;height:8px;border-radius:2px;clip-path:polygon(10% 0,100% 20%,85% 100%,0 75%)}
.fx-bit-spark{width:7px;height:7px;border-radius:50%;background:#fff6c8;box-shadow:0 0 8px 2px #ffd666}
/* 集中線：当たった所を中心に、細い放射の線 */
.fx-speedlines{position:absolute;inset:0;pointer-events:none;z-index:9;opacity:0;
 background:repeating-conic-gradient(from 0deg at var(--x) var(--y),#ffffff00 0deg 4deg,#ffffffcc 4deg 4.6deg,#ffffff00 4.6deg 9deg);
 -webkit-mask:radial-gradient(circle at var(--x) var(--y),transparent 0 22%,#000 48%);mask:radial-gradient(circle at var(--x) var(--y),transparent 0 22%,#000 48%)}
/* 効果文字：太い縁取りの紙芝居の文字 */
.fx-word{position:absolute;left:50%;top:22%;z-index:10;pointer-events:none;opacity:0;white-space:nowrap;font-weight:900;font-size:calc(22px + var(--p,1)*8px);line-height:1;letter-spacing:.02em;
 color:#fff3c4;-webkit-text-stroke:2px #3a1f00;paint-order:stroke fill;text-shadow:0 3px 0 #3a1f00,0 0 14px #ff9b3d}
.fx-word-guard{color:#e3f4ff;-webkit-text-stroke-color:#0b2a44;text-shadow:0 3px 0 #0b2a44,0 0 14px #7cc8ff}
/* 動いている仲間が灰色にくすまない（操作中のボタンの無効表示を外す） */
.stage-composed .field-actor:disabled{filter:none}
body[data-reduced=true] :is(.fx-bit,.fx-speedlines,.fx-word){display:none}
/* 属性の「ため」は仲間の後ろに（絵を薄く覆わない） */
.stage-composed .battle-fx.battle-fx-behind{z-index:0;opacity:.85}

/* ===== 戦闘画面の見直し（2026-10-17 テル「戦闘画面も見直して」）===== */
/* 上：相手の札と予告を、細い1本の帯に（舞台を広く見せる） */
body[data-theme=navy] #app .stage-composed .battle-opponent{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:center;padding:6px 8px;background:linear-gradient(#0b1f2ae6,#0b1f2a99);border-radius:12px}
body[data-theme=navy] #app .stage-composed .enemy-hud{background:none;padding:0;min-width:120px}
body[data-theme=navy] #app .stage-composed .enemy-hud strong{font-size:16px;line-height:1.3}
body[data-theme=navy] #app .stage-composed .enemy-hud .hptext{font-size:13px;line-height:1.3}
body[data-theme=navy] #app .stage-composed .battle-forecast{background:none;padding:0;position:relative;min-height:40px}
body[data-theme=navy] #app .stage-composed .battle-forecast .intent{display:grid;grid-template-columns:24px 1fr;column-gap:6px;align-items:center;padding:0}
body[data-theme=navy] #app .stage-composed .battle-forecast .intent-art{grid-row:1/3;width:24px;height:24px}
body[data-theme=navy] #app .stage-composed .battle-forecast .intent strong{font-size:16px;line-height:1.3}
body[data-theme=navy] #app .stage-composed .battle-forecast .intent span{font-size:13px;line-height:1.3}
/* 「選択中」の札は出さない（足元の輪と下の札の金の枠で分かる） */
body[data-theme=navy] #app .field-actor .role{display:none!important}
/* 操作盤：見出しの段を1行に（ゲージの丸と選んだ仲間） */
body[data-theme=navy] #app .command-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 4px}
body[data-theme=navy] #app .ap-strip{display:flex;align-items:center;gap:8px;border:0;padding:0}
body[data-theme=navy] #app .ap-strip b{font-size:13px;color:var(--gold)}
body[data-theme=navy] #app .ap-strip span{font-size:16px;letter-spacing:2px;color:var(--gold)}
body[data-theme=navy] #app .selected-name{display:flex;align-items:center;gap:6px}
body[data-theme=navy] #app .selected-name strong{font-size:16px}
body[data-theme=navy] #app .selected-name button{min-height:32px;height:32px;padding:0 10px;font-size:13px}
/* 技は2×2の横長ボタン（絵・名前・説明を1行ずつ。名前が折れない） */
body[data-theme=navy] #app .combat-actions{grid-template-columns:1fr 1fr!important;gap:8px}
body[data-theme=navy] #app .combat-actions button{display:grid!important;grid-template-columns:28px 1fr;grid-template-rows:auto auto;column-gap:8px;row-gap:0;align-items:center;justify-items:start;text-align:left;min-height:56px;padding:6px 10px}
body[data-theme=navy] #app .combat-actions button>.ui-icon{grid-row:1/3;width:28px;height:28px;margin:0}
body[data-theme=navy] #app .combat-actions button>strong{font-size:16px;line-height:1.25;-webkit-line-clamp:1;white-space:nowrap}
body[data-theme=navy] #app .combat-actions button>span:last-child{font-size:13px;line-height:1.3;-webkit-line-clamp:1;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
/* 下の補足（相手の次の技を見よう・いまの効果・ログ）は小さく畳む */
body[data-theme=navy] #app .battle-note{display:none}
body[data-theme=navy] #app :is(.battle-status-details,.combat-help){padding:8px 12px;margin-top:8px}
body[data-theme=navy] #app :is(.battle-status-details,.combat-help)>summary{font-size:13px;line-height:1.5;min-height:0}
body[data-theme=navy] #app .combat-actions button>strong{white-space:normal;-webkit-line-clamp:2;font-size:15px;line-height:1.2;letter-spacing:-.02em}
body[data-theme=navy] #app .combat-actions button>strong{font-size:16px}
body[data-theme=navy] #app .ap-strip{flex-direction:row!important;flex-wrap:nowrap}
body[data-theme=navy] #app .ap-strip b{white-space:nowrap}
body[data-theme=navy] #app .ap-strip span{font-size:13px;letter-spacing:1px;white-space:nowrap}
body[data-theme=navy] #app :is(.battle-status-details,.combat-help){min-height:0}
body[data-theme=navy] #app :is(.battle-status-details,.combat-help):not([open])>:not(summary){display:none}
body[data-theme=navy] #app :is(.battle-status-details,.combat-help)>summary{padding:4px 0;min-height:0!important;height:auto}
/* 技ボタンの高さをそろえ、名前が2行でも説明が切れないように */
body[data-theme=navy] #app .combat-actions button{min-height:64px;align-content:center}
body[data-theme=navy] #app .combat-actions button>span:last-child{white-space:normal;-webkit-line-clamp:2}
/* 操作の手がかりの1行（ゆっくり技を選ぼう 等）は小さく控えめに */
body[data-theme=navy] #app .combat-panel .action-reason{color:var(--ink-3)}
/* 全画面の見た目の検査で拾った、4段（24・18・16・13）の外 */
body[data-theme=navy] .bottom-nav .nav-count{font-size:13px}
body[data-theme=navy] .world-map-frame .map-point b{font-size:16px!important}
body[data-theme=navy] #app .stat-grid span{font-size:13px}
body[data-theme=navy] #app .stat-grid strong{font-size:24px}
body[data-theme=navy] #app :is(.record-grid,.activity-list,.activity-card) strong{font-size:24px}
body[data-theme=navy] #app .center strong,body[data-theme=navy] #app .notice strong{font-size:16px}
body[data-theme=navy] #app .shard-list :is(span,strong){font-size:16px}
body[data-theme=navy] #app .shard-list small{font-size:13px}
body[data-theme=navy] #app .draw-roster span{font-size:13px}
body[data-theme=navy] #app .draw-result .draw-obtained strong,body[data-theme=navy] #app .codex-progress strong{font-size:18px}
body[data-theme=navy] #app .preparation-links button,body[data-theme=navy] #app .quest-icon,body[data-theme=navy] #app .cry-button{font-size:16px}
body[data-theme=navy] #app .story-heading span{font-size:13px}
/* 戦闘：必殺ボタンの「必殺まで あと6」が切れない／自動の説明は畳む */
body[data-theme=navy] #app .combat-specials .special-button small,body[data-theme=navy] #app .combat-specials .blocked-reason{white-space:normal;overflow:visible;text-overflow:clip;font-size:13px}
body[data-theme=navy] #app p.auto-status[data-auto-status=off]{display:none}
body[data-theme=navy] #app .chapter-bands>button span,body[data-theme=navy] #app .chapter-bands>button span *{font-size:18px}
body[data-theme=navy] #app .chapter-bands>button strong{font-size:16px}
body[data-theme=navy] #app .chapter-bands>button small{font-size:13px}
body[data-theme=navy] #app .multi-lineup strong,body[data-theme=navy] #app .multi-target-summary{font-size:16px}
body[data-theme=navy] #app .multi-lineup span,body[data-theme=navy] #app .multi-queue li{font-size:13px}
body[data-theme=navy] #app .help-forecast[data-help-zero]{display:none}

/* ===== 戦闘画面の集中改修（2026-10-17 battle-hud.js）===== */
/* 体力バー：残りで色が変わる・減った分の白い残像 */
body[data-theme=navy] .meter{position:relative;overflow:hidden}
body[data-theme=navy] .meter>i{position:relative;z-index:1;transition:background .3s}
body[data-theme=navy] .meter[data-level=high]>i{background:linear-gradient(90deg,#4fd67a,#9bf0a8)}
body[data-theme=navy] .meter[data-level=mid]>i{background:linear-gradient(90deg,#f0c23a,#ffe38a)}
body[data-theme=navy] .meter[data-level=low]>i{background:linear-gradient(90deg,#ff5a4a,#ff9b8a)}
.meter-ghost{position:absolute;left:0;top:0;bottom:0;z-index:0;background:#fff7e0;border-radius:inherit;display:block}
/* ターンの合図：舞台の中央に短い帯 */
.turn-band{position:absolute;left:50%;top:44%;z-index:11;pointer-events:none;width:110%;padding:8px 0 10px;text-align:center;opacity:0;
 background:linear-gradient(90deg,transparent,#0b1f2ae6 18%,#0b1f2ae6 82%,transparent);border-top:2px solid #ffd666aa;border-bottom:2px solid #ffd666aa}
.turn-band b{display:block;font-size:24px;font-weight:900;letter-spacing:.12em;color:#fff3c4;text-shadow:0 0 12px #ffd66688}
.turn-band span{display:block;font-size:13px;color:var(--gold);letter-spacing:.08em}
.turn-band.turn-enemy{border-color:#ff7a6a99}.turn-band.turn-enemy b{color:#ffd0c8;text-shadow:0 0 12px #ff5a4a88}
/* 相手の頭上の印（次の技）と、狙われている仲間の足元の赤い輪 */
.intent-mark{position:absolute;left:50%;top:-14px;transform:translateX(-50%);z-index:6;pointer-events:none;min-width:28px;height:28px;padding:0 6px;border-radius:999px;display:grid;place-items:center;
 font-size:13px;font-weight:900;color:#fff;background:radial-gradient(circle at 40% 35%,#ff8a7a,#c8321f);border:2px solid #ffe0d8;box-shadow:0 0 12px #ff5a4a99;animation:intent-bob 1.4s ease-in-out infinite}
.intent-mark.intent-sweep{background:radial-gradient(circle at 40% 35%,#ffb27a,#c8621f)}
.intent-mark.intent-heavy{background:radial-gradient(circle at 40% 35%,#ff6a8a,#9a1f3a);min-width:32px;height:32px;font-size:16px}
@keyframes intent-bob{50%{transform:translate(-50%,-4px)}}
.aim-ring{position:absolute;left:50%;bottom:2%;width:62%;height:16%;transform:translateX(-50%);border-radius:50%;pointer-events:none;z-index:0;
 border:2px dashed #ff6a5acc;box-shadow:0 0 10px #ff5a4a66;animation:aim-spin 3s linear infinite}
@keyframes aim-spin{to{transform:translateX(-50%) rotate(360deg)}}
/* 待機中は、ゆっくり呼吸（仲間と相手で少しずらす） */
.stage-composed:not(.is-performing) .field-actor .unit-body,.stage-composed:not(.is-performing) .enemy-figure .unit-body{animation:idle-breathe 2.8s ease-in-out infinite;transform-origin:50% 100%}
.stage-composed .field-actor:nth-child(2) .unit-body{animation-delay:-.9s}.stage-composed .field-actor:nth-child(3) .unit-body{animation-delay:-1.7s}
.stage-composed .enemy-figure .unit-body{animation-delay:-.4s;animation-duration:2.4s}
@keyframes idle-breathe{50%{scale:1.012 .985}}
/* 舞台の縁を少し暗く（中央の生き物に目が行く） */
.stage-composed .stage-space::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:3;background:radial-gradient(ellipse at 50% 55%,transparent 55%,#0b1f2a66 100%)}
/* 選んでいる仲間の足元の輪は金色に光る */
.stage-composed .field-actor.selected-actor .unit-shadow{box-shadow:0 0 0 2px #ffd666cc,0 0 14px #ffd66699}
body[data-reduced=true] :is(.intent-mark,.aim-ring,.unit-body){animation:none!important}

/* ===== 戦闘画面：文字を減らす（2026-10-17 回答 B＝全て）===== */
/* 技ボタン：名前＋消費の●。説明は長押しの吹き出しへ */
body[data-theme=navy] #app .combat-actions button>.tech-sub{display:none!important}
body[data-theme=navy] #app .combat-actions button>.tech-name{display:block!important;font-size:16px;font-weight:700;line-height:1.25;padding-right:34px}
body[data-theme=navy] #app .combat-actions button{position:relative;grid-template-rows:auto!important;min-height:56px}
body[data-theme=navy] #app .combat-actions button>.ui-icon{grid-row:1!important}
.cost-pips{position:absolute;right:10px;top:50%;transform:translateY(-50%);display:flex;gap:4px;align-items:center}
.cost-pips i{width:9px;height:9px;border-radius:50%;background:#ffd666;box-shadow:0 0 6px #ffd66688}
.cost-pips em{font-style:normal;font-size:13px;color:var(--ink-3)}
body[data-theme=navy] #app .combat-actions button.is-effective{border-color:#ffd666;box-shadow:inset 0 0 0 1px #ffd66688,0 0 12px #ffd66633}
body[data-theme=navy] #app .combat-actions button.is-effective::before{content:'';position:absolute;left:-4px;top:-4px;width:16px;height:16px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff6c8,#f0b93a);box-shadow:0 0 8px #ffd666}
.tech-tip{position:absolute;z-index:70;max-width:260px;padding:8px 12px;border-radius:12px;background:#0b1f2af5;border:1.5px solid #ffd666aa;box-shadow:0 8px 24px #000a;color:var(--ink);pointer-events:none}
.tech-tip b{display:block;font-size:16px;color:var(--gold)}.tech-tip span{display:block;font-size:13px;line-height:1.5}
/* 仲間の札：名前＋バー＋数字 */
body[data-theme=navy] #app .battle-team .team-status{position:relative}
body[data-theme=navy] #app .battle-team .team-status>.hptext{display:none}
body[data-theme=navy] #app .battle-team .team-status>.hp-num{display:block;grid-column:1/-1;justify-self:end;font-size:16px;font-weight:800;color:var(--ink);line-height:1.2;margin-top:2px}
/* 技ゲージは●だけ */
body[data-theme=navy] #app .ap-strip b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
body[data-theme=navy] #app .ap-strip span{font-size:18px;letter-spacing:2px}
/* 読まなくてよい説明は出さない。ログはボタンで開いたときだけ */
body[data-theme=navy] #app :is(.combat-panel .action-reason,.battle-note,.battle-status-details){display:none!important}
body[data-theme=navy] #app .combat-help:not([open]){display:none}
/* 予告は「次：攻撃12」だけ（狙う相手は足元の赤い輪） */
body[data-theme=navy] #app .stage-composed .battle-forecast .intent span{display:none}

/* ===== グラフィックの向上（2026-10-17 回答 A：今の絵のまま、見せ方で上げる）===== */
/* ①光：左上から差す日の光（やわらかい光の筋）と、舞台全体の色の調子 */
.stage-composed .stage-space{filter:saturate(1.08) contrast(1.04)}
.stage-composed .stage-space>.stage-light{position:absolute;inset:0;pointer-events:none;z-index:2;mix-blend-mode:soft-light;
 background:radial-gradient(ellipse 70% 55% at 18% 0%,#fff6d6cc,transparent 70%),linear-gradient(115deg,transparent 30%,#fff3c41f 42%,transparent 50%,#fff3c414 58%,transparent 66%)}
.stage-composed[data-place=water] .stage-space>.stage-light{background:radial-gradient(ellipse 70% 55% at 80% 0%,#d8f2ffcc,transparent 70%),linear-gradient(115deg,transparent 35%,#c8ecff22 45%,transparent 55%)}
.stage-composed[data-place=rock] .stage-space>.stage-light{background:radial-gradient(ellipse 70% 55% at 20% 0%,#ffe2b8cc,transparent 70%),linear-gradient(180deg,transparent 60%,#3a201033)}
/* ②奥行き：遠く（上の方）を少しかすませ、空気の層を作る */
.stage-composed .stage-space>.stage-haze{position:absolute;left:0;right:0;top:0;height:46%;pointer-events:none;z-index:1;
 background:linear-gradient(#eaf4ff55,#eaf4ff22 55%,transparent);backdrop-filter:blur(1.2px);-webkit-mask:linear-gradient(#000 40%,transparent);mask:linear-gradient(#000 40%,transparent)}
/* ③接地の影：足元にくっきりした芯の影＋広いやわらかい影の2重 */
.stage-composed .unit-shadow{opacity:.55;filter:blur(1.5px);background:radial-gradient(ellipse,#0f1f12cc 0%,#1a2e1a88 30%,#2a472b33 58%,transparent 72%)}
.stage-composed .unit-shadow::before{content:'';position:absolute;left:22%;right:22%;top:30%;bottom:20%;border-radius:50%;background:#0b1508aa;filter:blur(2px)}
.stage-composed [data-locomotion=fly] .unit-shadow::before,.stage-composed [data-locomotion=swim] .unit-shadow::before{opacity:.35}
/* ④生き物の輪郭に、光の当たる側の縁取り（左上）と、背景から浮かせる薄い影 */
.stage-composed .unit-sprite{filter:drop-shadow(-1px -1px 0 #fff6d466) drop-shadow(0 6px 6px #0b1f1255)!important}
.stage-composed .enemy-figure .unit-sprite{filter:drop-shadow(-1px -1px 0 #fff6d455) drop-shadow(0 6px 8px #0b1f1266) saturate(1.04)!important}
/* ⑤当たりの瞬間、舞台が一瞬明るくなる（battle-fx の当たりと同時） */
.stage-composed.is-performing[data-motion-phase=接触] .stage-space{animation:stage-flash .22s ease-out}
@keyframes stage-flash{0%{filter:saturate(1.08) contrast(1.04) brightness(1.35)}100%{filter:saturate(1.08) contrast(1.04) brightness(1)}}
/* ⑥舞台の枠：内側に細い光の線と、角の金具のような金の点 */
body[data-theme=navy] #app .arena.stage-composed{box-shadow:inset 0 0 0 1px #fff3c444,0 0 0 2px #ffd666aa,0 10px 30px #000a}
body[data-reduced=true] .stage-composed.is-performing .stage-space{animation:none}

/* ===== 戦闘後の画面（2026-10-17 情報量・表記・レイアウト）===== */
/* 段の札（1 戦闘終了 2 ご褒美 3 冒険の続き）と、後で読む説明はしまう */
body[data-theme=navy] #app .result-panel .result-steps{display:none}
body[data-theme=navy] #app .result-panel>p.small,body[data-theme=navy] #app .result-panel .exp-reward>p{display:none}
/* 山場：王冠の下に主人公と相棒、見出し、ご褒美の札を1かたまりに */
body[data-theme=navy] #app .result-panel .victory-crown{width:58%;max-width:240px;margin:0 auto -10px}
body[data-theme=navy] #app .result-panel .result-cast{margin-top:-6px}
body[data-theme=navy] #app .result-panel h2{font-size:24px;margin:4px 0 0}
body[data-theme=navy] #app .result-panel h2+p{font-size:13px;color:var(--ink-3);margin:0 0 10px}
body[data-theme=navy] #app .result-panel .reward-chips{gap:8px;margin-bottom:12px}
/* 受け取る前は「ご褒美を受け取る」を王冠のすぐ下に（経験の札より上） */
body[data-theme=navy] #app .result-panel>.mt:last-child{order:5}
body[data-theme=navy] #app .result-panel .exp-reward{order:6}
body[data-theme=navy] #app .result-panel>.mt:last-child>p.mt{display:none}
/* 経験：3体を横1列の小さな札に（顔・名前・Lv・細いゲージ）。上がった仲間は金の縁 */
body[data-theme=navy] #app .result-panel .exp-reward{padding:10px;border-radius:16px;margin-top:12px}
body[data-theme=navy] #app .result-panel .exp-reward h3{font-size:13px;color:var(--gold);margin:0 0 8px;text-align:left}
body[data-theme=navy] #app .exp-reward-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body[data-theme=navy] #app .exp-reward-grid article{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 6px;border-radius:12px;background:#0b1f2a;border:1px solid #ffffff1a;text-align:center;min-width:0}
body[data-theme=navy] #app .exp-reward-grid article.leveled{border-color:#ffd666aa;box-shadow:0 0 12px #ffd66633}
body[data-theme=navy] #app .exp-reward-grid .exp-face{width:48px;height:48px;border-radius:50%;border:2px solid #ffd66699;margin:0}
body[data-theme=navy] #app .exp-reward-grid strong{font-size:13px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
body[data-theme=navy] #app .exp-reward-grid .exp-gain{display:none}
body[data-theme=navy] #app .exp-reward-grid .exp-level{font-size:16px;font-weight:800}
body[data-theme=navy] #app .exp-reward-grid .exp-level em{font-style:normal;color:var(--gold)}
body[data-theme=navy] #app .exp-reward-grid small{font-size:13px;color:var(--ink-3);white-space:nowrap}
body[data-theme=navy] #app .exp-reward-grid button{display:none}
body[data-theme=navy] #app .exp-reward-grid .exp-bar{margin:4px 0 2px;width:100%}
body[data-theme=navy] #app .exp-reward-grid .exp-bar.levelup::after{top:-26px;right:50%;transform:translateX(50%);font-size:13px;padding:0 8px}
/* 受け取った後：次の行き先を大きく1つ、ほかは小さな絵ボタン1列。寄り道（工房など）は小さく */
body[data-theme=navy] #app .result-panel .badge{margin:4px auto}
body[data-theme=navy] #app .result-continuation h3,body[data-theme=navy] #app .result-continuation>p{font-size:13px}
body[data-theme=navy] #app .result-continuation .primary{width:100%;min-height:56px;font-size:18px}
body[data-theme=navy] #app .result-continuation>.row>button{font-size:13px;white-space:nowrap}
body[data-theme=navy] #app .result-links{gap:6px}
body[data-theme=navy] #app .result-links button{min-height:36px;font-size:13px;padding:0 10px}
body[data-theme=navy] #app .result-panel>.mt p.mt{display:none}
body[data-theme=navy] #app .result-panel>.mt:last-child,body[data-theme=navy] #app .result-panel .exp-reward{order:0}
body[data-theme=navy] #app .result-panel:has(.claim-reward)>.mt:last-child{order:5}
body[data-theme=navy] #app .result-panel:has(.claim-reward) .exp-reward{order:6}
body[data-theme=navy] #app .exp-reward-grid article{position:relative}
body[data-theme=navy] #app .exp-reward-grid .exp-bar{flex:none!important;height:6px!important;width:100%;grid-column:auto}
body[data-theme=navy] #app .exp-reward-grid .exp-bar.levelup::after{top:-62px;right:-4px;left:auto;transform:none;letter-spacing:.04em;padding:0 6px;font-size:13px;line-height:1.5;content:'UP!'}
body[data-theme=navy] #app .result-panel>p.mt{display:none}

/* ===== 戦闘の見せ方をもう一段（2026-10-17「もっと頑張れないかな」）===== */
/* 光の筋：ゆっくり動く斜めの光（光源は左上） */
.stage-composed .stage-space>.stage-rays{position:absolute;inset:-20% -10% 0 -10%;pointer-events:none;z-index:2;mix-blend-mode:screen;opacity:.55;
 background:repeating-linear-gradient(112deg,transparent 0 46px,#fff7d222 52px,#fff7d244 60px,transparent 72px 120px);
 -webkit-mask:radial-gradient(ellipse 80% 70% at 15% 0%,#000 20%,transparent 75%);mask:radial-gradient(ellipse 80% 70% at 15% 0%,#000 20%,transparent 75%);animation:rays-drift 14s ease-in-out infinite alternate}
@keyframes rays-drift{to{transform:translateX(26px)}}
/* 漂う粒：光の中をゆっくり浮かぶ花粉・水の粒 */
.stage-composed .stage-space>.stage-motes{position:absolute;inset:0;pointer-events:none;z-index:4}
.stage-motes i{position:absolute;width:4px;height:4px;border-radius:50%;background:#fff6c8;box-shadow:0 0 6px 2px #fff1a888;opacity:0;animation:mote 9s linear infinite}
.stage-composed[data-place=water] .stage-motes i{background:#e6f8ff;box-shadow:0 0 6px 2px #a8e4ff88}
@keyframes mote{0%{opacity:0;transform:translate(0,0)}15%{opacity:.9}85%{opacity:.7}100%{opacity:0;transform:translate(30px,-90px)}}
/* 色の調子を一段深く：手前を少し暗く、中央を明るく（スポットライト） */
.stage-composed .stage-space{filter:saturate(1.15) contrast(1.08)!important}
.stage-composed .stage-space::after{background:radial-gradient(ellipse 75% 65% at 45% 58%,transparent 50%,#0b1f2a88 100%)!important}
/* 地面の照り返し：生き物の足元に、光の色のぼんやりした反射 */
.stage-composed .field-actor .unit-shadow::after,.stage-composed .enemy-figure .unit-shadow::after{content:'';position:absolute;left:10%;right:10%;top:-30%;height:60%;border-radius:50%;background:radial-gradient(ellipse,#fff3c433,transparent 70%);mix-blend-mode:screen}
/* 相手の存在感：相手の後ろにうっすら赤みの気配 */
.stage-composed .enemy-figure::before{content:'';position:absolute;inset:-10% -15% 5%;border-radius:50%;background:radial-gradient(ellipse,#ff6a4a22,transparent 65%);pointer-events:none}
body[data-reduced=true] :is(.stage-rays,.stage-motes i){animation:none!important}
body[data-reduced=true] .stage-motes{display:none}
/* 調整：光と空気は背景だけに当て、生き物と印はくっきり残す */
.stage-composed .stage-space>:is(.stage-haze,.stage-rays,.stage-light){z-index:0}
.stage-composed .stage-actors{z-index:3}
.stage-composed .stage-space>.stage-haze{backdrop-filter:blur(1.6px);background:linear-gradient(#e6f2ff33,#e6f2ff11 60%,transparent)}
.stage-composed .stage-space>.stage-rays{opacity:.45}

/* ===== 戦闘前・戦闘の終わり・結果（2026-10-17 回答 B）===== */
body[data-theme=navy] #app .matchup{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:8px 12px;border-radius:12px;font-size:13px;line-height:1.5;background:#102c3b;border:1px solid #ffffff22}
body[data-theme=navy] #app .matchup b{flex:none;font-size:16px;padding:2px 10px;border-radius:999px;background:#5b6b74;color:#fff}
body[data-theme=navy] #app .matchup>span{flex:1;min-width:0;word-break:keep-all;overflow-wrap:anywhere}body[data-theme=navy] #app .matchup .nowrap{white-space:nowrap}
body[data-theme=navy] #app .matchup.good{border-color:#ffd66688}
body[data-theme=navy] #app .matchup.good b{background:linear-gradient(#ffe38a,#f0b93a);color:#2b2000}
/* 勝利の帯 */
.victory-band{position:absolute;left:50%;top:40%;z-index:12;pointer-events:none;width:120%;padding:10px 0 12px;text-align:center;opacity:0;
 background:linear-gradient(90deg,transparent,#2b1d00e6 15%,#3a2700 32%,#3a2700 68%,#2b1d00e6 85%,transparent);border-top:2px solid #ffd666;border-bottom:2px solid #ffd666;box-shadow:0 0 30px #ffd66666}/* 帯の中央は不透明：倒れた相手の ✕ が「勝利！」の字に透けていた（2026-10-18） */
.victory-band b{display:block;font-size:24px;font-weight:900;color:#fff3c4;letter-spacing:.18em;text-shadow:0 0 16px #ffd666,0 2px 0 #7a5a10}
.victory-band span{display:block;font-size:13px;color:var(--gold)}
.victory-flash{position:absolute;inset:0;z-index:11;pointer-events:none;background:radial-gradient(circle at 50% 45%,#fff8dd,#ffd66655 45%,transparent 75%);mix-blend-mode:screen}
.victory-glow{position:absolute;left:50%;bottom:0;width:90%;aspect-ratio:1;z-index:-1;pointer-events:none;border-radius:50%;background:radial-gradient(circle,#fff3c4aa,#ffd66633 45%,transparent 70%);opacity:0}
/* 結果の画面：上から順に出てくる（王冠 → 主人公と相棒 → 見出し → ご褒美 → ボタン → 経験） */
body[data-view=result] #app .result-panel>*{animation:res-in .42s cubic-bezier(.2,.8,.2,1) both}
body[data-view=result] #app .result-panel>.victory-crown{animation:res-crown .6s cubic-bezier(.2,.8,.2,1) both}
body[data-view=result] #app .result-panel>.result-cast{animation-delay:.25s}
body[data-view=result] #app .result-panel>h2{animation-delay:.45s}
body[data-view=result] #app .result-panel>h2+p{animation-delay:.55s}
body[data-view=result] #app .result-panel>.reward-chips{animation-delay:.7s}
body[data-view=result] #app .result-panel>.mt{animation-delay:.9s}
body[data-view=result] #app .result-panel>.exp-reward{animation-delay:1.05s}
@keyframes res-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes res-crown{0%{opacity:0;transform:translateY(-30px) scale(.7)}70%{opacity:1;transform:translateY(4px) scale(1.04)}100%{transform:none}}
body[data-reduced=true][data-view=result] #app .result-panel>*{animation:none}
/* 負けたとき：0個のご褒美と、空の経験の箱は出さない */
body[data-theme=navy] #app .result-panel .exp-reward:not(:has(.exp-reward-grid)){display:none}

/* ===== 戦闘の前の3場面（2026-10-17 回答 D）===== */
.battle-intro{position:fixed;inset:0;z-index:56;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;
 background:radial-gradient(ellipse at 50% 40%,#2b3f6a 0,#0b1f2a 70%);cursor:pointer}
.battle-intro.intro-enemy{background:radial-gradient(ellipse at 50% 40%,#5a2a2a 0,#1a0f14 72%)}
.intro-foe img{height:min(42vh,320px);width:auto;filter:drop-shadow(0 12px 24px #000c);animation:intro-foe .9s cubic-bezier(.2,.8,.2,1) both}
@keyframes intro-foe{from{transform:translateX(40%) scale(.85);opacity:0}to{transform:none;opacity:1}}
.intro-line{margin:0;padding:10px 18px;border-radius:14px;background:#0b1f2ae6;border:1.5px solid #ffd666aa;color:#fff3c4;font-size:18px;font-weight:700;text-align:center}
.intro-line b{color:var(--gold)}
.intro-team{display:flex;gap:6px;align-items:flex-end;justify-content:center;width:100%}
.intro-team figure{margin:0;flex:1;max-width:140px;text-align:center;animation:intro-ally .6s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i)*.15s)}
.intro-team img{width:100%;height:auto;max-height:28vh;object-fit:contain;filter:drop-shadow(0 8px 14px #000c)}
.intro-team figcaption{font-size:13px;color:var(--gold);font-weight:700}
@keyframes intro-ally{from{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
.intro-skip{position:absolute;right:16px;bottom:max(16px,env(safe-area-inset-bottom));font-size:13px;color:#fff;background:#ffffff22;border-radius:999px;padding:4px 10px}

/* ===== 勝った後の3枚（2026-10-17 回答 B＝A）：勝利ポーズ → 経験 → ご褒美 ===== */
body[data-theme=navy] #app .result-panel[data-page]:not([data-page=all])>*{display:none}
/* 1枚目：勝利ポーズ（王冠・主人公と相棒を大きく・「〜との勝負に勝った！」）＋次へ（＝受け取る） */
body[data-theme=navy] #app .result-panel[data-page=pose]>:is(.victory-crown,.result-cast,.result-vs,h2,.mt){display:revert}
body[data-theme=navy] #app .result-panel[data-page=pose]>.result-cast{display:flex;transform:scale(1.15);margin:10px 0 24px}
body[data-theme=navy] #app .result-panel[data-page=pose] .result-vs{margin:0;padding:10px 16px;border-radius:14px;background:#0b1f2ae6;border:1.5px solid #ffd666aa;font-size:18px;font-weight:700;color:#fff3c4}
body[data-theme=navy] #app .result-panel[data-page=pose]>h2{display:none}
body[data-theme=navy] #app .result-panel[data-page=pose] .claim-reward{font-size:0!important;min-height:56px;margin-top:16px}
body[data-theme=navy] #app .result-panel[data-page=pose] .claim-reward::after{content:'次へ ▶';font-size:18px;font-weight:800}
/* 2枚目：経験（3体を大きく） */
body[data-theme=navy] #app .result-panel[data-page=exp]>:is(.exp-reward,.result-next-page,h2){display:revert}
body[data-theme=navy] #app .result-panel[data-page=exp]>h2{display:block;font-size:18px;margin:0 0 8px}
body[data-theme=navy] #app .result-panel[data-page=exp] .exp-reward{display:block;margin-top:4px}
body[data-theme=navy] #app .result-panel[data-page=exp] .exp-reward-grid .exp-face{width:84px;height:84px}
body[data-theme=navy] #app .result-panel[data-page=exp] .exp-reward-grid article{padding:12px 6px 10px}
body[data-theme=navy] #app .result-panel[data-page=exp] .exp-reward-grid strong{font-size:16px}
body[data-theme=navy] #app .result-panel[data-page=exp] .exp-reward-grid .exp-level{font-size:18px}
body[data-theme=navy] #app .result-panel[data-page=exp] .exp-reward-grid .exp-bar{height:10px!important}
body[data-theme=navy] #app .result-next-page{width:100%;min-height:56px;font-size:18px;margin-top:16px}
/* 3枚目：ご褒美と次の行き先 */
body[data-theme=navy] #app .result-panel[data-page=rewards]>:is(.reward-chips,.mt,.badge,.result-continuation){display:revert}
body[data-theme=navy] #app .result-panel[data-page=rewards]>.reward-chips{display:flex;justify-content:center;margin:8px 0 12px}
body[data-theme=navy] #app .result-panel[data-page=rewards]::before{content:'ご褒美';display:block;font-size:18px;font-weight:800;color:var(--gold);margin-bottom:6px}
html:has(body[data-view=result]),body[data-theme=navy][data-view=result]{background:#0b1f2a!important}
body[data-theme=navy][data-view=result]::before,body[data-theme=navy][data-view=result]::after{display:none}
body[data-theme=navy] #app .result-panel[data-page=pose]>p.mt,body[data-theme=navy] #app .result-panel[data-page=pose]>h2{display:none!important}
body[data-theme=navy] #app .result-panel[data-page=exp] .exp-reward-grid .exp-gain{display:block;font-size:13px;color:var(--gold);font-weight:700}
/* 経験の札の「次のLvまであと◯」は折り返す（390幅で3枚の文字が横につながっていた：2026-10-18） */
body[data-theme=navy] #app .result-panel[data-page=exp] .exp-reward-grid small{white-space:normal;word-break:keep-all;overflow-wrap:normal;line-height:1.35;max-width:100%}

/* ===== 戦闘中の画面（2026-10-17 回答 C＝A：ポケマスの構成に寄せる）===== */
/* 舞台を広く：操作盤を小さくした分を舞台へ */
@media(max-width:760px){body[data-theme=navy][data-view=battle] #app .arena.stage-composed{height:min(56svh,470px)}}
/* 体力バーは各キャラの真下 */
.field-hp{position:absolute;left:18%;right:18%;bottom:-6px;height:7px;border-radius:999px;background:#0b1f2acc;border:1px solid #ffffff55;overflow:hidden;z-index:6;pointer-events:none}
.field-hp i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4fd67a,#9bf0a8);transition:width .6s cubic-bezier(.3,0,.2,1)}
.field-hp[data-level=mid] i{background:linear-gradient(90deg,#f0c23a,#ffe38a)}.field-hp[data-level=low] i{background:linear-gradient(90deg,#ff5a4a,#ff9b8a)}
.enemy-figure>.field-hp{left:12%;right:12%;bottom:-10px;height:8px}
/* 上の相手の札は名前と予告だけ（体力は舞台の上） */
body[data-theme=navy] #app .stage-composed .enemy-hud .meter,body[data-theme=navy] #app .stage-composed .enemy-hud .hptext{display:none}
/* 下の札：仲間は顔だけの3つ。選んだ仲間は大きく金の輪と名前 */
body[data-theme=navy] #app .battle-team{display:grid!important;grid-template-columns:1fr 1fr 1fr;gap:6px;align-items:end;min-height:0;padding:0}
body[data-theme=navy] #app .battle-team .team-status{display:flex!important;flex-direction:column;align-items:center;gap:2px;padding:4px;min-height:0;background:none!important;border:0!important;box-shadow:none!important}
body[data-theme=navy] #app .battle-team .team-status>:not(.team-face):not(strong){display:none!important}
body[data-theme=navy] #app .battle-team .team-status .team-face{width:40px;height:40px;border:2px solid #ffffff44;opacity:.8}
body[data-theme=navy] #app .battle-team .team-status strong{font-size:13px;color:var(--ink-3);padding:0}
body[data-theme=navy] #app .battle-team .team-status[aria-pressed=true] .team-face{width:56px;height:56px;border:3px solid var(--gold);opacity:1;box-shadow:0 0 14px #ffd66688}
body[data-theme=navy] #app .battle-team .team-status[aria-pressed=true] strong{color:var(--gold);font-size:16px}
body[data-theme=navy] #app .command-heading .selected-name{display:none}
/* ゲージは一番下に横いっぱい（6つの区切り） */
body[data-theme=navy] #app .combat-panel{display:flex;flex-direction:column}
body[data-theme=navy] #app .combat-panel>.command-heading{order:9;margin:8px 0 0}
body[data-theme=navy] #app .ap-strip{width:100%}
body[data-theme=navy] #app .ap-strip span{flex:1;display:grid;grid-template-columns:repeat(6,1fr);gap:4px;font-size:0;letter-spacing:0}
body[data-theme=navy] #app .ap-strip span::before{content:none}
.ap-seg{height:12px;border-radius:4px;background:#ffffff1a;border:1px solid #ffffff33}
.ap-seg.on{background:linear-gradient(#9fe8ff,#3fb6e8);border-color:#cff3ff;box-shadow:0 0 8px #3fb6e888}
/* 技は2×2を少し低く。必殺とターン終了は1行に */
body[data-theme=navy] #app .combat-actions button{min-height:50px!important}
body[data-theme=navy] #app .combat-specials{margin-top:6px}
body[data-theme=navy] #app .combat-specials .special-button{min-height:46px}
body[data-theme=navy] #app .combat-end{margin-top:6px}
body[data-theme=navy] #app .combat-end button{min-height:44px}
body[data-theme=navy] #app .battle-team{height:auto!important;min-height:86px!important;margin-bottom:6px;overflow:visible}
body[data-theme=navy] #app .battle-team .team-status{position:relative!important;height:auto!important}
body[data-theme=navy] #app .battle-team .team-status .team-face{position:static!important;transform:none!important;margin:0!important}
body[data-theme=navy] #app .battle-team .team-status strong{position:static!important;white-space:nowrap}
@media(max-width:760px){body[data-theme=navy][data-view=battle] #app .arena.stage-composed{height:min(48svh,410px);--opponent-height:48px!important}}
body[data-theme=navy] #app .stage-composed .battle-opponent{height:var(--opponent-height)!important;padding:4px 8px}
body[data-theme=navy] #app .stage-composed .enemy-hud{display:flex;align-items:center;min-width:0}
body[data-theme=navy] #app .battle-team{min-height:72px!important}
body[data-theme=navy] #app .battle-team .team-status[aria-pressed=true] .team-face{width:48px;height:48px}
body[data-theme=navy] #app .battle-team .team-status .team-face{width:36px;height:36px}

/* ===== つよくする（2026-10-19 回答 A）：ホーム・ご褒美のボタンと、仲間3体の札 ===== */
body[data-theme=navy] #app .grow-button{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;font-size:18px;font-weight:800;border-radius:16px;background:linear-gradient(#1b3f52,#102c3b);border:1.5px solid var(--gold);color:var(--gold);box-shadow:0 4px 0 #061319}
body[data-theme=navy] #app .grow-button .ui-icon{width:28px;height:28px;margin:0}
body[data-theme=navy] #app .grow-button .shortcut-count{position:absolute;right:12px;top:50%;transform:translateY(-50%)}
body[data-theme=navy] #app .result-panel .grow-button{margin-top:12px}
body[data-theme=navy] #app .grow-cards{display:grid;gap:10px;margin-top:12px}
body[data-theme=navy] #app .grow-card{display:grid;grid-template-columns:84px 1fr;gap:12px;align-items:center;padding:12px;text-align:left}
body[data-theme=navy] #app .grow-card.is-ready{border-color:var(--gold);box-shadow:0 0 0 3px var(--navy-1),0 0 16px #ffd66655}
body[data-theme=navy] #app .grow-card>img{width:84px;height:84px;object-fit:contain;margin:0}
body[data-theme=navy] #app .grow-body{display:grid;gap:4px;min-width:0}
body[data-theme=navy] #app .grow-body strong{font-size:18px}
body[data-theme=navy] #app .grow-level{font-size:16px;color:var(--gold);font-weight:800}
body[data-theme=navy] #app .grow-level small{font-size:13px;color:var(--ink-3);font-weight:400}
body[data-theme=navy] #app .grow-bar{height:8px;border-radius:999px;background:#ffffff1a;overflow:hidden;width:100%}
body[data-theme=navy] #app .grow-bar i{display:block;height:100%;background:linear-gradient(90deg,#ffe38a,#f0b93a);border-radius:inherit}
body[data-theme=navy] #app .grow-next{font-size:16px;line-height:1.5;margin:2px 0 4px;word-break:keep-all;overflow-wrap:anywhere}
body[data-theme=navy] #app .grow-body button{min-height:44px;font-size:16px}
body[data-theme=navy] #app .cap-route{display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:8px 0;list-style:none}
body[data-theme=navy] #app .cap-route li{font-size:13px;padding:3px 9px;border-radius:999px;background:var(--navy-3);color:var(--ink-3)}
body[data-theme=navy] #app .cap-route li.opened{background:var(--gold);color:#2b2000}
