:root {
    --shell: #101218;
    --shell-soft: #171a22;
    --panel: #1c1f28;
    --panel-raised: #222631;
    --line: rgba(255,255,255,.095);
    --line-strong: rgba(255,255,255,.16);
    --text: #f5f6f8;
    --muted: #979dac;
    --dim: #656b79;
    --lime: #c6ff4a;
    --violet: #a786ff;
    --danger: #eb6f74;
    --warning: #e4a84f;
    --success: #57cf8c;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; min-width: 320px; color: var(--text); background: #0c0e13; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.lab-header { height: 68px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #111319; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.lab-brand-group, .lab-session-meta, .lab-logo { display: flex; align-items: center; }
.lab-logo { gap: 9px; font-size: 12px; font-weight: 850; letter-spacing: -.02em; }
.lab-logo b { color: var(--lime); }.lab-logo-mark { width: 31px; height: 31px; display: grid; place-items: center; color: #0a0b0d; background: var(--lime); border-radius: 7px; font: 800 11px var(--mono); }
.header-divider { width: 1px; height: 25px; margin: 0 20px; background: var(--line-strong); }
.lab-breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 11px; }.lab-breadcrumb i { font-style: normal; color: #3f444f; }.lab-breadcrumb strong { color: #b7bbc5; font-weight: 600; }
.lab-session-meta { gap: 17px; }.lab-live { display: flex; align-items: center; gap: 8px; color: #9ca493; font: 700 9px var(--mono); letter-spacing: .08em; }.lab-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(198,255,74,.08); }.lab-timer { min-width: 47px; color: #d3d6dc; font: 600 11px var(--mono); }.lab-account-link { color:var(--lime); font-size:9px; font-weight:700; }.exit-lab { padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 7px; color: #c1c4cd; font-size: 10px; font-weight: 700; transition: background .2s, border-color .2s; }.exit-lab:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.25); }

.completion-banner { min-height: 72px; padding: 13px 28px; display: flex; align-items: center; gap: 14px; background: #163424; border-bottom: 1px solid rgba(87,207,140,.28); }.completion-icon { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #092013; background: var(--success); font-weight: 900; }.completion-banner div { margin-right: auto; }.completion-banner strong { display: block; color: #ecfff4; font-size: 13px; }.completion-banner p { margin: 3px 0 0; color: #9dccb1; font-size: 11px; }.completion-banner > a { padding: 10px 14px; border: 1px solid rgba(87,207,140,.35); border-radius: 7px; color: #d9f9e6; font-size: 10px; font-weight: 750; }.completion-banner > a span { margin-left: 8px; }
.is-celebrating .completion-banner { animation: solved-banner-in .75s cubic-bezier(.2,.85,.25,1.25) both; }.is-celebrating .completion-icon { animation: solved-check-pop .9s .12s cubic-bezier(.2,.9,.25,1.35) both; }
.celebration-layer { position: fixed; inset: 0; z-index: 1000; overflow: hidden; pointer-events: none; }.celebration-layer::before { content: ""; position: absolute; width: 190px; height: 190px; left: 50%; top: 50%; border: 2px solid rgba(198,255,74,.52); border-radius: 50%; transform: translate(-50%,-50%); animation: celebration-ring 1.05s ease-out both; }.confetti-piece { position: absolute; top: -24px; left: var(--left); width: var(--size); height: calc(var(--size) * 1.7); border-radius: 2px; background: var(--color); opacity: 0; box-shadow: 0 0 8px color-mix(in srgb, var(--color) 35%, transparent); animation: confetti-fall var(--duration) cubic-bezier(.16,.72,.25,1) var(--delay) forwards; }
.celebration-toast { position: fixed; z-index: 1001; left: 50%; top: 50%; min-width: 285px; padding: 17px 21px; display: flex; align-items: center; gap: 13px; color: var(--text); background: rgba(25,29,35,.96); border: 1px solid rgba(198,255,74,.32); border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.48), 0 0 45px rgba(198,255,74,.09); backdrop-filter: blur(16px); pointer-events: none; transform: translate(-50%,-50%); animation: celebration-toast 4.3s cubic-bezier(.2,.85,.25,1) both; }.celebration-toast > span { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #0c1710; background: var(--lime); font-size: 18px; font-weight: 900; box-shadow: 0 0 24px rgba(198,255,74,.17); }.celebration-toast strong, .celebration-toast small { display: block; }.celebration-toast strong { font-size: 13px; }.celebration-toast small { margin-top: 4px; color: var(--muted); font-size: 9px; }
@keyframes solved-banner-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: translateY(0); } }
@keyframes solved-check-pop { 0% { opacity: 0; transform: scale(.25) rotate(-20deg); } 70% { transform: scale(1.16) rotate(5deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes celebration-ring { 0% { opacity: .85; transform: translate(-50%,-50%) scale(.1); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(5); } }
@keyframes confetti-fall { 0% { opacity: 0; transform: translate3d(0,-5vh,0) rotate(0); } 8% { opacity: 1; } 84% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--drift),108vh,0) rotate(var(--rotation)); } }
@keyframes celebration-toast { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.72); } 10%, 78% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-58%) scale(.96); } }

