.play-page{--surface:var(--color-surface);--surface-dark:var(--color-bg);--border:var(--color-border);--text:var(--color-text);--soft:var(--color-muted);--zeus:var(--faction-zeus);--hades:var(--faction-hades);--momus:var(--faction-momus);--game-gold:var(--color-accent);background:var(--page-background);color:var(--text);font:400 14px/1.5 var(--sans);overflow-x:clip}
.play-page *{box-sizing:border-box}.play-page button,.play-page input{font:inherit}.play-page button{border-radius:var(--radius-control);min-height:44px;transition:background .15s,border-color .15s}.play-page button:disabled{cursor:not-allowed;opacity:.55}.play-page button:focus-visible,.play-page input:focus-visible,.play-page a:focus-visible,.play-page summary:focus-visible{outline:3px solid var(--color-focus);outline-offset:4px}.play-page button:active:not(:disabled){transform:translateY(1px)}.play-page h1,.play-page h2,.play-page h3{font-family:var(--serif);font-weight:500;text-transform:none;letter-spacing:0;overflow-wrap:normal}.play-page h2{font-size:20px;line-height:1.4}.play-page h3{font-size:16px}.play-page p{margin:0}.play-page [hidden]{display:none!important}.game-shell{width:min(1500px,calc(100% - 64px));margin-inline:auto}.game-header{min-height:103px;display:flex;align-items:center;gap:32px;border-bottom:1px solid var(--border)}.game-brand{display:inline-flex;align-items:center;gap:8px;font:600 28px var(--serif);letter-spacing:.035em}.game-brand span{color:var(--game-gold);font:36px/1 var(--sans)}.game-title{padding-left:28px;border-left:1px solid var(--border)}.play-page .eyebrow{font:600 10px/1.5 var(--sans);letter-spacing:.16em;color:var(--soft);display:block}.game-title .eyebrow{color:var(--game-gold);font-size:9px;letter-spacing:.19em}.game-title h1{font-size:22px;line-height:1.6}.game-header nav{margin-left:auto;gap:27px;font-size:12px;font-weight:500;white-space:nowrap}.game-header nav a:last-child{color:var(--soft)}.season-strip{display:flex;align-items:center;gap:24px;padding:23px 0 11px;flex-wrap:wrap}.season-ident{display:flex;align-items:center;gap:10px}.season-ident strong{font-size:13px;font-weight:600}.season-ident>span:last-child{color:var(--soft);font-size:11px}.live-dot{width:7px;height:7px;border-radius:50%;background:#80718f;box-shadow:0 0 0 4px #80718f12}.live-dot.synced{background:#a4cdaa;box-shadow:0 0 0 4px #a4cdaa13}.season-clock{display:flex;align-items:center;gap:12px;margin-left:auto}.season-clock>span{font-size:9px;letter-spacing:.12em;color:var(--soft)}.season-clock strong{font-size:18px;font-variant-numeric:tabular-nums;color:var(--game-gold);font-weight:500}.test-label{font-size:10px;border:1px solid #66522e;color:var(--game-gold);border-radius:var(--radius-control);padding:5px 9px;background:#a0782220}.connection-bar{min-height:24px;margin-bottom:11px;font-size:11px;color:var(--soft);display:flex;align-items:center;gap:12px;flex-wrap:wrap}.connection-bar.stale{color:#f3b4a0}.connection-bar .text-button{min-height:28px;font-size:11px}.notice{padding:12px 16px;background:#332241;border:1px solid #826598;border-radius:var(--radius-control);margin-bottom:14px!important}.clan-standings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.clan-card{border:1px solid var(--border);border-radius:var(--radius-panel);padding:15px 18px;background:var(--panel-background);display:grid;grid-template-columns:42px minmax(0,1fr) auto;column-gap:14px;align-items:center;position:relative;overflow:hidden;min-width:0}.clan-card::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:currentColor}.zeus{color:var(--zeus)}.hades{color:var(--hades)}.momus{color:var(--momus)}.clan-emblem{width:40px;height:40px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;background:#0002}.clan-emblem svg{width:25px;height:25px}.clan-card h3{margin:0;font-size:18px}.clan-subline{font-size:10px;color:var(--soft);margin-top:3px!important}.clan-score{text-align:right;color:var(--text)}.clan-score strong{display:block;font:500 25px/1.3 var(--serif);font-variant-numeric:tabular-nums;white-space:nowrap}.clan-score>span{font-size:10px;color:currentColor;opacity:.8}.clan-rank{font-family:var(--sans);font-size:10px;vertical-align:middle;margin-left:6px;opacity:.7}.you-tag{font:700 8px/1.2 var(--sans);border:1px solid currentColor;padding:2px 4px;border-radius:var(--radius-control);vertical-align:middle;margin-left:6px;white-space:nowrap}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 318px;gap:18px;align-items:start}.panel{border:1px solid var(--border);border-radius:var(--radius-panel);background:var(--surface);overflow:hidden;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading .eyebrow{margin-bottom:5px}.battlefield{background:var(--panel-background);position:relative}.map-heading{padding:23px 25px 17px}.map-heading h2{font-size:22px}.map-count{font-size:10px;color:var(--soft);white-space:nowrap}.map-viewport{position:relative;width:100%;height:clamp(390px,47vw,670px);background:radial-gradient(ellipse at 50% 40%,#55316f35,transparent 68%);overflow:hidden;isolation:isolate}.map-viewport::before,.map-viewport::after{position:absolute;pointer-events:none;content:"";width:68%;aspect-ratio:1;border:1px solid #76568c22;border-radius:50%;left:16%;top:10%;z-index:-1}.map-viewport::after{width:78%;left:11%;top:3%}.map-compass{position:absolute;top:15px;left:25px;color:#a58bba70;font:30px/1 var(--serif);display:flex;flex-direction:column;align-items:center;gap:3px;pointer-events:none}.map-compass span{font:9px/1 var(--sans);letter-spacing:.08em}.map-viewport svg#game-map{width:100%;height:100%;display:block;touch-action:none;user-select:none;cursor:grab}.map-viewport svg#game-map.dragging{cursor:grabbing}.hex-cell{cursor:pointer;outline:none}.hex-shape{fill:#30233e;stroke:#655375;stroke-width:1;transition:fill .18s,stroke .18s}.hex-cell.zeus .hex-shape{fill:#675036;stroke:#b29159}.hex-cell.hades .hex-shape{fill:#643b3c;stroke:#ad7270}.hex-cell.momus .hex-shape{fill:#543778;stroke:#9d71cc}.hex-cell.neutral{color:#aa96bc}.hex-cell.base .hex-shape{stroke-width:1.8}.hex-cell.throne .hex-shape{stroke:#d3b573;stroke-width:1.5;fill:#483a32}.hex-cell.selected .hex-shape{stroke:#ffe6a3;stroke-width:3;filter:drop-shadow(0 0 4px #edce8b66)}.hex-cell:focus-visible .hex-shape{stroke:#fff6dd;stroke-width:3;stroke-dasharray:3 2}.hex-cell:hover .hex-shape{stroke:#f2dfba;stroke-width:2}.hex-cell.reachable .hex-shape{stroke:#beaccc;stroke-dasharray:3 2}.hex-cell.selected .hex-shape{stroke-dasharray:none}.hex-icon,.hex-owner,.hex-hp{pointer-events:none}.hex-owner{opacity:.9}.hp-pip{fill:currentColor}.hp-pip.empty{fill:none;stroke:currentColor;stroke-width:.65;opacity:.45}.map-empty{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;text-align:center;padding:30px;background:#1c1427c9;pointer-events:none}.map-empty>span{font:56px/1 var(--serif);color:var(--game-gold)}.map-empty strong{font:500 22px/1.4 var(--serif)}.map-empty p{max-width:300px;color:var(--soft);font-size:13px}.map-controls{position:absolute;right:20px;bottom:17px;display:flex;gap:4px;padding:4px;border:1px solid #6b527b;border-radius:var(--radius-panel);background:#20142eed;box-shadow:0 4px 15px #0004}.map-controls button{width:42px;min-height:40px;border:0;color:var(--text);background:transparent;font-size:23px;font-weight:400}.map-controls button:hover:not(:disabled){background:#49325d}.map-controls button:last-child{border-left:1px solid var(--border);border-radius:0 5px 5px 0;font-size:20px}.map-footer{border-top:1px solid var(--border);padding:17px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#17102066}.map-legend{display:flex;gap:17px;align-items:center;flex-wrap:wrap}.map-legend>span{font-size:10px;display:flex;align-items:center;gap:5px;color:#d4c6df;white-space:nowrap}.map-legend svg{width:18px;height:18px;color:var(--game-gold)}.map-legend b{font-weight:500;color:var(--game-gold)}.legend-hex{width:14px;height:16px;display:inline-block;background:#9a83b4;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}#map-help{text-align:right;font-size:9px;line-height:1.8;color:var(--soft)}.player-sidebar{display:grid;gap:14px}.player-panel,.cell-panel,.achievement-panel{padding:21px}.player-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}.momus-avatar{width:46px;height:46px;object-fit:cover;border:1px solid #9c76b4;border-radius:50%;flex-shrink:0}.player-heading h2{font-size:18px;margin-top:3px;overflow-wrap:anywhere}.player-heading .eyebrow{font-size:8px;letter-spacing:.12em}.play-page label,.play-page legend{font-size:12px;font-weight:500}.play-page input[type=text],.play-page input:not([type]){width:100%;background:#170f20;border:1px solid var(--color-border);border-radius:var(--radius-control);padding:12px 13px;min-height:45px;color:var(--text);font-size:14px;margin:8px 0 12px}.play-page input::placeholder{color:#a390b2}.gold-button{width:100%;display:flex;align-items:center;justify-content:center;gap:14px;color:var(--color-on-accent);background:var(--game-gold);border:1px solid #f4dba1;font-weight:700!important;padding:11px 14px;box-shadow:0 2px 0 #806943;font-size:12px!important}.gold-button:hover:not(:disabled){background:var(--color-accent-hover)}.small-copy{font-size:10px;line-height:1.8;color:var(--soft)}#wallet-note{margin-top:13px}.form-error{color:#ffc0b5;font-size:12px;margin-top:9px!important;overflow-wrap:anywhere}.form-error:empty{display:none}.play-page fieldset{padding:0;border:0;margin:0}.play-page legend{padding:0;margin:0 0 5px;font-size:15px}.clan-options{display:grid;gap:7px;margin:15px 0}.clan-option{border:1px solid var(--border);border-radius:var(--radius-control);display:flex;align-items:center;gap:10px;padding:10px;background:#181120;cursor:pointer;min-height:55px}.clan-option:has(input:checked){border-color:currentColor;background:#49315755}.clan-option input{accent-color:var(--game-gold);margin:0;width:15px;height:15px}.clan-option svg{width:25px;height:25px;flex:none}.clan-option>span{font-size:13px}.clan-option small{display:block;color:var(--soft);font-size:9px;margin-top:2px}.player-clan{font-size:12px;color:var(--momus);margin:-5px 0 19px!important}.energy-heading{display:flex;align-items:center;justify-content:space-between}.energy-heading>span{font-size:10px;letter-spacing:.1em;color:var(--soft)}.energy-heading strong{font-size:20px;line-height:1.5;color:var(--game-gold);font-weight:500}.energy-meter{display:flex;gap:4px;margin:8px 0}.energy-pip{height:8px;flex:1;border-radius:2px;background:#493454}.energy-pip.full{background:var(--game-gold);box-shadow:0 0 8px #edce8b15}.energy-timer{font-size:10px;color:var(--soft);font-variant-numeric:tabular-nums}.personal-stats{display:flex;justify-content:space-between;margin:20px 0 0;padding-top:15px;border-top:1px solid var(--border)}.personal-stats>div{text-align:center}.personal-stats dd{margin:0;font:500 22px/1.4 var(--serif)}.personal-stats dt{font-size:9px;color:var(--soft);margin-top:3px}.cell-panel .panel-heading{margin-bottom:10px}.cell-panel h2{font-size:21px}.cell-coordinates{font-size:10px;color:var(--soft);white-space:nowrap;font-variant-numeric:tabular-nums}.cell-details{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px;margin-top:9px;font-size:11px}.cell-yield{font-size:10px;color:var(--soft);margin-top:5px!important}.action-list{display:grid;gap:12px;margin-top:19px}.action-row button{width:100%;border:1px solid #977548;color:var(--game-gold);background:#48361e44;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;font-size:12px;font-weight:600;min-height:42px}.action-row button:hover:not(:disabled){background:#77551e55;border-color:var(--game-gold)}.action-row button:disabled{opacity:.6;border-color:#6a547c;color:#c7b7d4;background:#2d2038}.energy-cost{font-size:12px;letter-spacing:1px;padding-left:8px}.action-row p{font-size:10px;line-height:1.5;color:var(--soft);margin:5px 1px 0}.action-feedback{font-size:12px;color:var(--game-gold);margin-top:13px!important;overflow-wrap:anywhere}.action-feedback:empty{display:none}#retry-action{margin-top:12px}.text-button{background:transparent;border:0;color:var(--game-gold);font-size:12px;padding:5px 0;text-decoration:underline;text-decoration-color:#8d725377;text-underline-offset:4px}.achievement-panel{border-color:#876a3c;background:linear-gradient(120deg,#43311d44,#21162f)}.achievement-panel h2{font-size:18px;margin:7px 0 14px}.achievement-panel button{margin-bottom:10px}.achievement-panel #share-status{font-size:12px;margin-top:8px;color:var(--game-gold);overflow-wrap:anywhere}.below-map{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px;margin-top:18px}.events-panel,.rules-panel,.archive-panel{padding:25px}.quiet-badge{font-size:9px;color:var(--soft);border:1px solid var(--border);padding:4px 7px;border-radius:var(--radius-control);white-space:nowrap}.event-feed{margin:16px 0 0;padding:0;list-style:none;max-height:317px;overflow-y:auto;scrollbar-color:#72568c transparent}.event-feed li{padding:13px 0;border-bottom:1px solid var(--border);display:flex;gap:12px;align-items:flex-start}.event-feed li:last-child{border-bottom:0}.event-emblem{width:25px;height:25px;flex:none;border:1px solid var(--border);border-radius:50%;padding:3px}.event-copy{flex:1;min-width:0}.event-copy p{font-size:12px;overflow-wrap:anywhere;line-height:1.65}.event-copy span{display:block;font-size:9px;color:var(--soft);margin-top:2px}.event-feed time{font-size:9px;color:var(--soft);white-space:nowrap;line-height:2.3}.rules-list{list-style:none;counter-reset:rules;margin:18px 0 0;padding:0;display:grid;gap:14px}.rules-list li{counter-increment:rules;display:grid;grid-template-columns:24px 1fr;column-gap:11px}.rules-list li::before{content:"0" counter(rules);grid-row:1 / 3;font:12px/1.7 var(--serif);color:var(--game-gold)}.rules-list b{font-size:12px;font-weight:500}.rules-list span{font-size:11px;color:var(--soft);line-height:1.7;grid-column:2;margin-top:3px}.rewards-note{font-size:10px;line-height:1.7;color:var(--game-gold);border-top:1px solid var(--border);padding-top:14px;margin-top:20px!important}.archive-panel{margin-top:18px}.history-columns{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-top:22px}.history-columns h3{margin:0 0 10px;color:#d8c5e8;font-size:14px}.history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid var(--border)}.history-row p{font-size:12px}.history-row small{font-size:10px;display:block;color:var(--soft);margin-top:4px}.history-row .text-button{font-size:11px;min-width:50px;flex-shrink:0}.history-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}.empty-copy{font-size:12px;color:var(--soft);line-height:1.7;padding:13px 0}.archive-banner{padding:10px 24px;border-block:1px solid #977748;background:#6d522122;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--game-gold)}.archive-banner .text-button{font-size:11px}.game-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:34px 0;color:var(--soft);font-size:10px}.game-footer>a{font:500 17px var(--serif);color:#e1c4f5}.noscript-note{position:fixed;bottom:0;background:var(--gold);color:#1b1126;padding:15px;width:100%;z-index:20}.play-page .skip-link{font-size:14px;background:var(--game-gold);color:#1b1126}.play-page .skip-link:focus{z-index:30}
@media(min-width:1550px){.game-layout{grid-template-columns:minmax(0,1fr) 345px}.map-viewport{height:670px}.player-panel,.cell-panel{padding:24px}}
@media(max-width:1200px){.game-shell{width:calc(100% - 40px)}.game-header{gap:22px}.game-title{padding-left:22px}.game-layout{grid-template-columns:minmax(0,1fr) 290px}.clan-card{padding:13px 15px;column-gap:9px;grid-template-columns:34px minmax(0,1fr) auto}.clan-emblem{width:32px;height:32px}.clan-emblem svg{width:21px;height:21px}.clan-card h3{font-size:16px}.clan-score strong{font-size:22px}.clan-subline{font-size:9px}.map-footer{flex-direction:column;align-items:flex-start;gap:10px}#map-help{text-align:left}.map-viewport{height:clamp(385px,48vw,585px)}.map-heading{padding:20px}.map-heading h2{font-size:19px}.map-count{font-size:9px}.player-panel,.cell-panel,.achievement-panel{padding:18px}.game-header nav{gap:18px}}
@media(max-width:950px){.game-header{min-height:90px;gap:18px}.game-brand{font-size:23px}.game-brand span{font-size:29px}.game-title h1{font-size:19px}.game-title .eyebrow{font-size:8px}.game-header nav{gap:15px;font-size:11px}.season-strip{gap:13px}.season-clock>span{display:none}.season-clock{gap:8px}.test-label{font-size:9px}.clan-card{grid-template-columns:30px 1fr}.clan-score{grid-column:1 / 3;display:flex;align-items:baseline;justify-content:space-between;margin-top:10px;text-align:left}.clan-score strong{font-size:23px}.clan-emblem{width:29px;height:29px}.clan-card h3{font-size:17px}.clan-subline{font-size:9px}.game-layout{grid-template-columns:minmax(0,1fr) 275px;gap:12px}.map-heading{align-items:flex-start;flex-direction:column;gap:5px}.map-count{font-size:9px}.map-viewport{height:420px}.map-legend{gap:10px}.map-footer{padding:15px 18px}.below-map{gap:12px}.events-panel,.rules-panel,.archive-panel{padding:20px}.quiet-badge{display:none}}
@media(max-width:760px){.game-shell{width:calc(100% - 28px)}.game-header{padding:20px 0 14px;flex-wrap:wrap;gap:12px 18px}.game-brand{font-size:25px}.game-title{padding-left:18px}.game-title h1{font-size:17px}.game-header nav{width:100%;margin:5px 0 0;justify-content:space-between;gap:16px;font-size:11px}.game-header nav a{min-height:32px;padding:6px 0}.season-strip{padding-top:18px;gap:11px}.season-ident{gap:8px}.season-ident>span:last-child{display:none}.season-ident strong{font-size:12px}.season-clock strong{font-size:16px}.test-label{margin-left:auto;font-size:9px}.connection-bar{font-size:10px;margin-bottom:12px}.clan-standings{gap:8px;margin-bottom:12px}.clan-card{padding:12px 10px;display:flex;flex-direction:column;align-items:flex-start;gap:5px}.clan-emblem{width:28px;height:28px;margin-bottom:2px}.clan-card h3{font-size:15px}.clan-score{margin-top:4px;display:block}.clan-score strong{font-size:21px;white-space:normal;overflow-wrap:anywhere}.clan-score>span{font-size:9px}.clan-subline{font-size:8px}.clan-rank{font-size:8px;margin-left:3px}.you-tag{font-size:6px;margin-left:3px}.game-layout{display:flex;flex-direction:column;gap:12px}.battlefield{width:100%;order:1}.player-sidebar{display:contents}.player-panel{width:100%;order:0}.player-heading{margin-bottom:13px}.player-panel:has(#player-stats:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 18px;align-items:center}.player-panel:has(#player-stats:not([hidden])) .player-heading{margin:0;align-self:start}.player-panel:has(#player-stats:not([hidden])) #wallet-note{grid-column:1;font-size:9px;margin-top:7px}.player-panel:has(#player-stats:not([hidden])) #player-stats{grid-column:2;grid-row:1 / 3}.player-clan{font-size:11px;margin:0 0 10px!important}.personal-stats{margin-top:12px;padding-top:9px;gap:8px}.personal-stats dd{font-size:18px}.personal-stats dt{font-size:8px}.energy-heading strong{font-size:18px}.energy-heading>span{font-size:9px}.energy-timer{font-size:9px}.player-wait{grid-column:1 / -1;margin-top:10px!important}.momus-avatar{width:40px;height:40px}.player-heading h2{font-size:17px}.player-heading .eyebrow{font-size:7px}.cell-panel{width:100%;order:2}.achievement-panel{width:100%;order:3}.map-heading{padding:18px;flex-direction:row;align-items:center;gap:12px}.map-heading h2{font-size:18px}.map-count{font-size:8px}.map-viewport{height:clamp(335px,94vw,555px)}.map-controls{right:13px;bottom:13px}.map-controls button{width:42px;min-height:42px}.map-compass{left:17px;top:10px;font-size:25px}.map-footer{padding:14px 17px}.map-legend{gap:15px}.map-legend>span{font-size:9px}#map-help{font-size:9px}.action-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:16px}.action-row button{padding:11px 10px;font-size:11px;min-height:45px;gap:4px}.energy-cost{font-size:10px;padding:0;white-space:nowrap}.action-row p{font-size:9px}.cell-panel .panel-heading{margin-bottom:6px}.cell-panel h2{font-size:21px}.cell-details{margin-top:5px}.below-map{grid-template-columns:1fr;margin-top:12px}.archive-panel{margin-top:12px}.history-columns{grid-template-columns:1fr;gap:24px}.archive-panel .panel-heading{align-items:flex-start}.archive-panel h2{font-size:18px}.archive-panel .text-button{font-size:10px}.archive-banner{padding:10px 16px;font-size:11px}.game-footer{flex-wrap:wrap;padding:25px 0;gap:12px;font-size:9px}.game-footer>span{width:100%}.clan-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.clan-option{position:relative;flex-direction:column;align-items:flex-start;gap:6px;padding:10px}.clan-option input{position:absolute;right:9px;top:10px}.clan-option small{font-size:8px}.clan-option>span{font-size:12px}}
@media(max-width:390px){.game-shell{width:calc(100% - 20px)}.game-brand{font-size:22px}.game-title{padding-left:12px}.game-header{column-gap:12px}.game-title h1{font-size:15px}.game-title .eyebrow{font-size:7px}.test-label{margin-left:0}.season-strip{gap:8px 12px}.map-heading h2{font-size:16px}.clan-card{padding:10px 8px}.clan-card h3{font-size:13px}.clan-score strong{font-size:18px}.clan-subline{font-size:8px}.clan-rank{display:inline-block}.player-panel,.cell-panel{padding:15px}.player-panel:has(#player-stats:not([hidden])){gap:0 13px}.momus-avatar{width:32px;height:32px}.player-heading{gap:8px}.player-heading h2{font-size:15px}.player-heading .eyebrow{font-size:6px}.action-row button{padding:10px 7px;font-size:10px}.action-list{gap:7px}.map-count{max-width:60px;text-align:right;white-space:normal}.map-legend{gap:10px}.history-actions{gap:6px}}
@media(prefers-reduced-motion:reduce){.play-page{scroll-behavior:auto}.play-page *, .play-page *::before,.play-page *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.play-page .small-copy{font-size:11px}.play-page .action-row p{font-size:11px;line-height:1.65}.play-page .action-row button{font-size:12px}.play-page .energy-timer{font-size:11px}
@media(max-width:500px){.play-page .action-list{grid-template-columns:1fr;gap:12px}.play-page .action-row{display:grid;grid-template-columns:132px minmax(0,1fr);gap:12px;align-items:center}.play-page .action-row p{margin:0}.play-page .action-row button{min-height:46px;padding:10px}.play-page .energy-timer{font-size:10px}.play-page .player-panel:has(#player-stats:not([hidden])) #wallet-note{font-size:10px}}

.wallet-buttons{display:grid;gap:9px}.wallet-button{width:100%;padding:11px 14px;background:#352146;color:var(--text);border:1px solid #9d71cc;font-weight:600!important}.wallet-button:hover:not(:disabled){background:#4c3066}.wallet-session{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.wallet-address{font-size:12px;color:var(--game-gold);overflow-wrap:anywhere}.wallet-status:not(:empty){margin-top:12px!important}.guest-migration{padding:12px;border:1px solid #826598;border-radius:var(--radius-control);background:#332241;margin-top:12px!important}#wallet-note{margin-bottom:15px}.play-page .player-panel:has(#player-stats:not([hidden])) #wallet-form,.play-page .player-panel:has(#player-stats:not([hidden])) #wallet-session,.play-page .player-panel:has(#player-stats:not([hidden])) #wallet-status,.play-page .player-panel:has(#player-stats:not([hidden])) #guest-migration{grid-column:1 / -1}

.chat-panel{margin-top:18px;padding:25px}.chat-tabs{display:flex;gap:6px;padding:4px;border:1px solid var(--border);border-radius:var(--radius-panel);background:var(--surface-dark)}.chat-tabs button{min-width:90px;padding:8px 18px;background:transparent;border:1px solid transparent;color:var(--soft);font-size:14px}.chat-tabs button[aria-selected=true]{color:var(--game-gold);background:#48321f66;border-color:#967847}.chat-access{font-size:14px;color:var(--soft);margin-top:14px!important}.chat-messages{height:280px;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;list-style:none;margin:14px 0 0;padding:0 16px;background:var(--surface-dark);border:1px solid var(--border);border-radius:var(--radius-panel);scrollbar-color:#72568c transparent}.chat-message{padding:13px 0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.chat-message:last-child{border-bottom:0}.chat-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 12px;font-size:12px;color:var(--soft)}.chat-meta strong{font-size:14px;color:var(--text);font-weight:600}.chat-meta time{margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap}.chat-clan{font-size:12px}.chat-message p{font-size:14px;line-height:1.65;white-space:pre-wrap;margin-top:4px!important}.chat-new{display:block;margin-inline:auto;font-size:14px}.chat-feedback{min-height:44px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:8px 0;color:var(--soft);font-size:13px}.chat-feedback .text-button{font-size:14px}.chat-panel label{font-size:14px}.chat-panel textarea{display:block;resize:vertical;min-height:74px;max-height:220px;width:100%;margin-top:7px;padding:12px 14px;border:1px solid var(--color-border);border-radius:var(--radius-control);background:var(--surface-dark);color:var(--text);font:inherit;font-size:16px;line-height:1.5}.chat-panel textarea::placeholder{color:#a390b2}.chat-panel textarea:disabled{opacity:.65}.chat-panel textarea:focus-visible,.chat-messages:focus-visible{outline:3px solid var(--color-focus);outline-offset:3px}.chat-compose-footer{display:flex;align-items:center;gap:16px;margin-top:9px;font-size:12px;color:var(--soft)}#chat-counter{font-variant-numeric:tabular-nums;white-space:nowrap}.chat-panel .gold-button{width:auto;min-width:100px;margin-left:auto;font-size:14px!important}.chat-cooldown{font-size:12px;color:var(--soft);margin-top:10px!important}@media(max-width:760px){.chat-panel{padding:18px;margin-top:12px}.chat-panel .panel-heading{align-items:flex-start;flex-wrap:wrap}.chat-messages{height:260px;padding-inline:12px}.chat-compose-footer{flex-wrap:wrap;gap:8px 12px}#chat-keys{order:3;width:100%}.chat-tabs button{min-width:78px;padding:8px 14px}}

/* One spacing rhythm for the battlefield, chat and player controls. */
.play-page{--panel-space:20px;--panel-gap:16px;--side-width:300px}
.game-layout,.below-map,.clan-standings,.player-sidebar{gap:var(--panel-gap)}
.clan-standings{margin-bottom:var(--panel-gap)}
.below-map,.archive-panel{margin-top:var(--panel-gap)}
.panel,.clan-card{border-radius:var(--radius-panel)}
.player-panel,.cell-panel,.achievement-panel,.events-panel,.rules-panel,.archive-panel{padding:var(--panel-space)}
.panel-heading{gap:12px;min-width:0}
.panel-heading>div,.player-heading>div{min-width:0}
.play-page .panel h2{font-size:20px;line-height:1.4;overflow-wrap:anywhere}
.play-page .player-heading h2{font-size:18px}
.player-heading{gap:12px;margin-bottom:16px}
.player-heading .eyebrow{font-size:9px;letter-spacing:.1em}
.play-page .small-copy{font-size:12px;line-height:1.6}
.play-page .gold-button,.play-page .wallet-button,.play-page .action-row button{min-height:44px;border-radius:var(--radius-control);padding:10px 12px;font-size:13px!important;line-height:1.5}
.play-page input:not([type]){font-size:16px;line-height:1.5;border-radius:var(--radius-panel);margin:8px 0 12px}
.wallet-buttons{gap:8px}
.personal-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:16px;margin-top:16px}
.personal-stats dt{font-size:10px;overflow-wrap:anywhere}
.map-heading{padding:var(--panel-space);flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px 16px}
.map-count{font-size:11px;max-width:none;white-space:normal;text-align:left}
.map-footer{padding:16px var(--panel-space);flex-direction:column;align-items:flex-start;gap:12px}
.map-legend{gap:8px 16px}
.map-legend>span{font-size:11px}
#map-help{font-size:11px;line-height:1.6;text-align:left}
.map-controls{gap:8px;padding:4px;right:16px;bottom:16px}
.map-controls button{width:44px;min-height:44px;flex:none}
.game-layout>.chat-panel{margin-top:0;padding:var(--panel-space);min-width:0;overflow-wrap:anywhere}
.game-layout>.chat-panel .panel-heading{flex-direction:column;align-items:stretch;gap:12px}
.game-layout>.chat-panel .chat-tabs{width:100%;gap:8px}
.game-layout>.chat-panel .chat-tabs button{flex:1;min-width:0;padding:8px 12px;line-height:1.5}
.chat-access{font-size:12px;line-height:1.5;margin-top:16px!important}
.game-layout>.chat-panel .chat-messages{height:280px;margin-top:16px;padding-inline:12px}
.chat-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}
.chat-meta strong,.chat-clan{grid-column:1;min-width:0}
.chat-meta time{grid-column:2;grid-row:1 / span 2;align-self:start;font-size:11px}
.chat-message{padding:12px 0}
.game-layout>.chat-panel .chat-feedback{min-height:36px;padding:8px 0;gap:4px 12px;font-size:12px}
.chat-panel textarea{margin-top:8px;padding:10px 12px;border-radius:var(--radius-panel);min-height:72px}
.game-layout>.chat-panel .chat-compose-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;margin-top:8px}
.game-layout>.chat-panel #chat-counter{grid-column:1;grid-row:1}
.game-layout>.chat-panel #chat-send{grid-column:2;grid-row:1;margin:0;min-width:88px}
.game-layout>.chat-panel #chat-keys{grid-column:1/-1;grid-row:2;order:0;width:auto;font-size:11px}
.game-layout>.chat-panel .chat-cooldown{font-size:11px;line-height:1.5;margin-top:8px!important}
.history-columns{gap:24px;margin-top:20px}
.history-row{align-items:flex-start;flex-wrap:wrap}
.history-actions{margin-left:auto}
@media(min-width:900px){
  .game-layout{grid-template-columns:288px minmax(0,1fr);grid-template-areas:"chat battlefield" ". controls";align-items:stretch}
  .game-layout>.chat-panel{grid-area:chat;display:flex;flex-direction:column;min-height:0}
  .game-layout>.chat-panel #chat-room{display:flex;flex-direction:column;flex:1;min-height:0}
  .game-layout>.chat-panel .chat-messages{height:0;min-height:180px;flex:1 1 0}
  .game-layout>.chat-panel #chat-room>:not(.chat-messages){flex:none}
  .game-layout>.battlefield{grid-area:battlefield;display:flex;flex-direction:column;min-height:640px}
  .game-layout>.battlefield .map-viewport{height:auto;min-height:360px;flex:1}
  .game-layout>.battlefield .map-heading,.game-layout>.battlefield .map-footer,.game-layout>.battlefield .archive-banner{flex:none}
  .game-layout>.player-sidebar{grid-area:controls;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  .game-layout>.player-sidebar>.achievement-panel{grid-column:1/-1}
  .cell-panel{display:flex;flex-direction:column}
  .cell-panel .action-list{margin-top:auto;padding-top:16px}
}
@media(min-width:1320px){
  .game-layout{grid-template-columns:var(--side-width) minmax(0,1fr) var(--side-width);grid-template-areas:"chat battlefield controls"}
  .game-layout>.player-sidebar{display:flex;flex-direction:column}
  .game-layout>.player-sidebar>.cell-panel{flex:1}
}
@media(min-width:1550px){.play-page{--side-width:320px}}
@media(max-width:899px){
  .game-layout{display:flex;flex-direction:column}
  .game-layout>.player-sidebar{display:contents}
  .game-layout>.battlefield,.game-layout>.chat-panel,.game-layout>.player-sidebar>.panel{width:100%}
  .game-layout>.player-sidebar>.player-panel{order:0}
  .game-layout>.battlefield{order:1}
  .game-layout>.player-sidebar>.cell-panel{order:2}
  .game-layout>.player-sidebar>.achievement-panel{order:3}
  .game-layout>.chat-panel{order:4}
  .game-layout>.chat-panel .chat-messages{height:260px}
}
@media(max-width:760px){
  .play-page{--panel-space:16px;--panel-gap:12px}
  .play-page .panel h2{font-size:18px}
  .clan-standings{gap:8px}
  .clan-card{padding:12px 8px;gap:8px}
  .clan-score{margin-top:auto}
  .player-panel:has(#player-stats:not([hidden])){display:block}
  .player-panel:has(#player-stats:not([hidden])) .player-heading{margin-bottom:16px}
  .player-clan{margin:0 0 12px!important}
  .play-page .energy-timer,.play-page .player-panel:has(#player-stats:not([hidden])) #wallet-note{font-size:12px}
  .personal-stats{margin-top:16px;padding-top:16px}
  .archive-panel .panel-heading{flex-wrap:wrap}
  .map-controls{right:12px;bottom:12px}
}
