:root{color:#eee9d8;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--muted:#acb5a8;--line:#374741;--gold:#eac680;--paper:#202a27;background:#171e1e;font:15px system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:#293733;border-radius:5px;padding:.45rem .65rem}button:hover:not(:disabled),button.active{background:#3e5144;border-color:#8a9b73}button:disabled{opacity:.45;cursor:default}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.app{grid-template-rows:auto auto minmax(0,1fr) auto;height:100dvh;min-height:100dvh;display:grid}header,footer{background:#192321;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem clamp(.8rem,2.5vw,2.4rem);display:flex}.brand{align-items:center;gap:.8rem;display:flex}.crest{color:var(--gold);font-size:2.3rem;line-height:1}.brand strong{letter-spacing:.21em;font-family:Georgia,serif;font-size:1.3rem}.brand small{color:var(--muted);display:block}.ledger{color:var(--muted);flex-wrap:wrap;justify-content:center;gap:clamp(.5rem,2vw,2rem);display:flex}.ledger b,.turn b{color:var(--gold)}.turn{white-space:nowrap}nav{border-block:1px solid var(--line);background:#202b28;gap:.45rem;padding:.43rem clamp(.8rem,2.5vw,2.4rem);display:flex;overflow:auto}nav button{white-space:nowrap;background:0 0;border-color:#0000}main{grid-template-columns:minmax(0,1fr) minmax(290px,340px);min-height:0;display:grid}.map{background:radial-gradient(#2b4039,#182522 78%);min-height:0;position:relative;overflow:hidden}.world{touch-action:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;transition:opacity .2s;display:block}.busy .world{opacity:.55}.maptitle{pointer-events:none;position:absolute;top:1.4rem;left:1.7rem}.maptitle small,.eyebrow,.result small{color:var(--gold);letter-spacing:.16em;font-size:.7rem;display:block}.maptitle strong{margin-top:.35rem;font:1.45rem Georgia,serif;display:block}.hex polygon,.minimap polygon{fill:var(--tile);stroke:#202e29;stroke-width:1.3px}.plain{--tile:#849566}.hill{--tile:#a38f61}.mountain{--tile:#86908d}.water{--tile:#4e797c}.hidden{--tile:#273632}.hex:not(.seen):not(.hidden){opacity:.55}.hex{cursor:pointer}.hex:hover polygon{stroke:#e9e1bd;stroke-width:2px}.hex.reachable polygon{stroke:#d4efa7;stroke-width:2.4px}.hex.attackable polygon{stroke:#ff896c;stroke-width:3px}.hex.selected polygon{stroke:#ffe39e;stroke-width:3px}.city-token,.unit-token{--owner:#b6d59b;fill:#23322c;stroke:var(--owner);stroke-width:1.25px}.city-token text,.unit-token text{fill:var(--owner);stroke:none;text-anchor:middle;font-size:8px;font-weight:700}.unit-token text{font-size:11px}.hp{fill:var(--owner);stroke:none}.maptools{gap:.3rem;display:flex;position:absolute;bottom:1.2rem;left:1.2rem}.maptools button{width:2.25rem}.minimap{background:#192624;border:1px solid #708177;border-radius:7px;width:clamp(78px,14vw,145px);padding:5px;position:absolute;bottom:1.2rem;right:1.2rem}.minimap polygon{cursor:pointer}aside{background:var(--paper);border-left:1px solid var(--line);padding:1.2rem;overflow:auto}h1,h2{margin:.3rem 0 .8rem;font-family:Georgia,serif;font-weight:500}h3{letter-spacing:.09em;color:var(--gold);text-transform:uppercase;margin:1.15rem 0 .5rem;font-size:.8rem}p{color:var(--muted);margin:.6rem 0;line-height:1.45}.stats,.roster{flex-wrap:wrap;gap:.4rem;display:flex}.stats span{border:1px solid var(--line);border-radius:4px;padding:.28rem .42rem;font-size:.78rem}.project{grid-template-columns:1fr auto;gap:.35rem;margin:.32rem 0;display:grid}.project button:first-child{text-align:left;justify-content:space-between;gap:.5rem;display:flex}.project b{color:var(--gold)}ol{padding-left:1.25rem}li{padding:.2rem 0}li button{margin-left:.35rem;padding:0 .35rem}details{margin-top:.8rem}summary{cursor:pointer;margin-bottom:.5rem}.worked,.field{padding:.26rem 0;display:block}.field input,.field select{width:100%;margin:.25rem 0;padding:.35rem}.entry{border-bottom:1px solid var(--line);padding-bottom:.55rem}.result{background:#3a392b;border:1px solid #a78b57;margin-bottom:1rem;padding:.8rem}footer{border-top:1px solid var(--line)}footer span{color:var(--muted);font-size:.86rem}footer div{align-items:center;gap:.7rem;display:flex}.end{color:#202820;white-space:nowrap;background:#dfbe7f;border-color:#efcf8d;padding:.65rem 1rem;font-weight:700}.end:hover:not(:disabled){background:#ffe0a4}kbd{color:var(--muted)}@media (width<=720px){main{grid-template-rows:minmax(0,1fr) minmax(0,.85fr);grid-template-columns:1fr}aside{border-left:0;border-top:1px solid var(--line);padding:.8rem}.maptitle{top:.55rem;left:.7rem}.maptitle strong{font-size:1rem}.maptools{bottom:.5rem;left:.5rem}.minimap{bottom:.5rem;right:.5rem}kbd,.brand small{display:none}header{font-size:.8rem}.brand strong{font-size:1rem}}.city-token,.unit-token{--owner:#d0efa9;filter:drop-shadow(0 2px 2px #101713);stroke-width:2px}.owner-1{--owner:#ffac94}.owner-2{--owner:#a6e2fa}.city-plaque,.unit-badge{fill:#17221f;stroke:var(--owner)}.capital-mark{fill:#ffe29d;stroke:#17221f;stroke-width:1.25px}.city-token text{fill:#fff8e8;font-size:9px}.unit-art{pointer-events:none;filter:drop-shadow(0 1px 1px #111a16)}.hp-track{fill:#3e4a43;stroke:none}.token-selected .city-plaque,.token-selected .unit-badge{stroke:#ffe29d;stroke-width:3px}.hex .terrain-overlay{stroke:none;pointer-events:none}.hex .terrain-outline{fill:none;pointer-events:none}.coastline{fill:none;stroke:#b9e7dc;stroke-width:3px;stroke-opacity:.56;pointer-events:none}.resource-marker{pointer-events:none}.resource-marker circle{fill:#232c24;stroke:#e2c787;stroke-width:1px}.ledger-resource{align-items:center;gap:.3rem;display:inline-flex}.ledger-resource img{object-fit:contain;width:20px;height:18px}.map-markers{cursor:pointer}.settlement-art{filter:drop-shadow(0 1px 1px #19221f)}.hex.buildable .terrain-outline{stroke:#77f5c3;stroke-dasharray:4 2}.improvement-art{pointer-events:none;filter:drop-shadow(0 1px 1px #17221c)}.improvement-option{align-items:center;gap:.4rem;display:flex}.improvement-option img{object-fit:contain;width:32px;height:25px}.planned-route,.route-goal{pointer-events:none;fill:none;stroke:#ffe099;stroke-width:3px;filter:drop-shadow(0 1px 1px #25281d)}.planned-route{stroke-dasharray:6 5;stroke-linecap:round}.tunnel-link line{stroke:#a8d9df;stroke-width:2px;stroke-dasharray:5 4;stroke-linecap:round}.tunnel-preview{stroke:#f0ce7b;stroke-width:1.5px;fill:none}.tunnel-preview line{stroke-dasharray:3 6}.tunnel-preview text{fill:#f0ce7b;text-anchor:middle;stroke:#17221f;stroke-width:2px;paint-order:stroke;font-size:9px}.route-goal{fill:#dcc68a42}.project-resource{color:var(--muted)}.city-tabs{z-index:1;background:var(--paper);grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;margin:0 0 .7rem;padding:.3rem 0;display:grid;position:sticky;top:0}.city-tabs [aria-selected=true]{border-color:var(--gold);color:var(--gold)}.road-art,.road-stub{pointer-events:none}.road-art path{fill:none;stroke-linecap:round}.road-art .road-edge{stroke:#493922;stroke-width:5px}.road-art .road-surface{stroke:#d5b281;stroke-width:2.7px}.road-stub{fill:#d5b281;stroke:#493922;stroke-width:1.5px}.hex polygon.founding-outline{fill:#a478dd30;stroke:#d9b7ff;stroke-width:2px;stroke-dasharray:4 3;pointer-events:none}.hex polygon.founding-ready{fill:#a478dd50;stroke:#f0d1ff;stroke-width:2.8px;stroke-dasharray:none}.minimap-viewport{fill:none;stroke:#ffe1a2;stroke-width:1.5px;vector-effect:non-scaling-stroke;pointer-events:none}.territory-art{pointer-events:none;--border-color:#cdeca1}.territory-art.owner-1{--border-color:#f29b83}.territory-art.owner-2{--border-color:#96c8dc}.hex .territory-art polygon.territory-tint{fill:var(--border-color);fill-opacity:.12;stroke:none}.hex .city-territory polygon.territory-tint{fill-opacity:.24}.territory-border{fill:none;stroke:var(--border-color);stroke-width:2.5px;stroke-linecap:round}.worked-cell{fill:#f7f0b0;stroke:#2d3e24;stroke-width:1.2px}.production-item{vertical-align:middle;align-items:center;gap:.5rem;min-width:0;display:inline-flex}.production-item .unit-portrait{object-fit:contain;flex:none;width:34px;height:34px}.production-queue .unit-portrait{width:28px;height:28px}.project .production-item+b{align-self:center}.country-name,.country-heading{align-items:center;gap:.4rem}.brand small.country-name,.country-heading{display:flex}.country-heading{text-transform:uppercase;overflow-wrap:anywhere}.country-flag{vertical-align:middle;flex:none}.flag-picker{border:1px solid var(--line);border-radius:5px;flex-wrap:wrap;gap:.4rem;margin:.35rem 0 .65rem;padding:.5rem;display:flex}.flag-choice{cursor:pointer;border:1px solid #0000;border-radius:4px;align-items:center;gap:.3rem;padding:.3rem;font-size:.8rem;display:flex}.flag-choice:has(input:checked){border-color:var(--gold);background:#3e5144}.flag-choice input{margin:0}@media (width<=720px){.brand small.country-name{display:none}}.technology-screen{background:#1e2926;grid-column:1/-1;min-width:0;min-height:0;padding:1rem clamp(.85rem,3vw,2.6rem);overflow:auto}.technology-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem 1rem;display:flex}.technology-header h1{margin-bottom:.25rem}.technology-header select{max-width:100%;color:inherit;border:1px solid var(--line);background:#263630;border-radius:5px;margin-left:.35rem;padding:.4rem}.technology-legend{flex-wrap:wrap;gap:.4rem 1rem;margin:.6rem 0 1rem;font-size:.8rem;display:flex}.technology-legend span{color:var(--tech-accent)}.researched{--tech-accent:#b6d99a;--tech-background:#293b2d}.researching{--tech-accent:#f3ce87;--tech-background:#493d2a}.available{--tech-accent:#a3d8d5;--tech-background:#29403e}.locked{--tech-accent:#b7bfb6;--tech-background:#28312d}.technology-scroll{scrollbar-color:#849485 #22302b;background:#171f1d;border:1px solid #52645a;border-radius:8px;overflow:auto}.technology-scroll:focus-visible{outline:2px solid var(--gold)}.technology-board{position:relative}.technology-era{background:#ffffff04;border-right:1px solid #3d4d46;position:absolute;top:0;bottom:0}.technology-era:nth-child(2n){background:#ffffff08}.technology-era h2{color:#e8d1a4;margin:0;padding:1rem 1.15rem;font-size:1.05rem}.technology-links{pointer-events:none;position:absolute;inset:0}.technology-links g{color:#64756a}.technology-links .met{color:#99bc88}.technology-links .inspected{color:#efcb83}.technology-links path{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linejoin:round}.technology-links polygon{fill:currentColor}.technology-card{text-align:left;background:var(--tech-background);border-color:var(--tech-accent);flex-direction:column;justify-content:space-between;align-items:stretch;padding:.58rem .62rem;display:flex;position:absolute}.technology-card[aria-pressed=true]{outline-offset:2px;outline:2px solid #f1d197}.technology-card strong{line-height:1.15}.technology-card span{color:var(--tech-accent);justify-content:space-between;align-items:center;gap:.2rem;display:flex}.technology-card b{white-space:nowrap;font-size:.78rem}.technology-details{flex-wrap:wrap;justify-content:space-between;gap:.85rem 2rem;padding:.8rem 0;display:flex}.technology-details h2{margin:.3rem 0;font-size:1.15rem}.technology-details ul{color:var(--muted);flex-wrap:wrap;gap:.3rem 1rem;margin:.2rem 0;padding:0;list-style:none;display:flex}.technology-prerequisites{color:var(--muted);flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}@media (width<=720px){.technology-screen{grid-row:1/-1;font-size:.82rem}.technology-header h1{font-size:1.25rem}.technology-legend,.technology-card b{font-size:.7rem}.technology-era h2,.technology-details h2{font-size:.95rem}.technology-card strong{font-size:.82rem}.technology-card small{font-size:.67rem}.technology-details{gap:.5rem 1rem}.game-dialog.technology-dialog{font-size:.82rem}.technology-dialog .game-dialog-content h2{font-size:1.2rem}.technology-dialog .technology-dialog-status{font-size:.7rem}}.trade-route-line{pointer-events:none;fill:none;stroke:#eac684;stroke-width:2.5px;stroke-dasharray:2 6;stroke-linecap:round;opacity:.9}.trade-actions{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.forest-saplings{pointer-events:none}.forest-saplings circle{fill:#2c402b;stroke:#c8dda1;stroke-width:1px}.forest-saplings path{fill:none;stroke:#c8dda1;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round}.owner-3{--owner:#e6cd79}.territory-art.owner-3{--border-color:#e6cd79}.owner-4{--owner:#d0a6ed}.territory-art.owner-4{--border-color:#d0a6ed}.owner-5{--owner:#7cddc4}.territory-art.owner-5{--border-color:#7cddc4}.owner-6{--owner:#efa9ce}.territory-art.owner-6{--border-color:#efa9ce}.sea-exit{fill:#ccf4ec;stroke:#2e4750;stroke-width:2px;paint-order:stroke;text-anchor:middle;pointer-events:none;font-size:17px;font-weight:700}.voyage-status{background:#213733;border-left:2px solid #7cc8cb;margin:.7rem 0;padding:.35rem .65rem}.hex polygon.climate-overlay{stroke:none;opacity:.57;pointer-events:none}.hex polygon.climate-overlay.polar{fill:#dfe9e6}.hex polygon.climate-overlay.desert{fill:#c9a269}.minimap .polar{--tile:#d8e2dd}.minimap .desert{--tile:#b79b62}.sea-link-mark circle{fill:#13445c;stroke:#a4e7fa;stroke-width:1.3px}.sea-link-mark path,.sea-link-mark circle.anchor-eye{fill:none;stroke:#edfaff;stroke-width:1.25px;stroke-linecap:round;stroke-linejoin:round}.tax-panel{color:inherit;margin-block:1rem}.tax-panel h3{margin-bottom:.4rem}.tax-breakdown{margin:.5rem 0 1rem;font-size:.86rem}.tax-breakdown div{justify-content:space-between;gap:.75rem;padding:.24rem 0;display:flex}.tax-breakdown dd{white-space:nowrap;font-variant-numeric:tabular-nums;margin:0}.tax-slider{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.45rem .65rem;margin:.65rem 0;display:grid}.tax-slider label span{justify-content:space-between;gap:.5rem;font-size:.8rem;display:flex}.tax-slider input{accent-color:#a6c978;width:100%}.tax-slider .tax-forecast{grid-column:1/-1;margin:0;font-size:.8rem}.tax-panel .tax-warning{color:#ffac96}.city-mood circle,.city-tax-penalty circle{stroke:#1a261f;stroke-width:1.2px}.city-mood.happy circle{fill:#9fda85}.city-mood.neutral circle,.city-tax-penalty circle{fill:#f0ce7b}.city-mood.unhappy circle{fill:#f39081}.city-mood path,.city-tax-penalty path{stroke:#273428;stroke-width:1.15px;fill:none;stroke-linecap:round;stroke-linejoin:round}.turn{text-align:right;gap:.15rem;display:grid}.project-sprite{background-repeat:no-repeat;background-size:400% 400%;display:block}.city-token .city-defense-mark path{fill:#25352d;stroke:#a3bfa3;stroke-width:1px;stroke-linejoin:round}.city-token .city-defense-mark text{fill:#e2f3d5;font-size:7px}.city-production rect{fill:#17221f;stroke:#8ab68c;stroke-width:1px}.city-production.idle rect{stroke:#d8b264}.city-production.blocked rect{stroke:#e8907e}.city-token .city-production text{font-size:7px}.city-token .city-production .city-production-status{fill:#bde5bd;font-size:6.5px}.city-token .city-production.idle text{fill:#f5d98e}.city-token .city-production.blocked .city-production-status{fill:#ffb7a8}.worker-status-badge{fill:#17221f;stroke:#8ab68c;stroke-width:1px}.worker-status.resting .worker-status-badge{stroke:#d8b264}.worker-status.travel .worker-status-badge{stroke:#8db5c9}.unit-token .worker-status text{fill:#f3e8d2;font-size:7px}.unit-token .worker-status .worker-status-remaining{fill:#bde5bd;font-size:6.5px}.unit-token .worker-status.resting text{fill:#f5d98e}.worker-status-track{fill:#455c4e;stroke:none}.worker-status-progress{fill:#a4d891;stroke:none}.disaster-option{align-items:center;gap:.55rem;margin:.75rem 0;display:flex}.hazard-marker circle{fill:#503723;stroke:#efb976;stroke-width:1.4px}.hazard-marker text{fill:#ffdb9b;text-anchor:middle;stroke:none;pointer-events:none;font-size:9px;font-weight:700}.hazard-marker.disaster-recent circle{fill:#7c3528;stroke:#ffb195;stroke-width:2px}.game-dialog{color:var(--text,#f3e8d2);background:#212d28;border:1px solid #56715e;border-radius:12px;width:min(34rem,100vw - 2rem);max-height:calc(100dvh - 2rem);padding:0;box-shadow:0 16px 52px #101713bb}.game-dialog::backdrop{background:#0c1412ad}.game-dialog-content{padding:clamp(1rem,4vw,1.8rem)}.game-dialog-content h2{margin:.35rem 0 .7rem}.game-dialog-content p{line-height:1.5}.technology-dialog-status{color:#b9d7ae;font-size:.8rem}.technology-unlocks{flex-wrap:wrap;gap:.5rem 1rem;padding:0;list-style:none;display:flex}.technology-unlocks li{align-items:center;gap:.4rem;display:flex}.technology-unlocks .unit-portrait{object-fit:contain;flex:none;width:34px;height:34px}.game-dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:.6rem;margin-top:1.2rem;display:flex}.game-dialog.victory-dialog{border-color:var(--gold);text-align:center;background:radial-gradient(at top,#3a4332,#212d28 74%);width:min(52rem,100vw - 2rem)}.victory-dialog .game-dialog-content{padding:clamp(2rem,8vw,5rem) clamp(1rem,4vw,3rem)}.victory-dialog h2{color:var(--gold);font-size:clamp(2.75rem,9vw,5rem)}.victory-dialog .game-dialog-actions{justify-content:center;margin-top:2rem}.railroad-art,.railroad-stub{pointer-events:none}.railroad-art path{fill:none}.railroad-ties{stroke:#3b2d24;stroke-width:7px;stroke-dasharray:1.7 2.2}.railroad-rails{stroke:#cfdfd9;stroke-width:2.2px;stroke-linecap:round}.railroad-stub{fill:#cfdfd9;stroke:#3b2d24;stroke-width:1.5px}.disaster-dialog,.disaster-focus{--disaster-accent:#ffae77}.disaster-dialog.earthquake,.disaster-focus.earthquake{--disaster-accent:#f3cc86}.disaster-dialog.tsunami,.disaster-focus.tsunami{--disaster-accent:#a4dcff}.disaster-dialog.flood,.disaster-focus.flood{--disaster-accent:#a3e5d2}.game-dialog.disaster-dialog{border-color:var(--disaster-accent);width:min(42rem,100vw - 2rem)}.disaster-dialog .game-dialog-content{padding:0}.disaster-hero{isolation:isolate;background:#1b241f;align-items:flex-end;min-height:clamp(13rem,42vw,19rem);display:flex;position:relative;overflow:hidden}.disaster-hero:after{z-index:-1;content:"";background:linear-gradient(#0000 14%,#121a1677 50%,#121a16 100%);position:absolute;inset:0}.disaster-illustration{z-index:-2;aspect-ratio:3/2;background:url(/assets/disaster-scenes-CYuj-2B5.jpg) 0 0/200% 200% no-repeat;width:100%;position:absolute;inset:0 0 auto}.disaster-dialog.earthquake .disaster-illustration{background-position:100% 0}.disaster-dialog.tsunami .disaster-illustration{background-position:0 100%}.disaster-dialog.flood .disaster-illustration{background-position:100% 100%}.disaster-heading{padding:1.1rem clamp(1rem,4vw,1.8rem) .85rem}.disaster-dialog-status{color:var(--disaster-accent);font-size:.8rem;font-weight:700}.disaster-heading h2{margin:.35rem 0;font-size:clamp(1.75rem,5vw,3rem);line-height:1.05}.disaster-heading p{color:var(--disaster-accent);margin:.45rem 0 0}.disaster-details{padding:1rem clamp(1rem,4vw,1.8rem) 1.35rem}.disaster-details h3,.disaster-details p{margin:.2rem 0}.disaster-details li{margin:.4rem 0}.disaster-focus circle{fill:none;stroke:var(--disaster-accent);stroke-width:3px;filter:drop-shadow(0 1px 3px #111);transform-origin:50%;transform-box:fill-box}.disaster-focus-wave{opacity:0;animation:1.35s ease-out 2 disaster-focus-wave}@keyframes disaster-focus-wave{0%{opacity:.9;transform:scale(.85)}to{opacity:0;transform:scale(1.8)}}@media (prefers-reduced-motion:reduce){.disaster-focus-wave{animation:none}}.flag-upload{flex:100%;gap:.3rem;min-width:0;padding:.5rem .3rem .15rem;font-size:.85rem;display:grid}.flag-upload input{max-width:100%}.flag-upload small{color:var(--muted)}.map-animation{pointer-events:none}.combat-tracer{fill:none;stroke:#ffe4ad;stroke-width:2px;stroke-linecap:round;opacity:.7}.combat-projectile{fill:#fff1c4;stroke:#e89652;stroke-width:1px}.combat-impact{fill:#f5a65744;stroke:#ffcc87;stroke-width:2px}.combat-damage{fill:#fff0d0;stroke:#65281f;stroke-width:2px;paint-order:stroke fill;text-anchor:middle;font-size:14px;font-weight:800}.unit-health{pointer-events:none;--health:#91d4a0}.unit-health.damaged{--health:#f5c271}.unit-health.critical{--health:#ef8d87}.unit-health-background{fill:#17221f;stroke:#202c27;stroke-width:.5px}.unit-health-fill{fill:var(--health);stroke:none}.unit-token .unit-health text{fill:#fff5e4;font-variant-numeric:tabular-nums;font-size:6.2px}.records-screen{background:#182522;grid-area:1/1/-1/-1;min-height:0;overflow:auto}.records-content{max-width:82rem;margin:auto;padding:clamp(1rem,4vw,2.8rem)}.records-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1rem;margin-top:1.2rem;display:grid}.record-card{background:var(--paper);border:1px solid var(--line);border-radius:8px;min-width:0;padding:1rem 1.15rem}.record-card h2{margin:0;font-size:1.3rem}.record-card h2 span,.record-card b{color:var(--gold)}.record-card p{font-size:.85rem}.record-current{border-bottom:1px solid var(--line);justify-content:space-between;gap:.5rem;padding-bottom:.65rem;display:flex}.record-current strong{color:#eee9d8}.record-list{margin:0;padding:0;list-style:none}.record-list li{border-radius:4px;grid-template-columns:1.4rem minmax(0,1fr) auto;align-items:center;gap:.45rem;padding:.55rem .4rem;display:grid}.record-list .record-active{background:#31433a}.record-list small{color:var(--muted);margin-top:.16rem;font-size:.72rem;display:block}.record-rank{color:#b7c7b8;font-variant-numeric:tabular-nums}.details-toggle{display:none}@media (width<=720px){.game-main{overflow:hidden}.game-main.details-selected{grid-template-rows:minmax(0,1fr) auto}.game-main.details-selected:not(.details-expanded) aside{display:none}.game-main.details-expanded{grid-template-rows:minmax(0,1fr) auto minmax(0,1fr)}.details-toggle{background:var(--paper);text-align:left;border-width:1px 0 0;border-radius:0;justify-content:space-between;align-items:center;gap:.6rem;min-height:34px;padding:.3rem .75rem;display:flex}.details-toggle strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.82rem;overflow:hidden}.details-toggle span{color:var(--gold);flex:none;font-size:.75rem}.details-toggle:focus-visible{outline-offset:-2px}.game-main aside{overscroll-behavior-y:contain;min-height:0;scroll-padding-block-end:.75rem}.game-footer{padding:.32rem .55rem max(.32rem,env(safe-area-inset-bottom));flex-wrap:wrap;gap:.3rem}.game-footer>span{text-overflow:ellipsis;white-space:nowrap;flex:5rem;min-width:0;font-size:.71rem;overflow:hidden}.game-footer>div{flex-wrap:wrap;justify-content:flex-end;gap:.35rem;max-width:100%;margin-inline-start:auto}.game-footer button{padding:.35rem .56rem;font-size:.75rem}.game-nav{scrollbar-width:none;gap:.12rem;padding:.12rem .45rem}.game-nav button{flex:none;min-height:29px;padding:.16rem .42rem;font-size:.75rem;line-height:1.12}.game-nav button:focus-visible{outline-offset:-2px}.game-header{grid-template-columns:minmax(0,1fr) auto;gap:.18rem .55rem;padding:.35rem .55rem;display:grid}.game-header .brand{grid-area:1/1;gap:.35rem;min-width:0}.game-header .brand strong{letter-spacing:.12em;font-size:.85rem}.game-header .crest{font-size:1.25rem}.game-header .turn{grid-area:1/2;align-items:baseline;gap:.4rem;font-size:.69rem;display:flex}.game-header .ledger{scrollbar-width:none;font-variant-numeric:tabular-nums;flex-wrap:nowrap;grid-area:2/1/3/-1;justify-content:flex-start;align-items:center;gap:.55rem;min-width:0;font-size:.72rem;line-height:1.15;overflow-x:auto}.game-header .ledger-item{white-space:nowrap;flex:none}.game-header .ledger-resource{gap:.14rem}.game-header .ledger-resource img{width:15px;height:14px}.game-header .ledger-change{font-size:.65rem}.game-header .ledger-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}}.touch-move,.touch-instruction{display:none}@media (width<=720px),(pointer:coarse){.touch-move{z-index:1;pointer-events:none;flex-direction:column;align-items:flex-end;gap:.25rem;display:flex;position:absolute;top:.55rem;right:.55rem}.touch-move button{pointer-events:auto;background:#25352e;border-color:#7f987a;min-height:36px;font-size:.78rem}.touch-move button[aria-pressed=true]{color:#ffdf9f;background:#415441}.touch-move span{color:#f2e6ca;text-align:right;background:#192624;border-radius:4px;max-width:11rem;padding:.2rem .4rem;font-size:.68rem}.touch-instruction{display:inline}.mouse-instruction{display:none}}.leader-profile{border:1px solid var(--line);background:#25322d;border-radius:6px;grid-template-columns:3.8rem minmax(0,1fr);align-items:center;gap:.7rem;margin:.45rem 0 .85rem;padding:.55rem;display:grid}.leader-portrait{background-color:#382f23;background-repeat:no-repeat;background-size:300% 300%;border:1px solid #788777;border-radius:5px;width:3.8rem;height:3.8rem}.leader-profile strong,.leader-profile small{display:block}.leader-profile small{color:var(--gold);margin-top:.14rem}.leader-profile ul{color:var(--muted);margin:.3rem 0 0;padding-left:1rem;font-size:.78rem}.leader-profile li{padding:.04rem 0}.hex.war-target>polygon:first-of-type{stroke:#eac680;stroke-width:2.5px;stroke-dasharray:3 2}.tutorial-screen{background:#192522;grid-area:1/1/-1/-1;min-height:0;overflow:auto}.tutorial-content{max-width:48rem;margin:auto;padding:clamp(1rem,4vw,2.5rem)}.tutorial-progress{color:var(--gold);margin-block:1.2rem .35rem;font-size:.82rem}.tutorial-instructions{color:var(--muted);line-height:1.55}.tutorial-instructions li+li{margin-top:.35rem}.tutorial-actions{flex-wrap:wrap;align-items:center;gap:.55rem;margin-top:1.2rem;display:flex}