.lab-workspace { height: calc(100vh - 68px); min-height: 670px; display: grid; grid-template-columns: 365px minmax(0, 1fr); }
.completion-banner + .lab-workspace { height: calc(100vh - 140px); }
.mission-panel { min-width: 0; display: flex; flex-direction: column; background: var(--shell-soft); border-right: 1px solid var(--line); overflow: hidden; }.mission-scroll { padding: 28px 25px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #383c47 transparent; }
.mission-heading { padding-bottom: 24px; border-bottom: 1px solid var(--line); position: relative; }.mission-number { display: block; color: var(--violet); font: 700 9px var(--mono); letter-spacing: .12em; }.level-pill { position: absolute; right: 0; top: -4px; padding: 5px 8px; border-radius: 5px; color: #78dda4; background: rgba(87,207,140,.08); font: 700 8px var(--mono); text-transform: uppercase; }.mission-heading h1 { margin: 10px 0 10px; font-size: 25px; letter-spacing: -.04em; }.mission-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.mission-block { padding: 22px 0; border-bottom: 1px solid var(--line); }.block-label { display: flex; align-items: center; gap: 9px; color: var(--dim); font: 700 9px var(--mono); letter-spacing: .1em; }.block-label > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.04); color: var(--violet); font-size: 12px; }.objective-block > p { margin: 13px 0 0; padding: 13px 14px; color: #c8cbd3; background: rgba(167,134,255,.065); border-left: 2px solid var(--violet); border-radius: 0 7px 7px 0; font-size: 11px; line-height: 1.6; }.objective-block strong { color: #fff; }
.task-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 13px; }.task-list li { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 10px; }.task-list li > span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font: 700 8px var(--mono); }.task-list p { margin: 2px 0 0; color: #a6aab5; font-size: 10px; line-height: 1.55; }
.resource-panel, .hint-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.11); overflow: hidden; }.resource-panel summary, .hint-panel summary { min-height: 43px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; color: #b9bdc6; font-size: 10px; font-weight: 650; }.resource-panel summary::-webkit-details-marker, .hint-panel summary::-webkit-details-marker { display: none; }.resource-panel summary > span, .hint-panel summary > span { display: flex; align-items: center; gap: 9px; }.resource-panel summary i, .hint-panel summary i { width: 22px; height: 22px; display: grid; place-items: center; font: 700 8px var(--mono); font-style: normal; border-radius: 5px; background: rgba(167,134,255,.1); color: var(--violet); }.resource-panel summary b, .hint-panel summary b { color: var(--dim); transition: transform .2s; }.resource-panel[open] summary b, .hint-panel[open] summary b { transform: rotate(180deg); }
.wordlist-grid { display: grid; gap: 9px; padding: 0 10px 10px; }.wordlist-grid > div { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }.wordlist-title { min-height: 29px; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }.wordlist-title span { color: var(--dim); font: 700 8px var(--mono); }.wordlist-title button { padding: 3px 6px; border: 0; border-radius: 4px; color: var(--violet); background: rgba(167,134,255,.09); font: 700 8px var(--mono); cursor: pointer; }.wordlist-grid code { display: block; padding: 8px 10px; color: #aeb2bc; font: 9px/1.55 var(--mono); }
.hint-panel { margin-bottom: 15px; }.hint-panel > div { padding: 0 12px 11px; }.hint-panel p { margin: 0 0 8px; color: var(--muted); font-size: 9px; line-height: 1.55; }.hint-panel p:last-child { margin: 0; }.hint-panel code { color: var(--lime); }
.mission-footer { margin-top: auto; min-height: 52px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--dim); font: 8px var(--mono); text-transform: uppercase; }.mission-footer a { color: #979ca8; transition: color .2s; }.mission-footer a:hover { color: var(--text); }

.target-area { min-width: 0; padding: 18px; display: grid; grid-template-rows: 44px minmax(430px, 1fr) auto; gap: 10px; background: #0d0f14; overflow: auto; }.target-toolbar { display: flex; align-items: center; justify-content: space-between; }.target-status { display: flex; align-items: center; gap: 9px; }.target-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(87,207,140,.07); }.target-status b, .target-status small { display: block; }.target-status b { color: #c7cad1; font-size: 10px; }.target-status small { margin-top: 2px; color: var(--dim); font-size: 8px; }.target-tools { display: flex; gap: 6px; }.target-tools button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--muted); cursor: pointer; transition: background .2s; }.target-tools button:hover { background: var(--panel-raised); }
.browser-frame { min-height: 430px; display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 11px; background: #f3f5f8; overflow: hidden; box-shadow: 0 22px 45px rgba(0,0,0,.22); }.browser-frame.fullscreen { position: fixed; inset: 12px; z-index: 100; min-height: 0; box-shadow: 0 30px 90px rgba(0,0,0,.6); }.browser-chrome { flex: 0 0 43px; padding: 0 13px; display: grid; grid-template-columns: 90px minmax(200px, 560px) 1fr; align-items: center; background: #292d35; border-bottom: 1px solid #1c1f25; }.browser-dots { display: flex; gap: 6px; }.browser-dots i { width: 7px; height: 7px; border-radius: 50%; background: #565b66; }.browser-dots i:first-child { background: #ed6a5e; }.browser-dots i:nth-child(2) { background: #f2bf4f; }.browser-dots i:nth-child(3) { background: #61c454; }.address-bar { height: 27px; padding: 0 11px; display: flex; align-items: center; gap: 5px; border-radius: 6px; background: #1f2229; color: #a4a9b4; font: 8px var(--mono); overflow: hidden; }.address-bar span { margin-right: 2px; color: #6f7581; }.address-bar b { color: #68c98e; font-weight: 500; }.secure-label { justify-self: end; color: #818793; font: 8px var(--mono); }.secure-label i { margin-right: 5px; color: #5ac485; font-size: 6px; }
.target-page { flex: 1; min-height: 0; display: flex; flex-direction: column; color: #1a2130; background: #f5f7fa; overflow: auto; }.acme-nav { flex: 0 0 58px; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e0e4eb; background: white; }.acme-nav > a { display: flex; align-items: center; gap: 9px; }.acme-symbol { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(145deg, #2d5ad2, #724ad9); color: #fff; font-size: 13px; font-weight: 850; }.acme-nav strong { color: #172033; font-size: 10px; letter-spacing: .01em; }.acme-nav strong span { color: #586478; font-weight: 500; }.acme-nav div { display: flex; gap: 23px; }.acme-nav div a { color: #6d7686; font-size: 8px; font-weight: 600; }
.login-stage { flex: 1; padding: 25px; display: grid; place-items: center; background: radial-gradient(circle at 50% 10%, rgba(75,98,185,.07), transparent 45%), #f5f7fa; }.login-card, .account-card { width: min(100%, 350px); padding: 28px 31px 23px; border: 1px solid #e1e5ec; border-radius: 12px; background: #fff; box-shadow: 0 20px 48px rgba(30,44,71,.09); }.login-title { text-align: center; }.login-lock { width: 38px; height: 38px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 10px; background: #eef1fb; color: #4e64bc; font-size: 21px; }.target-kicker { margin: 0 0 6px; color: #798399; font: 700 7px var(--mono); letter-spacing: .12em; }.login-title h2, .account-card h2 { margin: 0 0 7px; color: #172033; font-size: 19px; letter-spacing: -.03em; }.login-title > p:last-child, .account-card > p { margin: 0; color: #7d8798; font-size: 9px; line-height: 1.5; }.login-message { margin: 16px 0 -2px; padding: 9px 10px; display: flex; align-items: flex-start; gap: 7px; border-radius: 6px; font-size: 8px; line-height: 1.4; }.login-message > span { flex: 0 0 auto; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }.login-message.error { color: #a23a40; background: #fff0f0; border: 1px solid #f6d7d9; }.login-message.error > span { color: #fff; background: #cf5960; }.login-message.warning { color: #916522; background: #fff8e9; border: 1px solid #f1e2bf; }.login-message.warning > span { color: #fff; background: #d6a54d; }
.login-card form { margin-top: 18px; }.login-card label { display: block; margin-bottom: 6px; color: #3e4758; font-size: 8px; font-weight: 700; }.login-card input { width: 100%; height: 36px; padding: 0 11px; border: 1px solid #dce1e9; border-radius: 6px; outline: 0; color: #1e2737; background: #fff; font-size: 9px; transition: border-color .2s, box-shadow .2s; }.login-card input:focus { border-color: #5c70ca; box-shadow: 0 0 0 3px rgba(92,112,202,.1); }.login-card input::placeholder { color: #aab0bc; }.password-label { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; }.password-label a { margin-bottom: 6px; color: #4c64c6; font-size: 7px; font-weight: 650; }.password-field { position: relative; }.password-field input { padding-right: 50px; }.password-field button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 4px; border: 0; color: #596fc4; background: transparent; font-size: 7px; font-weight: 700; cursor: pointer; }.sign-in-button { width: 100%; height: 37px; margin-top: 16px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 6px; color: #fff; background: #344fb2; font-size: 9px; font-weight: 750; cursor: pointer; box-shadow: 0 8px 20px rgba(52,79,178,.18); transition: background .2s, transform .2s; }.sign-in-button:hover { background: #2c439a; transform: translateY(-1px); }.login-support { margin: 15px 0 0; text-align: center; color: #949baa; font-size: 7px; }.login-support a { color: #4d64bd; font-weight: 650; }
.target-footer { flex: 0 0 35px; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e4e7ed; color: #949ba8; background: #fff; font-size: 7px; }.target-footer div { display: flex; gap: 15px; }
.account-card { text-align: center; }.success-check { width: 52px; height: 52px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #45b97b; font-size: 24px; font-weight: 850; box-shadow: 0 8px 25px rgba(69,185,123,.2); }.account-summary { margin: 20px 0; padding: 12px; display: flex; justify-content: space-between; color: #778194; background: #f6f8fa; border-radius: 7px; font-size: 8px; }.account-summary b { color: #263248; }.account-card > a { display: inline-block; color: #4059ba; font-size: 8px; font-weight: 700; }

.attempt-console { border: 1px solid var(--line); border-radius: 9px; background: #15181f; overflow: hidden; }.attempt-console > header { min-height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }.attempt-console header > div { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; }.console-prompt { grid-row: 1 / 3; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 5px; color: #0d0f14; background: var(--lime); font: 800 8px var(--mono); }.attempt-console header strong { font-size: 9px; }.attempt-console header small { color: var(--dim); font-size: 7px; }.attempt-console header > span { color: var(--dim); font: 8px var(--mono); }.attempt-table { max-height: 120px; overflow-y: auto; }.attempt-row { min-height: 28px; padding: 0 14px; display: grid; grid-template-columns: 70px minmax(100px, 1fr) 110px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.04); color: #727886; font: 8px var(--mono); }.attempt-row strong { color: #bfc3cc; font-weight: 500; }.attempt-head { min-height: 25px; color: #555b68; font-size: 7px; background: rgba(255,255,255,.015); }.attempt-result { display: flex; align-items: center; gap: 6px; }.attempt-result i { width: 5px; height: 5px; border-radius: 50%; }.attempt-result.rejected i { background: var(--danger); }.attempt-result.interesting { color: var(--warning); }.attempt-result.interesting i { background: var(--warning); box-shadow: 0 0 8px rgba(228,168,79,.25); }.attempt-result.accepted { color: var(--success); }.attempt-result.accepted i { background: var(--success); }.attempt-empty { min-height: 52px; display: grid; place-items: center; color: #5e6470; font: 8px var(--mono); }

.lab-not-found { min-height: 100vh; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.lab-not-found .lab-logo-mark { width: 44px; height: 44px; font-size: 13px; }.overline { margin: 24px 0 10px; color: var(--lime); font: 700 9px var(--mono); letter-spacing: .12em; }.lab-not-found h1 { margin: 0 0 25px; font-size: clamp(35px, 6vw, 60px); letter-spacing: -.055em; }.control-button { padding: 12px 16px; border-radius: 8px; font-size: 11px; font-weight: 700; }.primary-control { color: #0a0b0d; background: var(--lime); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

@media (max-width: 980px) {
    .lab-workspace, .completion-banner + .lab-workspace { height: auto; min-height: calc(100vh - 68px); grid-template-columns: 320px minmax(0, 1fr); }.target-area { grid-template-rows: 44px minmax(590px, 1fr) auto; }.browser-frame { min-height: 590px; }.browser-chrome { grid-template-columns: 68px minmax(180px, 1fr); }.secure-label { display: none; }
}

@media (max-width: 760px) {
    .lab-header { height: auto; min-height: 64px; padding: 11px 14px; }.header-divider, .lab-breadcrumb, .lab-live, .lab-account-link { display: none; }.lab-session-meta { gap: 10px; }.completion-banner { padding: 13px 15px; }.completion-banner > a { display: none; }.lab-workspace, .completion-banner + .lab-workspace { display: flex; flex-direction: column; min-height: 0; }.mission-panel { max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }.mission-scroll { padding: 24px 18px; }.mission-footer { display: none; }.target-area { padding: 12px; grid-template-rows: 42px minmax(650px, auto) auto; overflow: visible; }.browser-frame { min-height: 650px; }.browser-chrome { grid-template-columns: 48px 1fr; }.browser-dots i { width: 6px; height: 6px; }.acme-nav { padding: 0 18px; }.acme-nav div { display: none; }.login-stage { padding: 20px 12px; }.login-card, .account-card { padding: 27px 24px 22px; }.target-footer { padding: 0 18px; }.target-footer div { display: none; }.attempt-row { grid-template-columns: 58px minmax(90px, 1fr) 90px; }.attempt-empty { padding: 15px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
