:root{--font-ui:system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Roboto, "Helvetica Neue", Arial, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*,:before,:after{box-sizing:border-box}html,body{overscroll-behavior:none;width:100%;height:100%;font-family:var(--font-ui);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;margin:0;padding:0;overflow:hidden}#stage{touch-action:none;-webkit-user-select:none;user-select:none;position:fixed;inset:0}#stage canvas{touch-action:none;display:block}#ui{pointer-events:none;touch-action:manipulation;position:fixed;inset:0}#ui>:not(.hud){pointer-events:auto}.loading{background:var(--ui-paper,#f4efe3);color:var(--ui-ink,#23263a);place-items:center;display:grid;position:fixed;inset:0}.loading-box{text-align:center;width:min(320px,80vw)}.loading-label{margin-bottom:.75rem;font-size:1.1rem}.loading-bar{border:2px solid;border-radius:6px;height:10px;overflow:hidden}.loading-fill{background:currentColor;height:100%;transition:width .12s linear}.loading-pct{font-variant-numeric:tabular-nums;margin-top:.5rem}.dev-panel{background:#ffffffe6;border:1px solid #333;border-radius:4px;flex-wrap:wrap;align-items:center;gap:6px;max-width:min(560px,96vw);padding:6px 8px;font:12px/1.4 monospace;display:flex;position:absolute;bottom:8px;left:8px}.hud{pointer-events:none;color:var(--ui-ink,#23263a);position:fixed;inset:0}.hud-bar,.hud-btn,.hud-progress,.hud-timer{pointer-events:auto}.hud-top{top:calc(8px + env(safe-area-inset-top,0px));pointer-events:none;align-items:center;gap:8px;display:flex;position:absolute;left:8px;right:8px}.hud-top>*{pointer-events:auto}.hud-progress,.hud-timer{background:var(--ui-paper,#f4efe3);font-variant-numeric:tabular-nums;border:2px solid;border-radius:999px;padding:4px 12px;font-weight:700}.hud-pass{opacity:.75;margin-left:8px;font-size:.85em;font-weight:400}.hud-pass.ok{opacity:1;text-decoration:underline}.hud-btn{background:var(--ui-paper,#f4efe3);min-width:44px;min-height:44px;color:inherit;cursor:pointer;border:2px solid;border-radius:12px;margin-left:auto;font-weight:700}.hud-banner{top:calc(64px + env(safe-area-inset-top,0px));background:var(--ui-paper,#f4efe3);pointer-events:none;white-space:nowrap;border:2px solid;border-radius:14px;padding:10px 18px;font-weight:700;animation:2.6s forwards banner;position:absolute;left:50%;transform:translate(-50%)}.hud-banner.perfect{background:var(--ui-accent,#e0794f);color:var(--ui-paper,#f4efe3)}@keyframes banner{0%{opacity:0;transform:translate(-50%,-10px)}10%,80%{opacity:1;transform:translate(-50%)}to{opacity:0}}.hud-bar{padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));background:var(--ui-paper,#f4efe3);overscroll-behavior:contain;border-top:2px solid;position:absolute;bottom:0;left:0;right:0;overflow-x:auto}.hud-list{gap:6px;width:max-content;margin:0;padding:0;list-style:none;display:flex}.hud-target{background:var(--ui-paper,#f4efe3);cursor:pointer;border:2px solid;border-radius:10px;width:56px;height:56px;padding:2px;position:relative}.hud-target img{width:100%;height:100%;display:block}.hud-target.found img{opacity:.35}.hud-target.selected{outline:3px solid var(--ui-accent,#e0794f);outline-offset:1px}.hud-check{background:var(--ui-ink,#23263a);width:22px;height:22px;color:var(--ui-paper,#f4efe3);text-align:center;border-radius:50%;font-size:14px;line-height:22px;position:absolute;top:-6px;right:-6px}.hud-detail{left:8px;right:8px;bottom:calc(82px + env(safe-area-inset-bottom,0px));background:var(--ui-paper,#f4efe3);pointer-events:auto;border:2px solid;border-radius:14px;gap:10px;max-width:520px;margin:0 auto;padding:10px;display:flex;position:absolute}.hud-detail-thumb{flex:none;width:72px;height:72px}.hud-detail-body{flex:1;min-width:0}.hud-hint{word-break:keep-all;overflow-wrap:anywhere;margin:0 0 8px;line-height:1.45}.hud-detail-actions{flex-wrap:wrap;gap:6px;display:flex}.hud-act{background:var(--ui-paper,#f4efe3);min-height:44px;color:inherit;font:inherit;cursor:pointer;border:2px solid;border-radius:10px;padding:6px 12px;font-weight:700}.hud-act:disabled{opacity:.45;cursor:default}.hud-act.ghost{min-width:44px;margin-left:auto}.hud-act small{margin-left:4px;font-weight:400}.hud-penalty{color:var(--ui-accent,#e0794f);margin-left:8px;animation:1.6s forwards banner}.overlay{pointer-events:auto;z-index:20;background:#00000059;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.sheet{border:2px solid var(--ui-ink,#23263a);background:var(--ui-paper,#f4efe3);width:min(420px,100%);max-height:100%;color:var(--ui-ink,#23263a);border-radius:16px;padding:18px;overflow:auto}.sheet-title{margin:0 0 12px;font-size:1.3rem}.sheet h3{margin:14px 0 6px;font-size:1rem}.stack{flex-direction:column;gap:8px;display:flex}.row{justify-content:flex-end;gap:8px;display:flex}.row.wrap{flex-wrap:wrap;justify-content:flex-start}.btn{background:var(--ui-paper,#f4efe3);min-height:44px;color:inherit;font:inherit;cursor:pointer;border:2px solid;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:8px 14px;font-weight:700;display:inline-flex}.btn.primary{background:var(--ui-ink,#23263a);color:var(--ui-paper,#f4efe3)}.btn.danger{border-style:dashed}.btn.small{min-height:32px;padding:2px 10px}.btn.mode{text-align:left;flex-direction:column;align-items:flex-start}.btn.mode small{font-weight:400}.big{font-size:1.4rem;font-weight:700}.badge{color:var(--ui-accent,#e0794f)}.field{grid-template-columns:6em 1fr;align-items:center;gap:8px;margin:4px 0;display:grid}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.notice{top:calc(56px + env(safe-area-inset-top,0px));border:2px solid var(--ui-ink,#23263a);background:var(--ui-paper,#f4efe3);max-width:min(520px,92vw);color:var(--ui-ink,#23263a);pointer-events:auto;z-index:30;border-radius:12px;align-items:center;gap:8px;padding:8px 12px;display:flex;position:fixed;left:50%;transform:translate(-50%)}.notice.update{top:auto;bottom:calc(20px + env(safe-area-inset-bottom,0px))}.unsupported{text-align:center;color:#23263a;background:#f4efe3;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:24px;display:flex;position:fixed;inset:0}.menu-note{background:var(--ui-paper,#f4efe3);text-align:center;border-radius:8px;max-width:22em;margin:0;padding:6px 10px;font-size:.85em}.licenses{margin:0;padding-left:1.2em;font-size:.9em;line-height:1.5}.title-screen{pointer-events:none;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:24px;display:flex;position:fixed;inset:0}.title-screen>*{pointer-events:auto}.logo{letter-spacing:.04em;border:3px solid var(--ui-ink,#23263a);background:var(--ui-paper,#f4efe3);color:var(--ui-ink,#23263a);border-radius:18px;margin:0;padding:4px 22px;font-size:clamp(2.6rem,12vw,5rem)}.menu{border:2px solid var(--ui-ink,#23263a);background:var(--ui-paper,#f4efe3);width:min(360px,90vw);color:var(--ui-ink,#23263a);border-radius:16px;flex-direction:column;gap:10px;padding:14px;display:flex}.menu .row{flex-wrap:wrap;justify-content:space-between}.page{background:var(--ui-paper,#f4efe3);color:var(--ui-ink,#23263a);padding:calc(12px + env(safe-area-inset-top,0px)) 14px calc(24px + env(safe-area-inset-bottom,0px));position:fixed;inset:0;overflow:auto}.page-head{align-items:center;gap:12px;max-width:960px;margin:0 auto 8px;display:flex}.page-head h1{margin:0;font-size:1.5rem}.page-body{max-width:960px;margin:0 auto}.track h2{margin:16px 0 8px;font-size:1.15rem}.track-stages{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin:0;padding:0;list-style:none;display:grid}.stage-card{background:var(--ui-paper,#f4efe3);width:100%;min-height:96px;color:inherit;font:inherit;text-align:left;cursor:pointer;border:2px solid;border-radius:12px;flex-direction:column;align-items:flex-start;gap:2px;padding:10px;display:flex}.stage-card.locked{border-style:dashed}.stage-card.perfect{background:var(--ui-ink,#23263a);color:var(--ui-paper,#f4efe3)}.stage-icon{font-size:1.2rem}.stage-name{font-weight:700}.stage-sub{font-size:.85rem}.field.wide{grid-template-columns:7em 1fr}.field input,.field select,.page select{background:var(--ui-paper,#f4efe3);min-height:44px;color:inherit;font:inherit;border:2px solid;border-radius:10px;min-width:0;padding:4px 8px}.levels{border:none;flex-wrap:wrap;gap:6px;margin:12px 0;padding:0;display:flex}.levels legend{margin-bottom:6px;font-weight:700}.chip{border:2px solid;border-radius:999px;align-items:center;gap:4px;min-height:44px;padding:4px 12px;display:inline-flex}.recent{flex-direction:column;gap:6px;padding:0;list-style:none;display:flex}.tip{left:50%;top:calc(64px + env(safe-area-inset-top,0px));border:2px solid var(--ui-ink,#23263a);background:var(--ui-paper,#f4efe3);max-width:min(480px,92vw);color:var(--ui-ink,#23263a);z-index:15;border-radius:14px;align-items:center;gap:8px;padding:10px 12px;display:flex;position:fixed;transform:translate(-50%)}#ui>.tip{pointer-events:none}#ui>.tip button{pointer-events:auto}.field .row{justify-content:flex-start;min-width:0}.field .row input{flex:auto;width:0}#ui{zoom:var(--ui-scale,1)}:focus-visible{outline:3px solid var(--ui-accent,#e0794f);outline-offset:2px}.btn.small{min-width:44px;min-height:44px}.field.a11y{flex-direction:column;align-items:stretch;gap:2px;margin:8px 0;display:flex}.field.a11y label{flex-wrap:wrap;align-items:center;gap:8px;min-height:44px;display:flex}.field.a11y input[type=checkbox]{width:24px;height:24px}.field.a11y small{opacity:.85}.sr-only{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}html.reduce-motion *,html.reduce-motion :before,html.reduce-motion :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}html.high-contrast .btn,html.high-contrast .hud-btn,html.high-contrast .hud-progress,html.high-contrast .hud-timer,html.high-contrast .sheet,html.high-contrast .stage-card,html.high-contrast .hud-list button,html.high-contrast .menu{border-width:3px}html.high-contrast body{font-weight:500}.hud-zoom{right:calc(8px + env(safe-area-inset-right,0px));bottom:calc(88px + env(safe-area-inset-bottom,0px));pointer-events:auto;flex-direction:column;gap:6px;display:flex;position:absolute}.hud-zoom .hud-btn{margin:0}.vcursor{border:3px solid var(--ui-ink,#23263a);width:28px;height:28px;box-shadow:0 0 0 2px var(--ui-paper,#f4efe3);pointer-events:none;z-index:12;border-radius:50%;margin:-14px 0 0 -14px;position:fixed}.vcursor:after{content:"";background:var(--ui-ink,#23263a);border-radius:50%;width:4px;height:4px;margin:-2px 0 0 -2px;position:absolute;top:50%;left:50%}.vcursor.held{background:color-mix(in srgb, var(--ui-accent,#e0794f) 35%, transparent)}.keys{grid-template-columns:auto 1fr;gap:4px 12px;display:grid}.keys kbd{font:inherit;white-space:nowrap;border:2px solid;border-radius:6px;padding:0 6px;font-weight:700}@media (orientation:landscape) and (height<=480px){.hud-bar{width:76px;padding:calc(60px + env(safe-area-inset-top,0px)) calc(6px + env(safe-area-inset-right,0px)) 6px 6px;top:0;left:auto;overflow-y:auto}.hud-list{flex-direction:column}.hud-zoom{right:calc(90px + env(safe-area-inset-right,0px));bottom:calc(8px + env(safe-area-inset-bottom,0px));flex-direction:row}.hud-top{right:90px}}.field.a11y label{flex-wrap:nowrap}.field.a11y label>span{flex:auto}.sheet select,.page select,.sheet input[type=range]{min-height:44px}.title-screen{justify-content:safe center;overflow-y:auto}
