@import url('../../game/ui/field-kit-fonts.css');
@import url('../../game/ui/field-kit-tokens.css');
/* Legacy layout and paint share one cascade layer. Theme recipes own opt-in appearance. */
@layer legacy {
  :root {
    color-scheme: dark;
    --atlas-ink: #070b12;
    --atlas-panel: #101923;
    --atlas-raised: var(--fk-panel-raised, #182531);
    --atlas-text: #f3f0db;
    --atlas-muted: #a5b2bb;
    --atlas-line: var(--fk-line, #425563);
    --atlas-cyan: #78dce8;
    --atlas-amber: #f4bf62;
    --atlas-danger: #f07879;
    --atlas-success: #9dbb7a;
    --atlas-display: 'Field Kit Display', 'Field Kit UI', sans-serif;
    --atlas-ui: 'Field Kit UI', 'Field Kit Mono', 'Trebuchet MS', sans-serif;
    --atlas-mono: 'Field Kit Mono', monospace;
    background: var(--atlas-ink);
    color: var(--atlas-text);
    font-family: var(--atlas-ui);
    font-synthesis: none;
    scroll-behavior: smooth;
  }
  * {
    box-sizing: border-box;
  }
  [hidden] {
    display: none !important;
  }
  body {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
  }
  button,
  input,
  select,
  textarea {
    font: inherit;
  }
  button,
  a,
  select,
  summary {
    -webkit-tap-highlight-color: transparent;
  }
  button,
  select {
    min-height: 44px;
    border: 1px solid var(--atlas-line);
    border-radius: 0;
    background: var(--atlas-panel);
    color: var(--atlas-text);
  }
  button {
    padding: 8px 16px;
    cursor: pointer;
  }
  button:hover,
  select:hover {
    border-color: var(--atlas-cyan);
  }
  button[aria-pressed='true'] {
    color: var(--atlas-ink);
    background: var(--atlas-cyan);
    border-color: var(--atlas-cyan);
  }
  button:disabled {
    color: var(--atlas-muted);
    cursor: not-allowed;
    border-style: dashed;
  }
  button:focus-visible,
  a:focus-visible,
  select:focus-visible,
  summary:focus-visible,
  [tabindex]:focus-visible,
  input:focus-visible {
    outline: 3px solid var(--atlas-amber);
    outline-offset: 4px;
  }
  a {
    color: var(--atlas-cyan);
    text-underline-offset: 5px;
  }
  a:hover {
    color: var(--atlas-text);
  }
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }
  h1,
  h2 {
    font-family: var(--atlas-display);
    font-weight: 600;
    line-height: 1;
  }
  h2 {
    font-size: clamp(42px, 5vw, 64px);
  }
  h3 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
  }
  img {
    max-width: 100%;
    display: block;
  }
  button svg {
    pointer-events: none;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .skip-link {
    position: absolute;
    left: 24px;
    top: -100px;
    z-index: 20;
    padding: 12px;
    background: var(--atlas-ink);
  }
  .skip-link:focus {
    top: 20px;
  }
  .mono,
  .eyebrow,
  .edition,
  .badge,
  .index,
  .small-note,
  .hero-coordinates,
  .hero-caption,
  .preview-caption,
  .palette code,
  .atlas-footer > span {
    font-family: var(--atlas-mono);
  }
  #font-status {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    background: var(--atlas-panel);
  }
  .atlas-header {
    max-width: 1400px;
    margin: auto;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--atlas-line);
  }
  .atlas-header > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .atlas-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--atlas-text);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
  }
  .atlas-brand > span:last-child {
    color: var(--atlas-cyan);
  }
  .brand-mark {
    margin-right: 8px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: var(--atlas-amber);
    color: var(--atlas-ink);
    font-size: 25px;
  }
  .edition {
    font-size: 12px;
    color: var(--atlas-muted);
    letter-spacing: 0.06em;
  }
  main {
    max-width: 1320px;
    margin: auto;
    padding: 0 40px;
  }
  .intro {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    padding: 86px 0 72px;
    align-items: center;
  }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--atlas-cyan);
  }
  .status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    background: var(--atlas-success);
    box-shadow: 0 0 0 3px #9dbb7a18;
  }
  .intro h1 {
    font-size: clamp(62px, 6.5vw, 92px);
    margin: 22px 0;
  }
  .intro h1 span {
    color: var(--atlas-amber);
  }
  .intro-deck {
    max-width: 520px;
    color: var(--atlas-muted);
    margin-bottom: 28px;
  }
  .action {
    display: inline-flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    border: 1px solid var(--atlas-line);
    background: var(--atlas-panel);
    color: var(--atlas-text);
    min-height: 48px;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
  }
  .action.primary {
    background: var(--atlas-amber);
    border-color: var(--atlas-amber);
    color: var(--atlas-ink);
  }
  .action.primary:hover {
    background: #ffd58e;
  }
  .hero-field {
    min-height: 374px;
    aspect-ratio: 1.2;
    background: linear-gradient(0deg, #111e24, #101820);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--atlas-line);
    clip-path: polygon(
      0 0,
      calc(100% - 20px) 0,
      100% 20px,
      100% 100%,
      20px 100%,
      0 calc(100% - 20px)
    );
  }
  .hero-field::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(#78dce80b 1px, transparent 1px),
      linear-gradient(90deg, #78dce80b 1px, transparent 1px);
    background-size: 24px 24px;
  }
  .hero-coordinates,
  .hero-caption {
    position: absolute;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    left: 20px;
    right: 20px;
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--atlas-muted);
  }
  .hero-coordinates {
    top: 18px;
  }
  .hero-caption {
    bottom: 18px;
  }
  .field-horizon {
    position: absolute;
    bottom: 40px;
    height: 44%;
    left: 0;
    right: 0;
    background: #263c41;
    clip-path: polygon(
      0 35%,
      12% 35%,
      12% 20%,
      22% 20%,
      22% 0,
      38% 0,
      38% 35%,
      47% 35%,
      47% 20%,
      60% 20%,
      60% 42%,
      74% 42%,
      74% 12%,
      86% 12%,
      86% 32%,
      100% 32%,
      100% 100%,
      0 100%
    );
    opacity: 0.7;
  }
  .field-route {
    position: absolute;
    inset: 27% 17% 27% 12%;
    border-left: 3px solid var(--atlas-cyan);
    border-bottom: 3px solid var(--atlas-cyan);
  }
  .field-route::after {
    content: '';
    position: absolute;
    right: 0;
    top: 55%;
    bottom: -3px;
    border-right: 3px solid var(--atlas-amber);
  }
  .hero-craft {
    position: absolute;
    width: 68%;
    left: 16%;
    top: 12%;
    filter: drop-shadow(0 20px 0 #070b124a);
  }
  .drone-svg {
    width: 100%;
    height: auto;
    image-rendering: pixelated;
  }
  .atlas-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 18px 0;
    border-block: 1px solid var(--atlas-line);
  }
  .atlas-nav a {
    font-size: 13px;
    font-family: var(--atlas-mono);
    text-decoration: none;
  }
  .atlas-section {
    padding: 82px 0 8px;
    scroll-margin-top: 24px;
  }
  .section-heading {
    max-width: 780px;
    margin-bottom: 32px;
  }
  .section-heading h2 {
    margin: 12px 0 18px;
  }
  .section-heading > p:last-child {
    color: var(--atlas-muted);
  }
  .principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-block: 1px solid var(--atlas-line);
  }
  .principles article {
    padding: 30px 28px 30px 0;
  }
  .principles article + article {
    padding-left: 28px;
    border-left: 1px solid var(--atlas-line);
  }
  .index {
    display: block;
    color: var(--atlas-amber);
    font-size: 13px;
    margin-bottom: 20px;
  }
  .principles h3 {
    margin-bottom: 10px;
  }
  .principles p {
    color: var(--atlas-muted);
    font-size: 16px;
  }
  .evidence-key {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 24px;
  }
  .evidence-key p {
    font-size: 14px;
    color: var(--atlas-muted);
  }
  .badge {
    display: inline-block;
    width: fit-content;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 7px;
    border: 1px solid;
    white-space: nowrap;
    line-height: 1.5;
  }
  .badge.reference {
    color: var(--atlas-muted);
    border-color: var(--atlas-line);
  }
  .badge.proposed {
    color: var(--atlas-amber);
    border-color: #f4bf6266;
  }
  .badge.implemented {
    color: var(--atlas-success);
    border-color: #9dbb7a66;
  }
  .evidence-key .badge {
    display: block;
    margin-bottom: 8px;
  }
  .review-controls {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin: 24px 0 18px;
  }
  label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--atlas-muted);
  }
  select {
    padding: 9px 36px 9px 12px;
    min-width: 168px;
    font-size: 16px;
  }
  .viewport-buttons {
    margin-left: auto;
    display: flex;
    gap: 4px;
  }
  .viewport-buttons button,
  .language-buttons button {
    font-size: 14px;
  }
  .preview-surround {
    background: #03070b;
    padding: 16px;
    border: 1px solid var(--atlas-line);
  }
  .preview-caption {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    margin: 0 0 16px;
    font-size: 11px;
    color: var(--atlas-muted);
  }
  .screen-stage {
    margin: auto;
    width: 100%;
    max-width: 1120px;
    container: screen / inline-size;
    transition: max-width 0.25s ease;
  }
  .screen-stage[data-viewport='tablet'] {
    max-width: 768px;
  }
  .screen-stage[data-viewport='phone'] {
    max-width: 390px;
  }
  .screen-stage[data-viewport='landscape'] {
    max-width: 740px;
  }
  .screen-preview {
    min-height: 570px;
    border: 1px solid #233540;
    background: var(--atlas-ink);
    font-size: 16px;
    line-height: 1.4;
  }
  .loading-note {
    padding: 30px;
    color: var(--atlas-muted);
  }
  .study-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 18px 0;
    font-size: 15px;
    color: var(--atlas-muted);
  }
  .study-notes strong {
    display: block;
    color: var(--atlas-text);
    font-weight: 600;
    margin-bottom: 5px;
  }
  .mock-screen {
    min-height: 568px;
    display: flex;
    flex-direction: column;
    padding: 28px 32px 18px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }
  .mock-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: var(--atlas-muted);
    font-family: var(--atlas-mono);
    font-size: 11px;
    margin-bottom: 24px;
    letter-spacing: 0.06em;
  }
  .mock-topline strong {
    color: var(--atlas-cyan);
    font-weight: 500;
  }
  .mock-screen h3 {
    font-family: var(--atlas-display);
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 18px;
  }
  .mock-command {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid #38495899;
    color: var(--atlas-muted);
    font-size: 12px;
  }
  .mock-command button {
    border: 0;
    background: transparent;
    color: var(--atlas-cyan);
    padding: 4px 8px;
    min-height: 36px;
    font-size: 13px;
  }
  .mock-command kbd {
    color: var(--atlas-text);
    font-family: var(--atlas-mono);
    padding: 2px 5px;
    background: var(--atlas-raised);
    border-bottom: 1px solid var(--atlas-line);
  }
  .mock-title-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 18px 0 42px;
  }
  .mock-logo {
    font-family: var(--atlas-display);
    font-size: 78px;
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: 0.02em;
    margin: 0 0 14px;
  }
  .mock-logo span {
    color: var(--atlas-amber);
  }
  .mock-subtitle {
    color: var(--atlas-muted);
    font-family: var(--atlas-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .mock-menu {
    display: grid;
    justify-items: stretch;
    width: 250px;
    max-width: 100%;
    gap: 2px;
    margin-top: 32px;
  }
  .mock-menu button {
    border: 0;
    text-align: left;
    min-height: 42px;
    color: var(--atlas-cyan);
    background: transparent;
    padding: 8px 16px;
    font-size: 18px;
  }
  .mock-menu button.menu-focus {
    background: #78dce814;
    color: var(--atlas-text);
    border-left: 4px solid var(--atlas-amber);
    padding-left: 12px;
  }
  .mock-menu button.menu-focus::before {
    content: '›';
    color: var(--atlas-amber);
    padding-right: 10px;
  }
  .menu-destination {
    color: var(--atlas-muted);
    font-size: 12px;
    margin: 8px 0 0 16px;
  }
  .title-art {
    position: relative;
    align-self: center;
    aspect-ratio: 1.1;
    background: linear-gradient(0deg, #1c3336, #0c121a 70%);
    border-bottom: 3px solid #78dce82b;
  }
  .title-art::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    background: #35534e;
    clip-path: polygon(
      0 45%,
      18% 45%,
      18% 20%,
      36% 20%,
      36% 60%,
      53% 60%,
      53% 0,
      72% 0,
      72% 40%,
      100% 40%,
      100% 100%,
      0 100%
    );
    opacity: 0.55;
  }
  .title-art .drone-svg {
    width: 90%;
    margin: 10% 5%;
    position: relative;
    z-index: 1;
  }
  .mock-gallery-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 18px;
  }
  .mock-gallery-head h3 {
    margin: 0;
  }
  .mock-gallery-head p {
    color: var(--atlas-muted);
    font-size: 12px;
    margin-top: 8px;
  }
  .pack-tabs {
    display: flex;
    gap: 4px;
  }
  .pack-tabs span {
    color: var(--atlas-muted);
    border: 1px solid var(--atlas-line);
    font-size: 11px;
    padding: 5px 9px;
  }
  .pack-tabs span:first-child {
    color: var(--atlas-cyan);
    border-color: var(--atlas-cyan);
  }
  .mission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 20px;
    margin-bottom: 20px;
  }
  .mission-card {
    min-width: 0;
  }
  .mission-art {
    aspect-ratio: 1.85;
    position: relative;
    overflow: hidden;
    background: #1b3339;
    border: 1px solid #3a575e;
  }
  .mission-art::before {
    content: '';
    position: absolute;
    inset: 24% 0 0;
    background: #304944;
    clip-path: polygon(
      0 18%,
      15% 18%,
      15% 0,
      30% 0,
      30% 38%,
      46% 38%,
      46% 16%,
      62% 16%,
      62% 45%,
      80% 45%,
      80% 30%,
      100% 30%,
      100% 100%,
      0 100%
    );
  }
  .mission-art::after {
    content: '';
    position: absolute;
    inset: 64% -5% auto;
    height: 13%;
    background: var(--atlas-amber);
    transform: skewY(-9deg);
    opacity: 0.6;
  }
  .mission-art.terrain-1 {
    background: #353e41;
  }
  .mission-art.terrain-1::before {
    background: #17262e;
    clip-path: polygon(
      0 30%,
      10% 30%,
      10% 0,
      20% 0,
      20% 15%,
      40% 15%,
      40% 40%,
      60% 40%,
      60% 5%,
      74% 5%,
      74% 45%,
      100% 45%,
      100% 100%,
      0 100%
    );
  }
  .mission-art.terrain-1::after {
    background: var(--atlas-cyan);
    width: 12%;
    left: 64%;
    height: 100%;
    top: 0;
  }
  .mission-art.terrain-2 {
    background: #34302c;
  }
  .mission-art.terrain-2::before {
    background: #625744;
  }
  .mission-art.terrain-3 {
    background: #172d2a;
  }
  .mission-art.terrain-3::after {
    background: #9dbb7a;
  }
  .mission-art.terrain-4 {
    background: #222f3e;
  }
  .mission-art.terrain-4::before {
    background: #42596b;
  }
  .mission-art.terrain-5 {
    background: #2d2839;
  }
  .mission-art.terrain-5::after {
    background: #9b839c;
  }
  .mission-card.selected .mission-art {
    outline: 2px solid var(--atlas-cyan);
    outline-offset: 4px;
  }
  .mission-card.selected .mission-label {
    color: var(--atlas-text);
  }
  .mission-number {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 6px;
    background: #070b12cc;
    color: var(--atlas-text);
    font: 11px var(--atlas-mono);
    z-index: 2;
  }
  .medals {
    color: var(--atlas-amber);
    letter-spacing: 0.12em;
  }
  .mission-art .medals {
    position: absolute;
    bottom: 5px;
    left: 8px;
    z-index: 2;
    font-size: 15px;
    text-shadow: 0 1px 2px var(--atlas-ink);
  }
  .mission-label {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: baseline;
    font-size: 13px;
    margin-top: 8px;
    color: var(--atlas-muted);
  }
  .mission-label span:last-child {
    font-size: 10px;
    font-family: var(--atlas-mono);
  }
  .mission-art.unknown::before,
  .mission-art.unknown::after {
    display: none;
  }
  .mission-art.unknown {
    background: #0e161e;
    display: grid;
    place-items: center;
  }
  .unknown-mark {
    color: var(--atlas-muted);
    font-family: var(--atlas-display);
    font-size: 58px;
  }
  .mission-choice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: auto 0 16px;
    background: #101923;
    border-top: 1px solid var(--atlas-line);
    padding: 14px;
  }
  .mission-choice strong {
    display: block;
    font-weight: 600;
  }
  .mission-choice p {
    color: var(--atlas-muted);
    font-size: 12px;
    margin-top: 4px;
  }
  .mock-screen .action {
    font-size: 14px;
    min-height: 44px;
    padding: 8px 14px;
    white-space: nowrap;
  }
  .mock-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .brief-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 26px;
    margin: 6px 0 24px;
  }
  .brief-art {
    min-height: 220px;
  }
  .brief-conditions {
    display: grid;
    gap: 12px;
  }
  .brief-conditions > div {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--atlas-line);
  }
  .brief-conditions dt {
    color: var(--atlas-muted);
    font-size: 13px;
  }
  .brief-conditions dd {
    margin: 0;
    color: var(--atlas-text);
    font-size: 14px;
  }
  .mock-description {
    color: var(--atlas-muted);
    font-size: 14px;
    max-width: 570px;
    margin: 0 0 20px;
  }
  .mock-flight {
    padding: 18px;
  }
  .flight-hud {
    display: grid;
    grid-template-columns: 0.9fr 1.9fr 1fr 1fr;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid var(--atlas-line);
    padding-bottom: 14px;
    margin-bottom: 12px;
    font-family: var(--atlas-mono);
  }
  .hud-item {
    min-width: 0;
  }
  .hud-item > span {
    display: block;
    color: var(--atlas-muted);
    font-size: 10px;
    margin-bottom: 5px;
  }
  .hud-item strong {
    font-size: 20px;
    font-weight: 500;
    color: var(--atlas-text);
  }
  .hud-coverage strong {
    color: var(--atlas-cyan);
  }
  .coverage-track {
    height: 4px;
    margin-top: 6px;
    background: var(--atlas-line);
  }
  .coverage-track span {
    display: block;
    width: 70%;
    height: 100%;
    background: var(--atlas-cyan);
  }
  .arena-mock {
    position: relative;
    flex: 1;
    min-height: 310px;
    background: #0a1018;
    border: 1px solid #617987;
    overflow: hidden;
  }
  .arena-mock::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(#78dce806 1px, transparent 1px),
      linear-gradient(90deg, #78dce806 1px, transparent 1px);
    background-size: 16px 16px;
  }
  .revealed-land {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      164deg,
      #38483f 0 30%,
      #1e4248 30% 37%,
      #293c35 37% 65%,
      #425344 65%
    );
    clip-path: polygon(0 0, 32% 0, 32% 36%, 66% 36%, 66% 100%, 0 100%);
    opacity: 0.8;
  }
  .revealed-land::after {
    content: '';
    position: absolute;
    inset: 20% 0 14% 10%;
    background: repeating-linear-gradient(90deg, transparent 0 23px, #b5a47622 23px 25px);
  }
  .frontier {
    position: absolute;
    width: 34%;
    height: 36%;
    top: 0;
    left: 32%;
    border-left: 2px solid var(--atlas-cyan);
    border-bottom: 2px solid var(--atlas-cyan);
  }
  .frontier::after {
    content: '';
    position: absolute;
    height: 180%;
    top: 100%;
    right: 0;
    border-right: 2px solid var(--atlas-cyan);
  }
  .live-route {
    position: absolute;
    width: 23%;
    height: 28%;
    top: 36%;
    left: 66%;
    border-right: 4px solid var(--atlas-amber);
    border-bottom: 4px solid var(--atlas-cyan);
  }
  .arena-craft {
    position: absolute;
    top: 28%;
    left: 84%;
    width: 38px;
    height: 38px;
    z-index: 3;
  }
  .arena-craft .drone-svg {
    width: 52px;
    margin: -5px 0 0 -8px;
  }
  .arena-craft::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--atlas-amber);
    left: 15px;
    top: 16px;
  }
  .terrain-wall {
    position: absolute;
    left: 44%;
    top: 12%;
    width: 20%;
    height: 7%;
    background: repeating-linear-gradient(90deg, #637681 0 9px, #233039 9px 11px);
    border: 1px solid #a5b2bb;
  }
  .terrain-slow {
    position: absolute;
    left: 72%;
    top: 72%;
    width: 17%;
    height: 18%;
    background-image: radial-gradient(#78dce884 2px, transparent 2px);
    background-size: 10px 10px;
  }
  .terrain-danger {
    position: absolute;
    left: 47%;
    top: 50%;
    width: 8%;
    height: 26%;
    background: repeating-linear-gradient(-45deg, #f0787960 0 3px, transparent 3px 8px);
    border-inline: 1px dashed var(--atlas-danger);
  }
  .threat {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--atlas-danger);
    transform: rotate(45deg);
    border: 3px solid #57383a;
  }
  .threat.one {
    left: 72%;
    top: 17%;
  }
  .threat.two {
    left: 38%;
    top: 76%;
  }
  .threat.three {
    left: 16%;
    top: 41%;
    width: 12px;
    height: 12px;
    background: transparent;
    border: 3px solid var(--atlas-danger);
  }
  .arena-message {
    position: absolute;
    inset: 28% 12% auto;
    z-index: 4;
    padding: 20px;
    background: var(--atlas-ink);
    text-align: center;
    border-block: 1px solid var(--atlas-danger);
  }
  .arena-message strong {
    display: block;
    font-family: var(--atlas-display);
    font-size: 48px;
    color: var(--atlas-danger);
    line-height: 1;
    margin-bottom: 10px;
  }
  .arena-message p {
    font-size: 13px;
    color: var(--atlas-text);
  }
  .flight-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 10px;
  }
  .flight-ability {
    color: var(--atlas-amber);
    border: 1px solid var(--atlas-line);
    padding: 9px 12px;
    font-size: 13px;
  }
  .flight-state {
    font: 12px var(--atlas-mono);
    color: var(--atlas-cyan);
  }
  .touch-controls {
    display: none;
  }
  .pause-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-content: center;
    background: var(--atlas-ink);
    text-align: center;
  }
  .pause-overlay h3 {
    color: var(--atlas-amber);
  }
  .pause-overlay .mock-menu {
    margin-top: 8px;
  }
  .pause-overlay .mock-menu button {
    text-align: center;
  }
  .results-content {
    margin: 4px auto 26px;
    text-align: center;
    max-width: 540px;
  }
  .result-emblem {
    font: 88px var(--atlas-display);
    color: var(--atlas-amber);
    letter-spacing: 0.04em;
    line-height: 1;
    margin: 8px 0 18px;
  }
  .result-emblem.failure {
    color: var(--atlas-danger);
  }
  .result-goals {
    display: flex;
    gap: 20px;
    justify-content: center;
    color: var(--atlas-muted);
    font-size: 13px;
    margin: 20px 0;
  }
  .result-goals span {
    max-width: 135px;
  }
  .result-goals b {
    display: block;
    color: var(--atlas-amber);
    font-size: 21px;
    margin-bottom: 6px;
  }
  .result-score {
    font: 44px var(--atlas-mono);
    color: var(--atlas-text);
  }
  .result-highscore {
    display: inline-block;
    font: 10px var(--atlas-mono);
    background: var(--atlas-amber);
    color: var(--atlas-ink);
    padding: 4px 8px;
    margin: 10px 0 20px;
  }
  .results-content .mock-actions {
    justify-content: center;
    margin-top: 18px;
  }
  .settings-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 34px;
    margin: 10px 0 30px;
  }
  .settings-tabs {
    display: grid;
    align-content: start;
    gap: 3px;
  }
  .settings-tabs span {
    padding: 10px 12px;
    color: var(--atlas-muted);
    font-size: 14px;
  }
  .settings-tabs span.selected {
    border-left: 3px solid var(--atlas-amber);
    color: var(--atlas-text);
    background: #101923;
  }
  .settings-list {
    max-width: 480px;
  }
  .setting-row {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--atlas-line);
    font-size: 15px;
  }
  .setting-row span:first-child small {
    display: block;
    color: var(--atlas-muted);
    font-size: 12px;
    margin-top: 4px;
  }
  .setting-value {
    color: var(--atlas-cyan);
    font: 12px var(--atlas-mono);
  }
  .mini-range {
    width: 100px;
    height: 7px;
    background: var(--atlas-line);
    position: relative;
  }
  .mini-range::before {
    content: '';
    display: block;
    height: 100%;
    width: 66%;
    background: var(--atlas-cyan);
  }
  .settings-preview {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--atlas-line);
    color: var(--atlas-muted);
    font-size: 13px;
  }
  .settings-preview strong {
    display: block;
    color: var(--atlas-text);
    font: 20px var(--atlas-mono);
    margin-bottom: 6px;
  }
  .workshop-layout {
    display: grid;
    grid-template-columns: 160px 1fr 1.1fr;
    gap: 20px;
    margin-bottom: 24px;
  }
  .slot-nav {
    display: grid;
    gap: 2px;
    align-content: start;
  }
  .slot-nav span {
    padding: 8px;
    font-size: 12px;
    color: var(--atlas-muted);
    border-left: 2px solid transparent;
  }
  .slot-nav span.selected {
    border-color: var(--atlas-amber);
    color: var(--atlas-text);
    background: var(--atlas-panel);
  }
  .slot-art {
    background: repeating-conic-gradient(#121c25 0% 25%, #17232d 0% 50%) 50% / 16px 16px;
    display: grid;
    place-items: center;
    border: 1px solid var(--atlas-line);
    aspect-ratio: 1;
  }
  .slot-art .drone-svg {
    width: 90%;
  }
  .slot-meta {
    font-size: 13px;
    color: var(--atlas-muted);
  }
  .slot-meta h4 {
    font-size: 17px;
    color: var(--atlas-text);
    margin: 0 0 10px;
  }
  .slot-meta p {
    margin-bottom: 14px;
  }
  .slot-meta .badge {
    margin-bottom: 12px;
  }
  .slot-contract {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    margin-bottom: 16px;
    font-size: 11px;
    font-family: var(--atlas-mono);
  }
  .slot-contract dt {
    color: var(--atlas-muted);
  }
  .slot-contract dd {
    margin: 0;
    color: var(--atlas-text);
  }
  .language-buttons {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
  }
  .type-specimens {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    border: 1px solid var(--atlas-line);
  }
  .type-card {
    padding: 26px;
    min-width: 0;
  }
  .type-card + .type-card {
    border-left: 1px solid var(--atlas-line);
  }
  .type-card > p:last-child {
    color: var(--atlas-muted);
    font-size: 14px;
  }
  .specimen-display {
    font: 600 54px/0.95 var(--atlas-display);
    margin: 24px 0;
    color: var(--atlas-amber);
    min-height: 114px;
  }
  .specimen-ui {
    font-size: 23px;
    line-height: 1.35;
    margin: 24px 0;
    min-height: 114px;
  }
  .specimen-mono {
    font: 30px/1.5 var(--atlas-mono);
    margin: 24px 0;
    min-height: 114px;
    color: var(--atlas-cyan);
    white-space: nowrap;
  }
  .specimen-mono span {
    display: block;
    color: var(--atlas-muted);
    font-size: 16px;
  }
  .glyph-check {
    font-size: 22px;
    letter-spacing: 0.08em;
    padding: 24px;
    margin-top: 12px;
    color: var(--atlas-text);
    background: var(--atlas-panel);
    overflow-wrap: anywhere;
  }
  .small-note {
    color: var(--atlas-muted);
    font-size: 12px;
    margin-top: 12px;
    line-height: 1.6;
  }
  .palette {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-top: 34px;
  }
  .swatch {
    min-width: 0;
  }
  .swatch-color {
    height: 64px;
    border: 1px solid #ffffff24;
  }
  .swatch strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin: 10px 0 2px;
  }
  .swatch code {
    color: var(--atlas-muted);
    font-size: 11px;
  }
  .inventory-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 16px;
  }
  .inventory-toolbar > span {
    font-size: 12px;
    color: var(--atlas-muted);
  }
  .matrix-wrap {
    overflow-x: auto;
    border: 1px solid var(--atlas-line);
  }
  .screen-matrix {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    font-size: 14px;
    line-height: 1.5;
  }
  .screen-matrix caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .screen-matrix th {
    text-align: left;
    font-size: 11px;
    font-family: var(--atlas-mono);
    font-weight: 500;
    color: var(--atlas-cyan);
    padding: 16px;
    background: var(--atlas-panel);
  }
  .screen-matrix td {
    vertical-align: top;
    padding: 16px;
    border-top: 1px solid var(--atlas-line);
    color: var(--atlas-muted);
  }
  .screen-matrix td:first-child {
    width: 23%;
    color: var(--atlas-text);
    font-weight: 600;
  }
  .screen-matrix td:nth-child(2) {
    width: 32%;
  }
  .screen-matrix td:nth-child(3) {
    width: 33%;
  }
  .screen-matrix td:last-child {
    width: 12%;
  }
  .screen-matrix small {
    display: block;
    margin-top: 4px;
    color: var(--atlas-muted);
    font-size: 11px;
    font-weight: 400;
  }
  .asset-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
  }
  .asset-sample {
    padding: 24px;
    background: var(--atlas-panel);
    border: 1px solid var(--atlas-line);
  }
  .asset-sample-art {
    height: 220px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    background: repeating-conic-gradient(#152029 0% 25%, #1b2932 0% 50%) 50% / 24px 24px;
  }
  .asset-sample-art .drone-svg {
    max-width: 280px;
    max-height: 200px;
  }
  .asset-sample h3 {
    margin: 14px 0 8px;
  }
  .asset-sample p {
    color: var(--atlas-muted);
    font-size: 15px;
  }
  .asset-sample dl {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    font-size: 12px;
  }
  .asset-sample dl > div {
    border-top: 1px solid var(--atlas-line);
    padding-top: 10px;
  }
  .asset-sample dt {
    font-family: var(--atlas-mono);
    color: var(--atlas-cyan);
    margin-bottom: 3px;
  }
  .asset-sample dd {
    margin: 0;
    color: var(--atlas-muted);
  }
  .asset-contract {
    padding-top: 4px;
  }
  .contract-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 22px;
  }
  .contract-list li {
    display: flex;
    gap: 20px;
  }
  .contract-list li > span {
    color: var(--atlas-amber);
    font: 12px var(--atlas-mono);
    padding-top: 4px;
  }
  .contract-list strong {
    font-size: 17px;
    font-weight: 600;
  }
  .contract-list p {
    color: var(--atlas-muted);
    font-size: 15px;
    margin-top: 6px;
  }
  .prompt-example {
    border-block: 1px solid var(--atlas-line);
    padding: 18px 0;
    margin: 32px 0 0;
  }
  .prompt-example summary {
    cursor: pointer;
    color: var(--atlas-cyan);
    padding: 6px;
    font-size: 16px;
  }
  .prompt-example pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: var(--atlas-panel);
    font: 13px/1.8 var(--atlas-mono);
    padding: 24px;
    color: var(--atlas-muted);
    margin: 18px 0;
  }
  #download-prompt {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-inline-start: 12px;
  }
  .prompt-example button {
    font-size: 14px;
  }
  #copy-status {
    font-size: 13px;
    color: var(--atlas-success);
    padding: 10px;
  }
  .reference-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .reference-grid figure {
    margin: 0;
    border: 1px solid var(--atlas-line);
  }
  .reference-grid figure > a {
    display: block;
    background: #000;
  }
  .reference-grid img {
    aspect-ratio: 2.4;
    width: 100%;
    object-fit: contain;
  }
  .reference-grid figcaption {
    padding: 20px;
  }
  .reference-grid figcaption strong {
    display: block;
    font-size: 19px;
    margin: 12px 0 6px;
    font-weight: 600;
  }
  .reference-grid figcaption p {
    font-size: 15px;
    color: var(--atlas-muted);
  }
  .source-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin: 24px 0;
    font-size: 14px;
  }
  .atlas-footer {
    max-width: 1240px;
    margin: 76px auto 0;
    padding: 28px 0 48px;
    border-top: 1px solid var(--atlas-line);
    display: grid;
    grid-template-columns: 1fr 1.3fr auto;
    gap: 30px;
    color: var(--atlas-muted);
    font-size: 12px;
  }
  .atlas-footer > span {
    color: var(--atlas-cyan);
    font-size: 11px;
  }

  @container screen (max-width: 800px) {
    .mock-screen {
      padding: 22px;
    }
    .mock-logo {
      font-size: 68px;
    }
    .mock-gallery-head {
      align-items: flex-start;
    }
    .mission-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mission-grid .mission-card:nth-child(n + 5) {
      display: none;
    }
    .workshop-layout {
      grid-template-columns: 120px 1fr;
    }
    .slot-meta {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 20px;
    }
    .slot-meta .mock-actions {
      grid-column: 2;
    }
  }
  @container screen (max-width: 520px) {
    .mock-screen {
      min-height: 650px;
      padding: 20px 16px 14px;
    }
    .mock-topline {
      font-size: 10px;
      margin-bottom: 20px;
    }
    .mock-topline > span:last-child {
      max-width: 110px;
      text-align: right;
    }
    .mock-screen h3 {
      font-size: 42px;
    }
    .mock-title-content {
      display: flex;
      flex-direction: column;
      margin: 0 0 24px;
      gap: 20px;
    }
    .mock-logo {
      font-size: 70px;
    }
    .mock-menu {
      margin-top: 22px;
      width: 100%;
    }
    .mock-menu button {
      min-height: 44px;
    }
    .title-art {
      position: absolute;
      top: 36px;
      right: -70px;
      width: 230px;
      opacity: 0.25;
      z-index: -1;
    }
    .mock-command {
      font-size: 11px;
      gap: 4px;
    }
    .mock-command .desktop-hints {
      display: none;
    }
    .mock-gallery-head {
      flex-direction: column;
      gap: 12px;
    }
    .mock-gallery-head h3 {
      margin-bottom: 0;
    }
    .mission-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    .mission-grid .mission-card:nth-child(n + 3) {
      display: none;
    }
    .mission-art {
      aspect-ratio: 2.35;
    }
    .mission-label {
      font-size: 14px;
    }
    .mission-choice {
      padding: 12px 0;
      flex-wrap: wrap;
      gap: 12px;
      background: transparent;
    }
    .mission-choice .mock-actions {
      width: 100%;
    }
    .mission-choice .mock-actions button {
      flex: 1;
    }
    .brief-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    .brief-art {
      min-height: 130px;
    }
    .brief-conditions {
      gap: 0;
      margin: 0;
    }
    .brief-conditions > div {
      padding: 9px 0;
    }
    .flight-hud {
      grid-template-columns: 1fr 1.3fr;
      gap: 10px;
      padding-bottom: 12px;
    }
    .hud-item strong {
      font-size: 18px;
    }
    .hud-item > span {
      font-size: 10px;
    }
    .mock-flight {
      padding: 14px;
      min-height: 620px;
    }
    .arena-mock {
      flex: none;
      min-height: 0;
      height: 230px;
    }
    .arena-craft {
      width: 26px;
      height: 26px;
    }
    .arena-craft .drone-svg {
      width: 36px;
      margin: 0;
    }
    .arena-craft::after {
      left: 16px;
      top: 12px;
      width: 4px;
      height: 4px;
    }
    .flight-state {
      font-size: 10px;
      max-width: 140px;
    }
    .flight-ability {
      font-size: 11px;
    }
    .touch-controls {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
    }
    .touch-dpad {
      display: grid;
      grid-template-columns: repeat(3, 42px);
      grid-template-rows: repeat(2, 42px);
      gap: 4px;
    }
    .touch-dpad span {
      display: grid;
      place-items: center;
      border: 1px solid var(--atlas-line);
      color: var(--atlas-cyan);
      font-size: 20px;
      background: #101923;
    }
    .touch-dpad span:first-child {
      grid-column: 2;
    }
    .touch-dpad span:nth-child(2) {
      grid-row: 2;
    }
    .touch-dpad span:nth-child(3) {
      grid-row: 2;
    }
    .touch-dpad span:nth-child(4) {
      grid-row: 2;
    }
    .touch-action {
      align-self: center;
      width: 72px;
      height: 72px;
      display: grid;
      place-items: center;
      border: 2px solid var(--atlas-amber);
      color: var(--atlas-amber);
      font-size: 12px;
    }
    .pause-overlay {
      inset: 0;
    }
    .arena-message {
      inset: 15% 5% auto;
      padding: 16px 10px;
    }
    .arena-message strong {
      font-size: 40px;
    }
    .results-content {
      margin-top: 32px;
    }
    .result-emblem {
      font-size: 72px;
    }
    .result-goals {
      gap: 10px;
      font-size: 11px;
    }
    .result-score {
      font-size: 34px;
    }
    .settings-layout {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .settings-tabs {
      display: flex;
      overflow: hidden;
      border-bottom: 1px solid var(--atlas-line);
    }
    .settings-tabs span {
      font-size: 12px;
      padding: 9px;
    }
    .settings-tabs span.selected {
      border-left: 0;
      border-bottom: 2px solid var(--atlas-amber);
    }
    .settings-tabs span:nth-child(n + 4) {
      display: none;
    }
    .setting-row {
      font-size: 14px;
      gap: 12px;
    }
    .workshop-layout {
      grid-template-columns: 1fr;
    }
    .slot-nav {
      display: flex;
      overflow: hidden;
    }
    .slot-nav span {
      white-space: nowrap;
    }
    .slot-nav span:nth-child(n + 4) {
      display: none;
    }
    .slot-art {
      max-height: 180px;
      aspect-ratio: 1.65;
    }
    .slot-art .drone-svg {
      max-height: 165px;
    }
    .slot-meta {
      display: block;
    }
    .slot-meta .slot-contract {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media (max-width: 1050px) {
    .atlas-header {
      padding-inline: 28px;
    }
    main {
      padding-inline: 28px;
    }
    .intro {
      gap: 30px;
      padding-top: 64px;
    }
    .intro h1 {
      font-size: 70px;
    }
    .hero-field {
      min-height: 320px;
    }
    .type-specimens {
      grid-template-columns: 1fr 1fr;
    }
    .display-card {
      grid-column: 1 / -1;
      border-bottom: 1px solid var(--atlas-line);
    }
    .type-card:nth-child(2) {
      border-left: 0;
    }
    .specimen-display {
      min-height: 0;
    }
    .atlas-footer {
      margin-inline: 28px;
    }
  }
  @media (max-width: 720px) {
    .atlas-header {
      padding: 18px 20px;
      flex-wrap: wrap;
      gap: 12px;
    }
    .atlas-header .edition {
      display: none;
    }
    .atlas-header > a:last-child {
      font-size: 11px;
    }
    main {
      padding-inline: 20px;
    }
    .intro {
      grid-template-columns: 1fr;
      padding: 42px 0;
      gap: 28px;
    }
    .intro h1 {
      font-size: clamp(60px, 11vw, 80px);
    }
    .hero-field {
      aspect-ratio: 1.8;
      min-height: 250px;
    }
    .hero-craft {
      width: 45%;
      left: 29%;
      top: 0;
    }
    .atlas-nav {
      gap: 16px 20px;
    }
    .atlas-nav a {
      font-size: 11px;
    }
    .atlas-section {
      padding-top: 54px;
    }
    .principles,
    .evidence-key,
    .study-notes {
      grid-template-columns: 1fr;
      gap: 0;
    }
    .principles article {
      padding: 24px 0;
    }
    .principles article + article {
      border-left: 0;
      border-top: 1px solid var(--atlas-line);
      padding-left: 0;
    }
    .index {
      margin-bottom: 12px;
    }
    .evidence-key {
      gap: 18px;
    }
    .review-controls {
      gap: 12px;
    }
    .review-controls > label {
      flex: 1;
      min-width: 120px;
    }
    .review-controls select {
      min-width: 0;
      width: 100%;
      font-size: 14px;
    }
    .viewport-buttons {
      margin-left: 0;
      width: 100%;
    }
    .viewport-buttons button {
      flex: 1;
      padding-inline: 8px;
    }
    .preview-surround {
      padding: 9px;
      margin-inline: -10px;
    }
    .preview-caption {
      font-size: 10px;
      margin-bottom: 10px;
    }
    .screen-preview {
      min-height: 0;
    }
    .study-notes {
      gap: 16px;
    }
    .type-specimens {
      grid-template-columns: 1fr;
    }
    .type-card + .type-card {
      border-left: 0;
      border-top: 1px solid var(--atlas-line);
    }
    .display-card {
      border-bottom: 0;
    }
    .specimen-ui,
    .specimen-mono {
      min-height: 0;
    }
    .glyph-check {
      padding: 16px;
      font-size: 20px;
    }
    .palette {
      grid-template-columns: repeat(4, 1fr);
      gap: 18px 10px;
    }
    .asset-layout,
    .reference-grid,
    .source-links {
      grid-template-columns: 1fr;
      gap: 24px;
    }
    .asset-sample {
      padding: 18px;
    }
    .atlas-footer {
      margin: 50px 20px 0;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    :root {
      scroll-behavior: auto;
    }
    .screen-stage {
      transition: none;
    }
  }

  /* Short landscape is a distinct layout study: touch controls occupy a side bay. */
  .screen-stage[data-viewport='landscape'] .mock-screen {
    min-height: 370px;
    height: 370px;
    overflow-y: auto;
  }
  .screen-stage[data-viewport='landscape'] .mock-flight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 136px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px 14px;
    padding: 12px;
    overflow: hidden;
  }
  .screen-stage[data-viewport='landscape'] .flight-hud {
    grid-column: 1 / -1;
    grid-template-columns: 0.9fr 1.6fr 1fr 1fr;
    gap: 12px;
    margin: 0;
    padding-bottom: 8px;
  }
  .screen-stage[data-viewport='landscape'] .flight-hud strong {
    font-size: 18px;
  }
  .screen-stage[data-viewport='landscape'] .arena-mock {
    min-height: 0;
    height: auto;
    grid-column: 1;
    grid-row: 2;
  }
  .screen-stage[data-viewport='landscape'] .flight-bottom {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
  }
  .screen-stage[data-viewport='landscape'] .flight-state {
    font-size: 10px;
  }
  .screen-stage[data-viewport='landscape'] .flight-ability {
    font-size: 11px;
    padding: 7px;
  }
  .screen-stage[data-viewport='landscape'] .touch-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    grid-column: 2;
    grid-row: 2 / 4;
    margin: 0;
  }
  .screen-stage[data-viewport='landscape'] .touch-dpad {
    display: grid;
    grid-template-columns: repeat(3, 42px);
    grid-template-rows: repeat(2, 42px);
    gap: 4px;
  }
  .screen-stage[data-viewport='landscape'] .touch-dpad span {
    display: grid;
    place-items: center;
    border: 1px solid var(--atlas-line);
    background: var(--atlas-panel);
    color: var(--atlas-cyan);
    font-size: 20px;
  }
  .screen-stage[data-viewport='landscape'] .touch-dpad span:first-child {
    grid-column: 2;
  }
  .screen-stage[data-viewport='landscape'] .touch-dpad span:nth-child(n + 2) {
    grid-row: 2;
  }
  .screen-stage[data-viewport='landscape'] .touch-action {
    display: grid;
    place-items: center;
    width: 72px;
    height: 60px;
    border: 2px solid var(--atlas-amber);
    color: var(--atlas-amber);
    font-size: 12px;
  }
  .screen-stage[data-viewport='landscape'] .mock-flight > .mock-command {
    position: absolute;
    bottom: 8px;
    right: 32px;
    border: 0;
    padding: 0;
  }
  .screen-stage[data-viewport='landscape'] .mock-flight > .mock-command > span {
    display: none;
  }

  /* Explicit read-only input surfaces retain the Atlas's own content and layout. */
  .atlas-read-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    margin-block: 12px;
    padding: 8px 12px;
    font: inherit;
    color: var(--atlas-cyan);
    background: var(--atlas-panel);
    border: 1px solid currentColor;
  }
  .atlas-read-control[aria-pressed='true'] {
    outline: 3px double currentColor;
    outline-offset: 3px;
  }
  .atlas-read-help {
    display: none;
    color: var(--atlas-muted);
    font-size: 14px;
    margin-block: 0 12px;
  }
  .atlas-read-control[aria-pressed='true'] + .atlas-read-help {
    display: block;
  }
  .atlas-read-scroll {
    max-height: 60svh;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  [data-atlas-reading='true'] {
    outline: 2px solid var(--atlas-cyan);
    outline-offset: 3px;
  }
}
