:root{font:16px/1.25 Roboto,Arial,sans-serif;color:#f2e1be;background:#1d2421;color-scheme:dark}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,summary,select,input[type=checkbox]{cursor:pointer}
[hidden]{display:none!important}button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid #edc883;outline-offset:1px}
#landing{display:flex;justify-content:center;width:100%;height:100vh;height:100dvh;background:#1d2421}
.plate{min-width:0;width:0;flex:1;height:100%}
.plate img{display:block;width:100%;height:100%;object-fit:cover}
.account{width:min(100vw,400px);padding:12px 20px 20px;overflow:auto}
@media(max-width:599px){.plate{display:none}}
.account h1{font:26px/32px "Plymouth Android Serif",Georgia,serif;margin:0;color:#f2e1be}
.account p{font:14px "Plymouth Android Serif",Georgia,serif;margin:0}.account p:empty{display:none}
#credentials>input{display:block;width:calc(100% - 8px);height:47px;background:transparent;color:#f2e1be;border:0;border-bottom:1px solid #aaa;font:18px Roboto,Arial,sans-serif;margin:0 4px;padding:6px 0 3px;border-radius:0}
#credentials input[type=password]::placeholder{font-family:monospace}
#credentials>input:focus{outline:none;border-bottom:2px solid #80cbc4}#credentials>input::placeholder{color:lightgray}
.account button,#leave{border-radius:2px;border:0;background:#5a5a5a;color:white;box-shadow:0 1px 2px #14141466;font:500 14px Roboto,Arial,sans-serif;min-height:36px}
.account button{width:calc(100% - 8px);margin:6px 4px}button:disabled{opacity:.55}
#terms-line label{height:48px;display:flex;align-items:center;font-size:14px}#terms-line input{accent-color:#80cbc4;width:18px;height:18px;margin:0 8px 0 4px}
#terms-line a{display:block;color:#f2e1be;font:16px "Plymouth Android Serif",Georgia,serif;padding:6px 0}
#world,#field{width:100%;height:100vh;height:100dvh;overflow:hidden}#world{position:relative;background:#727451;user-select:none}
#field{display:block;touch-action:none;outline:none}
#world>canvas:not(#field),#world>div,#world>nav,#world>output{position:absolute}
#world button{border:0;border-radius:0;padding:0;background:transparent;color:inherit;line-height:0}
#world button img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
#watch{top:7px;left:4px;width:40px;height:40px;pointer-events:none}
#world-status{left:50px;top:62px;font-size:14px;color:#2a2420;text-shadow:0 1px 6px #f4efe6;padding:5px 4px 5px 0;pointer-events:none}
#provisions{top:4px;left:50%;transform:translateX(-50%);display:flex;gap:2px;align-items:center}
#gauges,#gauge-art{width:171px;height:58px}#world #fork{width:38px;height:44px;background:#352b22;border:1px solid #c8a670;border-radius:4px;padding:4px}
#minimap{width:115px;height:85px;bottom:3px;left:3px;background:#dccbaa;touch-action:none}
#pace{left:3px;bottom:90px;height:35px;width:115px;display:flex}
#world #pace button{width:25%;border:1px solid #826947;border-radius:3px;background:#332b23f5;display:grid;place-items:center}
#world #pace button[aria-pressed=true]{background:#6a4b2e;border:2px solid #e9c987}#pace img{width:23px!important;height:23px!important}
#shortcuts{bottom:4px;left:121px;display:grid;grid-template-columns:41px 41px;gap:2px}
#world #shortcuts button{width:41px;height:41px;padding:5px;border:1px solid #ab8a57;border-radius:2px;background:linear-gradient(#554332,#30281f,#211b17)}
#field-keys{bottom:4px;left:207px;display:flex}#world #field-keys button{width:32px;height:32px;margin:3px;border-radius:100%;border:1px solid #bf9e69;background:#433629;padding:3px}
#actions{position:fixed;z-index:20;background:#402b20;padding:2px 3px;box-shadow:0 3px 6px #0006;max-height:100dvh;overflow:auto}
#actions button{background:none;border:0;color:#f2deb1;display:block;text-align:left;width:100%;min-height:32px;padding:0 9px;font:12px "Plymouth Android Serif",Georgia,serif}
#actions button:hover,#actions button:focus{background:#d5b06e44}
#settings,#atlas,#flag-editor{color:#f0dfbb;font:14px "Plymouth Android Serif",Georgia,serif;padding:4px 14px 12px;border:1px solid #bd9a60;border-radius:4px;background:linear-gradient(90deg,#51392b,#392a23 3%,#44362a 96%,#241c18);max-width:calc(100vw - 12px);max-height:calc(100dvh - 8px);overflow:auto}
#settings{width:485px;position:fixed;inset:auto;margin:0;border:0;border-radius:0}#settings header,#settings .settings-body{position:relative}#settings header,#atlas header{height:40px;display:flex;align-items:center;cursor:move}
#settings header strong,#atlas header strong{font-size:19px;font-weight:400;flex:1}
#settings button.close,#atlas header button{font-family:inherit;border:0;color:#f0dfbb;background:transparent;padding:0 7px;min-height:32px}
#settings button.close{font-size:22px;width:40px}#leave{padding:0 14px}
.settings-body{background:#302c24;display:flex}.settings-body section{flex:1;min-width:0;padding:8px 12px 10px}.settings-body h2{font:17px/30px "Plymouth Android Serif",serif;color:#d0ac70;margin:0}
.settings-body label,.settings-body section>div:not(#aa-modes){height:36px;display:flex;align-items:center;justify-content:space-between}.settings-body label[for]{height:22px;font-size:13px}.settings-body input{accent-color:#d0ac70}
.settings-body input[type=range]{width:calc(100% - 32px);height:32px;margin:0 16px}.settings-body #aa-modes label{justify-content:flex-start;height:30px;font-size:13px}.settings-body small{font-size:11px}
dialog::backdrop{background:#0005}
#atlas{position:absolute;width:480px;height:min(310px,84dvh);padding:2px}
#atlas header{height:30px}#atlas header strong{font-size:13px;margin-left:7px}
#chart{display:block;width:100%;height:calc(100% - 30px);background:#d6c7a6;touch-action:none}
#field-keys button[aria-pressed=true]{filter:brightness(1.4)}
#combat{position:absolute;bottom:4px;right:4px;padding:3px 5px 4px;border:1px solid #b79b66;border-radius:4px;background:#322a21fa;color:#fae7bd;font:12px "Plymouth Android Serif",Georgia,serif;text-align:center}
#combat p{white-space:pre-line;margin:0}.combat-keys{display:grid;grid-template-columns:repeat(4,59px);gap:0 2px}
#world .combat-keys button{color:#fae7bd;font:13px Georgia,serif;line-height:1.1;background:#514334;border:1px solid #b79b66;border-radius:4px;height:44px}
.combat-keys button[aria-keyshortcuts]{position:relative}
.combat-keys button[aria-keyshortcuts]::before{content:attr(aria-keyshortcuts);position:absolute;top:1px;left:3px;font-size:9px}
#enemies{position:absolute;left:calc(50% - 106px);width:171px;top:62px;display:flex;justify-content:safe center;overflow:auto;scrollbar-width:none;gap:3px}
#world #enemies button{flex:0 0 28px;height:28px;padding:3px;border:1px solid #977b51;background:#382d24}
#world #enemies button[aria-pressed=true]{border:2px solid #e9bc74}

.settings-body input[type=checkbox]{appearance:none;width:30px;height:14px;position:relative;border:0;border-radius:10px;background:#777267;margin:0 6px}
.settings-body input[type=checkbox]:checked{background:#496159}
.settings-body input[type=checkbox]::before{content:'';position:absolute;left:-1px;top:-3px;width:20px;height:20px;border-radius:50%;background:#a49a86}
.settings-body input[type=checkbox]:checked::before{left:12px;background:#d0ac70}
.settings-body input[type=radio]{appearance:none;width:20px;height:20px;border:2px solid #d0ac70;border-radius:50%;margin:0 6px}
.settings-body input[type=radio]:checked{background:radial-gradient(circle,#d0ac70 0 5px,transparent 6px)}
.settings-body section>div:not(#aa-modes){height:30px}
.settings-body small{display:flex;height:22px;align-items:center}
.settings-body :disabled,.settings-body label:has(:disabled){opacity:.48}
.settings-body input[type=range]{appearance:none;background:transparent}
.settings-body input[type=range]::-webkit-slider-runnable-track{height:2px;background:#d0ac70}
.settings-body input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:#d0ac70;margin-top:-5px}
#settings #leave{min-height:28px;margin:0 4px}
#settings::backdrop{background:#0009}

#combat-effects{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#world .combat-keys button{white-space:pre-line;font-family:"Plymouth Android Serif",serif}
#world .combat-keys button[aria-pressed=true]{background:#926936}
