.wb-spell-dialog{position:fixed;inset:12px 12px calc(12px + var(--desktop-bottom,0px));height:fit-content;max-height:calc(100dvh - var(--desktop-bottom,0px) - 24px);margin:auto;box-sizing:border-box;padding:12px;overflow:hidden;width:min(520px,calc(100vw - 24px));border:1px solid var(--ui-line,#e7e7de);border-radius:16px;background:var(--ui-paper,rgba(255,255,248,.95));color:var(--ui-text,#5b5b55);font:13px/1.5 Inter,"Segoe UI",system-ui,sans-serif;box-shadow:var(--ui-shadow,0 6px 24px #52524a1a)}
.wb-spell-dialog:not([open]){display:none}.wb-spell-dialog[open]{display:flex;flex-direction:column;gap:10px}
.wb-spell-dialog header,.wb-spell-dialog footer{display:flex;gap:8px;align-items:center;flex:none}.wb-spell-dialog header h2{margin:0;flex:1;font-size:16px}.wb-spell-dialog footer button{flex:1}
.wb-spell-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px}
.wb-spell-dialog fieldset{min-inline-size:0;margin:0 0 12px;padding:0;border:0}.wb-spell-dialog legend{font-weight:600;margin-bottom:6px}.wb-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.wb-option-grid label{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px;box-sizing:border-box;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-soft);overflow-wrap:anywhere}.wb-option-grid label:has(input:checked){background:var(--ui-tab);border-color:#898978;font-weight:600}.wb-option-grid input{accent-color:#898978}.wb-option-grid label:focus-within{outline:2px solid #898978;outline-offset:2px}
.wb-spell-dialog button{min-height:44px;font:inherit}.wb-spell-effects{font-size:11px;line-height:1.5;color:var(--ui-muted);margin:6px 0}.wb-spell-dialog footer{border-top:1px solid var(--ui-line);padding-top:10px}
.wb-skill-bar{position:absolute;left:50%;bottom:calc(12px + var(--desktop-bottom,0px));transform:translateX(-50%);width:min(420px,calc(100% - 24px));box-sizing:border-box;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-paper);color:var(--ui-text);pointer-events:auto;font:13px/1.4 Inter,"Segoe UI",system-ui,sans-serif}
.wb-skill-bar[hidden],.wb-vitals[hidden]{display:none!important}.wb-skill-bar button{min-width:0;min-height:64px;display:grid;gap:3px;padding:6px;font:inherit}.wb-skill-bar small,.wb-skill-bar kbd{font-family:inherit;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.wb-vitals{position:absolute;width:96px;pointer-events:none;transform:translate(-50%,8px);color:var(--ui-text);font:11px/1.4 Inter,"Segoe UI",system-ui,sans-serif}.wb-vitals label{display:grid;grid-template-columns:22px 1fr;gap:4px;align-items:center}.wb-vitals progress{width:100%;height:7px;accent-color:#a9ad82}.wb-vitals .wb-mana{accent-color:#9eaeb8}.wb-vitals p{margin:2px 0;padding:2px 4px;border-radius:4px;background:var(--ui-paper);overflow-wrap:anywhere}
@media(forced-colors:active){.wb-option-grid label:has(input:checked){border-color:Highlight}}

.wb-skill-bar{z-index:24}.wb-skill-bar button{border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-input);color:inherit;cursor:pointer}.wb-skill-bar button:disabled{opacity:.55;cursor:default}.wb-skill-bar button:focus-visible{outline:3px solid #898978;outline-offset:2px}.wb-foot-anchor{position:absolute;pointer-events:none;z-index:26}.wb-foot-anchor .wb-vitals{position:relative}.wb-config-status{margin:0;min-height:18px}.craftopee-area-gameplay[data-area-id="wizard-battle"]{top:62px;bottom:auto;max-height:calc(100dvh - var(--desktop-bottom,0px) - 185px)}
.wb-vitals label>span{padding:1px 2px;border-radius:2px;background:rgba(37,47,36,.72);color:#fff;font-weight:600}.wb-vitals progress{appearance:none;border:0;border-radius:2px;background:rgba(38,45,34,.24);overflow:hidden}.wb-vitals progress::-webkit-progress-bar{background:rgba(38,45,34,.24);border-radius:2px}.wb-vitals .wb-hp::-webkit-progress-value{background:#b88b87;border-radius:2px}.wb-vitals .wb-mana::-webkit-progress-value{background:#7fa8c1;border-radius:2px}.wb-vitals .wb-hp::-moz-progress-bar{background:#b88b87}.wb-vitals .wb-mana::-moz-progress-bar{background:#7fa8c1}
