/* DG6 ─ 画面の見た目。舞台は 1280×720 を画面に合わせて拡大縮小する（40_画面基盤.js） */
:root {
    --地: #101218; --板: #1b1f2a; --板2: #242a38; --線: #3a4256; --字: #e8e6df; --淡: #9aa3b5;
    --金: #d9b25a; --赤: #c0392b; --青: #2e86c1; --緑: #27ae60; --黄: #d4ac0d; --紫: #8e44ad;
    --自: #3d8bd6; --敵: #d64b3d;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--字); overflow: hidden;
    font-family: 'Noto Sans JP', 'Yu Gothic UI', 'Meiryo', sans-serif; }
#舞台 { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform: translate(-50%, -50%);
    background: var(--地); overflow: hidden; user-select: none; }
.画面 { position: absolute; inset: 0; display: none; }
.画面.表示 { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
/* 釦・窓は galaxy の窓（半透明＋ぼかし・四隅のL字・頭の光の帯・開く動き）に寄せる（2026-10-20 本人「UIデザインを参考にグレードアップ」）。色は DG6 の金 */
.釦 { background: linear-gradient(180deg, rgba(48,55,74,.94), rgba(30,35,48,.94)); border: 1px solid rgba(132,148,186,.34); border-radius: 6px;
    padding: 6px 12px; min-height: 32px; color: var(--字); box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    transition: background .12s, border-color .12s, box-shadow .12s, transform .05s; }
.釦:hover, .釦.lv10-フォーカス, .釦.lv10-focus, .釦:focus-visible { border-color: var(--金); background: linear-gradient(180deg, rgba(66,73,96,.96), rgba(40,46,63,.96));
    box-shadow: 0 0 0 1px rgba(217,178,90,.22), 0 0 10px rgba(217,178,90,.18), inset 0 1px 0 rgba(255,255,255,.08); outline: none; }
.釦:active:not(:disabled) { transform: translateY(1px); }
.釦:disabled { opacity: .4; cursor: default; }
.釦.主 { background: linear-gradient(180deg, #5c4a22, #33290f); border-color: var(--金); color: #ffeab8; text-shadow: 0 0 6px rgba(217,178,90,.35); }
.釦.主:hover, .釦.主.lv10-フォーカス, .釦.主.lv10-focus { background: linear-gradient(180deg, #74602c, #43361a); }
.釦.選択 { background: linear-gradient(180deg, #44587e, #2b3a58); border-color: #7fb0ff; box-shadow: inset 0 2px 0 #7fb0ff; }
.数 { font-variant-numeric: tabular-nums; }
.淡 { color: var(--淡); }
.金字 { color: var(--金); }

/* ---------- タイトル ---------- */
#画面_タイトル { background: radial-gradient(ellipse at 50% 35%, #2a2f44 0%, #0b0c10 70%); }
.題 { position: absolute; top: 170px; width: 100%; text-align: center; font-size: 64px; letter-spacing: 12px; color: var(--金);
    text-shadow: 0 0 24px rgba(217,178,90,.35); font-family: 'Noto Serif JP', serif; }
.副題 { position: absolute; top: 262px; width: 100%; text-align: center; color: var(--淡); letter-spacing: 6px; }
.題釦群 { position: absolute; top: 360px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; width: 280px; }
.題釦群 .釦 { font-size: 18px; padding: 10px; }

/* ---------- 新規 ---------- */
#画面_新規 { padding: 24px; }
.新規左 { position: absolute; left: 24px; top: 70px; width: 420px; bottom: 24px; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.新規左 .釦 { text-align: left; display: flex; justify-content: space-between; }
.新規右 { position: absolute; left: 470px; top: 24px; right: 24px; bottom: 24px; }
.勢力色 { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.情報表 { border-collapse: collapse; font-size: 14px; }
.情報表 td, .情報表 th { padding: 3px 8px; border-bottom: 1px solid #2a3040; text-align: left; white-space: nowrap; }
.情報表 th { color: var(--淡); font-weight: normal; }
.小地図 { position: relative; width: 480px; height: 300px; background: #0c0f16; border: 1px solid var(--線); }
.小地図 .点 { position: absolute; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); }
.難易度群, .下釦群 { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- 地図 ---------- */
/* 大陸版の配置: 地図が画面いっぱい・下に命令の帯（30px） */
#地図域 { position: absolute; left: 0; top: 0; width: 1280px; height: 690px; overflow: hidden; background: #081636; }
#地図面 { position: absolute; }
#地図域 .絵地図 { position: absolute; left: 0; top: 0; cursor: grab; }
.左上札 { position: absolute; left: 260px; top: 6px; display: flex; gap: 8px; align-items: center; padding: 3px 12px; font-size: 14px;
    background: rgba(12,14,20,.8); border: 1px solid #6b5a2e; border-radius: 4px; pointer-events: none; }
.左上札 .勢 { font-weight: bold; margin-right: 6px; }
.左上札 .章題 { color: var(--金); margin-left: 8px; }
/* 左上札の下: 1軍〜3軍の札と中立の残り */
.状況札 { position: absolute; left: 260px; top: 42px; display: flex; flex-wrap: wrap; gap: 4px; max-width: 760px; }
.状況札 .軍札 { min-height: 0; padding: 2px 9px; font-size: 13px; border-color: #6b5a2e; background: rgba(12,14,20,.85); }
.状況札 .軍札.済 { color: #666; border-color: #333; background: rgba(12,14,20,.6); }
.盟札 { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 12px; border: 1px solid #4f7a4a; border-radius: 4px; background: rgba(12,20,14,.85); color: #cfe8c8; }
.盟札.切れ { border-color: #c9584a; color: #ffb3a8; }
/* 国の紋（持ち主の色の四角に勢力の頭文字）と国名 */
.国札 { position: absolute; transform: translate(-50%, -50%); padding: 0; border: none; background: none; color: #fff;
    display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.国札 .紋 { display: block; width: 22px; height: 22px; line-height: 20px; font-size: 13px; font-weight: bold; text-align: center;
    border: 2px solid #f4f1e6; box-shadow: 0 1px 3px rgba(0,0,0,.8); }
.国札.都 .紋 { width: 26px; height: 26px; line-height: 24px; font-size: 15px; border-color: #ffd970; }
.国札 .国名 { font-size: 10px; margin-top: 1px; padding: 0 3px; border-radius: 2px; background: rgba(10,12,18,.62); white-space: nowrap; }
.国札.自 .紋 { box-shadow: 0 0 0 2px #7fb8ff, 0 1px 3px rgba(0,0,0,.8); }
.国札.中立 .国名 { color: #cfe8c8; }
.国札.目標 .紋 { box-shadow: 0 0 0 2px #ff5a4a, 0 0 8px 2px rgba(255,90,74,.75); }
.国札.目標 .国名 { color: #ffb0a6; }
.国札.選択, .国札.lv10-フォーカス, .国札.lv10-focus, .国札:hover { z-index: 5; opacity: 1; outline: none; }
.国札.選択 .紋, .国札.lv10-focus .紋, .国札:hover .紋 { outline: 2px solid var(--金); outline-offset: 1px; }
/* 選んだ国の横に出る窓 */
#令窓 { position: absolute; z-index: 8; background: rgba(17,20,29,.84); backdrop-filter: blur(10px) saturate(1.25); -webkit-backdrop-filter: blur(10px) saturate(1.25);
    border: 1px solid rgba(217,178,90,.36); border-radius: 10px;   /* 地図を描き直すたびに作り直すので開く動きは付けない */
    box-shadow: 0 10px 32px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); max-height: 400px; display: flex; flex-direction: column; }
#令窓::before, #令窓::after, #令窓 .令頭::before, #令窓 .令頭::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid var(--金);
    pointer-events: none; z-index: 2; filter: drop-shadow(0 0 3px rgba(217,178,90,.55)); }
#令窓 .令頭::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
#令窓 .令頭::after { right: -1px; top: -1px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
#令窓::before { left: -1px; bottom: -1px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
#令窓::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
#令窓 .令頭 { padding: 6px 8px 6px 10px; border-bottom: 1px solid rgba(217,178,90,.22); font-weight: bold; display: flex; align-items: center; white-space: nowrap;
    background: linear-gradient(180deg, rgba(217,178,90,.13), rgba(217,178,90,0)); border-radius: 9px 9px 0 0; }
#令窓 .令頭 .淡 { font-weight: normal; font-size: 12px; flex: 1; overflow: hidden; text-overflow: ellipsis; }
#令窓 .令頭 .小 { min-height: 0; padding: 0 7px; font-size: 12px; }
#令窓 .令情報 { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 5px 8px; font-size: 12px; border-bottom: 1px solid var(--線); }
#令窓 .地域 { display: inline-flex; gap: 3px; }
#令窓 .地域 i { display: inline-block; width: 10px; height: 10px; border: 1px solid rgba(0,0,0,.7); }
#令窓 .地域 i.町 { border-radius: 2px; transform: rotate(45deg) scale(.85); }
#令窓 .地域 i.野 { border-radius: 50%; }
#令窓 .令群 { overflow: auto; padding: 6px; margin: 0; }
.令群 { display: grid; grid-template-columns: 1fr; gap: 4px; }
.令 { text-align: left; font-size: 13px; position: relative; padding: 4px 8px 4px 16px; min-height: 28px; }
.令::before { content: ''; position: absolute; left: 5px; top: 7px; bottom: 7px; width: 5px; border-radius: 2px; background: #555; }
.令.青::before { background: var(--青); } .令.黄::before { background: var(--黄); } .令.緑::before { background: var(--緑); }
.令.赤::before { background: var(--赤); } .令.紫::before { background: var(--紫); }
.令 .要 { float: right; color: var(--淡); font-size: 11px; margin-left: 6px; }
/* 右下: 記録と行動回数 */
#記録板 { position: absolute; right: 8px; bottom: 8px; width: 380px; background: rgba(12,15,22,.74); backdrop-filter: blur(8px) saturate(1.2); -webkit-backdrop-filter: blur(8px) saturate(1.2);
    border: 1px solid rgba(217,178,90,.3); border-radius: 8px; padding: 5px 8px; pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05); }
#記録帯 { font-size: 12px; color: #cfd6e6; min-height: 72px; }
#記録帯 div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.行動回数 { margin-top: 4px; font-size: 13px; color: var(--金); display: flex; align-items: center; gap: 3px; }
.行動回数 span { margin-right: 6px; }
.扇 { display: inline-block; width: 14px; height: 14px; border-radius: 50% 50% 0 50%; transform: rotate(45deg); margin: 0 2px; background: var(--金); }
.扇.空 { background: #333a4a; }
/* 下の帯 */
#下帯 { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(#2a2418, #14110b); border-top: 1px solid #6b5a2e;
    display: flex; gap: 3px; align-items: center; padding: 0 3px 0 330px; white-space: nowrap; }   /* 左320pxは mp3 の予約エリア */
#下帯 .釦 { min-height: 24px; padding: 1px 10px; font-size: 13px; }
#下帯 .値箱 { display: flex; gap: 6px; align-items: baseline; padding: 1px 10px; background: #0d0f15; border: 1px solid #3a3322; border-radius: 3px; font-size: 13px; }
#下帯 .値箱 .淡 { font-size: 11px; }
#下帯 .空き { flex: 1; }
#下帯 .終了釦 { min-width: 120px; }
.柱釦群 { display: flex; flex-direction: column; gap: 4px; }
.柱釦群 .釦 { text-align: left; }

/* ---------- 窓 ---------- */
#窓層 { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.窓幕 { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.32), rgba(0,0,0,.62)); pointer-events: auto;
    display: flex; align-items: center; justify-content: center; animation: 幕入 .16s ease-out; }
.窓 { position: relative; background: rgba(17,20,29,.86); backdrop-filter: blur(10px) saturate(1.25); -webkit-backdrop-filter: blur(10px) saturate(1.25);
    border: 1px solid rgba(217,178,90,.36); border-radius: 10px; min-width: 360px; max-width: 1200px; max-height: 680px;
    display: flex; flex-direction: column; animation: 窓入 .16s ease-out;
    box-shadow: 0 14px 48px rgba(0,0,0,.62), 0 0 0 1px rgba(217,178,90,.08), inset 0 1px 0 rgba(255,255,255,.06); }
@keyframes 窓入 { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes 幕入 { from { opacity: 0; } }
/* 四隅のL字（上の2つは頭の ::before/::after、下の2つは窓の ::before/::after。どれも窓を基準に置く） */
.窓::before, .窓::after, .窓頭::before, .窓頭::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid var(--金);
    pointer-events: none; z-index: 2; filter: drop-shadow(0 0 3px rgba(217,178,90,.55)); }
.窓頭::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.窓頭::after { right: -1px; top: -1px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.窓::before { left: -1px; bottom: -1px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.窓::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.窓頭 { padding: 8px 8px 8px 14px; border-bottom: 1px solid rgba(217,178,90,.22); display: flex; align-items: center; gap: 10px;
    background: linear-gradient(180deg, rgba(217,178,90,.13), rgba(217,178,90,0)); border-radius: 9px 9px 0 0; }
.窓頭 .題字 { font-size: 16px; font-weight: bold; letter-spacing: .06em; color: #f0d58e; text-shadow: 0 0 10px rgba(217,178,90,.35); flex: 1; }
.窓頭 .題字::before { content: ''; display: inline-block; width: 3px; height: 15px; margin-right: 9px; vertical-align: -2px; border-radius: 2px;
    background: linear-gradient(#ffe08a, #a8771a); box-shadow: 0 0 6px rgba(217,178,90,.7); }
/* 頭の ✕ は枠の無い小さな釦（galaxy の win-btn）。乗せると赤 */
.窓頭 > .釦.lv10-巡回外 { min-height: 0; width: 30px; height: 28px; padding: 0; background: transparent; border-color: transparent; box-shadow: none; color: var(--淡); font-size: 15px; }
.窓頭 > .釦.lv10-巡回外:hover, .窓頭 > .釦.lv10-巡回外.lv10-フォーカス, .窓頭 > .釦.lv10-巡回外.lv10-focus { background: rgba(255,92,110,.22); border-color: rgba(255,92,110,.4); color: #ffd7db; }
.窓身 { padding: 10px 12px; overflow: auto; overscroll-behavior: contain; }
.窓身::-webkit-scrollbar, .窓身 *::-webkit-scrollbar, #令窓 *::-webkit-scrollbar { width: 8px; height: 8px; }
.窓身::-webkit-scrollbar-thumb, .窓身 *::-webkit-scrollbar-thumb, #令窓 *::-webkit-scrollbar-thumb { background: rgba(217,178,90,.32); border-radius: 4px; }
.窓身::-webkit-scrollbar-thumb:hover, .窓身 *::-webkit-scrollbar-thumb:hover { background: rgba(217,178,90,.55); }
.窓身::-webkit-scrollbar-track, .窓身 *::-webkit-scrollbar-track, #令窓 *::-webkit-scrollbar-track { background: transparent; }
.窓足 { padding: 8px 12px; border-top: 1px solid rgba(217,178,90,.18); display: flex; gap: 8px; justify-content: flex-end; align-items: center;
    background: linear-gradient(0deg, rgba(217,178,90,.06), rgba(217,178,90,0)); border-radius: 0 0 9px 9px; }
.窓足 .空き { flex: 1; }
.一覧 { border-collapse: collapse; font-size: 13px; width: 100%; }
.一覧 th { position: sticky; top: 0; background: #202637; color: var(--淡); font-weight: normal; padding: 4px 6px; text-align: left; white-space: nowrap; }
.一覧 td { padding: 3px 6px; border-bottom: 1px solid #262c3b; white-space: nowrap; }
.一覧 tr.行 { cursor: pointer; }
.一覧 tr.行:hover td, .一覧 tr.行.選択 td { background: #2c3550; }
.一覧 tr.済 td { color: #7d8597; }
.一覧 td.数 { text-align: right; }
.行釦 { background: none; border: none; padding: 0; text-align: left; width: 100%; }
.行釦.lv10-フォーカス,.行釦.lv10-focus { outline: 1px solid var(--金); }
.詳細 { display: grid; grid-template-columns: auto auto; gap: 2px 12px; font-size: 13px; }

/* ---------- 編成 ---------- */
.陣形 { display: grid; grid-template-columns: repeat(2, 150px); grid-template-rows: repeat(3, 64px); gap: 6px; }
.枠 { border: 1px dashed #4a5370; border-radius: 4px; padding: 4px 6px; font-size: 12px; background: #151a26; text-align: left; }
.枠.入 { border-style: solid; background: #1f2840; }
.枠.選択 { border-color: var(--金); }
.枠 .名 { font-size: 14px; font-weight: bold; }

/* ---------- 兵力・出撃準備（大陸版の格子） ---------- */
.窓.全面 { width: 1270px; max-width: none; height: 712px; max-height: none; }
.窓.全面 .窓身 { flex: 1; overflow: hidden; padding: 8px; }
/* 全面の窓は舞台の上端に付くので、題を Lv10 メニュー（左上の予約エリア 約240px）の右へ逃がす */
.窓.全面 .窓頭 { padding-left: 250px; }
/* 左下は Lv10 の mp3 プレーヤーの予約エリア（0〜320px × 下120px）。全面窓の足の釦はその右から並べる */
.窓.全面 .窓足 { padding-left: 330px; }
.編成画面 { display: flex; gap: 10px; height: 100%; }
.編左 { width: 520px; flex: none; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.編右 { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.編頭 { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; font-size: 14px; }
.編頭 .空き { flex: 1; }
.編頭 .釦 { min-height: 26px; padding: 2px 10px; font-size: 13px; }
.格子 { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding: 2px; background: #141821; border: 1px solid #3a3322; }
.格行 { display: flex; gap: 4px; align-items: stretch; }
.行人 { width: 30px; flex: none; border: 1px solid #6b5a2e; border-radius: 4px; background: #3b3220; color: #ffd970; display: flex; flex-direction: column;
    align-items: center; justify-content: center; font-size: 15px; padding: 0; }
.行人 small { font-size: 10px; color: #cfc6a8; }
.行人.空, .行人:disabled { opacity: .35; }
.行人:hover, .行人.lv10-focus { background: #5a4a26; }
.武札 { position: relative; flex: 1; min-width: 0; height: 88px; padding: 3px 4px; border: 1px solid #5d5236; border-radius: 3px; background: linear-gradient(#232a3a, #1a1f2b);
    color: #eee; display: flex; flex-direction: column; justify-content: space-between; text-align: center; font-size: 11px; }
.武札 .札上 { display: flex; justify-content: space-between; font-size: 11px; }
.武札 .札上 .種 { font-weight: bold; }
.武札 .札点, .武札 .札下 { display: flex; justify-content: space-around; font-style: normal; }
.武札 .札点 i, .武札 .札下 i { font-style: normal; font-weight: bold; font-size: 13px; }
.探 { color: #5fd35f; } .交 { color: #6fb2ff; } .建 { color: #6ae0e0; } .費 { color: #ff6d6d; }
.札凡例 i { font-style: normal; font-weight: bold; }
.武札 .札名 { font-size: 13px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.武札 .札印 { position: absolute; right: 2px; top: 38px; z-index: 1; font-size: 10px; padding: 0 3px; border-radius: 2px; background: #000a; color: #ffd970; }
/* 顔あり: 顔を札いっぱいに、上下の数字は暗い帯の上 */
.札顔 { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
/* 顔あり: 見出しの下に正方形の顔をまるごと（縮めて全部見せる）。数字は顔の上下に半透明の帯で重ねる */
.武札.顔あり { height: auto; padding: 0; background: #151a24; overflow: hidden; justify-content: flex-start; }
.武札.顔あり .札上 { padding: 1px 4px; background: #0d1018; }
.武札.顔あり .札顔 { position: relative; flex: none; aspect-ratio: 1 / 1; background-size: 100% 100%; background-position: center; }
.武札.顔あり .札点 { position: absolute; left: 0; right: 0; top: 0; background: rgba(8,10,16,.55); }
.武札.顔あり .札下 { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(8,10,16,.66); }
.武札.顔あり .札名 { position: absolute; left: 0; right: 0; bottom: 19px; font-size: 11px; text-shadow: 0 0 3px #000, 0 0 2px #000, 0 1px 2px #000; }
.武札.顔あり.配置中 { background: #5a5220; }
.武札.顔あり.配置中 .札顔 { box-shadow: inset 0 0 0 2px #ffe066; }
/* 目線: 枠いっぱいに顔（幅に合わせる）を敷き、目のあたりが枠の真ん中に来るように置く。文字は半透明の地の上 */
.陣札.顔あり, .隊.顔あり { background-size: 100% auto; background-position: center 45%; background-repeat: no-repeat; }
.陣札.顔あり .陣名 > *, .陣札.顔あり .陣兵 > * { background: rgba(8,10,16,.66); padding: 0 5px; border-radius: 3px; }
.隊.顔あり > div:not(.兵):not(.状) { display: table; background: rgba(8,10,16,.66); padding: 0 6px; border-radius: 3px; margin-bottom: 1px; }
.隊.顔あり .兵 { background: rgba(0,0,0,.55); }
.詳顔 { float: left; width: 96px; height: 96px; margin: 0 10px 0 0; border-radius: 4px; background-size: cover; border: 1px solid #3a3322; }
/* 斥候に足りる武将は探索の数字を光らせる */
.武札.探光 .札点 i.探 { color: #b9ffb0; text-shadow: 0 0 6px #5fff5f, 0 0 12px #5fff5f; animation: 探光 1s infinite alternate; }
@keyframes 探光 { from { text-shadow: 0 0 3px #5fff5f; } to { text-shadow: 0 0 10px #5fff5f, 0 0 18px #5fff5f; } }
/* 斥候の枠（配置6枠の下の非戦闘の枠） */
.斥候枠 { display: flex; align-items: center; gap: 8px; width: 100%; height: 52px; margin-top: 6px; padding: 4px 10px; border: 1px dashed #4f7a4a; border-radius: 4px; background: #121a14; color: #cfe8c8; text-align: left; font-size: 13px; }
.斥候枠 > b { font-size: 15px; color: #9fe58f; }
.斥候枠 .斥候値 { min-width: 76px; color: #b9ffb0; }
.斥候枠.済 { border-style: solid; opacity: .85; }
.斥候人 { display: flex; align-items: flex-end; width: 92px; height: 42px; border-radius: 3px; border: 1px solid #3a5a36; background: #1d2a1c; font-size: 11px; overflow: hidden; }
.斥候人.顔あり { background-size: 100% auto; background-position: center 40%; }
.斥候人 > span { width: 100%; padding: 0 4px; background: rgba(8,10,16,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.武札.空 { background: #10131a; border-style: dashed; border-color: #2c3140; color: #4a5064; justify-content: center; }
.武札.空 .札名 { font-weight: normal; }
.武札.配置中 { background: linear-gradient(#5a5220, #3d3714); border-color: #ffe066; box-shadow: inset 0 0 0 1px #ffe066; }
.武札.済 { opacity: .55; filter: grayscale(1) brightness(.55); }   /* 2026-10-06 行動済がはっきり分かるように（前は薄くするだけ） */
.武札.済 .札顔::after { content: '済'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: bold; color: #fff; background: rgba(0,0,0,.45); text-shadow: 0 0 4px #000; }
.武札.済.選択 { opacity: .8; }
.武札.二軍 { opacity: .6; border-style: dotted; }
.武札.選択 { box-shadow: 0 0 0 2px #7fdcff; }
.武札.入替元 { box-shadow: 0 0 0 2px #ff9f43; }
.武札:hover, .武札.lv10-focus { border-color: var(--金); }
.札凡例 { font-size: 12px; color: var(--淡); margin-top: 4px; text-align: right; }
.操作場 { height: 78px; flex: none; overflow: hidden; }
.操作場 > .下釦群 { margin-top: 0; gap: 4px 6px; }
.操作場 .釦 { font-size: 14px; padding: 3px 9px; min-height: 0; height: 34px; }
.操作場 > .淡 { padding: 6px 2px; font-size: 13px; }
.詳細板 { background: #151a24; border: 1px solid #3a3322; border-radius: 4px; padding: 6px 8px; height: 128px; flex: none; overflow: hidden; font-size: 13px; }
.詳頭 { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.詳頭 b { font-size: 16px; color: var(--金); }
.詳身 { display: flex; gap: 12px; }
.技一覧 { width: 180px; flex: none; }
.能力 span { white-space: nowrap; }
.技行 { display: flex; align-items: center; gap: 4px; padding: 1px 0; }
.技行 i { width: 8px; height: 8px; transform: rotate(45deg); background: #c33; }
.技行.支 i { background: #36c; } .技行.常 i { background: #3a3; }
.技行.無 { color: #555; }
.能力 { display: grid; grid-template-columns: repeat(5, auto); gap: 2px 10px; }
.能力 span .淡 { margin-right: 4px; font-size: 11px; }
.品枠 { margin-top: 6px; }
.総兵力 { display: flex; gap: 6px; align-items: center; background: #1c2130; border: 1px solid #3a3322; border-radius: 4px; padding: 4px 8px; }
.総兵力 .空き { flex: 1; }
.総兵力 .釦 { min-height: 28px; padding: 2px 12px; }
.陣形2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }   /* 横3×2段（上が前列）。2026-10-14 本人指示 */
.陣札 { height: 64px; padding: 3px 8px; border: 1px solid #2f5b8f; border-radius: 4px; background: linear-gradient(90deg, #1d3450, #152235); text-align: left; font-size: 12px; }
.陣札.敵 { border-color: #8f3a2f; background: linear-gradient(90deg, #3d1d1d, #2a1515); cursor: default; }
.陣札.空 { border-style: dashed; background: #11151d; border-color: #2c3140; }
.陣札.選択 { box-shadow: 0 0 0 2px var(--金); }
.陣札 .陣名 { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.陣札 .陣名 .種 { margin-left: auto; }
.陣札 .陣兵 { display: flex; justify-content: space-between; align-items: center; }
.陣札 .陣名 b { font-size: 14px; }
.陣札 .陣兵 { font-size: 13px; }
.陣兵棒 { height: 5px; background: #333; border-radius: 2px; overflow: hidden; margin: 2px 0; }
.陣兵棒 b { display: block; height: 100%; background: #6fbf4a; }
.陣技 { display: inline-flex; align-items: center; gap: 2px; }
.陣技 i { display: inline-block; width: 11px; height: 14px; margin-right: 1px; background: #eee; clip-path: polygon(0 0, 100% 50%, 0 100%); }
/* 気力（残りの技数）を大きく。前衛 →→→ ／ 後衛 [[[ の印 */
.気力字 { font-size: 11px; color: #ffd970; margin-right: 2px; }
.気力数 { font-size: 28px; line-height: 1; color: #ffd970; font-weight: bold; margin-right: 4px; text-shadow: 0 1px 2px #000; }
.陣技 .気力数 { font-size: 18px; }
.陣札 .空印 { font-size: 15px; color: #8a93a8; }
.列印 { font-weight: bold; margin-right: 5px; letter-spacing: -1px; font-family: monospace; }
.列印.前 { color: #ff8a5c; } .列印.後 { color: #7fc4ff; }
.武札 .札下 i.気, .札凡例 i.気 { color: #ffd970; font-size: 15px; }

/* ドラッグ＆ドロップ */
[data-引] { touch-action: none; cursor: grab; }
.引き影 { position: fixed; z-index: 9999; pointer-events: none; opacity: .88; transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.引き中 { opacity: .35; }
.置き先 { outline: 3px solid #ffe066 !important; outline-offset: -2px; }

/* ---------- 合戦 ---------- */
#画面_合戦 { background: linear-gradient(#1a2130, #0f131b); }
.戦果帯 { position: absolute; left: 400px; right: 240px; top: 12px; height: 22px; background: var(--敵); border: 1px solid #000; border-radius: 3px; overflow: hidden; }
.戦果帯 .自分 { position: absolute; left: 0; top: 0; bottom: 0; background: var(--自); transition: width .25s; }
.戦果帯 .中線 { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: #fff; }
.戦果字 { position: absolute; top: 12px; font-size: 14px; }
.総兵字 { position: absolute; top: 67px; font-size: 14px; color: #ffd970; }
.時間帯 { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); display: flex; gap: 2px; }
.時間帯 i { width: 6px; height: 14px; background: #e8e6df; display: inline-block; }
.時間帯 i.減 { background: #333a4a; }
.時間帯 i.区 { margin-right: 7px; }
.時間帯 i.今減 { animation: 時減 .6s ease-out; }
@keyframes 時減 { 0% { background: #ffd970; box-shadow: 0 0 8px #ffd970; transform: scaleY(1.4); } 100% { background: #333a4a; box-shadow: none; transform: none; } }
.補正字 { position: absolute; top: 40px; font-size: 13px; }
.陣 { position: absolute; left: 30px; width: 840px; height: 250px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 8px; }
/* 2026-10-14 本人指示: 縦に並べない。相手は上・自分は下に、横3部隊×2段（前列が中央寄り） */
.陣.上 { top: 90px; }
.陣.下 { top: 362px; }
.隊 { position: relative; border: 2px solid #3a4256; border-radius: 6px; background: #1b2232; padding: 6px 8px; font-size: 12px; text-align: left; }
.隊.自 { border-color: #2f5b8f; } .隊.敵 { border-color: #8f3a2f; }
.隊.手番 { box-shadow: 0 0 0 3px var(--金), 0 0 16px var(--金); }
.隊.対象可 { cursor: pointer; border-color: #fff; animation: 点滅 .8s infinite alternate; }
.隊.対象可.lv10-フォーカス,.隊.対象可.lv10-focus, .隊.対象可:hover { background-color: #3a2f22; }   /* 色だけ（background だと絵の大きさと位置が戻って、乗せると顔がずれた。2026-10-20 自走） */
@keyframes 点滅 { from { border-color: #fff; } to { border-color: var(--金); } }
.隊.撃破 { opacity: .25; filter: grayscale(1); }   /* 撃破は色を抜く（2026-10-20） */
.隊.空 { border-style: dashed; background: transparent; border-color: #262c3b; }
.隊 .名 { font-size: 14px; font-weight: bold; }
.隊 .兵 { position: relative; margin-top: 3px; height: 10px; background: #333; border-radius: 2px; overflow: hidden; }
.隊 .兵 b { position: relative; display: block; height: 100%; background: #6fbf4a; transition: width .25s; }
/* 減った分の残像（2026-10-20）: 帯のすぐ後ろで遅れて縮む。時間は 45 が速さに合わせて入れる */
.隊 .兵 i.残 { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,240,200,.85); transition-property: width; transition-timing-function: ease-in; }
.隊 .兵字 { font-size: 13px; }
.隊 .技 { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.隊 .技 i { display: inline-block; width: 20px; height: 24px; margin-right: 2px; background: #f4f1e6; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.隊 .技 i.使 { background: #7a2f2f; }
.隊 .状 { position: absolute; right: 6px; top: 6px; font-size: 11px; text-align: right; line-height: 1.4; }
.隊 .状 span { display: inline-block; padding: 0 4px; border-radius: 3px; margin-left: 2px; background: #333; }
.隊 .状 .攻 { background: #7a2020; } .隊 .状 .防 { background: #20457a; } .隊 .状 .知 { background: #6a2f7a; } .隊 .状 .速 { background: #2f7a3a; }
.隊 .状 .ガ { background: #7a6a20; } .隊 .状 .バ { background: #2f6f7a; } .隊 .状 .準 { background: #aa5500; }
.隊 .状 .変 { background: #7a2a8a; }
.隊 .数字 { position: absolute; left: 50%; top: 30%; font-size: 26px; font-weight: bold; color: #ffdd55; text-shadow: 0 2px 4px #000;
    pointer-events: none; animation: 浮 .9s forwards; }
.隊 .数字.回 { color: #7dff7d; }
@keyframes 浮 { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -30px); opacity: 0; } }
.順帯 { position: absolute; left: 30px; width: 840px; top: 646px; display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; max-height: 60px; overflow: hidden; }
.順帯 span { padding: 2px 6px; border-radius: 3px; background: #2a3040; white-space: nowrap; }
.順帯 span.自 { border-left: 3px solid var(--自); } .順帯 span.敵 { border-left: 3px solid var(--敵); }
.技帯 { position: absolute; left: 892px; right: 20px; top: 92px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.技帯 .技群 { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; flex: none; }
.技帯 .技群 .釦 { min-width: 150px; text-align: left; }
.技帯 .技群 .釦 small { color: var(--淡); margin-left: 6px; }
.技札群 { position: absolute; z-index: 5; display: none; flex-direction: column; gap: 3px; }
.技札群.表示 { display: flex; }
.技札群 .釦 { display: flex; align-items: center; padding: 4px 8px; font-size: 13px; text-align: left; white-space: nowrap; background: rgba(20,24,34,.94); border-color: #d9b25a; }
.技札群 .釦 small { color: var(--淡); margin-left: auto; padding-left: 6px; }
.戦ログ { flex: 1; min-height: 70px; font-size: 12px; line-height: 1.35; overflow: hidden; color: #cfd6e6; display: flex; flex-direction: column; justify-content: flex-end; }
.戦ログ div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.戦右上 { position: absolute; right: 12px; top: 8px; display: flex; gap: 6px; }

/* ---------- 通知 ---------- */
#通知 { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; pointer-events: none; z-index: 50; }
#通知 div { background: rgba(18,22,32,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(217,178,90,.4); border-left: 4px solid var(--金);
    padding: 8px 18px; border-radius: 8px; font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.45); animation: 通知 2.6s forwards; }   /* galaxy の ui-toast に寄せる */
@keyframes 通知 { 0% { opacity: 0; transform: translateY(-6px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* フキダシは舞台の上に出す */
#Goセリフレイヤー { z-index: 3000; }
/* 章の見出し（2026-10-20）: 46 が見出しの行で #章札 を置く。吹き出しは隠して、暗い幕に章の番号と題を大きく出す（単位はレイヤーの幅 cqw） */
#Goセリフレイヤー.章見出し .Go吹出 { visibility: hidden; }
#章札 { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqw;
  background: radial-gradient(ellipse at 50% 50%, rgba(10,12,20,.78) 0%, rgba(4,5,10,.92) 70%); pointer-events: none; }
#章札.出る { animation: 章札幕 .9s ease-out both; }
#章札 .章札番 { font-size: 1.9cqw; letter-spacing: .5em; padding-left: .5em; color: #d9b25a; text-shadow: 0 0 1cqw #000; }
#章札 .章札題 { font-size: 3.6cqw; font-weight: bold; letter-spacing: .18em; padding: .6cqw 3cqw; color: #f3ead2;
  border-top: 1px solid rgba(217,178,90,.75); border-bottom: 1px solid rgba(217,178,90,.75); text-shadow: 0 0 1.4cqw #000, 0 0 2.4cqw rgba(255,190,90,.35); }
#章札.出る .章札番 { animation: 章札字 .9s .15s ease-out both; }
#章札.出る .章札題 { animation: 章札題 1.1s .3s ease-out both; }
@keyframes 章札幕 { from { opacity: 0; } to { opacity: 1; } }
@keyframes 章札字 { from { opacity: 0; transform: translateY(-1cqw); } to { opacity: 1; transform: none; } }
@keyframes 章札題 { 0% { opacity: 0; letter-spacing: .6em; filter: blur(.4cqw); } 100% { opacity: 1; letter-spacing: .18em; filter: blur(0); } }

/* 副将の窓（2026-10-06）: 今→合流後 の能力 */
.副将比 { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 8px 10px; background: #1a2238; border: 1px solid #3a4870; border-radius: 6px; font-size: 16px; }
.副将比 > b { font-size: 18px; margin-right: 6px; }
.副項 b { color: #8f8; font-size: 18px; }
.副項 i { font-style: normal; color: #8f8; font-size: 13px; margin-left: 3px; }
.副項.増 { background: rgba(80, 200, 120, 0.12); padding: 0 6px; border-radius: 4px; }
.一覧 tr.行.満 td { opacity: 0.45; }
.能力 i.増分 { font-style: normal; color: #7f7; font-size: 12px; margin-left: 2px; }
.能力 i.減分 { font-style: normal; color: #f77; font-size: 12px; margin-left: 2px; }

/* 合戦の札（2026-10-06）: 絵を高さいっぱいに片側へ（自軍は右・敵は左）、文字は小さく反対側。立ち絵があれば立ち絵 */
.隊.顔あり { background-size: auto 100%; background-repeat: no-repeat; background-color: #121826; padding: 4px 6px; }
.隊.顔あり.自 { background-position: right bottom; }
.隊.顔あり.敵 { background-position: left bottom; text-align: right; }
.隊.顔あり.立絵 { background-size: auto 112%; }
.隊.顔あり::before { content: ''; position: absolute; inset: 0; border-radius: 4px; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,13,20,.88) 0, rgba(10,13,20,.6) 38%, rgba(10,13,20,0) 62%); }
.隊.顔あり.敵::before { background: linear-gradient(270deg, rgba(10,13,20,.88) 0, rgba(10,13,20,.6) 38%, rgba(10,13,20,0) 62%); }
.隊.顔あり > * { position: relative; }
.隊.顔あり > div:not(.兵):not(.状) { display: block; background: none; padding: 0; margin: 0; max-width: 58%; }
.隊.顔あり.敵 > div:not(.兵):not(.状) { margin-left: auto; }
.隊.顔あり .名 { font-size: 13px; text-shadow: 0 0 3px #000, 0 1px 2px #000; }
.隊.顔あり .種行 { font-size: 10px; white-space: nowrap; overflow: hidden; }
.隊.顔あり .兵字 { font-size: 11px; }
.隊.顔あり .兵 { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 5px; margin: 0; background: rgba(0,0,0,.6); }
.隊.顔あり .技 { margin-top: 1px; }
.隊.顔あり.敵 .技 { justify-content: flex-end; }
.隊.顔あり .気力数 { font-size: 18px; }
.隊.顔あり .技 i { width: 11px; height: 13px; margin-right: 1px; }
.隊.顔あり .状 { top: auto; bottom: 12px; right: auto; left: 6px; text-align: left; }
.隊.顔あり.自 .状 { left: auto; right: 6px; text-align: right; }
.隊 .数字 { font-size: 20px; }

/* 合戦の演出（2026-10-06）。.効 は 45 が 効果層 に置く（left/top が札の中心）。長さは 45 が animationDuration で速さに合わせる */
.効果層 { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.効 { position: absolute; transform: translate(-50%, -50%); pointer-events: none; animation-timing-function: ease-out; animation-fill-mode: forwards; }
.効.技名 { font-size: 18px; font-weight: bold; color: #fff; padding: 2px 12px; border-radius: 4px; white-space: nowrap;
  background: rgba(20,24,36,.9); border: 1px solid #d9b25a; text-shadow: 0 0 6px #000; animation-name: 技名; }
.効.技名.魔法 { border-color: #c38bff; color: #f0e0ff; box-shadow: 0 0 14px #8a4dff; }
.効.技名.回復 { border-color: #7dff7d; color: #e0ffe0; }
.効.技名.支援 { border-color: #7fdcff; color: #e0f6ff; }
@keyframes 技名 { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -90%) scale(1.05); } 80% { opacity: 1; transform: translate(-50%, -100%); } 100% { opacity: 0; transform: translate(-50%, -120%); } }
.効.弾 { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(#fff, #ffd970 45%, rgba(0,0,0,0) 70%); box-shadow: 0 0 12px #ffd970; }
.効.弾.魔法 { width: 26px; height: 26px; background: radial-gradient(#fff, #c38bff 40%, rgba(0,0,0,0) 70%); box-shadow: 0 0 20px #a066ff; }
.効.全光 { width: 260px; height: 120px; border-radius: 10px; animation-name: 全光; }
.効.全光.魔法 { background: radial-gradient(rgba(200,140,255,.85), rgba(120,60,255,.25) 60%, rgba(0,0,0,0) 75%); }
.効.全光.物理 { background: radial-gradient(rgba(255,220,120,.8), rgba(255,160,40,.2) 60%, rgba(0,0,0,0) 75%); }
@keyframes 全光 { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 40% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -50%) scale(1.15); } }
.効.被弾 { width: 270px; height: 126px; border-radius: 6px; background: rgba(255,60,40,.45); animation-name: 消える; }
.効.被弾.魔法 { background: rgba(170,90,255,.5); }
.効.癒し { width: 270px; height: 126px; border-radius: 6px; background: radial-gradient(rgba(120,255,140,.6), rgba(0,0,0,0) 70%); animation-name: 消える; }
.効.付与 { margin-top: -26px; font-size: 16px; font-weight: bold; color: #ffe27a; white-space: nowrap; text-shadow: 0 0 6px #000, 0 0 10px #ff9f1a; animation-name: 浮く; }
.効.解除 { margin-top: -26px; font-size: 15px; font-weight: bold; color: #9fb4ff; white-space: nowrap; text-shadow: 0 0 6px #000; animation-name: 浮く; }
.効.ガード { margin-top: 18px; font-size: 16px; font-weight: bold; color: #ffd24a; padding: 0 10px; border: 2px solid #ffd24a; border-radius: 12px; background: rgba(60,50,10,.6); animation-name: 浮く; }
.効.バリア { width: 200px; height: 110px; border-radius: 50%; border: 3px solid #7fe8ff; box-shadow: 0 0 18px #7fe8ff inset, 0 0 18px #7fe8ff; animation-name: 全光; }
.効.壊滅 { font-size: 30px; font-weight: bold; color: #ff5a4a; text-shadow: 0 0 8px #000, 0 0 16px #ff2a1a; animation-name: 壊滅; }
.効.技名.変身 { border-color: #ff7ae0; color: #ffe6fa; box-shadow: 0 0 18px #d04dff; }
.効.変身輪 { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #ff7ae0; box-shadow: 0 0 24px #d04dff, 0 0 24px #d04dff inset; animation-name: 変身; }
@keyframes 変身 { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4) rotate(120deg); } }
@keyframes 消える { from { opacity: 1; } to { opacity: 0; } }
@keyframes 浮く { from { opacity: 0; transform: translate(-50%, -30%); } 20% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -130%); } }
@keyframes 壊滅 { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* 開戦の帯と結果の字（2026-10-20）: 帯は両陣の盤の間を横に走る。長さは 45 が速さに合わせて入れる */
.開戦帯 { position: absolute; left: 30px; width: 840px; top: 322px; height: 56px; display: flex; align-items: center; justify-content: center; gap: 28px;
  background: linear-gradient(90deg, rgba(47,91,143,0) 0, rgba(47,91,143,.85) 22%, rgba(12,14,22,.92) 50%, rgba(143,58,47,.85) 78%, rgba(143,58,47,0) 100%);
  border-top: 1px solid rgba(217,178,90,.7); border-bottom: 1px solid rgba(217,178,90,.7); white-space: nowrap;
  animation: 開戦帯 1.5s ease-out forwards; }
.開戦帯 span { font-size: 20px; font-weight: bold; color: #fff; text-shadow: 0 0 6px #000; min-width: 240px; }
.開戦帯 span.自 { text-align: right; } .開戦帯 span.敵 { text-align: left; }
.開戦帯 b { font-size: 34px; color: #ffd970; letter-spacing: .2em; text-shadow: 0 0 10px #000, 0 0 18px #ff9f1a; }
@keyframes 開戦帯 { 0% { opacity: 0; transform: scaleX(.2); } 18% { opacity: 1; transform: scaleX(1.03); } 26% { transform: scaleX(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1.06); } }
.結果字 { animation: 結果字 .7s ease-out both; }
.結果字.勝 { text-shadow: 0 0 14px rgba(127,176,255,.8); }
.結果字.敗 { text-shadow: 0 0 14px rgba(255,90,74,.6); }
@keyframes 結果字 { 0% { opacity: 0; transform: scale(1.9); filter: blur(4px); } 60% { opacity: 1; transform: scale(.96); filter: blur(0); } 100% { transform: scale(1); } }

/* 地図の演出（2026-10-06）: 制圧した国の札が光って弾む・変わった値が浮かぶ */
.国札.奪取 { animation: 奪取 1.4s ease-out; z-index: 5; }
.国札.変化 { animation: 変化 1.1s ease-out; z-index: 5; }
@keyframes 奪取 { 0% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 0 #fff); } 25% { transform: translate(-50%, -50%) scale(1.8); filter: drop-shadow(0 0 14px #ffe066); } 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 0 #fff); } }
@keyframes 変化 { 0% { filter: drop-shadow(0 0 0 #7fdcff); } 30% { filter: drop-shadow(0 0 10px #7fdcff); } 100% { filter: drop-shadow(0 0 0 #7fdcff); } }
/* ターンの始まりの帯（2026-10-20）: 43 地.ターン札。長さは 43 が速さに合わせて入れる */
.ターン札 { position: absolute; left: 0; right: 0; top: 200px; height: 74px; z-index: 40; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 26px;
  background: linear-gradient(90deg, rgba(8,10,16,0) 0, rgba(8,10,16,.78) 30%, rgba(8,10,16,.78) 70%, rgba(8,10,16,0) 100%);
  border-top: 1px solid rgba(217,178,90,.55); border-bottom: 1px solid rgba(217,178,90,.55); animation: ターン札 1.8s ease-out forwards; }
.ターン札 .勢 { font-size: 18px; color: #e8e2cf; padding-left: 10px; border-left: 4px solid; text-shadow: 0 0 6px #000; }
.ターン札 b { font-size: 40px; color: #ffd970; text-shadow: 0 0 10px #000, 0 0 16px rgba(255,159,26,.6); }
.ターン札 b small { font-size: 18px; margin-right: 8px; color: #d9b25a; letter-spacing: .1em; }
@keyframes ターン札 { 0% { opacity: 0; transform: translateX(-60px); } 18% { opacity: 1; transform: none; } 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(60px); } }
/* 攻めて来る向きの矢（2026-10-20）: 43 地.攻め矢。線が伸びてから矢じりが出る。長さは 43 が速さに合わせて入れる */
.攻め矢 { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; overflow: visible; }
.攻め矢 path { fill: none; stroke: #ff4a3a; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 5px #ff2a1a); animation: 矢伸び .6s ease-out forwards; }
.攻め矢 polygon { fill: #ff4a3a; opacity: 0; filter: drop-shadow(0 0 5px #ff2a1a); animation: 矢じり .2s ease-out forwards; }
@keyframes 矢伸び { to { stroke-dashoffset: 0; } }
@keyframes 矢じり { to { opacity: 1; } }
.国札.攻められ { z-index: 5; animation: 攻められ .45s ease-in-out 4 alternate; }
@keyframes 攻められ { from { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 0 #ff3a2a); } to { transform: translate(-50%, -50%) scale(1.35); filter: drop-shadow(0 0 12px #ff3a2a); } }
.国札 .浮字 { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: bold; color: #ffe27a;
  text-shadow: 0 0 4px #000, 0 0 2px #000; pointer-events: none; animation: 浮字 1.8s ease-out forwards; }
@keyframes 浮字 { 0% { opacity: 0; margin-bottom: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; margin-bottom: 26px; } }

/* 序章（2026-10-06）: 地図を出さないノベルの画面 */
#画面_序章 { background: radial-gradient(ellipse at 50% 35%, #2a3350 0%, #121726 60%, #080a10 100%); overflow: hidden; }
.序背景 { position: absolute; inset: 0; }
/* 場面の背景（2026-10-12）: 全面に敷いてふわっと出す。題は上へ寄せて絵を隠さない */
.序背景.景あり { background-size: cover; background-position: center; animation: 序景出る .8s ease-out; }
.序背景.景あり::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8,10,16,.35) 0%, rgba(8,10,16,0) 30%, rgba(8,10,16,0) 60%, rgba(8,10,16,.45) 100%); }
.序背景.景あり ~ .序題 { top: 28px; }
.序背景.景あり ~ .序題 .序章名 { font-size: 26px; }
@keyframes 序景出る { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
.序絵 { position: absolute; bottom: 0; height: 560px; opacity: .22; filter: saturate(.7); }
.序絵0 { left: 470px; height: 620px; opacity: .3; } .序絵1 { left: 150px; } .序絵2 { right: 150px; }
.序題 { position: absolute; left: 0; right: 0; top: 230px; text-align: center; }
.序章名 { font-size: 40px; font-weight: bold; color: #e9d29a; letter-spacing: .2em; text-shadow: 0 0 18px #000, 0 2px 4px #000; }
.序場面 { margin-top: 10px; font-size: 22px; color: #cfd6e8; text-shadow: 0 0 10px #000; }
.序進み { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.序進み i { width: 26px; height: 6px; border-radius: 3px; background: #2c3348; }
.序進み i.済 { background: #8a7440; } .序進み i.今 { background: #ffd970; box-shadow: 0 0 8px #ffd970; }
.序右上 { position: absolute; right: 20px; top: 16px; }
/* 技の説明の POP（2026-10-14 本人指示）。#舞台 の外に置く */
.技名 { cursor: help; border-bottom: 1px dotted rgba(217,178,90,.55); }
.技吹 { position: fixed; z-index: 10000; display: none; pointer-events: none; padding: 7px 10px; line-height: 1.45;
        background: rgba(16,18,26,.97); color: var(--字); border: 1px solid var(--金); border-radius: 5px; box-shadow: 0 6px 18px rgba(0,0,0,.6); }
.技吹.表示 { display: block; }
.技吹頭 { display: flex; gap: 10px; align-items: baseline; margin-bottom: 3px; }
.技吹頭 b { color: var(--金); }
.技吹頭 span { color: var(--淡); font-size: .86em; }
.技吹行::before { content: '・'; color: var(--淡); }
.捕虜操作 { margin: 4px 0 8px; }
/* 禁呪 神の火の演出（2026-10-14） */
.神火箱 { position: absolute; z-index: 30; width: 30px; height: 22px; background: linear-gradient(#8a93a8, #4c5468); border: 2px solid #d8deea; border-radius: 3px; box-shadow: 0 0 14px #fff; pointer-events: none; }
.神火玉 { position: absolute; z-index: 31; width: 1100px; height: 1100px; border-radius: 50%; pointer-events: none;
          background: radial-gradient(#fff 0%, #fff7c8 16%, #ffc15a 34%, #ff6a1f 52%, rgba(140,30,0,.55) 66%, rgba(0,0,0,0) 72%); }
.神火閃 { position: absolute; inset: 0; z-index: 32; background: #fff; opacity: 0; pointer-events: none; }
.神火輪 { position: absolute; z-index: 31; width: 2600px; height: 2600px; border-radius: 50%; pointer-events: none; border: 18px solid rgba(255,235,200,.85); box-shadow: 0 0 60px 20px rgba(255,200,140,.6), inset 0 0 60px 20px rgba(255,200,140,.4); }
/* 合戦の右の戦況板（2026-10-20）: 手番の部隊・技の一覧・行動順・記録 */
.技帯 .手番板 { flex: none; background: rgba(20,26,40,.92); border: 1px solid #2f5b8f; border-radius: 6px; padding: 8px; }
.技帯 .手番板.敵 { border-color: #8f3a2f; }
.手番頭 { display: flex; gap: 8px; }
.手番顔 { width: 78px; height: 78px; flex: none; border-radius: 4px; background: #111 center 20% / cover no-repeat; border: 1px solid #3a4256; }
.手番名 { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 12px; min-width: 0; }
.手番名 b { font-size: 16px; color: #fff; }
.手番兵 { height: 8px; background: #333; border-radius: 2px; overflow: hidden; margin-top: 2px; }
.手番兵 b { display: block; height: 100%; background: #6fbf4a; }
.手番能 { display: flex; gap: 6px; margin: 6px 0 4px; font-size: 12px; }
.手番能 span { flex: 1; background: #1b2232; border-radius: 3px; padding: 2px 4px; text-align: center; }
.手番能 i { font-style: normal; color: var(--淡); margin-right: 3px; } .手番能 b { font-size: 14px; }
.手番能 span.付 { background: #3a2a14; } .手番能 small { color: #ffd970; margin-left: 2px; }
.手番技 { display: flex; flex-direction: column; gap: 2px; max-height: 128px; overflow: auto; }
.手番技行 { display: flex; align-items: baseline; gap: 6px; padding: 2px 6px; border-radius: 3px; background: #1b2232; font-size: 12px; cursor: help; }
.手番技行 b { font-size: 13px; } .手番技行 small { color: #ffd970; } .手番技行 .淡 { margin-left: auto; font-size: 11px; }
.手番技行.不可 { opacity: .4; } .手番技行.常 b { color: #8fd18f; }
.技の手引 { font-size: 12px; color: var(--淡); }
.技帯 .順板 { flex: none; display: flex; flex-direction: column; gap: 2px; }
.板題 { font-size: 12px; color: var(--金); }
.順行 { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 1px 4px; border-left: 3px solid var(--自); background: #1b2232; border-radius: 3px; }
.順行.敵 { border-left-color: var(--敵); } .順行.今 { box-shadow: 0 0 0 1px var(--金); }
.順行 i { width: 20px; height: 20px; border-radius: 50%; background: #333 center 20% / cover no-repeat; flex: none; }
.順行 small { margin-left: auto; }
/* 品の窓（2026-10-20 表→札） */
.品頭 { display: flex; gap: 6px; margin-bottom: 8px; }
.品身 { display: flex; gap: 12px; height: 470px; }
.品左 { flex: 1.2; overflow: auto; } .品右 { flex: 1; overflow: auto; border-left: 1px solid var(--線); padding-left: 12px; }
.品群 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.品札 { display: flex; align-items: center; gap: 8px; padding: 6px 8px; text-align: left; border: 1px solid #3a4256; border-radius: 6px; background: #1b2232; color: var(--字); cursor: pointer; min-height: 58px; }
.品札:hover, .品札.lv10-フォーカス, .品札.lv10-focus { border-color: var(--金); } .品札.選択 { border-color: var(--金); box-shadow: 0 0 0 2px rgba(217,178,90,.5); background: #262c3e; }
.品印 { width: 34px; height: 34px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: bold; color: #111; }
.品札.装備 .品印 { background: #d9b25a; } .品札.消費 .品印 { background: #6fbf4a; } .品札.技能書 .品印 { background: #8fb0ff; }
.品文 { display: flex; flex-direction: column; flex: 1; min-width: 0; } .品文 b { font-size: 14px; } .品効 { font-size: 12px; color: var(--淡); }
.品者 { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #ffd970; }
.顔丸 { width: 26px; height: 26px; border-radius: 50%; flex: none; background: #333 center 20% / cover no-repeat; display: inline-block; }
.品題 { display: flex; gap: 8px; align-items: baseline; } .品題 b { font-size: 18px; color: var(--金); }
.品説明 { margin: 4px 0 8px; font-size: 14px; }
.品者列 { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.品者札 { display: flex; align-items: center; gap: 8px; padding: 4px 8px; text-align: left; border: 1px solid #3a4256; border-radius: 5px; background: #1b2232; color: var(--字); cursor: pointer; }
.品者札:hover:not(:disabled), .品者札.lv10-フォーカス, .品者札.lv10-focus { border-color: var(--金); background: #262c3e; } .品者札:disabled { opacity: .4; cursor: default; }
.品者札 .顔丸 { width: 38px; height: 38px; }
.品者文 { display: flex; flex-direction: column; flex: 1; font-size: 12px; min-width: 0; } .品者文 b { font-size: 14px; }
.品者釦 { font-size: 12px; color: var(--金); border: 1px solid var(--金); border-radius: 3px; padding: 2px 8px; }
/* タイトル（2026-10-20）: 衛星図を流す背景・題字 */
#画面_タイトル { overflow: hidden; background: #07080c; }
.題景 { position: absolute; inset: -60px; background: url("../img/地図/衛星.jpg") center / cover no-repeat; filter: saturate(.8) brightness(.55); animation: 題景流 60s ease-in-out infinite alternate; }
@keyframes 題景流 { from { transform: scale(1.08) translate(-30px, -10px); } to { transform: scale(1.18) translate(30px, 15px); } }
.題絵 { position: absolute; inset: 0; background: center / cover no-repeat; }
.題幕 { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(10,12,20,.15) 0%, rgba(5,6,10,.85) 75%); }
#画面_タイトル .題 { top: 140px; display: flex; flex-direction: column; align-items: center; gap: 0; letter-spacing: 10px; text-shadow: 0 0 24px rgba(217,178,90,.55), 0 2px 6px #000; }
#画面_タイトル .題 .題小 { font-size: 40px; letter-spacing: 14px; }
#画面_タイトル .題 b { font-size: 92px; line-height: 1; font-weight: normal; }
#画面_タイトル .副題 { top: 290px; color: #cfd6e8; text-shadow: 0 1px 4px #000; letter-spacing: 8px; }
#画面_タイトル .題釦群 .釦 { background: rgba(20,24,34,.82); backdrop-filter: blur(2px); }
/* 捕虜の窓（2026-10-20 表→札） */
.捕群 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.捕札 { display: flex; gap: 8px; padding: 6px; border: 1px solid #3a4256; border-radius: 6px; background: #1b2232; cursor: pointer; }
.捕札:hover { border-color: #6a7390; } .捕札.選択 { border-color: var(--金); box-shadow: 0 0 0 2px rgba(217,178,90,.45); background: #262c3e; }
.捕札.固有 .捕名 b { color: #ffd970; }
.捕顔 { position: relative; width: 84px; height: 84px; flex: none; border-radius: 4px; background: #111 center 20% / cover no-repeat; }
.捕印 { position: absolute; left: 3px; top: 2px; font-style: normal; color: #ffd970; text-shadow: 0 0 3px #000; }
.捕文 { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.捕名 { display: flex; gap: 6px; align-items: baseline; } .捕名 b { font-size: 14px; }
.捕能 { display: flex; flex-wrap: wrap; gap: 2px 6px; } .捕能 i { font-style: normal; color: var(--淡); margin-right: 1px; }
.捕技 { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.捕進 { display: flex; align-items: center; gap: 6px; } .捕進 i { flex: 1; height: 6px; background: #333; border-radius: 3px; overflow: hidden; } .捕進 b { display: block; height: 100%; background: #8fb0ff; }
.捕釦 { display: flex; gap: 6px; margin-top: 2px; } .捕釦 .釦 { padding: 2px 10px; font-size: 12px; }
/* 他勢力のターン中、動いている勢力の国（2026-10-20 自走 v0.1.78）: 43 が .手番 と --手番色 を入れる */
.国札.手番 { z-index: 4; }
.国札.手番 .紋 { box-shadow: 0 0 0 2px #fffc, 0 0 14px 6px var(--手番色, #ffd970); }
.国札.手番 .国名 { color: #fff3c4; }
.左上札 .手番勢 { margin-left: 8px; padding-left: 8px; border-left: 1px solid #fff3; color: #ffe9a8; font-weight: bold; }
/* 攻略進捗・敵国情報・店（2026-10-20 表→札。46） */
.勢頭 { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; } .勢頭 b { font-size: 16px; color: var(--金); }
.勢群 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.勢札 { display: flex; gap: 10px; align-items: center; padding: 6px 10px; text-align: left; border: 1px solid #3a4256; border-left: 6px solid #888; border-radius: 6px; background: #1b2232; color: var(--字); cursor: pointer; }
.勢札:hover:not(:disabled), .勢札.lv10-フォーカス, .勢札.lv10-focus { background: #262c3e; border-color: var(--金); } .勢札.自 { background: #1d2a40; } .勢札.滅 { opacity: .4; cursor: default; }
.勢顔 { width: 52px; height: 52px; flex: none; border-radius: 50%; background: #333 center 20% / cover no-repeat; }
.勢文 { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.勢名 { display: flex; gap: 6px; align-items: baseline; } .勢名 b { font-size: 15px; }
.勢状 { font-size: 11px; padding: 0 6px; border-radius: 3px; background: #333a4a; color: #cfd6e8; }
.勢数 { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: #cfd6e8; }
.勢帯 { height: 5px; background: #2a3040; border-radius: 3px; overflow: hidden; } .勢帯 b { display: block; height: 100%; }
.捕札.見るだけ { cursor: default; } .捕進 i.兵帯 b { background: #6fbf4a; }
.店頭 { display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; } .店頭 b { font-size: 18px; }
.品札.店 { cursor: default; } .品札.店 .釦 { padding: 4px 12px; }
.品札.話 .品印 { background: #e0866a; }
.店値 { display: flex; flex-direction: column; align-items: flex-end; margin-right: 4px; } .店値 b { font-size: 15px; color: #ffd970; } .店値 small { color: var(--淡); font-size: 11px; }
/* 札を並べて選ぶ窓（副将・点数コマンド。2026-10-20 自走 v0.1.79 T16 表→札）: 44 の 札() を格子に並べる */
.選札群 { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; max-height: 452px; overflow: auto; padding: 3px; }
.選札群 .武札 { flex: none; min-height: 88px; }
.選札群 .武札.満 { opacity: .45; }
.選札群 .武札.選中 { border-color: #7fdcff; box-shadow: 0 0 0 2px #7fdcff, 0 0 12px rgba(127,220,255,.45); }
.武札 .選点 { position: absolute; right: 3px; top: 46px; z-index: 2; min-width: 26px; padding: 1px 6px; border-radius: 11px; background: rgba(0,0,0,.78);
  border: 1px solid rgba(217,178,90,.7); color: #ffd970; font-size: 15px; font-weight: bold; text-align: center; }
.武札 .選印 { position: absolute; left: 3px; top: 46px; z-index: 2; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; background: #7fdcff;
  color: #0b1220; font-size: 15px; font-weight: bold; text-align: center; box-shadow: 0 0 6px #000; animation: 選印 .18s ease-out; }
@keyframes 選印 { from { transform: scale(1.8); opacity: 0; } }
.武札 .副増 { padding: 2px 3px; background: #0d1018; color: #8f8; font-size: 11px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.選頭 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16px; }
.選頭 > b { font-size: 20px; }
.選帯 { flex: 1; height: 10px; min-width: 120px; border: 1px solid #3a4256; border-radius: 5px; background: #1b2232; overflow: hidden; }
.選帯 b { display: block; height: 100%; background: linear-gradient(90deg, #a8771a, #ffd970); }
.選帯.足 b { background: linear-gradient(90deg, #3f9f4a, #8fe08f); }
/* 令窓: 施設の建設と店を2列の小さな札に（2026-10-20 自走 v0.1.80 T16）。縦一列で下がはみ出していたのを直す */
.令見出し { margin: 4px 2px 0; font-size: 11px; color: var(--淡); letter-spacing: .08em; border-bottom: 1px solid var(--線); padding-bottom: 2px; }
.令二列 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.令二列.店 { margin-top: 2px; }
.令.施設札 { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-height: 40px; padding: 3px 6px 3px 8px; line-height: 1.25; }
.令.施設札::before { display: none; }
.令.施設札 b { font-size: 13px; }
.令.施設札 small { font-size: 10px; color: #9fd0a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.令.施設札:disabled small { color: var(--淡); }
.令.施設札 .施設数 { position: absolute; right: 5px; top: 3px; font-size: 10px; color: var(--淡); }
.令.店札 { text-align: center; padding: 4px 6px; }
.令.店札::before { display: none; }
#令窓 { max-height: 676px; }   /* 43 が描いた後に高さを測って画面に収める（v0.1.80） */
/* 他勢力どうしの奪取の矢（2026-10-20 自走 v0.1.81）: 43 地.攻め矢(攻, 国, { 色 }) が .他 と --矢色 を入れる */
.攻め矢.他 path { stroke: var(--矢色, #ffd970); stroke-width: 5; filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 6px var(--矢色, #ffd970)); }
.攻め矢.他 polygon { fill: var(--矢色, #ffd970); filter: drop-shadow(0 0 2px #000); }
/* 兵力の窓の左下: 選んだ武将の兵の帯と軍ごとの兵（2026-10-20 自走 v0.1.82）: 44 兵の帯・軍の兵 */
.兵帯板, .軍兵板 { background: #161b27; border: 1px solid #2c3446; border-radius: 6px; padding: 8px 10px; }
.兵帯頭 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.兵帯頭 > b { font-size: 15px; color: var(--金); }
.兵帯頭 .数 { font-size: 17px; font-weight: bold; }
.兵帯頭 .予字 { margin-left: auto; color: #ffe27a; font-weight: bold; }
.兵帯 { position: relative; height: 16px; border-radius: 4px; background: #0d1018; border: 1px solid #3a4256; overflow: hidden; }
.兵帯 > b { position: absolute; top: 0; bottom: 0; transition: left .15s, width .15s; }
.兵帯 .今 { background: linear-gradient(#7fd85a, #3f9a2c); }
.兵帯 .欠 { background: repeating-linear-gradient(45deg, #8a2f2a 0 4px, #5a1f1c 4px 8px); }
.兵帯 .余 { background: rgba(110,160,255,.28); border-left: 1px solid #7fb8ff; }
.兵帯 .止 { background: repeating-linear-gradient(-45deg, #2a2f3c 0 3px, #161a24 3px 6px); }
.兵帯 .予 { width: 0; background: rgba(255,226,122,.85); box-shadow: 0 0 8px #ffd970; animation: 兵予 .7s ease-in-out infinite alternate; }
.兵帯 .予.解雇 { background: rgba(40,8,8,.85); box-shadow: inset 0 0 0 1px #ff6a5a; }
@keyframes 兵予 { from { opacity: .55; } to { opacity: 1; } }
.兵帯凡例 { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 5px; font-size: 12px; color: #c8cede; }
.兵帯凡例 i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; border-radius: 2px; }
.兵帯凡例 i.今 { background: #5fbf42; } .兵帯凡例 i.欠 { background: #8a2f2a; } .兵帯凡例 i.余 { background: rgba(110,160,255,.5); } .兵帯凡例 i.止 { background: #2a2f3c; border: 1px solid #444; }
.兵帯凡例 .倍 { color: #8f8; }
.軍兵板 { display: flex; flex-direction: column; gap: 5px; }
.軍兵 { display: grid; grid-template-columns: 44px 72px 1fr 92px 96px; align-items: center; gap: 8px; font-size: 13px; }
.軍兵 > b { color: var(--金); }
.軍兵 .数 { text-align: right; }
.軍兵 .費 { color: #ff9f8a; font-size: 12px; text-align: right; }
.軍兵.済 { opacity: .5; }
.兵帯.小 { height: 8px; }
/* 右下の記録を種類で色分け・頭にターン（2026-10-20 自走 v0.1.83）: 43 記録板 が 記+種 の class を付ける */
#記録帯 div small { display: inline-block; min-width: 28px; margin-right: 4px; color: #6f7890; font-size: 10px; }
#記録帯 .記制圧, #記録帯 .記滅亡 { color: #ffa592; }
#記録帯 .記防衛, #記録帯 .記障害 { color: #ffc77a; }
#記録帯 .記物語, #記録帯 .記イベント { color: #cdbaff; }
#記録帯 .記品, #記録帯 .記実績, #記録帯 .記大満足 { color: #ffe27a; }
#記録帯 .記レベル, #記録帯 .記覚醒 { color: #9fe89a; }
#記録帯 .記AI { color: #a9b2c6; }
.左上札 .手番勢 small { margin-left: 4px; color: #a9b2c6; font-weight: normal; font-size: 12px; }
/* 国に乗せた時の小さな情報札（2026-10-20 自走 v0.1.84）: 43 国の札を出す */
#国の札 { position: absolute; z-index: 7; pointer-events: none; min-width: 170px; max-width: 250px; padding: 6px 9px; border-radius: 6px;
  background: rgba(14,17,26,.94); border: 1px solid #6b5a2e; box-shadow: 0 6px 18px rgba(0,0,0,.6); font-size: 12px; animation: 国の札 .12s ease-out; }
#国の札.左 { transform: translateX(-100%); }
@keyframes 国の札 { from { opacity: 0; margin-top: 4px; } }
#国の札 .国札頭 { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
#国の札 .国札頭 b { font-size: 14px; }
#国の札 .国札頭 .淡 { margin-left: auto; }
#国の札 .国札行 { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 9px; margin-top: 3px; }
#国の札 .地域 { display: inline-flex; gap: 3px; }
#国の札 .地域 i { display: inline-block; width: 9px; height: 9px; border: 1px solid rgba(0,0,0,.7); }
#国の札 .地域 i.町 { border-radius: 2px; transform: rotate(45deg) scale(.85); } #国の札 .地域 i.野 { border-radius: 50%; }
#国の札 .国札状 { margin-top: 4px; padding-top: 3px; border-top: 1px solid #2c3446; }
#国の札 .国札状.自 { color: #8fc4ff; } #国の札 .国札状.攻 { color: #ff9f8a; } #国の札 .国札状.中 { color: #b8e0a8; } #国の札 .国札状.遠 { color: #7f889c; } #国の札 .国札状.目 { color: #ffb0a6; border-top: none; margin-top: 0; }
/* 周回ボーナスの窓を札に（2026-10-20 自走 v0.1.85）: 42 周.窓 */
.周回窓 { max-height: 470px; overflow: auto; padding-right: 4px; }
.周頭 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.周頭 .数 { font-size: 20px; font-weight: bold; }
.周帯 { flex: 1; height: 10px; min-width: 140px; border: 1px solid #3a4256; border-radius: 5px; background: #1b2232; overflow: hidden; }
.周帯 b { display: block; height: 100%; background: linear-gradient(90deg, #a8771a, #ffd970); }
.周見出し { margin: 10px 0 5px; padding-bottom: 2px; border-bottom: 1px solid var(--線); color: var(--淡); font-size: 12px; letter-spacing: .08em; }
.周見出し b { color: var(--金); }
.周群 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.周群.実 { grid-template-columns: repeat(3, 1fr); }
.周札, .実札 { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 52px; padding: 5px 8px 5px 34px;
  border: 1px solid #3a4256; border-radius: 6px; background: #1b2232; color: #e8e2cf; text-align: left; font: inherit; }
.周札 { cursor: pointer; }
.周札:hover, .周札.lv10-focus { border-color: var(--金); }
.周札 b, .実札 b { font-size: 13px; }
.周札 small, .実札 small { font-size: 11px; color: #9fb0c8; line-height: 1.3; }
.周点 { position: absolute; left: 6px; top: 8px; width: 22px; height: 22px; line-height: 22px; border-radius: 50%; background: #2a2416; border: 1px solid #a8771a;
  color: #ffd970; font-size: 12px; font-weight: bold; text-align: center; }
.周札.選択 { border-color: var(--金); background: #2c2818; box-shadow: 0 0 0 1px rgba(217,178,90,.5), 0 0 10px rgba(217,178,90,.25); }
.周札.不足 { opacity: .45; }
.周札.仲 { padding-right: 58px; }
.周顔 { position: absolute; right: 6px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 6px; background: center / cover no-repeat; border: 1px solid rgba(217,178,90,.4); }   /* 仲間の札の顔（2026-11-08） */
.周札.仲 .周印 { right: 54px; }
.周印 { position: absolute; right: 6px; top: 5px; color: #ffd970; font-weight: bold; animation: 選印 .18s ease-out; }
.実札 { opacity: .6; }
.実札.取 { opacity: 1; border-color: #a8771a; background: linear-gradient(#2a2416, #1b2232); }
/* レベルが上がった時の札（2026-10-20 自走 v0.1.86）: 47 が #舞台 の右上に積む。見た目だけ（押す邪魔をしない） */
.Lv箱 { position: absolute; right: 14px; top: 78px; z-index: 60; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.Lv札 { display: flex; align-items: center; gap: 8px; width: 230px; padding: 5px 10px 5px 5px; border-radius: 6px; background: linear-gradient(90deg, rgba(60,44,12,.95), rgba(20,22,30,.92));
  border: 1px solid #d9b25a; box-shadow: 0 0 14px rgba(255,200,80,.35), 0 4px 12px rgba(0,0,0,.6); animation: Lv札 2.8s ease-out forwards; }
.Lv顔 { width: 44px; height: 44px; flex: none; border-radius: 4px; background: #111 center 20% / cover no-repeat; border: 1px solid #a8771a; }
.Lv文 { display: flex; flex-direction: column; min-width: 0; }
.Lv文 b { font-size: 14px; color: #fff; }
.Lv数 { color: #ffd970; font-weight: bold; font-size: 13px; } .Lv数 em { font-style: normal; font-size: 20px; text-shadow: 0 0 8px rgba(255,200,80,.8); }
.Lv文 small { font-size: 11px; color: #9fe89a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes Lv札 { 0% { opacity: 0; transform: translateX(40px) scale(.9); } 10% { opacity: 1; transform: none; } 16% { transform: scale(1.04); } 22% { transform: none; } 82% { opacity: 1; } 100% { opacity: 0; transform: translateX(20px); } }
/* 出撃準備: 斥候の後の 自軍と相手の総兵力の比べ（2026-10-20 自走 v0.1.87）: 44 比帯 */
.比帯 { display: flex; width: 120px; height: 10px; margin-left: 10px; border-radius: 5px; overflow: hidden; border: 1px solid #3a4256; flex: none; }
.比帯 b { display: block; height: 100%; transition: width .2s; }
.比帯 .自 { background: linear-gradient(90deg, #2f6fc4, #7fb8ff); }
.比帯 .敵 { flex: 1; background: linear-gradient(90deg, #ff6a5a, #a8322a); }
/* 下の帯の数が変わった時の浮字（2026-10-20 自走 v0.1.88）: 43 下帯 の 箱 */
#下帯 .値箱 { position: relative; }
#下帯 .値箱.増 .数 { animation: 帯増 1.2s ease-out; } #下帯 .値箱.減 .数 { animation: 帯減 1.2s ease-out; }
@keyframes 帯増 { 0%, 30% { color: #9fff8a; text-shadow: 0 0 8px #5fff5f; } }
@keyframes 帯減 { 0%, 30% { color: #ff9a8a; text-shadow: 0 0 8px #ff4a3a; } }
.帯浮字 { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); white-space: nowrap; pointer-events: none; font-size: 15px; font-weight: bold;
  text-shadow: 0 0 4px #000, 0 1px 2px #000; animation: 帯浮字 1.6s ease-out forwards; }
.帯浮字.増 { color: #b6ff9a; } .帯浮字.減 { color: #ffa592; }
@keyframes 帯浮字 { 0% { opacity: 0; margin-bottom: -4px; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; margin-bottom: 22px; } }
/* ターン終了の横の未行動の人数・使い切ったら促す光（2026-10-20 自走 v0.1.89）: 43 下帯 */
.未行動札 { margin-left: auto; padding: 0 8px; border-radius: 3px; background: #0d0f15; border: 1px solid #2f5b8f; color: #9fc8ff; font-size: 12px; white-space: nowrap; }
.未行動札.無 { border-color: #3a3322; color: var(--淡); }
#下帯 .終了釦.促す { animation: 促す 1.3s ease-in-out infinite; }
@keyframes 促す { 0%, 100% { box-shadow: 0 0 0 1px var(--金); } 50% { box-shadow: 0 0 0 2px #ffd970, 0 0 14px 3px rgba(255,200,80,.7); } }
/* 右下の記録を押すと記録の窓（2026-10-20 自走 v0.1.90）: 43 記録板 */
#記録帯 { position: relative; }
#記録帯 .記録すべて { position: absolute; right: -4px; top: -4px; z-index: 1; pointer-events: auto; padding: 0 6px; border: 1px solid #3a3322; border-radius: 3px;
  background: #0d0f15; color: #8f98ac; font: inherit; font-size: 11px; cursor: pointer; }
#記録帯 .記録すべて:hover, #記録帯 .記録すべて.lv10-focus { color: var(--金); border-color: var(--金); }
/* 物語の章の目標（2026-10-20 自走 v0.1.91）: 43 章目標。左上札の中の小さな釦 */
.左上札 .章目標 { margin-left: 6px; padding: 0 8px; min-height: 0; border: 1px solid #8a3a30; border-radius: 3px; background: #2a1412; color: #ffb0a6; font: inherit; font-size: 12px; cursor: pointer; pointer-events: auto; }
.左上札 .章目標 b { color: #fff; }
.左上札 .章目標:hover, .左上札 .章目標.lv10-focus { border-color: #ff5a4a; box-shadow: 0 0 6px rgba(255,90,74,.6); }
.左上札 .章目標:disabled { opacity: .6; cursor: default; }
/* 点数コマンドの進みの浮字（2026-10-20 自走 v0.1.94）: 43 令の浮字。国札の下に出す（上の 浮字＝国力+1 などと重ねない） */
.国札 .令浮字 { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); z-index: 6; white-space: nowrap; pointer-events: none; padding: 1px 7px; border-radius: 3px;
  font-size: 13px; font-weight: bold; text-shadow: 0 0 3px #000; animation: 令浮字 2.4s ease-out forwards; }
.国札 .令浮字.途中 { color: #bfe0ff; background: rgba(20,40,70,.85); border: 1px solid #4f86c6; }
.国札 .令浮字.達成 { color: #fff3c4; background: rgba(70,52,14,.9); border: 1px solid #ffd970; box-shadow: 0 0 10px rgba(255,200,80,.6); }
@keyframes 令浮字 { 0% { opacity: 0; margin-top: 10px; } 12% { opacity: 1; margin-top: 2px; } 80% { opacity: 1; } 100% { opacity: 0; margin-top: -6px; } }
/* 特訓の武将選び: 経験の帯と Lv↑（2026-10-20 自走 v0.1.96）: 44 選択窓（設定.特訓） */
.選頭 .空き { flex: 1; }
.武札 .経帯 { position: relative; height: 13px; background: #0d1018; }
.武札 .経帯 b, .武札 .経帯 i { position: absolute; top: 0; bottom: 0; }
.武札 .経帯 b { left: 0; background: #a8771a; }
.武札 .経帯 i { background: #ffe27a; box-shadow: 0 0 6px #ffd970; animation: 兵予 .7s ease-in-out infinite alternate; }
.武札 .経帯 span { position: relative; display: block; text-align: center; font-size: 10px; line-height: 13px; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.武札 .選Lv { position: absolute; right: 3px; top: 46px; z-index: 2; padding: 0 5px; border-radius: 3px; background: linear-gradient(#ffe27a, #d9a520); color: #2a1a00;
  font-size: 12px; font-weight: bold; box-shadow: 0 0 8px rgba(255,210,90,.8); animation: 選印 .18s ease-out; }
/* 下の帯の釦の小さな印（2026-10-20 自走 v0.1.97）: 兵力＝補充できる武将の数 */
#下帯 .釦 { position: relative; }
#下帯 .釦印 { position: absolute; right: -5px; top: -6px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; border-radius: 8px; background: #c8402e;
  color: #fff; font-size: 10px; font-weight: bold; text-align: center; box-shadow: 0 0 0 1px #0d0f15; pointer-events: none; }
/* 勢力が滅んだ時の帯（2026-10-20 自走 v0.1.98）: 47 が #舞台 に出す。見た目だけ */
.滅帯 { position: absolute; left: 0; right: 0; height: 70px; z-index: 55; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 22px;
  background: linear-gradient(90deg, transparent, rgba(60,8,6,.88) 20%, rgba(60,8,6,.88) 80%, transparent);
  border-top: 1px solid rgba(255,90,74,.55); border-bottom: 1px solid rgba(255,90,74,.55); animation: 滅帯 2.4s ease-out forwards; }
.滅帯 .勢 { font-size: 22px; color: #f0e6d8; padding-left: 10px; border-left: 5px solid; text-shadow: 0 0 6px #000; }
.滅帯 b { font-size: 40px; color: #ff6a5a; letter-spacing: .2em; text-shadow: 0 0 10px #000, 0 0 18px rgba(255,60,40,.7); }
@keyframes 滅帯 { 0% { opacity: 0; transform: scaleY(.2); } 12% { opacity: 1; transform: none; } 78% { opacity: 1; } 100% { opacity: 0; } }
/* 出撃準備の配置6枠: 行の左に前衛／後衛の印（2026-10-20 自走 v0.1.99）: 44 陣形 */
.陣形2 { grid-template-columns: 18px repeat(3, 1fr); }
.陣列印 { display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; font-size: 11px; font-weight: bold; letter-spacing: .2em; border-radius: 3px; }
.陣列印.前 { color: #ff8a5c; background: rgba(255,138,92,.12); } .陣列印.後 { color: #7fc4ff; background: rgba(127,196,255,.12); }
/* 他国から戦略版（新規）の勢力の値と武将を札に（2026-10-20 自走 v0.1.100）: 41 新規描画 */
.新規値 { display: flex; gap: 6px; margin-bottom: 8px; }
.新規値 span { display: flex; align-items: baseline; gap: 6px; padding: 1px 10px; border: 1px solid #2c3446; border-radius: 4px; background: #161b27; }
.新規値 small { font-size: 11px; color: var(--淡); } .新規値 b { font-size: 15px; color: #ffd970; }
.新規将群 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; max-height: 150px; overflow: auto; margin-bottom: 8px; padding-right: 4px; }
.新規将 { display: flex; gap: 8px; padding: 5px; border: 1px solid #2c3446; border-radius: 6px; background: #1b2232; min-width: 0; }
.新規将.汎用 { align-items: center; justify-content: center; border-style: dashed; background: transparent; }
.新規顔 { width: 58px; height: 58px; flex: none; border-radius: 4px; background: #111 center 20% / cover no-repeat; border: 1px solid #3a4256; }
.新規将身 { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.新規将頭 { display: flex; gap: 8px; align-items: baseline; } .新規将頭 b { font-size: 14px; } .新規将頭 span { font-size: 12px; }
.新規能 { display: flex; flex-wrap: wrap; gap: 0 7px; font-size: 12px; font-weight: bold; } .新規能 i { font-style: normal; font-weight: normal; color: var(--淡); margin-right: 1px; }
.新規技 { font-size: 11px; color: #9fb0c8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 合戦結果の表を札に（2026-10-20 自走 v0.1.102）: 45 終わる */
.結果群 { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; max-width: 560px; }
.結損 { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid #2c3446; border-radius: 6px; background: #161b27; }
.結損数 { display: flex; flex-direction: column; min-width: 92px; } .結損数.受 { text-align: right; }
.結損数 small { font-size: 11px; color: var(--淡); } .結損数 b { font-size: 20px; }
.結損数.与 b { color: #8fc4ff; } .結損数.受 b { color: #ff9a8a; }
.結損帯 { flex: 1; display: flex; height: 10px; border-radius: 5px; overflow: hidden; border: 1px solid #3a4256; }
.結損帯 b { display: block; height: 100%; } .結損帯 .与 { background: linear-gradient(90deg, #2f6fc4, #7fb8ff); } .結損帯 .受 { flex: 1; background: linear-gradient(90deg, #ff6a5a, #a8322a); }
.結行 { display: flex; align-items: flex-start; gap: 10px; padding: 4px 10px; border-left: 3px solid #3a4256; background: rgba(255,255,255,.02); border-radius: 3px; }
.結行.良 { border-left-color: #d9b25a; } .結行.悪 { border-left-color: #c8402e; }
.結題 { flex: none; min-width: 92px; font-size: 12px; color: var(--淡); padding-top: 3px; }
.結文 { font-size: 15px; font-weight: bold; }
/* 入手の品（2026-11-08）: 絵・名・効き目。出る時に少し大きく光ってから落ち着く */
.結品 { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; animation: 結品出る .6s ease-out both; }
.結品 > i { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 8px; background: #141a26 center / cover no-repeat; border: 1px solid rgba(217,178,90,.6); box-shadow: 0 0 10px rgba(255,217,112,.35); }
.結品 > b { font-size: 15px; color: #ffd970; } .結品 > small { font-size: 12px; color: #c9d4e6; }
.結品.静 { animation: none; }
.結闘 { display: inline-flex; align-items: baseline; gap: 10px; animation: 結品出る .6s ease-out both; } .結闘 > b { font-size: 16px; color: #ffd970; text-shadow: 0 0 8px rgba(255,217,112,.5); } .結闘 > small { color: #c9d4e6; } .結闘.静 { animation: none; }   /* 闘技場の突破（2026-11-08） */
@keyframes 結品出る { 0% { opacity: 0; transform: scale(.7); filter: brightness(1.8); } 60% { opacity: 1; transform: scale(1.06); } 100% { transform: scale(1); filter: none; } }
.結人 { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.結顔札 { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 1px; border: 1px solid #2c3446; border-radius: 13px; background: #1b2232; font-size: 13px; }
.結顔札 i { width: 24px; height: 24px; border-radius: 50%; background: #111 center 20% / cover no-repeat; }
/* 合戦: 技に乗せた時の損害の見込み（45 見込みを出す。2026-10-20 自走） */
.隊 .見込 { position: absolute; left: 6px; bottom: 14px; z-index: 3; padding: 1px 8px; border-radius: 4px; font-size: 17px; font-weight: bold;
    color: #ffd2c8; background: rgba(90,10,10,.82); border: 1px solid #e0614f; text-shadow: 0 1px 2px #000; pointer-events: none; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.7); }
.隊 .見込.撃 { color: #fff; background: rgba(160,20,20,.92); border-color: #ff9a7a; }
.隊 .見込.反 { color: #ffe0b0; background: rgba(90,50,0,.85); border-color: #d9a040; font-size: 13px; }
.隊 .見込.回 { color: #d2ffd2; background: rgba(10,70,20,.85); border-color: #5fc46a; }
.隊:not(.敵) .見込 { bottom: 0; font-size: 13px; padding: 0 6px; }   /* 自陣の札は左に字（気力）があるので、帯の上に小さく。右は技の説明の吹き出しに隠れやすい */
.隊 .兵 i.見帯 { position: absolute; top: 0; bottom: 0; z-index: 2; background: repeating-linear-gradient(45deg, #ff5a45 0 4px, #ffb0a0 4px 7px); animation: 見込点 .6s ease-in-out infinite alternate; }
.隊 .兵 i.見帯.反 { background: repeating-linear-gradient(45deg, #e09a30 0 4px, #ffd890 4px 7px); }
.隊 .兵 i.見帯.回 { background: repeating-linear-gradient(45deg, #4fd16a 0 4px, #c8ffd0 4px 7px); }
@keyframes 見込点 { from { opacity: 1; } to { opacity: .55; } }
/* 地図の右下の記録の上: 全補充と使う金（2026-10-20 本人指示。43 記録板） */
.補充行 { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; padding-bottom: 5px; border-bottom: 1px solid #3a3322; }
.補充釦 { pointer-events: auto; padding: 3px 14px; border: 1px solid var(--金); border-radius: 3px; background: linear-gradient(#3a3018, #221c0e); color: #ffe27a; font-size: 13px; font-weight: bold; cursor: pointer; }
.補充釦:hover:not(:disabled), .補充釦.lv10-focus { background: linear-gradient(#5a4820, #33280f); box-shadow: 0 0 8px rgba(217,178,90,.6); }
.補充釦:disabled { border-color: #3a3322; color: var(--淡); background: #15130d; cursor: default; }
.補充費 { display: flex; align-items: baseline; gap: 5px; font-size: 12px; color: #cfd6e6; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.補充費 b { font-size: 15px; color: #ffd970; } .補充費 small { color: var(--淡); }
.補充費.不足 b { color: #ff8a7a; } .補充費.無 { color: var(--淡); }
/* 品の窓: 付ける・使うと変わる能力（46 能の行。2026-10-20 自走） */
.品者能 { display: flex; flex-wrap: wrap; gap: 0 7px; color: #9aa3b8; }
.品者能 .増 { color: #7dff9a; font-weight: bold; } .品者能 .減 { color: #ffae7a; font-weight: bold; }
/* 合戦の行動順: 技に乗せた間は使った後の順（45 順板を描く。2026-10-20 自走） */
.順板.予告中 .順行 { opacity: .8; }
.順板.予告中 .順行.予 { opacity: 1; background: #2a3550; box-shadow: 0 0 0 1px #8fc8ff; animation: 見込点 .7s ease-in-out infinite alternate; }
.順行.予 small { color: #8fc8ff; font-weight: bold; }
.順行.後 { margin-top: 4px; }
.順行.尽 { justify-content: center; color: #ff9a7a; background: #2a1c1c; border-left-style: dashed; }
/* 合戦: 右の技の行に乗せた時に狙える札（45 狙いを出す。2026-10-20 自走） */
.隊.狙い { border-color: #8fc8ff; box-shadow: 0 0 0 2px #8fc8ff, 0 0 14px rgba(143,200,255,.55); }
/* 技能書店: 使える自軍の武将の顔と人数・所持（46 使い手。2026-10-20 自走） */
.店使い手 { display: flex; align-items: center; gap: 3px; margin-top: 3px; font-size: 11px; color: #cfd6e6; }
.店使い手 .顔丸 { width: 20px; height: 20px; }
.店使い手 .店持 { margin-left: 6px; padding: 0 5px; border: 1px solid #5a6a8a; border-radius: 3px; color: #bcd0ff; }
/* 合戦: 技が当たる札を先に赤く縁取る（45 前の演出。2026-10-20 自走） */
.隊.狙われ { border-color: #ff6a55; box-shadow: 0 0 0 2px #ff6a55, 0 0 18px rgba(255,90,70,.7); animation: 狙われ点 .22s ease-in-out infinite alternate; }
@keyframes 狙われ点 { from { box-shadow: 0 0 0 2px #ff6a55, 0 0 8px rgba(255,90,70,.4); } to { box-shadow: 0 0 0 3px #ffb0a0, 0 0 22px rgba(255,90,70,.85); } }
/* 合戦: 行動順の行に乗せた部隊（45 部隊を覗く。2026-10-20 自走） */
.順行 { cursor: default; } .順行:hover { background: #262f45; }
.隊.覗き { box-shadow: 0 0 0 2px var(--金), 0 0 14px rgba(217,178,90,.6); }
.技帯 .手番板.覗き中 { border-color: var(--金); box-shadow: 0 0 10px rgba(217,178,90,.35); }
/* 合戦結果: 自軍の部隊ごとの兵と経験（45 終わる。2026-10-20 自走） */
.結自群 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 6px; flex: 1; min-width: 0; }
.結自札 { display: flex; align-items: center; gap: 6px; padding: 2px 6px 2px 2px; border: 1px solid #2c3446; border-radius: 6px; background: #1b2232; min-width: 0; }
.結自札 > i { width: 30px; height: 30px; border-radius: 50%; flex: none; background: #111 center 20% / cover no-repeat; }
.結自札.撃 > i { filter: grayscale(1) brightness(.6); }
.結自文 { display: flex; flex-direction: column; min-width: 0; font-size: 11px; color: #cfd6e6; line-height: 1.25; }
.結自文 b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.結自文 .減 { color: #ff9a8a; }
.結経 { display: flex; align-items: center; gap: 4px; } .結経 small { color: var(--淡); font-size: 10px; }
.結経 i { position: relative; flex: 1; height: 4px; min-width: 40px; background: #2a3142; border-radius: 2px; overflow: hidden; }
.結経 i b { position: absolute; left: 0; top: 0; bottom: 0; background: #d9b25a; }
/* 捕虜の札: 今のターンに出せる交渉の分と届くか（46 捕虜窓。2026-10-20 自走） */
.捕進 i { position: relative; }
.捕進 i b.今 { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #e8c860 0 3px, #8a7430 3px 6px); }
.捕進 .届 { font-size: 11px; font-weight: bold; color: #7dff9a; white-space: nowrap; } .捕進 .届かず { font-size: 11px; color: #ffae7a; white-space: nowrap; }
/* ロード: セーブの札（41 ロード窓。2026-10-20 自走） */
.ロード札 { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; text-align: left; border: 1px solid #3a4256; border-left: 5px solid #888; border-radius: 6px; background: #1b2232; color: var(--字); cursor: pointer; }
.ロード札:hover, .ロード札.lv10-フォーカス, .ロード札.lv10-focus { border-color: var(--金); background: #262c3e; }
.ロード顔 { width: 46px; height: 46px; border-radius: 50%; flex: none; background: #111 center 20% / cover no-repeat; }
.ロード文 { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ロード頭 { display: flex; align-items: baseline; gap: 8px; } .ロード頭 b { font-size: 15px; } .ロード章 { font-size: 12px; color: #ffd970; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ロード数 { font-size: 12px; color: #cfd6e6; }
.ロード帯 { position: relative; display: block; height: 4px; background: #2a3142; border-radius: 2px; overflow: hidden; } .ロード帯 b { position: absolute; left: 0; top: 0; bottom: 0; }
.ロード日 { flex: none; font-size: 11px; color: var(--淡); align-self: flex-end; }
/* 合戦の背景: 戦う国のあたりの衛星図（45 組む。2026-10-20 自走）。盤より下に敷く */
#画面_合戦 { isolation: isolate; }
#画面_合戦 .戦景 { position: absolute; inset: 0; z-index: -1; background-repeat: no-repeat; filter: brightness(.6) saturate(.85) blur(1px); pointer-events: none; animation: 戦景寄る 40s ease-in-out infinite alternate; }
#画面_合戦 .戦景::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 36% 50%, rgba(10,14,22,.05) 0%, rgba(10,14,22,.6) 80%), linear-gradient(90deg, rgba(10,14,22,0) 60%, rgba(10,14,22,.85) 72%); }
#画面_合戦 .戦景.城 { filter: brightness(.55) saturate(.65) sepia(.25) blur(1px); }
@keyframes 戦景寄る { from { transform: scale(1); } to { transform: scale(1.06); } }
#画面_合戦 .戦景.場面 { background-size: cover; background-position: center; filter: brightness(.5) saturate(.85) blur(2px); }
/* 攻略進捗: 大陸の割合の帯（46 勢力窓。2026-10-20 自走） */
.勢割 { display: flex; height: 18px; margin: 6px 0 8px; border-radius: 4px; overflow: hidden; background: #2a3142; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.勢割 b { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; font-size: 11px; color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; border-right: 1px solid rgba(0,0,0,.45); white-space: nowrap; }
/* 合戦: 当たり方の絵（45 後の演出。2026-10-20 自走）。斬撃＝交差する2本の筋・着弾＝火花の輪・魔撃＝紫の輪 */
.効.斬撃 { width: 190px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 40%, #ffe9a0 60%, rgba(255,255,255,0)); box-shadow: 0 0 10px #fff, 0 0 18px #ffcf60; animation-name: 斬撃; }
.効.斬撃::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; box-shadow: inherit; transform: rotate(50deg); }
@keyframes 斬撃 { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-25deg) scaleX(.1); } 30% { opacity: 1; transform: translate(-50%, -50%) rotate(-25deg) scaleX(1.1); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-25deg) scaleX(1.2); } }
.効.着弾 { width: 60px; height: 60px; border-radius: 50%; border: 3px dotted #ffe08a; box-shadow: 0 0 14px #ffb040, inset 0 0 12px #ffb040; animation-name: 着弾; }
@keyframes 着弾 { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.2) rotate(0); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.2) rotate(40deg); } }
.効.魔撃 { width: 90px; height: 90px; border-radius: 50%; border: 3px solid #d7a8ff; box-shadow: 0 0 20px #a066ff, inset 0 0 20px #a066ff; animation-name: 魔撃; }
@keyframes 魔撃 { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.3); } 60% { opacity: .9; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); } }
/* 令窓は頭をつかんで動かせる・位置を覚える（2026-10-20 本人指示。43 令窓を引く） */
#令窓 .令頭 { cursor: move; user-select: none; touch-action: none; }
#令窓.引き中 { box-shadow: 0 6px 24px rgba(0,0,0,.7), 0 0 0 1px var(--金); opacity: .92; }
/* 合戦: 戦果の帯の両端の割合（45。2026-10-20 自走） */
.戦果帯 .戦果率 { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font-size: 13px; font-weight: bold; color: #fff; text-shadow: 0 1px 2px #000, 0 0 4px #000; pointer-events: none; }
.戦果帯 .戦果率.自 { left: 8px; } .戦果帯 .戦果率.敵 { right: 8px; }
/* 合戦: 札の上の技の数字（数字キーで選べる。45 札を開く。2026-10-20 自走） */
.技札群 .釦 .技番 { flex: none; width: 15px; height: 15px; margin-right: 6px; border-radius: 3px; background: #3a3322; color: #ffd970; font-size: 10px; font-style: normal; line-height: 15px; text-align: center; }
/* 記録の窓（46 記録窓。2026-10-20 自走）: ターンの見出しと種類の色（右下の記録と同じ） */
.記録群 { max-height: 520px; overflow: auto; margin-top: 8px; font-size: 13px; color: #cfd6e6; }
.記録T { position: sticky; top: 0; z-index: 1; margin-top: 6px; padding: 2px 8px; background: #232b3d; border-left: 3px solid var(--金); color: #ffd970; font-size: 12px; font-weight: bold; }
.記録行 { padding: 2px 8px 2px 14px; border-bottom: 1px solid rgba(255,255,255,.04); }
.記録行.記制圧, .記録行.記滅亡 { color: #ffa592; } .記録行.記防衛, .記録行.記障害 { color: #ffc77a; }
.記録行.記物語, .記録行.記イベント { color: #cdbaff; } .記録行.記品, .記録行.記実績, .記録行.記大満足 { color: #ffe27a; }
.記録行.記レベル, .記録行.記覚醒 { color: #9fe89a; } .記録行.記AI { color: #a9b2c6; }
/* 合戦: 時間の目盛りの右に残りの数（45。2026-10-20 自走） */
.時間帯 .時残 { margin-left: 8px; font-size: 12px; line-height: 14px; color: #cfd6e6; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.時間帯 .時残.少 { color: #ff8a7a; font-weight: bold; }
/* 終わりの窓（46 終了窓。2026-10-20 自走）: 自軍の顔の列 */
.終字 { animation: 結果字 .9s ease-out both; } .終字.勝 { text-shadow: 0 0 18px rgba(255,215,106,.8); }
.終顔群 { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 4px 0 2px; }
.終顔 { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10px; color: #cfd6e6; }
.終顔 .顔丸 { width: 36px; height: 36px; border: 1px solid #5a4a22; }
/* 合戦: 準備中の技が当たる札の印（45 描く。2026-10-20 自走）。自軍の札は右上（左は字）・相手の札は左上（右は字） */
.隊 .準狙 { position: absolute; top: 4px; z-index: 2; padding: 0 6px; border-radius: 3px; font-size: 12px; font-weight: bold; white-space: nowrap; pointer-events: none;
    color: #ffe0b0; background: rgba(110,50,0,.88); border: 1px solid #ff9a40; box-shadow: 0 0 8px rgba(255,140,40,.6); animation: 準狙点 .9s ease-in-out infinite alternate; }
.隊 .準狙.自 { right: 6px; } .隊 .準狙.敵 { left: 6px; }
@keyframes 準狙点 { from { box-shadow: 0 0 4px rgba(255,140,40,.4); } to { box-shadow: 0 0 12px rgba(255,140,40,.9); } }
.隊 .準狙.撃 { color: #fff; background: rgba(150,20,20,.92); border-color: #ff7a6a; }
/* 武将選びの窓は一覧と同じ升目（空き枠も詰めない。2026-10-20 本人指示。44 選択窓） */
.選札群.升目 .選空 { min-height: 88px; border: 1px dashed #2c3446; border-radius: 4px; background: rgba(13,16,24,.5); }
.選札群.升目 .武札.済 { cursor: default; }
/* 合戦: 相手の札の捕獲の率（45 描く。2026-10-20 自走）。左上（準備の印はその下へ） */
.隊 .捕印 { position: absolute; top: 4px; left: 6px; z-index: 2; padding: 0 5px; border-radius: 3px; font-size: 11px; font-weight: bold; white-space: nowrap; pointer-events: none; color: #d6e4ff; background: rgba(20,30,60,.85); border: 1px solid #5a7ab8; }
.隊 .捕印.確 { color: #fff3c0; background: rgba(90,70,10,.92); border-color: #ffd970; box-shadow: 0 0 8px rgba(255,217,112,.6); }
.隊 .準狙.敵 { top: 24px; }
/* 合戦: 演出の速さの釦（45 組む。2026-10-20 自走）。オート・委任の下 */
.戦右上.二段 { top: 48px; } .戦右上 .戦速 { padding: 2px 10px; font-size: 12px; }
/* 合戦: 記録の「すべて ▸」と記録の窓（45 記録の窓。2026-10-20 自走） */
.戦ログすべて { position: absolute; right: 0; bottom: 0; padding: 0 6px; border: 1px solid #3a3322; border-radius: 3px; background: rgba(20,24,34,.9); color: #b9a76a; font-size: 11px; cursor: pointer; }
.戦ログすべて:hover, .戦ログすべて.lv10-focus { color: var(--金); border-color: var(--金); }
.戦記録群 { max-height: 520px; overflow: auto; font-size: 13px; color: #cfd6e6; }
.戦記録行 { padding: 1px 8px 1px 14px; }
.戦記録行.ダメ, .戦記録行.反撃 { color: #ffb0a0; } .戦記録行.回復 { color: #9fe89a; } .戦記録行.撃破 { color: #ff7a6a; font-weight: bold; }
.戦記録行.ガード, .戦記録行.バリア { color: #ffd970; } .戦記録行.行動, .戦記録行.準備発動 { color: #fff; }
/* 敵国情報: 勧誘に要る交渉・捕まらない（46 敵情報。2026-10-20 自走） */
.捕能 .敵勧 { margin-left: auto; padding: 0 5px; border: 1px solid #5a6a8a; border-radius: 3px; color: #bcd0ff; } .捕能 .敵勧.不 { border-color: #6a4a4a; color: #c99; }
/* 他国から戦略版: 勢力の一覧の主の顔（41 新規描画。2026-10-20 自走） */
.新規主顔 { display: inline-block; width: 24px; height: 24px; margin: 0 6px 0 2px; vertical-align: middle; border-radius: 50%; border: 2px solid #888; background: #111 center 20% / cover no-repeat; }
/* 周回ボーナスのポイントを窓の頭（題と ✕ の間）に（2026-10-20 本人指示。42 周.窓） */
.窓頭 .周頭 { flex: 2; margin: 0 6px 0 0; }
/* 仲間入りの札（2026-10-20 自走 39。47 R7.仲間入り）: 勧誘の成功・浪人登用。画面の中ほどに出て消える・押す邪魔をしない */
.入札 { position: absolute; left: 50%; top: 200px; z-index: 60; width: 460px; height: 200px; margin-left: -230px; display: flex; overflow: hidden; pointer-events: none;
    border: 1px solid #d9a520; border-radius: 8px; background: linear-gradient(100deg, rgba(70,52,14,.97), rgba(18,20,30,.96) 62%);
    box-shadow: 0 0 0 1px #000, 0 10px 40px rgba(0,0,0,.7), 0 0 30px rgba(255,200,80,.35); animation: 入札 ease-out both; }
.入絵 { width: 170px; flex: none; background: #111 center 20% / cover no-repeat; border-right: 1px solid #a8771a; }
.入絵.立 { background-size: cover; background-position: 50% 0; }   /* 220% だと絵によって頭の一部しか出なかった（2026-10-20 本人 アリス・ミツマタ）→ 幅に合わせて上から */
.入文 { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.入題 { font-size: 15px; letter-spacing: .4em; color: #ffd76a; text-shadow: 0 0 8px rgba(255,190,60,.8); }
.入名 { display: flex; align-items: baseline; gap: 12px; }
.入名 b { font-size: 30px; color: #fff; text-shadow: 0 0 6px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.入名 span { font-size: 15px; font-weight: bold; }
.入兵 { font-size: 17px; color: #9fe89a; }
.入能 { display: flex; gap: 14px; font-size: 20px; color: #fff; font-weight: bold; }
.入能 i { font-style: normal; font-size: 12px; color: #c9b88a; margin-right: 3px; font-weight: normal; }
.入光 { position: absolute; top: -20px; bottom: -20px; left: -40%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255,240,190,.45), transparent); transform: skewX(-18deg); animation: 入光 ease-out both; }
@keyframes 入札 { 0% { opacity: 0; transform: translateY(24px) scale(.92); } 10% { opacity: 1; transform: none; } 15% { transform: scale(1.03); } 20% { transform: none; } 84% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes 入光 { 0%, 8% { left: -40%; } 32% { left: 120%; } 100% { left: 120%; } }
/* タイトルの「つづきから」（2026-10-20 自走 39。41 題.開く）: いちばん新しいセーブ。ある時は釦が6つになるので少し上から並べる */
.題釦群.続きあり { top: 330px; gap: 6px; }   /* DLC の釦を足して7つ（2026-11-08）: 720px に収める */
.題釦群.続きあり .釦:not(.続き釦) { padding: 8px 10px; }
.題釦群 .続き釦 { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 10px; }
.続き題 { font-size: 18px; }
.続き詳 { font-size: 12px; color: #d8c79a; font-weight: normal; letter-spacing: .02em; }
/* 捕虜の解放で札が「骨 +N」を浮かべて消える・品を付けた／使った時の札（2026-10-20 自走 39。46） */
.捕札 { position: relative; }
.捕札.去る { animation: 捕去る .52s ease-in forwards; pointer-events: none; }
.捕札 .捕骨 { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-size: 20px; font-weight: bold; color: #f3e6c4; text-shadow: 0 0 6px #000, 0 0 10px rgba(255,220,150,.8); animation: 捕骨 .52s ease-out forwards; pointer-events: none; }
@keyframes 捕去る { 0% { opacity: 1; } 40% { opacity: 1; filter: brightness(1.5); } 100% { opacity: 0; transform: scale(.94); filter: grayscale(1); } }
@keyframes 捕骨 { 0% { opacity: 0; top: 40%; } 25% { opacity: 1; } 100% { opacity: 1; top: 0%; } }
.品効札 { position: absolute; left: 50%; top: 240px; z-index: 60; width: 520px; margin-left: -260px; display: flex; gap: 12px; align-items: center; padding: 10px 14px; pointer-events: none;
    border: 1px solid #6fbf8a; border-radius: 8px; background: linear-gradient(100deg, rgba(20,60,44,.97), rgba(18,20,30,.96) 60%); box-shadow: 0 8px 30px rgba(0,0,0,.7), 0 0 24px rgba(120,230,160,.3); animation: 入札 ease-out both; }
.品効顔 { width: 72px; height: 72px; flex: none; border-radius: 6px; background: #111 center 20% / cover no-repeat; border: 1px solid #6fbf8a; }
.品効文 { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.品効題 { display: flex; align-items: baseline; gap: 8px; } .品効題 small { font-size: 12px; color: #9fe8b8; letter-spacing: .2em; } .品効題 b { font-size: 18px; color: #fff; }
.品効名 { font-size: 14px; color: #d8dbe6; }
.品効札 .品者能 { font-size: 14px; }
/* 地域開発の選択窓: 上がる国力の予告（2026-10-20 本人指示。44 選択窓 設定.開発） */
.開発予告 { font-size: 15px; color: var(--淡); white-space: nowrap; } .開発予告.上 { color: #9fe89a; }
.開発予告 b { font-size: 20px; color: #8fe08f; text-shadow: 0 0 8px rgba(143,224,143,.45); } .開発予告 small { color: #8fe08f; margin-left: 2px; }
/* 地図の国札: 紋の左上に施設の名・右上に発掘隊の旗（2026-10-20 本人指示。43 地図） */
.国札 .施設印 { position: absolute; right: calc(50% + 10px); top: -9px; padding: 0 4px; font-size: 9px; line-height: 14px; font-weight: bold; white-space: nowrap;
    color: #e9ffe2; background: linear-gradient(180deg, rgba(46,104,52,.95), rgba(24,62,30,.95)); border: 1px solid #8fe08f; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.8); pointer-events: none; }
.国札 .発掘旗 { position: absolute; left: calc(50% + 8px); top: -15px; width: 14px; height: 18px; pointer-events: none; filter: drop-shadow(0 1px 1px #000) drop-shadow(0 0 4px rgba(255,217,112,.6)); }   /* 字の旗は字体で四角に化けたので線と面で描く */
.国札 .発掘旗::before { content: ''; position: absolute; left: 0; top: 0; width: 2px; height: 18px; background: #f4ecd6; border-radius: 1px; }
.国札 .発掘旗::after { content: ''; position: absolute; left: 2px; top: 1px; width: 12px; height: 8px; background: linear-gradient(180deg, #ffe28a, #d9a030); clip-path: polygon(0 0, 100% 0, 72% 50%, 100% 100%, 0 100%); }
.国札.都 .施設印 { right: calc(50% + 12px); } .国札.都 .発掘旗 { left: calc(50% + 10px); }
/* 地図: 停戦中（中立）の国の札に残りターン（2026-10-20 本人指示。塗りは 43 塗り層 の斜めの縞） */
.国札 .停戦札 { margin-top: 1px; padding: 0 4px; font-size: 9px; line-height: 13px; font-weight: bold; white-space: nowrap; pointer-events: none;
    color: #10220c; background: linear-gradient(180deg, #e4f7d6, #b5e09a); border: 1px solid #f4fff0; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.8); }
.国札.中立 .紋 { box-shadow: 0 0 0 2px rgba(214,240,200,.9), 0 1px 3px rgba(0,0,0,.8); }
/* 能力の 11＝★（2026-10-20 本人指示。10 R7.能字） */
.星 { color: #ffd970 !important; text-shadow: 0 0 6px rgba(255,217,112,.75); }
/* 品の窓: 常時効果の品の印・副将は灰色（2026-10-20 本人指示。46 品窓） */
.品札.常時 .品印 { background: #b08cff; }
.品者札.副将 { filter: grayscale(1); opacity: .45; }
.品者札.副将 .品者釦 { border-color: #555; color: var(--淡); }
/* 兵力: 全兵士解雇・兵数を増やさない（2026-10-20 本人指示。44 操作・札） */
.増止 { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid rgba(132,148,186,.34); border-radius: 6px; font-size: 13px; cursor: pointer; user-select: none; }
.増止.入 { border-color: #ff9f8a; color: #ffc0b0; background: rgba(140,50,40,.25); }
.増止 input { accent-color: #ff8a7a; margin: 0; }
.武札.増止札 .札顔::before { content: '増止'; position: absolute; right: 2px; bottom: 22px; z-index: 2; padding: 0 3px; font-size: 9px; line-height: 13px; border-radius: 2px; background: rgba(140,40,30,.9); color: #ffd7d0; }
/* 下の帯がはみ出す時だけ詰める（2026-10-20 本人「後半にターン終了が切れる」。43 地.描く が 詰め・詰め2 を付ける） */
#下帯.詰め { gap: 2px; }
#下帯.詰め .釦 { padding: 1px 7px; font-size: 12px; }
#下帯.詰め .値箱 { padding: 1px 6px; gap: 4px; font-size: 12px; }
#下帯.詰め .値箱 .淡 { font-size: 10px; }
#下帯.詰め .終了釦 { min-width: 100px; }
#下帯.詰め2 .釦 { padding: 1px 5px; font-size: 11px; letter-spacing: -.02em; }
#下帯.詰め2 .値箱 { padding: 1px 4px; gap: 3px; font-size: 11px; }
#下帯.詰め2 .終了釦 { min-width: 88px; }
/* 兵力の操作欄を3行に固定（2026-10-20 本人「補充〜解雇まで欄が足りず押せない・兵数の違いで並びがずれる」。44 操作） */
.操作場 { height: 114px; }
.操作場 > .下釦群.操作列 { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 4px; }
.操作行 { display: flex; gap: 6px; }
.操作行 > * { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.操作行 > .増止 { justify-content: center; height: 34px; }
/* 1行目（補充・増員+10・増員+100・増員 上限）は桁が変わっても並びが動かない固定の幅、3行目は名前の長さに合わせる */
.操作場 .操作行 .釦 { font-size: 13px; padding: 0 6px; text-overflow: clip; }
.操作行:nth-child(1) { display: grid; grid-template-columns: 118px 132px 144px 1fr; }
.操作行:nth-child(3) > * { flex: 1 1 auto; }
/* 操作欄は overflow: hidden なので、釦の選択の光（外側の影）が上と左右で切れていた → 内側に余白を取る（2026-10-20 本人） */
.操作場 { height: 122px; padding: 4px 4px 0; }
/* パッドの選択枠（lv10api: outline 3px＋外へ 2px）が切れないよう 6px の余白・行の間も 6px */
.操作場 { height: 126px; padding: 6px 6px 0; }
.操作場 > .下釦群.操作列, .操作行 { gap: 6px; }
/* 合戦の札の気力: 「/4」と ▶ の間を空ける（2026-10-20 本人「4▶ を 4  ▶ と」） */
.隊 .技 > small { margin-right: 8px; }
/* 武将の詳細板（2026-10-20 本人「速が入りきらない・Lv 経験 出撃は改行・技能4が出ない」）: Lv の行はいつも2行目、技の列を 15px 狭めて能力を左へ、高さを 4行の技が入るまで */
.詳頭 .詳Lv { flex-basis: 100%; }
.技一覧 { width: 165px; }
.詳細板 { height: 152px; }
/* 品の絵（2026-10-20 自走の仮採用・09 R7.品の絵）: 絵のある品は丸と字の代わりに角の丸い絵。右の説明にも大きく */
.品札 i.品印.絵 { width: 44px; height: 44px; border-radius: 8px; background: #0b0e16 center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.品大絵 { width: 72px; height: 72px; flex: none; border-radius: 10px; background: #0b0e16 center / cover no-repeat; align-self: center; box-shadow: 0 0 0 1px #3a4256; }
.品小絵 { width: 32px; height: 32px; flex: none; align-self: center; border-radius: 6px; background: #0b0e16 center / cover no-repeat; }
/* 他国から戦略版の背景（2026-10-20 自走の仮採用）: タイトルと同じ衛星図を暗く。札と釦は透けすぎないよう濃いまま */
#画面_新規 { overflow: hidden; background: #07080c; }
.新規幕 { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,10,.82) 0%, rgba(5,6,10,.62) 40%, rgba(5,6,10,.78) 100%); }
/* DLC の窓（2026-10-21 本人指示。42 周.DLC窓） */
.DLC群 { display: flex; flex-direction: column; gap: 6px; min-width: 560px; }
.DLC行 { display: grid; grid-template-columns: 1fr 80px 110px; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid rgba(217,178,90,.3); border-radius: 8px;
    background: linear-gradient(180deg, rgba(48,55,74,.6), rgba(30,35,48,.6)); }
.DLC行.持 { border-color: #8fe08f; } .DLC行.鍵 { opacity: .6; }
.DLC名 { font-size: 15px; } .DLC値 { text-align: right; color: #ffd970; font-weight: bold; }
.DLC行 .釦, .DLC状 { width: 110px; text-align: center; }
.DLC状 { padding: 6px 0; border-radius: 6px; font-size: 13px; } .DLC状.済 { color: #8fe08f; border: 1px solid #8fe08f; } .DLC状.鍵 { color: var(--淡); border: 1px dashed #555; }
.DLC計 { margin-top: 4px; text-align: right; }
/* 2026-11-08 DLC の中身の試し見・セット・導線の小さな釦（42 周.DLC窓・周.導線） */
.DLC文 { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.DLC説 { color: var(--淡); font-size: 12px; }
.DLC行.組 { border-color: rgba(255,217,112,.7); background: linear-gradient(180deg, rgba(74,62,30,.55), rgba(40,34,20,.6)); }
.DLC行.選 { box-shadow: 0 0 0 2px #ffd970, 0 0 14px rgba(255,217,112,.45); animation: DLC選光 1.6s ease-in-out 2; }
@keyframes DLC選光 { 50% { box-shadow: 0 0 0 2px #ffd970, 0 0 24px rgba(255,217,112,.8); } }
.DLC見 { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.DLC戦 { display: grid; grid-template-columns: minmax(150px, max-content) 1fr auto; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 6px; background: rgba(0,0,0,.25); font-size: 13px; }
.DLC敵群 { display: flex; gap: 4px; }
.DLC敵 { display: flex; align-items: flex-end; gap: 1px; }
.DLC敵 i { width: 30px; height: 30px; border-radius: 50%; background: #222 center/cover no-repeat; border: 1px solid rgba(255,138,122,.6); }
.DLC敵 small { font-size: 11px; color: var(--淡); }
.DLC報 { color: #ffd970; white-space: nowrap; } .DLC報 small { color: var(--淡); }
.DLC導線 { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; padding: 6px 10px; border-radius: 8px;
    border: 1px dashed rgba(255,217,112,.5); background: rgba(74,62,30,.3); font-size: 13px; }
.DLC導線 .釦 { padding: 4px 12px; }
.DLC導線.令導線 { gap: 6px; margin-top: 6px; padding: 4px 6px; font-size: 12px; } .DLC導線.令導線 .釦 { padding: 3px 8px; font-size: 12px; }   /* 命令の窓（270px）の中の帯（2026-11-08） */
.品札.店.DLC鍵 { opacity: .8; border-style: dashed; }
.釦.DLC金 { color: #ffd970; }   /* タイトルと地図の帯の DLC 釦（2026-11-08） */
.DLC戦.済 b { color: #8fe08f; }   /* 勝った上級の話（2026-11-08） */
.DLC行.絵あり { grid-template-columns: 64px 1fr 80px 110px; }
.DLC絵 { width: 64px; height: 64px; align-self: start; border-radius: 8px; background: center / cover no-repeat; border: 1px solid rgba(217,178,90,.35); }   /* 行の絵（2026-11-08。09 R7.DLCの絵） */
.DLC絵.空 { background: radial-gradient(circle at 50% 40%, rgba(217,178,90,.16), rgba(20,18,14,.5) 70%); border-style: dashed; }   /* 絵が届くまでの空き枠（字の頭をそろえる） */
.釦.DLC小釦 { padding: 2px 10px; font-size: 12px; border-style: dashed; border-color: rgba(255,217,112,.6); color: #ffd970; margin-left: 8px; }   /* 兵力の見出しの導線（2026-11-08） */

/* スタッフロール（2026-10-29 本人: 物語の終章のあと。46 窓.スタッフロール） */
.巻幕 { position: fixed; inset: 0; z-index: 2147483000; background: #000; overflow: hidden; cursor: pointer; animation: 巻入 1.2s ease; }
.巻幕.消 { opacity: 0; transition: opacity .6s; }
.巻絵 { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .32; filter: saturate(.8); }
.巻流 { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; align-items: center; gap: 56px; padding: 0 16px;
  color: #f0e6cc; text-align: center; text-shadow: 0 2px 8px #000; animation: 巻流 26s linear forwards; }
.巻幕.済 .巻流 { animation: none; top: 50%; transform: translateY(-50%); gap: 30px; }
.巻幕.済 .巻副 { margin-top: -20px; } .巻幕.済 .巻完 { margin-top: 10px; }
.巻題 span { display: block; font: 600 34px/1.2 "Cinzel", "Times New Roman", serif; letter-spacing: .35em; color: #d9b25a; }
.巻題 b { display: block; font: 600 72px/1 "Cinzel", "Times New Roman", serif; color: #d9b25a; }
.巻副 { margin-top: -40px; font-size: 18px; letter-spacing: .4em; color: #c8c0ae; }
.巻行 small { display: block; font-size: 15px; letter-spacing: .2em; color: #b8a77a; margin-bottom: 6px; }
.巻行 b { display: block; font-size: 28px; font-weight: 600; letter-spacing: .08em; }
.巻完 { margin-top: 40px; font: italic 22px/1 "Times New Roman", serif; color: #d9b25a; letter-spacing: .15em; }
@keyframes 巻流 { from { transform: translateY(0); } to { transform: translateY(calc(-100% - 50vh)); } }
@keyframes 巻入 { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) { .巻行 b { font-size: 20px; } .巻題 b { font-size: 52px; } }

/* タイトルの背景を釦ごとに替える（2026-10-30 本人）: 2枚の層を溶け合わせ、出た方をゆっくり寄せる */
.題替 { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .9s ease; }
.題替.見 { opacity: 1; animation: 題替寄 14s ease-out both; }
@keyframes 題替寄 { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .題替 { transition: none; } .題替.見 { animation: none; } }

/* 物語の幕（2026-11-01 ST1・ST2）: 46 幕を整える。吹き出しの後ろに動画・一枚絵・演出。押す邪魔をしない */
#物語幕 { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .6s ease; }
#物語幕.出 { opacity: 1; }
#Goセリフレイヤー #章札 { z-index: 5; }
#物語幕 .幕板 { position: absolute; inset: 0; background: #000; animation: 幕板出 .6s ease-out both; }
#物語幕 .幕板.去る { animation: 幕板去 .6s ease-in both; }
#物語幕 .幕板::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); }
#物語幕 .幕動画 video { width: 100%; height: 100%; object-fit: cover; display: block; }
#物語幕 .幕絵 { background: center / cover no-repeat; }
#物語幕 .幕絵.寄0 { animation: 幕板出 .6s ease-out both, 幕寄0 22s ease-out both; }
#物語幕 .幕絵.寄1 { animation: 幕板出 .6s ease-out both, 幕寄1 22s ease-out both; }
#物語幕 .幕絵.寄2 { animation: 幕板出 .6s ease-out both, 幕寄2 22s ease-out both; }
#物語幕 .幕絵.寄3 { animation: 幕板出 .6s ease-out both, 幕寄3 22s ease-out both; }
#物語幕 .幕絵.去る { animation: 幕板去 .6s ease-in both; }
@keyframes 幕板出 { from { opacity: 0; } to { opacity: 1; } }
@keyframes 幕板去 { from { opacity: 1; } to { opacity: 0; } }
@keyframes 幕寄0 { from { transform: scale(1.14) translate(2%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes 幕寄1 { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%, -1%); } }
@keyframes 幕寄2 { from { transform: scale(1.12) translate(-3%, 0); } to { transform: scale(1.12) translate(3%, 0); } }
@keyframes 幕寄3 { from { transform: scale(1.04) translate(0, 2%); } to { transform: scale(1.12) translate(0, -2%); } }
.幕演出 { position: absolute; inset: 0; pointer-events: none; }
.演_閃光 { background: #fff; animation: 演閃光 1.4s ease-out both; }
@keyframes 演閃光 { 0% { opacity: 0; } 8% { opacity: .95; } 100% { opacity: 0; } }
.演_爆炎 { background: radial-gradient(circle at 50% 62%, rgba(255,250,220,.95) 0, rgba(255,170,60,.85) 18%, rgba(200,50,10,.55) 40%, transparent 70%); animation: 演爆炎 2.2s ease-out both; }
@keyframes 演爆炎 { 0% { opacity: 0; transform: scale(.3); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
.演_火の粉 { background-image: radial-gradient(2px 2px at 10% 90%, #ffb347, transparent), radial-gradient(3px 3px at 25% 80%, #ff7a2a, transparent), radial-gradient(2px 2px at 40% 95%, #ffd27a, transparent),
  radial-gradient(3px 3px at 55% 85%, #ff9a3a, transparent), radial-gradient(2px 2px at 70% 92%, #ffc35a, transparent), radial-gradient(3px 3px at 85% 82%, #ff6a1a, transparent), radial-gradient(2px 2px at 95% 96%, #ffb347, transparent);
  animation: 演火の粉 2.5s ease-out both; }
@keyframes 演火の粉 { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-60%); } }
.演_光の粒 { background-image: radial-gradient(3px 3px at 15% 70%, #bfe8ff, transparent), radial-gradient(2px 2px at 30% 40%, #fff, transparent), radial-gradient(3px 3px at 48% 65%, #9fd8ff, transparent),
  radial-gradient(2px 2px at 62% 35%, #fff, transparent), radial-gradient(3px 3px at 78% 60%, #bfe8ff, transparent), radial-gradient(2px 2px at 90% 45%, #fff, transparent);
  animation: 演光の粒 2.5s ease-in-out both; }
@keyframes 演光の粒 { 0% { opacity: 0; transform: translateY(8%); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12%); } }
.演_雨 { background: repeating-linear-gradient(105deg, transparent 0 14px, rgba(190,210,255,.28) 14px 15px); background-size: 120px 120px; animation: 演雨 2.5s linear both; }
@keyframes 演雨 { 0% { opacity: 0; background-position: 0 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; background-position: -60px 360px; } }
#Goセリフレイヤー.幕揺れ { animation: 幕揺れ .5s ease-in-out; }
@keyframes 幕揺れ { 0%, 100% { transform: translate(-50%, -50%); } 20% { transform: translate(calc(-50% - 8px), calc(-50% + 4px)); } 40% { transform: translate(calc(-50% + 7px), calc(-50% - 5px)); }
  60% { transform: translate(calc(-50% - 5px), calc(-50% + 3px)); } 80% { transform: translate(calc(-50% + 3px), -50%); } }
@media (prefers-reduced-motion: reduce) { #物語幕 .幕絵.寄0, #物語幕 .幕絵.寄1, #物語幕 .幕絵.寄2, #物語幕 .幕絵.寄3 { animation: 幕板出 .6s ease-out both; } #Goセリフレイヤー.幕揺れ { animation: none; } }
/* 動画の間は字幕のように（46 幕を整える）: 立ち絵を消し、話していない側の吹き出しを隠す */
#Goセリフレイヤー.幕動画中 .Go肖像 { opacity: 0 !important; transition: opacity .3s; }
#Goセリフレイヤー.幕動画中.幕今上 #Go吹出_下, #Goセリフレイヤー.幕動画中.幕今下 #Go吹出_上 { visibility: hidden; }
/* 骨の商店の討伐の話: 印は出てくる魔物の絵（46 話札。2026-11-08 自走）。話の札の色の縁で品の絵と見分ける */
.品札 i.品印.絵.話絵 { border-radius: 50%; box-shadow: 0 0 0 2px #e0866a, inset 0 0 0 1px rgba(0,0,0,.4); }
.DLC戦 > b { white-space: nowrap; }   /* 闘技場の試し見で敵が4種の階の名が「第20／階」と折れた（2026-11-08 自走） */
/* 周回ボーナス: 点を超えて選んだ札のうち開始で効かない物（42 外れ。2026-11-08 自走）。✔ のまま赤い縁で薄く */
.周札.選択.外れ { border-color: #ff8a7a; background: #2a1a1a; box-shadow: 0 0 0 1px rgba(255,138,122,.45); opacity: .7; }
.周札.選択.外れ .周印 { color: #ff8a7a; }
/* 合戦結果: Lv が上がった将の札（45 結果の演出。2026-11-17 自走）。金の縁は状態、光るのは .光 の時だけ（演出カットでは付かない） */
.結自札.上 { border-color: #d9b25a; }
.結自札.上.光 { animation: 結自上光 1.1s ease-out both; }
@keyframes 結自上光 { 0% { box-shadow: 0 0 0 0 rgba(255,217,112,0); filter: none; } 35% { box-shadow: 0 0 16px 4px rgba(255,217,112,.75); filter: brightness(1.6); } 100% { box-shadow: 0 0 6px 1px rgba(255,217,112,.35); filter: none; } }
/* 店で買った時（46 買った後。2026-11-17 自走）: 札が光り「−値」が浮かび、頭の残りが跳ねる。演出カットでは付かない */
.品札.店 { position: relative; }
.品札.店.買光 { animation: 買光 .7s ease-out both; }
@keyframes 買光 { 0% { box-shadow: 0 0 0 0 rgba(255,217,112,0); } 30% { box-shadow: 0 0 14px 3px rgba(255,217,112,.7); filter: brightness(1.35); } 100% { box-shadow: 0 0 0 0 rgba(255,217,112,0); filter: none; } }
.店頭 { position: relative; }
.買浮 { position: absolute; right: 160px; top: 50%; font-size: 18px; font-weight: bold; color: #ffd76a; text-shadow: 0 0 6px #000, 0 0 10px rgba(255,200,120,.7); pointer-events: none; white-space: nowrap; animation: 買浮 .9s ease-out forwards; }
.店頭 .買浮 { right: auto; left: 140px; }
@keyframes 買浮 { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-34px); } }
.店頭 .金字.買跳 { display: inline-block; animation: 買跳 .45s ease-out; }
@keyframes 買跳 { 0% { transform: scale(1); } 40% { transform: scale(1.35); color: #fff3c0; } 100% { transform: scale(1); } }
/* 兵が増えた／減った時（44 兵の動き。2026-11-17 自走）: 兵の帯・軍の兵・総兵力の欄が光り「+120 兵」が浮かぶ。演出カットでは付かない */
.兵帯板, .軍兵板, .総兵力, .操作場 { position: relative; }
.兵光 { animation: 兵光 .7s ease-out; } .兵減 { animation: 兵減 .7s ease-out; }
@keyframes 兵光 { 0% { box-shadow: 0 0 0 0 rgba(111,191,74,0); } 30% { box-shadow: 0 0 14px 3px rgba(111,191,74,.75); } 100% { box-shadow: 0 0 0 0 rgba(111,191,74,0); } }
@keyframes 兵減 { 0% { box-shadow: 0 0 0 0 rgba(255,110,90,0); } 30% { box-shadow: 0 0 14px 3px rgba(255,110,90,.7); } 100% { box-shadow: 0 0 0 0 rgba(255,110,90,0); } }
.兵浮 { position: absolute; right: 14px; top: 2px; font-size: 19px; font-weight: bold; color: #9be37a; text-shadow: 0 0 6px #000, 0 0 10px rgba(120,220,90,.6); pointer-events: none; white-space: nowrap; z-index: 2; animation: 兵浮 1s ease-out forwards; }
.兵浮.減 { color: #ff9a86; text-shadow: 0 0 6px #000, 0 0 10px rgba(255,110,90,.6); }
@keyframes 兵浮 { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
/* タイトルの動き（41。2026-11-17 自走）: 火の粉が昇る・題の「6」がゆっくり光る・開いた最初の1回だけ 題→6→副題→釦 の順に出る（.題入り）。演出カットでは 41 が付けない */
.題粉 { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.題粉 i { position: absolute; bottom: -10px; border-radius: 50%; background: #ffcf7a; box-shadow: 0 0 6px 2px rgba(255,170,70,.65); opacity: 0; animation: 題粉昇 12s linear infinite; }
.題粉 i.右 { animation-name: 題粉昇右; }
@keyframes 題粉昇 { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: .8; } 60% { opacity: .55; } 100% { opacity: 0; transform: translate(-50px, -720px); } }
@keyframes 題粉昇右 { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: .8; } 60% { opacity: .55; } 100% { opacity: 0; transform: translate(60px, -720px); } }
#画面_タイトル .題 b { animation: 題光 7s 1.6s ease-in-out infinite; }
@keyframes 題光 { 0%, 70%, 100% { text-shadow: 0 0 24px rgba(217,178,90,.55), 0 2px 6px #000; } 82% { text-shadow: 0 0 34px rgba(255,214,120,.95), 0 0 70px rgba(255,170,60,.45), 0 2px 6px #000; } }
#画面_タイトル.題入り .題 .題小 { animation: 題字開く 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes 題字開く { from { opacity: 0; letter-spacing: 40px; filter: blur(6px); } to { opacity: 1; letter-spacing: 14px; filter: none; } }
#画面_タイトル.題入り .題 b { animation: 題六 .9s .35s cubic-bezier(.2,.9,.3,1.25) both, 題光 7s 1.6s ease-in-out infinite; }
@keyframes 題六 { from { opacity: 0; transform: scale(2.2); filter: blur(8px) brightness(2); } 70% { opacity: 1; transform: scale(.96); filter: none; } to { opacity: 1; transform: scale(1); filter: none; } }
#画面_タイトル.題入り .副題 { animation: 題下から .8s .7s ease-out backwards; }
#画面_タイトル.題入り .題釦群 > * { animation: 題下から .45s ease-out backwards; }   /* backwards: 終わった後は押せない釦の薄さに戻す */
#画面_タイトル.題入り .題釦群 > :nth-child(1) { animation-delay: .9s; } #画面_タイトル.題入り .題釦群 > :nth-child(2) { animation-delay: .96s; }
#画面_タイトル.題入り .題釦群 > :nth-child(3) { animation-delay: 1.02s; } #画面_タイトル.題入り .題釦群 > :nth-child(4) { animation-delay: 1.08s; }
#画面_タイトル.題入り .題釦群 > :nth-child(5) { animation-delay: 1.14s; } #画面_タイトル.題入り .題釦群 > :nth-child(6) { animation-delay: 1.2s; } #画面_タイトル.題入り .題釦群 > :nth-child(7) { animation-delay: 1.26s; }
@keyframes 題下から { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.総兵力 .兵浮 { right: auto; left: 170px; top: 4px; }   /* 総兵力の字の右（全補充・決定の釦に重ねない） */
/* 実績を取った時の札（47。2026-11-17 自走）: 上の中ほどへ降りて光が走り、少し置いて上へ消える。押す邪魔をしない */
.績札 { position: absolute; left: 50%; z-index: 62; pointer-events: none; display: flex; align-items: center; gap: 12px; min-width: 360px; max-width: 560px; padding: 10px 18px 10px 12px; overflow: hidden;
  border: 1px solid #d9b25a; border-radius: 8px; background: linear-gradient(90deg, rgba(70,52,14,.96), rgba(22,24,34,.94)); box-shadow: 0 4px 18px rgba(0,0,0,.6), 0 0 14px rgba(255,210,110,.35);
  transform: translateX(-50%); animation: 績札 4.2s ease both; }
.績印 { flex: none; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-style: normal;
  background: radial-gradient(circle, #6b5418, #2a210a); box-shadow: 0 0 0 2px #d9b25a, 0 0 12px rgba(255,210,110,.6); }
.績文 { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.績文 small { font-size: 12px; color: #d9b25a; letter-spacing: .2em; }
.績文 b { font-size: 21px; color: #ffe9a8; text-shadow: 0 0 8px rgba(255,200,90,.5); }
.績文 span { font-size: 13px; color: #d8dbe4; }
.績光 { position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255,240,190,.45), transparent); transform: skewX(-20deg); animation: 績光 4.2s ease both; }
@keyframes 績札 { 0% { opacity: 0; transform: translate(-50%, -24px); } 9% { opacity: 1; transform: translate(-50%, 0); } 86% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -16px); } }
@keyframes 績光 { 0%, 10% { left: -40%; } 32% { left: 120%; } 100% { left: 120%; } }
/* 祝いの帯（42 祝う。2026-11-17 自走）: DLC が届いた時（実績は 47 の .績札）。上から降りて光が走り、消える。押す邪魔をしない */
.祝帯 { position: fixed; left: 50%; z-index: 9000; display: flex; align-items: center; gap: 12px; min-width: 300px; max-width: 520px; padding: 8px 22px 8px 10px; border: 1px solid rgba(217,178,90,.85); border-radius: 10px; background: linear-gradient(180deg, rgba(48,38,18,.96), rgba(22,18,10,.96)); box-shadow: 0 6px 24px rgba(0,0,0,.6), 0 0 18px rgba(217,178,90,.35); pointer-events: none; overflow: hidden; transform: translateX(-50%); animation: 祝降 3.6s ease-out both; }
.祝帯::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,236,170,.45), transparent); animation: 祝光 1.1s .35s ease-in-out both; }
.祝印 { flex: none; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 30px; font-style: normal; filter: drop-shadow(0 0 6px rgba(255,214,120,.8)); }
.祝絵 { flex: none; width: 52px; height: 52px; border-radius: 8px; background: #141a26 center / cover no-repeat; border: 1px solid rgba(217,178,90,.7); }
.祝文 { display: flex; flex-direction: column; min-width: 0; } .祝文 small { font-size: 11px; color: #d9b25a; letter-spacing: 2px; } .祝文 b { font-size: 18px; color: #ffe39a; text-shadow: 0 0 8px rgba(255,190,80,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.祝文 .祝添 { color: #cfd6e8; letter-spacing: 0; }
@keyframes 祝降 { 0% { opacity: 0; transform: translate(-50%, -24px) scale(.94); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1.03); } 16% { transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -10px); } }
@keyframes 祝光 { from { left: -40%; } to { left: 120%; } }
.績文 em { font-size: 12px; font-style: normal; color: #ffd76a; }
/* 合戦: 手番の札の金の縁が脈打つ（45 .脈。2026-11-17 自走）・戦果の帯の境に光る縁 */
.隊.手番.脈 { animation: 手番脈 1.6s ease-in-out infinite; }
@keyframes 手番脈 { 0%, 100% { box-shadow: 0 0 0 3px var(--金), 0 0 12px var(--金); } 50% { box-shadow: 0 0 0 3px #ffe39a, 0 0 26px 4px rgba(255,214,120,.8); } }
.戦果帯 .自分::after { content: ''; position: absolute; right: -1px; top: 0; bottom: 0; width: 6px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.85)); box-shadow: 0 0 8px rgba(160,200,255,.9); }
/* 新規: 勢力を替えた時に右の中身が順に出る（41 .替わり。2026-11-17 自走）。fill backwards＝終われば元の見た目 */
.新規右.替わり > h2 { animation: 新規名 .4s ease-out backwards; }
.新規右.替わり > .新規値 { animation: 題下から .35s .05s ease-out backwards; }
.新規右.替わり .新規将 { animation: 新規将出 .35s ease-out backwards; }
.新規右.替わり .新規将:nth-child(2) { animation-delay: .06s; } .新規右.替わり .新規将:nth-child(3) { animation-delay: .12s; } .新規右.替わり .新規将:nth-child(4) { animation-delay: .18s; }
.新規右.替わり .新規将:nth-child(5) { animation-delay: .24s; } .新規右.替わり .新規将:nth-child(n+6) { animation-delay: .3s; }
.新規右.替わり > .小地図 { animation: 新規図 .5s .1s ease-out backwards; }
@keyframes 新規名 { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes 新規将出 { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes 新規図 { from { opacity: .3; filter: brightness(1.8) saturate(.6); } to { opacity: 1; filter: none; } }
/* 勧誘が届かなかった時（46 進みの動き。2026-11-17 自走）: 進みの帯が光り「勧誘 +N」が浮かぶ。演出カットでは付かない */
.捕進 { position: relative; }
.捕進.進光 i { animation: 進光 .8s ease-out; }
@keyframes 進光 { 0% { box-shadow: 0 0 0 0 rgba(143,176,255,0); } 35% { box-shadow: 0 0 10px 3px rgba(143,176,255,.85); } 100% { box-shadow: 0 0 0 0 rgba(143,176,255,0); } }
.捕浮 { position: absolute; left: 40%; top: -6px; font-size: 16px; font-weight: bold; color: #b8ccff; text-shadow: 0 0 6px #000, 0 0 10px rgba(143,176,255,.7); pointer-events: none; white-space: nowrap; animation: 兵浮 1s ease-out forwards; }
/* 周回ボーナス: 押した札が弾む（42 .押入＝選んだ・.押出＝外した。2026-11-17 自走） */
.周札.押入 { animation: 周押入 .38s ease-out; }
.周札.押出 { animation: 周押出 .3s ease-out; }
@keyframes 周押入 { 0% { transform: scale(.94); filter: brightness(1.7); } 55% { transform: scale(1.04); } 100% { transform: scale(1); filter: none; } }
@keyframes 周押出 { 0% { transform: scale(1.03); filter: brightness(.7); } 100% { transform: scale(1); filter: none; } }
/* 外交の帯（43 外交の帯。2026-11-17 自走）: 停戦成立＝青緑・宣戦布告＝赤。滅亡の帯と同じ形で、少し上に出す。演出カット・観戦では付かない */
.外帯 { position: absolute; left: 0; right: 0; top: 230px; height: 70px; z-index: 55; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(90deg, transparent, rgba(8,44,52,.88) 20%, rgba(8,44,52,.88) 80%, transparent);
  border-top: 1px solid rgba(110,220,210,.55); border-bottom: 1px solid rgba(110,220,210,.55); animation: 滅帯 2.6s ease-out forwards; }
.外帯.戦 { background: linear-gradient(90deg, transparent, rgba(60,8,6,.88) 20%, rgba(60,8,6,.88) 80%, transparent); border-color: rgba(255,90,74,.55); }
.外帯 .勢 { font-size: 22px; color: #f0e6d8; padding-left: 10px; border-left: 5px solid; text-shadow: 0 0 6px #000; }
.外帯 .外印 { font-size: 26px; font-style: normal; }
.外帯 b { margin-left: 14px; font-size: 38px; color: #8ff0e2; letter-spacing: .2em; text-shadow: 0 0 10px #000, 0 0 18px rgba(80,220,200,.6); }
.外帯.戦 b { color: #ff6a5a; text-shadow: 0 0 10px #000, 0 0 18px rgba(255,60,40,.7); }
/* 合戦: 大技のカットイン（45 カットイン。2026-11-17 自走）。帯が横から入って止まり抜ける。長さは 45 が速さに合わせる */
.切入 { position: absolute; left: 0; width: 870px; top: 290px; height: 130px; overflow: hidden; display: flex; align-items: center; gap: 22px; padding: 0 60px; box-sizing: border-box;
  background: linear-gradient(90deg, transparent 0%, rgba(10,14,24,.92) 14%, rgba(10,14,24,.92) 86%, transparent 100%); border-top: 2px solid rgba(255,214,120,.8); border-bottom: 2px solid rgba(255,214,120,.8);
  animation: 切入帯 1s ease both; }
.切入.敵 { flex-direction: row-reverse; border-color: rgba(255,120,100,.85); }
.切入.魔法 { border-color: rgba(195,139,255,.9); }
.切顔 { flex: none; width: 112px; height: 112px; border-radius: 10px; background: #111 center 20% / cover no-repeat; box-shadow: 0 0 18px rgba(0,0,0,.8); animation: 切顔入 1s ease both; }
.切入.敵 .切顔 { animation-name: 切顔入敵; }
.切文 { display: flex; flex-direction: column; min-width: 0; animation: 切文入 1s ease both; } .切入.敵 .切文 { align-items: flex-end; animation-name: 切文入敵; }
.切文 small { font-size: 16px; color: #cfd6e8; letter-spacing: 2px; text-shadow: 0 1px 3px #000; }
.切文 b { font-size: 42px; font-weight: bold; letter-spacing: .12em; color: #ffe39a; white-space: nowrap; text-shadow: 0 0 12px rgba(255,170,60,.85), 0 2px 4px #000; }
.切入.魔法 .切文 b { color: #fff; text-shadow: 0 0 14px rgba(190,130,255,1), 0 0 4px rgba(190,130,255,1), 0 2px 4px #000; }
@keyframes 切入帯 { 0% { opacity: 0; transform: scaleY(.2); } 12% { opacity: 1; transform: scaleY(1); } 82% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(.3); } }
@keyframes 切顔入 { 0% { opacity: 0; transform: translateX(-220px); } 18% { opacity: 1; transform: translateX(0); } 80% { opacity: 1; transform: translateX(18px); } 100% { opacity: 0; transform: translateX(260px); } }
@keyframes 切顔入敵 { 0% { opacity: 0; transform: translateX(220px); } 18% { opacity: 1; transform: translateX(0); } 80% { opacity: 1; transform: translateX(-18px); } 100% { opacity: 0; transform: translateX(-260px); } }
@keyframes 切文入 { 0% { opacity: 0; transform: translateX(-120px); } 22% { opacity: 1; transform: translateX(0); } 80% { opacity: 1; transform: translateX(10px); } 100% { opacity: 0; transform: translateX(160px); } }
@keyframes 切文入敵 { 0% { opacity: 0; transform: translateX(120px); } 22% { opacity: 1; transform: translateX(0); } 80% { opacity: 1; transform: translateX(-10px); } 100% { opacity: 0; transform: translateX(-160px); } }
/* 回想の窓の札（51。2026-11-17 自走）: 16:9 の絵の札に題を下に重ねる。絵の無い話は暗い地に題だけ */
.釦.回札 { position: relative; width: 200px; height: 112px; padding: 0; display: flex; align-items: flex-end; overflow: hidden; text-align: left;
  background: #1b2232 center / cover no-repeat; border: 1px solid #3a4256; border-radius: 6px; }
.釦.回札 .回題 { flex: 1; padding: 14px 8px 5px; font-size: 13px; font-weight: bold; color: #f3efe4; line-height: 1.25; text-shadow: 0 1px 3px #000;
  background: linear-gradient(transparent, rgba(0,0,0,.82) 55%); }
.釦.回札:not(.絵あり) { align-items: center; } .釦.回札:not(.絵あり) .回題 { background: none; text-align: center; font-size: 14px; }
.釦.回札.絵あり { transition: filter .15s; filter: brightness(.82); }
.釦.回札.絵あり:hover, .釦.回札.絵あり.lv10-focus, .釦.回札.絵あり:focus-visible { filter: none; border-color: #d9b25a; }
.釦.回札.選択 { border-color: #d9b25a; box-shadow: 0 0 0 1px #d9b25a; }
/* つづきから: 札が上から順に出る（41 .ロード群.出る。2026-11-17 自走） */
.ロード群.出る > * { animation: ロード出る .32s ease-out backwards; }
.ロード群.出る > :nth-child(2) { animation-delay: .05s; } .ロード群.出る > :nth-child(3) { animation-delay: .1s; } .ロード群.出る > :nth-child(4) { animation-delay: .15s; }
.ロード群.出る > :nth-child(5) { animation-delay: .2s; } .ロード群.出る > :nth-child(n+6) { animation-delay: .25s; }
@keyframes ロード出る { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.釦.回札 { width: calc((100% - 18px) / 4); height: auto; aspect-ratio: 16 / 9; }   /* 1段に4枚で幅いっぱい */
/* 決戦の開戦帯（45 .決。2026-11-17 自走）: 縁と字を赤く、字が2度脈打つ */
.開戦帯.決 { border-color: rgba(255,90,70,.9); box-shadow: 0 0 22px rgba(255,60,40,.45); }
.開戦帯.決 b { color: #ff7a5a; text-shadow: 0 0 10px #000, 0 0 22px #ff2a10; animation: 決脈 .5s .25s ease-in-out 2; }
@keyframes 決脈 { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
/* 画面の切り替え（40 画.切替 .入る。2026-11-17 自走）: 新しい画面が暗さから 0.35秒で出る。filter だけ（opacity・transform は各画面の演出と重ねない） */
.画面.表示.入る { animation: 画面入る .35s ease-out; }
@keyframes 画面入る { from { filter: brightness(.25); } to { filter: none; } }
.外帯.切 { background: linear-gradient(90deg, transparent, rgba(56,40,8,.88) 20%, rgba(56,40,8,.88) 80%, transparent); border-color: rgba(240,190,90,.55); }   /* 停戦切れ（43 外交の帯） */
.外帯.切 b { color: #ffcf6a; text-shadow: 0 0 10px #000, 0 0 18px rgba(255,190,60,.6); }
/* 終わりの窓の顔が順に出る（46 終了窓。2026-11-17 自走。遅れは js の animationDelay） */
.終顔 { animation: 終顔 .35s ease-out both; }
@keyframes 終顔 { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
/* 回想の窓の仲間の立ち絵（51 仲間の段。2026-11-17 自走）: 暗い地に背景透過の立ち絵・名。押すと大きな立ち絵の窓 */
.回仲間 { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.釦.回仲札 { width: calc((100% - 30px) / 6); height: 170px; padding: 0; position: relative; overflow: hidden; display: flex; align-items: flex-end;
  background: radial-gradient(ellipse at 50% 40%, #2e3a55, #141925 75%); border: 1px solid #3a4256; border-radius: 6px; }
.回仲絵 { position: absolute; inset: 4px 4px 18px; background: center top / contain no-repeat; }
.回仲名 { position: relative; flex: 1; padding: 3px 4px; font-size: 12px; font-weight: bold; text-align: center; color: #f3efe4; background: rgba(0,0,0,.6); }
.釦.回仲札:hover, .釦.回仲札.lv10-focus, .釦.回仲札:focus-visible { border-color: #d9b25a; }
.回大 { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.回大絵 { width: 100%; height: 470px; background: center / contain no-repeat; border-radius: 6px; box-shadow: inset 0 0 80px rgba(46,58,85,.9); }
.回大文 { display: flex; gap: 14px; align-items: baseline; font-size: 15px; } .回大文 b { font-size: 20px; color: #ffe9a8; }
/* 合戦: 付与が上がった札に金の光が足元から昇る（45 置く('付与光')。2026-11-17 自走）。札の大きさの帯の中を縦縞の光が上へ抜ける */
.効.付与光 { width: 250px; height: 120px; overflow: hidden; border-radius: 6px; animation-name: 付与光;
  background: repeating-linear-gradient(90deg, rgba(255,214,120,0) 0 14px, rgba(255,214,120,.35) 14px 18px, rgba(255,214,120,0) 18px 34px), linear-gradient(0deg, rgba(255,200,90,.45), rgba(255,200,90,0) 70%);
  background-size: 100% 200%, 100% 100%; }
@keyframes 付与光 { 0% { opacity: 0; background-position: 0 100%, 0 0; } 25% { opacity: 1; } 100% { opacity: 0; background-position: 0 -100%, 0 0; } }
/* 副将が合流した時（44 合流の動き。2026-11-17 自走） */
.詳細板 { position: relative; }
.詳細板.合光 { animation: 合光 .9s ease-out; }
@keyframes 合光 { 0% { box-shadow: 0 0 0 0 rgba(255,217,112,0); } 30% { box-shadow: 0 0 16px 4px rgba(255,217,112,.75); } 100% { box-shadow: 0 0 0 0 rgba(255,217,112,0); } }
.兵浮.合 { color: #ffd76a; text-shadow: 0 0 6px #000, 0 0 10px rgba(255,200,90,.7); right: 16px; top: 8px; }
/* 章の目標の国を取った時（43 章目標。2026-11-17 自走）: 札が光り「+1」が札の右へ浮かぶ（画面の上端なので上へは出さない） */
.左上札 .章目標 { position: relative; }
.左上札 .章目標.進 { animation: 目標進 1.4s ease-out; }
@keyframes 目標進 { 0% { box-shadow: 0 0 0 0 rgba(255,120,100,0); } 25% { box-shadow: 0 0 14px 4px rgba(255,140,110,.85); background: #5a2420; } 100% { box-shadow: 0 0 0 0 rgba(255,120,100,0); } }
.左上札 .章目標 .帯浮字 { left: 100%; bottom: auto; top: 50%; transform: translate(6px, -50%); animation-name: 目標浮; }
@keyframes 目標浮 { 0% { opacity: 0; margin-left: 0; } 20% { opacity: 1; } 100% { opacity: 0; margin-left: 26px; } }
/* 国の上の浮かぶ字を命令の欄の反対側へ伸ばす（43 令の浮字。2026-11-17 自走） */
.国札 .令浮字.右へ { left: 0; transform: none; } .国札 .令浮字.左へ { left: auto; right: 0; transform: none; }
/* 物語の章を達成した時の帯（43 章達成の帯。2026-11-17 自走）: 会話の上・画面の上寄りに金の帯。押す邪魔をしない */
.章達帯 { position: fixed; left: 0; right: 0; top: 18%; height: 84px; z-index: 2147483100; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 26px;
  background: linear-gradient(90deg, transparent, rgba(66,48,10,.9) 18%, rgba(66,48,10,.9) 82%, transparent);
  border-top: 1px solid rgba(255,215,106,.6); border-bottom: 1px solid rgba(255,215,106,.6); animation: 滅帯 2.6s ease-out forwards; }
.章達帯 span { font-size: 26px; color: #f6ecd2; letter-spacing: .08em; text-shadow: 0 0 8px #000; }
.章達帯 b { font-size: 46px; color: #ffd76a; letter-spacing: .3em; text-shadow: 0 0 12px #000, 0 0 22px rgba(255,200,80,.8); }
/* 会話の「スキップ」釦（46 飛ばし釦。2026-11-17 自走）: 右上に小さく。押すと会話の終わりまで飛ぶ */
#Goセリフレイヤー .会飛 { position: fixed; right: 16px; top: 74px; z-index: 2147483050; padding: 4px 12px; font-size: 13px; font-weight: bold; letter-spacing: .05em; cursor: pointer;
  color: #e9e2cf; background: rgba(12,14,20,.72); border: 1px solid rgba(217,178,90,.55); border-radius: 14px; }
#Goセリフレイヤー .会飛:hover, #Goセリフレイヤー .会飛.lv10-focus { color: #ffe9a8; border-color: #ffd76a; background: rgba(40,32,12,.85); }
/* 会話の読み返し（46 会.読み返し。2026-11-17 自走）: ログの釦はスキップの左。板は画面の真ん中に、押すと閉じる */
#Goセリフレイヤー .会飛.会読 { right: 132px; }
#Goセリフレイヤー .読板 { position: fixed; inset: 0; z-index: 2147483040; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,.62); cursor: pointer; }
#Goセリフレイヤー .読頭 { width: min(860px, 92vw); font-size: 15px; font-weight: bold; color: #d9b25a; letter-spacing: .2em; padding: 0 4px 6px; }
#Goセリフレイヤー .読列 { width: min(860px, 92vw); max-height: 72vh; overflow: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(14,16,24,.94); border: 1px solid #3a4256; border-radius: 8px; cursor: default; }
#Goセリフレイヤー .読行 { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: #e9e6dc; } #Goセリフレイヤー .読行 b { flex: none; width: 6.5em; color: #ffd76a; text-align: right; }
#Goセリフレイヤー .読行.地 { color: #b9c0d0; font-style: italic; padding-left: calc(6.5em + 12px); }
#Goセリフレイヤー .読見 { font-size: 16px; font-weight: bold; color: #d9b25a; border-bottom: 1px solid #3a3322; padding-bottom: 2px; }
/* 会話のオート送り（46 会.オート。2026-11-17 自走）: ログの左。入れている間は金 */
#Goセリフレイヤー .会飛.会オ { right: 192px; }
#Goセリフレイヤー .会飛.会オ.入 { color: #1a1406; background: #e6c46a; border-color: #ffe9a8; }
/* 勢力の紋章（40 画.勢力印・画.帯紋。2026-11-17 自走）: 届くまでは使われない（今の色の四角のまま） */
.勢力色.紋章 { width: 20px; height: 20px; border-radius: 3px; background: center / contain no-repeat; margin-right: 6px; }
.帯紋 { display: inline-block; width: 1.25em; height: 1.25em; margin-right: .3em; vertical-align: -0.22em; background: center / contain no-repeat; border-radius: 3px; }
/* 地図の雲の影（43 地図。2026-11-17 自走）: 暗い楕円の影と薄い白い筋の2枚を、1枚の幅ぶん横へ流して繰り返す（transform だけ動かす）。押す邪魔をしない */
#地図面 .雲影 { position: absolute; left: 0; top: 0; width: calc(100% + 1800px); height: 100%; pointer-events: none;
  background-image:
    radial-gradient(ellipse 260px 120px at 18% 22%, rgba(4,10,28,.20), transparent 70%),
    radial-gradient(ellipse 340px 150px at 62% 58%, rgba(4,10,28,.17), transparent 70%),
    radial-gradient(ellipse 200px 90px at 86% 14%, rgba(4,10,28,.15), transparent 70%),
    radial-gradient(ellipse 300px 110px at 40% 86%, rgba(4,10,28,.16), transparent 70%),
    radial-gradient(ellipse 220px 60px at 24% 18%, rgba(255,255,255,.05), transparent 70%),
    radial-gradient(ellipse 280px 70px at 66% 53%, rgba(255,255,255,.045), transparent 70%);
  background-size: 1800px 1000px; background-repeat: repeat;
  animation: 雲が流れる 180s linear infinite; will-change: transform; }
@keyframes 雲が流れる { from { transform: translateX(-1800px); } to { transform: translateX(0); } }
/* 人物図鑑（52。2026-11-17 自走）: 勢力ごとの段に顔の札。まだ会っていない人は ？ */
.鑑群 { max-height: 560px; overflow: auto; padding-right: 4px; }
.記録T.鑑T { display: flex; align-items: center; gap: 2px; } .鑑T small { color: #9aa3b5; font-weight: normal; }
.鑑段 { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.釦.鑑札 { width: 104px; height: 128px; padding: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; border-bottom: 3px solid #555; }
.鑑顔 { flex: 1; background: center top / cover no-repeat #1b2130; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #4a5266; font-style: normal; }
.鑑名 { padding: 3px 2px; font-size: 12px; font-weight: bold; text-align: center; color: #f3efe4; background: rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.釦.鑑札.未 { cursor: default; opacity: .55; } .釦.鑑札.品.未 { cursor: pointer; } .釦.鑑札.未 .鑑名 { color: #7d8597; }
.釦.鑑札:not(.未):hover, .釦.鑑札:not(.未).lv10-focus, .釦.鑑札:not(.未):focus-visible { border-color: #d9b25a; }
.釦.鑑札:not(.未):hover .鑑顔, .釦.鑑札:not(.未).lv10-focus .鑑顔 { filter: brightness(1.12); }
.鑑大 { display: flex; gap: 18px; align-items: stretch; }
.鑑大絵 { flex: none; width: 340px; height: 480px; background: center / contain no-repeat; border-radius: 6px; box-shadow: inset 0 0 80px rgba(46,58,85,.9); font-style: normal; }
.鑑文 { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; min-width: 0; }
.鑑頭 b { font-size: 26px; color: #ffe9a8; margin-right: 12px; } .鑑頭 small { color: #9aa3b5; font-size: 14px; }
.鑑所 { display: flex; align-items: center; gap: 12px; font-size: 15px; } .鑑所 .勢力色 { margin-right: 0; }
.鑑値列 { display: flex; gap: 8px; } .鑑値 { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 0; background: rgba(255,255,255,.05); border-radius: 5px; }
.鑑値 small { color: #9aa3b5; font-size: 12px; } .鑑値 b { font-size: 22px; } .鑑値列.小 .鑑値 b { font-size: 17px; }
.鑑技 { font-size: 15px; } .鑑説 { margin: 0; font-size: 15px; line-height: 1.7; color: #e3e0d6; }
/* タイトル: 人物図鑑と設定を1段に並べる（41。2026-11-17 自走。釦が8つになり、続きがある時に設定が 720px からはみ出した） */
.題釦群 { flex-direction: row; flex-wrap: wrap; } .題釦群 > * { width: 100%; box-sizing: border-box; }
.題釦群 > .題半 { width: auto; flex: 1 1 40%; }
#画面_タイトル.題入り .題釦群 > :nth-child(8) { animation-delay: 1.26s; }
/* 品図鑑（52。2026-11-17 自走）: 品の絵は正方形なので縮めて収める */
.釦.鑑札.品 .鑑顔 { background-size: contain; background-position: center; background-color: #161b26; margin: 4px; border-radius: 4px; }
.鑑大.品 { align-items: center; } .鑑大絵.品 { width: 260px; height: 260px; background-color: #161b26; }
/* 図鑑の「新」（52。2026-11-17 自走）: 前に開いた時より後に載った札。右上の金の印がゆっくり脈打つ */
.釦.鑑札 .鑑新 { position: absolute; top: 4px; right: 4px; padding: 1px 6px; font-size: 11px; font-weight: bold; color: #1a1406; background: #e6c46a; border-radius: 3px; box-shadow: 0 0 8px rgba(230,196,106,.7); animation: 鑑新脈 1.6s ease-in-out infinite; }
@keyframes 鑑新脈 { 50% { box-shadow: 0 0 2px rgba(230,196,106,.3); } }
/* 国の数の推移（53。2026-11-17 自走）: 攻略進捗の勢力の札の右に、その勢力1本だけの小さな線。0国の線は淡く */
.勢札 .推線 { flex: none; display: block; overflow: visible; }
.勢札 .推線 .推底 { stroke: #3a4256; stroke-width: 1; }
.勢札 .推線 .推末 { stroke: #1b2232; stroke-width: 2; }
/* 終わりの窓の国の数の推移（46 終了窓・53。2026-11-17 自走）: 線を左から描き足す */
.終推 { margin: 10px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.終推 .推線 .推底 { stroke: #3a4256; stroke-width: 1; } .終推 .推線 .推末 { stroke: #141a26; stroke-width: 2; }
.終推字 { font-size: 13px; }
.推線.描く path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: 推を描く 1.6s .4s ease-out forwards; }
.推線.描く .推末 { opacity: 0; animation: 推末出 .3s 1.9s ease-out forwards; }
@keyframes 推を描く { to { stroke-dashoffset: 0; } }
@keyframes 推末出 { to { opacity: 1; } }
/* 兵力の窓の戦功（44・30。2026-11-17 自走） */
.詳頭 .詳功 { font-size: 12px; color: #9aa3b5; }
/* 終わりの窓の戦功第一（46。2026-11-17 自走） */
.終功 { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 2px; font-size: 14px; opacity: 0; animation: 推末出 .4s 1.4s ease-out forwards; }
.終功 small { color: #d9b25a; } .終功 b { color: #ffe9a8; font-size: 16px; } .終功 span { color: #b9c0d0; }
/* 合戦結果の自軍の札の撃破（45。2026-11-17 自走）: 右上の小さな赤い印 */
.結自札 { position: relative; }
.結自札 .結撃 { position: absolute; top: -7px; right: -4px; padding: 0 5px; font-size: 10px; font-weight: bold; line-height: 15px; color: #fff; background: #b8322a; border: 1px solid #ff9a8a; border-radius: 8px; }
/* タイトルの人物図鑑の数（41。2026-11-17 自走） */
.題釦群 .題半数 { margin-left: 6px; font-size: 12px; color: #b9c0d0; }
/* 合戦の跡（43・53。2026-11-17 自走）: 直近の合戦のあった国の左に交差した2本の剣（線で描く。字の ⚔ は字体で化けることがある）。取られた国は赤、守った国は白 */
.国札 .合戦跡 { position: absolute; right: calc(50% + 12px); top: 9px; width: 14px; height: 14px; pointer-events: auto; filter: drop-shadow(0 1px 1px #000); }
.国札 .合戦跡::before, .国札 .合戦跡::after { content: ''; position: absolute; left: 6px; top: -1px; width: 2px; height: 16px; border-radius: 1px; background: #e9e6dc; }
.国札 .合戦跡::before { transform: rotate(45deg); } .国札 .合戦跡::after { transform: rotate(-45deg); }
.国札 .合戦跡.落::before, .国札 .合戦跡.落::after { background: #ff7a6a; }
.国札 .合戦跡.今 { animation: 跡脈 1.2s ease-in-out 3; }
@keyframes 跡脈 { 50% { filter: drop-shadow(0 1px 1px #000) drop-shadow(0 0 6px #ff9a6a); transform: scale(1.25); } }
/* 決戦の縁（45。2026-11-17 自走）: 画面の縁の赤い光がゆっくり脈打つ。札の下・押す邪魔をしない */
#画面_合戦 .決戦縁 { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 150px 16px rgba(200,28,18,.42); animation: 決戦の息 3.4s ease-in-out infinite; }
@keyframes 決戦の息 { 50% { box-shadow: inset 0 0 100px 6px rgba(200,28,18,.18); } }
@media (prefers-reduced-motion: reduce) { #画面_合戦 .決戦縁 { animation: none; } }
/* 海のきらめき（43。2026-11-17 自走）: 海だけを切り抜いた型（mask）の中で、光の粒の模様を横へ流しつつ強弱を付ける。押す邪魔をしない */
#地図面 .海光 { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
#地図面 .海光 i { position: absolute; left: 0; top: 0; width: calc(100% + 320px); height: 100%; will-change: transform, opacity;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(220,240,255,.55) 0 1.2px, transparent 2.4px),
    radial-gradient(circle at 70% 15%, rgba(220,240,255,.45) 0 1px, transparent 2px),
    radial-gradient(circle at 45% 75%, rgba(220,240,255,.5) 0 1.2px, transparent 2.4px),
    radial-gradient(circle at 85% 60%, rgba(220,240,255,.4) 0 1px, transparent 2px),
    radial-gradient(ellipse 60px 6px at 35% 50%, rgba(170,210,255,.10), transparent 70%);
  background-size: 320px 220px; animation: 海の流れ 60s linear infinite, 海の瞬き 5.2s ease-in-out infinite; }
@keyframes 海の流れ { from { transform: translateX(-320px); } to { transform: translateX(0); } }
@keyframes 海の瞬き { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
/* 命令の欄の小さな絵（43。2026-11-17 自走）: 届くまでは使われない（字だけ） */
#令窓 .令絵 { display: inline-block; width: 22px; height: 22px; margin: -3px 7px -3px -2px; vertical-align: middle; border-radius: 4px; background: center / cover no-repeat #161b26; box-shadow: 0 0 0 1px rgba(255,255,255,.08); font-style: normal; }
#令窓 .令絵.施 { position: absolute; left: 6px; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 0; }
#令窓 .令.施設札:has(.令絵.施) { padding-left: 42px; }
/* 既読の会話の印（52。2026-11-17 自走）: オートの左に小さく。押せない印 */
#Goセリフレイヤー .会既 { position: fixed; right: 272px; top: 78px; z-index: 2147483050; padding: 2px 9px; font-size: 11px; font-weight: bold; color: #9fd0a0; background: rgba(12,14,20,.72); border: 1px solid rgba(159,208,160,.5); border-radius: 10px; pointer-events: none; }
/* ターンの始まりの帯の敵の侵攻（43。2026-11-17 自走） */
.ターン札 .ターン侵 { font-size: 15px; color: #cfe0cf; text-shadow: 0 0 6px #000; padding-left: 10px; border-left: 3px solid #6c8a6c; }
.ターン札 .ターン侵.失 { color: #ffc2b8; border-left-color: #c0392b; }
/* ロードの札の推移の線（41・53。2026-11-17 自走） */
.ロード札 .推線 { flex: none; display: block; overflow: visible; } .ロード札 .推線 .推底 { stroke: #3a4256; stroke-width: 1; } .ロード札 .推線 .推末 { stroke: #1b2232; stroke-width: 2; }
/* 攻略進捗の頭の戦績（46・53。2026-11-17 自走） */
.勢頭 .勢績 { margin-left: auto; font-size: 13px; }
/* 章達成の帯の期間（43。2026-11-17 自走） */
.章達帯 .章達期 { font-size: 15px; color: #e0d3b0; text-shadow: 0 0 6px #000; padding-left: 12px; border-left: 2px solid rgba(255,215,106,.6); }
/* 敵国情報の撃破（46。2026-11-17 自走） */
.捕名 .敵撃 { margin-left: 6px; padding: 0 6px; font-size: 11px; font-weight: bold; color: #ffd0c8; background: rgba(184,50,42,.45); border: 1px solid rgba(255,154,138,.5); border-radius: 8px; }
/* 品図鑑の手に入る所（52。2026-11-17 自走） */
.鑑出 { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 13px; color: #cfd6e6; } .鑑出 small { flex-basis: 100%; color: #9aa3b5; font-size: 12px; } .鑑出 span { padding: 1px 8px; background: rgba(255,255,255,.06); border-radius: 4px; }
/* 兵種の印（40 画.兵種印。2026-11-17 自走の仮採用） */
.兵印 { display: inline-block; width: 1.05em; height: 1.05em; margin-right: .22em; vertical-align: -.16em; flex: none; } .兵印 svg { width: 100%; height: 100%; display: block; overflow: visible; } .兵印 path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } .兵印 path.塗 { fill: currentColor; stroke: none; }
/* 実績のメダルの絵（09・42・47。2026-11-17 自走。届くまでは 🏆） */
.績印.絵 { background-size: cover; background-position: center; } .実札 .実絵 { position: absolute; right: 6px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background-size: cover; background-position: center; filter: grayscale(1) brightness(.6); } .実札.取 .実絵 { filter: none; box-shadow: 0 0 8px rgba(255,210,110,.45); } .実札:has(.実絵) { padding-right: 52px; }
/* 兵種図鑑（52。2026-11-17 自走の仮採用） */
.兵鑑群 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; } .兵鑑 { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-left: 4px solid; border-radius: 6px; } .兵鑑頭 { display: flex; align-items: center; gap: 6px; font-size: 18px; } .兵鑑頭 .兵印 { width: 22px; height: 22px; } .兵鑑頭 small { color: #9aa3b5; font-size: 12px; } .兵鑑自 { margin-left: auto; padding: 0 8px; font-size: 12px; color: #dfe6f5; background: rgba(47,111,224,.35); border-radius: 8px; } .兵鑑 .鑑値 { padding: 3px 0; } .兵鑑 .鑑値列.小 .鑑値 b { font-size: 14px; } .兵鑑 .鑑値 small { font-size: 11px; } .兵鑑技 { display: flex; gap: 6px; align-items: baseline; font-size: 13px; } .兵鑑技 small { flex: none; color: #9aa3b5; font-size: 11px; width: 3.4em; }
/* 下の帯の次のターンの収入（43。2026-11-17 自走） */
.値箱 .金次 { margin-left: 4px; font-size: 11px; font-weight: bold; color: #9fd08a; }
/* スタッフロールの仲間の段と場面の絵（46。2026-11-17 自走の仮採用） */
.巻絵.巻場 { opacity: 0; transition: opacity 1.8s ease; filter: saturate(.85) blur(1px); } .巻絵.巻場.出 { opacity: .34; }
.巻仲群 { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; max-width: 900px; } .巻仲人 { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; } .巻仲人 .顔丸 { width: 64px; height: 64px; border: 2px solid rgba(217,178,90,.6); box-shadow: 0 2px 10px #000; } .巻行 .巻仲人 b { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.巻幕.済 .巻仲 { display: none; }
/* 技図鑑（52。2026-11-17 自走の仮採用） */
.技鑑 { display: flex; gap: 12px; } .技鑑群 { flex: 1; position: relative; } .技鑑段 { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; } .技鑑札 { padding: 3px 9px; font-size: 13px; min-height: 0; border-left: 3px solid #666; } .技鑑札.物理 { border-left-color: #ffd970; } .技鑑札.魔法 { border-left-color: #c38bff; } .技鑑札.回復 { border-left-color: #7fe08a; } .技鑑札.支援 { border-left-color: #6cc6e0; } .技鑑札.選 { background: rgba(217,178,90,.25); border-color: #d9b25a; }
.技鑑板 { width: 330px; flex: none; max-height: 560px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: rgba(255,255,255,.04); border-radius: 6px; } .技鑑板 .鑑頭 small { margin-left: 8px; color: #9aa3b5; font-size: 12px; } .技鑑文 { margin: 0; padding-left: 1.1em; font-size: 13px; line-height: 1.55; color: #dfe6f5; } .技鑑板 .鑑出 span small { color: #9aa3b5; font-size: 11px; }
