.settings-dialog{width:min(560px,calc(100% - 32px));max-width:560px;max-height:calc(100dvh - 40px);padding:0;border:1px solid #c9d6e3;border-radius:20px;background:#f5f8fc;color:#29435d;box-shadow:0 24px 100px #142c5060;scrollbar-width:thin;overscroll-behavior:contain}
.settings-dialog::backdrop{background:#182d4bb8;backdrop-filter:blur(5px)}
.settings-heading{position:sticky;top:0;z-index:6;display:flex;align-items:center;gap:16px;min-height:108px;padding:24px 72px 24px 28px;border-bottom:1px solid #dce5ed;background:#fff}
.settings-heading-icon{display:grid;place-items:center;flex-shrink:0;width:52px;height:52px;border:1px solid #f0d7de;border-radius:15px;background:#fff0f3;color:#c42e48}
.settings-heading-icon>.icon{width:28px;height:28px}
.settings-heading>div>span{display:block;margin-bottom:6px;color:#8b6070;font-size:9px;font-weight:850;letter-spacing:1.7px}
.settings-heading h2{margin:0;font-size:26px;line-height:1.2;letter-spacing:-.7px;color:#29435d}
.settings-heading .modal-close{top:32px;right:24px;display:grid;place-items:center;width:44px;height:44px;border:1px solid #dbe4ed;border-radius:12px;background:#f7f9fc;color:#667e94;box-shadow:none}
.settings-heading .modal-close:hover{background:#edf2f7;color:#2d4c68}
.settings-dialog .settings-body{padding:24px}
.settings-section{min-width:0;padding:20px;border:1px solid #dce5ed;border-radius:14px;background:#fff}
.settings-section>h3{display:flex;align-items:center;gap:8px;margin:0 0 18px;font-size:12px;font-weight:850;letter-spacing:.15px;color:#48627b}
.settings-section>h3>.icon{width:17px;height:17px;color:#8196aa}
.settings-preference{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;min-height:58px}
.settings-preference-label{display:flex;align-items:center;gap:10px;min-width:0;color:#45617a}
.settings-preference-label strong{display:block;font-size:12px;line-height:1.5;font-weight:750}
.settings-preference-label small{display:block;margin-top:4px;font-size:10px;line-height:1.5;color:#7c90a3}
.settings-animation select{width:122px;min-height:44px;flex-shrink:0;border:1px solid #cbd9e6;border-radius:9px;padding:9px 10px;background:#f7fafe;color:#385773;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
.settings-preview{position:relative;overflow:hidden;margin:22px 0 0;border:1px solid #dce8e8;border-radius:12px;padding:13px 14px 16px;background:radial-gradient(ellipse at 50% 110%,#dbece2,transparent 75%),#f0f7f5}
.settings-preview>figcaption{text-align:center;color:#5d7d71;font-size:10px;font-weight:800}
.settings-preview-views{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px}
.settings-preview-views>div{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.settings-preview-views>div>span:last-child{font-size:9px;font-weight:700;color:#759185}
.settings-preview-sprite{position:relative;display:grid;place-items:center;width:112px;height:112px}
.settings-preview-sprite:before{content:"";position:absolute;bottom:19px;left:12px;right:12px;height:15px;border:1px solid #c4d9cd;border-radius:50%;background:#d2e6d8a8}
.settings-preview-sprite>img{position:relative;z-index:1;width:112px;height:112px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 3px 0 #3b665115)}
.settings-adventure{display:flex;align-items:stretch;flex-direction:column;gap:14px;margin-top:22px;padding-top:18px;border-top:1px solid #dce5ed}
.settings-adventure h3{margin:0;font-size:12px;font-weight:800;color:#58718a}
.settings-adventure>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}
.settings-adventure>div>span{display:block;max-width:200px;color:#8294a6;font-size:10px;overflow-wrap:anywhere}
.settings-adventure-actions{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px}
.settings-adventure-actions>button{min-height:44px;padding:10px 13px;border:1px solid #d5dfe9;border-radius:9px;background:#fff;font:inherit;font-size:11px;font-weight:750;color:#59738a;cursor:pointer}
.settings-adventure-actions>.settings-new:hover{background:#edf3f9;border-color:#a8bfce}
.settings-adventure-actions>.settings-abandon{border-color:transparent;background:transparent;color:#b74254}
.settings-adventure-actions>.settings-abandon:hover{background:#fcebef;border-color:#ecc6ce}
.settings-dialog button:focus-visible,.settings-animation select:focus-visible{outline:3px solid #2c91ce;outline-offset:3px}
.j-header-actions>button[data-action="settings"]{width:44px;height:44px;flex-shrink:0}
.j-header-actions>button[data-action="settings"]:hover{background:#ffffff22;border-color:#ffffff75}
@media(max-width:700px){
  .settings-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:16px}
  .settings-heading{min-height:94px;gap:12px;padding:20px 58px 20px 18px}
  .settings-heading-icon{width:42px;height:42px;border-radius:12px}.settings-heading-icon>.icon{width:24px;height:24px}
  .settings-heading>div>span{font-size:8px;letter-spacing:1.1px}.settings-heading h2{font-size:21px;letter-spacing:-.5px}
  .settings-heading .modal-close{top:23px;right:10px;width:44px;height:44px;border-radius:10px}
  .settings-dialog .settings-body{padding:16px}.settings-section{padding:18px;border-radius:12px}.settings-section>h3{margin-bottom:14px}
  .settings-preference-label strong{font-size:13px}.settings-preference-label small{font-size:11px}
  .settings-animation select{font-size:16px;width:128px;padding-inline:9px}
  .settings-preview{padding-top:10px}.settings-preview-sprite,.settings-preview-sprite>img{width:116px;height:116px}
  .settings-adventure{margin-top:18px;padding-top:18px}.settings-adventure-actions{gap:7px}.settings-adventure-actions>button{padding-inline:8px;font-size:11px}
}
@media(max-width:370px){.settings-section{padding:14px}.settings-heading h2{font-size:19px}.settings-heading-icon{width:36px;height:36px}.settings-preference{gap:8px}.settings-preference-label{gap:7px}.settings-animation select{width:120px}}
@media(prefers-reduced-motion:reduce){.settings-dialog *{transition:none!important}}
