:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#08111f;color:#e5eefb}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0}button,input,textarea,select{font:inherit}.app-shell{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:#08111f}.page-header{width:100%;background:#1376c8;border-bottom:1px solid rgba(255,255,255,.18);box-shadow:0 14px 32px #02081747}.page-header-inner{width:100%;max-width:1280px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px clamp(14px,4vw,28px)}.header-copy{min-width:0}.brand-lockup{display:flex;align-items:center;gap:13px;min-width:0}.bitecode-logo-mark{width:48px;height:48px;flex:0 0 auto;object-fit:contain;filter:drop-shadow(0 6px 12px rgba(3,31,53,.22))}.eyebrow{margin:0 0 4px;color:#ffffffd1;font-size:.72rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase}h1{margin:0;color:#fff;font-size:clamp(1.6rem,2.2vw,2.35rem);line-height:1.05}.subtitle{max-width:72vw;margin:6px 0 0;overflow:hidden;color:#ffffffe0;font-size:.98rem;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.header-actions{flex:0 0 auto;display:flex;align-items:center;gap:10px}.achievement-strip{display:flex;gap:8px;padding:6px;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:#ffffff1a}.achievement-medal{position:relative;display:grid;width:44px;height:44px;place-items:center;border:1px solid rgba(255,255,255,.15);border-radius:50%;background:#ffffff1a;color:#d8edff94}.achievement-medal>svg:not(.achievement-lock){width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.achievement-medal.is-current,.achievement-medal.is-earned{color:#fff}.achievement-bronze.is-current,.achievement-bronze.is-earned{border-color:#b86b35;background:#b86b35}.achievement-silver.is-current,.achievement-silver.is-earned{border-color:#a8b5c5;background:#8b99aa}.achievement-gold.is-current,.achievement-gold.is-earned{border-color:#f6c453;background:#d89c19}.achievement-lock{position:absolute;right:-1px;bottom:-1px;width:14px;height:14px;padding:2px;border-radius:50%;background:#328bcb;fill:none;stroke:#d8edff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.practice-toolbar{width:100%;padding:10px clamp(12px,3vw,24px);border-bottom:1px solid rgba(148,163,184,.12);background:#0b1626}.practice-toolbar-inner{display:flex;align-items:center;gap:9px;width:100%;max-width:1232px;margin:0 auto}.practice-toolbar button,.practice-toolbar select{min-height:38px;border:1px solid #2c415d;border-radius:8px;background:#16243a;color:#e5eefb;cursor:pointer;font-weight:700}.practice-toolbar button{padding:0 13px}.practice-toolbar button:disabled{cursor:wait;opacity:.65}.practice-toolbar label{display:flex;align-items:center;gap:7px;color:#9eb2c9;font-size:.74rem;font-weight:700}.practice-toolbar select{padding:0 28px 0 10px}.practice-toolbar .reconstruct-button{border-color:#e98200;background:#fe9613;color:#16243a}.practice-toolbar .reconstruct-button:hover{background:#e98200}.practice-toolbar .regenerate-button{border-color:#1376c8;background:#1376c8;color:#fff}.practice-toolbar .help-button{margin-left:auto;border-color:#00b87d;background:#00ce8d;color:#08251c}.practice-toolbar .help-button:hover{background:#1ee3a5}.mobile-settings-button{display:none}.toolbar-divider{width:1px;height:30px;background:#314158}.progress-pill{display:flex;align-items:center;gap:8px;padding:8px 11px;border-radius:999px;background:#101d2f;color:#afc1d6;font-size:.76rem;white-space:nowrap}.progress-pill strong{color:#fff;font-size:.9rem}.toolbar-error{margin:0;color:#fca5a5;font-size:.78rem}.help-backdrop{position:fixed;inset:0;z-index:45;display:grid;place-items:center;padding:18px;overflow-y:auto;background:#030a14cc;backdrop-filter:blur(5px)}.help-modal{width:min(100%,590px);max-height:calc(100dvh - 36px);overflow-y:auto;padding:24px;border:1px solid rgba(0,206,141,.38);border-radius:18px;background:#0f1c2e;color:#e5eefb;box-shadow:0 30px 90px #00000085}.help-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.help-heading p{margin:0 0 4px;color:#64e3b9;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.help-heading h2{margin:0;font-size:1.45rem}.help-close{width:34px;height:34px;flex:0 0 auto;border:1px solid #38506e;border-radius:9px;background:#17283e;color:#dce9f8;cursor:pointer;font-size:1.45rem;line-height:1}.help-section{margin-top:19px;padding:16px;border:1px solid #263b55;border-radius:12px;background:#101c2d}.help-section h3{margin:0 0 7px;color:#64e3b9;font-size:1rem}.help-section p{margin:0;color:#becde0;font-size:.88rem;line-height:1.55}.help-section ol{margin:11px 0;padding-left:21px;color:#dce7f5;font-size:.86rem;line-height:1.55}.help-section li+li{margin-top:5px}.help-done{width:100%;min-height:42px;margin-top:18px;border:1px solid #00b87d;border-radius:9px;background:#00ce8d;color:#08251c;cursor:pointer;font-weight:800}.mobile-settings-backdrop{position:fixed;inset:0;z-index:44;display:none;align-items:end;background:#030a14c2;backdrop-filter:blur(4px)}.mobile-settings-modal{width:100%;padding:18px;border:1px solid #334b67;border-bottom:0;border-radius:18px 18px 0 0;background:#0f1c2e;box-shadow:0 -18px 60px #00000073}.mobile-settings-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.mobile-settings-heading p{margin:0 0 3px;color:#73e8c1;font-size:.68rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.mobile-settings-heading h2{margin:0;font-size:1.18rem}.mobile-settings-heading button{width:34px;height:34px;border:1px solid #38506e;border-radius:8px;background:#17283e;color:#fff;font-size:1.35rem}.mobile-settings-modal label{display:grid;gap:6px;margin-top:15px;color:#b8c8dc;font-size:.76rem;font-weight:750}.mobile-settings-modal select,.mobile-settings-actions button{width:100%;min-height:40px;border:1px solid #38506e;border-radius:9px;background:#17283e;color:#edf5ff;font:inherit;font-weight:750}.mobile-settings-modal select{padding:0 12px}.mobile-settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.mobile-settings-actions .mobile-regenerate-action{border-color:#1376c8;background:#1376c8}.mobile-settings-actions .mobile-help-action{grid-column:1 / -1;border-color:#00b87d;background:#00ce8d;color:#08251c}.achievement-celebration{position:fixed;z-index:30;left:18px;bottom:48px;display:flex;align-items:center;gap:12px;min-width:270px;padding:13px 18px;border:1px solid #2d8068;border-radius:12px;background:#123d31;color:#fff;box-shadow:0 20px 60px #0006;animation:achievement-pop 2.6s ease both}.achievement-celebration>span{color:#f6c453;font-size:1.55rem;animation:achievement-star .7s ease both}.achievement-celebration strong,.achievement-celebration small{display:block}.achievement-celebration small{margin-top:2px;color:#bcebdd}@keyframes achievement-pop{0%{opacity:0;transform:translateY(18px) scale(.94)}12%,82%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(10px) scale(.98)}}@keyframes achievement-star{0%{transform:rotate(-30deg) scale(.4)}70%{transform:rotate(12deg) scale(1.2)}to{transform:rotate(0) scale(1)}}.regeneration-backdrop{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:20px;background:#030a14c7;backdrop-filter:blur(5px)}.regeneration-modal{width:min(100%,420px);padding:28px;border:1px solid rgba(96,165,250,.35);border-radius:18px;background:#0f1c2e;color:#e5eefb;text-align:center;box-shadow:0 30px 90px #00000080;animation:regeneration-enter .25s ease-out both}.regeneration-modal h2{margin:18px 0 8px;font-size:1.3rem}.regeneration-modal p{margin:0;color:#afc1d6;line-height:1.5}.regeneration-orbit{position:relative;width:86px;height:86px;margin:0 auto;display:grid;place-items:center;border:1px solid rgba(254,150,19,.35);border-radius:50%}.regeneration-orbit .bitecode-logo-mark{width:46px;height:46px;filter:none;animation:regeneration-pulse 1.4s ease-in-out infinite}.regeneration-orbit i{position:absolute;width:9px;height:9px;border-radius:50%;background:#00ce8d;animation:regeneration-orbit 1.6s linear infinite}.regeneration-orbit i:nth-of-type(2){background:#fe9613;animation-delay:-.53s}.regeneration-orbit i:nth-of-type(3){background:#60a5fa;animation-delay:-1.06s}.regeneration-steps{display:flex;justify-content:center;gap:7px;margin-top:20px}.regeneration-steps span{width:28px;height:4px;border-radius:99px;background:#29415d;animation:regeneration-step 1.2s ease-in-out infinite}.regeneration-steps span:nth-child(2){animation-delay:.15s}.regeneration-steps span:nth-child(3){animation-delay:.3s}@keyframes regeneration-enter{0%{opacity:0;transform:translateY(10px) scale(.97)}}@keyframes regeneration-pulse{50%{transform:scale(1.08)}}@keyframes regeneration-orbit{0%{transform:rotate(0) translate(42px) rotate(0)}to{transform:rotate(360deg) translate(42px) rotate(-360deg)}}@keyframes regeneration-step{0%,to{background:#29415d;transform:scaleX(.85)}50%{background:#00ce8d;transform:scaleX(1)}}@media(prefers-reduced-motion:reduce){.achievement-celebration,.achievement-celebration>span,.regeneration-modal,.regeneration-orbit .bitecode-logo-mark,.regeneration-orbit i,.regeneration-steps span{animation:none}}.mobile-pane-switch{display:none}.run-button{min-width:92px;min-height:44px;border:1px solid #00b87d;border-radius:8px;background:#00ce8d;color:#fff;cursor:pointer;font-weight:800;letter-spacing:.02em;box-shadow:0 10px 22px #00ce8d47}.run-button:hover{background:#00b87d}.run-button:focus-visible{outline:3px solid rgba(59,130,246,.35);outline-offset:3px}.iframe-container{flex:1;min-height:0;width:100%;max-width:1280px;margin:0 auto;padding:16px clamp(12px,3vw,24px)}.practice-iframe{width:100%;height:100%;min-height:calc(100vh - 174px);min-height:calc(100dvh - 174px);display:block;overflow:hidden;border:1px solid rgba(96,165,250,.42);border-radius:12px;background:#0f172a;box-shadow:0 28px 70px #00000057}.page-footer{width:100%;padding:10px 16px;text-align:center;color:#93a4bb;font-size:.84rem;border-top:1px solid rgba(148,163,184,.14);background:#050b14}.mobile-stdin-notice-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:18px;background:#030712b8}.mobile-stdin-notice{width:min(100%,380px);padding:18px;border:1px solid rgba(96,165,250,.38);border-radius:8px;background:#0f172a;box-shadow:0 28px 70px #0000006b}.mobile-stdin-notice h2{margin:0 0 10px;color:#fff;font-size:1.05rem;line-height:1.2}.mobile-stdin-notice p{margin:0 0 10px;color:#c7d7ea;font-size:.92rem;line-height:1.45}.mobile-stdin-notice button{width:100%;min-height:38px;margin-top:4px;border:1px solid #00b87d;border-radius:8px;background:#00ce8d;color:#fff;cursor:pointer;font-weight:800}.loading-shell,.error-shell{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top left,rgba(37,99,235,.18),transparent 32rem),linear-gradient(180deg,#0d1828,#08111f)}.status-card{max-width:420px;width:100%;padding:28px;border:1px solid rgba(96,165,250,.26);border-radius:12px;background:#0f172a;box-shadow:0 24px 64px #00000047;text-align:center}.status-card h2{margin:0 0 12px;color:#e5eefb;font-size:1.5rem}.status-card p{margin:0;color:#b7c4d6;line-height:1.65}.status-error{border-color:#f87171}@media(max-width:700px){html,body,#root{width:100%;max-width:100%}.app-shell{overflow:hidden;width:100%;max-width:100%}body{overflow-x:hidden}.page-header-inner{max-width:none;min-height:44px;padding:5px 8px;gap:8px}.header-actions,.brand-lockup{gap:6px}.bitecode-logo-mark{width:30px;height:30px}.achievement-strip{display:none}.practice-toolbar{overflow:visible;flex:0 0 auto;padding:5px 7px}.practice-toolbar-inner{display:flex;gap:5px;width:100%;min-width:0}.practice-toolbar .level-control,.practice-toolbar .complexity-control,.practice-toolbar .regenerate-button,.practice-toolbar .reload-button,.practice-toolbar .help-button{display:none}.practice-toolbar button{min-width:0;min-height:34px;padding:0 8px;white-space:nowrap;font-size:.68rem}.practice-toolbar .reconstruct-button{flex:1 1 auto}.progress-pill{flex:0 1 106px;justify-content:space-between;min-width:76px;margin-left:0;padding:5px 7px;overflow:hidden;font-size:.62rem}.progress-pill span{overflow:hidden;text-overflow:ellipsis}.progress-pill strong{font-size:.72rem}.reset-button{flex:0 0 55px}.toolbar-divider{display:none}.practice-toolbar .mobile-settings-button{display:grid;flex:0 0 36px;width:36px;padding:0;place-items:center}.mobile-settings-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.toolbar-error{position:fixed;z-index:36;right:10px;bottom:52px;left:10px;margin:0;padding:9px 11px;border:1px solid #7f1d1d;border-radius:9px;background:#3b1118;box-shadow:0 12px 36px #0006}.mobile-settings-backdrop{display:flex}.help-backdrop{align-items:start;padding:10px}.help-modal{max-height:calc(100dvh - 20px);padding:17px;border-radius:14px}.help-heading h2{font-size:1.18rem}.help-section{margin-top:12px;padding:12px}.help-section p,.help-section ol{font-size:.78rem}.achievement-celebration{right:10px;bottom:12px;left:10px;min-width:0}.eyebrow{display:none}h1{font-size:.98rem}.subtitle{max-width:calc(100vw - 214px);margin-top:1px;font-size:.68rem}.mobile-pane-switch{display:flex;padding:2px;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:#ffffff24}.mobile-pane-switch button{min-height:26px;padding:0 8px;border:0;border-radius:6px;background:transparent;color:#ffffffd1;cursor:pointer;font-size:.72rem;font-weight:800}.mobile-pane-switch button.is-active{background:#fff;color:#1376c8}.run-button{min-width:54px;min-height:30px;padding:0 10px;font-size:.86rem}.iframe-container{--mobile-code-offset: 50px;--mobile-code-width-extra: 100px;--mobile-console-offset: 34px;--mobile-console-pane-offset: 57.8%;overflow:hidden;width:100%;max-width:none;margin:0;padding:0}.practice-iframe{min-height:calc(100vh - 91px);min-height:calc(100dvh - 91px);border-right:0;border-left:0;border-radius:0;transform-origin:left top;transition:transform .18s ease,width .18s ease}.mobile-pane-code .practice-iframe{width:calc(200% + var(--mobile-code-width-extra));transform:translate(calc(-1 * var(--mobile-code-offset)))}.mobile-pane-console .practice-iframe{width:calc(300% + var(--mobile-console-offset));transform:translate(calc(-1 * var(--mobile-console-pane-offset) - var(--mobile-console-offset)))}.page-footer{display:none}}.analytics-consent{position:fixed;z-index:1000;right:16px;bottom:16px;left:16px;display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:860px;margin:auto;padding:16px 18px;border:1px solid #334155;border-radius:14px;background:#111827;color:#f8fafc;box-shadow:0 16px 48px #00000059}.analytics-consent strong{display:block;margin-bottom:4px}.analytics-consent p{margin:0;color:#cbd5e1;font-size:.9rem}.analytics-consent-actions{display:flex;flex:0 0 auto;gap:8px}.analytics-consent-actions button,.analytics-privacy-choice{padding:8px 12px;border:1px solid #64748b;border-radius:8px;background:#1e293b;color:#f8fafc;font:inherit;cursor:pointer}.analytics-consent-actions .accept{border-color:#1376c8;background:#1376c8}.analytics-privacy-choice{position:fixed;z-index:900;right:10px;bottom:10px;padding:6px 9px;border-radius:999px;font-size:.7rem}@media(max-width:640px){.analytics-consent{align-items:stretch;flex-direction:column}.analytics-consent-actions{display:grid;grid-template-columns:1fr 1fr}}
