/* 集団戦（js/550_集団戦.js）。舞台 1280×720 の上に重ねる。z-index 0 ＝後から開く窓（RQ.窓）が上に来る */
.集幕 { position: absolute; inset: 0; z-index: 0; color: var(--字); background: radial-gradient(ellipse at 50% 40%, #2c4a2e, #0d1a12 75%) center / cover no-repeat; animation: 集入 .5s ease-out; overflow: hidden; }
.集幕.閉 { animation: 集去 .4s ease-in forwards; }
@keyframes 集入 { from { opacity: 0; } to { opacity: 1; } } @keyframes 集去 { to { opacity: 0; } }

.集頭 { position: absolute; left: 0; right: 0; top: 0; height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 12px 0 258px; white-space: nowrap; background: linear-gradient(#000d, #0009); border-bottom: 2px solid var(--枠); font-size: 15px; }
.集題 { font-size: 19px; font-weight: bold; color: var(--黄); letter-spacing: 1px; min-width: 200px; }
.集手 b, .集行 b { font-size: 22px; color: #fff; }
.集行 { padding: 2px 10px; border-radius: 4px; background: var(--赤淡); }
.集軍 { display: flex; align-items: center; gap: 6px; } .集軍 b { min-width: 64px; text-align: right; }
.集軍棒 { width: 110px; height: 10px; background: #0008; border-radius: 5px; overflow: hidden; }
.集軍棒 .量 { height: 100%; transition: width .5s; }
.集軍.味 .量 { background: linear-gradient(90deg, #2a6fb0, #6fb8ff); } .集軍.敵 .量 { background: linear-gradient(90deg, #b03a2a, #ff7a5f); }

.集盤 { position: absolute; left: 8px; top: 58px; width: 980px; height: 580px; }
.集線 { position: absolute; left: 0; top: 0; width: 980px; height: 580px; pointer-events: none; }
.集線 .道 line { stroke: #e8e2c8; stroke-opacity: .55; stroke-width: 5; stroke-dasharray: 2 9; stroke-linecap: round; }
.集線 .援 line { stroke: var(--黄); stroke-width: 7; stroke-opacity: .9; animation: 集援 .5s ease-out; }
.集線 marker path { fill: var(--黄); }
@keyframes 集援 { from { stroke-opacity: 0; } }

.集点 { position: absolute; width: 104px; height: 104px; margin: -40px 0 0 -52px; padding: 0; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.集点::before { content: ''; position: absolute; left: 14px; top: 56px; width: 76px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #d9d3b8, #8f8a72 70%); box-shadow: 0 4px 0 #3c3a2c, 0 6px 10px #0008; }
.集点.森::before { background: radial-gradient(ellipse at 50% 35%, #5f8f4e, #2f5228 70%); }
.集点.森::after { content: '♣♣'; position: absolute; left: 30px; top: 50px; font-size: 16px; color: #1d3a18; letter-spacing: 2px; pointer-events: none; }
.集点.本陣::before { box-shadow: 0 0 0 3px var(--黄), 0 4px 0 #3c3a2c, 0 6px 14px #000a; }
.集点:disabled { cursor: default; }
.集点.印_動::before { background: radial-gradient(ellipse at 50% 35%, #9fd0ff, #2a6fb0 70%); box-shadow: 0 0 14px #6fb8ff, 0 4px 0 #1d3a57; animation: 集点滅 1s ease-in-out infinite; }
.集点.印_攻::before { background: radial-gradient(ellipse at 50% 35%, #ffb09f, #b03a2a 70%); box-shadow: 0 0 16px #ff5f4a, 0 4px 0 #5a2322; animation: 集点滅 .8s ease-in-out infinite; }
.集点.印_技::before { background: radial-gradient(ellipse at 50% 35%, #e6b8ff, #7a3ab0 70%); box-shadow: 0 0 16px #c77aff; animation: 集点滅 .8s ease-in-out infinite; }
.集点.印_自::before { box-shadow: 0 0 0 3px var(--注目, #ffd23a), 0 0 16px var(--注目, #ffd23a); }
@keyframes 集点滅 { 50% { filter: brightness(1.35); } }

.集駒層, .集演層 { position: absolute; inset: 0; pointer-events: none; }
.集駒 { position: absolute; width: 92px; margin: -38px 0 0 -46px; transition: left .35s ease-in-out, top .35s ease-in-out, opacity .5s, transform .5s; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 4px 4px #000c); }
.集駒顔 { position: relative; display: flex; }
.集駒 .顔.小 { width: 45px; height: 60px; font-size: 22px; border: 2px solid #6fb8ff; z-index: 2; }
.集駒.敵 .顔.小 { border-color: #ff6f5a; background-color: #4a1d18; }
.集駒.大将 .顔.小 { border-color: var(--黄); box-shadow: 0 0 12px var(--黄); }
.集敵顔 { background-size: cover; background-position: center top; }
.集束 { position: absolute; left: 40px; top: 4px; display: flex; z-index: 1; }
.集束 span { width: 14px; height: 46px; margin-left: -4px; border-radius: 3px; background: linear-gradient(#e8f2ff, #8fb6d8); border: 1px solid #2a4a6a; }
.集番 { position: absolute; right: -12px; top: -8px; z-index: 3; min-width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 4px; font-weight: bold; font-size: 14px; background: #2a6fb0; color: #fff; border: 1px solid #fff8; }
.集駒.敵 .集番 { background: #b03a2a; } .集駒.大将 .集番 { background: #b08a1a; }
.集棒 { width: 62px; height: 6px; margin-top: 3px; background: #000a; border-radius: 3px; overflow: hidden; }
.集棒 .量 { height: 100%; background: linear-gradient(90deg, #2a6fb0, #6fb8ff); transition: width .45s; }
.集駒.敵 .集棒 .量 { background: linear-gradient(90deg, #b03a2a, #ff7a5f); }
.集棒.気 { height: 4px; margin-top: 1px; } .集棒.気 .量 { background: linear-gradient(90deg, #b08a1a, #ffe07a) !important; }
.集兵数 { font-size: 12px; font-weight: bold; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.集状 { position: absolute; left: -6px; top: -8px; z-index: 3; font-size: 14px; font-weight: bold; color: #c7a0ff; text-shadow: 0 0 4px #000; }
.集駒.済 { filter: grayscale(.7) brightness(.75) drop-shadow(0 4px 4px #000c); }
.集駒.選 { animation: 集選 .9s ease-in-out infinite; }
.集駒.選 .顔.小 { box-shadow: 0 0 0 3px var(--注目, #ffd23a), 0 0 16px var(--注目, #ffd23a); }
@keyframes 集選 { 50% { transform: translateY(-5px); } }
.集駒.援護 .顔.小 { box-shadow: 0 0 0 3px var(--黄), 0 0 18px var(--黄); }
.集駒.敗走 { opacity: 0; transform: scale(.5) translateY(20px); }

.集側 { position: absolute; right: 8px; top: 58px; width: 274px; bottom: 70px; display: flex; flex-direction: column; gap: 8px; }
.集札 { background: #000b; border: 1px solid var(--枠淡); border-radius: 6px; padding: 8px; font-size: 13px; }
.集札頭 { font-weight: bold; font-size: 15px; color: var(--黄); margin-bottom: 4px; }
.集札行 { margin-top: 4px; } .集札行 b { color: #fff; font-size: 15px; } .集札行.淡 { color: var(--字淡); }
.集人 { display: flex; flex-direction: column; gap: 3px; }
.集人行 { display: flex; align-items: center; gap: 6px; } .集人行 .顔.小 { width: 24px; height: 32px; font-size: 14px; }
.集人行.主 .集人名 { color: var(--黄); }
.集人名 { flex: 1; white-space: nowrap; overflow: hidden; } .集人Lv { color: var(--字淡); font-size: 12px; }
.集気 { display: flex; gap: 1px; } .集気 i { width: 5px; height: 9px; background: #0008; border-radius: 1px; } .集気 i.有 { background: #ffd65a; }
.集釦 { display: flex; flex-direction: column; gap: 6px; }
.集釦 .釦 { min-height: 34px; font-size: 15px; }
.集釦 .釦.集技 { background: linear-gradient(#5a2d7a, #3a1a52); border-color: #c77aff; }
.集釦 .釦.集終 { background: linear-gradient(#7a2d22, #521a14); border-color: #ff7a5f; }
.集釦 .釦.集任 { box-shadow: inset 0 0 0 2px var(--黄); color: var(--黄); }
.集記 { position: absolute; left: 8px; bottom: 6px; width: 980px; height: 60px; padding: 4px 10px; background: #000a; border-radius: 6px; font-size: 13px; line-height: 18px; color: var(--字淡); overflow: hidden; }
.集記 div:last-child { color: var(--字); }

/* 交戦の板 */
.集戦 { position: absolute; left: 130px; top: 190px; width: 1020px; height: 300px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: linear-gradient(90deg, #0d2238ee, #000e 45%, #000e 55%, #3a0f0aee); border-top: 2px solid var(--枠); border-bottom: 2px solid var(--枠); animation: 集戦入 .3s ease-out; z-index: 5; }
.集戦.去 { animation: 集戦去 .25s ease-in forwards; }
@keyframes 集戦入 { from { transform: scaleY(0); opacity: 0; } } @keyframes 集戦去 { to { transform: scaleY(0); opacity: 0; } }
.集戦札 { position: relative; width: 300px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.集戦札 .顔 { width: 120px; height: 160px; font-size: 48px; border: 3px solid #6fb8ff; }
.集戦札.敵 .顔 { border-color: #ff6f5a; background-color: #4a1d18; }
.集戦名 { font-size: 18px; font-weight: bold; } .集戦兵 { font-size: 26px; font-weight: bold; color: #fff; }
.集棒.大 { width: 260px; height: 12px; border-radius: 6px; } .集棒.気.大 { height: 7px; }
.集戦札.敵 .集棒 .量 { background: linear-gradient(90deg, #b03a2a, #ff7a5f); }
.集戦中 { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.集戦題 { font-size: 30px; font-weight: bold; color: var(--黄); text-shadow: 0 0 12px #000, 0 2px 0 #000; letter-spacing: 3px; }
.集合 { font-size: 18px; color: var(--字淡); }
.集戦札.揺 { animation: 集揺 .35s ease-out; }
@keyframes 集揺 { 20% { transform: translateX(-10px); filter: brightness(1.8); } 45% { transform: translateX(8px); } 70% { transform: translateX(-4px); } }
.集敗印 { position: absolute; top: 40px; left: 50%; transform: translateX(-50%) rotate(-12deg); font-size: 46px; font-weight: bold; color: #ff5f4a; border: 4px solid #ff5f4a; padding: 0 14px; border-radius: 8px; background: #000a; animation: 集判 .35s ease-out; }
@keyframes 集判 { from { transform: translateX(-50%) rotate(-12deg) scale(2.2); opacity: 0; } }

.集浮 { position: absolute; transform: translateX(-50%); font-size: 30px; font-weight: bold; color: #fff; text-shadow: 0 2px 0 #000, 0 0 6px #000; animation: 集浮 .9s ease-out forwards; pointer-events: none; z-index: 8; white-space: nowrap; }
.集浮.減 { color: #ff8a7a; } .集浮.増 { color: #7aff9a; }
.集幕 > .集浮 { z-index: 9; }
@keyframes 集浮 { from { opacity: 0; margin-top: 10px; } 20% { opacity: 1; } to { opacity: 0; margin-top: -50px; } }
.集fx { position: absolute; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; pointer-events: none; animation: 集爆 .8s ease-out forwards; }
.集fx.爆 { background: radial-gradient(circle, #fff 0, #ffd65a 25%, #ff6a2a 50%, #ff2a0a00 70%); }
.集fx.乱 { background: conic-gradient(from 0deg, #c77aff00, #c77affcc, #6f3ab000, #c77affcc, #c77aff00); animation-name: 集渦; }
.集fx.眠 { background: radial-gradient(circle, #9fd0ffcc 0, #2a6fb000 65%); }
.集fx.回復 { background: radial-gradient(circle, #b8ffc8 0, #3ac86a99 40%, #3ac86a00 70%); }
@keyframes 集爆 { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@keyframes 集渦 { from { transform: scale(.4) rotate(0); opacity: 1; } to { transform: scale(1.3) rotate(360deg); opacity: 0; } }
.集技名 { position: absolute; left: 50%; top: 120px; transform: translateX(-50%); padding: 8px 40px; font-size: 30px; font-weight: bold; letter-spacing: 6px; background: linear-gradient(90deg, #0000, #1d3a57ee, #0000); border-top: 2px solid #6fb8ff; border-bottom: 2px solid #6fb8ff; animation: 集帯 .3s ease-out; z-index: 6; }
.集技名.敵 { background: linear-gradient(90deg, #0000, #5a2322ee, #0000); border-color: #ff7a5f; }
.集帯 { position: absolute; left: 0; right: 0; top: 300px; height: 90px; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: bold; letter-spacing: 10px; color: #fff; text-shadow: 0 3px 0 #000; background: linear-gradient(90deg, #0000, #1d3a57f0 20%, #1d3a57f0 80%, #0000); animation: 集帯 .35s ease-out; z-index: 7; pointer-events: none; }
.集帯.敵 { background: linear-gradient(90deg, #0000, #5a2322f0 20%, #5a2322f0 80%, #0000); }
.集帯.結 { height: 130px; top: 280px; font-size: 64px; color: var(--黄); }
@keyframes 集帯 { from { transform: scaleX(.2); opacity: 0; } }

/* 編成の窓 */
.集編頭 { font-size: 16px; margin-bottom: 8px; } .集編頭 b { color: var(--黄); font-size: 18px; }
.集編格 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.集編札 { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr auto; gap: 2px 8px; text-align: left; padding: 6px 8px; min-height: 132px; background: #0006; border: 1px solid var(--枠淡); border-radius: 6px; color: var(--字); cursor: pointer; font-size: 13px; }
.集編札.空 { opacity: .55; }
.集編番 { grid-column: 1 / 3; font-weight: bold; color: var(--黄); }
.集編名 { line-height: 17px; } .集編名 .主 { color: var(--黄); }
.集編兵 { grid-column: 1 / 3; color: #9fd0ff; font-weight: bold; }
.集空顔 { background: #0006; color: var(--字淡); }
.集直 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.集直隊, .集直候 { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.集直見 { color: var(--黄); font-size: 14px; font-weight: bold; padding: 2px 0; }
.集直枠.空 { opacity: .55; cursor: default; } .集直枠 .集直名 { flex: 1; } .集直枠 .集直小 { min-height: 28px; padding: 0 10px; font-size: 13px; }
.集直枠 { display: flex; align-items: center; gap: 10px; padding: 4px 8px; background: #0006; border: 1px solid var(--枠淡); border-radius: 6px; color: var(--字); cursor: pointer; text-align: left; font-size: 15px; }
.集直位 { width: 72px; color: var(--黄); font-size: 13px; }
.集直兵 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .集直兵 b { color: #9fd0ff; font-size: 18px; } .集直兵 .釦 { min-height: 30px; padding: 0 10px; }
.集選 { display: flex; flex-direction: column; gap: 4px; max-height: 470px; overflow-y: auto; }
.集選行 { display: flex; align-items: center; gap: 8px; padding: 3px 8px; background: #0006; border: 1px solid #0000; border-radius: 5px; color: var(--字); cursor: pointer; font-size: 14px; text-align: left; }
.集選行.所属 { opacity: .7; }
.集選名 { width: 120px; } .集選Lv { width: 54px; } .集選職 { width: 84px; color: var(--字淡); } .集選統 { width: 48px; color: var(--字淡); } .集選属 { color: #9fd0ff; }
.釦.集出 { background: linear-gradient(#2a6fb0, #1d4a7a); border-color: #9fd0ff; }

/* 結果の窓 */
.集結 { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 16px; }
.集結題 { font-size: 46px; font-weight: bold; letter-spacing: 8px; } .集結題.勝 { color: var(--黄); } .集結題.負 { color: #ff7a5f; }
.集結理 { color: var(--字淡); } .集結行 b { font-size: 20px; color: #fff; } .集結行 b.赤 { color: #ff8a7a; } .集結行.淡 { color: var(--字淡); }

/* 自由攻略（js/305）: 世界地図の窓の地方の札と、推奨の地方の印 */
.攻札 { margin: 4px 0 8px; padding: 6px 10px; background: #0006; border: 1px solid var(--枠淡); border-radius: 6px; font-size: 13px; line-height: 20px; }
.攻札.推奨 { border-color: var(--黄); box-shadow: 0 0 10px #e8d23a55; }
.攻札 b { color: #fff; }
.攻推 { margin-left: 8px; padding: 0 8px; border-radius: 4px; background: var(--黄); color: #2a2200; font-weight: bold; font-size: 12px; }
.地図印.推奨::after { content: '推奨'; position: absolute; left: 50%; top: 30px; transform: translateX(-50%); padding: 0 6px; border-radius: 4px; background: var(--黄); color: #2a2200; font-size: 11px; font-weight: bold; white-space: nowrap; }
.地図印.推奨 { box-shadow: 0 0 0 3px #e8d23a99, 0 0 14px #e8d23a; }

/* 盤の型と地形（2026-11-03 本人「集団戦のマップが似すぎてつまらない」）。丘・浅瀬・砦の点／通れない川・山の飾り／大河の帯 */
.集地 { margin-left: 10px; padding: 1px 8px; border-radius: 4px; border: 1px solid #e8e2c866; color: #e8e2c8; font-size: 13px; font-weight: normal; letter-spacing: 1px; vertical-align: 2px; }
.集帯:has(.集帯添) { flex-direction: column; height: 128px; top: 280px; }
.集帯添 { margin-top: 6px; font-size: 18px; font-weight: normal; letter-spacing: 2px; color: #e8e2c8; }
.集点.丘::before { background: radial-gradient(ellipse at 50% 30%, #d8c08a, #8a6a3a 70%); box-shadow: 0 7px 0 #5a4424, 0 9px 12px #0008; top: 50px; }
.集点.丘::after { content: '▲'; position: absolute; left: 44px; top: 44px; font-size: 15px; color: #5a4424; pointer-events: none; }
.集点.浅瀬::before { background: radial-gradient(ellipse at 50% 35%, #a8d8f0, #3a7ca8 70%); box-shadow: 0 3px 0 #1d4a6a, 0 0 12px #6fc8ff88; }
.集点.浅瀬::after { content: '≈'; position: absolute; left: 44px; top: 50px; font-size: 18px; color: #e8f6ff; pointer-events: none; }
.集点.砦::before { border-radius: 8px; background: repeating-linear-gradient(90deg, #a8a294 0 12px, #8a8476 12px 14px); box-shadow: 0 0 0 3px #5c5848, 0 5px 0 #3c3a2c, 0 7px 12px #0009; }
.集点.砦::after { content: ''; position: absolute; left: 14px; top: 46px; width: 76px; height: 10px; background: repeating-linear-gradient(90deg, #6e6a5c 0 10px, #0000 10px 16px); pointer-events: none; }
.集障 { position: absolute; width: 120px; height: 90px; margin: -30px 0 0 -60px; pointer-events: none; }
.集障.山 { filter: drop-shadow(0 5px 4px #000b); }
.集障.山::before, .集障.山::after { content: ''; position: absolute; clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, #eef2f6 0 22%, #0000 22%), linear-gradient(105deg, #9a9280 0 49%, #5a5444 50%); }
.集障.山::before { left: 0; top: 22px; width: 82px; height: 68px; }
.集障.山::after { left: 38px; top: 0; width: 84px; height: 90px; background: linear-gradient(180deg, #e8ecf0 0 20%, #0000 20%), linear-gradient(105deg, #847c6a 0 49%, #4a4436 50%); }
.集障.川 { opacity: 0; }
.集線 .河 path { fill: none; stroke: #3a86c0; stroke-opacity: .55; stroke-width: 74; stroke-linecap: round; stroke-linejoin: round; }
.集線 .河 path.面 { stroke: #9fd8ff; stroke-opacity: .35; stroke-width: 10; stroke-dasharray: 18 26; animation: 集流 2.4s linear infinite; }
@keyframes 集流 { to { stroke-dashoffset: -44; } }
.集直隊 .集直枠 { cursor: default; }
.集直候 .集選属 { white-space: nowrap; }
