#villageHistory{margin-top:12px;display:flex;flex-direction:column;align-items:stretch;gap:6px;max-width:240px}#villageHistory button{padding:9px 12px;background:#203945;border:1px solid #829493;border-radius:6px;color:#ead5aa;font:12px system-ui;cursor:pointer}#historyDialog{background:#142b36;color:#dce7e7;border:1px solid #71848b;border-radius:12px;width:min(720px,88vw);max-height:78vh;padding:24px;font:14px system-ui;box-shadow:0 24px 100px #0008}#historyDialog::backdrop{background:#071720aa}#historyDialog .history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}#historyDialog h2{font:26px Georgia;color:#eddbb7;margin:0}#historyDialog h3{font:19px Georgia;margin:0 0 8px}#historyDialog article{padding:18px 0;border-top:1px solid #44606b}#historyDialog p{line-height:1.6}#historyDialog small{display:block;color:#aec2cb}.history-replay,#historyDialog button,#replayBar button,#replayBar select{display:inline-block;padding:9px 14px;background:#365467;border:1px solid #91a6aa;color:#f2e2bb;border-radius:5px;cursor:pointer;text-decoration:none}.history-replay{margin-top:12px}.history-replay[aria-disabled]{opacity:.55;cursor:default}#replayBar{position:fixed;z-index:80;bottom:18px;left:18px;right:18px;padding:15px 18px;border:1px solid #688591;border-radius:10px;background:#102935f2;color:#dce7e9;box-shadow:0 8px 30px #0005;font:13px system-ui}#replayBar strong{display:block;font:21px Georgia;color:#e8d6ad}#replayBar small{display:block;margin:7px 0;color:#a9c1cd}.replay-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.replay-controls input{flex:1;min-width:180px;accent-color:#d7bb7e}.replay-controls a{color:#e8d6ad}#replayBar p{font-size:11px;margin:10px 0 0;color:#b7cbd1}.replay-mode .brief,.replay-mode .sidebar,.replay-mode .village-status,.replay-mode .commandbar,.replay-mode #controlGroups,.replay-mode #exerciseControls,.replay-mode #worldControls,.replay-mode #deathScreen,.replay-mode .world-action,.replay-mode #dragonRide,.replay-mode #siegeAim,.replay-mode #chatPanel,.replay-mode #speechComposer,.replay-mode #flightAltitude,.replay-mode #thirstStatus,.replay-mode #coldStatus,.replay-mode #workStatus,.replay-mode #restStatus{display:none!important}.replay-mode .mapbox{bottom:190px}@media(max-width:900px){#replayBar{bottom:8px;left:8px;right:8px}.replay-controls{gap:6px}}

#lordSpells{position:fixed;z-index:10;display:flex;align-items:center;gap:5px;padding:5px 8px;color:#f5e3bd;background:#172837f2;border:1px solid #95856b;border-radius:6px;box-shadow:0 3px 14px #08131b78;font:12px system-ui}
#lordSpells span{font-size:9px;letter-spacing:1px;text-transform:uppercase}
#lordSpells button{background:#283848;border:1px solid #695f52;border-radius:4px;padding:4px 7px;color:#f6dfad;font:inherit;cursor:pointer}
#lordSpells button[aria-pressed=true]{background:#62482e;border-color:#e7c07e}
.replay-mode #lordSpells{display:none}

#lordSpells button{position:relative;padding-bottom:7px}#lordSpells button::after{content:'';position:absolute;bottom:1px;left:3px;right:3px;height:2px;background:#c2b084;opacity:.75;transform:scaleX(var(--charge,1));transform-origin:left;transition:transform 40ms linear}

#lordSpells{z-index:32}#thirstStatus,#restStatus{pointer-events:none}

#minimap{image-rendering:auto;touch-action:none}
