/* 戦国の覇者3 大東亜戦争 */
:root { --地: #14181f; --帯: rgba(16, 20, 28, 0.93); --字: #e8e6df; --薄字: #9aa3ad; --金: #ffd84a; --線: #3a4350; --窓: rgba(20, 25, 34, 0.96); --赤: #e05a4a; --緑: #5cd65c; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--地); color: var(--字); font-family: "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif; overflow: hidden; }
#ゲーム { position: fixed; inset: 0; }
#地図 { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#地図:active { cursor: grabbing; }
button, select { font: inherit; font-size: 13px; color: var(--字); background: #263040; border: 1px solid #4a5668; border-radius: 4px; padding: 3px 9px; cursor: pointer; }
button:hover:not(:disabled), select:hover { background: #31405a; }
button:disabled { opacity: 0.4; cursor: default; }
button.押 { background: #7a5a12; border-color: var(--金); color: #fff; }
input[type=checkbox] { accent-color: var(--金); }

/* 上の帯 */
#上部 { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--帯); border-bottom: 1px solid var(--線); font-size: 13px; white-space: nowrap; z-index: 5; }
.帯国 { font-weight: bold; color: #fff; border-left: 6px solid #888; padding-left: 6px; font-size: 15px; }
.帯日 { color: var(--金); font-variant-numeric: tabular-nums; min-width: 9.5em; }
#速さ button { padding: 2px 7px; margin-right: 2px; }
#帯_資 { display: flex; gap: 10px; overflow: hidden; }
.資 b { color: var(--薄字); font-weight: normal; }
.資.警 { color: #ff8a7a; font-weight: bold; cursor: pointer; border: 1px solid rgba(224, 90, 74, 0.6); border-radius: 4px; padding: 0 5px; animation: 警の脈 1.4s ease-in-out infinite; }
.資.補切 { color: #ff8a7a; font-weight: bold; cursor: pointer; border: 1px solid rgba(224, 90, 74, 0.6); border-radius: 4px; padding: 0 5px; animation: 警の脈 1.4s ease-in-out infinite; }
.師状.切 { color: #ff8a7a; font-weight: bold; }
/* 地区の窓: 選んだ師団をこの地区へ向かわせるボタン（81_地区窓）。敵の地区は赤 */
.中身 .命ボ { border-color: rgba(111, 214, 111, 0.8); color: #c8f5c8; font-weight: bold; animation: 窓の促し 1.8s ease-in-out infinite; }
.中身 .命ボ.攻 { border-color: rgba(224, 90, 74, 0.85); color: #ffc0b4; }
.資.迫る .値 { color: #ff8a7a; font-weight: bold; animation: 警の脈 1.4s ease-in-out infinite; border-radius: 4px; padding: 0 3px; }
@keyframes 警の脈 { 50% { background: rgba(224, 90, 74, 0.25); box-shadow: 0 0 8px rgba(224, 90, 74, 0.6); } }
.空き { flex: 1; }
#窓ボタン button { margin-left: 2px; }

/* 下の帯（知らせ） */
#下部 { position: absolute; left: 0; bottom: 0; max-width: min(60%, calc(100% - var(--展開帯幅, 0px) - 28px)); padding: 6px 10px; pointer-events: none; z-index: 4; }
#知らせ .知 { pointer-events: auto; background: rgba(12, 16, 22, 0.82); border-left: 3px solid var(--金); margin-top: 3px; padding: 3px 8px; font-size: 13px; cursor: pointer; border-radius: 0 4px 4px 0; }
#下部 .版 { color: var(--薄字); font-size: 11px; }
.日 { color: var(--薄字); font-size: 11px; font-variant-numeric: tabular-nums; }

/* 右の窓 */
#窓 { position: absolute; right: 0; top: 38px; bottom: 0; width: 400px; max-width: 92vw; background: var(--窓); border-left: 1px solid var(--線); display: flex; flex-direction: column; z-index: 6; }
.窓題 { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--線); font-size: 16px; font-weight: bold; color: var(--金); }
.窓題 .閉 { padding: 0 9px; }
.中身 { overflow-y: auto; padding: 8px 12px 30px; font-size: 13px; }
.中身 h3 { font-size: 13px; color: var(--金); margin: 14px 0 6px; border-bottom: 1px solid var(--線); padding-bottom: 2px; }
.行 { display: flex; align-items: center; gap: 8px; padding: 3px 0; border-bottom: 1px dotted #2b3340; }
.行 .名 { color: var(--薄字); min-width: 7.5em; }
.行.選 { background: rgba(255, 216, 74, 0.15); }
.ボタン列 { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; align-items: center; }
.注 { color: var(--薄字); font-size: 12px; margin: 4px 0; }
.棒 { display: inline-block; width: 70px; height: 6px; background: #333b48; border-radius: 3px; overflow: hidden; vertical-align: middle; }
.棒 i { display: block; height: 100%; background: var(--緑); }
.国札小 { border-left: 6px solid #888; padding-left: 5px; }
.戦況 { background: rgba(224, 90, 74, 0.15); border-left: 3px solid var(--赤); padding: 4px 8px; margin: 6px 0; }
.師 { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; padding: 4px 6px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.師:hover { background: #222b38; }
.師.選 { border-color: var(--金); background: rgba(255, 216, 74, 0.1); }
.師.他 { opacity: 0.8; cursor: default; }
.師名 .色 { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; }
.師状 { color: var(--薄字); font-size: 12px; text-align: right; }
.師棒 { grid-column: 1 / 3; display: flex; gap: 4px; }
.師棒 .棒 { width: 33%; height: 4px; }
.表 { width: 100%; border-collapse: collapse; }
.表 th, .表 td { padding: 3px 4px; border-bottom: 1px solid #2b3340; text-align: left; }
.表 th { color: var(--薄字); font-weight: normal; }
.表 button { padding: 0 6px; }
.任せる { display: block; margin: 4px 0 8px; color: #cfe3ff; }
.技 { display: grid; grid-template-columns: 1fr auto; padding: 3px 6px; border-radius: 4px; opacity: 0.45; }
.技.可 { opacity: 1; cursor: pointer; }
.技.可:hover { background: #2a3546; }
.技.済 { opacity: 0.8; color: #9fd39f; }
.技名 { font-weight: bold; }
.技年 { color: var(--薄字); }
.技効 { grid-column: 1 / 3; color: var(--薄字); font-size: 12px; }
.軍 { display: flex; gap: 8px; padding: 8px; border: 1px solid var(--線); border-radius: 6px; margin: 6px 0; background: rgba(255, 255, 255, 0.02); }
.軍本 { flex: 1; min-width: 0; }
.軍名 { margin-bottom: 3px; }
.将 { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.顔 { width: 56px; height: 56px; object-fit: cover; object-position: top; border-radius: 6px; background: #2a3240; flex: none; }
.将 .顔 { width: 34px; height: 34px; }
.顔.大 { width: 150px; height: 150px; }
.国行 { display: flex; align-items: center; gap: 8px; padding: 4px 2px; border-bottom: 1px dotted #2b3340; flex-wrap: wrap; }
.国行.敵 .関 { color: #ff8a7a; font-weight: bold; }
.国行.味 .関 { color: #8ef08e; }
.国行 .小 { color: var(--薄字); font-size: 11px; flex-basis: 100%; }
.知 { padding: 3px 4px; border-bottom: 1px dotted #2b3340; cursor: pointer; }
.知.我 { color: #fff3c4; }
.講和頭 { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }

/* 題の画面 */
#題画面 { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20, 30, 46, 0.86), rgba(8, 10, 14, 0.96)); display: flex; align-items: center; justify-content: center; z-index: 20; overflow-y: auto; }
.題枠 { text-align: center; max-width: 980px; padding: 24px; }
.題枠 h1 { font-size: 40px; margin: 0; color: var(--金); letter-spacing: 0.08em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.英題 { color: var(--薄字); letter-spacing: 0.2em; margin: 6px 0 14px; }
.説明 { color: #d8d4c8; margin-bottom: 18px; }
.国札々 { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.国札 { width: 168px; padding: 8px; border: 2px solid #555; border-radius: 10px; background: rgba(30, 36, 48, 0.9); }
.国札.押 { box-shadow: 0 0 0 3px var(--金); background: rgba(70, 56, 20, 0.9); }
.国札 .国名 { font-size: 18px; font-weight: bold; margin-top: 6px; }
.国札 .指導者 { color: var(--薄字); }
.他の国 { margin: 14px 0; }
.始め { display: flex; gap: 12px; justify-content: center; margin: 10px 0; }
.大ボタン { font-size: 16px; padding: 8px 22px; background: #6b4e10; border-color: var(--金); }
.大ボタン.控え { background: #263040; border-color: #4a5668; }

/* 知らせ箱（事件など） */
#箱 { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 30; }
.箱枠 { display: flex; gap: 16px; background: #1b2230; border: 1px solid var(--金); border-radius: 10px; padding: 18px; max-width: 640px; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6); animation: 出る 0.25s ease-out; }
.箱本 h2 { margin: 0 0 6px; color: var(--金); }
.箱本 p { line-height: 1.6; }
@keyframes 出る { from { transform: translateY(16px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
#ひとこと { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); background: rgba(20, 26, 36, 0.95); border: 1px solid var(--金); border-radius: 6px; padding: 6px 14px; z-index: 25; font-size: 14px; }

/* ストーリー */
.話見出し { color: var(--金); font-size: 20px; margin: 22px 0 8px; }
.話々 { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; text-align: left; }
.話札 { border-top: 4px solid #888; padding: 8px 10px; border-radius: 6px; background: rgba(30, 36, 48, 0.9); }
.話札.鍵 { opacity: 0.6; }
.話国 { color: var(--薄字); font-size: 12px; }
.話題 { font-size: 16px; font-weight: bold; }
.話日 { color: var(--薄字); font-size: 12px; }
.話日 span { white-space: nowrap; }
/* ストーリーのあらすじ欄（寄せた・パッドで選んだ札）。空の間は高さだけ取る */
.話説明 { min-height: 3.2em; margin: 8px 0 4px; padding: 6px 12px; text-align: left; font-size: 13px; line-height: 1.6; color: var(--字); border-left: 4px solid transparent; background: rgba(20, 25, 34, 0.6); border-radius: 4px; }
.話説明:empty { background: transparent; }
.話説明 b { color: var(--金); margin-right: 8px; }
.話説明.出 { animation: 地区替わる 0.25s ease-out; }
.話印 { font-size: 12px; color: #9fd39f; margin-top: 2px; }
.話札.鍵 .話印 { color: #ffcf80; }
.目標 { color: #ffe680; }
.大隊々 { display: flex; flex-wrap: wrap; gap: 4px; }
.大隊 { background: #34405a; }
.大隊:hover { background: #6a2a2a; }

/* 押した手応え・窓の出（右から滑って出る） */
button { transition: background-color 0.12s, transform 0.06s, filter 0.12s; }
button:active:not(:disabled) { transform: translateY(1px) scale(0.96); filter: brightness(1.3); }
#窓:not([hidden]) { animation: 窓が出る 0.18s ease-out; }
@keyframes 窓が出る { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 宣戦・参戦・講和・降伏の帯（短い全画面の告知。長さは --長） */
.告知帯 { --帯色: var(--金); position: absolute; left: 0; right: 0; top: max(34%, calc(var(--上高, 38px) + 340px)); z-index: 15; pointer-events: none; text-align: center; padding: 14px 0 12px; background: linear-gradient(90deg, transparent, rgba(10, 12, 18, 0.88) 18%, rgba(10, 12, 18, 0.88) 82%, transparent); border-top: 2px solid var(--帯色); border-bottom: 2px solid var(--帯色); animation: 告知 var(--長, 2400ms) ease-in-out forwards; }
.告知帯.宣戦 { --帯色: #e05a4a; }
.告知帯.参戦 { --帯色: #e8964a; }
.告知帯.講和 { --帯色: #8ec8ff; }
.告知帯.降伏.負 { --帯色: #a0a0a0; }
.告知題 { font-size: 34px; font-weight: bold; letter-spacing: 0.3em; color: var(--帯色); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); animation: 告知題 var(--長, 2400ms) ease-out; }
.告知文 { font-size: 15px; margin-top: 4px; color: #f0ece0; }
@keyframes 告知 { 0% { opacity: 0; transform: scaleY(0.15); } 12% { opacity: 1; transform: scaleY(1); } 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes 告知題 { 0% { transform: translateX(-60px); opacity: 0; letter-spacing: 0.6em; } 18% { transform: none; opacity: 1; letter-spacing: 0.3em; } 100% { transform: none; } }

/* ---------- lv10api 連携（2026-11-25）: Lv10 メニューの余白・UI の倍率・演出カット・⚙ⓘ ---------- */
#上部 { padding-left: max(10px, var(--lv10余白, 10px)); }
#窓 { top: var(--上高, 38px); }
#上部, #窓, #下部, #ひとこと, .題枠, .箱枠, .告知帯 { zoom: calc(var(--lv10-表示倍率, 1) * var(--lv10-文字倍率, 1)); }
#設定ボタン, #ヘルプボタン { padding: 2px 8px; }
.題の隅 { position: absolute; right: 14px; top: 12px; display: flex; gap: 6px; }
.題の隅 button { font-size: 18px; padding: 4px 11px; }
html.演出カット *, html.演出カット *::before, html.演出カット *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
#ひとこと.出 { animation: ひとこと出 0.22s ease-out; }
@keyframes ひとこと出 { from { transform: translateX(-50%) translateY(-8px) scale(0.96); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }

/* 題の画面: 縦に収まらない時も上が切れない（中央寄せは margin で） */
#題画面 { align-items: flex-start; }
.題枠 { margin: auto; }

/* ---------- 題の画面の動き・開幕の幕・勝ち負けの印（2026-11-25） ---------- */
.題枠 h1 { animation: 題字 0.9s ease-out both; }
.英題 { animation: 下から 0.7s 0.25s ease-out both; }
.国札 { --国色: #888; transition: transform 0.15s, box-shadow 0.2s, background-color 0.2s; animation: 下から 0.5s ease-out backwards; }
.国札:nth-child(1) { animation-delay: 0.15s; } .国札:nth-child(2) { animation-delay: 0.22s; } .国札:nth-child(3) { animation-delay: 0.29s; } .国札:nth-child(4) { animation-delay: 0.36s; } .国札:nth-child(5) { animation-delay: 0.43s; }
.国札:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--国色); }
.国札 .顔 { transition: transform 0.25s; }
.国札:hover .顔, .国札.押 .顔 { transform: scale(1.04); }
.国札.押 { animation: 下から 0.5s ease-out backwards, 選んだ 1.8s 0.6s ease-in-out infinite; }
.話札 { animation: 下から 0.45s ease-out backwards; transition: transform 0.15s, box-shadow 0.2s; }
.話札:hover:not(.鍵) { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); }
.話札.鍵:hover { opacity: 0.8; }
.始め .大ボタン:not(.控え) { animation: 下から 0.5s 0.5s ease-out backwards, 誘う 2.4s 1.2s ease-in-out infinite; }
@keyframes 題字 { from { opacity: 0; letter-spacing: 0.4em; filter: blur(6px); } to { opacity: 1; letter-spacing: 0.08em; filter: none; } }
@keyframes 下から { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes 選んだ { 0%, 100% { box-shadow: 0 0 0 3px var(--金), 0 0 8px rgba(255, 216, 74, 0.25); } 50% { box-shadow: 0 0 0 3px var(--金), 0 0 22px rgba(255, 216, 74, 0.6); } }
@keyframes 誘う { 0%, 100% { box-shadow: 0 0 0 rgba(255, 216, 74, 0); } 50% { box-shadow: 0 0 16px rgba(255, 216, 74, 0.55); } }

#開幕 { --国色: var(--金); position: absolute; inset: 0; z-index: 18; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(8, 10, 14, 0.75), rgba(4, 5, 8, 0.97)); animation: 幕上がる 2.3s ease-in forwards; }
.幕国 { font-size: 54px; font-weight: bold; letter-spacing: 0.25em; color: #fff; text-shadow: 0 0 24px var(--国色), 0 2px 8px #000; border-bottom: 3px solid var(--国色); padding: 0 24px 6px; animation: 幕字 2.3s ease-out forwards; }
.幕日 { margin-top: 12px; font-size: 20px; color: var(--金); letter-spacing: 0.15em; animation: 幕字 2.3s 0.15s ease-out both; }
@keyframes 幕上がる { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }
@keyframes 幕字 { 0% { opacity: 0; transform: scale(1.25); filter: blur(4px); } 20% { opacity: 1; transform: none; filter: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }

.箱枠.勝ち { border-color: var(--金); box-shadow: 0 0 0 1px var(--金), 0 0 40px rgba(255, 216, 74, 0.45), 0 8px 40px rgba(0, 0, 0, 0.6); }
.箱枠.負け { border-color: #777; filter: saturate(0.4); }
.結果印 { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); font-size: 72px; font-weight: bold; letter-spacing: 0.3em; pointer-events: none; animation: 印を押す 0.7s cubic-bezier(.2, 1.6, .4, 1) both; }
.結果印.勝ち { color: var(--金); text-shadow: 0 0 30px rgba(255, 216, 74, 0.8), 0 3px 10px #000; }
.結果印.負け { color: #b8b8b8; text-shadow: 0 3px 10px #000; }
@keyframes 印を押す { from { opacity: 0; transform: translateX(-50%) scale(2.4) rotate(-8deg); } to { opacity: 1; transform: translateX(-50%) scale(1) rotate(-4deg); } }
.順位 li.我 { color: var(--金); font-weight: bold; }

/* ---------- 上の帯の増減（2026-11-25）: 替わった数が緑（良い）か赤（悪い）に光り、▲▼ が浮いて消える ---------- */
#帯_資 .資 { position: relative; }
#帯_資 .資.押せる { cursor: pointer; border-radius: 4px; transition: background-color 0.15s; }
#帯_資 .資.押せる:hover { background: rgba(255, 216, 74, 0.14); }
#帯_資 .資.良 .値 { animation: 良く光る 1.1s ease-out; }
#帯_資 .資.悪 .値 { animation: 悪く光る 1.1s ease-out; }
#帯_資 .資.良::after, #帯_資 .資.悪::after { content: attr(data-印); position: absolute; right: -9px; top: -2px; font-size: 9px; pointer-events: none; animation: 印が浮く 1.1s ease-out forwards; }
#帯_資 .資.良::after { color: #8ef08e; }
#帯_資 .資.悪::after { color: #ff8a7a; }
#帯_日.月替 { animation: 月替わり 0.9s ease-out; }
#上部 { overflow: visible; }
#帯_資 { padding-top: 3px; margin-top: -3px; }
@keyframes 良く光る { 0% { color: #8ef08e; text-shadow: 0 0 8px rgba(142, 240, 142, 0.9); } 100% { color: inherit; text-shadow: none; } }
@keyframes 悪く光る { 0% { color: #ff8a7a; text-shadow: 0 0 8px rgba(255, 138, 122, 0.9); } 100% { color: inherit; text-shadow: none; } }
@keyframes 印が浮く { 0% { opacity: 1; transform: translateY(4px); } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes 月替わり { 0% { color: #fff; text-shadow: 0 0 10px var(--金); transform: scale(1.08); } 100% { transform: none; } }
#帯_日 { display: inline-block; transform-origin: left center; }
/* 広い画面でも Lv10 メニューの分だけ狭い時は、資源を縮めて隠さず、入らない物を2段目へ回す */
    #上部 { flex-wrap: wrap; row-gap: 4px; }
    #帯_資 { flex: 0 0 auto; overflow: visible; }

/* ---------- 下の知らせ（2026-11-25）: 種で縁の色・新しい知らせは左から滑って入り、一度光る ---------- */
#知らせ .知.戦 { border-left-color: #e05a4a; }
#知らせ .知.和 { border-left-color: #8ec8ff; }
#知らせ .知.落 { border-left-color: #b0b0b0; }
#知らせ .知.事 { border-left-color: #e8964a; }
#知らせ .知 { transition: background-color 0.15s, transform 0.15s; }
#知らせ .知:hover { background: rgba(30, 38, 52, 0.95); transform: translateX(3px); }
#知らせ .知.新 { animation: 知らせ入る 0.45s ease-out, 知らせ光る 1.4s 0.2s ease-out; }
@keyframes 知らせ入る { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes 知らせ光る { 0% { box-shadow: inset 0 0 0 999px rgba(255, 216, 74, 0.22); } 100% { box-shadow: inset 0 0 0 999px rgba(255, 216, 74, 0); } }

/* ---------- 題の画面の DLC（2026-11-25）: 使う／使わないを札で並べる。入れた札は金に光る ---------- */
.DLC枠 { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px auto 4px; max-width: 760px; animation: 下から 0.5s 0.55s ease-out backwards; }
.DLC枠 .追加DLC { display: contents; }
.DLC枠 .任せる { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 14px 5px 10px; border: 1px solid #4a5668; border-radius: 18px; background: rgba(30, 36, 48, 0.9); cursor: pointer; transition: background-color 0.15s, border-color 0.15s, box-shadow 0.2s, transform 0.1s; }
.DLC枠 .任せる:hover { border-color: #7d8899; transform: translateY(-1px); }
.DLC枠 .任せる:has(input:checked) { border-color: var(--金); background: rgba(90, 70, 20, 0.85); color: #fff3c4; box-shadow: 0 0 10px rgba(255, 216, 74, 0.3); }
.DLC枠 > button, .DLC枠 .追加DLC > button { border-radius: 18px; padding: 5px 14px; }
.DLC枠 .DLC効 { font-size: 11px; color: var(--薄字); margin-left: 2px; }
.DLC枠 .任せる:has(input:checked) .DLC効 { color: #e8d79a; }
.DLC枠 .任せる:not(:has(input:checked)) { opacity: 0.75; }
/* 止めている間は ‖ がゆっくり脈打つ。速さのボタンは押した時に小さく弾む */
#速さ button[data-v="0"].押 { animation: 止め中 1.6s ease-in-out infinite; }
#速さ button.押:not([data-v="0"]) { box-shadow: 0 0 8px rgba(255, 216, 74, 0.45); }
@keyframes 止め中 { 0%, 100% { box-shadow: 0 0 0 rgba(255, 216, 74, 0); } 50% { box-shadow: 0 0 10px rgba(255, 216, 74, 0.7); } }
/* 研究の枠が空いている・軍需工場が余っている時は 開発／生産 のボタンが金に脈打つ（80_画面 の 画.帯） */
#窓ボタン button.促:not(.押) { animation: 窓の促し 1.8s ease-in-out infinite; border-color: rgba(255, 216, 74, 0.8); }
@keyframes 窓の促し { 0%, 100% { box-shadow: 0 0 0 rgba(255, 216, 74, 0); } 50% { box-shadow: 0 0 10px rgba(255, 216, 74, 0.75); } }
/* 止めている間に命令を出した師団があれば ▶ ▶▶ が緑に脈打つ（80_画面 の 画.促す） */
#速さ.命令待ち button[data-v="1"], #速さ.命令待ち button[data-v="2"] { animation: 命令待ち 1.1s ease-in-out infinite; border-color: #6fd66f; }
@keyframes 命令待ち { 0%, 100% { box-shadow: 0 0 0 rgba(111, 214, 111, 0); transform: none; } 50% { box-shadow: 0 0 12px rgba(111, 214, 111, 0.85); transform: scale(1.08); } }

/* ---------- 知らせ箱（事件・ストーリーの始まり・結果）の出方（2026-11-25） ---------- */
#箱:not([hidden]) { animation: 幕が降りる 0.25s ease-out; }
.箱顔 { animation: 顔が出る 0.5s 0.08s ease-out backwards; }
.箱顔 .顔 { border: 1px solid rgba(255, 216, 74, 0.5); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); }
.箱本 h2 { border-bottom: 1px solid rgba(255, 216, 74, 0.35); padding-bottom: 4px; animation: 題が伸びる 0.5s 0.1s ease-out backwards; }
.箱本 > p, .箱本 > ol, .箱本 > div:not(.ボタン列) { animation: 下から 0.4s 0.2s ease-out backwards; }
.箱本 .ボタン列 { animation: 下から 0.4s 0.3s ease-out backwards; }
/* 数字キーで押せる印（80_画面 の keydown。ボタンが2つ以上の時だけ） */
.箱本 > .ボタン列 { counter-reset: 箱ボタン; }
.箱本 > .ボタン列 > button { counter-increment: 箱ボタン; }
.箱本 > .ボタン列 > button:nth-last-child(n+2)::before, .箱本 > .ボタン列 > button:nth-child(n+2)::before { content: counter(箱ボタン); display: inline-block; min-width: 1.3em; margin-right: 6px; padding: 0 3px; border: 1px solid currentColor; border-radius: 3px; font-size: 11px; line-height: 1.3; opacity: 0.55; text-align: center; }
.箱本 > .ボタン列 > button:nth-child(n+10)::before { content: none; }
@keyframes 幕が降りる { from { background: rgba(0, 0, 0, 0); } to { background: rgba(0, 0, 0, 0.5); } }
@keyframes 顔が出る { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes 題が伸びる { from { opacity: 0; letter-spacing: 0.25em; } to { opacity: 1; letter-spacing: normal; } }

/* 地区の窓: 別の地区を選ぶと中身が滑って入り、上の縁が支配する国の色になる。建てるボタンは寄せると浮く */
.中身.地区替 { animation: 地区替わる 0.25s ease-out; }
.中身.地区の中 { border-top: 3px solid var(--主色, transparent); }
@keyframes 地区替わる { from { opacity: 0.2; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.中身 .ボタン列 button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); }
/* 地区の窓（11-25 磨き）: 統治・抵抗の棒に数、選んだ数、選んだ・命じた師団の行が光る、攻めている師団は左に赤い縁 */
.棒と数 { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.棒と数.危 { color: #ff8a7a; animation: 抵抗の脈 1.6s ease-in-out infinite; }
@keyframes 抵抗の脈 { 50% { text-shadow: 0 0 8px rgba(224, 90, 74, 0.8); } }
h3 .選んだ数 { margin-left: 8px; font-size: 12px; font-weight: normal; color: var(--金); }
.師 { transition: background 0.15s, border-color 0.15s; }
.師.選 { box-shadow: inset 3px 0 0 var(--金); }
.師.攻 { border-left: 3px solid var(--赤); }
.師.師光 { animation: 師が光る 0.5s ease-out; }
@keyframes 師が光る { 0% { transform: scale(1.03); box-shadow: 0 0 12px rgba(255, 216, 74, 0.7); } 100% { transform: none; } }
.師.命光 { animation: 師が出る 1.2s ease-out; }
@keyframes 師が出る { 0% { background: rgba(120, 200, 255, 0.4); transform: translateX(8px); } 30% { transform: none; } 100% { background: transparent; } }
.注.建光 { animation: 行が光る 1.4s ease-out; }
.中身.支替 { animation: 支替わる 1.2s ease-out; }
.中身.支替.取 { --替色: rgba(92, 214, 92, 0.35); }
.中身.支替.失 { --替色: rgba(224, 90, 74, 0.4); }
@keyframes 支替わる { 0% { background: var(--替色); box-shadow: inset 0 0 24px var(--替色); } 100% { background: transparent; } }
.施設札々 { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.施設札 { font-size: 12px; padding: 0 6px; border: 1px solid var(--線); border-radius: 9px; background: rgba(255, 255, 255, 0.04); white-space: nowrap; }
.施設札 b { color: var(--金); }
.施設札.無 { opacity: 0.45; }
.施設札.無 b { color: inherit; }
.施設札.港 { border-color: #3d6a8f; color: #a9d2f0; }
.注.建設中 { display: flex; align-items: center; gap: 8px; }
.注.建設中 .棒 { flex: 1; max-width: 120px; }
.注.建設中 > span:first-child { min-width: 5.5em; }
.注.建説 { min-height: 1.4em; color: #cfe3ff; }
.注.建説.不 { color: var(--薄字); }
/* ひとことは上の帯（2段になっても）の下に出す */
#ひとこと { top: calc(var(--上高, 38px) + 14px); }
/* オートセーブの印・1946年の順位が順に出る */
#下部 .保存印 { position: fixed; right: 12px; bottom: 8px; font-size: 12px; color: var(--金); opacity: 0; pointer-events: none; }
#下部 .保存印.出 { animation: 保存印 1.8s ease-out; }
@keyframes 保存印 { 0% { opacity: 0; transform: translateY(6px); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.順位 li { animation: 下から 0.35s ease-out backwards; }
.順位 li:nth-child(1) { animation-delay: 0.3s; } .順位 li:nth-child(2) { animation-delay: 0.38s; } .順位 li:nth-child(3) { animation-delay: 0.46s; } .順位 li:nth-child(4) { animation-delay: 0.54s; } .順位 li:nth-child(5) { animation-delay: 0.62s; }
.順位 li:nth-child(6) { animation-delay: 0.7s; } .順位 li:nth-child(7) { animation-delay: 0.78s; } .順位 li:nth-child(8) { animation-delay: 0.86s; } .順位 li:nth-child(9) { animation-delay: 0.94s; } .順位 li:nth-child(10) { animation-delay: 1.02s; }
#帯_国, #帯_日 { cursor: pointer; user-select: none; }
#帯_国:hover, #帯_日:hover { filter: brightness(1.25); }
.帯敵 { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 8px; background: rgba(224, 90, 74, 0.25); border: 1px solid rgba(224, 90, 74, 0.7); color: #ffb0a0; font-size: 11px; font-weight: normal; vertical-align: middle; }
.帯敵.増 { animation: 帯敵増 0.9s ease-out; }
/* 年表（終わりの箱から）: 年の見出しと出来事。宣戦は赤・降伏は橙・講和は青の縁、自分の国の行は金の字 */
.年表 { max-height: 52vh; overflow-y: auto; text-align: left; min-width: min(560px, 80vw); padding-right: 4px; }
.年表年 { position: sticky; top: 0; background: rgba(20, 25, 34, 0.98); color: var(--金); font-weight: bold; padding: 4px 0 2px; border-bottom: 1px solid var(--線); }
.年表行 { font-size: 13px; padding: 2px 6px; margin: 2px 0; border-left: 3px solid #556; animation: 下から 0.3s ease-out backwards; }
.年表行 .日 { color: var(--薄字); margin-right: 8px; font-variant-numeric: tabular-nums; }
.年表行.戦 { border-left-color: var(--赤); }
.年表行.落 { border-left-color: #e0904a; }
.年表行.和 { border-left-color: #5aa8e6; }
.年表行.我 { color: #fff3c4; }
/* 年の帯: 1月1日に画面の真ん中を金の帯が横切る（押せる物の邪魔をしない） */
#年の帯 { position: absolute; left: 0; right: 0; top: max(38%, calc(var(--上高, 38px) + 340px)); z-index: 17; pointer-events: none; display: flex; justify-content: center; background: linear-gradient(90deg, transparent, rgba(10, 12, 18, 0.85) 20%, rgba(10, 12, 18, 0.85) 80%, transparent); border-top: 1px solid rgba(255, 216, 74, 0.6); border-bottom: 1px solid rgba(255, 216, 74, 0.6); animation: 年の帯 2.6s ease-in-out forwards; }
#年の帯 { flex-direction: column; align-items: center; }
#年の帯 small { color: var(--薄字); font-size: 13px; letter-spacing: 0.3em; padding-bottom: 5px; animation: 年の字 2.6s ease-out forwards; }
#年の帯 span { font-size: 40px; font-weight: bold; letter-spacing: 0.3em; color: var(--金); text-shadow: 0 0 18px rgba(255, 216, 74, 0.6), 0 2px 6px #000; padding: 6px 0; animation: 年の字 2.6s ease-out forwards; }
@keyframes 年の帯 { 0% { opacity: 0; transform: scaleY(0.2); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes 年の字 { 0% { transform: translateX(-60px); opacity: 0; } 20% { transform: none; opacity: 1; } 80% { transform: translateX(10px); } 100% { transform: translateX(40px); opacity: 0; } }
@keyframes 帯敵増 { 0% { transform: scale(1.6); box-shadow: 0 0 12px rgba(255, 90, 70, 0.9); } 100% { transform: none; } }
/* その他の国を選んだ時は選ぶ欄が金の縁で脈打つ（国札の選びと同じ） */
.他の国 select { padding: 5px 12px; font-size: 14px; }
.他の国 select.押 { border-color: var(--金); background: rgba(90, 70, 20, 0.9); color: #fff; animation: 選んだ 1.8s ease-in-out infinite; }
/* 倍率（zoom）の掛かった窓・ひとことは、上の帯の実の高さを倍率で割って置く */
#窓 { top: calc(var(--上高, 38px) / (var(--lv10-表示倍率, 1) * var(--lv10-文字倍率, 1))); }
#ひとこと { top: calc((var(--上高, 38px) + 14px) / (var(--lv10-表示倍率, 1) * var(--lv10-文字倍率, 1))); }
.題の版 { position: fixed; right: 12px; bottom: 8px; color: var(--薄字); font-size: 11px; letter-spacing: 0.05em; pointer-events: none; }

/* 地図の上の地区札（マウスを止めた地区） */
#地区札 { position: absolute; z-index: 7; pointer-events: none; display: flex; gap: 8px; align-items: center; padding: 3px 9px; font-size: 12px; background: rgba(12, 16, 22, 0.9); border: 1px solid var(--線); border-radius: 4px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
#地区札 b { color: #fff; }
#地区札 span { border-left: 5px solid #888; padding-left: 5px; color: var(--字); }
#地区札 i { font-style: normal; color: var(--金); }

/* スマホの長押し: 指の下で輪が 0.6秒かけて満ち、効いたら金に弾けて消える */
.長押し輪 { position: absolute; z-index: 8; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; pointer-events: none; border: 3px solid rgba(255, 216, 74, 0.25); background: conic-gradient(rgba(255, 216, 74, 0.55) var(--満, 0%), transparent 0); -webkit-mask: radial-gradient(circle, transparent 18px, #000 19px); mask: radial-gradient(circle, transparent 18px, #000 19px); animation: 輪が満ちる 0.6s linear forwards; }
.長押し輪.効いた { animation: 輪が弾ける 0.35s ease-out forwards; background: rgba(255, 216, 74, 0.7); }
@property --満 { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes 輪が満ちる { 0%, 25% { --満: 0%; opacity: 0; } 35% { opacity: 1; } 100% { --満: 100%; opacity: 1; } }
@keyframes 輪が弾ける { from { transform: scale(1); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* 題の画面の国札: 上に国の色の帯・顔の後ろに国の色の光・首都と政体 */
.国札 { position: relative; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--国色) 22%, rgba(30, 36, 48, 0.92)) 0%, rgba(30, 36, 48, 0.92) 55%); }
.国札::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--国色); }
.国札 .顔 { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--国色) 45%, transparent), #2a3240 70%); }
.国札.押 { background: linear-gradient(180deg, color-mix(in srgb, var(--国色) 35%, rgba(70, 56, 20, 0.92)) 0%, rgba(70, 56, 20, 0.92) 60%); }
.国情 { display: flex; justify-content: center; gap: 8px; margin-top: 3px; font-size: 11px; color: var(--薄字); }
.国情 .政体 { padding: 0 6px; border: 1px solid var(--線); border-radius: 8px; }

/* ストーリーの始まり・結果の箱: 国の色の縁・期間の副題・目標の札・結果の数 */
.箱枠.話の始まり { border-color: var(--国色, var(--金)); box-shadow: 0 0 0 1px var(--国色, var(--金)), 0 0 30px color-mix(in srgb, var(--国色, #ffd84a) 40%, transparent), 0 8px 40px rgba(0, 0, 0, 0.6); }
.話の副 { color: var(--薄字); font-size: 13px; margin-bottom: 4px; letter-spacing: 0.05em; }
.目標札 { display: flex; gap: 10px; align-items: baseline; margin: 10px 0; padding: 8px 12px; border: 1px solid rgba(255, 216, 74, 0.45); border-left: 4px solid var(--金); border-radius: 4px; background: rgba(255, 216, 74, 0.07); color: #ffe680; line-height: 1.5; }
.目標札 b { flex: none; color: var(--金); letter-spacing: 0.1em; }
.箱枠.話の始まり .目標札 { animation: 下から 0.4s 0.35s ease-out backwards, 目標が光る 1.6s 0.8s ease-out; }
@keyframes 目標が光る { 0% { box-shadow: 0 0 0 rgba(255, 216, 74, 0); } 30% { box-shadow: 0 0 16px rgba(255, 216, 74, 0.55); } 100% { box-shadow: 0 0 0 rgba(255, 216, 74, 0); } }
.結びの文 { margin: 6px 0 10px; padding: 2px 0 2px 12px; border-left: 2px solid rgba(255, 255, 255, 0.25); color: #e8e2cc; line-height: 1.8; font-size: 15px; animation: 下から 0.6s 0.2s ease-out backwards; }
.箱枠.勝ち .結びの文 { border-left-color: var(--金); }
.結果の数 { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0; font-variant-numeric: tabular-nums; }
.結果の数 b { color: var(--薄字); font-weight: normal; margin-right: 6px; font-size: 12px; }
.結果の数 span { animation: 下から 0.35s ease-out backwards; }
.結果の数 span:nth-child(2) { animation-delay: 0.45s; } .結果の数 span:nth-child(3) { animation-delay: 0.55s; } .結果の数 span:nth-child(4) { animation-delay: 0.65s; } .結果の数 span:nth-child(1) { animation-delay: 0.35s; }
.続き情報 { color: var(--薄字); font-size: 12px; margin: -4px 0 6px; animation: 下から 0.5s 0.6s ease-out backwards; }
/* 続きの札: 国の色の縁・顔・国と日付・地区と師団（押すと続きから） */
.続き札 { --国色: #888; display: inline-flex; align-items: center; gap: 10px; margin: 2px auto 8px; padding: 5px 14px 5px 6px; border: 1px solid #4a5668; border-left: 4px solid var(--国色); border-radius: 8px; background: rgba(30, 36, 48, 0.9); cursor: pointer; text-align: left; transition: transform 0.15s, box-shadow 0.2s; }
.続き札:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5), 0 0 10px color-mix(in srgb, var(--国色) 40%, transparent); }
.続き札 img.顔 { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; border: 1px solid var(--国色); }
.続き題 { display: flex; gap: 8px; align-items: baseline; color: var(--字); font-size: 13px; }
.続き題 b { font-size: 15px; color: #fff; }
.続き話 { color: var(--金); font-size: 12px; }
.続き数 { display: flex; gap: 10px; font-size: 12px; color: var(--薄字); }
.続き数 .続き時 { opacity: 0.75; }

/* 勝利の印のまわりに金の粒が弾けて散る（2回） */
.結果印.勝ち::before, .結果印.勝ち::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: transparent; pointer-events: none;
    box-shadow: 0 -60px 0 #ffd84a, 42px -42px 0 #fff3c4, 60px 0 0 #ffd84a, 42px 42px 0 #fff3c4, 0 60px 0 #ffd84a, -42px 42px 0 #fff3c4, -60px 0 0 #ffd84a, -42px -42px 0 #fff3c4, 90px -20px 0 #ffd84a, -90px 20px 0 #ffd84a, 20px 90px 0 #fff3c4, -20px -90px 0 #fff3c4;
    animation: 粒が散る 1.1s 0.5s ease-out both; }
.結果印.勝ち::after { animation-delay: 0.9s; transform: rotate(22deg); }
@keyframes 粒が散る { 0% { opacity: 0; transform: scale(0.2) rotate(0deg); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(2.2) rotate(30deg); } }
#地区札 u { text-decoration: none; color: #ffb0a0; font-size: 11px; }
#地区札 em { font-style: normal; color: #ff8a7a; font-weight: bold; animation: 止め中 1.2s ease-in-out infinite; }
/* 選んだ師団の命令の見込み（攻めるは赤・行けないだけは灰） */
#地区札 .札命 { color: #9fe0ff; padding-left: 6px; border-left: 1px solid var(--線); }
#地区札 .札命.攻 { color: #ffb0a0; }
#地区札 .札命.不 { color: #8b939d; font-weight: normal; }
#地区札 i.敵 { color: #ff8a7a; }
#地区札 .札補 { font-size: 11px; color: #9fe0a8; } #地区札 .札補.無 { color: #ff8a7a; font-weight: bold; }

/* 演出の量「少ない」: 帯の札に浮く ▲▼（.資::after）と JS の浮く字・揺れだけを残し、CSS の動きを省く */
html.演出少 *, html.演出少 *::before, html.演出少 *:not(.資)::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
/* 狭いパソコンの窓: 資源が1行に入らなければ折り返す（画面の外へ切れない） */
#帯_資 { flex-wrap: wrap; max-width: 100%; row-gap: 2px; }

/* 結果の窓の戦績と年表（80_画面 の 戦績の箱） */
.戦績箱 { text-align: left; margin-top: 6px; min-width: min(520px, 80vw); }
.戦績題 { margin: 8px 0 2px; color: var(--金); font-size: 13px; border-bottom: 1px solid var(--線); padding-bottom: 2px; }
.戦績行 { font-size: 13px; margin: 3px 0; animation: 下から 0.35s ease-out 0.7s backwards; }
.戦績行 b { color: var(--薄字); font-weight: normal; margin-right: 8px; font-size: 12px; }
.戦績年表 { max-height: 30vh; overflow-y: auto; padding-right: 4px; }
/* 事件の札（80_画面 の 事件の札）: 選ぶ窓の出ない事件を顔と題で知らせる */
/* 開発の札（E11）: 上の真ん中にせり上がり、金の光が横に走って消える */
#開発札 { position: absolute; left: 50%; top: calc(var(--上高, 38px) + 46px); z-index: 23; pointer-events: none; display: flex; flex-direction: column; align-items: center; min-width: 200px; padding: 5px 22px 7px; overflow: hidden; background: linear-gradient(180deg, rgba(40, 34, 14, 0.95), rgba(16, 18, 24, 0.95)); border: 1px solid rgba(255, 216, 74, 0.75); border-radius: 6px; box-shadow: 0 0 18px rgba(255, 216, 74, 0.35), 0 4px 14px rgba(0, 0, 0, 0.6); animation: 開発札 2.4s ease-out forwards; }
#開発札 small { font-size: 11px; letter-spacing: 0.25em; color: #e8d9a0; }
#開発札 b { font-size: 18px; letter-spacing: 0.06em; color: var(--金); text-shadow: 0 0 10px rgba(255, 216, 74, 0.55); }
#開発札.光::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 245, 200, 0.55), transparent); transform: skewX(-20deg); animation: 開発札の光 0.9s 0.25s ease-out both; }
@keyframes 開発札 { 0% { opacity: 0; transform: translate(-50%, 16px) scale(0.92); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.04); } 20% { transform: translate(-50%, 0) scale(1); } 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -10px); } }
@keyframes 開発札の光 { from { left: -40%; } to { left: 120%; } }
#事件札々 { position: absolute; left: 50%; top: calc(var(--上高, 38px) + 92px); transform: translateX(-50%); z-index: 24; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.事件札 { pointer-events: auto; cursor: pointer; display: flex; gap: 10px; align-items: center; width: min(460px, 80vw); padding: 6px 12px 6px 6px; background: linear-gradient(90deg, rgba(40, 32, 10, 0.96), rgba(20, 25, 34, 0.96)); border: 1px solid var(--金); border-left: 5px solid var(--国色, var(--金)); border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 14px rgba(255, 216, 74, 0.25); animation: 事件札入る 0.45s cubic-bezier(.2, 1.3, .4, 1) both; }
.事件札 img.顔 { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; flex: none; border: 1px solid rgba(255, 216, 74, 0.5); }
.事件札文 { display: flex; flex-direction: column; min-width: 0; font-size: 12px; color: #e8e6df; }
.事件札文 b { color: var(--金); font-size: 15px; letter-spacing: 0.05em; }
.事件札文 small { color: var(--薄字); font-size: 11px; }
.事件札文 span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.事件札.去る { animation: 事件札去る 0.5s ease-in both; }
@keyframes 事件札入る { from { opacity: 0; transform: translateY(-18px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes 事件札去る { to { opacity: 0; transform: translateY(-10px); } }
/* 札の厚み（E6 11-29）: 入る時に光の筋が走る（.光）・効果のある事件は金の縁が息をする（.重） */
.事件札.光 { position: relative; overflow: hidden; }
.事件札.光::after { content: ''; position: absolute; top: 0; bottom: 0; left: -50%; width: 40%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 240, 180, 0.5), transparent); animation: 札の光 0.9s 0.3s ease-out both; }
.事件札.重 { border: 2px solid #ffd84a; border-left: 5px solid var(--国色, var(--金)); animation: 事件札入る 0.45s cubic-bezier(.2, 1.3, .4, 1) both, 札の息 1.6s 0.45s ease-in-out 3; }
.事件札.重 .事件札文 b::before { content: '★ '; color: #ffd84a; }
.事件札.重.去る { animation: 事件札去る 0.5s ease-in both; }
@keyframes 札の光 { from { left: -50%; } to { left: 120%; } }
@keyframes 札の息 { 0%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 14px rgba(255, 216, 74, 0.3); } 50% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 216, 74, 0.75); } }
/* 大きな帯（80_画面 の 大きな帯）: 宣戦・降伏・講和で画面を横切る */
#大きな帯 { position: absolute; left: 0; right: 0; top: max(30%, calc(var(--上高, 38px) + 340px)); z-index: 17; pointer-events: none; display: flex; flex-direction: column; align-items: center; background: linear-gradient(90deg, transparent, rgba(10, 12, 18, 0.85) 20%, rgba(10, 12, 18, 0.85) 80%, transparent); border-top: 1px solid var(--帯色, rgba(255, 216, 74, 0.6)); border-bottom: 1px solid var(--帯色, rgba(255, 216, 74, 0.6)); animation: 年の帯 2.6s ease-in-out forwards; }
#大きな帯 span { font-size: 34px; font-weight: bold; letter-spacing: 0.18em; color: var(--帯字, var(--金)); text-shadow: 0 0 18px var(--帯光, rgba(255, 216, 74, 0.6)), 0 2px 6px #000; padding: 4px 0 0; animation: 年の字 2.6s ease-out forwards; }
#大きな帯 small { color: var(--薄字); font-size: 12px; padding-bottom: 4px; letter-spacing: 0.1em; }
#大きな帯.戦 { --帯色: rgba(224, 90, 74, 0.8); --帯字: #ff9a8a; --帯光: rgba(224, 90, 74, 0.7); }
#大きな帯.和 { --帯色: rgba(90, 168, 230, 0.8); --帯字: #a8d8ff; --帯光: rgba(90, 168, 230, 0.6); }
#大きな帯.負 { --帯色: rgba(150, 150, 150, 0.7); --帯字: #c8c8c8; --帯光: rgba(0, 0, 0, 0.6); }
/* 帯の左右に差し込む国の色（E6 11-29）と、画面の縁の光 */
#大きな帯 .帯旗 { position: absolute; top: 0; bottom: 0; width: 22%; z-index: -1; opacity: 0.6; pointer-events: none; }
#大きな帯 .帯旗.左 { left: 0; background: linear-gradient(90deg, var(--旗), transparent); animation: 旗左 2.6s ease-out both; }
#大きな帯 .帯旗.右 { right: 0; background: linear-gradient(270deg, var(--旗), transparent); animation: 旗右 2.6s ease-out both; }
@keyframes 旗左 { 0% { transform: translateX(-100%); } 25%, 100% { transform: none; } }
@keyframes 旗右 { 0% { transform: translateX(100%); } 25%, 100% { transform: none; } }
#縁の光 { position: absolute; inset: 0; z-index: 16; pointer-events: none; box-shadow: inset 0 0 140px 30px var(--縁色, rgba(255, 216, 74, 0.6)); animation: 縁の光 1.1s ease-out both; }
#縁の光.戦 { --縁色: rgba(230, 50, 30, 0.7); }
#縁の光.和 { --縁色: rgba(90, 168, 230, 0.55); }
#縁の光.負 { --縁色: rgba(0, 0, 0, 0.85); }
@keyframes 縁の光 { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- 題の画面を 1280×720 前後で1画面に収める（代行の判断 11-29 19:13）: 幅 1280px 以下かつ高さ 820px 以下の時だけ ---------- */
/* 枠を広げて DLC を1段・ストーリーの札を7列2段にし、札の字と余白を詰める。顔と余白も少し詰める */
@media (max-width: 1280px) and (max-height: 820px) {
	.題枠 { width: 100%; max-width: 1240px; padding: 10px 20px; box-sizing: border-box; }
	.題枠 h1 { font-size: 34px; }
	.英題 { margin: 2px 0 8px; }
	.国札 .顔.大 { height: 128px; }
	.他の国 { margin: 6px 0; }
	.始め { margin: 6px 0; }
	.DLC枠 { max-width: none; margin: 6px auto 2px; }
	.話見出し { margin: 8px 0 4px; }
	.話々 { gap: 6px; }
	.話札 { padding: 3px 8px 4px; line-height: 1.25; }
	.話国, .話日, .話印 { font-size: 11px; }
	.話題 { font-size: 15px; }
	.話印 { margin-top: 0; }
	.話説明 { margin: 4px 0 0; padding: 4px 12px; }
}