@font-face{font-family:Cubic11;font-style:normal;font-weight:400;font-display:block;src:url(/account/gate-pixel.woff2) format('woff2')}
:root{--fr-wood:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%225%22%20height%3D%225%22%20shape-rendering%3D%22crispEdges%22%3E%3Crect%20x%3D%221%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2317151c%22/%3E%3Crect%20x%3D%222%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2317151c%22/%3E%3Crect%20x%3D%223%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2317151c%22/%3E%3Crect%20x%3D%220%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2317151c%22/%3E%3Crect%20x%3D%221%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23b07a44%22/%3E%3Crect%20x%3D%222%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23b07a44%22/%3E%3Crect%20x%3D%223%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23b07a44%22/%3E%3Crect%20x%3D%224%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2317151c%22/%3E%3Crect%20x%3D%220%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2317151c%22/%3E%3Crect%20x%3D%221%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23b07a44%22/%3E%3Crect%20x%3D%223%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%235a3218%22/%3E%3Crect%20x%3D%224%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2317151c%22/%3E%3Crect%20x%3D%220%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2317151c%22/%3E%3Crect%20x%3D%221%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%235a3218%22/%3E%3Crect%20x%3D%222%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%235a3218%22/%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%235a3218%22/%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2317151c%22/%3E%3Crect%20x%3D%221%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2317151c%22/%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2317151c%22/%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2317151c%22/%3E%3C/svg%3E");--fr-paper:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%225%22%20height%3D%225%22%20shape-rendering%3D%22crispEdges%22%3E%3Crect%20x%3D%221%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23362b2c%22/%3E%3Crect%20x%3D%222%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23362b2c%22/%3E%3Crect%20x%3D%223%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23362b2c%22/%3E%3Crect%20x%3D%220%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23362b2c%22/%3E%3Crect%20x%3D%221%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fbf0d8%22/%3E%3Crect%20x%3D%222%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fbf0d8%22/%3E%3Crect%20x%3D%223%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fbf0d8%22/%3E%3Crect%20x%3D%224%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23362b2c%22/%3E%3Crect%20x%3D%220%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23362b2c%22/%3E%3Crect%20x%3D%221%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fbf0d8%22/%3E%3Crect%20x%3D%223%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23937b60%22/%3E%3Crect%20x%3D%224%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23362b2c%22/%3E%3Crect%20x%3D%220%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23362b2c%22/%3E%3Crect%20x%3D%221%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23937b60%22/%3E%3Crect%20x%3D%222%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23937b60%22/%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23937b60%22/%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23362b2c%22/%3E%3Crect%20x%3D%221%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23362b2c%22/%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23362b2c%22/%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23362b2c%22/%3E%3C/svg%3E");--grain:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2216%22%20height%3D%2216%22%20shape-rendering%3D%22crispEdges%22%3E%3Crect%20x%3D%221%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%223%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%226%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%228%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%2210%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%2211%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%2214%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%225%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%228%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%229%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%221%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%222%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%226%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%228%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%226%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%2214%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%220%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%221%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%224%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%228%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%224%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%2210%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%2210%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%2212%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%2213%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%2215%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%221%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%222%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%223%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%224%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%226%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%229%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%2213%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%222%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%223%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%227%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%228%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%2211%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%2213%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%224%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%223%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%224%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%228%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%227%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%228%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%229%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%2212%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%222%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3Crect%20x%3D%222%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%238a5a2016%22/%3E%3Crect%20x%3D%2213%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff30%22/%3E%3C/svg%3E")}
:root{color-scheme:dark;--bg:#13171c;--stone:#20272c;--rim:#485157;--ivory:#f0dfbe;--quiet:#b0b5ad;--gold:#ddb77f}
*{box-sizing:border-box}[hidden]{display:none!important}
body{margin:0;background:linear-gradient(130deg,#1c2228,var(--bg) 65%);min-height:100vh;color:var(--ivory);font:15px/1.6 system-ui,sans-serif}
.mast,main{width:min(960px,calc(100% - 32px));margin:auto}
.mast{min-height:82px;display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--rim)}
.mast strong{font:700 23px serif;letter-spacing:.16em;border-left:4px solid var(--gold);padding-left:12px}
#identity{margin-left:auto;color:var(--quiet);overflow-wrap:anywhere}
main{padding:clamp(24px,7vh,72px) 0}.gate{display:grid;grid-template-columns:1fr 1fr;min-height:465px;box-shadow:0 16px 50px #080a0c66;background:var(--stone);border:1px solid var(--rim)}
.shaft{min-height:220px;background:#161a22;overflow:hidden}.shaft canvas{display:block;width:100%;height:100%;object-fit:cover;image-rendering:pixelated}
.register{align-self:center;padding:clamp(24px,4vw,48px)}
h1,h2{font-family:serif;color:var(--ivory);margin:0 0 12px}h1{font-size:clamp(29px,4vw,42px);line-height:1.2}h2{font-size:25px}
p{margin:0 0 20px;color:var(--quiet)}label,legend{font-weight:600;display:block;color:#d6c7ad;margin-bottom:7px}
input:not([type=radio]){width:100%;font:inherit;color:var(--ivory);border:1px solid #625d52;border-radius:0;padding:11px;background:#151a20;margin-bottom:16px}
button{cursor:pointer;background:#30373b;border:1px solid #666861;color:var(--ivory);font:inherit;padding:7px 13px}
button.brass{background:#caa368;color:#201b18;border:1px solid #f0c88d;box-shadow:inset 0 -3px #a27b4e;font-weight:bold}
button:disabled{cursor:default;opacity:.48}button:focus-visible,input:focus-visible{outline:2px solid #fbd899;outline-offset:2px}
.register button{width:100%;margin-bottom:8px}.heading,.actions,.role{display:flex;align-items:center;gap:12px}.heading{justify-content:space-between}
#slots{color:var(--gold)}#roles{display:grid;gap:9px;margin:14px 0 23px}.role{background:var(--stone);border:1px solid var(--rim);padding:14px 16px;border-left:3px solid var(--accent)}
.sigil{font:700 22px serif;color:var(--accent);border:1px solid var(--accent);width:42px;height:42px;display:grid;place-items:center;background:#171c20}
.details{flex:1;min-width:0}.details strong,.details small{display:block}.details small{color:var(--quiet)}.role a{color:var(--gold);padding:7px;text-decoration:underline}
dialog{width:min(420px,calc(100% - 28px));background:var(--stone);border:1px solid #917758;color:var(--ivory);padding:24px}dialog::backdrop{background:#090c11bd}
fieldset{border:0;padding:0;margin:0 0 16px}#choices{display:grid;gap:4px}#choices label{margin:0;font-weight:normal;padding:5px 8px;background:#171c21}
.actions{justify-content:flex-end}.danger{background:#783a39}#feedback,.error{color:#efba94;margin-top:12px}
.sigil{image-rendering:pixelated}.stamps{display:flex;gap:5px;margin:5px 0}.stamps span{font-size:11px;border:1px solid #535654;padding:0 5px;color:#9da29b}.stamps .earned{color:#ecc58c;border-color:#9f774c;background:#373026}
@media(max-width:640px){.gate{grid-template-columns:1fr}.shaft{height:160px;min-height:0}.shaft canvas{object-position:50% 40%}.mast{min-height:62px;flex-wrap:wrap;gap:8px}#identity{font-size:12px}.role{gap:6px;padding:11px 8px}.role button{padding:5px 8px}.sigil{width:30px;height:35px}}

body{background:radial-gradient(ellipse at 45% 28%,#393139 0%,#1e1c25 48%,#121219 92%);font-family:Cubic11,system-ui,sans-serif}
.mast strong,h1,h2,.sigil{font-family:Cubic11,system-ui,sans-serif}
.mast{border-bottom:2px solid #584744}.mast strong{color:#f1c78c;text-shadow:2px 2px #24191d}
.gate{grid-template-columns:1.15fr 1fr;background:#201a22;border:6px solid;border-image:var(--fr-wood) 2/6px stretch;box-shadow:4px 6px #0e0c11;overflow:hidden;align-items:stretch}
.shaft{position:relative;min-height:440px;border-right:4px solid #463639}.shaft canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
.register{align-self:stretch;background:var(--grain),#d4c5a9;border:4px solid;border-image:var(--fr-paper) 2/4px stretch;color:#332522;padding:clamp(20px,3.2vw,39px);display:flex;flex-direction:column;justify-content:center}
.register h1{color:#4e3029;text-shadow:1px 2px #eee1c6;font-size:29px;padding-bottom:10px;border-bottom:2px solid #998161}
.register label,.register p{color:#554436}.register input:not([type=radio]){color:#302422;background:#f3e6c9;border:2px solid #816b52;box-shadow:inset 2px 2px #bbaa8e;font:16px/1.4 Cubic11,system-ui,sans-serif}
.register button{background:#cbbb9d;color:#352923;border:2px solid #7a654e;box-shadow:inset 1px 1px #f2e1bd,2px 2px #8e795c}
.register button.brass{background:#84422e;color:#fff0c8;border:2px solid #553226;box-shadow:inset 1px 2px #bc7751,inset 0 -3px #66362c,2px 2px #8e795c}
.gate-links{display:flex;gap:6px;justify-content:space-between}.register .gate-links button{width:auto;background:transparent;box-shadow:none;border:0;text-decoration:underline;padding:4px 0;color:#563c2d;font-size:13px}
#authMessage{font-size:13px;color:#773a2a;margin:8px 0 0}#authMessage:empty{display:none}
@media(max-width:640px){.gate{grid-template-columns:1fr}.shaft{min-height:0;height:clamp(165px,25vh,215px);border-right:0;border-bottom:3px solid #5a4741}.register{padding:18px 20px}.mast strong{font-size:20px}}

.wordmark{width:162px;height:43px;object-fit:contain;image-rendering:pixelated}
.roster{display:grid;grid-template-columns:minmax(235px,.76fr) minmax(0,1.24fr);align-items:stretch;background:#28222a;border:6px solid;border-image:var(--fr-wood) 2/6px stretch;box-shadow:4px 6px #100e14}
.muster{padding:22px 18px;background:#28232a;border-right:4px solid #57433d}
.muster-title,.record-heading,.record-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.muster-title{border-bottom:2px solid #65524a;padding-bottom:12px}
.muster-title h1{font:24px/1.25 Cubic11,system-ui,sans-serif;margin:0;color:#f4d9ae}
#slots{font-size:12px;color:#d0b997}
#roles{gap:6px;margin:14px 0}
.slot{position:relative;text-align:left;display:flex;align-items:center;gap:10px;padding:7px 11px;background:#322d32;border:2px solid #53484a;color:#f4dec1;box-shadow:inset 1px 1px #514547}
.slot[aria-pressed=true]{background:#4e3831;border-color:#c89560;box-shadow:inset 2px 0 #eed39a}
.slot[aria-pressed=true]::after{content:"";width:5px;height:5px;background:#edbb76;transform:rotate(45deg);margin-left:auto}
.slot strong,.slot small{display:block}.slot strong{font-size:17px}.slot small{color:#d0beaa;font-size:12px}
.sigil{border:1px solid #78634e;background:#221e25;width:36px;height:36px;flex:none}
#add{width:100%;font-family:inherit}
.dossier{background:var(--grain),#ddceb1;min-width:0;display:flex;flex-direction:column}
.gallery{position:relative;aspect-ratio:226/112;background:#25232a url('/role-gallery.png') center/100% 100%;image-rendering:pixelated;border-bottom:4px solid #57433d}
.miner{position:absolute;bottom:20%;left:50%;width:15%;aspect-ratio:16/20;transform:translateX(-50%);background:url('/role-miners.png') no-repeat;background-size:500% 100%;background-position:calc(var(--frame) * 25%) 0;image-rendering:pixelated;filter:drop-shadow(2px 2px #261c24)}
#record{padding:18px 24px 22px;color:#352924}
.record-heading h2,#record>h2,dialog h2{font:26px/1.25 Cubic11,system-ui,sans-serif;color:#503528;margin:0}
.record-heading span{color:#594032;font-size:15px}
#record>p{color:#584634;margin:12px 0 0}
.record-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 18px;border-block:1px solid #a48e72;padding:10px 0;margin:11px 0;font-size:14px}
.record-facts dt{color:#644f3e}.record-facts dd{margin:0;text-align:right;overflow-wrap:anywhere}
#record .stamps span{color:#60564a;border-color:#aa9677}#record .stamps .earned{color:#573717;background:#e0b67c;border-color:#9d7340}
.record-actions{margin-top:16px}.descend{display:inline-block;text-decoration:none;color:#ffedcc;background:#87472e;border:2px solid #573424;padding:7px 25px;box-shadow:inset 1px 2px #bc7c52,2px 2px #a48d70}
.remove-role{border:0;background:none;color:#703f36;text-decoration:underline;font-size:13px}
#lobby :focus-visible,dialog :focus-visible{outline:2px solid #c18540;outline-offset:2px}
dialog{background:var(--grain),#ddceb1;color:#392b29;border:5px solid;border-image:var(--fr-wood) 2/5px stretch}
dialog h2{margin-bottom:16px}dialog label,dialog legend,dialog p{color:#513d32}dialog .error{color:#833b29}
#choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}#choices label{display:flex;align-items:center;gap:4px;padding:5px;background:#c4ae90;color:#392c26;border:1px solid #958067;cursor:pointer;font-size:13px}
#choices .sigil{width:24px;height:24px}#choices label:has(:checked){background:#f2dbab;border-color:#885e36}
@media(max-width:640px){.roster{grid-template-columns:minmax(0,1fr)}.muster{padding:13px;border-right:0;border-bottom:3px solid #57433d}.muster-title{padding-bottom:7px}.muster-title h1{font-size:21px}#roles{grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0}.slot{gap:6px;padding:5px}.slot .sigil{width:25px;height:25px}.slot strong{overflow-wrap:anywhere;font-size:14px}.slot small{font-size:11px}.slot[aria-pressed=true]::after{display:none}.gallery{max-height:170px}.wordmark{width:143px;height:auto}#record{padding:14px}.record-heading h2{font-size:22px}}
.class-art,.gallery .miner{display:block;flex:none;background:url('/class-portraits.png') no-repeat;background-size:500% 100%;background-position:calc(var(--frame) * 25%) 0;image-rendering:pixelated;aspect-ratio:1}
.slot .class-art{width:50px;background-color:#27212a;outline:1px solid #68564b}
.gallery .miner{width:22%;bottom:16%}
.class-tags,.class-ratings{display:flex;gap:5px;flex-wrap:wrap}
.class-tags>span{color:#65442c;background:#f0dcaf;border:1px solid #a28762;padding:0 5px;font-size:12px;line-height:1.55}
.rating{display:inline-flex;align-items:center;gap:6px;color:#503d32;font-size:12px;line-height:1.4}
.pips{display:inline-flex;gap:2px}.pips i{display:block;width:8px;height:7px;background:#b7a388;border:1px solid #89765e}
.pips i.lit{background:#9e5031;border-color:#79472d;box-shadow:inset 0 1px #de9661}
.record-profile{display:grid;gap:8px;margin-top:8px}.record-profile .class-ratings{column-gap:16px}
#creator{width:min(790px,calc(100% - 24px));padding:0;max-height:90vh;max-height:90dvh}
#createForm{padding:20px}#creator #name{margin-bottom:12px}
#choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#choices label{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;column-gap:8px;padding:10px 8px;border:2px solid #968164;background:var(--grain),#ceba9b;box-shadow:inset 1px 1px #ebd6af}
#choices label:has(:checked){border-color:#834b31;background:var(--grain),#f6e1b7;box-shadow:inset 2px 0 #b97644}
#choices label:has(:focus-visible){outline:2px solid #693e28;outline-offset:2px}
#choices input{position:absolute;top:4px;right:4px;margin:0;width:14px;height:14px;accent-color:#904f30}
#choices .class-art{align-self:start;margin-top:8px;width:56px;background-color:#342d32;outline:2px solid #705747;box-shadow:inset 0 -6px #493d40}
.profession-info{display:grid;justify-items:start;gap:6px}.profession-info strong{padding-right:8px;font-size:15px;line-height:1.3}
#choices .class-ratings{display:grid;gap:2px}#choices .class-tags{gap:3px}#choices .class-tags>span{font-size:11px;padding-inline:3px}
#createForm .actions{position:sticky;bottom:0;background:var(--grain),#ddceb1;border-top:1px solid #aa9273;padding:9px 0 3px}
@media(max-width:740px){#choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#createForm{padding:14px}#choices{gap:5px}#choices label{grid-template-columns:34px minmax(0,1fr);align-items:start;gap:5px;padding:9px 5px 7px}#choices .class-art{width:34px;margin-top:1px}.profession-info{gap:5px}.profession-info strong{font-size:13px;padding-right:7px}#choices .rating{font-size:11px;gap:3px}#choices .pips{gap:1px}#choices .pips i{width:6px}.slot .class-art{width:34px}.record-profile .class-ratings{column-gap:9px}}
@media(max-width:365px){#choices{grid-template-columns:1fr}#choices label{grid-template-columns:54px minmax(0,1fr)}#choices .class-art{width:50px}#choices .class-ratings{display:flex;flex-wrap:wrap;column-gap:8px}}
@media (max-width:480px){
  #choices{grid-template-columns:1fr;gap:5px}
  #choices label{grid-template-columns:64px minmax(0,1fr);gap:12px;padding:7px 9px}
  #choices .class-art{width:64px;margin:0}
  .profession-info{gap:3px}.profession-info strong{font-size:15px}
  #choices .class-ratings{display:flex;gap:8px}
  #choices .rating{display:grid;gap:2px;font-size:12px}
  #choices .pips i{width:7px;height:6px}
}
.mast #dw-online{color:#bed3b3;font-size:13px;white-space:nowrap}
@media(max-width:480px){.mast #dw-online{font-size:12px}.mast .wordmark{width:118px}}
.gallery{background-image:url('/role-gallery.png?v=shaft1');aspect-ratio:280/138;isolation:isolate}
.gallery .miner{background-image:url('/role-idle.png');background-size:500% 600%;bottom:16%;width:22%;animation:miner-idle 2.8s step-end infinite}
@keyframes miner-idle{
  0%,100%{background-position:calc(var(--frame) * 25%) 0}
  18%{background-position:calc(var(--frame) * 25%) 20%}
  38%{background-position:calc(var(--frame) * 25%) 40%}
  54%{background-position:calc(var(--frame) * 25%) 60%}
  70%{background-position:calc(var(--frame) * 25%) 80%}
  86%{background-position:calc(var(--frame) * 25%) 100%}
}
.gallery::before,.gallery::after{content:"";position:absolute;pointer-events:none}
.gallery::before{inset:0;background:radial-gradient(ellipse at 13% 30%,#ffc57644,transparent 16%),radial-gradient(ellipse at 81% 27%,#ffe1a72e,transparent 15%);animation:gallery-lamps 4.8s steps(4,end) infinite alternate}
.gallery::after{width:2px;height:2px;left:20%;top:43%;background:#f2cd8b;box-shadow:24px 23px #dcc09d,74px -9px #b8aaa0,155px 23px #dfcba2;animation:gallery-dust 5.4s steps(12,end) infinite}
@keyframes gallery-lamps{0%,40%,100%{opacity:.85}50%,78%{opacity:.4}}
@keyframes gallery-dust{0%,100%{opacity:0;transform:translate(0,0)}28%{opacity:.7}90%{opacity:.2;transform:translate(8px,-14px)}}
@media(prefers-reduced-motion:reduce){.gallery .miner,.gallery::before,.gallery::after{animation:none}.gallery::after{opacity:0}}
.mast .project-note{font-size:12px;color:#c7bba8}
@media(max-width:720px){.mast{flex-wrap:wrap;padding-block:6px;row-gap:2px}.mast .project-note{order:1;flex-basis:100%}}
@media(max-width:720px){
 .mast{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:2px 5px}
 .mast .project-note{grid-row:2;grid-column:1/-1}.mast #identity{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
 .mast #logout{padding:4px 6px;font-size:12px}.mast .wordmark{max-width:26vw}
}

.camp-door{display:block;text-align:center;margin-top:10px;border:2px solid #876b4b;padding:7px;background:#383330;color:#efd39b;text-decoration:none}.camp-door:hover{background:#514333}
