/* tower cab at night. layout: a rack of paper flight strips on the left, the sky and one painted runway on the right */
:root { --sea: #05262a; --deep: #031a1d; --line: #2b6a6b; --mist: #93c9c4; --white: #f3fbfa; --warn: #ff6a48; --pad: clamp(16px, 3.4vw, 52px); --mono: "B612", system-ui, sans-serif; --sans: "B612", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { background: var(--sea); color: var(--white); font: 400 16px/1.4 var(--sans); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; }
h1, h2, p, ol, form { margin: 0; padding: 0; font-weight: inherit; } ol { list-style: none; } a { color: inherit; } canvas { display: block; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { background: var(--white); color: var(--sea); } :focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
button, input { font: inherit; color: inherit; border-radius: 0; } button { cursor: pointer; background: none; border: 0; padding: 0; }
.q { min-height: 40px; display: inline-flex; align-items: center; padding: 0 2px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; font-size: 15px; } .q:hover { text-decoration-thickness: 3px; } .q[aria-pressed="true"] { text-decoration-thickness: 3px; }
.note { color: var(--mist); font-size: 14.5px; }

.tower { height: max(100svh, 720px); display: grid; grid-template-columns: 408px minmax(0, 1fr); grid-template-rows: 60px minmax(0, 1fr); }
.bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad) 0 18px; border-bottom: 1px solid var(--line); background: var(--deep); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; } .brand svg { width: 32px; height: 32px; } .brand b { font: 700 21px/1 var(--sans); text-transform: uppercase; letter-spacing: .01em; }
.bar nav { display: flex; gap: 24px; align-items: center; }

