/* Modern is a presentation choice; both layouts share the authoritative actions. */
.icon-button{display:inline-grid;place-items:center;width:42px;padding:8px;flex-shrink:0}.icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.icon-button:disabled{opacity:.26;cursor:not-allowed}.saved-room-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:8px 0}.room-open{flex:1;min-width:0;overflow-wrap:anywhere}.room-icons{display:flex;gap:4px}#delete-older-rooms{margin-top:18px}.results-controls{display:flex;justify-content:center;gap:12px;margin-top:20px}#match-results .result-close{position:static;min-width:48px}.card.targeted{border-color:#d89bad;box-shadow:0 0 0 2px #b2648a66}.modern-mode{background:#252d30;overflow:hidden}.modern-mode header{height:62px;padding:8px 18px;gap:12px;background:#141d21;border-bottom:1px solid #ffffff14}.modern-mode header .brand img{height:40px;width:40px}.modern-mode header .brand span{font-size:20px;letter-spacing:4px}.modern-mode header .brand small{display:none}.modern-mode header button{font-size:12px;padding:7px 10px}.modern-mode main{padding:0;max-width:none;margin:0}.modern-shell{--rail:300px;position:fixed;inset:62px 0 0;display:grid;grid-template-columns:minmax(0,1fr) var(--rail);grid-template-rows:minmax(0,1fr) 42px;background:#2b3234}.modern-board-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-color:#75807c #2b3234;touch-action:pan-x pan-y;scroll-behavior:auto}.modern-board{position:relative;min-height:100%;min-width:660px;isolation:isolate;background:#343a3b}.landscape{position:absolute;inset-inline:0;height:58%;z-index:-1;background-image:url('/assets/table-atlas.png');background-size:auto 500%;background-repeat:no-repeat;opacity:.78;filter:saturate(1.15) contrast(1.04);pointer-events:none}.landscape-enemy{top:0;mask-image:linear-gradient(to bottom,#000 0%,#000 42%,transparent 100%)}.landscape-own{bottom:0;mask-image:linear-gradient(to top,#000 0%,#000 42%,transparent 100%)}.landscape.faction-Humans{background-position:50% 0%}.landscape.faction-Vampires{background-position:50% 25%}.landscape.faction-Werewolves{background-position:50% 50%}.landscape.faction-Fae{background-position:50% 75%}.landscape.faction-Witches{background-position:50% 100%}.board-rows{padding:12px 22px 22px}.modern-match-heading{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#c4cbc8;margin-bottom:8px;letter-spacing:.6px}.modern-match-heading b{font-size:12px;color:#ece8df;font-weight:500}.modern-initiative{font-size:12px;text-align:center;color:#efe1be}.modern-zone{padding:8px 10px 12px;min-height:50px;border-bottom:1px solid #e5ecec12}.zone-title{font-size:10px;text-transform:uppercase;letter-spacing:1.8px;color:#c0c8c4;margin:2px 0 8px;display:flex;justify-content:space-between}.zone-empty{height:20px;opacity:.2}.modern-board .unit-row{gap:12px;justify-content:center;padding:4px 0}.modern-board .source-row{border:0;padding:8px 0 0;margin:0}.modern-board .card-wrap,.modern-board .tabletop-wrap{width:132.5px;flex:0 0 132.5px}.modern-board .tabletop-card{height:183.75px;aspect-ratio:auto;box-shadow:0 3px 7px #0007;border-radius:6px}.modern-board .tabletop-card img{height:100%;aspect-ratio:auto}.modern-board .card-face{transform-origin:center;transition:none}.modern-board .tilt-0 .card-face{transform:rotate(-2deg)}.modern-board .tilt-1 .card-face{transform:rotate(1.2deg)}.modern-board .tilt-2 .card-face{transform:rotate(-.6deg)}.modern-board .tilt-3 .card-face{transform:rotate(2.1deg)}.modern-board .tilt-4 .card-face{transform:rotate(-1.3deg)}.modern-board .tilt-5 .card-face{transform:rotate(.5deg)}.modern-board .tilt-6 .card-face{transform:rotate(1.7deg)}.modern-board .table-caption{padding:19px 5px 5px}.modern-board .table-caption strong{font-size:12px;line-height:1.14}.modern-board .table-caption strong.long-name{font-size:10px}.modern-board .table-stats{font-size:10px;gap:5px}.modern-board .table-stats b{font-size:12px}.modern-board .table-cost{width:24px;height:24px;font-size:14px;line-height:24px}.modern-board .owner{font-size:8px}.modern-board .inspect-icon{height:28px;min-height:28px;width:28px;right:2px;bottom:2px;padding:5px}.modern-board .table-sleep{font-size:10px}.modern-board .table-tapped{font-size:8px;bottom:auto;padding:2px 4px;line-height:1.15}.modern-board .equipped{font-size:9px;padding:2px 5px;min-height:24px}.modern-board .card-tools{padding-top:2px}.opponent-hand{display:flex;justify-content:center;align-items:center;gap:4px;min-height:51px;padding:5px}.opponent-hand img{height:48px;width:34px;object-fit:cover;border-radius:3px;box-shadow:0 2px 4px #0004}.opponent-hand span{margin-left:8px;font-size:10px;color:#c6ccca}.modern-hand{padding:12px 0 2px}.modern-hand .hand{padding:7px 8px 12px;justify-content:center;flex-wrap:wrap;gap:12px}.modern-warfronts{display:flex;align-items:stretch;gap:14px;padding:20px 0;overflow-x:auto}.modern-warfront{flex:1;min-width:254px;padding:8px;border:1px solid #e6e8db26;background:#323a3b55;border-radius:12px}.warfront-label{display:flex;gap:10px;align-items:center;width:100%;min-height:94px;border:0;border-block:1px solid #ffffff12;background:#222a2d70;text-align:left;padding:8px;margin:7px 0}.warfront-label img{height:78px;width:78px;object-fit:cover;border-radius:4px}.warfront-label b{display:block;font:14px Georgia,serif}.warfront-label small{display:block;font-size:8px;letter-spacing:.6px;margin-top:3px}.slot-owner{font-size:9px;color:#b9c3c0;letter-spacing:.4px}.warfront-slots{display:flex;flex-wrap:wrap;gap:10px;padding:7px 1px;justify-content:center}.empty-slot,.occupied-slot{width:134.5px;min-height:185.75px;border:1px dotted #c4ccbc60;border-radius:7px}.empty-slot{background:#1e26251a}.occupied-slot{border-color:transparent}.modern-rail{display:flex;flex-direction:column;min-height:0;background:#161f23;border-left:1px solid #fff1;overflow:hidden}.modern-player{padding:13px 14px;border-bottom:1px solid #fff1;flex-shrink:0}.modern-player.active{background:#202c2f;box-shadow:inset 3px 0 #c8b185}.own-player{border-top:1px solid #fff1;border-bottom:0}.player-identity{display:flex;align-items:center;gap:8px}.player-identity img{height:37px;width:37px;object-fit:contain}.player-identity strong{font-size:13px;display:block}.player-identity span{font-size:10px;color:#aebcbb;display:block}.general-health{margin-left:auto;color:#edb0bb;font-size:20px;white-space:nowrap}.player-piles{display:grid;grid-template-columns:70px 1fr 1fr;align-items:center;gap:8px;margin-top:10px}.deck-pile{position:relative;height:48px;padding-left:40px;display:flex;flex-direction:column;justify-content:center}.deck-pile img{position:absolute;left:0;width:34px;height:48px;border:1px solid #6d7776;border-radius:3px;box-shadow:2px 2px #354145,4px 4px #202c30}.deck-pile b,.grave-pile b,.resource-pile b{font-size:17px;font-weight:500;display:block}.deck-pile span,.grave-pile span,.resource-pile span{font-size:9px;color:#aebcbb}.grave-pile{padding:3px;background:#202b2f;min-height:48px;font-size:11px}.resource-pile{text-align:center}.resource-pile b{color:#dbcba7}.panel-controls{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;margin-top:10px}.panel-controls button,.timer-setting{font-size:10px;padding:5px 7px;min-height:32px}.timer-setting{width:100%;margin-top:5px;background:transparent;border-color:transparent;color:#acb9b7}.modern-middle{flex:1;min-height:130px;overflow:auto}.modern-middle .sidebar{position:static;max-height:none;border:0;border-radius:0;background:transparent;overflow:visible}.modern-middle .sidebar section{padding:12px 14px}.modern-middle .sidebar h3{font:17px Georgia,serif}.modern-middle .sidebar p{font-size:11px}.modern-middle .sidebar button{font-size:11px;min-height:36px;padding:7px 8px}.modern-middle .action-list{max-height:260px;overflow:auto}.modern-middle .log{max-height:220px}.modern-middle .seats{display:flex;gap:5px}.modern-middle .log-item{font-size:10px}.modern-middle .die{width:19px;height:19px;font-size:11px}.modern-middle #all-actions{font-size:10px;min-height:30px}.export-button{margin:9px 14px;font-size:10px;min-height:30px}.modern-ad{grid-column:1/-1;display:grid;place-items:center;background:#10181c;color:#6f7e81;letter-spacing:2px;font-size:9px;border-top:1px solid #fff1;min-height:42px}.modern-mode #inspect .card-face,.modern-mode #inspect img{transform:none}
@media(min-width:1600px){.modern-shell{--rail:330px}.modern-board .card-wrap,.modern-board .tabletop-wrap{width:147.5px;flex-basis:147.5px}.modern-board .tabletop-card{height:206.25px}.empty-slot,.occupied-slot{width:149.5px;min-height:208.25px}}
@media(max-width:900px){.modern-shell{--rail:245px}.board-rows{padding:10px}.modern-player{padding:9px 10px}.modern-middle .sidebar section{padding:10px}.modern-mode header nav a{display:none}.modern-mode header nav{gap:5px}.modern-mode #connection{display:none}.modern-board{min-width:610px}}
@media(max-width:580px){.modern-shell{--rail:158px;inset-block-start:52px;grid-template-rows:minmax(0,1fr) 32px}.modern-mode header{height:52px;padding:5px 8px}.modern-mode header .brand img{height:30px;width:30px}.modern-mode header .brand span{font-size:14px;letter-spacing:2px}.modern-mode header nav button{font-size:10px;min-height:36px;padding:5px}.modern-mode header nav button span{display:none}.modern-player{padding:7px}.player-identity{gap:5px}.player-identity img{height:25px;width:25px}.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:4px;margin-top:6px}.deck-pile{height:40px;padding-left:20px}.deck-pile img{width:26px;height:37px;opacity:.5}.deck-pile b{z-index:1}.deck-pile b,.grave-pile b,.resource-pile b{font-size:14px}.grave-pile{min-height:40px}.panel-controls{gap:3px;margin-top:6px}.panel-controls button{font-size:9px;min-height:38px;padding:4px}.modern-middle .sidebar section{padding:8px}.modern-middle .sidebar button{min-height:42px;font-size:10px}.modern-middle .sidebar small{font-size:8px;letter-spacing:.8px}.modern-middle .sidebar h3{font-size:14px}.modern-middle .sidebar p{font-size:10px}.modern-middle .log{max-height:160px}.modern-ad{min-height:32px}.room-icons{gap:1px}.saved-room-row{gap:3px}.icon-button{width:36px;padding:6px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.modern-board .tabletop-card{min-height:0}.modern-board .table-stats{padding-right:19px}.modern-board .table-stats .health{font-size:10px}.modern-board .warfront-label small{text-transform:none;letter-spacing:0}.modern-board .unit-row{min-height:0}.modern-board .source-row{padding-top:3px}.modern-zone{padding-block:4px 7px}.modern-warfronts{padding-block:12px}.modern-board .tabletop-card .owner{max-width:58px}.modern-mode .sidebar section:last-child{display:block}

.empty-slot.zone-targeted{border:2px dotted var(--gold);background:#c8b1851f}.empty-slot:hover{border-color:var(--gold)}
/* Stronger colour remains below the card layer; centre fading is retained. */
.modern-board .landscape{opacity:1;filter:saturate(1.65) contrast(1.18) brightness(1.12)}
.modern-warfront .warfront-label img{width:156px;height:156px;flex-shrink:0;object-fit:cover}
.modern-warfront .warfront-label{align-items:center}.modern-player .player-identity .show-actions{display:flex}.modern-player .player-identity .show-actions span{display:inline}
@media(max-width:600px){.modern-warfront .warfront-label{flex-wrap:wrap;justify-content:center}}

/* Keep the atlas aspect ratio when the viewport becomes narrow. */
.disabled-token b{position:absolute;inset:0;display:grid;place-items:center;color:#fff;text-shadow:0 1px 3px #000;font-size:16px}
.demo-controls a{border:1px solid #52606d;border-radius:5px;padding:7px;color:inherit;text-decoration:none;text-align:center}
#archive-purchase{width:min(1050px,92vw);min-height:480px;overflow:hidden;isolation:isolate;display:none}
#archive-purchase[open]{display:grid;place-items:center}
#archive-preview{position:absolute;inset:0;display:grid;grid-template-columns:repeat(8,1fr);gap:10px;opacity:.065;pointer-events:none;z-index:0}
#archive-preview .card{width:100%}#archive-preview .card-label{display:none}
.archive-purchase-copy{position:relative;z-index:1;max-width:620px;padding:40px;text-align:center}.purchase-archive{display:inline-block;padding:22px 32px;font-size:20px;text-align:center;margin-top:20px}
/* Cover each faction half with an undistorted atlas panel, including wide overview. */
.landscape{container-type:size;background-image:none;background-color:#343a3b;overflow:hidden}
.landscape::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100cqw,calc(100cqh * 1.9995));height:max(100cqh,calc(100cqw / 1.9995));background-image:url('/assets/table-atlas.png');background-size:100% 500%;background-position:inherit;background-repeat:no-repeat}
