/* Desktop geometry is untouched. These rules apply only to compact touch screens. */
.mobile-orientation{display:none}
.defence-stat .defence-token{display:inline-grid;place-items:center;min-width:1.6em;height:1.6em;border-radius:50%;background:#d6e6ea;color:#162c38;border:2px solid #5d7e91;box-shadow:0 1px 4px #0007;line-height:1;margin:-.3em 0}
.action-close-bottom{display:block;margin:18px auto 0;min-width:120px}
@media (max-width:1100px) and (pointer:coarse){
 body{font-size:12px}body header,.modern-mode header{height:42px;padding:3px 8px;gap:6px}header .brand img,.modern-mode header .brand img{width:26px;height:26px}header .brand span,.modern-mode header .brand span{font-size:15px;letter-spacing:2px}header .brand small,header nav a,#connection{display:none}header nav{gap:4px}header nav button,.modern-mode header nav button{font-size:10px;padding:3px 6px;min-height:32px}
 .mobile-orientation{display:flex;position:fixed;bottom:26px;left:8px;z-index:70;max-width:calc(100vw - 16px);gap:5px;align-items:center;border:1px solid #7e8e96;border-radius:6px;background:#152329f5;padding:4px;font-size:11px}.mobile-orientation button{min-height:32px;padding:5px;font-size:10px}.mobile-orientation.dismissed{display:none}
 .modern-shell{--rail:188px;inset-block-start:42px;grid-template-rows:minmax(0,1fr) 24px}.modern-board{min-width:490px}.board-rows{padding:5px 8px 12px}.modern-match-heading{font-size:9px;margin-bottom:4px}.modern-match-heading b{font-size:11px}.modern-zone{padding:3px 3px 5px;min-height:0}.zone-title{font-size:8px;margin:2px 0 3px;letter-spacing:.6px}.zone-empty{height:8px}.modern-board .unit-row{gap:6px;padding:3px 0}.modern-board .source-row{padding:3px 0 0;margin:0}
 .modern-board .card-wrap,.modern-board .tabletop-wrap{width:74px;flex:0 0 74px;max-width:none}.modern-board .tabletop-card{height:103px;min-height:0;border-radius:4px}.modern-board .table-caption{padding:12px 3px 4px}.modern-board .table-caption strong{font-size:8px;line-height:1.1}.modern-board .table-caption strong.long-name{font-size:7px}.modern-board .table-stats{font-size:7px;gap:3px;padding-right:15px}.modern-board .table-stats b{font-size:8px}.modern-board .table-cost{width:18px;height:18px;font-size:11px;line-height:18px;border-width:1px}.modern-board .table-top{padding:3px}.modern-board .owner{font-size:6px;padding:2px}.modern-board .tabletop-card .owner{max-width:34px}.modern-board .inspect-icon{width:24px;height:24px;min-height:24px;padding:4px;right:-3px;bottom:-3px}.modern-board .inspect-icon svg{width:15px;height:15px}.modern-board .table-tapped{top:26px;left:3px;font-size:6px;padding:2px}.modern-board .table-sleep{top:24px;right:3px;font-size:9px;padding:1px}.modern-board .table-sleep img{width:16px;height:16px}.modern-board .card-statuses{top:25px;left:2px;right:20px;gap:2px}.modern-board .status-badge{font-size:6px;padding:2px}.modern-board .card-tools{margin-top:3px;padding:0}.modern-board .equipped{min-height:22px;font-size:8px;padding:2px}.modern-board .disabled-token,.modern-board .disabled-token img{width:22px;height:22px}.modern-board .disabled-token{top:26px}
 .modern-hand{padding:5px 0}.modern-hand .hand{gap:6px;padding:3px;justify-content:center}.opponent-hand{min-height:25px;padding:2px;gap:3px}.opponent-hand img{height:24px;width:17px}.opponent-hand span{font-size:8px}.modern-warfronts{gap:8px;padding:6px 0}.modern-warfront{min-width:164px;padding:4px;border-radius:6px}.warfront-slots{padding:3px 0;gap:5px}.empty-slot,.occupied-slot{width:76px;min-height:105px;border-radius:4px}.slot-owner{font-size:8px}.modern-warfront .warfront-label{gap:6px;padding:4px;min-height:0;flex-wrap:nowrap;justify-content:flex-start;margin:4px 0}.modern-warfront .warfront-label img{height:68px;width:68px}.warfront-label b{font-size:11px}.warfront-label small{font-size:7px}
 .modern-rail{overflow:auto}.modern-player{padding:5px 7px}.player-identity{gap:5px}.player-identity img{height:22px;width:22px}.player-identity strong{font-size:10px}.player-identity span{font-size:8px}.general-health{font-size:15px}.player-piles{grid-template-columns:1fr 1fr 1fr;gap:5px;margin-top:4px}.deck-pile{height:29px;padding-left:23px}.deck-pile img{width:19px;height:27px;opacity:.7}.deck-pile b,.grave-pile b,.resource-pile b{font-size:12px}.deck-pile span,.grave-pile span,.resource-pile span{font-size:8px}.grave-pile{min-height:30px;padding:1px}.panel-controls{margin-top:4px;gap:3px}.panel-controls button,.timer-setting{font-size:9px;min-height:28px;padding:3px}.timer-setting{margin:1px 0}.show-actions{font-size:9px;margin:2px 0;min-height:20px}.show-actions input{width:16px;height:16px}.modern-middle{flex:1 0 100px;min-height:100px;overflow:auto}.modern-middle .sidebar section{padding:6px}.modern-middle .sidebar h3{font-size:13px;margin:3px 0}.modern-middle .sidebar p{font-size:10px;margin:4px 0}.modern-middle .sidebar button{font-size:10px;min-height:34px;padding:5px}.modern-middle .action-list{max-height:180px}.modern-middle .log{max-height:120px}.modern-middle .seats button{min-height:30px}.modern-ad{font-size:8px;min-height:24px}.export-button{margin:4px 6px}
 body:not(.modern-mode) .game-layout{grid-template-columns:minmax(0,1fr) 200px;gap:8px}body:not(.modern-mode) .sidebar{position:sticky;top:45px;max-height:calc(100dvh - 50px);overflow:auto}body:not(.modern-mode) .tabletop-wrap,body:not(.modern-mode) .hand .tabletop-wrap{width:92px;flex-basis:92px;max-width:none}body:not(.modern-mode) .tabletop-card{height:128px;min-height:0}body:not(.modern-mode) .table-caption strong{font-size:10px}body:not(.modern-mode) .table-stats{font-size:8px}body:not(.modern-mode) .table-stats b{font-size:10px}body:not(.modern-mode) .unit-row,body:not(.modern-mode) .hand{gap:7px}body:not(.modern-mode) .location-banner img{width:90px;height:90px}body:not(.modern-mode) .table-cost{width:22px;height:22px;font-size:13px}.inspect-icon{min-height:28px;width:28px;height:28px;padding:4px}.table-cost{line-height:1}#inspect{max-height:95dvh;padding:12px}#inspect-content{padding-top:26px}#action-notice,#hand-reveal{max-height:94dvh;padding:12px}#action-notice h2{font-size:16px}.action-person{width:105px;flex-basis:105px}.action-source{flex-basis:105px}.action-person img{height:90px}.action-person figcaption{font-size:11px}.action-portraits{gap:10px}.action-targets{max-width:calc(100% - 115px);gap:8px}.action-response-list{max-height:150px}.action-heading{font-size:13px}.action-close-bottom{position:sticky;bottom:0;z-index:2;background:#263d43}
}
@media (max-width:1100px) and (pointer:coarse) and (orientation:landscape){.mobile-orientation span{display:none}.mobile-orientation{opacity:.8}.mobile-orientation button{font-size:9px;min-height:24px}.modern-player .player-identity{flex-wrap:wrap}.own-player .player-identity>div{display:grid;grid-template-columns:1fr 1fr;gap:0 4px;flex:1}.own-player .player-identity strong,.own-player .player-identity span{grid-column:1/-1}.own-player .player-identity .show-actions{white-space:nowrap;font-size:8px}.modern-player .general-health{margin-left:auto}}
@media (max-width:600px) and (pointer:coarse) and (orientation:portrait){.modern-shell{--rail:145px}.modern-board{min-width:490px}.modern-middle .sidebar section{padding:5px}.player-identity img{display:none}body:not(.modern-mode) .game-layout{grid-template-columns:minmax(0,1fr)}body:not(.modern-mode) .sidebar{position:static}.mobile-orientation span{max-width:125px}}
@media (max-width:1100px) and (pointer:coarse) and (orientation:landscape){
 .modern-player .player-identity{display:grid;grid-template-columns:20px minmax(0,1fr) 34px;align-items:start;gap:4px}.modern-player .player-identity img{width:20px;height:20px}.modern-player .general-health{margin:0;font-size:12px;grid-column:3;grid-row:1}.own-player .player-identity>div{display:grid;grid-template-columns:1fr 1fr;gap:1px 3px}.own-player .player-identity .show-actions{font-size:8px;line-height:1.2;min-height:18px;margin:0}.own-player .player-identity input{width:13px;height:13px;margin:0 3px 0 0}.modern-player .player-identity strong{font-size:9px;line-height:1.2}.modern-player .player-identity span{font-size:7px;line-height:1.2}.modern-player .player-piles{margin-top:4px}.modern-player .grave-pile{height:29px;min-height:29px;line-height:1.1}.modern-player .panel-controls{grid-template-columns:repeat(4,1fr);gap:2px}.modern-player .panel-controls button{padding:3px 1px;font-size:8px;min-height:24px;line-height:1.1}.modern-player .timer-setting{padding:2px 4px;min-height:22px;margin:3px 0 0;width:100%}.modern-player{padding:5px 6px}
}

.modern-board .card-statuses .table-tapped{position:static}
