:root{color-scheme:dark;--background:#0c121d;--foreground:#e9edf5;--card:#151e2c;--muted:#1b2636;--border:#34445a;--orange:#fb7c30;--blue:#4bafff;--purple:#bda3ff;--yellow:#f0d18a;--red:#f76b67;--font-size-base:16px;--sf-element:var(--orange);font-family:Inter,Segoe UI,system-ui,sans-serif;font-size:16px;color:var(--foreground);background:var(--background)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,select,input{font:inherit}button,select{color:var(--foreground);background:#1b2738;border:1px solid #40516a;border-radius:8px;min-height:44px;padding:10px 14px}button{cursor:pointer;transition:background .15s,border-color .15s}button:hover{background:#293c55;border-color:#8299b9}button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}button[aria-pressed=true]{border-color:var(--blue);background:#223b54}select{appearance:none;padding-right:34px;background-image:linear-gradient(45deg,transparent 50%,#b9cadf 50%),linear-gradient(135deg,#b9cadf 50%,transparent 50%);background-position:calc(100% - 17px) 19px,calc(100% - 12px) 19px;background-size:5px 5px;background-repeat:no-repeat}#spell-forge,.sf-stage{position:fixed;inset:0;width:100%;height:100%}canvas{position:absolute;inset:0;display:block;width:100%;height:100%}#sf-scene{touch-action:none}#sf-overlay{pointer-events:none}.mouse-locked #sf-scene{cursor:none}.game-header{position:absolute;top:24px;left:28px;right:28px;display:flex;justify-content:space-between;gap:20px;pointer-events:none;text-shadow:0 2px 8px #000}.brand{font-weight:600;letter-spacing:.15em}.brand-divider{color:var(--orange);margin:0 12px}.tabular{font-variant-numeric:tabular-nums}#sf-score{font-size:.875rem;color:#d7dfeb}.sf-label{position:absolute;left:28px;top:57px;font-size:.75rem;letter-spacing:.09em;color:#bcc9d9;pointer-events:none}.sf-health{position:absolute;right:32px;bottom:66px;max-width:25%;font-size:1.25rem;text-align:right;text-shadow:0 2px 8px #000;pointer-events:none}.sf-feedback{position:absolute;top:19%;left:12%;right:12%;text-align:center;letter-spacing:.04em;text-shadow:0 2px 8px #000;pointer-events:none}.sf-spell{position:absolute;left:32px;bottom:66px;display:grid;gap:5px;max-width:58%;text-shadow:0 2px 8px #000;pointer-events:none}#sf-elements{font-size:.875rem;color:#bdc9d9}#sf-name{font-weight:500;font-size:1.5rem}#sf-reaction{font-size:.875rem;color:#d7e1ef}#sf-action{font-size:.75rem;color:#a9b9cf}.sf-charge{width:190px;height:3px;background:#d6e5ff22;margin-top:6px}#sf-charge-fill{height:100%;width:0;background:var(--sf-element)}.hud-keys{position:absolute;bottom:22px;left:32px;display:flex;gap:20px;flex-wrap:wrap;font-size:.75rem;color:#c0cddd;pointer-events:none}kbd{display:inline-block;font:inherit;font-size:.75rem;color:#e9f0fb;background:#182638b8;border:1px solid #46607b66;border-radius:4px;padding:3px 6px;margin-right:5px;vertical-align:middle}#sf-world-message{position:absolute;right:30px;top:86px;text-align:right;font-size:.875rem;max-width:300px;text-shadow:0 2px 8px #000;pointer-events:none}#sf-loading{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);z-index:4}.sf-menu{position:absolute;inset:0;display:grid;place-items:center;padding:24px;background:#050b14a1;overflow:auto;z-index:5}.sf-menu[hidden]{display:none}.menu-panel{width:min(590px,100%);padding:32px 38px;border:1px solid #596f8a66;border-radius:18px;background:linear-gradient(145deg,#182536f5,#0c1523f7);box-shadow:0 24px 120px #0008}.eyebrow{font-size:.75rem;letter-spacing:.23em;color:#98aec9}h1{font-size:2.65rem;letter-spacing:.1em;font-weight:500;margin:12px 0 0}h1 span{color:#f0c486;margin-left:14px}.menu-description{color:#c5d0df;margin:10px 0 22px;font-size:1rem}.primary{display:block;width:100%;background:linear-gradient(100deg,#e7bf82,#f4d59f);color:#172333;border:0;font-weight:600;letter-spacing:.04em;min-height:52px}.primary:hover{background:#f7dfb6}.capture-note{font-size:.8125rem;text-align:center;color:#a9bdd5;margin:10px 0 24px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px}.settings-grid>label{font-size:.875rem;color:#b9c9dc;display:flex;flex-direction:column;gap:7px;min-width:0}.settings-grid select{width:100%;font-size:.875rem}.settings-grid .checkbox{flex-direction:row;align-items:center;gap:9px;padding-top:21px}input[type=checkbox]{accent-color:var(--blue);width:17px;height:17px}input[type=range]{width:100%;accent-color:var(--blue);min-height:36px}.menu-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.menu-actions button{font-size:.8125rem;flex:1}.control-legend{display:flex;gap:14px;flex-wrap:wrap;padding:20px 0;color:#b6c7dc;font-size:.8125rem}.control-legend kbd{margin-right:3px}details{border-top:1px solid #526b873d;padding-top:14px}summary{cursor:pointer;font-size:.875rem;color:#d6e1ef}.recipe-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;font-size:.8125rem;color:#d1dfef;margin-top:16px}.rules{font-size:.8125rem;color:#acbdd3;line-height:1.6}.quick-select{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}.quick-select button{font-size:.75rem;min-height:36px;padding:7px 10px}.local-note{font-size:.75rem;color:#899eb8;margin:20px 0 0}.mouse-locked .sf-menu{display:none}.mouse-locked .quick-select{display:none}@media(max-height:800px){.menu-panel{padding:22px 30px}h1{font-size:2.1rem}.capture-note{margin-bottom:16px}.control-legend{padding:15px 0}.local-note{margin-top:14px}.quick-select{margin-top:14px}}@media(max-width:650px){.game-header{top:16px;left:16px;right:16px;flex-wrap:wrap;gap:8px}.brand{font-size:.875rem}#sf-score{font-size:.75rem}.sf-label{left:16px;top:65px;max-width:80%;font-size:.6875rem}.sf-spell{left:16px;bottom:88px;max-width:60%}#sf-name{font-size:1.125rem}.sf-health{right:16px;bottom:88px;max-width:27%;font-size:1rem}.hud-keys{left:16px;right:16px;gap:10px;bottom:20px}.sf-menu{padding:12px}.menu-panel{padding:24px 20px}h1{font-size:1.85rem}h1 span{margin-left:8px}.settings-grid{grid-template-columns:1fr}.settings-grid .checkbox{padding-top:0}.recipe-grid{grid-template-columns:1fr}.sf-charge{width:144px}#sf-world-message{right:16px;top:96px;max-width:160px}}
/* Combat information stays outside the reticle and hands. */
.sf-menu{align-items:start}.menu-panel{width:min(660px,100%);margin-block:auto}.sf-health{bottom:168px}.energy-panel{position:absolute;right:32px;bottom:72px;width:232px;pointer-events:none;text-shadow:0 2px 8px #000}.energy-heading{display:flex;justify-content:space-between;align-items:center;font-size:.875rem;letter-spacing:.07em}.energy-heading strong{font-size:1rem;font-weight:500;letter-spacing:0;font-variant-numeric:tabular-nums}.energy-meter{position:relative;height:8px;background:#8eafe02e;border:1px solid #b4cbe044;border-radius:3px;margin:9px 0 7px;overflow:hidden}#sf-energy-fill{height:100%;background:linear-gradient(90deg,#5ca7d8,#b2e8f6);width:100%}#sf-energy-preview{position:absolute;top:0;height:100%;background:repeating-linear-gradient(135deg,#ffffff90 0px,#ffffff90 2px,#1b334d90 2px,#1b334d90 5px)}.energy-meter.low #sf-energy-fill{background:#e3aa65}#sf-energy-state{font-size:.875rem;color:#b6ccdf}.sf-spell{max-width:min(430px,58%)}#sf-role{font-size:.875rem;color:#f0cc95}#sf-cost{font-size:.875rem;color:#c5dfef;font-variant-numeric:tabular-nums}#sf-spell-hint{font-size:.875rem;line-height:1.4;color:#bbcbdc;max-width:380px}#sf-action{font-size:.875rem}.sf-charge{height:4px}.sf-charge.ready #sf-charge-fill{box-shadow:0 0 9px var(--sf-element)}details>summary{min-height:44px;display:flex;align-items:center;font-size:.875rem;cursor:pointer}.spell-guide{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:7px 0 14px}.spell-card{display:grid;gap:5px;text-align:left;padding:12px;line-height:1.35;font-size:.875rem}.spell-card b{font-size:1rem;font-weight:500}.spell-card span{color:#bdcfdf}.spell-card .recipe-key{color:#e5c28e;font-variant-numeric:tabular-nums}.spell-card small{font-size:.875rem;color:#9fb9d0}.combo-guide{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;font-size:.875rem;line-height:1.5}.combo-guide b{font-weight:500;color:#f0cc95}.rules{font-size:.875rem}.stats-scroll{overflow-x:auto}.combat-stats{width:100%;border-collapse:collapse;font-size:.875rem;font-variant-numeric:tabular-nums}.combat-stats th,.combat-stats td{padding:9px 6px;border-bottom:1px solid #92adc52b;text-align:right;white-space:nowrap}.combat-stats th:first-child{text-align:left;font-weight:400}.combat-stats thead th{color:#b9cbdd;font-weight:500}@media(max-width:650px){.energy-panel{right:16px;bottom:85px;width:160px}.sf-health{bottom:180px}.sf-spell{bottom:90px;max-width:53%}#sf-spell-hint{display:none}#sf-role,#sf-cost,#sf-action{font-size:.875rem}.spell-guide,.combo-guide{grid-template-columns:1fr}}@media(max-height:580px){.sf-spell{bottom:58px;gap:3px}#sf-spell-hint{display:none}.energy-panel{bottom:62px}.sf-health{bottom:153px}}

/* The combat HUD is icon-first; explanations remain in the paused guide. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.combat-score{margin-left:auto;display:flex;align-items:center;gap:20px}.combat-score>span{display:flex;align-items:center;gap:7px;color:#c8d5e5}.combat-score i{width:20px;height:20px}.combat-score b{font-size:1rem;font-weight:500;font-variant-numeric:tabular-nums}i[data-icon]{display:inline-flex;flex:none;font-style:normal}svg{display:block;width:100%;height:100%}.sf-spell{left:32px;bottom:24px;width:142px;max-width:none;display:flex;flex-direction:column;gap:9px}.spell-sources{display:flex;gap:9px;align-items:center;height:22px}.source-icon{width:22px;height:22px}.source-link{width:10px;height:1px;background:#a4b6cb66}.spell-icon-row{display:flex;align-items:center;gap:13px}.spell-badge{--cooldown:0deg;position:relative;width:59px;height:59px;padding:12px;flex:none;color:var(--sf-element);border:1px solid #8c9ebf55;border-radius:50%;background:#101b2dcc;box-shadow:0 4px 20px #0005}.spell-badge:after{content:'';position:absolute;inset:-4px;border-radius:50%;background:conic-gradient(#e5edf7cc var(--cooldown),transparent 0);mask:radial-gradient(transparent 66%,#000 68%);pointer-events:none}.spell-badge.empty{color:#8094ae;border-color:#8c9ebf33}.spell-badge.charging{border-color:var(--sf-element)}.spell-badge.ready{box-shadow:0 0 14px color-mix(in srgb,var(--sf-element) 30%,transparent)}#sf-spell-icon{display:block;width:100%;height:100%}.spell-cost{display:flex;align-items:center;gap:4px;color:#bad5e3}.spell-cost[hidden]{display:none}.spell-cost i{width:15px;height:15px}.spell-cost b{font-size:.875rem;font-weight:400;font-variant-numeric:tabular-nums}.sf-charge{width:86px;height:3px;margin:0}.hud-keys{left:50%;right:auto;bottom:24px;transform:translateX(-50%);gap:8px;flex-wrap:nowrap}.element-tile{position:relative;display:flex;align-items:center;justify-content:center;width:46px;height:52px;padding:10px;color:var(--element-color);border:1px solid #8b9fb044;border-radius:8px;background:#101b2dc7;box-shadow:0 3px 14px #0003}.element-key{font-size:.75rem;color:#bdcbdc}.element-tile .element-key{position:absolute;left:5px;top:2px}.element-tile.active{border-color:var(--element-color);background:#1d2d40e6}.element-stack{position:absolute;bottom:4px;left:0;right:0;display:flex;justify-content:center;gap:4px}.element-stack i{width:3px;height:3px;border-radius:50%;background:var(--element-color)}.energy-panel{bottom:25px;right:32px;width:204px}.energy-heading>i{width:19px;height:19px;color:#a8dce9}.energy-meter{margin:8px 0 0;height:6px}.sf-vitals{position:absolute;right:32px;bottom:88px;display:flex;align-items:center;gap:16px;pointer-events:none}.health-compact{display:flex;align-items:center;gap:9px;color:#e9edf5}.health-compact>i{width:24px;height:24px;color:#f09595}.health-compact b{font-size:1.4rem;font-weight:500;font-variant-numeric:tabular-nums}.health-compact.low{color:#ff9a91}.status-icons{display:flex;gap:9px}.state-icon{--remaining:360deg;position:relative;width:24px;height:24px;padding:2px;color:var(--status-color)}.state-icon:after{content:'';position:absolute;inset:-3px;border-radius:50%;background:conic-gradient(var(--status-color) var(--remaining),transparent 0);mask:radial-gradient(transparent 63%,#000 67%)}.target-prop{position:absolute;left:50%;top:calc(50% + 32px);transform:translateX(-50%);display:flex;gap:5px;align-items:center;color:#bdc9d6;font-size:.875rem;font-variant-numeric:tabular-nums;pointer-events:none}.target-prop[hidden]{display:none}.target-prop>i{width:17px;height:17px}.quick-select [data-element]{display:flex;align-items:center;gap:8px}.quick-select [data-element] svg{width:22px;height:22px}.spell-card{position:relative;padding-right:50px}.spell-card-glyph{position:absolute;right:12px;top:15px;width:28px;height:28px}@media(max-width:650px){.sf-spell{left:16px;bottom:22px;width:110px}.energy-panel{right:16px;bottom:26px;width:130px}.sf-vitals{right:16px;bottom:83px;gap:10px}.hud-keys{bottom:22px;gap:5px}.element-tile{width:35px;height:46px;padding:8px}.spell-badge{width:50px;height:50px;padding:10px}.spell-cost{gap:2px}.spell-icon-row{gap:8px}.combat-score{gap:12px}.status-icons{gap:6px}.state-icon{width:20px;height:20px}.health-compact b{font-size:1.1rem}}

#sf-special-ready{position:absolute;right:-5px;bottom:-4px;width:20px;height:20px;padding:3px;border:1px solid #a9bfd4aa;border-radius:50%;background:#142335;color:#d1c1fa}#sf-special-ready[hidden]{display:none}.spell-counter{border-top:1px solid #9ab3ca22;padding-top:7px;margin-top:2px;color:#94abc1!important;font-size:.875rem;line-height:1.4}

.chest-source{border-style:double!important;border-color:#d2c3ab88!important}#sf-self-ready{position:absolute;left:-7px;top:-7px;width:22px;height:22px;padding:3px;background:#16263b;border:1px solid #cbdfe9;border-radius:50%;color:#d5e5ee}#sf-self-ready[hidden]{display:none}.barrier-hud{display:flex;align-items:center;gap:5px;color:#f1d9a0;font-size:1rem}.barrier-hud i{width:21px;height:21px}.barrier-hud[hidden]{display:none}.sf-spell{width:180px}.spell-sources{width:145px}.hud-keys{gap:6px}@media(max-width:650px){.hud-keys{display:grid;grid-template-columns:repeat(4,35px);left:16px;bottom:22px;transform:none;gap:5px}.sf-spell{bottom:143px;width:175px}.sf-vitals{bottom:138px}.energy-panel{bottom:30px}.spell-sources{width:130px}.element-tile{height:44px}}

.status-icons{max-width:210px;flex-wrap:wrap;justify-content:flex-end}@media(max-width:650px){.status-icons{max-width:160px}}

.lan-panel{margin:20px 0;padding:16px;border:1px solid #8b9fb044;border-radius:12px;background:#111d2bcc}.lan-panel[hidden],.lan-score[hidden]{display:none}.lan-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lan-panel label{display:flex;flex-direction:column;gap:7px;margin-bottom:12px;font-size:.9rem;color:#c5d2df}.lan-panel input{width:100%;padding:10px 12px;background:#101722;border:1px solid #8b9fb055;border-radius:7px;color:#e2edf5;font:inherit}.lan-panel .error{color:#f3a29b}.lan-score{position:absolute;left:50%;top:22px;transform:translateX(-50%);font-size:1.15rem;font-variant-numeric:tabular-nums;color:#e8dfc5}#sf-triple-guide{max-height:440px;overflow-y:auto;padding-right:5px}.lan-panel button[hidden]{display:none}

#sf-fps{position:absolute;left:1rem;top:1rem;padding:.35rem .6rem;border:1px solid #6b8ba433;border-radius:.4rem;background:#0c1725aa;color:#d6e8f4;font:12px monospace;pointer-events:none;z-index:10}#sf-fps[hidden]{display:none}
