/* Kriegstafel: layout only. Terrain, coloured chips and combat effects retain their original rendering. */
#game{max-width:1180px;margin:0 auto;--tile:74px}
#game .gamegrid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
#game .boardpanel{min-width:0;padding:14px;border:2px solid #cfa555;background:linear-gradient(140deg,#142b48,#080f20);box-shadow:inset 0 0 0 3px #060c17,0 14px 36px #0006;border-radius:12px}
#game #battlefield{padding:8px;background:linear-gradient(110deg,#091a2b,#132b45);border:1px solid #a68145;border-radius:8px}
#game .player-area{padding:8px 6px;background:transparent;border:0;box-shadow:none}
#game .area-head{padding:10px;gap:10px;background:linear-gradient(100deg,#122c50,#091321);border:1px solid #b28c49;border-radius:7px;flex-wrap:wrap}
#game .top-area .area-head{background:linear-gradient(100deg,#281535,#0c1221)}
#game .commander-identity{flex:1;min-width:0}
#game .commander-copy{min-width:0;flex:1}
#game .commander-copy strong{overflow-wrap:anywhere;font-family:Georgia,serif;font-size:18px;color:#ffe4ad}
#game .commander-copy .eyebrow{display:none}
#game .commander-portrait{width:54px;height:54px;border-radius:50%;border:2px solid #dfb75e}
#game .health-track{height:9px;max-width:230px;border:1px solid #e8a17d;background:#301019;margin-top:6px}
#game .health-fill{background:linear-gradient(#ff735e,#c82130)}
#game .mini-stats{display:flex;gap:8px;flex-wrap:wrap;font-size:13px}
#game .mini-stats span{padding:4px 6px;background:#060e1c99;border-radius:4px}
#game #myAP,#game #enemyAP{color:#ffda66;font-size:19px}
#game .gametop{padding:12px 16px;background:#0b1c31;border:1px solid #987640;gap:12px}
#game .gametop .stat-ap,#game .gametop .stat-mana,#game .gametop .stat-hp{display:none}
#game #phaseInfo{font-size:12px}
#game .battle-actions{margin:14px 0 0}
#game #controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#game #controls button{margin:0;width:100%;min-width:0;min-height:58px;padding:10px 8px;border:1px solid #c49b50;border-radius:6px;background:linear-gradient(#203e60,#10243d);color:#fff0cf;font-size:15px;white-space:normal}
#game #controls button small{display:block;font-size:11px;font-weight:normal;margin-top:4px;color:#d7ddea}
#game #controls button.active{background:#794028;box-shadow:inset 0 0 0 2px #ffcb6c}
#game button:disabled{opacity:.45;cursor:not-allowed}
#game .turn-actions{border-top:1px solid #a78345;margin-top:14px;padding-top:10px;display:flex;justify-content:flex-end}
#game #endTurn{width:auto;min-width:190px;margin:0;padding:13px 24px;background:linear-gradient(#ffe49a,#d89c35);color:#211707;border:1px solid #ffdf89;border-radius:6px}
#game .sidebar{position:static;min-width:0;display:flex;flex-direction:column;background:#0c1a2e;border:1px solid #b48a44;padding:16px;border-radius:10px}
#game .sidebar>.history-group{order:10;margin-top:15px}
#game .sidebar h3{margin-top:10px;color:#f8d89c}
#game .sidebar-kicker{color:#ddbb77;font-size:11px;letter-spacing:2px}
#game .cards{display:flex;flex-direction:column;gap:12px}
#game .carditem{width:100%;min-width:0;border:1px solid #caa354;border-radius:7px;background:#0a1526;overflow:hidden}
#game .card-art{height:140px}
#game .card-art img{width:100%;height:100%;object-fit:cover}
#game .card-copy{padding:10px}
#game .card-description{font-size:12px;line-height:1.45}
#game .card-actions{padding:0 10px 10px}
#game .sidebar details{margin-top:18px;font-size:13px}
#game .log{max-height:180px;min-height:0;overflow:auto}
#game .card-tabs{display:none}
.hand-card-dialog{width:min(420px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:16px;border:2px solid #d7ad5c;border-radius:12px;background:#0d1e34;color:#ffedc7;box-shadow:0 20px 70px #000a}
.hand-card-dialog::backdrop{background:#030814cc;backdrop-filter:blur(4px)}
.hand-card-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.hand-card-dialog h2{font-size:20px;margin:0}
.hand-card-dialog header button{min-width:44px;min-height:44px}
.hand-card-dialog .carditem{width:100%;max-width:none}
.hand-card-dialog .card-art{height:210px}
.hand-card-dialog .card-art img{width:100%;height:100%;object-fit:contain}
.hand-card-dialog .card-description{display:block;font-size:15px;line-height:1.5}
.hand-card-dialog .card-actions{display:flex;gap:10px;flex-wrap:wrap}
.hand-card-dialog button{min-height:44px}
@media(min-width:901px) and (max-width:1100px){#game{--tile:62px}#game .gamegrid{grid-template-columns:minmax(0,1fr) 265px;gap:12px}}
@media(max-width:900px){
 #game{--tile:min(12.2vw,78px)}
 #game .gamegrid{grid-template-columns:minmax(0,1fr);gap:12px}
 #game .boardpanel{padding:8px}
 #game .sidebar #cards,#game .sidebar>h3,#game .sidebar-kicker{display:none}
 #game .sidebar{padding:12px}
 #game .card-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}
 #game .card-tabs button{min-width:0;min-height:48px;padding:8px 5px;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.3;background:linear-gradient(#253c60,#15213d);border:1px solid #aa894f;border-radius:6px;color:#ffe5ae}
 #game .card-tabs button:disabled{border-style:dashed}
 #game .sidebar details{margin-top:0}
}
@media(max-width:480px){
 #game{--tile:calc((100vw - 76px)/6)}
 #game #battlefield{padding:4px}
 #game .player-area{padding:6px 0}
 #game .area-head{padding:7px;gap:6px}
 #game .commander-portrait{width:42px;height:42px}
 #game .commander-copy strong{font-size:15px}
 #game .commander-copy small{font-size:11px}
 #game .mini-stats{gap:4px;width:100%;justify-content:space-between}
 #game .mini-stats span{font-size:12px;padding:3px 5px}
 #game .gametop{padding:10px;flex-wrap:wrap}
 #game .statsbar{gap:5px}
 #game .statsbar>span{padding:5px 9px}
 #game #controls button{font-size:13px;min-height:56px}
 #game #endTurn{width:100%;min-width:0}
}
#game #battlefield{min-height:0}
#game .card-art img{object-fit:contain}
.hand-card-dialog .carditem{display:flex;flex-direction:column;gap:12px}
.hand-card-dialog .card-art{aspect-ratio:auto;min-height:210px}
