@charset "UTF-8";
:root
{
    color-scheme: dark;
    --bg: #0b1019;
    --panel: #111925;
    --line: #25303f;
    --muted: #8c9aaf;
    --white: #eef4ff;
    --blue: #638aff;
    --green: #b6e895;
    --font: "Segoe UI", Arial, sans-serif;
}
*
{
    box-sizing: border-box;
}
html
{
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}
body
{
    margin: 0;
    background: var(--bg);
    color: var(--white);
    font: 14px/1.5 var(--font);
}
button, select
{
    font: inherit;
}
button, a, select
{
    -webkit-tap-highlight-color: transparent;
}
button, select
{
    cursor: pointer;
    color: inherit;
}
button
{
    border: 0;
    background: none;
}
button:disabled
{
    cursor: not-allowed;
    opacity: .4;
}
a
{
    color: inherit;
    text-decoration: none;
}
button:hover:not(:disabled), a:hover
{
    color: #b1c6ff;
}
:focus-visible
{
    outline: 2px solid #a1bcff;
    outline-offset: 4px;
}
svg.icon
{
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    vertical-align: middle;
}
[hidden]
{
    display: none !important;
}
.skip
{
    position: fixed;
    left: 20px;
    top: -60px;
    z-index: 20;
    padding: 12px;
    background: var(--panel);
}
.skip:focus
{
    top: 10px;
}
.sidebar
{
    width: 202px;
    position: fixed;
    inset: 0 auto 0 0;
    border-right: 1px solid #202936;
    padding: 32px 16px 0;
    background: #0e141e;
    display: flex;
    flex-direction: column;
}
.brand
{
    display: flex;
    gap: 10px;
    align-items: center;
    padding-left: 8px;
    margin-bottom: 48px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: .9;
}
.brand-dot
{
    color: var(--blue);
}
.brand small
{
    display: block;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 3px;
    margin-top: 10px;
}
.workspace-label
{
    font: 9px/1.4 Consolas, monospace;
    letter-spacing: 1.3px;
    color: #78889e;
    padding-left: 12px;
    margin-bottom: 12px;
}
.nav-item
{
    width: 100%;
    min-height: 43px;
    padding: 11px 11px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    text-align: left;
    color: #a4afbf;
    border-radius: 5px;
}
.nav-item .icon
{
    width: 15px;
    height: 15px;
}
.nav-item.active
{
    background: #1b2948;
    color: #a7bfff;
}
.nav-indicator
{
    width: 5px;
    height: 5px;
    background: #89a6ff;
    border-radius: 50%;
    margin-left: auto;
}
.nav-item .small-icon, .count
{
    margin-left: auto;
    font-size: 10px;
}
.nav-item .small-icon
{
    width: 12px;
}
.sidebar-line
{
    border-top: 1px solid #242d39;
    margin: 25px 10px;
}
.path-dot
{
    height: 6px;
    width: 6px;
    border-radius: 50%;
    margin: 0 5px;
}
.blue
{
    background: var(--blue);
}
.green
{
    background: var(--green);
}
.sidebar-bottom
{
    margin-top: auto;
    padding: 32px 10px 0;
    font-size: 10px;
}
.mini-orbit
{
    color: #819ae5;
    padding-bottom: 12px;
}
.sidebar-bottom strong
{
    font-size: 11px;
}
.sidebar-bottom p
{
    color: var(--muted);
    line-height: 1.8;
}
.sandbox-label
{
    font: 8px Consolas, monospace;
    color: #9cba9a;
    letter-spacing: .8px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 20px 0 28px;
}
.sandbox-label > span, .online > span
{
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
}
.learner
{
    border-top: 1px solid var(--line);
    padding: 18px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.learner small
{
    display: block;
    color: var(--muted);
    font-size: 9px;
}
.learner > .icon
{
    width: 12px;
    margin-left: auto;
    color: var(--muted);
}
.avatar
{
    width: 29px;
    height: 29px;
    background: #2c3550;
    color: #c1cef1;
    border: 1px solid #414b65;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
}
.shell
{
    margin-left: 202px;
}
.topbar
{
    height: 66px;
    border-bottom: 1px solid #202936;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    font-size: 11px;
}
.breadcrumb
{
    color: var(--muted);
}
.breadcrumb span
{
    padding: 0 12px;
    color: #54627a;
}
.breadcrumb strong
{
    color: #cad3e2;
    font-weight: 400;
}
.top-right, .online
{
    display: flex;
    align-items: center;
    gap: 18px;
}
.online
{
    font-size: 10px;
    color: #a2b3a5;
    gap: 6px;
}
.icon-button
{
    width: 32px;
    height: 32px;
    padding: 5px;
    color: var(--muted);
    display: inline-grid;
    place-items: center;
}
.mobile-brand
{
    display: none;
}
main
{
    max-width: 1440px;
    margin: auto;
    padding: 0 34px;
}
.hero
{
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    min-height: 256px;
    align-items: center;
    position: relative;
}
.hero-copy
{
    position: relative;
    z-index: 1;
    padding: 26px 0 22px;
}
.eyebrow, .section-kicker
{
    font: 9px/1.5 Consolas, monospace;
    letter-spacing: 1.3px;
    color: #8d9fbd;
}
.eyebrow
{
    color: #99afe5;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
}
.tiny-line
{
    width: 17px;
    height: 1px;
    background: var(--blue);
}
h1
{
    font-size: clamp(29px, 3vw, 43px);
    line-height: 1.18;
    letter-spacing: -1.65px;
    font-weight: 600;
    margin: 0 0 12px;
}
h1 > span
{
    color: #8faaff;
}
.hero p
{
    color: #96a4b9;
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}
.hero-meta
{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 18px;
    color: #a2aec0;
    font-size: 9px;
}
.hero-meta > span
{
    display: flex;
    align-items: center;
    gap: 5px;
}
.hero-meta .icon
{
    width: 12px;
    height: 12px;
    color: #90a5d4;
}
.hero-art
{
    align-self: stretch;
    position: relative;
    min-width: 0;
}
.hero-art img
{
    width: 115%;
    height: 100%;
    max-height: 260px;
    object-fit: contain;
    position: absolute;
    right: -9px;
    top: 0;
}
.art-caption
{
    position: absolute;
    bottom: 20px;
    right: 12px;
    font: 7px Consolas, monospace;
    color: #8294b5;
    letter-spacing: 1.4px;
}
.art-caption span
{
    display: inline-block;
    background: #a4bcff;
    width: 4px;
    height: 4px;
    margin-right: 7px;
}
.lab-heading
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
}
.lab-tabs
{
    display: flex;
    gap: 25px;
}
.lab-tabs button
{
    display: flex;
    gap: 8px;
    align-items: center;
    color: #8e9db3;
    padding: 11px 0 16px;
    font-size: 12px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.lab-tabs button[aria-selected="true"]
{
    color: #b0c5ff;
    border-bottom-color: var(--blue);
}
.lab-tabs button .icon
{
    width: 16px;
    height: 16px;
}
.lab-tabs button > span
{
    font: 8px Consolas, monospace;
    color: #7988a4;
}
.local-save
{
    color: #7f8fa6;
    font-size: 9px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.local-save .icon
{
    width: 12px;
}
.learning-grid
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 18px;
    align-items: start;
}
.panel
{
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 9px;
    min-width: 0;
}
.simulator
{
    overflow: hidden;
}
.sim-top
{
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
h2
{
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 550;
    letter-spacing: -.5px;
}
.sim-top .section-kicker
{
    font-size: 8px;
    letter-spacing: 1px;
}
.difficulty
{
    display: flex;
    gap: 4px;
    align-items: center;
    background: #1e2b27;
    border: 1px solid #2e4436;
    color: #b6d6a5;
    padding: 4px 6px;
    border-radius: 4px;
    font: 7px Consolas, monospace;
    letter-spacing: .7px;
}
.difficulty > span
{
    width: 3px;
    height: 5px;
    background: var(--green);
}
.sim-toolbar
{
    border-top: 1px solid #202c3c;
    border-bottom: 1px solid #202c3c;
    background: #141d2b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
}
.live
{
    display: flex;
    align-items: center;
    gap: 6px;
    font: 8px Consolas, monospace;
    letter-spacing: 1px;
    color: #9daed0;
}
.live > span
{
    width: 4px;
    height: 4px;
    background: #6b95ff;
    border-radius: 50%;
    box-shadow: 0 0 7px #447cff;
}
.craft-picker
{
    display: flex;
    gap: 8px;
    align-items: center;
    color: #8191a9;
    font-size: 9px;
}
select
{
    background: #182334;
    border: 1px solid #334157;
    border-radius: 4px;
    font-size: 9px;
    padding: 4px;
}
.arena-wrap
{
    background: radial-gradient(ellipse at 50% 50%, #162a45 0, #0d1725 70%);
    padding: 12px 24px 8px;
    position: relative;
}
.arena-decoration, .arena-floor
{
    display: flex;
    justify-content: space-between;
    color: #7790b2;
    font: 7px Consolas, monospace;
    letter-spacing: 1px;
}
.arena-decoration
{
    margin-bottom: 8px;
}
.arena
{
    width: min(100%, 305px);
    aspect-ratio: 1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: auto;
    border-top: 1px solid #2e405b;
    border-left: 1px solid #2e405b;
    transform: perspective(800px) rotateX(10deg);
    box-shadow: 0 18px 30px #040a1480;
    touch-action: manipulation;
}
.cell
{
    min-width: 0;
    border-right: 1px solid #2a3a51;
    border-bottom: 1px solid #2a3a51;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c2a3d45;
    position: relative;
}
.cell:nth-child(odd)
{
    background-color: #263d5729;
}
.cell > .icon
{
    width: 19px;
    height: 19px;
}
.cell.obstacle
{
    background: #30425b;
    border-top: 5px solid #52657d;
    box-shadow: inset 6px -6px 0 #243449;
}
.cell.obstacle::after
{
    content: "";
    width: 30%;
    height: 3px;
    transform: rotate(-45deg);
    background: #6e7c91;
    opacity: .55;
}
.cell.star
{
    color: #e6c576;
}
.cell.star .icon
{
    fill: #b78b2b50;
    filter: drop-shadow(0 0 7px #d5ad4660);
}
.cell.goal
{
    background: #37544350;
    box-shadow: inset 0 0 0 5px #66917225;
    color: #b6e895;
}
.cell.goal::after
{
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px dashed #91c58e;
}
.cell.supply
{
    color: #75e2ef;
    background: #28647050;
}
.player
{
    position: absolute;
    width: 85%;
    height: 85%;
    z-index: 1;
    filter: drop-shadow(0 0 8px #659bff90);
}
.player img
{
    width: 100%;
    height: 100%;
}
.player.vector
{
    filter: hue-rotate(70deg) drop-shadow(0 0 7px #6febd8);
}
.player.robot img
{
    width: 78%;
    height: 78%;
    margin: 12% 11%;
}
.facing
{
    position: absolute;
    top: -6px;
    left: calc(50% - 5px);
    color: #c8e4ff;
    font-size: 10px;
    line-height: 10px;
    width: 10px;
    height: 10px;
}
.arena-floor
{
    margin-top: 9px;
    align-items: center;
    letter-spacing: .5px;
    color: #6b809e;
}
.arena-floor b
{
    color: #97accd;
    font-weight: 400;
}
.arena-floor .icon
{
    width: 11px;
    height: 11px;
}
.sim-bottom
{
    padding: 13px 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    border-top: 1px solid var(--line);
}
.metric-label
{
    display: block;
    font: 7px Consolas, monospace;
    color: #8493a8;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.stars-metric
{
    display: flex;
    gap: 6px;
    align-items: center;
    font: 12px Consolas, monospace;
}
.stars-metric .icon
{
    width: 12px;
    height: 12px;
    color: #e6c576;
}
.moves
{
    font: 12px Consolas, monospace;
}
.reset-button
{
    font-size: 9px;
    border: 1px solid #364153;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    margin-left: auto;
    color: #aebacc;
}
.reset-button .icon
{
    width: 12px;
    height: 12px;
}
.feedback
{
    background: #162138;
    border-top: 1px solid #293953;
    padding: 10px 20px;
    color: #a9bbdd;
    font-size: 10px;
    min-height: 36px;
}
.feedback.success
{
    background: #1a332b;
    color: #b6e895;
}
.feedback.warning
{
    background: #322c20;
    color: #f0cd89;
}
.control-column
{
    display: grid;
    gap: 14px;
}
.briefing, .controls
{
    padding: 17px;
}
.card-title
{
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title > .icon
{
    width: 15px;
    height: 15px;
    color: #92a7d5;
}
h3
{
    font-size: 12px;
    font-weight: 550;
    margin: 0;
}
.card-title > span
{
    font: 10px Consolas, monospace;
    color: #667996;
    margin-left: auto;
}
.briefing > p
{
    color: #96a4b8;
    font-size: 10px;
    line-height: 1.8;
    margin: 12px 0 14px;
}
.objectives
{
    list-style: none;
    padding: 12px 0 0;
    margin: 0;
    border-top: 1px solid #293342;
}
.objectives li
{
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    font-size: 9px;
    color: #a5b1c4;
}
.objectives strong
{
    font-weight: 500;
    color: #d3dded;
}
.objective-symbol
{
    color: #92a3bf;
}
.objective-symbol .icon
{
    width: 13px;
    height: 13px;
}
.objectives li > .icon
{
    width: 10px;
    height: 10px;
    color: #4a5d79;
    margin-left: auto;
}
.star-symbol
{
    color: #e6c576;
}
.green-symbol
{
    color: var(--green);
}
.dpad
{
    display: grid;
    grid-template-columns: repeat(3, 39px);
    grid-template-rows: repeat(3, 34px);
    gap: 4px;
    justify-content: center;
    margin: 14px 0 11px;
}
.dpad button
{
    display: grid;
    place-items: center;
    background: #1d2b43;
    border: 1px solid #3d5279;
    border-bottom: 3px solid #31466c;
    border-radius: 5px;
    color: #bacdff;
}
.dpad button:hover
{
    background: #314a78;
}
.dpad button:first-child
{
    grid-column: 2;
}
.dpad button:nth-child(2)
{
    grid-column: 1;
    grid-row: 2;
}
.dpad > span
{
    grid-column: 2;
    grid-row: 2;
    color: #526785;
    display: grid;
    place-items: center;
}
.dpad button:nth-child(4)
{
    grid-column: 3;
    grid-row: 2;
}
.dpad button:last-child
{
    grid-column: 2;
    grid-row: 3;
}
.keyboard-hint
{
    color: #8695ab;
    font-size: 9px;
    text-align: center;
    line-height: 1.9;
    margin: 0;
}
kbd
{
    border: 1px solid #35445a;
    padding: 0 3px;
    margin-left: 2px;
    font-size: 8px;
    border-radius: 2px;
}
.tip
{
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #8492aa;
    padding: 0 5px;
}
.tip > .icon
{
    color: #9cadcd;
    width: 14px;
    margin-top: 2px;
}
.tip p
{
    margin: 0;
    font-size: 9px;
    line-height: 1.7;
}
.tip strong
{
    display: block;
    color: #bfcbdf;
    font-weight: 500;
    margin-bottom: 2px;
}
.mission-library
{
    padding: 29px 0 25px;
}
.library-heading
{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}
.library-heading h2
{
    font-size: 17px;
}
#path-heading
{
    color: #70829f;
    font-size: 12px;
    font-weight: 400;
    margin-left: 5px;
}
.library-heading > span
{
    font-size: 9px;
    color: #94a5bf;
}
.mission-cards
{
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
.mission-card
{
    min-width: 0;
    background: #111925;
    border: 1px solid #273143;
    border-radius: 6px;
    padding: 12px 10px;
    text-align: left;
    position: relative;
    min-height: 92px;
}
.mission-card[aria-pressed="true"]
{
    background: #192741;
    border-color: #607fca;
}
.mission-card .mission-number
{
    display: block;
    font: 9px Consolas, monospace;
    color: #8fa3c7;
    margin-bottom: 11px;
}
.mission-card strong
{
    display: block;
    font-size: 10px;
    font-weight: 500;
}
.mission-card small
{
    display: block;
    font-size: 8px;
    color: #8394af;
    margin-top: 4px;
}
.mission-card > .icon
{
    position: absolute;
    right: 9px;
    top: 11px;
    width: 12px;
    height: 12px;
    color: #7993c9;
}
.mission-card.complete > .icon
{
    color: var(--green);
}
.next-step
{
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #2e3b52;
    background: linear-gradient(110deg, #182840, #101722);
    border-radius: 7px;
    padding: 20px;
}
.next-icon
{
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    background: #243650;
    color: #9cbcff;
    border-radius: 5px;
}
.next-step p
{
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}
.next-step button
{
    margin-left: auto;
    font-size: 10px;
    color: #b4c9ff;
    white-space: nowrap;
}
.next-step button .icon
{
    width: 12px;
    margin-left: 7px;
}
footer
{
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    color: #728299;
    font-size: 8px;
    gap: 20px;
}
footer > span:first-child
{
    font-weight: 600;
    color: #aebbd2;
    font-size: 12px;
}
footer > span:first-child > span
{
    color: #6e7e94;
    font-size: 8px;
    font-weight: 400;
    margin-left: 12px;
}
footer button
{
    margin-left: 12px;
    color: #9dacc5;
    font-size: 8px;
    padding: 0;
}
footer .icon
{
    width: 10px;
}
.program-help
{
    color: #97a8c1;
    font-size: 10px;
}
.command-buttons
{
    display: flex;
    gap: 5px;
}
.command-buttons button
{
    background: #233550;
    border: 1px solid #415b85;
    border-radius: 4px;
    padding: 8px 5px;
    font-size: 9px;
    flex: 1;
    white-space: nowrap;
}
.command-buttons .icon
{
    width: 11px;
    height: 11px;
}
.program-heading
{
    display: flex;
    justify-content: space-between;
    margin: 16px 0 8px;
    color: #8ca0c4;
    font: 8px Consolas, monospace;
}
#program
{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px;
    background: #0c1523;
    border: 1px solid #2a3b54;
    border-radius: 4px;
    min-height: 62px;
    max-height: 150px;
    overflow: auto;
    margin: 0;
}
#program:empty::after
{
    content: "Your next idea goes here…";
    font-size: 10px;
    color: #8494ac;
    margin: auto;
}
#program li
{
    background: #263b5b;
    border: 1px solid #405b83;
    color: #b7ceff;
    border-radius: 3px;
    padding: 4px 6px;
    font: 10px Consolas, monospace;
    align-self: flex-start;
}
#program li.executing
{
    background: #b6e895;
    color: #112318;
}
.program-tools
{
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}
.program-tools button
{
    font-size: 10px;
    color: #a5b7d5;
    padding: 3px;
}
.primary-button
{
    background: #668dff;
    color: #081426;
    padding: 10px 14px;
    border: 1px solid #8eacff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.primary-button:hover:not(:disabled)
{
    background: #99b4ff;
    color: #0a172d;
}
#run
{
    width: 100%;
}
.primary-button .icon
{
    width: 13px;
    height: 13px;
    margin-right: 5px;
}
dialog
{
    width: min(560px, calc(100% - 28px));
    max-height: calc(100dvh - 40px);
    border: 1px solid #425575;
    border-radius: 12px;
    background: #111c2c;
    color: var(--white);
    padding: 30px;
}
dialog::backdrop
{
    background: #030811cc;
    backdrop-filter: blur(5px);
}
dialog h2
{
    font-size: 29px;
    margin: 8px 0 24px;
}
dialog h3
{
    color: #b7cbff;
}
dialog p
{
    color: #a5b4ca;
    font-size: 12px;
    line-height: 1.8;
    margin: 8px 0 20px;
}
dialog .icon-button
{
    position: absolute;
    top: 14px;
    right: 14px;
}
@media (min-width: 1450px)
{
    .hero
    {
        min-height: 290px;
    }
    .arena
    {
        width: 360px;
    }
}
@media (max-width: 1080px)
{
    .sidebar
    {
        width: 180px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .shell
    {
        margin-left: 180px;
    }
    main, .topbar
    {
        padding-left: 24px;
        padding-right: 24px;
    }
    .hero-meta
    {
        gap: 10px;
    }
    .hero-last, .local-save
    {
        display: none !important;
    }
    .learning-grid
    {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 14px;
    }
    .hero
    {
        grid-template-columns: 1.35fr 1fr;
    }
    h1
    {
        font-size: 31px;
    }
    .mission-cards
    {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 800px)
{
    .sidebar
    {
        display: none;
    }
    .shell
    {
        margin: 0;
    }
    .mobile-brand
    {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 24px;
        font-weight: 650;
        letter-spacing: -1px;
    }
    .breadcrumb
    {
        display: none;
    }
    .hero-art img
    {
        width: 110%;
        right: 0;
    }
}
@media (max-width: 600px)
{
    main, .topbar
    {
        padding-left: 18px;
        padding-right: 18px;
    }
    .topbar
    {
        height: 61px;
    }
    .top-right
    {
        gap: 8px;
    }
    .top-right > .avatar
    {
        display: none;
    }
    .online
    {
        font-size: 9px;
    }
    .hero
    {
        grid-template-columns: 1fr;
        padding-bottom: 12px;
    }
    .hero-copy
    {
        padding: 25px 0 0;
    }
    .eyebrow
    {
        font-size: 8px;
        letter-spacing: 1px;
    }
    h1
    {
        font-size: clamp(28px, 8.2vw, 39px);
        letter-spacing: -1.4px;
    }
    .hero p
    {
        font-size: 12px;
    }
    .hero-meta
    {
        margin-top: 15px;
        gap: 17px;
        font-size: 9px;
    }
    .hero-art
    {
        height: 145px;
        margin-top: 2px;
    }
    .hero-art img
    {
        height: 160px;
        width: 100%;
        top: -8px;
    }
    .art-caption
    {
        bottom: 3px;
        right: 0;
        font-size: 6px;
    }
    .lab-tabs
    {
        gap: 25px;
        width: 100%;
    }
    .lab-tabs button
    {
        font-size: 12px;
        padding-bottom: 12px;
    }
    .lab-heading
    {
        margin-bottom: 14px;
    }
    .learning-grid
    {
        grid-template-columns: 1fr;
    }
    .sim-top
    {
        padding: 15px;
    }
    .sim-top h2
    {
        font-size: 20px;
    }
    .arena-wrap
    {
        padding: 11px 18px 8px;
    }
    .arena
    {
        width: min(100%, 330px);
    }
    .control-column
    {
        grid-template-columns: 1fr;
    }
    .briefing, .controls
    {
        padding: 18px;
    }
    #mobile-controls .controls
    {
        border: 0;
        border-top: 1px solid var(--line);
        border-radius: 0;
        padding: 12px 18px;
    }
    #mobile-controls #flight-controls
    {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    #mobile-controls .dpad
    {
        margin: 12px 0 4px;
    }
    #mobile-controls .keyboard-hint
    {
        max-width: 115px;
    }
    .card-title h3
    {
        font-size: 14px;
    }
    .briefing > p
    {
        font-size: 12px;
    }
    .objectives li
    {
        font-size: 11px;
    }
    .dpad
    {
        grid-template-columns: repeat(3, 49px);
        grid-template-rows: repeat(3, 44px);
    }
    .keyboard-hint
    {
        font-size: 10px;
    }
    .feedback
    {
        font-size: 11px;
        padding: 10px 15px;
    }
    .reset-button
    {
        min-height: 36px;
        font-size: 10px;
    }
    .tip p
    {
        font-size: 11px;
    }
    .mission-library
    {
        padding-top: 25px;
    }
    .mission-cards
    {
        gap: 8px;
    }
    .mission-card
    {
        min-height: 104px;
    }
    .mission-card strong
    {
        font-size: 11px;
    }
    .mission-card small
    {
        font-size: 9px;
    }
    .next-step
    {
        flex-wrap: wrap;
        padding: 16px;
        gap: 10px;
    }
    .next-step > div
    {
        width: calc(100% - 48px);
    }
    .next-step h3
    {
        font-size: 11px;
    }
    .next-step button
    {
        margin: 5px 0 0 45px;
        min-height: 32px;
    }
    footer
    {
        flex-direction: column;
        gap: 6px;
        font-size: 8px;
    }
    .command-buttons button
    {
        min-height: 44px;
        font-size: 11px;
    }
    .program-tools button
    {
        min-height: 36px;
        font-size: 11px;
    }
    #run
    {
        min-height: 44px;
    }
    .program-help
    {
        font-size: 12px;
    }
}
@media (prefers-reduced-motion: reduce)
{
    html
    {
        scroll-behavior: auto;
    }
}
