:root{--wood: #6b4a2b;--wood-light: #a8703f;--cream: #fbf3dc;--ink: #3a2a1a;--green: #4f9e3a;--sat: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));--sab: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));--sal: max(env(safe-area-inset-left, 0px), var(--safe-area-inset-left, 0px));--sar: max(env(safe-area-inset-right, 0px), var(--safe-area-inset-right, 0px))}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;height:100%;overflow:hidden;background:#2d5a3d;font-family:ui-rounded,Trebuchet MS,system-ui,sans-serif;color:var(--ink);user-select:none;-webkit-user-select:none}canvas#game{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;display:block;touch-action:none;image-rendering:pixelated}canvas#overlay{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;pointer-events:none}[hidden]{display:none!important}button{font:inherit;cursor:pointer}.panel-screen{position:fixed;inset:0;display:grid;place-items:center;padding:16px;background:#14281973;overflow:auto}.card{width:min(380px,100%);background:var(--cream);border:4px solid var(--wood);border-radius:14px;padding:20px;box-shadow:0 6px #3e2a17,0 12px 30px #00000059}.card h1{margin:0 0 4px;font-size:28px;color:var(--wood);letter-spacing:1px;text-align:center}.card .sub{margin:0 0 16px;font-size:14px;text-align:center;opacity:.8}.card label,.card .label{display:block;font-weight:700;font-size:14px;margin:10px 0 6px}.card input{width:100%;font:inherit;font-size:16px;padding:10px 12px;border:3px solid var(--wood-light);border-radius:8px;background:#fffaf0;color:var(--ink)}.card details{margin:12px 0;font-size:13px}.card details summary{cursor:pointer;opacity:.7;margin-bottom:6px}#colors{display:flex;flex-wrap:wrap;gap:8px}#colors button{width:34px;height:34px;border-radius:50%;border:3px solid rgba(0,0,0,.2)}#colors button.sel{border-color:var(--ink);transform:scale(1.12)}.primary{display:block;width:100%;margin-top:14px;padding:12px;font-size:18px;font-weight:700;color:#fff;background:var(--green);border:3px solid #2f6b22;border-radius:10px;box-shadow:0 4px #2f6b22}.primary:active{transform:translateY(3px);box-shadow:0 1px #2f6b22}#joinerr{color:#b33b44;font-size:14px;margin-top:10px;text-align:center;min-height:1em}#topbar{position:fixed;top:calc(8px + var(--sat));left:calc(8px + var(--sal));right:calc(80px + var(--sar));display:flex;flex-wrap:wrap;gap:6px;align-items:center;pointer-events:none}.pill{background:var(--cream);border:3px solid var(--wood);border-radius:999px;padding:4px 12px;font-weight:700;font-size:14px;box-shadow:0 3px #00000040}.pill:empty{display:none}#side{position:fixed;top:calc(8px + var(--sat));right:calc(8px + var(--sar));display:flex;flex-direction:column;align-items:flex-end;gap:8px}#side #coins{white-space:nowrap;pointer-events:none}#side button{width:62px;height:62px;font-size:24px;line-height:1;background:var(--cream);border:3px solid var(--wood);border-radius:12px;box-shadow:0 3px #0000004d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--ink)}#side button small{font-size:11px;font-weight:700}#side button:disabled{opacity:.45}#side button.on{background:#ffe9a8}#action{position:fixed;left:50%;transform:translate(-50%);bottom:var(--log-bottom, calc(96px + var(--sab)));padding:12px 22px;z-index:4;font-size:18px;font-weight:700;color:#fff;background:#d98a2b;border:3px solid #8f5512;border-radius:12px;box-shadow:0 4px #8f5512;animation:pulse 1.6s infinite;white-space:nowrap}@keyframes pulse{50%{transform:translate(-50%) scale(1.06)}}#chatlog{position:fixed;left:calc(8px + var(--sal));bottom:var(--log-bottom, calc(76px + var(--sab)));width:min(340px,62vw);display:flex;flex-direction:column;align-items:flex-start;gap:4px;pointer-events:none}#chatlog div,#chathist div{background:#1c140ca8;color:#fff;padding:4px 10px;border-radius:12px 12px 12px 4px;font-size:13px;line-height:1.35;overflow-wrap:anywhere;max-width:100%;box-shadow:0 2px #0000002e}#chatlog div{animation:chatin .25s ease-out;transition:opacity 1.2s,transform 1.2s}#chatlog div b,#chathist div b{display:block;font-size:11px;letter-spacing:.02em}#chatlog div.sys,#chathist div.sys{background:#28461e9e;color:#d6f5c4;font-style:italic;border-radius:10px}#chatlog div.old{opacity:0;transform:translateY(-6px)}@keyframes chatin{0%{opacity:0;transform:translateY(6px)}}#chatpanel{position:fixed;left:calc(8px + var(--sal));bottom:calc(10px + var(--sab));width:min(380px,calc(100vw - 96px - var(--sal) - var(--sar)));height:min(380px,52vh);display:flex;flex-direction:column;background:var(--cream);border:3px solid var(--wood);border-radius:16px;box-shadow:0 4px #00000047;overflow:hidden;z-index:6}#chathead{display:flex;align-items:center;gap:8px;padding:6px 8px 6px 12px;background:#ecd9b0;border-bottom:2px solid #d1b98a}#chathead b{font-size:14px}#chatwho{flex:1;font-size:11px;color:#6b5536}#chatwho:before{content:"●";color:#4caf50;margin-right:4px}#chathead .x{width:28px;height:28px;border-radius:8px;border:2px solid var(--wood);background:#fff7e6;font-weight:700}#chathist{flex:1;overflow-y:auto;padding:8px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;background:#f7eedb;overscroll-behavior:contain}#chathist div{background:#fff;color:var(--ink);box-shadow:0 1px #0000001f}#chathist div b{filter:brightness(.62) saturate(1.6)}#chathist div.mine{align-self:flex-end;background:#ffe9a8;border-radius:12px 12px 4px}#chathist div.mine b{display:none}#chathist div.sys{background:transparent;color:#6b7a52;box-shadow:none;align-self:center;text-align:center;font-size:12px}#chatquick{display:flex;gap:5px;padding:6px 8px 2px;overflow-x:auto;scrollbar-width:none;flex-shrink:0}#chatquick::-webkit-scrollbar{display:none}#chatquick .chip{flex-shrink:0;white-space:nowrap}#chatform{display:flex;gap:6px;padding:6px 8px 8px}#chatform input{flex:1;min-width:0;font:inherit;font-size:16px;padding:8px 12px;border:2px solid #c9ad7c;border-radius:999px;background:#fff;outline:none}#chatform input:focus{border-color:var(--wood);box-shadow:0 0 0 3px #f0b43c59}#chatsend{width:42px;height:42px;flex-shrink:0;border:3px solid var(--wood);border-radius:50%;background:#ffd25a;font-size:18px;font-weight:700;color:var(--ink)}body:has(#chatpanel:not([hidden])) #chatlog{display:none}#btn-chat,#btn-bag{position:relative}#btn-chat[data-n]:not([data-n=""]):after,#btn-bag[data-n]:not([data-n=""]):after,.booktabs button[data-n]:not([data-n=""]):after{content:attr(data-n);position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;border-radius:9px;background:#d9534f;color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center}.booktabs{display:flex;gap:6px;margin:-2px 0 12px;position:sticky;top:-2px;z-index:1;background:inherit;padding-bottom:4px}.booktabs button{position:relative;flex:1;padding:8px 6px;font:inherit;font-weight:700;font-size:14px;border:3px solid var(--wood);border-radius:12px;background:#f3e4c4;color:var(--ink)}.booktabs button.sel{background:#ffd25a;box-shadow:inset 0 -3px #00000026}#topbar .gear{pointer-events:auto;width:34px;height:34px;padding:0;border:none;background:none;font-size:26px;line-height:1;filter:drop-shadow(0 2px 0 rgba(0,0,0,.45));cursor:pointer;transition:transform .2s}#topbar .gear:hover{transform:rotate(40deg)}#mailflag{pointer-events:none;animation:mailbob 1.6s ease-in-out infinite}@keyframes mailbob{50%{transform:translateY(-2px)}}#toast{position:fixed;top:calc(60px + var(--sat));left:50%;transform:translate(-50%);background:#1e160cd9;color:#fff;padding:8px 16px;border-radius:10px;font-weight:700;opacity:0;transition:opacity .3s;pointer-events:none;text-align:center;max-width:80vw;z-index:45}#toast.show{opacity:1}#side button{width:56px;height:56px;font-size:21px}.seg{display:flex;gap:4px;background:#efe0bb;padding:4px;border-radius:10px;margin-bottom:4px}.seg button{flex:1;padding:8px 4px;border:0;border-radius:7px;background:transparent;font-weight:700;color:var(--ink);font-size:14px}.seg button.sel{background:var(--wood-light);color:#fff}.link{display:block;margin:10px auto 0;background:none;border:0;color:var(--wood-light);text-decoration:underline;font-size:14px}.hint{font-size:13px;opacity:.75;margin:10px 0 0}.muted{opacity:.7;font-size:13px}.sheet{position:fixed;left:50%;transform:translate(-50%);bottom:calc(8px + var(--sab));width:min(560px,calc(100vw - 16px));max-height:calc(100dvh - 90px);display:flex;flex-direction:column;gap:8px;background:var(--cream);border:4px solid var(--wood);border-radius:14px;padding:10px 12px;box-shadow:0 6px #3e2a17,0 12px 30px #00000059;overflow:hidden}.sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}#modal-title{font-size:20px;font-weight:700;color:var(--wood)}.x{width:36px;height:36px;flex:none;border:2px solid var(--wood-light);border-radius:50%;background:#f3e3b8;font-weight:700;color:var(--ink)}.row{display:flex;gap:6px;flex-wrap:wrap}.chip{padding:6px 12px;border:2px solid var(--wood-light);border-radius:999px;background:#f3e3b8;font-weight:700;font-size:14px;color:var(--ink)}.chip.sel{background:var(--wood-light);color:#fff}.list{display:flex;flex-direction:column;gap:4px}.list h4{margin:6px 0 2px;font-size:13px;text-transform:uppercase;letter-spacing:.5px;opacity:.7}.item-row{display:flex;align-items:center;gap:8px;padding:4px 6px;background:#f6ead0;border-radius:10px;font-size:14px}.item-row canvas,.item-row .emo{width:34px;height:34px;flex:none;image-rendering:pixelated;font-size:24px;text-align:center;line-height:34px}.item-row .nm{flex:1;min-width:0}.item-row .nm small{display:block;opacity:.7}.item-row button{padding:5px 10px;border:2px solid #2f6b22;border-radius:8px;background:#e3f4d6;font-weight:700;font-size:13px;color:#24521a;white-space:nowrap}.item-row button:disabled{opacity:.4}#modal-body{overflow-y:auto;display:flex;flex-direction:column;gap:8px;font-size:15px}#modal-body form{display:flex;flex-direction:column;gap:8px}#modal-body input{font:inherit;font-size:16px;padding:9px 10px;border:3px solid var(--wood-light);border-radius:10px;background:#fffaf0}#modal-body .primary{margin-top:4px}#modal-body .err{color:#b33b44;font-size:14px;min-height:1em}@media(max-height:520px){#side{gap:5px}#side button{width:46px;height:46px;font-size:19px}#side button small{display:none}.sheet{max-height:calc(100dvh - 16px)}}#coins{pointer-events:auto;cursor:default}#console{background:#1c232b;border:2px solid #5a6a7a;border-radius:8px;padding:6px 8px;font-family:ui-monospace,Menlo,Consolas,monospace;color:#d8f0ff;flex-shrink:0}#console-log{max-height:140px;overflow-y:auto}#console-log div{font-size:13px;padding:1px 2px;color:#bfe8a8;overflow-wrap:anywhere}#console-log div.mine{color:#8fb8d0}.console-row{display:flex;align-items:center;gap:6px}.console-row .prompt{color:#7fd0f0;font-weight:700}#modal-body #console-input{flex:1;min-width:0;font:inherit;font-size:16px;background:transparent;border:0;color:#fff;outline:none;padding:6px 2px;border-radius:0}#console button{font:inherit;font-size:13px;background:#2c3a48;color:#d8f0ff;border:1px solid #5a6a7a;border-radius:6px;padding:4px 8px}#modal-body h3{margin:4px 0 0;font-size:16px;color:var(--wood)}#modal-body .chips{display:flex;flex-wrap:wrap;gap:6px}#modal-body .keys{display:grid;grid-template-columns:max-content 1fr;gap:4px 12px;font-size:14px}#modal-body .keys span:nth-child(odd){font-weight:700}.sheet{z-index:20}#creator{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:calc(10px + var(--sat)) 10px calc(10px + var(--sab));background:#1e10068c;overflow-y:auto}#creator[hidden]{display:none}.sv-panel{--sv-ink: #5b2b0a;--sv-bg: #f9c27a;--sv-field: #f7b45c;--sv-edge: #dc7b05;font-family:Pixelify Sans,Trebuchet MS,sans-serif;color:var(--sv-ink);display:grid;grid-template-columns:auto 1fr;gap:14px 22px;width:min(680px,100%);margin:auto;background:var(--sv-bg);border:4px solid var(--sv-ink);border-radius:6px;padding:18px 20px;box-shadow:inset 0 0 0 4px var(--sv-edge),inset 0 0 0 6px #b14e05,0 8px #00000059;image-rendering:pixelated}.sv-panel button{font:inherit;color:inherit;cursor:pointer}.sv-left{display:flex;flex-direction:column;align-items:center;gap:10px;position:relative}.sv-dice{position:absolute;left:-6px;top:-6px;width:38px;height:38px;padding:4px;background:none;border:0}.sv-dice canvas{width:28px;height:28px;image-rendering:pixelated}.sv-dice:active{transform:rotate(-12deg) scale(.95)}.sv-previewrow{display:flex;align-items:flex-end;gap:0;margin-top:6px}.sv-preview{width:120px;height:176px;border:4px solid #8a4a14;border-radius:4px;box-shadow:inset 0 0 0 2px #c9772c,0 0 0 2px var(--sv-ink);background:linear-gradient(#7fc8f2 0 52%,#a9dcf6 52% 60%,#5fae3a 60% 63%,#4c9a2e 63%);display:flex;align-items:flex-end;justify-content:center;overflow:hidden}.sv-preview canvas{width:96px;height:160px;image-rendering:pixelated}.sv-arrow{width:36px;height:33px;border:0;padding:0;background:var(--sv-arrow) center / 100% 100% no-repeat;image-rendering:pixelated;flex-shrink:0}.sv-arrow.r{transform:scaleX(-1)}.sv-arrow:active{filter:brightness(1.15);translate:0 1px}.sv-previewrow .sv-arrow{margin-bottom:4px}.sv-body{display:flex;gap:14px}#creator .sv-body button{width:50px;height:50px;background:center / 34px auto no-repeat;border:3px solid transparent;border-radius:3px;image-rendering:pixelated}#creator .sv-body button.sel{border-color:#c0392b;background-color:#ffffff2e;box-shadow:inset 0 0 0 2px #f2d36b}.sv-pickers{display:flex;flex-direction:column;gap:6px}.sv-pick{display:grid;grid-template-columns:36px 64px 36px;align-items:center;justify-items:center}.sv-pick>div{display:flex;flex-direction:column;align-items:center;line-height:1.05}.sv-pick b{font-weight:600;font-size:19px}.sv-pick span{font-size:17px}.sv-right{display:flex;flex-direction:column;gap:8px;min-width:0}.sv-field{display:grid;grid-template-columns:112px 1fr auto;align-items:center;gap:8px;font-size:19px;line-height:1.05}.sv-field em{font-style:normal}.sv-field input{font:inherit;font-size:19px;color:var(--sv-ink);min-width:0;width:100%;padding:5px 8px;background:var(--sv-field);border:3px solid var(--sv-ink);border-radius:2px;box-shadow:inset 2px 2px #d9822c,inset -2px -2px #ffd89a;outline:none}.sv-field input:focus{box-shadow:inset 2px 2px #d9822c,inset -2px -2px #ffd89a,0 0 0 2px #fff3c4}.sv-colors{display:flex;flex-direction:column;gap:8px;margin-top:4px}.sv-color{display:grid;grid-template-columns:112px 1fr;align-items:center;gap:8px;font-size:19px}.sv-sliders{display:flex;flex-direction:column;gap:2px}.sv-slider{display:grid;grid-template-columns:1fr 30px;align-items:center;gap:6px;font-size:16px}.sv-slider output{text-align:right}.sv-slider input{-webkit-appearance:none;appearance:none;width:100%;height:14px;background:transparent;margin:0}.sv-slider input::-webkit-slider-runnable-track{height:5px;border-radius:1px;background:var(--track);box-shadow:0 0 0 1px var(--sv-ink)}.sv-slider input::-moz-range-track{height:5px;border-radius:1px;background:var(--track);box-shadow:0 0 0 1px var(--sv-ink)}.sv-slider input::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:14px;margin-top:-5px;border-radius:3px;background:#c9772c;border:2px solid var(--sv-ink);box-shadow:inset 0 2px #f2b56a}.sv-slider input::-moz-range-thumb{width:8px;height:10px;border-radius:3px;background:#c9772c;border:2px solid var(--sv-ink)}.sv-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:auto;padding-top:6px}#cr-err{flex:1;color:#b3261e;font-size:16px}.sv-cancel{background:none;border:0;text-decoration:underline;font-size:17px}#creator .sv-ok{width:64px;height:56px;font-size:26px;font-weight:600;color:#2f6d12!important;background:#f7c46e;border:4px solid #8a4a14;border-radius:6px;box-shadow:inset 0 0 0 3px #e07a12,inset 0 0 0 6px #f9d58f,0 3px 0 var(--sv-ink);text-shadow:1px 1px 0 #b8e070}#creator .sv-ok:active{translate:0 2px;box-shadow:inset 0 0 0 3px #e07a12,inset 0 0 0 6px #f9d58f,0 1px 0 var(--sv-ink)}@media(max-width:620px){.sv-panel{grid-template-columns:1fr;padding:14px 12px;gap:12px}.sv-left{display:grid;grid-template-columns:auto 1fr;align-items:center;justify-items:center;gap:8px}.sv-previewrow{grid-row:span 2}.sv-preview{width:108px;height:160px}.sv-preview canvas{width:96px;height:160px}.sv-pickers{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:6px 4px}.sv-field,.sv-color{grid-template-columns:96px 1fr auto;font-size:17px}.sv-color{grid-template-columns:96px 1fr}}.portrait{width:64px;height:64px;flex-shrink:0;image-rendering:pixelated;border:3px solid var(--wood);border-radius:6px;background:linear-gradient(#7fc8f2 0 70%,#5fae3a 70%)}.grow{flex:1;min-width:0}.me-card{display:flex;align-items:center;gap:10px}.city-tabs{position:sticky;top:0;z-index:1}.city-pane{display:flex;flex-direction:column;gap:8px}.city-card{background:#fff6e0;border:2px solid var(--wood-light);border-radius:10px;padding:8px 10px;font-size:14px;line-height:1.45}.city-card>div+div{margin-top:3px}.city-card.hl{background:#fff0c2;border-color:#d9a441}.tag{display:inline-block;font-size:11px;font-weight:700;padding:1px 6px;border-radius:999px;background:#d8e8ff;color:#2c4f80;vertical-align:middle}.news{font-size:14px}.small{font-size:12px}.cand{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;background:#fffaf0;border:1px solid #e6d3a8;font-size:14px}.bill{border:2px solid #e6d3a8;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;gap:4px;font-size:14px;background:#fffaf0}.bill.passed{border-color:#6bb36b}.bill.failed,.bill.vetoed{border-color:#d48a8a;opacity:.85}.bill.awaiting{border-color:#d9a441}.advice{font-size:13px;background:#eef3ff;border-radius:6px;padding:4px 6px}.bar{display:grid;grid-template-columns:120px 1fr 40px;align-items:center;gap:6px;font-size:13px}.bar i{display:block;height:10px;background:linear-gradient(90deg,#e8a33a,#d9622a);border-radius:4px}.bar b{text-align:right}.hist{border-collapse:collapse;font-size:13px;width:100%}.hist th,.hist td{text-align:right;padding:2px 6px;border-bottom:1px solid #e6d3a8}.hist th:first-child,.hist td:first-child{text-align:left}#modal-body select{font:inherit;font-size:16px;padding:8px;border:3px solid var(--wood-light);border-radius:10px;background:#fffaf0}#modal-body input[hidden]{display:none}.sv-pets{grid-template-columns:112px 1fr}.sv-petbtns{display:flex;align-items:center;gap:10px}#creator .sv-petbtns button{width:54px;height:54px;padding:2px;background:none;border:3px solid transparent;border-radius:4px}#creator .sv-petbtns button.sel{border-color:#c0392b;background-color:#ffffff2e;box-shadow:inset 0 0 0 2px #f2d36b}.sv-petbtns canvas{width:44px;height:44px;image-rendering:pixelated}#cr-petname{font-size:15px}@media(max-width:620px){.sv-pets{grid-template-columns:96px 1fr}}#cursortip{position:fixed;left:0;top:0;z-index:15;pointer-events:none;max-width:260px;padding:5px 9px;border-radius:8px;background:#1e1810db;color:#fff6dc;font-size:13px;line-height:1.3;box-shadow:0 2px 6px #0000004d;white-space:normal}#cursortip b{display:block;color:#ff9a8a;font-weight:700}#cursortip.bad{background:#461410e6}#btn-undo:disabled{opacity:.45}#minimap{position:fixed;left:calc(8px + var(--sal));top:var(--mm-top, 56px);width:150px;aspect-ratio:1 / 1;image-rendering:pixelated;border:3px solid var(--wood);border-radius:10px;box-shadow:0 3px #0000004d;background:#2c6029;cursor:pointer;z-index:3}body.building #minimap{display:none}@media(max-width:620px){#minimap{width:112px}}#bigmap{position:fixed;inset:0;z-index:30;background:#140e0899;display:flex;align-items:center;justify-content:center;padding:calc(10px + var(--sat)) 10px calc(10px + var(--sab))}#bigmap[hidden]{display:none}.bigmap-card{background:var(--cream);border:4px solid var(--wood);border-radius:14px;padding:10px 12px;width:min(1040px,100%);max-height:100%;display:flex;flex-direction:column;gap:8px;box-shadow:0 6px #3e2a17}#bigmap-title{font-size:20px;font-weight:700;color:var(--wood)}.bigmap-scroll{overflow:auto;border-radius:8px;border:3px solid var(--wood-light);background:#2c6029}#bigmap-canvas{display:block;width:100%;min-width:640px;image-rendering:pixelated}.bigmap-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px}.bigmap-legend i{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:5px;vertical-align:-1px;border:1px solid #3a2716}.bigmap-legend i.sq{border-radius:2px;border:2px solid;background:none}.bigmap-legend i.dash{border-style:dashed}.libcard .del{position:absolute;top:2px;right:4px;font-size:13px;color:#b33b44}.libsec{width:100%;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;opacity:.7;padding:4px 2px 0}.lotgrid{display:grid;grid-template-columns:max-content 1fr;gap:4px 12px;font-size:14px}.lotgrid span:nth-child(odd){font-weight:700}@keyframes bob{50%{transform:translateY(-2px)}}@keyframes fillup{0%{background-position:-40px 0}to{background-position:200px 0}}@keyframes lowpulse{50%{transform:scale(1.3);filter:drop-shadow(0 0 3px #f33)}}#action.busy{background:#5a8fd6;border-color:#2f5f9a;box-shadow:0 4px #2f5f9a;animation:none}#usemenu{position:fixed;z-index:20;display:flex;flex-direction:column;gap:4px;padding:6px;background:var(--cream);border:3px solid var(--wood);border-radius:12px;box-shadow:0 4px #00000040;min-width:170px}#usemenu .um-title{font-weight:700;font-size:13px;color:#6b4a2b;text-align:center;padding:2px 0 4px}#usemenu button{display:flex;align-items:center;gap:8px;padding:8px 10px;border:2px solid #d8b98c;border-radius:9px;background:#fffaf0;color:var(--ink);font-size:14px;text-align:left;cursor:pointer}#usemenu button:hover:not(:disabled){background:#ffeec8}#usemenu button:disabled{opacity:.5}#usemenu button span{font-size:18px}#usemenu button small{margin-left:auto;color:#8f5512}#npc-quest{display:grid;gap:6px;margin:6px 0}.qcard{background:#fff6dc;border:2px solid #e2c27a;border-radius:10px;padding:7px 9px;font-size:13px;color:var(--ink);display:grid;gap:4px}.qcard.offer{background:#fff0c4;border-color:#d9a441;animation:qpop .35s ease-out}.qcard p{margin:0;font-style:italic}.qcard small{color:#8f5512}.qcard .row{display:flex;gap:6px}.qcard .chip{justify-self:start}@keyframes qpop{0%{transform:scale(.94);opacity:0}}.item-row input.price,.item-row input.qty{width:58px;padding:4px;border:2px solid #d8b98c;border-radius:6px;font-size:13px}.item-row input.qty{width:44px}p.warn{background:#ffe1d6;border:2px solid #e3967a;border-radius:8px;padding:6px 8px;color:#7a2e12}#btn-editplot{white-space:nowrap}body:after{content:"";position:fixed;inset:0;background:#0b0d1a;opacity:0;pointer-events:none;transition:opacity .6s;z-index:50}body.night-skip:after{opacity:1;transition:opacity .25s}#ridebar{position:fixed;left:50%;transform:translate(-50%);bottom:calc(18px + var(--sab));z-index:12;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;max-width:calc(100vw - 32px);padding:6px 10px;background:var(--cream);border:3px solid var(--wood);border-radius:14px;box-shadow:0 4px #00000040}#ridebar .chip{padding:5px 10px;font-size:13px}#ridebar .chip.sel{background:#ffd56a;border-color:#b57a1d}#ridebar select{padding:4px;border-radius:8px;border:2px solid var(--wood-light)}.bag-bar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:8px}.bag-bar input.qty{width:52px;padding:4px;border:2px solid #d8b98c;border-radius:6px}.bag-bar select{padding:4px;border-radius:8px;border:2px solid var(--wood-light)}.util-row{display:flex;align-items:center;gap:8px;margin:6px 0}.util-row .grow{flex:1}.goal{display:grid;grid-template-columns:1fr auto;gap:2px 8px;margin:6px 0}.goal i{grid-column:1 / -1;height:6px;background:#e8dcc0;border-radius:3px;overflow:hidden}.goal i b{display:block;height:100%;background:#5fc44a}.goal.done span{text-decoration:line-through;opacity:.7}.qcard.unread{border-color:#d98a2b}.paper{background:#fbf6e9;border:2px solid #d8c9a3;border-radius:8px;padding:10px 14px;font-family:Georgia,serif}.paper h2{margin:0;text-align:center;border-bottom:2px solid #333}.paper h4{margin:10px 0 2px}.paper p{margin:0 0 6px}#modal-body textarea,#modal-body input:not([type]),#modal-body input[type=text]{width:100%;box-sizing:border-box;margin:4px 0;padding:6px;border:2px solid #d8b98c;border-radius:8px;font:inherit}#stagebar{position:fixed;left:50%;transform:translate(-50%);z-index:15;display:flex;gap:14px;padding:8px 12px;background:#281c108c;border-radius:40px;backdrop-filter:blur(4px)}#stagebar[hidden]{display:none}#stagebar button{width:60px;height:60px;border-radius:50%;border:3px solid #fff;font-size:26px;font-weight:700;color:#fff;box-shadow:0 3px #0000004d}#stagebar button[hidden]{display:none}#stage-ok{background:#3e9a3a}#stage-no{background:#b8483a}#stage-rot{background:#4a7fb5}@media(pointer:coarse){#side button{min-width:52px;min-height:52px}#usemenu button{min-height:48px;font-size:16px}.chip{min-height:40px}}.row.vol{display:grid;grid-template-columns:120px 1fr;align-items:center;gap:8px;margin:6px 0}.row.vol input[type=range]{width:100%;accent-color:#d98a2b;min-height:32px}:root{--wood-light2: #a8703f;--glass-a: .72}.glass{background:rgba(251,243,220,var(--glass-a));-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);border:2px solid rgba(107,74,43,.55);box-shadow:0 4px #0000002e}body.building #topbar,body.building #side,body.building #status,body.building #chatpanel,body.building #chatlog{display:none!important}#tray{position:static;pointer-events:none}#tray>*{pointer-events:auto}#tray svg{display:block}#buildtools{position:fixed;top:calc(12px + var(--sat));left:calc(12px + var(--sal));z-index:6;display:flex;align-items:center;gap:6px;padding:4px}#buildtools button{width:48px;height:48px;padding:9px;border:0;border-radius:10px;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer}#buildtools button svg{width:30px;height:30px;fill:#fff;filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.7))}#buildtools button:hover:not(:disabled){background:#ffffff2e}#buildtools button.sel{background:#a8703f}#buildtools button.sel svg{filter:none}#buildtools button:disabled{opacity:.45;cursor:default}#buildtools .sep{width:12px;flex:none}#toolhint{position:fixed;top:calc(72px + var(--sat));left:calc(16px + var(--sal));z-index:6;max-width:min(560px,calc(100vw - 32px));font:700 13px ui-rounded,Trebuchet MS,system-ui,sans-serif;color:#fff6dc;background:#1e1810b8;padding:5px 12px;border-radius:10px;pointer-events:none!important}#toolhint[hidden]{display:none}#viewctl{position:fixed;top:calc(12px + var(--sat));right:calc(12px + var(--sar));z-index:6;display:flex;align-items:center;gap:8px}#viewctl>button,#floorsw button{border:0;background:transparent;cursor:pointer;border-radius:10px}#viewctl>button:hover,#floorsw button:hover{background:#ffffff2e}#floorsw{width:44px;height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}#floorsw button{width:44px;height:22px;padding:0;display:grid;place-items:center}#floorsw svg{width:20px;height:16px;fill:#fff;filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.7))}#floorsw button:disabled{opacity:.3;cursor:default;background:transparent}#btn-walls{width:48px;height:48px;padding:7px}#btn-walls svg{width:34px;height:34px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.7))}#btn-editplot{height:40px;padding:0 10px;color:#fff;font:700 14px ui-rounded,Trebuchet MS,system-ui,sans-serif;text-shadow:0 1px 1.5px rgba(0,0,0,.7)}#btn-done{height:52px;padding:0 20px!important;display:flex;align-items:center;gap:6px;font:700 16px ui-rounded,Trebuchet MS,system-ui,sans-serif;color:#fff;background:#4f9e3a!important;border:3px solid #2f6b22!important;border-radius:14px!important;box-shadow:0 3px #2f6b22}#btn-done:hover{background:#5aae44!important}#btn-done svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}#buildbar{position:fixed;left:calc(12px + var(--sal));bottom:calc(244px + var(--sab));z-index:6;display:flex;gap:8px;align-items:center;pointer-events:none}#buildbar>*{pointer-events:auto}#buildsearch{width:300px;height:40px;border-radius:20px;display:flex;align-items:center;padding:0 12px 0 16px;box-sizing:border-box;background:rgba(251,243,220,var(--glass-a));backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3);border:2px solid rgba(107,74,43,.55);box-shadow:0 4px #0000002e}#buildsearch input{flex:1;min-width:0;border:0;background:transparent;outline:none;font:700 14px ui-rounded,Trebuchet MS,system-ui,sans-serif;color:var(--ink)}#buildsearch input::-webkit-search-cancel-button{display:none}#buildsearch svg{width:18px;height:18px;fill:none;stroke:#6b4a2b;stroke-width:2.4;stroke-linecap:round;flex:none}#buildcoins{height:40px;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:0 16px 0 12px;border-radius:20px;font:700 16px ui-rounded,Trebuchet MS,system-ui,sans-serif;color:var(--ink);background:rgba(251,243,220,var(--glass-a));backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3);border:2px solid rgba(107,74,43,.55);box-shadow:0 4px #0000002e}#buildcoins i{width:16px;height:16px;border-radius:50%;background:#f5c542;border:2px solid #8f5512;box-sizing:border-box}#bc-delta{font-size:14px;opacity:0;transition:opacity .25s}#bc-delta.show{opacity:1}#bc-delta.neg{color:#b33b44}#bc-delta.pos{color:#2f6b22}#catalog{position:fixed;left:calc(12px + var(--sal));right:calc(12px + var(--sar));bottom:calc(12px + var(--sab));height:224px;z-index:5;border-radius:18px;overflow:hidden;display:grid;grid-template-columns:76px 1fr 280px;background:rgba(251,243,220,var(--glass-a));backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3);border:2px solid rgba(107,74,43,.55);box-shadow:0 4px #0000002e;color:var(--ink);font-family:ui-rounded,Trebuchet MS,system-ui,sans-serif}#grouprail{display:flex;flex-direction:column;gap:4px;padding:6px;border-right:1px solid rgba(107,74,43,.25)}#grouprail button{flex:1;min-height:0;border:0;border-radius:10px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font:700 10px ui-rounded,Trebuchet MS,system-ui,sans-serif;color:#6b4a2b;cursor:pointer}#grouprail button:hover{background:#ffeec8b3}#grouprail button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}#grouprail button.sel{background:#ffe9a8;box-shadow:inset 0 0 0 2px #f5c542;color:#8f5512}#catmid{min-width:0;display:flex;flex-direction:column;padding:8px 10px;gap:6px}#tabs{height:32px;flex:none;display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none}#tabs::-webkit-scrollbar{display:none}#tabs button{flex:none;height:28px;padding:0 12px;border:0;border-radius:14px;background:#fffaf099;font:700 13px ui-rounded,Trebuchet MS,system-ui,sans-serif;color:var(--ink);cursor:pointer;white-space:nowrap}#tabs button small{font-size:11px;opacity:.65;margin-left:4px}#tabs button.sel{background:#a8703f;color:#fff}#tabs .results{font:700 13px ui-rounded,Trebuchet MS,system-ui,sans-serif;padding:0 4px;white-space:nowrap}#tabs .seg2{display:flex;gap:2px;margin-left:auto;padding:2px;border-radius:14px;background:#fffaf099;flex:none}#tabs .seg2 button{height:24px;padding:0 10px;font-size:12px;background:transparent}#tabs .seg2 button.sel{background:#a8703f;color:#fff}#items{flex:1;min-height:0;display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,80px);grid-auto-columns:96px;gap:6px;overflow-x:auto;overflow-y:hidden;align-content:start;scrollbar-width:thin}#items>button{position:relative;width:96px;height:80px;padding:4px 4px 3px;box-sizing:border-box;border:0;border-radius:10px;background:#fffaf0d1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;color:var(--ink);cursor:pointer;font-family:inherit}#items>button:hover{background:#ffeec8f2}#items>button canvas{width:40px;height:40px;image-rendering:pixelated;flex:none}#items>button .nm{width:100%;font:700 11px ui-rounded,Trebuchet MS,system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;line-height:1.3}#items>button .price{font:700 11px ui-rounded,Trebuchet MS,system-ui,sans-serif;color:#8f5512;line-height:1.2}#items>button .price.own{color:#2f6b22}#items>button .badge{position:absolute;top:4px;left:4px;background:#4f9e3a;color:#fff;font:700 10px ui-rounded,Trebuchet MS,system-ui,sans-serif;border-radius:6px;padding:1px 4px}#items>button .star{position:absolute;top:3px;right:3px;width:16px;height:16px;display:grid;place-items:center;opacity:.9}#items>button .star svg{width:12px;height:12px;fill:none;stroke:#c9b28c;stroke-width:2}#items>button .star.on svg{fill:#d98a2b;stroke:#d98a2b}#items>button.sel{background:#e3f4d6;box-shadow:inset 0 0 0 3px #4f9e3a}#items>button.poor{opacity:.5}#items>button.tool .ticon{font-size:26px;line-height:40px;height:40px}#items .empty{grid-row:1 / span 2;align-self:center;padding:0 8px;font-size:13px;color:#6b4a2b;width:420px}#items .libsec{grid-row:1 / span 2;writing-mode:vertical-rl;transform:rotate(180deg);text-align:center;font:700 10px ui-rounded,Trebuchet MS,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#8f5512;width:16px}#items>button.libcard{grid-row:span 2;width:150px;height:166px;justify-content:center;gap:4px}#items>button.libcard canvas{width:136px;height:96px;background:#5aa63b;border-radius:6px;border:2px solid #a8703f}#items>button.libcard span{font:700 11px ui-rounded,Trebuchet MS,system-ui,sans-serif}.libcard .del{position:absolute;top:2px;right:6px;font-size:13px;color:#b33b44}#detail{border-left:1px solid rgba(107,74,43,.25);padding:12px 14px;display:flex;flex-direction:column;gap:8px;min-width:0;overflow:hidden}#detail .d-head{display:flex;gap:10px;align-items:center}#detail .d-thumb{width:72px;height:72px;flex:none;border-radius:10px;background:#fffaf0d1;display:grid;place-items:center}#detail .d-thumb canvas{width:64px;height:64px;image-rendering:pixelated}#detail .d-kick{font:700 10px ui-rounded,Trebuchet MS,system-ui,sans-serif;letter-spacing:.06em;color:#8f5512}#detail .d-name{font:700 16px ui-rounded,Trebuchet MS,system-ui,sans-serif;line-height:1.15}#detail .d-cat{font-size:12px;color:#6b4a2b}#detail .d-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}#detail .d-stats div{background:#fffaf099;border-radius:8px;padding:4px 6px}#detail .d-stats small{display:block;font-size:10px;color:#6b4a2b}#detail .d-stats b{font-size:13px}#detail .d-notes{font-size:11px;color:#6b4a2b;line-height:1.3}#detail .d-foot{margin-top:auto;font:700 12px ui-rounded,Trebuchet MS,system-ui,sans-serif}#detail .d-foot.ok{color:#2f6b22}#detail .d-foot.bad{color:#b33b44}#detail .d-foot.bag{color:#6b4a2b}#detail .d-empty{margin:auto 0;font-size:13px;color:#6b4a2b;line-height:1.4}#heldghost{position:fixed;left:0;top:0;z-index:14;pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:4px}#heldghost[hidden]{display:none}#heldghost .hg-box{width:48px;height:48px;box-sizing:border-box;border:2px dashed rgba(255,255,255,.9);border-radius:6px;background:#4f9e3a40;display:grid;place-items:center}#heldghost.bad .hg-box{background:#b33b444d}#heldghost .hg-box canvas{width:44px;height:44px;opacity:.85;image-rendering:pixelated}#heldghost .hg-box canvas.flip{transform:scaleX(-1)}#heldghost .hg-lbl{font:700 12px ui-rounded,Trebuchet MS,system-ui,sans-serif;color:#fff6dc;background:#1e1810cc;border-radius:8px;padding:3px 8px;white-space:nowrap}#heldghost .hg-lbl b{color:#ff9a8a}#objpop{position:fixed;left:0;top:0;z-index:13;width:176px;border-radius:12px;background:#14161a8c;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 2px 10px #0000004d}#objpop[hidden]{display:none}#objpop:after{content:"";position:absolute;left:50%;bottom:-8px;transform:translate(-50%);border:8px solid transparent;border-bottom:0;border-top-color:#14161a8c}#objpop .op-top{height:40px;display:flex;align-items:center;justify-content:center;padding:0 8px;font:700 13px ui-rounded,Trebuchet MS,system-ui,sans-serif;color:#fff;text-shadow:0 1px 1.5px rgba(0,0,0,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#objpop .op-div{height:1px;margin:0 8px;background:#ffffff40}#objpop .op-row{height:60px;display:flex;align-items:center;justify-content:center;gap:4px}#objpop .op-row button{height:52px;border:0;border-radius:10px;background:transparent;display:grid;place-items:center;cursor:pointer}#objpop .op-row button:hover{background:#ffffff2e}#op-rotl,#op-rotr{width:44px}#op-move{width:56px}#op-rotl svg,#op-rotr svg{width:26px;height:26px}#op-move svg{width:34px;height:34px}#objpop svg{fill:none;stroke:#fff;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.7))}@media(max-width:900px){#catalog{grid-template-columns:64px 1fr;height:200px}#detail{display:none}#buildbar{bottom:calc(220px + var(--sab))}#buildsearch{width:220px}}@media(max-width:640px){#buildtools{gap:0;padding:2px;left:calc(4px + var(--sal));top:calc(6px + var(--sat))}#buildtools button{width:44px;height:44px;padding:8px}#buildtools .sep{width:2px}#viewctl{top:calc(56px + var(--sat));right:calc(8px + var(--sar))}#toolhint{top:calc(112px + var(--sat))}#btn-done{height:46px;padding:0 14px!important}#catalog{left:calc(6px + var(--sal));right:calc(6px + var(--sar));bottom:calc(6px + var(--sab));grid-template-columns:56px 1fr;height:232px}#grouprail{padding:4px}#items{grid-template-rows:repeat(2,84px);grid-auto-columns:90px}#items>button{width:90px;height:84px}#buildbar{left:calc(6px + var(--sal));right:calc(6px + var(--sar));bottom:calc(246px + var(--sab))}#buildsearch{width:auto;flex:1;min-width:0;height:44px}#grouprail button span{font-size:9px}#buildcoins{height:44px}}#objpop .op-top.bars{gap:6px;align-items:flex-end;padding-bottom:8px;box-sizing:border-box}#objpop .hbar{width:10px;padding:0;border:0;border-radius:2px;background:#ffffffe6;cursor:pointer;box-shadow:0 1px 1.5px #00000080}#objpop .hbar.on{background:#3fa9f5}#objpop .hbar:hover{outline:2px solid rgba(255,255,255,.6)}#catalog,#buildbar{transition:opacity .2s}body.touching #catalog,body.touching #buildbar{opacity:.18;pointer-events:none}#heldghost .hg-box{display:none}.wlh{position:fixed;left:0;top:0;z-index:13;width:44px;height:44px;margin:-22px 0 0 -22px;padding:6px;border:0;border-radius:50%;background:#14161a73;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);cursor:grab;touch-action:none}.wlh[hidden]{display:none}.wlh:hover{background:#3fa9f599}.wlh svg{width:32px;height:32px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.7))}body.walldrag,body.walldrag .wlh{cursor:grabbing}#cityhall{position:fixed;inset:0;z-index:30;display:grid;place-items:center;background:#1e140a59;padding:8px;user-select:text;-webkit-user-select:text}#cityhall[hidden]{display:none}#cityhall .ch-modal{width:min(900px,100%);height:min(640px,calc(100dvh - 16px));background:#fbf3dc;border:4px solid #6b4a2b;border-radius:22px;box-shadow:0 6px #4a3220,0 24px 60px #00000073;overflow:hidden;display:flex;flex-direction:column;color:#3a2a1a}#cityhall button,#cityhall input,#cityhall select,#cityhall textarea{font:inherit}#cityhall :focus-visible{outline:2px solid #f5c542;outline-offset:2px}.ch-head{display:flex;align-items:center;gap:16px;padding:18px 20px 16px 24px;border-bottom:2px solid #e6d3a8}.ch-landmark{color:#6b4a2b;display:flex}.ch-titles h2{margin:0;font-size:26px;line-height:1.1;color:#6b4a2b}.ch-sub{font-size:13px;color:#8f6a45;margin-top:2px}.ch-spacer{flex:1}.ch-pill{height:38px;border-radius:19px;background:#f3e6c4;display:flex;align-items:center;gap:6px;padding:0 14px;font-size:15px;font-variant-numeric:tabular-nums;white-space:nowrap}.ch-pill-l{font-size:12px;font-weight:700;color:#8f6a45;letter-spacing:.04em;margin-right:2px}.ch-coin{font-size:.95em;line-height:1}.ch-close{width:44px;height:44px;flex:none;border-radius:50%;background:#f3e6c4;border:3px solid #a8703f;color:#6b4a2b;display:grid;place-items:center;cursor:pointer;padding:0}.ch-close:hover{background:#ffe9a8}.ch-body{flex:1;display:flex;min-height:0}.ch-side{width:206px;flex:none;background:#f3e6c4;border-right:2px solid #e6d3a8;padding:14px 12px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}.ch-group{font-size:11px;font-weight:700;letter-spacing:.08em;color:#8f6a45;padding:12px 10px 4px}.ch-group:first-child{padding-top:2px}.ch-nav{height:40px;flex:none;border-radius:10px;padding:0 10px;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:#3a2a1a;font-size:15px;font-weight:700;cursor:pointer;text-align:left}.ch-nav span{flex:1;white-space:nowrap}.ch-nav:hover{filter:brightness(.96);background:#a8703f14}.ch-nav.sel{background:#a8703f;color:#fff}.ch-nav.sel:hover{background:#a8703f}.ch-badge{font-style:normal;background:#4f9e3a;color:#fff;font-size:11px;font-weight:700;border-radius:8px;padding:1px 6px;min-width:18px;text-align:center}.ch-content{flex:1;min-width:0;padding:22px 26px 26px;display:flex;flex-direction:column;gap:18px;overflow-y:auto}.ch-card{background:#fffaf0;border:2px solid #e6d3a8;border-radius:14px;padding:16px;font-size:15px;line-height:1.45}.ch-col{display:flex;flex-direction:column;gap:10px}.ch-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ch-grow{flex:1;min-width:0}.ch-row>.ch-grow{min-width:min(220px,100%)}.ch-big{font-size:17px;color:#3a2a1a}.ch-name{font-size:19px}.ch-soft{font-size:13px;color:#8f6a45}.ch-text{margin:0;font-size:15px;color:#6b4a2b;line-height:1.45}.ch-h{margin:0;font-size:21px;color:#6b4a2b}.ch-h4{margin:0 0 6px;font-size:19px;color:#6b4a2b}.ch-intro{margin:4px 0 0;font-size:15px;color:#6b4a2b;line-height:1.45}.ch-foot{margin:0;font-size:13px;color:#8f6a45}.ch-label{font-size:12px;font-weight:700;letter-spacing:.08em;color:#8f6a45;margin-bottom:8px}.ch-list{display:flex;flex-direction:column;gap:10px}.ch-empty{border:2px dashed #e0c99a;border-radius:14px;padding:18px;text-align:center;color:#8f6a45;font-size:15px}.ch-tiles{display:grid;gap:12px}.ch-tiles.ch-4{grid-template-columns:repeat(4,1fr)}.ch-tiles.ch-3{grid-template-columns:repeat(3,1fr)}.ch-tiles.ch-2{grid-template-columns:repeat(2,1fr)}.ch-stat{padding:12px 14px}.ch-stat-l{font-size:12px;font-weight:700;color:#8f6a45}.ch-stat-v{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.25}.ch-stat-s{font-size:12px;color:#8f6a45}.ch-col .ch-stat-v,.ch-tiles.ch-2 .ch-stat-v{font-size:19px}.ch-grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ch-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.ch-chip{display:inline-block;font-size:12px;font-weight:700;border-radius:10px;padding:2px 8px;white-space:nowrap;vertical-align:middle}.ch-chip.on{background:#e3f4d6;color:#2f6b22}.ch-chip.off{background:#efe2c2;color:#8f6a45}.ch-chip.ai{background:#dce9fb;color:#2f5e9e}.ch-chip.vote,.ch-chip.gold{background:#ffe9a8;color:#8f5512}.ch-bar{background:#efe2c2;border-radius:99px;overflow:hidden;margin:10px 0}.ch-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#e9a23b,#d9622b)}.ch-btn{height:42px;border-radius:21px;padding:0 20px;border:0;background:#a8703f;color:#fff;font-size:15px;font-weight:700;box-shadow:0 3px #7a4f2a;cursor:pointer;white-space:nowrap}.ch-btn:hover{filter:brightness(1.05)}.ch-btn:active{transform:translateY(2px);box-shadow:0 1px #7a4f2a}.ch-btn.ch-sec{background:#fffaf0;color:#6b4a2b;border:2px solid #a8703f;box-shadow:0 3px #e0c99a}.ch-btn.ch-green{background:#4f9e3a;color:#fff;border:0;box-shadow:0 3px #2f6b22}.ch-btn.ch-sm{height:34px;border-radius:17px;padding:0 14px;font-size:14px}.ch-btn:disabled{opacity:.5;cursor:default;transform:none;filter:none}.ch-link{border:0;background:none;color:#a8703f;font-weight:700;font-size:14px;cursor:pointer;padding:4px 0}.ch-link:hover{text-decoration:underline}.ch-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.ch-gold{background:#fff3cf;border-color:#f0d27a}.ch-hired{background:#e3f4d6;border-color:#9fcf86}.ch-done{background:#f3f9ec;border-color:#c9e3b6}.ch-red{color:#b33b44!important}.ch-pos{color:#2f6b22;font-weight:700}.ch-news{display:flex;flex-direction:column}.ch-news-row{display:flex;gap:10px;padding:9px 0;border-top:2px solid #efe2c2;font-size:15px;line-height:1.4}.ch-day{width:64px;flex:none;color:#8f6a45;font-size:13px;font-weight:700;padding-top:1px}.ch-cands{display:flex;flex-direction:column;gap:8px}.ch-cand{display:flex;align-items:center;gap:10px;padding-top:8px;border-top:2px solid #efe2c2}.ch-advice{font-size:14px;color:#6b4a2b}.ch-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#8f6a45}#cityhall input:not([type=range]),#cityhall select,#cityhall textarea{background:#fffdf6;border:2px solid #e0c99a;border-radius:12px;min-height:46px;padding:8px 12px;font-size:16px;font-weight:400;width:100%;color:#3a2a1a}#cityhall textarea{resize:vertical;line-height:1.4}#cityhall input.ch-main{border-color:#a8703f}#cityhall .ch-row input[type=number]{width:120px;flex:none}#cityhall input[type=range]{accent-color:#a8703f;height:28px}.ch-util{display:flex;align-items:center;gap:14px}.ch-uicon{width:48px;height:48px;flex:none;border-radius:12px;display:grid;place-items:center;font-size:24px;background:#e7e1d4;filter:grayscale(1);opacity:.75}.ch-uicon.on{background:#ffe9a8;filter:none;opacity:1}.ch-kv{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ch-kv div{display:flex;flex-direction:column}.ch-kv span{font-size:12px;font-weight:700;color:#8f6a45}.ch-kv b{font-size:17px;font-variant-numeric:tabular-nums}.ch-today{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;background:#f3e6c4;border-radius:14px;padding:12px 16px;font-size:15px}.ch-hbar{display:grid;grid-template-columns:100px 1fr 32px;align-items:center;gap:8px;font-size:13px}.ch-hbar span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ch-hbar b{text-align:right;font-variant-numeric:tabular-nums}.ch-hbar .ch-bar{margin:0}.ch-table{width:100%;border-collapse:collapse;margin-top:8px;table-layout:fixed;font-size:14px;font-variant-numeric:tabular-nums}.ch-table th{font-size:12px;color:#8f6a45;text-align:right;padding:6px 8px;border-bottom:2px solid #e6d3a8}.ch-table td{text-align:right;padding:6px 8px}.ch-table th:first-child,.ch-table td:first-child{text-align:left}.ch-table tbody tr:nth-child(odd){background:#f7ecd2}@media(max-width:760px){#cityhall{padding:0}#cityhall .ch-modal{width:100%;height:100dvh;border-radius:0;border-width:0}.ch-head{padding:calc(10px + var(--sat)) 12px 10px;gap:10px;flex-wrap:wrap}.ch-landmark{display:none}.ch-titles h2{font-size:21px}.ch-spacer{display:none}.ch-titles{flex:1 1 calc(100% - 60px);min-width:0}.ch-close{order:1;width:40px;height:40px}.ch-pill{order:2;flex:1 1 40%;justify-content:center;height:32px;padding:0 10px;font-size:14px}.ch-body{flex-direction:column}.ch-side{width:auto;flex-direction:row;overflow-x:auto;overflow-y:hidden;padding:8px 10px;border-right:0;border-bottom:2px solid #e6d3a8;gap:4px}.ch-group{display:none}.ch-nav{height:36px;font-size:14px}.ch-content{padding:14px 14px calc(18px + var(--sab));gap:14px}.ch-tiles.ch-4{grid-template-columns:repeat(2,1fr)}.ch-grid2,.ch-grid3{grid-template-columns:1fr}.ch-util{flex-wrap:wrap}}#npcpanel{position:fixed;left:50%;transform:translate(-50%);bottom:calc(24px + var(--sab));width:min(640px,calc(100vw - 16px));max-height:calc(100dvh - 32px);z-index:20;display:flex;flex-direction:column;background:#fbf3dc;border:4px solid #6b4a2b;border-radius:22px;box-shadow:0 6px #4a3220,0 24px 60px #00000073;overflow:hidden;color:#3a2a1a}#npcpanel[hidden]{display:none}#npcpanel button,#npcpanel input{font:inherit}#npcpanel :focus-visible{outline:2px solid #f5c542;outline-offset:2px}#npcpanel>*+*{border-top:2px solid #e6d3a8}.nc-head{display:flex;align-items:center;gap:14px;padding:14px 14px 14px 16px}.nc-portrait{width:68px;height:68px;flex:none;border-radius:14px;border:3px solid #6b4a2b;box-shadow:0 2px #4a3220;image-rendering:pixelated;background:linear-gradient(#7fc8f2 0 70%,#5fae3a 70%)}.nc-who{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.nc-nameline{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}#npc-name{font-size:24px;font-weight:700;color:#6b4a2b;line-height:1.1}#npc-role{font-size:13px;color:#8f6a45}.nc-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;color:#6b4a2b}.nc-status .dot{width:4px;height:4px;border-radius:50%;background:#c9a978;flex:none}.nc-hearts{display:inline-flex;gap:2px}.nc-heart{position:relative;width:18px;height:18px}.nc-heart svg{position:absolute;inset:0;width:18px;height:18px}.nc-heart .fill{position:absolute;inset:0;overflow:hidden;transition:width .5s}.nc-level{font-weight:700}.nc-mood{display:inline-flex;align-items:center;gap:6px}.nc-mood i{width:10px;height:10px;border-radius:50%;display:inline-block}.nc-where{font-size:13px;color:#8f6a45}.nc-round{width:40px;height:40px;flex:none;border-radius:50%;display:grid;place-items:center;padding:0;cursor:pointer;background:#f3e6c4;color:#6b4a2b;border:2px solid #a8703f}.nc-round[aria-pressed=true]{background:#a8703f;color:#fff}.nc-x{border-width:3px}.nc-x:hover{background:#ffe9a8}.nc-about{background:#f3e6c4;padding:12px 16px;display:grid;grid-template-columns:max-content 1fr;gap:8px 14px;align-items:center}.nc-about[hidden]{display:none}.nc-about b{font-size:12px;letter-spacing:.06em;color:#8f6a45}.nc-chips{display:flex;flex-wrap:wrap;gap:6px;font-size:13px;color:#8f6a45}.nc-chip{font-size:13px;font-weight:700;border-radius:10px;padding:3px 10px;background:#e3f4d6;color:#2f6b22}.nc-chip.love{background:#fde3e0;color:#a82a22}#npc-quest{padding:10px 16px;margin:0}#npc-quest[hidden]{display:none}.nc-log{height:280px;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}.nc-log .line{max-width:80%;padding:10px 14px;font-size:16px;line-height:1.4;overflow-wrap:anywhere;user-select:text;-webkit-user-select:text}.nc-log .them{align-self:flex-start;background:#fffdf6;border:2px solid #e6d3a8;border-radius:4px 16px 16px}.nc-log .me{align-self:flex-end;background:#dff0cf;border:2px solid #b5d99c;border-radius:16px 4px 16px 16px}.nc-log .note{align-self:center;background:#fde3e0;color:#a82a22;font-size:13px;font-weight:700;border-radius:12px;padding:5px 12px;text-align:center;max-width:90%}.nc-log .typing{align-self:flex-start;background:#fffdf6;border:2px solid #e6d3a8;border-radius:4px 16px 16px;padding:14px 16px;display:flex;gap:5px}.nc-log .typing i{width:7px;height:7px;border-radius:50%;background:#a8703f;animation:nc-bounce 1.1s infinite ease-in-out}.nc-log .typing i:nth-child(2){animation-delay:.15s}.nc-log .typing i:nth-child(3){animation-delay:.3s}@keyframes nc-bounce{0%,60%,to{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}.nc-tray{background:#f3e6c4;padding:12px 16px;max-height:30dvh;overflow-y:auto}.nc-tray[hidden]{display:none}.nc-trayhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.nc-trayhead b{font-size:12px;letter-spacing:.06em;color:#8f6a45}.nc-trayhead button{border:0;background:none;color:#a8703f;font-size:13px;font-weight:700;cursor:pointer;padding:4px}.nc-gifts{display:flex;flex-wrap:wrap;gap:8px}.nc-gift{height:40px;border-radius:12px;background:#fffaf0;border:2px solid #e6d3a8;padding:0 12px;display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:#3a2a1a;cursor:pointer}.nc-gift:hover{background:#ffe9a8}.nc-gift small{font-size:12px;color:#8f6a45;font-weight:400}.nc-gift.loved{border-color:#e9a0a0}.nc-gift em{font-style:normal;font-size:11px;background:#fde3e0;color:#a82a22;border-radius:8px;padding:1px 6px}.nc-tray .empty{margin:0;color:#8f6a45;font-size:14px}.nc-tray h4{margin:4px 0;font-size:12px;letter-spacing:.06em;color:#8f6a45;text-transform:uppercase}.nc-tray .list{display:flex;flex-direction:column;gap:6px}.nc-input{padding:12px 16px 16px;display:flex;flex-direction:column;gap:10px}#npc-form{display:flex;gap:8px}#npc-input{flex:1;min-width:0;height:48px;border-radius:14px;background:#fffdf6;border:2px solid #e0c99a;padding:0 14px;font-size:16px;color:#3a2a1a;outline:none}#npc-input::placeholder{color:#8f7a5c}#npc-input:focus{border-color:#a8703f;box-shadow:0 0 0 3px #f3e0b0;outline:none}#npc-say{height:48px;border-radius:14px;border:0;background:#4f9e3a;color:#fff;font-size:17px;font-weight:700;padding:0 22px;box-shadow:0 3px #2f6b22;cursor:pointer}#npc-say.off{opacity:.55}.nc-actions{display:flex;flex-wrap:wrap;gap:8px}.nc-pill{height:38px;border-radius:19px;background:#f3e6c4;border:2px solid #a8703f;color:#3a2a1a;font-size:14px;font-weight:700;padding:0 14px;cursor:pointer}.nc-pill[hidden]{display:none}.nc-pill.sel{background:#a8703f;color:#fff}@media(max-width:640px){#npcpanel{bottom:calc(8px + var(--sab));border-radius:18px}.nc-head{gap:10px;padding:10px}.nc-portrait{width:52px;height:52px}#npc-name{font-size:20px}.nc-status{gap:4px 10px}.nc-status .dot{display:none}.nc-log{height:auto;min-height:120px;max-height:32dvh;flex:1 1 auto;padding:12px}.nc-input{padding:10px 12px 12px}}#modal-body .sounds{display:flex;flex-direction:column;gap:12px;padding-top:6px}.vol2{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center}.vol2 span{display:flex;flex-direction:column}.vol2 small{font-size:12px;color:#8f6a45}.vol2 output{font-size:13px;font-weight:700;color:var(--wood);font-variant-numeric:tabular-nums}.vol2 input[type=range]{grid-column:1 / -1;width:100%;accent-color:var(--wood-light)}#status{position:fixed;left:calc(8px + var(--sal));top:calc(var(--mm-top, 56px) + 160px);width:228px;z-index:2;display:flex;flex-direction:column;gap:12px;pointer-events:none}#status[hidden]{display:none}#status>*{pointer-events:auto}.st-card{background:#fbf3dc;border:4px solid #6b4a2b;border-radius:18px;box-shadow:0 4px #4a3220,0 10px 24px #0000004d;overflow:hidden;color:#3a2a1a}.st-head{display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;padding:7px 12px 6px}#plumbob{flex:none;filter:drop-shadow(0 2px 0 rgba(0,0,0,.2));animation:bob 2.4s ease-in-out infinite}#plumbob .pb{transition:fill .4s,stroke .4s}#needs-mood{font-size:16px}#needs-why{margin-left:auto;font-size:12px;color:#8f6a45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.st-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px;padding:0 8px 8px}.st-need{all:unset;box-sizing:border-box;height:28px;border-radius:8px;display:grid;grid-template-columns:20px 1fr 14px;align-items:center;gap:3px;padding:0 3px;cursor:pointer}.st-need:hover,.st-need.open{background:#f3e6c4}.st-need:focus-visible{outline:2px solid #f5c542;outline-offset:1px}.st-need.low{background:#fbe2dc}.st-need>span{font-size:15px;text-align:center}.st-need.low>span{animation:lowpulse 1s infinite}.st-need i{display:block;height:10px;border-radius:5px;background:#e2d6bb;overflow:hidden}.st-need i b{display:block;height:100%;border-radius:5px;box-shadow:inset 0 -2px #0000001f;transition:width .6s linear,background .6s}.st-need.up i b{background-image:linear-gradient(90deg,#fff0 0,#ffffff8c,#fff0)!important;background-size:40px 100%;animation:fillup 1s linear infinite}.st-need em{font-style:normal;font-size:8px;letter-spacing:-2px;color:#b08a5c;text-align:center}.st-need em.fast{color:#c2502b}.st-need em.rise{color:#3f8a2a;letter-spacing:0}.st-tip{background:#f3e6c4;border-top:2px solid #e6d3a8;padding:8px 10px;display:grid;grid-template-columns:auto 1fr;gap:2px 8px;align-items:center}.st-tip[hidden]{display:none}.st-tip>span{font-size:18px;grid-row:span 2}.st-tip b{font-size:13px}.st-tip p{margin:0;font-size:12px;color:#6b4a2b;line-height:1.3}.st-tip button{grid-column:1 / -1;justify-self:end;height:28px;border-radius:14px;border:0;background:#a8703f;color:#fff;font:inherit;font-size:12px;font-weight:700;padding:0 12px;box-shadow:0 2px #7a4f2a;cursor:pointer;margin-top:4px}.st-tip button:disabled{opacity:.55;cursor:default}.st-queue{display:flex;flex-direction:column;gap:6px;padding-left:4px;align-items:flex-start}.st-queue:empty{display:none}.st-task{position:relative;width:42px;height:42px;margin-left:8px;border-radius:50%;background:#fbf3dc;border:3px solid #6b4a2b;box-shadow:0 3px #4a3220,0 6px 14px #0000004d;display:grid;place-items:center;font-size:18px;opacity:.9;box-sizing:border-box}.st-task.cur{width:58px;height:58px;margin-left:0;font-size:24px;opacity:1}.st-task svg{position:absolute;left:0;top:0;width:100%;height:100%;transform:rotate(-90deg)}.st-task svg circle{fill:none;stroke-width:5;stroke-linecap:round}.st-task .emo{position:relative;line-height:1}.st-task .x{position:absolute;right:-7px;top:-7px;width:22px;height:22px;border-radius:50%;background:#b33b44;border:2px solid #fbf3dc;box-shadow:0 2px #6e1f25;color:#fff;display:none;place-items:center;padding:0;cursor:pointer;font:inherit;font-size:11px;font-weight:700;line-height:1}.st-task:hover .x,.st-task:focus-within .x{display:grid}@media(pointer:coarse){.st-task .x{display:grid}}.st-label{position:absolute;left:72px;top:10px;background:#1e1810b8;border-radius:10px;padding:4px 10px;max-width:200px;width:max-content;pointer-events:none}.st-label b{display:block;font-size:13px;color:#fff6dc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.st-label small{display:block;font-size:11px;color:#fff6dc;opacity:.8;white-space:nowrap}@media(max-width:620px){#status{width:150px;top:calc(var(--mm-top, 56px) + 122px);gap:8px}.st-head{padding:5px 8px 4px;gap:6px}#needs-why{display:none}.st-grid{gap:2px 4px;padding:0 5px 6px}.st-need{grid-template-columns:17px 1fr 10px;height:24px}.st-task.cur{width:50px;height:50px;font-size:21px}.st-task{width:36px;height:36px;font-size:15px}.st-label{left:60px;top:6px;max-width:150px}}#bagwin{position:fixed;inset:0;z-index:30;background:#1e140a59;display:flex;justify-content:center;align-items:flex-start;padding:56px 12px 12px;overflow-y:auto;--slot: 60px}#bagwin[hidden]{display:none}#bagwin button{font:inherit}#bagwin :focus-visible{outline:2px solid #f5c542;outline-offset:2px}.bw-wrap{position:relative;width:min(932px,100%);padding-top:46px}.bw-tabs{position:absolute;top:0;left:28px;display:flex;gap:6px;align-items:flex-end;height:50px;z-index:1}.bw-tab{position:relative;height:44px;margin-top:6px;margin-bottom:-4px;padding:0 18px;display:flex;align-items:center;gap:6px;border:4px solid #6b4a2b;border-bottom:0;border-radius:14px 14px 0 0;background:#e9d6a8;color:#3a2a1a;font-size:16px;font-weight:700;cursor:pointer}.bw-tab span{font-size:18px}.bw-tab.on{height:50px;margin-top:0;background:#fbf3dc;z-index:2}.bw-tab i{position:absolute;top:-9px;right:-9px;width:22px;height:22px;border-radius:50%;background:#d9463a;border:2px solid #fbf3dc;color:#fff;font-style:normal;font-size:12px;display:grid;place-items:center;box-sizing:border-box}.bw-panel{position:relative;background:#fbf3dc;border:4px solid #6b4a2b;border-radius:20px;box-shadow:0 6px #4a3220,0 24px 60px #00000073;padding:18px 20px 20px;color:#3a2a1a}.bw-close{position:absolute;top:-20px;right:-20px;width:44px;height:44px;border-radius:50%;background:#f3e6c4;border:3px solid #6b4a2b;box-shadow:0 3px #4a3220;color:#6b4a2b;font-size:18px;font-weight:700;cursor:pointer;z-index:3}.bw-close:hover{background:#ffe9a8}.bw-body.bw-bag{display:flex;gap:18px;align-items:stretch}.bw-left{width:calc(var(--slot) * 9 + 6px * 8 + 20px);flex:none;display:flex;flex-direction:column;gap:8px}.bw-toolbar,.bw-hotlabel{display:flex;align-items:center;gap:8px}.bw-hotlabel small{font-size:12px;color:#8f6a45}.bw-label{font-size:13px;font-weight:700;letter-spacing:.06em;color:#8f6a45}.bw-spacer{flex:1}.bw-pill{height:30px;border-radius:15px;padding:0 12px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:5px;box-sizing:border-box}.bw-trash{border:2px dashed #c9a46a;color:#a8703f}.bw-trash.armed{background:#fde3e0;border-color:#d9463a}.bw-sort{background:#f3e6c4;border:2px solid #c9a46a;color:#3a2a1a;cursor:pointer}.bw-sort:hover{background:#ffe9a8}.bw-tray{display:grid;grid-template-columns:repeat(9,var(--slot));gap:6px;padding:10px;border-radius:14px;background:#e9d6a8;box-shadow:inset 0 3px #6b4a2b2e}.bw-hot{background:#d9bf86;box-shadow:inset 0 3px #6b4a2b38}.bw-slot{position:relative;width:var(--slot);height:var(--slot);border-radius:10px;background:#f3e0b5;box-shadow:inset 0 0 0 2px #c9a46a,inset 0 -3px #6b4a2b26;display:grid;place-items:center;cursor:pointer;user-select:none;touch-action:none}.bw-slot.sel{background:#ffe9a8;box-shadow:inset 0 0 0 3px #e0a82e,0 0 0 3px #ffd36a}.bw-slot .ic{font-size:calc(var(--slot) * .53);line-height:1;filter:drop-shadow(0 2px 0 rgba(0,0,0,.18));display:grid;place-items:center;pointer-events:none}.bw-slot .ic canvas{width:calc(var(--slot) * .6);height:calc(var(--slot) * .6);image-rendering:pixelated}.bw-slot b{position:absolute;right:5px;bottom:2px;font-size:15px;font-weight:900;color:#fff;text-shadow:0 0 2px #3a2a1a,0 2px 0 #3a2a1a;pointer-events:none}.bw-slot u{position:absolute;left:5px;bottom:3px;font-size:12px;color:#f5c542;text-decoration:none;text-shadow:0 1px 0 #8f5512;pointer-events:none}.bw-slot em{position:absolute;left:5px;top:3px;font-size:11px;font-weight:700;font-style:normal;color:#8f6a45;pointer-events:none}.bw-ghost{position:fixed;z-index:40;width:60px;height:60px;border-radius:10px;background:#ffe9a8;box-shadow:0 6px 16px #00000059;display:grid;place-items:center;pointer-events:none;opacity:.9;font-size:32px}.bw-ghost em,.bw-ghost u{display:none}.bw-ghost b{position:absolute;right:5px;bottom:2px;font-size:15px;color:#fff;text-shadow:0 0 2px #3a2a1a,0 2px 0 #3a2a1a}.bw-ghost canvas{width:36px;height:36px;image-rendering:pixelated}.bw-details{width:250px;flex:none;background:#fffaf0;border:2px solid #e6d3a8;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;box-sizing:border-box}.bw-empty{margin:auto;text-align:center;color:#8f6a45;font-size:14px}.bw-dhead{display:flex;gap:12px;align-items:center}.bw-dicon{width:68px;height:68px;flex:none;border-radius:12px;background:#f3e0b5;box-shadow:inset 0 0 0 2px #c9a46a;display:grid;place-items:center;font-size:40px}.bw-dicon canvas{width:44px;height:44px;image-rendering:pixelated}.bw-dname{display:block;font-size:20px;line-height:1.15;margin-bottom:4px}.bw-chip{display:inline-block;font-size:12px;font-weight:700;border-radius:8px;padding:2px 8px;background:#efe2c2;color:#8f6a45}.bw-chip.crop{background:#e3f4d6;color:#2f6b22}.bw-chip.gift{background:#fde3e0;color:#a82a22}.bw-chip.food{background:#ffe9a8;color:#8f5512}.bw-chip.drink{background:#dce9fb;color:#2f5e9e}.bw-desc{margin:0;font-size:14px;color:#6b4a2b;line-height:1.4}.bw-facts{border-top:2px solid #efe2c2;border-bottom:2px solid #efe2c2;padding:8px 0;display:flex;flex-direction:column;gap:6px;font-size:14px}.bw-facts>div{display:flex;justify-content:space-between;gap:8px}.bw-facts span{color:#8f6a45}.bw-good{color:#2f6b22;font-weight:700}.bw-q{flex-direction:column}.bw-amount{display:flex;align-items:center;gap:8px;font-size:14px}.bw-amount span{flex:1;color:#8f6a45;font-weight:700}.bw-amount button{width:32px;height:32px;border-radius:50%;background:#f3e6c4;border:2px solid #c9a46a;font-weight:700;font-size:16px;cursor:pointer;padding:0;color:#3a2a1a}.bw-amount b{font-size:18px;min-width:22px;text-align:center}.bw-amount .bw-all{width:auto;border-radius:16px;padding:0 10px;font-size:13px}.bw-actions{margin-top:auto;display:flex;flex-direction:column;gap:8px}.bw-actions button{border:0;border-radius:22px;font-weight:700;cursor:pointer}.bw-eat{height:44px;background:#4f9e3a;color:#fff;font-size:16px;box-shadow:0 3px #2f6b22}.bw-give{height:44px;background:#a8703f;color:#fff;font-size:15px;box-shadow:0 3px #7a4f2a}.bw-give.off{background:#efe2c2;color:#a89270;cursor:not-allowed;box-shadow:none}.bw-drop{height:40px;background:#fffaf0;border:2px solid #a8703f!important;color:#6b4a2b;font-size:15px}.bw-h{margin:0 0 12px;font-size:22px;color:#6b4a2b}.bw-list{display:flex;flex-direction:column;gap:10px}.bw-emptybox{border:3px dashed #e0c99a;border-radius:16px;padding:28px;text-align:center;color:#8f6a45;font-size:15px}.bw-subtabs{display:flex;gap:6px;margin-bottom:14px}.bw-subtabs button{height:36px;border-radius:18px;padding:0 14px;background:#f3e6c4;border:2px solid #c9a46a;font-weight:700;color:#3a2a1a;cursor:pointer}.bw-subtabs button.on{background:#a8703f;border-color:#a8703f;color:#fff}.bw-pane{display:flex;flex-direction:column;gap:8px}.bw-goals{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:6px 0 12px}.bw-goal{background:#fffaf0;border:2px solid #e6d3a8;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:6px}.bw-goal.done{background:#f3f9ec;border-color:#c9e3b6}.bw-goal-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.bw-goal-top b{font-size:15px}.bw-goal small{font-size:12px;color:#8f6a45;align-self:flex-end}.bw-bar{height:10px;border-radius:5px;background:#e2d6bb;overflow:hidden}.bw-bar i{display:block;height:100%;background:#6cbf4a;border-radius:5px}.bw-muted{color:#8f6a45;font-size:13px;margin:0}@media(max-width:960px){.bw-body.bw-bag{flex-direction:column}.bw-details{width:auto}}@media(max-width:700px){#bagwin{padding:46px 6px 6px;--slot: min(60px, calc((100vw - 84px) / 9))}.bw-panel{padding:14px 10px 12px;border-radius:16px}.bw-tray{gap:4px;padding:6px;grid-template-columns:repeat(9,var(--slot))}.bw-left{width:auto}.bw-tab{padding:0 10px;font-size:14px}.bw-tabs{left:12px}.bw-close{top:-16px;right:-6px;width:40px;height:40px}.bw-slot b{font-size:11px;right:2px}.bw-slot em{font-size:9px;left:3px;top:1px}.bw-hotlabel small{display:none}.bw-goals{grid-template-columns:1fr}}#hotbar{position:fixed;left:50%;transform:translate(-50%);bottom:calc(16px + var(--sab));z-index:3;display:flex;gap:4px;padding:6px;background:#4a3220e0;border:3px solid #3a2a1a;border-radius:14px;box-shadow:0 4px #2a1d12;--slot: 52px}#hotbar .bw-slot{background:#e9d6a8;box-shadow:inset 0 0 0 2px #b08a5c}#hotbar .bw-slot.held{background:#fbf3dc;box-shadow:inset 0 0 0 3px #f5c542,0 0 0 2px #f5c542}#hotbar .bw-slot em{color:#c9a978;font-size:10px}#hotbar .bw-slot b{font-size:13px}#hotbar .bw-slot .ic{font-size:28px}#hotbar .bw-slot .ic canvas{width:30px;height:30px}body.building #hotbar{display:none}@media(max-width:620px){#hotbar{--slot: min(36px, calc((100vw - 60px) / 9));gap:2px;padding:4px}#hotbar .bw-slot .ic{font-size:20px}#hotbar .bw-slot .ic canvas{width:22px;height:22px}#hotbar .bw-slot b{font-size:10px}}.st-moodlets{display:flex;flex-wrap:wrap;gap:3px;padding:0 10px 6px}.st-moodlets:empty{display:none}.st-ml{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;font-size:14px;cursor:default}.st-ml.good{background:#e3f4d6;box-shadow:inset 0 0 0 2px #9fcf86}.st-ml.bad{background:#fbe2dc;box-shadow:inset 0 0 0 2px #e9a0a0}.st-thought{border-top:2px solid #e6d3a8;padding:7px 10px 8px;display:flex;flex-direction:column;gap:6px;background:#fffaf0}.st-thought[hidden]{display:none}.st-thought p{margin:0;font-size:12px;line-height:1.35;color:#6b4a2b;font-style:italic}.st-whim{display:flex;align-items:center;gap:4px}.st-whim span{flex:1;font-size:12px;font-weight:700;color:#3a2a1a;line-height:1.25}.st-whim small{color:#8f5512;font-weight:700;white-space:nowrap}.st-whim button{height:24px;border-radius:12px;border:0;background:#a8703f;color:#fff;font:inherit;font-size:11px;font-weight:700;padding:0 9px;cursor:pointer;box-shadow:0 2px #7a4f2a}.st-whim button[data-w=x]{background:#f3e6c4;color:#6b4a2b;box-shadow:none;padding:0 7px}@media(max-width:620px){.st-thought p{display:none}.st-whim span{font-size:11px}}.st-task.auto svg circle.prog{stroke:#4f8fd6}.st-task.auto{border-color:#2f5e9e}#grouppanel{position:fixed;left:50%;transform:translate(-50%);bottom:calc(24px + var(--sab));width:min(640px,calc(100vw - 16px));max-height:calc(100dvh - 32px);z-index:20;display:flex;flex-direction:column;background:#fbf3dc;border:4px solid #6b4a2b;border-radius:22px;box-shadow:0 6px #4a3220,0 24px 60px #00000073;overflow:hidden;color:#3a2a1a}#grouppanel[hidden]{display:none}#grouppanel button,#grouppanel input{font:inherit}#grouppanel>*+*{border-top:2px solid #e6d3a8}.gp-faces{display:flex;flex:none}.gp-faces canvas{width:48px;height:48px;border-radius:50%;background:#f3e0b5;box-shadow:0 0 0 3px #fbf3dc,inset 0 0 0 2px #c9a46a;image-rendering:pixelated}.gp-faces canvas+canvas{margin-left:-14px}#gp-title{font-size:20px;font-weight:700}#gp-where{margin-left:8px;font-size:13px;color:#8f6a45;font-weight:700}#gp-log .line b{display:block;font-size:12px;letter-spacing:.03em;margin-bottom:2px}#gp-log .line.me b{text-align:right;color:#2f6b22}#gp-log .line.other{align-self:flex-start;background:#eef3fb;border:2px solid #c9d8ee;border-radius:4px 16px 16px}#gp-form{display:flex;gap:8px}#gp-input{flex:1;min-width:0;height:46px;padding:0 16px;border:2px solid #c9a46a;border-radius:23px;background:#fffdf6;color:#3a2a1a;font-size:16px}#gp-say{height:46px;padding:0 20px;border:0;border-radius:23px;background:#4f9e3a;color:#fff;font-weight:700;box-shadow:0 3px #2f6b22;cursor:pointer}#convochip{position:fixed;left:50%;transform:translate(-50%);bottom:calc(160px + var(--sab));z-index:16;display:flex;align-items:center;gap:8px;padding:8px 16px 8px 8px;border:3px solid #6b4a2b;border-radius:24px;background:#fbf3dc;color:#3a2a1a;font:inherit;font-size:15px;font-weight:700;box-shadow:0 4px #4a3220;cursor:pointer;white-space:nowrap;max-width:calc(100vw - 24px)}#convochip[hidden]{display:none}#convochip:hover{background:#ffe9a8}#convochip .gp-faces canvas{width:30px;height:30px}#convochip .gp-faces canvas+canvas{margin-left:-10px}#convochip span{overflow:hidden;text-overflow:ellipsis}#offercard{position:fixed;right:16px;bottom:calc(110px + var(--sab));z-index:18;width:min(340px,calc(100vw - 32px));display:flex;gap:12px;padding:14px;background:#fbf3dc;border:4px solid #6b4a2b;border-radius:18px;box-shadow:0 5px #4a3220,0 16px 40px #00000059;color:#3a2a1a;animation:of-in .25s ease-out}#offercard[hidden]{display:none}@keyframes of-in{0%{transform:translateY(16px)}}#of-portrait{width:56px;height:56px;flex:none;border-radius:50%;background:#f3e0b5;box-shadow:inset 0 0 0 2px #c9a46a;image-rendering:pixelated}.of-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}#of-name{font-size:16px}#of-text{margin:0;font-size:14px;line-height:1.35;color:#6b4a2b}#of-item{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px}#of-item:empty{display:none}#of-item canvas{width:28px;height:28px}.of-row{display:flex;gap:8px;margin-top:2px}.of-row button{flex:1;height:38px;border-radius:19px;font:inherit;font-weight:700;font-size:14px;cursor:pointer}#of-yes{border:0;background:#4f9e3a;color:#fff;box-shadow:0 3px #2f6b22}#of-yes:disabled{background:#efe2c2;color:#a89270;box-shadow:none;cursor:not-allowed}#of-no{border:2px solid #a8703f;background:#fffaf0;color:#6b4a2b}.nc-venture{display:flex;align-items:center;gap:8px;padding:8px 10px;margin-top:6px;background:#fffaf0;border:2px solid #e6d3a8;border-radius:12px;font-size:14px}.nc-venture small{color:#8f6a45}@media(max-width:620px){#grouppanel{bottom:calc(8px + var(--sab));border-radius:18px}#gp-log{height:auto;min-height:120px;max-height:32dvh}.gp-faces canvas{width:38px;height:38px}#offercard{right:8px;left:8px;width:auto;bottom:calc(150px + var(--sab))}}.of-ic{font-size:24px;line-height:1}i.coin{display:inline-block;width:1.05em;height:1.05em;vertical-align:-.17em;margin-right:.18em;background:var(--coin) center/contain no-repeat;image-rendering:pixelated;font-style:normal;flex:none}.sw-dim{position:fixed;inset:0;z-index:30;background:#1e140a59}.sw-dim[hidden]{display:none}.sw{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:31;width:min(900px,calc(100vw - 16px));max-height:calc(100dvh - 24px);display:flex;flex-direction:column;background:#fbf3dc;border:4px solid #6b4a2b;border-radius:22px;box-shadow:0 6px #4a3220,0 24px 60px #00000073;color:#3a2a1a;overflow:hidden}.sw[hidden]{display:none}.sw button,.sw input{font:inherit}.sw :focus-visible{outline:2px solid #f5c542;outline-offset:2px}.sw-head{display:flex;align-items:center;gap:14px;padding:16px 18px;background:#f3e6c4;border-bottom:2px solid #e6d3a8}.sw-portrait{width:72px;height:72px;flex:none;border-radius:14px;border:3px solid #6b4a2b;background:#f3e0b5;image-rendering:pixelated}.sw-who{flex:1;min-width:0}.sw-title{font-size:24px;font-weight:700;color:#6b4a2b;line-height:1.1}.sw-sub{font-size:13px;color:#8f6a45;margin-top:2px}.sw-bubble{display:inline-block;margin-top:8px;padding:6px 12px;background:#fffdf6;border:2px solid #e6d3a8;border-radius:4px 14px 14px;font-size:14px;max-width:100%}.sw-coins{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:20px;background:#fffaf0;border:2px solid #e6d3a8;font-size:16px;font-weight:700;white-space:nowrap;flex:none}.sw-coins small{font-size:11px;letter-spacing:.06em;color:#8f6a45}.sw-coins i.coin{width:20px;height:20px}.sw-round{width:40px;height:40px;flex:none;border-radius:50%;border:3px solid #6b4a2b;background:#fbf3dc;color:#6b4a2b;display:grid;place-items:center;cursor:pointer;box-shadow:0 3px #4a3220}.sw-round:hover{background:#ffe9a8}.sw-tabs{display:flex;gap:6px;padding:10px 18px 0}.sw-tabs button{height:36px;padding:0 16px;border-radius:18px;border:2px solid #c9a46a;background:#f3e6c4;color:#6b4a2b;font-weight:700;cursor:pointer}.sw-tabs button.on{background:#6b4a2b;border-color:#6b4a2b;color:#fbf3dc}.sw-body{display:flex;gap:18px;padding:18px;min-height:0;overflow:auto}.sw-left{flex:1;min-width:0}.sw-label,.sh-label{font-size:13px;font-weight:700;letter-spacing:.06em;color:#8f6a45;margin-bottom:10px}.sw-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sw-card{position:relative;display:flex;align-items:center;gap:12px;padding:10px;border-radius:14px;background:#f7ecd2;box-shadow:inset 0 0 0 2px #e6d3a8;border:0;text-align:left;cursor:pointer;color:inherit}.sw-card:hover{background:#fbf0d6}.sw-card.sel{background:#ffe9a8;box-shadow:inset 0 0 0 3px #e0a82e}.sw-card.poor{opacity:.5}.sw-tile{width:72px;height:72px;flex:none;border-radius:12px;background:#f3e0b5;box-shadow:inset 0 0 0 2px #c9a46a;display:grid;place-items:center;overflow:hidden}.sw-cardtxt{display:flex;flex-direction:column;gap:3px;min-width:0}.sw-cardtxt b{font-size:16px}.sw-cardtxt small{font-size:12px;color:#8f6a45}.sw-chip{display:inline-flex;align-items:center;align-self:flex-start;height:26px;padding:0 10px;border-radius:13px;background:#fffaf0;border:2px solid #e6d3a8;font-weight:700;font-size:14px}.sw-chip i.coin{width:16px;height:16px}.sw-owned{position:absolute;top:8px;right:8px;padding:2px 8px;border-radius:10px;background:#4f9e3a;color:#fff;font-size:11px;font-weight:700;font-style:normal}.sw-sprite{width:var(--px);height:var(--px);image-rendering:pixelated;object-fit:contain}span.sw-sprite{width:auto;height:auto;font-size:calc(var(--px) * .8);line-height:1}.sw-detail{width:280px;flex:none;display:flex;flex-direction:column;gap:10px}.sw-stage{height:150px;border-radius:16px;background:#f3e0b5;box-shadow:inset 0 0 0 2px #c9a46a;display:grid;place-items:center}.sw-stage canvas.sw-sprite{width:144px;height:144px}.sw-dname{font-size:20px;font-weight:700}.sw-cat{align-self:flex-start;padding:2px 10px;border-radius:8px;background:#ffe9a8;color:#8f5512;font-size:12px;font-weight:700}.sw-facts{border-top:2px solid #efe2c2;border-bottom:2px solid #efe2c2;padding:8px 0;display:flex;flex-direction:column;gap:6px;font-size:14px}.sw-facts>div{display:flex;justify-content:space-between;align-items:center}.sw-facts span:first-child{color:#8f6a45}.ok{color:#2f6b22}.bad{color:#a82a22}.sw-qty{display:inline-flex;align-items:center;gap:10px}.sw-qty button{width:32px;height:32px;border-radius:50%;background:#f3e6c4;border:2px solid #c9a46a;color:#6b4a2b;font-weight:700;font-size:18px;line-height:1;cursor:pointer}.sw-qty b{min-width:20px;text-align:center;font-size:18px}.sw-qty input{width:64px;height:32px;border-radius:10px;border:2px solid #c9a46a;background:#fffdf6;text-align:center;font-weight:700;font-size:16px;color:#3a2a1a}.sw-qty.sm button{width:26px;height:26px;font-size:15px}.sw-qty.sm b{font-size:15px}.sw-buy{height:46px;border:0;border-radius:23px;background:#4f9e3a;color:#fff;font-size:16px;font-weight:700;box-shadow:0 3px #2f6b22;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:4px}.sw-buy:disabled{opacity:.5;cursor:not-allowed}.sw-note{margin:0;font-size:12px;color:#8f6a45;text-align:center}.sw-empty{color:#8f6a45;font-size:14px;margin:8px 0}.sh{width:min(600px,calc(100vw - 16px))}.sh .sw-title{font-size:20px}.sh-glyph{width:44px;height:44px;flex:none;border-radius:10px;background:#f3e0b5;box-shadow:inset 0 0 0 2px #c9a46a;display:grid;place-items:center;overflow:hidden}.sh-glyph canvas{width:40px;height:40px}.sh-switch{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 6px;border-radius:18px;background:#fffaf0;border:2px solid #e6d3a8;font-size:13px;font-weight:700;white-space:nowrap}.sh-switch button{width:24px;height:24px;border:0;border-radius:50%;background:#f3e6c4;color:#6b4a2b;font-weight:700;cursor:pointer}.sh-board{margin:18px;padding:16px 16px 6px;background:#b9824c;border:4px solid #6b4a2b;border-radius:14px;display:flex;flex-direction:column;gap:6px}.sh-row{display:flex;justify-content:center;gap:12px;padding-bottom:30px;position:relative}.sh-row:after{content:"";position:absolute;left:-16px;right:-16px;bottom:22px;height:12px;background:#8a5a32;border-top:3px solid #6b4a2b;border-bottom:3px solid #4a3220}.sh-spot{position:relative;width:96px;height:80px;border-radius:12px 12px 4px 4px;border:0;background:#f3e0b5;box-shadow:inset 0 0 0 2px #c9a46a,inset 0 -3px #6b4a2b26;display:grid;place-items:center;cursor:pointer;color:inherit;z-index:1}.sh-spot.sel{background:#ffe9a8;box-shadow:inset 0 0 0 3px #e0a82e,0 0 0 3px #ffd36a}.sh-spot.empty{background:#4a322059;box-shadow:none}.sh-spot.gone .sh-ic{opacity:.35}.sh-ic{width:44px;height:44px;font-size:40px;line-height:1;filter:drop-shadow(0 2px 0 rgba(0,0,0,.18));image-rendering:pixelated}span.sh-ic{width:auto;height:auto}.sh-n{position:absolute;right:6px;bottom:2px;font-size:15px;font-weight:900;color:#fff;text-shadow:0 0 2px #3a2a1a,0 2px 0 #3a2a1a}.sh-emptyl{font-size:13px;font-weight:700;color:#fbf3dc}.sh-tag{position:absolute;left:50%;bottom:-30px;transform:translate(-50%) rotate(-2deg);display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:12px;background:#fffaf0;border:2px solid #6b4a2b;box-shadow:0 2px #4a3220;font-size:13px;font-weight:700;white-space:nowrap;z-index:2}.sh-tag i.coin{width:14px;height:14px}.sh-incart{position:absolute;left:4px;top:4px;display:inline-flex;align-items:center;gap:2px;height:20px;padding:0 6px;border-radius:10px;background:#4f9e3a;color:#fff;font-size:12px;font-weight:700}.sh-incart svg{width:13px;height:13px}.sh-bar{display:flex;align-items:center;gap:12px;padding:14px 18px;background:#f3e6c4;border-top:2px solid #e6d3a8;flex-wrap:wrap;min-height:76px}.sh-bar>.sh-label{width:100%;margin:0}.sh-item{width:48px;height:48px;flex:none;border-radius:10px;background:#f3e0b5;box-shadow:inset 0 0 0 2px #c9a46a;display:grid;place-items:center;font-size:30px;overflow:hidden}.sh-item canvas{width:44px;height:44px}.sh-what{flex:1;min-width:120px;display:flex;flex-direction:column}.sh-what b{font-size:16px}.sh-what small{font-size:13px;color:#8f6a45}.sh-add{height:42px;padding:0 16px;border:0;border-radius:21px;background:#a8703f;color:#fff;font-weight:700;box-shadow:0 3px #7a4f2a;cursor:pointer;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.sh-add:disabled{opacity:.5;cursor:not-allowed}.sh-price{display:flex;flex-direction:column;gap:4px}.sh-price small{font-size:11px;font-weight:700;letter-spacing:.06em;color:#8f6a45}.sh-take{height:40px;padding:0 16px;border-radius:20px;background:#fffaf0;border:2px solid #a8703f;color:#6b4a2b;font-weight:700;cursor:pointer}.sh-pills{display:flex;flex-wrap:wrap;gap:8px;width:100%}.sh-pill{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px 0 6px;border-radius:20px;background:#fffaf0;border:2px solid #c9a46a;color:#3a2a1a;font-weight:700;cursor:pointer}.sh-pill:hover{background:#ffe9a8}.sh-pill .emo,.sh-pill canvas{font-size:22px;width:28px;height:28px;display:grid;place-items:center}.sh-pill small{color:#8f6a45}.sh-hint{margin:0;color:#8f6a45;font-size:14px}#cartbtn{position:relative;width:60px;height:60px;border-radius:50%;background:#fbf3dc;border:4px solid #6b4a2b;box-shadow:0 4px #4a3220;color:#6b4a2b;display:grid;place-items:center;padding:0;cursor:pointer}#cartbtn[hidden]{display:none}#cartbtn svg{width:28px;height:28px}#cartbtn .cart-n:not(:empty){position:absolute;top:-6px;right:-6px;min-width:24px;height:24px;padding:0 5px;box-sizing:border-box;border-radius:12px;background:#4f9e3a;border:3px solid #fbf3dc;color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center}#cartpanel{position:fixed;z-index:32;width:300px;max-width:calc(100vw - 16px);background:#fbf3dc;border:4px solid #6b4a2b;border-radius:18px;box-shadow:0 5px #4a3220,0 16px 40px #00000059;color:#3a2a1a;overflow:hidden}#cartpanel[hidden]{display:none}#cartpanel button{font:inherit}.cp-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:2px solid #e6d3a8}.cp-head b{font-size:17px}.cp-clear{border:0;background:none;color:#a8703f;font-weight:700;text-decoration:underline;cursor:pointer;font-size:13px}.cp-lines{max-height:300px;overflow-y:auto;padding:8px 12px;display:flex;flex-direction:column;gap:8px}.cp-empty{margin:6px 0;font-size:14px;color:#8f6a45}.cp-line{display:grid;grid-template-columns:40px 1fr auto;grid-template-rows:auto auto;gap:2px 8px;align-items:center}.cp-tile{grid-row:span 2;width:40px;height:40px;border-radius:10px;background:#f3e0b5;box-shadow:inset 0 0 0 2px #c9a46a;display:grid;place-items:center;font-size:24px;overflow:hidden}.cp-tile canvas{width:36px;height:36px}.cp-what{display:flex;flex-direction:column;min-width:0}.cp-what b{font-size:14px}.cp-what small{font-size:12px;color:#8f6a45}.cp-x{border:0;background:none;color:#a8703f;cursor:pointer;font-size:14px;justify-self:end}.cp-lt{justify-self:end;font-size:14px}.cp-foot{padding:12px 14px;background:#f3e6c4;border-top:2px solid #e6d3a8;display:flex;flex-direction:column;gap:6px}.cp-total{display:flex;justify-content:space-between;font-size:18px}.cp-total b{font-size:18px}.cp-after{font-size:13px;color:#8f6a45}.cp-after.bad{color:#a82a22;font-weight:700}.cp-pay{height:44px;border:0;border-radius:22px;background:#4f9e3a;color:#fff;font-size:16px;font-weight:700;box-shadow:0 3px #2f6b22;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:4px}.cp-pay:disabled{opacity:.5;cursor:not-allowed}@media(max-width:720px){.sw-body{flex-direction:column}.sw-detail{width:auto}.sw-grid{grid-template-columns:1fr}.sw-head{flex-wrap:wrap;gap:10px;padding:12px}.sw-portrait{width:56px;height:56px}.sw-title{font-size:19px}.sh-spot{width:72px;height:66px}.sh-row{gap:8px}}.sh .sw-title{font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sh .sw-head{gap:10px}.sh .sw-coins{height:36px;padding:0 12px}.cp-line{grid-template-columns:40px 1fr auto 18px}.cp-x{grid-column:4;grid-row:1;padding:0}.cp-lt{grid-column:3 / span 2;grid-row:2}.ch-job{display:flex;align-items:center;gap:12px;padding:10px 14px;margin-bottom:8px}.ch-jobic{font-size:26px;width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:#f3e0b5;flex:none}.ch-group-h{font-size:12px;font-weight:700;letter-spacing:.06em;color:#8f6a45;margin:14px 0 8px}.ch-shift{background:#fff3c4;box-shadow:inset 0 0 0 2px #e0a82e}.ch-ghost{background:#fffaf0!important;color:#6b4a2b!important;box-shadow:inset 0 0 0 2px #a8703f!important}.ch-money{display:flex;justify-content:space-between;gap:8px;font-size:13px;padding:3px 0;border-bottom:1px dashed #efe2c2}.ch-hbar.ch-purse{grid-template-columns:minmax(120px,1.2fr) 1fr 70px}.ch-hbar.ch-purse b{text-align:right;white-space:nowrap}.ch-flow{display:flex;align-items:flex-end;gap:10px;height:120px;padding-top:6px}.ch-flowday{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%}.ch-flowbars{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}.ch-flowbars i{width:40%;max-width:18px;border-radius:4px 4px 0 0;min-height:2px}.ch-flowbars i.in,.ch-key.in{background:#6cbf4a}.ch-flowbars i.out,.ch-key.out{background:#e0a82e}.ch-flowday small{font-size:11px;color:#8f6a45}.ch-key{display:inline-block;width:10px;height:10px;border-radius:3px;vertical-align:-1px;margin:0 2px 0 8px}#shiftcard{position:fixed;left:12px;top:calc(var(--sat, 0px) + 460px);z-index:14;display:flex;align-items:center;gap:8px;padding:8px 10px;background:#fbf3dc;border:3px solid #6b4a2b;border-radius:14px;box-shadow:0 3px #4a3220;font-size:13px;color:#3a2a1a;max-width:240px}#shiftcard[hidden]{display:none}#shiftcard .sc-ic{font-size:22px}#shiftcard b{display:block;font-size:14px}#shiftcard button{margin-left:auto;border:0;background:none;color:#a8703f;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline}@media(max-width:620px){#shiftcard{top:auto;bottom:calc(150px + var(--sab))}}#needs .st-head,#needs .st-grid,#needs .st-moodlets,#needs .st-tip{display:none}#needs:not(:has(#thought:not([hidden]))){display:none}#needs .st-thought{border-top:0}#vitals{position:fixed;left:50%;transform:translate(-50%);bottom:calc(84px + var(--sab));z-index:3;display:flex;justify-content:center;pointer-events:none}#vitals[hidden],body.building #vitals{display:none}.vt-row{all:unset;pointer-events:auto;cursor:pointer;display:flex;gap:1px;padding:2px;border-radius:6px;filter:drop-shadow(0 1px 0 rgba(0,0,0,.45))}.vt-row:focus-visible{outline:2px solid #f5c542}.vt-row{padding:1px 2px 0}.vt-row i{display:block;width:18px;height:18px}.vt-row svg{display:block;width:100%;height:100%}#vitals.starving .vt-food i{animation:vt-jitter .5s steps(2) infinite}#vitals.starving .vt-food i:nth-child(odd){animation-delay:.25s}@keyframes vt-jitter{50%{transform:translateY(-2px)}}@media(max-width:620px),(max-height:520px){.vt-row i{width:14px;height:14px}#chatlog{width:min(270px,68vw);gap:3px}#chatlog div{font-size:12px;padding:3px 8px}#chatlog div:nth-last-child(n+4){display:none}}@media(max-height:520px){#minimap{width:96px}#status{width:168px;top:calc(var(--mm-top, 56px) + 104px);gap:6px}#hotbar{--slot: min(38px, calc((100vw - 260px) / 9));gap:2px;padding:3px;bottom:calc(6px + var(--sab))}#hotbar .bw-slot .ic{font-size:18px}#hotbar .bw-slot .ic canvas{width:20px;height:20px}#chatlog{left:auto;right:calc(76px + var(--sar));align-items:flex-end}}#chathist div{position:relative}#chathist div .flag,#npc-log .line .flag{position:absolute;right:4px;top:2px;border:0;background:transparent;color:inherit;opacity:.55;font-size:13px;cursor:pointer;padding:4px 6px;min-width:32px;min-height:28px}#chathist div:has(.flag){padding-right:34px}#npc-log .line{position:relative}#npc-log .line.them:has(.flag){padding-right:34px}.flag:hover,.flag:focus-visible{opacity:1}.report-quote{margin:0 0 8px;padding:8px 10px;border-left:4px solid var(--wood-light, #c9a46a);background:#fffaf0;border-radius:6px;font-style:italic;overflow-wrap:anywhere}.report-reasons{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 12px}.safety{margin-top:18px;border-top:2px dashed #e6d3a8;padding-top:10px;display:flex;flex-direction:column;gap:6px}.safety h3{margin:0;font-size:15px}.safety .row{display:flex;align-items:center;gap:8px}button.danger.primary{background:#b33b44;box-shadow:0 3px #6e1f25}button.link.danger{color:#b33b44;align-self:flex-start;margin-top:8px}.legal{margin:10px 0 0;text-align:center;font-size:13px}.legal a{color:#8f6a45}#status{width:auto;max-width:236px}#needs{border-width:2px;border-radius:14px;box-shadow:0 2px #4a3220,0 4px 12px #00000040}#needs .st-thought{padding:5px 6px 5px 10px}.st-whim span{font-size:12px}@media(max-width:620px),(max-height:520px){#status{max-width:190px}}#cat-toggle{display:none}@media(max-width:640px),(max-height:520px){#catalog{display:flex;flex-direction:column;height:auto;left:calc(6px + var(--sal));right:calc(6px + var(--sar));bottom:calc(6px + var(--sab));border-radius:16px}#grouprail{flex-direction:row;gap:2px;padding:4px 48px 0 4px;border-right:0;overflow-x:auto;scrollbar-width:none}#grouprail::-webkit-scrollbar{display:none}#grouprail button{flex:none;flex-direction:row;gap:5px;height:34px;padding:0 9px}#grouprail button span{font-size:12px}#grouprail button:not(.sel) span{display:none}#grouprail button svg{width:20px;height:20px}#catmid{padding:4px 6px 6px;gap:4px}#tabs{height:28px}#tabs button{height:26px;padding:0 10px;font-size:12px}#items{flex:none;grid-template-rows:68px;grid-auto-columns:76px;gap:5px;scrollbar-width:none}#items::-webkit-scrollbar{display:none}#items>button{width:76px;height:68px;padding:3px 3px 2px}#items>button canvas{width:34px;height:34px}#items>button .nm{font-size:10.5px}#items>button .price{font-size:10.5px}#items>button.tool .ticon{font-size:22px;line-height:34px;height:34px}#items .empty,#items .libsec{grid-row:1}#items .empty{width:300px;font-size:12px}#items>button.libcard{grid-row:auto;width:116px;height:68px;flex-direction:row;gap:6px}#items>button.libcard canvas{width:60px;height:42px}#cat-toggle{display:grid;place-items:center;position:absolute;top:4px;right:4px;width:40px;height:34px;border:0;border-radius:10px;background:#fffaf0b3;cursor:pointer}#cat-toggle svg{width:20px;height:20px;fill:none;stroke:#6b4a2b;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}body.cat-min #cat-toggle svg{transform:rotate(180deg)}body.cat-min #catmid{display:none}body.cat-min #grouprail{padding-bottom:4px}#buildbar{left:calc(6px + var(--sal));right:calc(6px + var(--sar));bottom:calc(var(--cat-h, 150px) + 12px + var(--sab));gap:6px}#buildsearch{flex:none;width:40px;height:36px;padding:0 9px;transition:width .2s}#buildsearch input{width:0;flex:0 1 0;padding:0}#buildsearch:focus-within,#buildsearch:has(input:not(:placeholder-shown)){flex:1;width:auto;padding:0 12px 0 14px}#buildsearch:focus-within input,#buildsearch:has(input:not(:placeholder-shown)) input{flex:1;width:auto}#buildcoins{height:36px;padding:0 12px 0 10px;font-size:14px}#toolhint{font-size:12px;padding:4px 10px}}@media(max-height:520px){#catalog{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto}#catmid,body.cat-min #catmid{display:contents}#grouprail{grid-row:1;grid-column:1;padding:4px 2px 0 4px;overflow:visible}#grouprail button{padding:0 8px;height:32px}#grouprail button span{display:none}#tabs{grid-row:1;grid-column:2;margin:5px 50px 0 6px}#items{grid-row:2;grid-column:1 / -1;margin:4px 6px 6px;grid-template-rows:62px}#items>button{height:62px}#items>button canvas{width:30px;height:30px}#items>button.libcard{height:62px}body.cat-min #items{display:none}body.cat-min #grouprail,body.cat-min #tabs{margin-bottom:4px}#toolhint{top:calc(60px + var(--sat))}}#viewctl .vc{width:44px;height:44px;padding:9px;display:grid;place-items:center}#viewctl .vc svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.7))}#bb-hist{display:none}@media(max-width:640px),(max-height:520px){#buildtools #btn-undo,#buildtools #btn-redo,#buildtools #btn-redo+.sep{display:none}body.building #toast{top:calc(152px + var(--sat));font-size:14px;padding:6px 12px}#bb-hist{display:flex;gap:0;height:36px;border-radius:18px;overflow:hidden;background:rgba(251,243,220,var(--glass-a));backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3);border:2px solid rgba(107,74,43,.55);box-shadow:0 4px #0000002e;box-sizing:border-box}#bb-hist button{width:44px;height:100%;border:0;background:transparent;display:grid;place-items:center;cursor:pointer}#bb-hist button+button{border-left:1px solid rgba(107,74,43,.3)}#bb-hist svg{width:20px;height:20px;fill:#6b4a2b}#bb-hist button:disabled svg{opacity:.3}#bb-hist button:active:not(:disabled){background:#ffe9a8e6}#buildtools,#viewctl{background:#1e181052;border-radius:14px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}#viewctl{padding:3px;gap:2px}#viewctl .vc,#btn-walls{width:42px;height:42px;padding:8px}#btn-walls svg{width:26px;height:26px}#btn-done{height:42px;padding:0 12px!important;font-size:15px;box-shadow:none}#stagebar{left:auto;right:calc(6px + var(--sar));transform:none;gap:8px;padding:4px 6px}#stagebar button{width:46px;height:46px;font-size:21px;border-width:2px}body.staging #buildsearch,body.staging #bb-hist{display:none}}body.gfx-smooth canvas#game{image-rendering:auto}#emotes{position:fixed;right:calc(76px + var(--sar));top:calc(150px + var(--sat));z-index:12;max-height:min(420px,calc(100dvh - 240px));overflow-y:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(4,62px);gap:6px;padding:8px;background:var(--cream);border:3px solid var(--wood);border-radius:16px;box-shadow:0 4px #00000040}#emotes[hidden]{display:none}#emotes button{height:62px;border:0;border-radius:12px;background:#f3e6c4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;font:inherit;color:var(--ink)}#emotes button:hover,#emotes button:active{background:#ffe9a8}#emotes button span{font-size:24px;line-height:1}#emotes button small{font-size:10.5px;font-weight:700}body.building #emotes,body.building #btn-emote{display:none}@media(max-width:620px){#emotes{grid-template-columns:repeat(4,58px);top:calc(120px + var(--sat))}#emotes button{height:58px}}@media(max-height:520px){#emotes{top:calc(56px + var(--sat))}}.bigmap-card{height:min(820px,100%)}.bigmap-view{position:relative;flex:1;min-height:0;border-radius:10px;border:3px solid var(--wood-light);background:#244a22;overflow:hidden}#bigmap-canvas{display:block;width:100%;height:100%;min-width:0;image-rendering:auto;touch-action:none;cursor:grab}#bigmap-canvas:active{cursor:grabbing}.bigmap-zoom{position:absolute;right:8px;bottom:8px;display:flex;flex-direction:column;gap:6px}.bigmap-zoom button{width:44px;height:44px;border-radius:12px;border:2px solid var(--wood);background:var(--cream);color:var(--wood);font:700 22px/1 ui-rounded,system-ui,sans-serif;box-shadow:0 3px #00000040;cursor:pointer}.bigmap-legend{font-size:12px;gap:4px 12px}.bigmap-legend i{background:#9fd3f2;border-width:2px}.bigmap-legend i.sq{background:none}@media(max-width:640px),(max-height:520px){#bigmap{padding:0}.bigmap-card{width:100%;height:100%;border-radius:0;border:0;padding:calc(8px + var(--sat)) calc(8px + var(--sar)) calc(8px + var(--sab)) calc(8px + var(--sal));box-shadow:none;gap:6px}#bigmap-title{font-size:17px}.bigmap-legend{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;scrollbar-width:none}}@media(max-height:520px){.bigmap-legend{display:none}}@media(max-height:520px){#emotes{max-height:calc(100dvh - 76px);grid-template-columns:repeat(6,58px)}}#emotes button small{text-align:center;line-height:1.05;max-width:100%;overflow:hidden}
