@font-face{font-family:Inter Variable;src:url(/typing-game/assets/inter-latin-wght-normal-Dx4kXJAl.woff2)format("woff2");font-weight:100 900;font-display:swap}@font-face{font-family:JetBrains Mono Variable;src:url(/typing-game/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2)format("woff2");font-weight:100 800;font-display:swap}@font-face{font-family:JetBrains Mono Variable;src:url(/typing-game/assets/jetbrains-mono-latin-wght-italic-B2M6KQje.woff2)format("woff2");font-weight:100 800;font-style:italic;font-display:swap}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#211c2d;font-synthesis:none;--muted:#625b70;--border:#e7e2ee;--accent:#6842b5;--accent-dark:#543198;--mono:"JetBrains Mono Variable", ui-monospace, monospace;background:#fff;font-family:Inter Variable,system-ui,sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}body{flex-direction:column;min-height:100svh;margin:0;display:flex}button{font:inherit}button:enabled{cursor:pointer}button:focus-visible,a:focus-visible,.cm-editor:focus-within{outline-offset:2px;outline:2px solid #946adb}.game{width:min(100% - 3rem,52rem);margin-inline:auto}.game:not(.edit-mode){flex-direction:column;flex:1 0 auto;padding-block:1rem;display:flex}.game:not(.edit-mode):before{content:"";flex:1;max-height:5vw}.game:not(.edit-mode):after{content:"";flex:2}.game-footer{text-align:center;color:#766c82;margin-top:auto;padding-bottom:1rem;font-size:.75rem}.game-footer a{color:inherit;padding:.35rem;text-decoration:none;display:inline-block}.game-footer a:hover{color:var(--accent-dark)}.game-footer span{font:600 1em var(--mono);text-underline-offset:.2em;text-decoration:underline}.editor-panel{background:#fcfbfe;border:1px solid #e0daeb;border-radius:12px;box-shadow:0 2px 4px #29184708,0 12px 30px #36205306}.editor-bar{border-bottom:1px solid var(--border);background:#f7f4fb;border-radius:11px 11px 0 0;justify-content:space-between;align-items:center;gap:1rem;min-height:2.875rem;padding:.25rem .85rem .25rem 1.05rem;display:flex}.file-name{color:#544764;font:550 .8125rem var(--mono);align-items:center;gap:.6rem;display:flex}.lucide{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:1.125rem;height:1.125rem}.lucide-file-code{color:#8b6aa6}#checker-loading{color:var(--muted);font:450 .75rem Inter Variable,system-ui,sans-serif}#syntax-notice{color:#fff;white-space:nowrap;background:#b42343;border:0;border-radius:5px;padding:.15rem .45rem;font:600 .75rem/1.4 Inter Variable,system-ui,sans-serif}#syntax-notice:hover{background:#941a35}.quiet-button{color:var(--muted);background:0 0;border:0;border-radius:5px;padding:.4rem .55rem;font-size:.8125rem;font-weight:550}.quiet-button:hover:enabled{color:var(--accent-dark);background:#ebe4f4}.quiet-button:disabled{opacity:.55}.editor-actions{gap:.15rem;margin-inline-start:auto;display:flex}.player-navigation{gap:.15rem;margin-right:.2rem;display:flex}.edit-mode .player-navigation{display:none}.player-navigation button:disabled{opacity:.3}.icon-button{place-items:center;width:2rem;height:2rem;padding:0;display:grid;position:relative}#reset-code:not(.restart) .lucide-list-restart,#reset-code.restart .lucide-rotate-ccw{display:none}.icon-button:is(:hover,:focus-visible):after{content:attr(aria-label);z-index:1;border:1px solid var(--border);color:var(--muted);white-space:nowrap;pointer-events:none;background:#fff;border-radius:6px;padding:.35rem .55rem;position:absolute;top:calc(100% + .25rem);right:0;box-shadow:0 3px 12px #29184718}#detail-dialog{border:1px solid var(--border);width:min(24rem,100% - 2rem);color:inherit;border-radius:12px;padding:0;box-shadow:0 12px 40px #29184726}#detail-dialog::backdrop{background:#211c2d40}#detail-dialog form{padding:1rem 1.25rem 1.25rem}#detail-dialog header{justify-content:space-between;align-items:center;display:flex}#detail-title{margin:0;font-size:1rem}#detail-dialog button{place-items:center;width:2rem;height:2rem;margin-right:-.4rem;display:grid}#detail-body p{overflow-wrap:anywhere;margin:.5rem 0 0;font-size:.9375rem;line-height:1.6}#detail-body a{color:var(--accent-dark);text-underline-offset:.15em}#detail-body code{font-family:var(--mono)}#detail-dialog:has(pre){width:min(42rem,100% - 2rem)}#detail-body pre{font:.8125rem/1.6 var(--mono);margin:.5rem 0 0;overflow:auto}#editor .cm-editor{border-radius:0 0 11px 11px}#editor .cm-scroller{font:455 clamp(1rem, 2.3vw, 1.125rem)/1.7 var(--mono);border-radius:inherit;scrollbar-width:thin}#editor .cm-content{caret-color:var(--accent-dark);padding:.95rem 1.1rem .72rem 0}#editor .cm-line{padding-inline:.85rem .55rem}#editor .cm-gutters{color:#766c82;-webkit-user-select:none;user-select:none;background:#fcfbfe;border:0}#editor .cm-lineNumbers .cm-gutterElement{min-width:2.45rem;padding:0 .25rem 0 .8rem}#editor .cm-activeLine{background:#6842b50d}#editor .cm-selectionBackground{background:#e0cef8}#editor .cm-content ::selection{background:#e0cef8}#editor .cm-cursor{border-left:2px solid var(--accent)}.py-keyword{color:#a32769}.py-function{color:#2852a3}.py-type{color:#6842b5}.py-string{color:#196c51}.py-number{color:#a44a20}.py-comment{color:#69657a}.py-punctuation{color:#625971}.type-slot,.empty-slot{border-bottom:1px dashed #8c62cd;border-radius:3px}.type-slot{color:var(--accent-dark);background:#a879e329;font-weight:650}.type-placeholder{color:#625971;cursor:text}.empty-slot{background:#eee3fd;padding-inline-end:3ch}.goal-pending,.goal-error,.goal-type-matched{cursor:help;border-radius:3px}.goal-pending{background:#fbe8ec}.type-goal.goal-pending{color:#1b5674;background:#d3f0ff}.goal-error{--ink:#efa7bb;background:#f7d3dd}.goal-type-matched{--ink:#9cdbb3;background:#d8f0df}.type-goal{margin-inline-start:.25em;padding-inline:.3em;font-style:italic}#editor .cm-tooltip-hover{border:1px solid var(--border);background:#fff;border-radius:6px;max-width:min(28rem,100vw - 2rem);box-shadow:0 3px 12px #29184718}.feedback-tooltip{color:var(--muted);overflow-wrap:anywhere;padding:.4rem .6rem;font-size:.8125rem}.feedback-tooltip code{font:550 .8125rem var(--mono);color:var(--accent-dark)}.diagnostic-mark{cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none;text-underline-offset:.24em;-webkit-text-decoration:underline wavy #be3e5e;text-decoration:underline wavy #be3e5e}.mark-warning{text-decoration-color:#a76516}.mark-info,.mark-hint{text-decoration-color:#735fa6}.checker-error{border-top:1px solid var(--border);color:#a72e51;margin:0;padding:.65rem .85rem;font-size:.875rem}.success[inert]{visibility:hidden}.editor-panel:has(+.success:not([inert])){border-bottom-color:#d6e9dd;border-radius:12px 12px 0 0}.success{background:#f2faf5;border:1px solid #d6e9dd;border-top:0;border-radius:0 0 11px 11px;align-items:center;gap:.65rem;padding:.65rem .85rem;display:flex}.celebrate .success:not([inert]){animation:.25s ease-out both appear}.success-icon{color:#26744c;background:#def2e7;border-radius:50%;flex:0 0 1.65rem;place-items:center;height:1.65rem;display:grid;position:relative}.celebrate .success:not([inert]) .success-icon{animation:.46s cubic-bezier(.18,.75,.26,1.25) both arrive}.celebrate .success:not([inert]) .success-icon:before{content:"";border-radius:inherit;border:1px solid #60a981;animation:.8s ease-out .14s both ripple;position:absolute;inset:0}.success-title{color:#205b3b;margin:0;font-size:.9375rem;font-weight:670}.primary-button{background:var(--accent);color:#fff;white-space:nowrap;border:0;border-radius:6px;align-items:center;gap:.45rem;margin-inline-start:auto;padding:.48rem .8rem;font-size:.875rem;font-weight:600;display:inline-flex}.primary-button:hover{background:var(--accent-dark)}.primary-button kbd{font:.75rem var(--mono);border:1px solid #ffffff65;border-radius:3px;padding:.15em .35em}#editor a,#editor a .py-comment{color:var(--accent)}#editor a{text-underline-offset:.15em}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@keyframes appear{0%{opacity:0}}@keyframes arrive{0%{opacity:0;transform:translateY(9px)scale(.94)}}@keyframes ripple{to{opacity:0;transform:scale(1.6)}}@media (prefers-reduced-motion:no-preference){.celebrate :is(.goal-error,.goal-type-matched){animation:.55s ease-out ink-fill}}@keyframes ink-fill{0%,to{background-image:linear-gradient(90deg, transparent 40%, var(--ink) 59%, #fff5 61%);background-size:250% 100%}0%{background-position:100%}to{background-position:0}}@media (width>=40rem){.game:not(.edit-mode):before{max-height:min(16svh,15rem)}}@media (width<=34rem){.game{width:calc(100% - 2rem)}.editor-bar{flex-wrap:wrap;gap:.25rem;padding-inline:.5rem}#editor .cm-lineNumbers .cm-gutterElement{min-width:1.9rem;padding-left:.4rem}#editor .cm-line{padding-left:.55rem}}.game.edit-mode{align-items:start;gap:1.25rem;padding-block:clamp(1.5rem,4vw,3rem) 2.5rem;display:grid}@media (width>=72rem){.game.edit-mode{grid-template-columns:repeat(2,minmax(0,1fr));width:min(100% - 3rem,100rem)}}#level-authoring .editor-bar{flex-wrap:wrap}.level-navigation{color:var(--muted);white-space:nowrap;align-items:center;gap:.25rem;font-size:.8125rem;display:flex}#level-source{resize:vertical;width:100%;color:inherit;font:450 .875rem/1.6 var(--mono);tab-size:4;background:#fff;border:0;padding:.85rem 1rem;display:block}#level-source:focus-visible{outline-offset:-2px;outline:2px solid #946adb}.level-source-footer{border-top:1px solid var(--border);color:var(--muted);padding:.65rem .85rem;font-size:.8125rem}.level-markers{flex-wrap:wrap;gap:.3rem .5rem;margin:0;padding:0;list-style:none;display:flex;position:relative}.level-markers code{font-family:var(--mono);color:var(--accent-dark)}.level-markers button{background:#f7f4fb;padding:.2rem .4rem;font-weight:450}.level-markers button:hover{background:#ebe4f4}.marker-hint{z-index:2;border:1px solid var(--border);overflow-wrap:anywhere;background:#fff;border-radius:6px;padding:.45rem .6rem;line-height:1.5;display:none;position:absolute;inset-block-end:100%;inset-inline:0;box-shadow:0 3px 12px #29184718}:is(.level-markers button:hover+.marker-hint,.level-markers:not(:has(button:hover)) button:focus-visible+.marker-hint){display:block}#level-source-help{margin:.55rem 0 0}@media (prefers-reduced-motion:reduce){*,:before,:after{animation:none!important}}
