.modal.settings-modal{width:min(790px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:24px;background:linear-gradient(135deg,#263529,#19271f);border:2px solid #8b7950;box-shadow:0 0 0 4px #14221d,0 20px 70px #0009}.pref-heading h2{margin:5px 0;font:30px Georgia,serif;color:#efd9a4}.pref-heading p{margin:4px 0 18px;color:#b7c1ad;font-size:13px}.pref-search{display:flex;align-items:center;gap:16px;font-size:13px;color:#dbc493}.pref-search input{flex:1;min-width:0;border:1px solid #6d7258;border-radius:4px;background:#101c17;color:#eee5d1;padding:10px}.pref-tabs{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin:18px 0 0;border-bottom:2px solid #b49a60;padding-bottom:6px}.pref-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;flex-direction:column;min-height:62px;padding:8px 4px;background:#24362b;color:#b6bda8;border:1px solid #5c6950;border-radius:4px 4px 0 0;font-size:12px}.pref-tabs button[aria-selected=true]{color:#ffe1a0;border-color:#d4b570;background:linear-gradient(#526045,#34432f);box-shadow:inset 0 2px #eed29b}.pref-tabs svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}.pref-tabs button:focus-visible,.pref-control input:focus-visible{outline:2px solid #f5d797;outline-offset:2px}.pref-body{min-height:290px;max-height:48dvh;overflow:auto;scrollbar-color:#7f805d #1a281f;padding:0 12px 0 0}.pref-body h3{font:19px Georgia,serif;color:#e4c88c;margin:18px 0 6px}.pref-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:15px 0;border-bottom:1px solid #71836335}.pref-row label,.pref-row b{font-size:14px;color:#eee2c2;font-weight:600}.pref-row p{color:#acb6a0;font-size:12px;line-height:1.5;margin:5px 0 0;max-width:380px}.pref-control{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:190px;max-width:270px}.pref-control input[type=range]{width:145px;accent-color:#d6b465}.pref-control input[type=checkbox]{width:24px;height:24px;accent-color:#b79956;cursor:pointer}.pref-control output{font-size:12px;color:#d8c48d;min-width:32px;text-align:right}.pref-control select{width:225px;max-width:100%;padding:9px;background:#15281e;color:#e9ddb8;border:1px solid #6c7758;border-radius:4px}.pref-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.pref-actions button,.pref-footer button,.pref-control button{padding:9px 12px;min-height:38px}.pref-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;color:#aebbab;font-size:12px}.settings-modal [hidden]{display:none!important}.settings-modal .xp-event-settings{margin:10px 0 0}.settings-modal #closeModal{z-index:2}#chatLog{font-size:var(--chat-text-size,13px)}.hide-chat-times #chatLog time{display:none}#panel{font-size:calc(14px * var(--interface-text-scale,1))}#panel button,#panel p,#panel td,#panel li{font-size:inherit}
@media(max-width:600px){.modal.settings-modal{padding:18px 14px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.pref-heading h2{font-size:25px}.pref-search{flex-direction:column;align-items:stretch;gap:6px}.pref-tabs{gap:3px}.pref-tabs button{font-size:10px;min-height:60px}.pref-tabs svg{width:21px}.pref-row{gap:12px;flex-wrap:wrap;padding:13px 0}.pref-row>div:first-child{flex:1;min-width:150px}.pref-control{min-width:130px;max-width:100%;flex:1}.pref-control input[type=range]{width:110px}.pref-control select{width:170px}.pref-body{max-height:43dvh;padding-right:5px}.pref-footer{align-items:flex-start}.pref-footer button{font-size:11px}}@media(max-height:580px) and (min-width:601px){.modal.settings-modal{padding:14px 22px}.pref-heading h2{font-size:23px}.pref-heading p{margin-bottom:8px}.pref-tabs{margin-top:10px}.pref-tabs button{min-height:48px;flex-direction:row}.pref-body{min-height:100px;max-height:40dvh}.pref-footer{margin-top:8px}}
.pref-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.pref-control textarea,.pref-control input[type=number]{width:225px;max-width:100%;background:#14231c;border:1px solid #778467;color:#f4e7c6;padding:8px;border-radius:4px}.pref-control textarea{resize:vertical}.pref-control button[data-bind]{overflow-wrap:anywhere;min-width:90px}.ground-loot-label{position:absolute;pointer-events:none;text-align:center;text-shadow:0 1px 2px #000,0 0 4px #000;z-index:12;white-space:nowrap;background:#102017b8;border-radius:3px;padding:3px 6px}.settings-alerts{position:absolute;left:50%;top:110px;transform:translateX(-50%);z-index:22;max-width:min(480px,80vw);pointer-events:none}.settings-alert{padding:10px 16px;margin:6px;background:#142b24f5;color:#ffe3a0;border:1px solid #c2a66a;border-radius:5px;font-size:14px;box-shadow:0 4px 20px #0007}.performance-readout{position:absolute;left:20px;bottom:24px;z-index:15;pointer-events:none;color:#e2e9cd;background:#12251cd9;border:1px solid #7e91655c;border-radius:4px;padding:5px 9px;font:11px monospace}.chat-new-messages{position:absolute;right:10px;bottom:40px;z-index:3;background:#244b3c;color:#ffdf96;padding:5px 10px;border:1px solid #bca065}.high-contrast .modal,.high-contrast .panel,.high-contrast .map-card,.high-contrast .chat,.high-contrast .vitals{background:#07130ff5!important;color:#fff6dc;border-color:#e1cb88!important}.high-contrast button:focus-visible{outline:3px solid #fff1a4!important}.high-contrast .hint,.high-contrast small,.high-contrast .modal p{color:#e5ebd7!important}:root{--readable-text:14px;--damage-text:18px}.access-large #panelContent,.access-large .modal p,.access-large .modal li,.access-large .modal small,.access-large .hover{font-size:var(--readable-text)!important;line-height:1.55}.float{font-size:var(--damage-text)}.reduced-motion .float{animation:none}.reduced-motion .xp-toast,.reduced-motion .settings-alert,.reduced-motion .fortune-disc{transition:none!important;animation:none!important}.reduced-flashing .hit-flash{opacity:.25!important}.hud-edit-toolbar{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:95;background:#142b23;color:#f6dfaa;border:2px solid #c9ae74;border-radius:6px;padding:12px;display:flex;gap:12px;align-items:center;max-width:95vw}.hud-edit-toolbar button{background:#bd9d60;color:#122016;border-radius:3px;padding:8px 12px}.hud-edit-toolbar span{font-size:12px}.hud-layout-handle{position:fixed;border:2px dashed #f3d887;pointer-events:none;z-index:90;box-sizing:border-box}.hud-layout-handle button{pointer-events:auto;touch-action:none;background:#173b2e;color:#ffe8ac;border:1px solid #d4bc76;padding:5px;font-size:12px;min-height:28px}.hud-move{position:absolute;left:0;top:0;cursor:move}.hud-resize{position:absolute;right:0;bottom:0;cursor:nwse-resize}.hud-editing #world{pointer-events:none}@media(max-width:600px){.pref-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.pref-tabs button{font-size:9px}.hud-edit-toolbar{flex-wrap:wrap;justify-content:center}.hud-edit-toolbar span{display:none}.performance-readout{left:8px;bottom:5px;font-size:10px}.settings-alerts{top:130px;max-width:70vw}}
