html,body{margin:0;height:100%;overflow:hidden;background:#4f5766}body{font:13px/1.4 system-ui,-apple-system,Segoe UI,sans-serif;color:#eef0f4}#app,#app canvas{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block}#hud{position:fixed;top:14px;left:14px;padding:10px 12px;min-width:150px;background:#14181e8c;border-radius:8px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}#hud .title{font-weight:600;letter-spacing:.04em;margin-bottom:6px;color:#9fe0bb}#hud .row{display:flex;justify-content:space-between;gap:12px}#hud .label{opacity:.65}#hud button{margin-top:8px;width:100%;padding:6px 8px;border:0;border-radius:6px;cursor:pointer;background:#2a6b4c;color:#fff;font:inherit}#hud button:hover{background:#33805b}#help{position:fixed;bottom:14px;left:50%;transform:translate(-50%);padding:6px 12px;width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;background:#14181e80;border-radius:8px;text-align:center;opacity:.85}#title{--foot: 104px;position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;cursor:default;overflow:hidden;background:#140c24;transition:opacity .4s ease}#title:before{content:"";position:absolute;top:-48px;right:-48px;bottom:-48px;left:-48px;background:url(/initial_screen.jpg) center / cover no-repeat;filter:blur(28px) brightness(.5) saturate(1.15)}#title:after{content:"";position:absolute;inset:0 0 var(--foot) 0;background:url(/initial_screen.jpg) center / contain no-repeat}#title.ready{cursor:pointer}#title.leaving{opacity:0;pointer-events:none}#title .title-foot{position:absolute;left:0;right:0;bottom:env(safe-area-inset-bottom,0px);z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 16px 10px}#title .title-line{max-width:100%;text-align:center;padding:7px 18px;border-radius:999px;background:#0a0614b8;color:#f3e9ff;font-size:15px;letter-spacing:.04em;text-shadow:0 1px 2px #000}#title .legal{margin:0;max-width:840px;text-align:center;text-wrap:balance;font-size:11px;line-height:1.4;color:#f3e9ffb8;text-shadow:0 1px 2px #000}#title .press{display:none;animation:title-pulse 1.6s ease-in-out infinite}#title.ready .press{display:block}@keyframes title-pulse{50%{opacity:.55}}#paused{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;cursor:pointer;background:#0f121873}#paused .box{padding:18px 28px;background:#14181ecc;border-radius:10px;text-align:center}#paused .big{font-size:24px;font-weight:600;letter-spacing:.06em;color:#9fe0bb;margin-bottom:6px}#paused[hidden]{display:none}#hud .dummy-box{margin-top:8px;padding-top:6px;border-top:1px solid rgba(255,255,255,.12)}#hud .hp{height:6px;margin:4px 0 3px;background:#ffffff1f;border-radius:3px;overflow:hidden}#hud .hp-fill{height:100%;width:100%;background:#e2b84a;transition:width .2s ease-out}.combo-banner{position:fixed;top:16%;left:50%;transform:translate(-50%);text-align:center;pointer-events:none;opacity:0}.combo-banner.show{animation:combo-in 1.6s ease-out forwards}.combo-banner .hits{font:800 44px/1 system-ui,sans-serif;letter-spacing:.06em;color:#ffe37a;-webkit-text-stroke:2px #4a2a00;text-shadow:0 3px 0 #4a2a00,0 0 18px rgba(255,200,60,.6)}.combo-banner .name{margin-top:6px;font-weight:700;font-size:16px;letter-spacing:.12em;color:#9fe0bb;text-shadow:0 2px 4px rgba(0,0,0,.7);text-transform:uppercase}@keyframes combo-in{0%{opacity:0;transform:translate(-50%) scale(1.6)}10%{opacity:1;transform:translate(-50%) scale(1)}75%{opacity:1}to{opacity:0;transform:translate(-50%) translateY(-10px)}}.combat-status{position:fixed;top:calc(16% + 78px);left:50%;transform:translate(-50%);pointer-events:none;font:800 18px/1 system-ui,sans-serif;letter-spacing:.12em;opacity:0}.combat-status.show{opacity:1}.combat-status.miss{color:#d7dbe3;text-shadow:0 2px 4px rgba(0,0,0,.7)}.combat-status.vulnerable{color:#ff5a4f;text-shadow:0 0 10px rgba(255,60,40,.7);animation:blink .25s steps(2) infinite}@keyframes blink{50%{opacity:.45}}.popup{position:fixed;transform:translate(-50%,-50%);pointer-events:none;white-space:nowrap;font:800 22px/1 system-ui,sans-serif;color:#fff;-webkit-text-stroke:1px #3a1a10;text-shadow:0 2px 3px rgba(0,0,0,.6);animation:pop .9s ease-out forwards}.popup.heavy{font-size:30px;color:#ffb347}.popup.blocked{font-size:16px;color:#a9d8ff}.popup.ko{font-size:34px;color:#ff5a4f}@keyframes pop{0%{opacity:0;transform:translate(-50%,-30%) scale(1.5)}15%{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-260%)}}#hud .spell-box{margin-top:8px;padding-top:6px;border-top:1px solid rgba(255,255,255,.12)}#hud .spell-name{font-weight:700;letter-spacing:.06em;color:#ffb35c}#hud .spell-state{font-variant-numeric:tabular-nums}#hud .spell-box.ready .spell-state{color:#ffd27a;font-weight:700}#hud .spell-box.cooling .spell-name,#hud .spell-box.cooling .spell-state{opacity:.55}#hud .cd{height:5px;margin-top:4px;background:#ffffff1f;border-radius:3px;overflow:hidden}#hud .cd-fill{height:100%;width:100%;background:linear-gradient(90deg,#c2410c,#fb923c,#fde68a)}#hud .spell-box.cooling .cd-fill{background:#7c4a2a}#hud .spell-box.expelliarmus .spell-name{color:#ff7a70}#hud .spell-box.expelliarmus.ready .spell-state{color:#ffb0a8}#hud .spell-box.expelliarmus .cd-fill{background:linear-gradient(90deg,#8a0a14,#e5262f,#ffc2bd)}#hud .spell-box.expelliarmus.cooling .cd-fill{background:#6e2a2e}#hud .spell-box.protego .spell-name{color:#8fd0ff}#hud .spell-box.protego.ready .spell-state{color:#c8e8ff}#hud .spell-box.protego .cd-fill{background:linear-gradient(90deg,#1d4f8a,#4aa3e8,#d2ecff)}#hud .spell-box.protego.cooling .cd-fill{background:#2c4a66}#hud .spell-box.impedimenta .spell-name{color:#6fe3e0}#hud .spell-box.impedimenta.ready .spell-state{color:#c4f6f4}#hud .spell-box.impedimenta .cd-fill{background:linear-gradient(90deg,#0b5a63,#22b8c4,#cff8f6)}#hud .spell-box.impedimenta.cooling .cd-fill{background:#23515a}#hud .spell-box.illusio .spell-name{color:#c9c2ff}#hud .spell-box.illusio.ready .spell-state{color:#ecebff}#hud .spell-box.illusio .cd-fill{background:linear-gradient(90deg,#4a3f8a,#9d95e8,#f1efff)}#hud .spell-box.illusio.cooling .cd-fill{background:#3e3a5e}#hud .spell-box.learned{animation:slot-in .6s ease-out}@keyframes slot-in{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:none}}.popup.spell{color:#fff;-webkit-text-stroke:2px #4a1400;text-shadow:0 2px 6px rgba(0,0,0,.9)}.popup.spell.heavy{font-size:32px}#hud .duel-box{margin-top:8px;padding-top:6px;border-top:1px solid rgba(255,255,255,.12)}#hud .duel-box .fighter{margin-bottom:4px}#hud .duel-box .hp-fill{background:#3fa36b}#hud .duel-box .hp-fill.ginny{background:#c7492a}#hud .duel-box .ai-state{font-variant-numeric:tabular-nums;color:#ffb35c}#hud .duel-box:not(.on) .ai-state{opacity:.55}#hud .duel-button{background:#7a1f2b}#hud .duel-button:hover{background:#932a37}.announce{position:fixed;top:34%;left:50%;transform:translate(-50%);pointer-events:none;opacity:0;font:900 46px/1 system-ui,sans-serif;letter-spacing:.08em;color:#fff;white-space:nowrap;-webkit-text-stroke:2px #3a0c10;text-shadow:0 3px 0 #3a0c10,0 0 22px rgba(255,80,60,.6)}.announce.show{animation:combo-in 1.8s ease-out forwards}.announce.disarm{color:#ff8a80}.announce.win{color:#ffe37a}#mode{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#0f12188c}#mode[hidden]{display:none}#mode .box{padding:22px 30px;background:#14181ee0;border-radius:12px;text-align:center;min-width:260px}#mode .big{font-size:28px;font-weight:700;letter-spacing:.08em;color:#9fe0bb}#mode .sub{margin:4px 0 14px;opacity:.75}#mode button{display:block;width:100%;margin-top:10px;padding:10px 14px;border:0;border-radius:8px;cursor:pointer;background:#2a6b4c;color:#fff;font:inherit;text-align:left}#mode button:hover{filter:brightness(1.15)}#mode button b{display:block;font-size:16px}#mode button span{opacity:.8;font-size:12px}#hud .mode-button{background:#3b4252}#hud [hidden]{display:none!important}#mode .pick{margin-top:10px;padding:10px 14px 12px;border-radius:8px;text-align:left}#mode .pick.practice{background:#3a2f5c}#mode .pick.campaign{background:#5a1720}#mode .pick-title b{display:block;font-size:16px}#mode .pick-title span{opacity:.8;font-size:12px}#mode .levels,#mode .opponents{display:flex;gap:8px;margin-top:8px}#mode .levels button,#mode .opponents button{flex:1;margin:0;text-align:center;padding:8px 6px;font-weight:700}#mode .levels button[data-level=easy]{background:#8a3a2a}#mode .levels button[data-level=normal]{background:#a3242f}#mode .levels button[data-level=hard]{background:#c0102a}#mode .practice .levels button[data-level=easy]{background:#5b4a8f}#mode .practice .levels button[data-level=normal]{background:#6c3f9e}#mode .practice .levels button[data-level=hard]{background:#7f2fae}#mode .levels button.confirm{outline:2px solid #ffe37a}#mode .opponents button{padding:6px;background:#ffffff14;font-weight:600}#mode .opponents button.on{background:#9c7fe0;color:#160f2b}#mode .opponents button:disabled{opacity:.45;cursor:default;filter:none}#mode .opponents small{display:block;font-size:10px;font-weight:400;opacity:.8}#mode .continue{margin-top:8px;padding:9px 12px;background:#c0102a;font-weight:600;text-align:center}#mode .continue small{display:block;font-weight:400;font-size:12px;opacity:.85}#mode .new-run{margin-top:8px;font-size:12px;opacity:.75}#mode .new-run.warn{opacity:1;color:#ffe37a}#mode [hidden]{display:none!important}#mode .repo{display:inline-block;margin-top:10px;font-size:12px;color:#9fe0bb;opacity:.8;text-decoration:none}#mode .repo:hover{opacity:1;text-decoration:underline}.volume{display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.12);cursor:default}.volume+.volume{margin-top:8px;padding-top:0;border-top:0}.volume .vol-name{opacity:.75;margin-right:2px;width:3.6em;text-align:left}.volume input[type=range]{flex:1;min-width:90px;accent-color:#9fe0bb;cursor:pointer}.volume .vol-value{width:3.6em;text-align:right;font-variant-numeric:tabular-nums}#mode .volume button,.volume button{display:inline-grid;place-items:center;width:26px;height:26px;margin:0;padding:0;border:0;border-radius:6px;background:#3b4252;color:#fff;font:600 16px/1 system-ui,sans-serif;text-align:center;cursor:pointer}.volume button:hover{filter:brightness(1.2)}@media (max-height: 640px){body:has(#mode:not([hidden])) #help{display:none}}#hud .duel-box .rounds{margin-left:.5em;color:#ffd27a;letter-spacing:.1em;font-size:.9em}#result{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#0f121899}#result[hidden]{display:none}#result .box{padding:24px 34px 22px;background:#14181eeb;border-radius:12px;text-align:center;min-width:280px;max-width:calc(100vw - 32px);box-sizing:border-box;animation:result-in .5s ease-out}#result .tag{font-weight:700;font-size:13px;letter-spacing:.2em;text-transform:uppercase;color:#9fe0bb}#result .title{margin:8px 0 6px;font:900 40px/1 system-ui,sans-serif;letter-spacing:.06em;color:#ffe37a;text-transform:uppercase;-webkit-text-stroke:1.5px #3a2a00;text-shadow:0 3px 0 #3a2a00,0 0 22px rgba(255,200,60,.5)}#result.spell .title{color:#ff8a80;-webkit-text-stroke-color:#3a0c10;text-shadow:0 3px 0 #3a0c10,0 0 22px rgba(255,60,50,.65)}#result.over .tag{color:#ff8a80}#result.over .title{color:#ff5a4f;-webkit-text-stroke-color:#3a0c10;text-shadow:0 3px 0 #3a0c10,0 0 22px rgba(255,40,30,.6)}#result .how{font-size:15px}#result .next{margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.12);opacity:.85}#result .next:empty{display:none}#result .actions{display:flex;gap:8px;margin-top:14px}#result .actions button{flex:1;padding:9px 12px;border:0;border-radius:8px;cursor:pointer;color:#fff;font:inherit;font-weight:600;background:#3b4252;white-space:nowrap}#result .actions button.main{background:#2a6b4c}#result .actions button:hover{filter:brightness(1.15)}@keyframes result-in{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}#round-fade{position:fixed;top:0;right:0;bottom:0;left:0;background:#05060a;opacity:0;pointer-events:none;transition:opacity .3s ease}#round-fade.on{opacity:1}#dobby-cameo{position:fixed;right:1vw;bottom:0;aspect-ratio:1;pointer-events:none;transform-origin:100% 100%;filter:drop-shadow(0 0 10px rgba(0,0,0,.45))}