/* strips */
.bay { background: var(--deep); border-right: 1px solid var(--line); padding: 14px 14px 24px; min-height: 0; display: flex; flex-direction: column; gap: 8px; max-height: calc(100svh - 60px); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--line) transparent; }
.strip { background: var(--white); color: var(--sea); display: grid; font-family: var(--mono); box-shadow: inset 8px 0 0 var(--line); }
.strip .c { border-left: 1px solid #05262a33; border-top: 1px solid #05262a33; padding: 5px 9px 4px; min-width: 0; display: grid; align-content: start; } .strip .c > span, .strip .c > em { font: 400 12px/1.25 var(--sans); color: #2d5a5c; font-style: normal; }
.strip input { border: 0; background: none; padding: 2px 0; width: 100%; min-width: 0; font: 700 17px/1.2 var(--mono); color: var(--sea); text-overflow: ellipsis; } .strip input::placeholder { color: #4c7274; opacity: 1; } .strip input:focus { outline: 0; } .strip .c:focus-within { box-shadow: inset 0 -3px 0 var(--sea); }
.file { grid-template-columns: repeat(3, 1fr); padding-left: 8px; box-shadow: inset 8px 0 0 var(--white), inset 9px 0 0 #05262a33; } .file .ca { grid-column: 1 / -1; border-top: 0; } .go { grid-column: 1 / -1; background: var(--sea); color: var(--white); min-height: 46px; margin: 8px 8px 8px 0; font: 700 17px/1 var(--sans); } .go:hover { background: #0b4a4e; }
#mine { display: flex; flex-wrap: wrap; gap: 2px 14px; } #mine:empty { display: none; } #mine button { font: 700 14px/1 var(--mono); min-height: 34px; text-decoration: underline; text-underline-offset: 4px; }
.rack { display: grid; gap: 6px; }
.rack .strip { grid-template-columns: 1.25fr 1fr 1fr 34px; cursor: pointer; padding-left: 8px; transition: transform .14s; } .rack .strip.sel { transform: translateX(6px); box-shadow: inset 8px 0 0 var(--sea), 0 0 0 2px var(--white); } .rack .strip.landed { box-shadow: inset 8px 0 0 #0d8a7c; } .rack .strip.diverted { box-shadow: inset 8px 0 0 var(--warn); }
.rack .id { grid-row: 1 / 3; border: 0 !important; padding: 8px 8px 6px; gap: 2px; } .rack .id b { font: 700 20px/1.1 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rack .id strong { font: 700 25px/1.1 var(--mono); } .rack .id strong.dn { color: #b3310f; } .rack .c:nth-child(-n+4) { border-top: 0; } .rack .c b { font: 700 15px/1.3 var(--mono); white-space: nowrap; }
.rack .x { border: 0; border-left: 1px solid #05262a33; grid-row: 1 / 3; grid-column: 4; font: 400 18px/1 var(--sans); } .rack .x:hover { background: var(--sea); color: var(--white); }
.papi { display: flex; gap: 4px; padding-top: 4px; } .papi i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--sea); } .papi i.on { background: var(--sea); }
.lbl { font-size: 14px; color: var(--mist); padding-top: 8px; }
.thin { gap: 1px; } .thin li { display: grid; grid-template-columns: minmax(0, 1fr) 74px 92px; align-items: center; background: #0a3a3e; min-height: 40px; font: 400 15px/1 var(--mono); } .thin li > * { padding: 0 12px; white-space: nowrap; } .thin li b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .thin button { min-height: 40px; font: 400 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 4px; } .thin button:hover { background: var(--white); color: var(--sea); }

/* sky and runway */
.rack .slot { border: 1.5px dashed var(--line); color: var(--mist); padding: 24px 16px; font-size: 15px; }
.vista { position: relative; min-width: 0; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) clamp(200px, 35svh, 340px); }
#sky { width: 100%; height: 100%; min-height: 0; touch-action: pan-y; } #sky:focus-visible { outline-offset: -4px; }
.state { position: absolute; left: 24px; top: 12px; display: flex; gap: 14px; align-items: center; color: var(--mist); font: 400 14px/1.3 var(--mono); }
.field { position: relative; overflow: hidden; border-top: 1.5px solid var(--mist); background: var(--deep); }
.field::before { content: ""; position: absolute; inset: 5px 0 auto; height: 22px; opacity: .75; background: radial-gradient(circle at 12px 6px, var(--white) 0 1px, transparent 1.5px) 0 0 / 97px 22px, radial-gradient(circle at 40px 10px, var(--mist) 0 1.2px, transparent 1.7px) 0 0 / 61px 22px, radial-gradient(circle at 5px 16px, var(--white) 0 1px, transparent 1.5px) 0 0 / 143px 22px; }
.run { --p: clamp(380px, 66svh, 640px); position: absolute; left: 50%; bottom: -10px; width: 1020px; height: 3600px; margin-left: -510px; transform-origin: 50% 100%; transform: perspective(var(--p)) rotateX(62deg); background: #0a3b40; border-inline: 12px solid var(--white); }
.run .keys { position: absolute; left: 24px; right: 24px; bottom: 26px; height: 96px; background: repeating-linear-gradient(90deg, var(--white) 0 34px, transparent 34px 58px); }
.run .mid { position: absolute; left: 50%; width: 18px; margin-left: -9px; top: 0; height: 2560px; background: repeating-linear-gradient(0deg, var(--white) 0 150px, transparent 150px 270px); }
.run .tz { position: absolute; bottom: 1120px; width: 92px; height: 300px; background: var(--white); } .run .tz.l { left: 150px; } .run .tz.r { right: 150px; }
.paint { position: absolute; left: 0; right: 0; bottom: 152px; text-align: center; font: 700 210px/1 var(--sans); text-transform: uppercase; letter-spacing: -.035em; color: var(--white); transform-origin: 50% 100%; transform: scaleY(2.05); white-space: nowrap; } .paint span { display: block; } .paint span:first-child { font-size: 178px; line-height: 1.12; }
.sub { position: absolute; right: 24px; top: 12px; font-size: 17px; line-height: 1.3; }

section:not(.tower) { padding: clamp(64px, 8vw, 110px) var(--pad) 0; }
h2:not(.lbl, .vh) { font: 700 clamp(34px, 5vw, 74px)/1 var(--sans); letter-spacing: -.03em; }
.fl-h, .rc-h { display: flex; justify-content: space-between; align-items: end; gap: 10px 40px; flex-wrap: wrap; } .fl-h p, .rc-h p { font-size: 18px; color: var(--mist); }
#sim { width: calc(100% + var(--pad) * 2); margin: 26px calc(var(--pad) * -1) 0; height: clamp(360px, 38vw, 540px); touch-action: none; cursor: grab; border-block: 1px solid var(--line); background: var(--deep); } #sim:active { cursor: grabbing; } #sim:focus-visible { outline-offset: -4px; }
.fl-o { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 30px; padding-top: 14px; } .fl-o label { font-size: 17px; color: var(--mist); } .fl-o input { width: 92px; background: none; border: 0; border-bottom: 2px solid var(--white); padding: 6px 4px; font: 700 20px/1 var(--mono); color: var(--white); } #simOut { font: 700 clamp(17px, 1.7vw, 23px)/1.3 var(--mono); }
#log { margin-top: 24px; border-top: 1px solid var(--line); min-height: 60px; } #log li { display: grid; grid-template-columns: 190px 130px minmax(0, 1fr); gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font: 400 16px/1.35 var(--mono); } #log li > :first-child { color: var(--mist); } #log li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #log .none { display: block; color: var(--mist); }
.rc-a { display: flex; gap: 24px; padding-top: 10px; }
.how canvas { width: calc(100% + var(--pad) * 2); margin: 0 calc(var(--pad) * -1); height: clamp(240px, 29vw, 420px); } .how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font: 700 clamp(19px, 2.1vw, 30px)/1.2 var(--sans); padding-top: 18px; }
.foot { padding: clamp(70px, 8vw, 120px) var(--pad) max(44px, env(safe-area-inset-bottom)); display: grid; gap: 6px; } .strip.big { grid-template-columns: minmax(0, 1.8fr) repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; box-shadow: inset 14px 0 0 var(--line); padding-left: 14px; } .strip.big .cs { font: 700 clamp(44px, 8.6vw, 132px)/1 var(--sans); letter-spacing: -.05em; padding: 18px 22px 22px; text-transform: uppercase; overflow: hidden; } .strip.big .c { border-top: 0; padding: 14px 16px; align-content: center; } .strip.big a, .strip.big button { font: 700 18px/1.3 var(--mono); text-align: left; text-decoration: underline; text-underline-offset: 4px; min-height: 40px; display: inline-flex; align-items: center; }

@media (max-width: 1180px) { .sub { top: 8px; left: 24px; right: auto; } .state { top: 33px; } }
@media (max-width: 900px) {
  :root { --pad: 16px; }
  .tower { display: flex; flex-direction: column; height: auto; } .bar { height: 52px; padding: 0 16px; } .brand svg { width: 27px; height: 27px; } .brand b { font-size: 18px; } .bar nav { gap: 14px; } #snd { display: none; } .bar .q { font-size: 14px; }
  .vista { grid-template-rows: 300px 168px auto; order: 1; } .bay { order: 2; max-height: none; border-right: 0; border-top: 1px solid var(--line); padding: 12px 12px 20px; }
  .state { left: 14px; top: 8px; font-size: 13px; z-index: 1; right: 14px; justify-content: space-between; } .sub { position: static; max-width: none; grid-row: 3; padding: 9px 14px 10px; font-size: 16px; background: var(--deep); }
  .run { --p: 318px; width: 470px; margin-left: -235px; height: 1700px; bottom: -6px; border-inline-width: 7px; } .paint { font-size: 112px; bottom: 74px; transform: scaleY(1.9); } .paint span:first-child { font-size: 74px; } .run .keys { height: 48px; bottom: 14px; left: 12px; right: 12px; background: repeating-linear-gradient(90deg, var(--white) 0 18px, transparent 18px 31px); } .run .mid { height: 1180px; width: 9px; margin-left: -4px; background: repeating-linear-gradient(0deg, var(--white) 0 72px, transparent 72px 130px); } .run .tz { width: 46px; height: 140px; bottom: 560px; } .run .tz.l { left: 66px; } .run .tz.r { right: 66px; }
  section:not(.tower) { padding: 64px 16px 0; } #sim { height: 420px; } #log li { grid-template-columns: 96px minmax(0, 1fr); gap: 2px 12px; font-size: 15px; } #log li > :last-child { grid-column: 1 / -1; }
  .how { display: grid; grid-template-columns: 46% 1fr; gap: 14px; } .how canvas { width: 100%; margin: 0; height: 480px; } .how ol { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); padding: 0; } .how li { display: flex; align-items: center; }
  .strip.big { grid-template-columns: 1fr 1fr; } .strip.big .cs { grid-column: 1 / -1; } .strip.big .c { border-top: 1px solid #05262a33; } .strip.big a, .strip.big button { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
