:root {
  --shell-top: #8e8e8c;
  --shell-mid: #5b5b59;
  --shell-low: #272726;
  --panel-black: #050505;
  --panel-blue: #0a0a87;
  --panel-cyan: #1fe2ff;
  --panel-green: #2eff11;
  --panel-white: #ecf8ff;
  --panel-magenta: #ff2bff;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("./assets/Neue%20Montreal/NeueMontreal-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "VT323", monospace;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #1a1c1f, #0c0d0e 68%);
  color: #f4f6f7;
}

button {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.ifd-unit {
  position: relative;
  width: min(100%, 1080px);
}

.ifd-chassis {
  position: relative;
  padding: 12px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 255, 255, 0.16), transparent 18%),
    radial-gradient(circle at 92% 6%, rgba(255, 255, 255, 0.09), transparent 12%),
    linear-gradient(180deg, var(--shell-top), var(--shell-mid) 34%, var(--shell-low) 100%);
  box-shadow:
    0 34px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -12px 22px rgba(0, 0, 0, 0.3);
}

.ifd-body {
  display: grid;
  grid-template-columns: 78px 1fr 78px;
  gap: 12px;
  align-items: stretch;
}

.side-column {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding-top: 8px;
}

.side-column.left {
  grid-auto-rows: min-content;
}

.mini-knob-group,
.corner-control {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.power-switch {
  position: relative;
  width: 58px;
  height: 58px;
  margin-bottom: 6px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #f1ecef, #a8a093 72%, #7e7668);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.18),
    0 5px 8px rgba(0, 0, 0, 0.34),
    0 10px 10px 4px rgba(0, 0, 0, 0.2);
  transition: transform 70ms linear, box-shadow 70ms linear;
}

.power-switch::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 0 8px rgba(0, 0, 0, 0.18);
}

.power-switch::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #cfc8bd, #d9d2c8);
  box-shadow:
    inset 0 10px 10px rgba(0, 0, 0, 0.12),
    0 -2px 5px rgba(255, 255, 255, 0.06),
    0 2px 5px rgba(255, 255, 255, 0.1);
}

.power-switch:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.12),
    0 3px 5px rgba(0, 0, 0, 0.34),
    0 5px 7px rgba(0, 0, 0, 0.16);
}

.power-switch.on {
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.18),
    0 5px 8px rgba(0, 0, 0, 0.34),
    0 10px 10px 4px rgba(0, 0, 0, 0.2);
}

.power-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 25px;
  height: 25px;
  transform: translate(-50%, -50%);
}

.power-symbol::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 3px solid rgba(60, 62, 61, 0.78);
  border-top-color: transparent;
  border-radius: 50%;
}

.power-symbol::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: 3px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(60, 62, 61, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.power-switch.on .power-symbol::after {
  background: #82ff73;
  box-shadow: 0 0 6px rgba(95, 255, 79, 0.28);
}

.power-switch.on .power-symbol::before {
  border-color: #82ff73;
  border-top-color: transparent;
  box-shadow: 0 0 4px rgba(95, 255, 79, 0.24);
}

.mini-knob-title,
.mini-knob-sub,
.corner-label,
.corner-sub,
.unit-message {
  font-family: "Press Start 2P", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mini-knob-title,
.corner-label {
  font-size: 0.36rem;
  color: #f0f0ef;
}

.mini-knob-sub,
.corner-sub,
.unit-message {
  font-size: 0.3rem;
  color: #f7f7f4;
}

.mini-knob {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.25), transparent 28%),
    radial-gradient(circle at 50% 50%, #4c4d53, #1b1b22 62%, #09090d 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 12px 12px rgba(255, 255, 255, 0.08),
    inset 0 -12px 18px rgba(0, 0, 0, 0.65),
    0 4px 8px rgba(0, 0, 0, 0.35);
}

.corner-knob-shell {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.2), transparent 26%),
    radial-gradient(circle at 66% 68%, rgba(0, 0, 0, 0.45), transparent 42%),
    linear-gradient(180deg, #1f1f20, #535355 20%, #111112 80%, #050506);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.12),
    inset 0 -12px 18px rgba(0, 0, 0, 0.7),
    0 3px 6px rgba(0, 0, 0, 0.34);
}

.corner-knob-host {
  position: absolute;
  top: 0;
  left: 0;
  width: 85px;
  height: 85px;
}

.corner-knob-host img {
  pointer-events: none;
  display: block;
}

.rocker-switch {
  overflow: hidden;
  width: 42px;
  border-radius: 8px;
  background: linear-gradient(180deg, #666766, #373737);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -6px 10px rgba(0, 0, 0, 0.35);
}

.rocker-part,
.side-slab,
.side-command,
.deck-button,
.detail-action {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #5e5a54 0%, #383838 72%, #181818 100%);
  color: #f5f6f6;
  box-shadow:
    inset 0 -13px 15px rgba(0, 0, 0, 0.44),
    0 2px 0 rgba(0, 0, 0, 0.74),
    0 6px 7px rgba(0, 0, 0, 0.24);
  transition: transform 70ms linear, box-shadow 70ms linear;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.rocker-part:active,
.side-slab:active,
.side-command:active,
.deck-button:active,
.detail-action:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -4px 8px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(0, 0, 0, 0.74),
    0 2px 3px rgba(0, 0, 0, 0.25);
}

.rocker-part {
  width: 42px;
  height: 34px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  font-size: 1rem;
}

.rocker-part.up {
  border-top: 0;
}

.rocker-part.down {
  border-bottom: 0;
}

.side-slab {
  width: 52px;
  height: 38px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.58rem;
}

.side-slab.blank {
  cursor: default;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #4f4f4f, #2f2f2f);
}

.side-command {
  width: 58px;
  height: 42px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.56rem;
}

.status-lamp {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.5);
  background: radial-gradient(circle at 40% 35%, #606060, #252525 70%, #060606 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.status-lamp.active {
  background: radial-gradient(circle at 40% 35%, #c9ffb8, #2eff11 58%, #0e4502 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.05),
    0 0 12px rgba(46, 255, 17, 0.55);
}

.screen-slot {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(180deg, #6c6d6d, #4a4a49 36%, #262626 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -10px 16px rgba(0, 0, 0, 0.42);
}

.screen-slot::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.ifd-screen {
  position: relative;
  overflow: hidden;
  height: 548px;
  border: 2px solid #0011ff;
  border-radius: 4px;
  background: #08081e;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.45),
    inset 0 0 30px rgba(0, 0, 0, 0.35);
}

.screen-off {
  filter: none !important;
  background: #000;
}

.screen-off-state {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.ndlsp-saver {
  --logo-width: 230px;
  --logo-height: 110px;
  position: absolute;
  width: var(--logo-width);
  height: var(--logo-height);
  animation: saverX linear 6.8s infinite alternate, saverY linear 17s infinite alternate;
}

.ndlsp-saver-mark {
  width: 100%;
  height: 100%;
  background: url("./assets/ndlsp.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(53, 255, 40, 0.16));
  animation: saverTint 9s linear infinite;
}

.display-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 34px;
  padding: 4px 10px 0;
  color: var(--panel-white);
  font-size: 1rem;
  background: linear-gradient(180deg, rgba(12, 18, 123, 0.96), rgba(8, 8, 90, 0.94));
}

.topbar-primary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-mode {
  color: var(--panel-green);
  font-size: 1.2rem;
  font-weight: 700;
}

.display-content {
  display: grid;
  grid-template-columns: 178px 1fr;
  min-height: 510px;
}

.flight-panel {
  background: #020202;
  border-right: 2px solid #0026ff;
  padding: 4px 0 0;
}

.freq-box {
  margin: 0 0 2px;
  padding: 6px 8px 5px;
  border-top: 1px solid #0f1cff;
  border-bottom: 1px solid #0f1cff;
  background: #040404;
}

.freq-box.framed {
  margin: 0 2px 2px;
  border: 2px solid var(--panel-cyan);
  border-radius: 6px;
}

.freq-main {
  color: var(--panel-white);
  font-size: 3rem;
  line-height: 0.9;
}

.freq-main.green {
  color: var(--panel-green);
}

.freq-sub {
  color: var(--panel-white);
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flight-readout {
  padding: 8px 10px 6px;
  color: var(--panel-white);
}

.readout-label {
  color: #98fff7;
  font-size: 0.95rem;
}

.readout-value {
  font-size: 2rem;
  line-height: 1;
}

.readout-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.1rem;
}

.synvis-chip {
  width: calc(100% - 16px);
  margin: 8px auto 0;
  padding: 6px 12px 8px;
  border: 2px solid var(--panel-cyan);
  border-radius: 20px;
  background: rgba(0, 38, 44, 0.8);
  color: var(--panel-cyan);
  display: grid;
  justify-items: center;
  font-size: 1.15rem;
  line-height: 0.95;
}

.scene-display {
  position: relative;
  background: #091099;
}

.scene-view {
  position: relative;
  min-height: 510px;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #050b8d 0%, #1445b8 35%, #2f90df 58%, #6d6d56 58.5%, #5b654d 72%, #45513d 100%);
}

.info-link-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.info-link-glyph {
  display: block;
  color: #d9ff3c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1;
  text-shadow: 0 0 6px rgba(221, 255, 78, 0.22);
}

.sky-layer,
.mountain-layer,
.ground-layer {
  position: absolute;
  inset: 0;
}

.mountain-layer {
  top: 42%;
  height: 25%;
  background:
    linear-gradient(135deg, transparent 0 6%, #a85944 6% 16%, transparent 16% 24%, #853f36 24% 33%, transparent 33%),
    linear-gradient(180deg, transparent 0 42%, rgba(189, 166, 122, 0.8) 42% 100%);
  clip-path: polygon(0 70%, 8% 60%, 18% 67%, 30% 50%, 40% 64%, 54% 48%, 68% 61%, 80% 55%, 100% 66%, 100% 100%, 0 100%);
  opacity: 0.95;
}

.ground-layer {
  top: 57%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 12%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #6a734f, #4b5640 58%, #344336 100%);
}

.heading-crown {
  position: absolute;
  top: 16px;
  left: 50%;
  display: flex;
  gap: 24px;
  transform: translateX(-50%);
}

.heading-tick {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: #f1efcb;
  transform: rotate(18deg);
}

.heading-tick.center {
  width: 26px;
  height: 24px;
  background: transparent;
  position: relative;
  transform: none;
}

.heading-tick.center::before,
.heading-tick.center::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
}

.heading-tick.center::before {
  top: -2px;
  border-bottom: 13px solid #f3f2e8;
}

.heading-tick.center::after {
  top: 11px;
  border-top: 13px solid #3c3a35;
}

.flight-wedge {
  position: absolute;
  top: 116px;
  left: 50%;
  width: 86px;
  height: 16px;
  transform: translateX(-50%);
  border-top: 4px solid #d8edef;
  border-left: 4px solid #d8edef;
  border-right: 4px solid #d8edef;
}

.attitude-ladder {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--panel-white);
  text-align: center;
}

.ladder-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.ladder-line {
  width: 92px;
  height: 5px;
  border: 2px solid #d8edef;
  border-bottom: 0;
}

.ladder-line.short {
  width: 82px;
}

.ladder-short {
  width: 32px;
  height: 4px;
  background: #d8edef;
}

.runway-badge {
  position: absolute;
  top: 160px;
  right: 118px;
  padding: 2px 10px 4px;
  border: 2px solid #4b0564;
  border-radius: 8px;
  background: var(--panel-magenta);
  color: #090909;
  font-size: 2.2rem;
  line-height: 1;
}

.north-mark {
  position: absolute;
  top: 208px;
  right: 44px;
  color: #e4ddd7;
  font-size: 1.6rem;
  font-weight: 700;
}

.north-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 16px solid #c6c1ba;
}

.data-tab {
  position: absolute;
  right: 18px;
  top: 260px;
  padding: 12px 6px;
  border: 2px solid #003aff;
  border-radius: 16px;
  background: #080808;
  color: var(--panel-white);
  font-family: "Press Start 2P", monospace;
  font-size: 0.58rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.altitude-tape {
  position: absolute;
  top: 128px;
  right: 98px;
  width: 28px;
  height: 190px;
  border-radius: 8px;
  background: #060606;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.tape-segment {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 4px;
  background: #f4f4f1;
}

.tape-segment.top {
  top: 34px;
}

.tape-segment.mid {
  top: 92px;
}

.tape-segment.low {
  top: 148px;
}

.tape-pointer {
  position: absolute;
  bottom: 32px;
  left: 24px;
  width: 22px;
  height: 12px;
  background: #f2f2ee;
  clip-path: polygon(100% 0, 100% 100%, 36% 100%, 0 50%, 36% 0);
}

.runway-perspective {
  position: absolute;
  left: 50%;
  bottom: 78px;
  width: 250px;
  height: 206px;
  transform: translateX(-14%);
}

.runway-shape {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 116px;
  height: 170px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #7d7460, #3f403e 20%, #1b1b1b 80%);
  clip-path: polygon(48% 0, 58% 0, 83% 100%, 17% 100%);
  border-left: 3px solid #f7f2cd;
  border-right: 3px solid #f7f2cd;
}

.runway-centerline {
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 26px;
  width: 4px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, #f8f8f6 0 14px, transparent 14px 28px);
}

.runway-arrow {
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: 34px;
  height: 22px;
  transform: translateX(-50%);
  background: #00ff32;
  clip-path: polygon(0 50%, 40% 0, 40% 28%, 100% 28%, 100% 72%, 40% 72%, 40% 100%);
}

.runway-number {
  position: absolute;
  left: 50%;
  bottom: -16px;
  transform: translateX(-50%);
  color: #f8f8f6;
  font-family: "Press Start 2P", monospace;
  font-size: 1.5rem;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6);
}

.guidance-path {
  position: absolute;
  right: 60px;
  bottom: 54px;
  width: 180px;
  height: 130px;
  border: 2px solid var(--panel-magenta);
  border-top-left-radius: 2px;
  clip-path: polygon(10% 10%, 60% 10%, 100% 100%, 0 100%);
}

.compass-arc {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 270px;
  height: 70px;
  transform: translateX(-50%);
  border-top: 3px solid #98d7ff;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-radius: 50% 50% 0 0;
}

.arc-left,
.arc-center,
.arc-right {
  position: absolute;
  bottom: 10px;
  color: #b7dfff;
  font-size: 1.2rem;
}

.arc-left {
  left: 28px;
}

.arc-center {
  left: 50%;
  transform: translateX(-50%);
}

.arc-right {
  right: 18px;
}

.overlay-window {
  position: absolute;
  left: 26px;
  right: 42px;
  bottom: 22px;
  min-height: 120px;
  border: 2px solid rgba(10, 224, 255, 0.8);
  border-radius: 8px;
  background: rgba(0, 7, 16, 0.72);
  backdrop-filter: blur(1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.overlay-window.detail {
  inset: 0;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: #000;
  backdrop-filter: none;
  box-shadow: none;
}

.mode-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  padding: 8px 10px;
  color: var(--panel-white);
}

.overlay-window.detail .mode-panel {
  padding: 0;
  height: 100%;
}

.section-title,
.player-header,
.status-line,
.screen-footer-text,
.progress-meta,
.viewer-overlay {
  font-family: "Press Start 2P", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.46rem;
  color: #aaf3ff;
}

.player-header,
.status-line,
.progress-meta,
.control-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.list-grid {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 6px 0;
}

.scroll-grid {
  max-height: 314px;
  overflow-y: auto;
  padding-right: 6px;
}

.scroll-grid::-webkit-scrollbar {
  width: 8px;
}

.scroll-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.scroll-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ff6a, #0096ff);
  border-radius: 999px;
}

.list-row {
  appearance: none;
  display: grid;
  grid-template-columns: 66px 1fr 70px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  padding: 3px 6px;
  border: 1px solid rgba(74, 181, 255, 0.28);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.18);
  color: #ecf8ff;
  font-size: 1.1rem;
  text-align: left;
}

.list-row.active {
  background: linear-gradient(180deg, #01ff59, #0ab0ff);
  color: #0a1014;
}

.progress-track {
  height: 14px;
  border: 1px solid #64dcff;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #14ff3d, #18d6ff);
}

.detail-action {
  justify-self: start;
  margin: 0 12px 12px;
  padding: 5px 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.44rem;
}

.viewer-frame {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  border: 1px solid rgba(109, 228, 255, 0.72);
  border-radius: 6px;
  background: #000;
}

.overlay-window.detail .viewer-frame {
  min-height: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.viewer-image,
.viewer-video {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #000;
}

.overlay-window.detail .viewer-image,
.overlay-window.detail .viewer-video {
  height: 100%;
}

.overlay-window.detail .viewer-video {
  object-fit: contain;
  background: #000;
}

.photo-viewer .viewer-image {
  object-fit: contain;
}

.slideshow-image {
  animation: slideFade 600ms linear;
}

.viewer-overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.control-row {
  display: flex;
}

.detail-media-screen {
  display: block;
  padding: 0;
  height: 100%;
}

.media-stage {
  min-height: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.media-topbar {
  align-items: start;
  padding: 12px 14px;
}

.media-meta-stack {
  display: grid;
  gap: 3px;
}

.media-meta-stack.right {
  justify-items: end;
  text-align: right;
}

.media-bottom-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.82) 36%, rgba(0, 0, 0, 0.94));
}

.xp-media-bottom-bar {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: end;
}

.photo-bar {
  grid-template-columns: 1fr;
}

.media-copy {
  display: grid;
  gap: 3px;
  color: var(--panel-white);
}

.media-title {
  color: #f5fbff;
  font-size: 1.7rem;
  line-height: 0.9;
}

.media-subtitle {
  color: #8deeff;
  font-family: "Press Start 2P", monospace;
  font-size: 0.42rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.media-progress-block {
  display: grid;
  gap: 5px;
}

.xp-transport {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.xp-playpause {
  width: 44px;
  height: 34px;
  padding: 0;
  border: 1px solid #6d7f9b;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #fbfcff 0%, #dfe7f6 49%, #b8c7e2 50%, #d2dcf1 100%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.95),
    inset -1px -1px 0 rgba(72, 96, 131, 0.72),
    0 1px 0 rgba(0, 0, 0, 0.55);
  color: #1e365f;
  font-family: "Press Start 2P", monospace;
  font-size: 0.55rem;
  line-height: 1;
}

.xp-playpause:active {
  transform: translateY(1px);
  box-shadow:
    inset -1px -1px 0 rgba(255, 255, 255, 0.6),
    inset 1px 1px 0 rgba(72, 96, 131, 0.82),
    0 1px 0 rgba(0, 0, 0, 0.4);
}

.xp-progress-block {
  gap: 4px;
}

.xp-progress-shell {
  padding: 3px;
  border: 1px solid #68748f;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #b6c7e6, #8ea6cf);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.72),
    inset -1px -1px 0 rgba(57, 79, 115, 0.8);
}

.xp-progress-track {
  position: relative;
  height: 16px;
  overflow: hidden;
  border: 1px solid #4b5f89;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, #0d2f65 0 10px, #123b7c 10px 20px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px 2px rgba(0, 0, 0, 0.45);
}

.xp-progress-fill {
  height: 100%;
  min-width: 2px;
  background:
    repeating-linear-gradient(90deg, #61e86c 0 8px, #2fc33f 8px 16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 6px rgba(89, 255, 71, 0.18);
}

.xp-progress-meta {
  color: #d8efff;
}

.media-progress-track {
  height: 16px;
}

.media-action {
  margin: 0;
  justify-self: end;
  align-self: stretch;
  min-width: 88px;
}

.track-player-video {
  background: #000;
}

.video-stage {
  background: #000;
}

.secret-menu-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.secret-menu-shell {
  position: relative;
  width: 100%;
  height: 100%;
  background: #050608;
  overflow: hidden;
}

.secret-wallpaper,
.secret-wallpaper-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secret-wallpaper-video {
  filter: invert(1) hue-rotate(180deg) saturate(1.15) contrast(0.95);
}

.secret-noise {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px),
    radial-gradient(circle at top right, rgba(0, 255, 166, 0.12), transparent 28%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.secret-index,
.secret-detail {
  position: relative;
  z-index: 1;
  height: 100%;
}

.secret-index {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px;
  background: linear-gradient(180deg, rgba(4, 8, 12, 0.72), rgba(4, 8, 12, 0.84));
}

.secret-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d4f4ff;
  font-family: "Press Start 2P", monospace;
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.secret-grid {
  margin-top: 14px;
  max-width: 520px;
}

.secret-viewer {
  height: 100%;
}

.secret-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.virus-popup {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 5;
  width: min(344px, calc(100% - 56px));
  padding: 0;
  background: transparent;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  animation: popupThunk 140ms steps(2) 1;
}

.virus-popup-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: pointer;
}

.virus-popup-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.virus-popup-close-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-element {
  display: none;
}

.boot-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #000;
  opacity: 1;
  transition: opacity 520ms linear;
}

.boot-overlay.fade-out {
  opacity: 0;
}

.boot-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.ifd-base {
  display: grid;
  grid-template-columns: 92px 1fr 92px;
  gap: 16px;
  align-items: end;
  margin-top: 16px;
}

.base-center {
  display: grid;
  gap: 10px;
}

.mode-deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.deck-button {
  min-height: 62px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #f5f6f2;
}

.deck-button.active {
  color: var(--panel-green);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -7px 10px rgba(0, 0, 0, 0.45);
}

.brand-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.brand-copy {
  justify-self: start;
  color: rgba(255, 255, 255, 0.84);
  font-family: "Press Start 2P", monospace;
  font-size: 0.42rem;
  letter-spacing: 0.08em;
}

.speaker-grill {
  display: flex;
  gap: 10px;
  justify-self: end;
}

.speaker-grill span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #080808 20%, transparent 23%) 0 0 / 5px 5px,
    linear-gradient(180deg, #5c5c5c, #1a1a1a);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.08),
    inset 0 -4px 5px rgba(0, 0, 0, 0.55);
}

.unit-message {
  margin-top: 10px;
  text-align: center;
  opacity: 0.72;
}

@keyframes slideFade {
  from {
    opacity: 0.12;
  }

  to {
    opacity: 1;
  }
}

@keyframes saverY {
  0% {
    top: 0;
  }

  50% {
    top: calc(100% - var(--logo-height));
  }

  100% {
    top: 0;
  }
}

@keyframes saverX {
  0% {
    left: 0;
  }

  100% {
    left: calc(100% - var(--logo-width));
  }
}

@keyframes saverTint {
  0% {
    filter: hue-rotate(0deg) saturate(1) drop-shadow(0 0 10px rgba(53, 255, 40, 0.16));
  }

  50% {
    filter: hue-rotate(110deg) saturate(1.2) drop-shadow(0 0 12px rgba(53, 160, 255, 0.24));
  }

  100% {
    filter: hue-rotate(220deg) saturate(1.1) drop-shadow(0 0 10px rgba(255, 71, 228, 0.22));
  }
}

@keyframes popupThunk {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .ifd-body {
    grid-template-columns: 64px 1fr 64px;
    gap: 10px;
  }

  .display-content {
    grid-template-columns: 152px 1fr;
  }

  .freq-main {
    font-size: 2.35rem;
  }

  .ifd-base {
    grid-template-columns: 80px 1fr 80px;
  }

  .media-bottom-bar {
    grid-template-columns: 1fr;
  }

  .media-action {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: 10px;
  }

  .ifd-body {
    grid-template-columns: 1fr;
  }

  .side-column {
    grid-auto-flow: column;
    grid-auto-columns: min-content;
    justify-content: center;
    align-items: center;
    padding-top: 0;
  }

  .screen-slot {
    order: -1;
  }

  .display-content {
    grid-template-columns: 1fr;
  }

  .ifd-base {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .corner-control {
    display: none;
  }

  .brand-strip {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .speaker-grill {
    justify-self: start;
  }
}
.wallpaper-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.clean-scene {
  position: relative;
  min-height: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

.clean-scene .overlay-window {
  z-index: 1;
}

.ifd-screen {
  border-color: #9eeeff;
  background: #010301;
  box-shadow:
    inset 0 0 0 1px rgba(123, 236, 255, 0.34),
    inset 0 0 26px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 55, 55, 0.14);
}

.ifd-screen > * {
  position: relative;
  z-index: 1;
}

.screen-off > .screen-off-state {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.display-topbar {
  grid-template-columns: minmax(170px, 1.2fr) minmax(0, 1fr) auto auto;
  min-height: 56px;
  padding: 9px 12px 8px;
  border-bottom: 1px solid rgba(255, 42, 42, 0.82);
  background:
    linear-gradient(180deg, rgba(10, 12, 10, 0.98), rgba(4, 8, 5, 0.98)),
    linear-gradient(90deg, rgba(0, 80, 255, 0.08), transparent 28%);
  color: #92f7ff;
}

.topbar-stack {
  display: grid;
  gap: 4px;
}

.topbar-kicker {
  color: #f4f0cb;
  font-family: "Press Start 2P", monospace;
  font-size: 0.34rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-primary {
  color: #9aefff;
  font-family: "Press Start 2P", monospace;
  font-size: 0.46rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-track,
.topbar-status,
.topbar-mode {
  align-self: end;
  font-family: "Press Start 2P", monospace;
  font-size: 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-track {
  color: #f2efdb;
  justify-self: center;
  text-align: center;
}

.topbar-status {
  color: #7ff055;
  justify-self: end;
}

.topbar-mode {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 42, 42, 0.7);
  color: #7ff055;
  font-size: 0.46rem;
}

.blink {
  animation: terminalBlink 1.15s steps(2, end) infinite;
}

.display-content {
  background: #010301;
  height: calc(100% - 56px);
  min-height: 0;
}

.flight-panel.terminal-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  min-height: 100%;
  padding: 10px 10px 24px;
  background:
    linear-gradient(180deg, rgba(3, 5, 3, 0.98), rgba(0, 0, 0, 0.98)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 4px);
  border-right: 1px solid rgba(126, 239, 255, 0.76);
}

.terminal-panel-block {
  position: relative;
  overflow: hidden;
  border: 1px solid #7eeeff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(2, 8, 14, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(7, 103, 255, 0.28),
    0 0 0 1px rgba(255, 50, 50, 0.08);
  padding: 10px;
}

.terminal-panel-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 37, 37, 0.96), rgba(255, 37, 37, 0.15));
}

.terminal-panel-kicker,
.terminal-panel-line,
.terminal-panel-mode {
  font-family: "Press Start 2P", monospace;
  text-transform: uppercase;
}

.terminal-panel-kicker {
  color: #7ff055;
  font-size: 0.34rem;
  letter-spacing: 0.08em;
}

.terminal-panel-headline {
  background:
    linear-gradient(180deg, rgba(15, 89, 202, 0.9), rgba(9, 49, 131, 0.82) 42%, rgba(0, 0, 0, 0.94) 100%);
}

.terminal-panel-mode {
  margin-top: 10px;
  color: #f2eed7;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.terminal-panel-title {
  margin-top: 12px;
  color: #9aeeff;
  font-size: 1.28rem;
  line-height: 0.94;
  text-transform: uppercase;
}

.terminal-panel-service {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.terminal-action-stack {
  display: grid;
  align-content: start;
  gap: 8px;
}

.terminal-action-button {
  position: relative;
  width: 100%;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  display: grid;
  justify-items: start;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.82),
    inset -1px -1px 0 rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(0, 0, 0, 0.65);
  text-align: left;
}

.terminal-camera-button {
  min-height: 136px;
  padding: 16px 18px 18px;
  border: 2px solid #8defff;
  background:
    linear-gradient(180deg, #194aa5 0%, #123a88 38%, #051432 100%);
  box-shadow:
    inset 0 0 0 2px rgba(8, 32, 88, 0.72),
    inset 0 3px 0 rgba(255, 63, 63, 0.9),
    0 2px 0 rgba(0, 0, 0, 0.7);
  color: #061027;
}

.terminal-copy-button {
  min-height: 64px;
  background: linear-gradient(180deg, #ffd7d7 0%, #fb6f6f 42%, #db2525 43%, #640d0d 100%);
  color: #fff2d7;
}

.terminal-action-title,
.terminal-action-sub {
  font-family: "Press Start 2P", monospace;
}

.terminal-action-title {
  font-size: 0.42rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-copy-title {
  text-transform: none;
}

.terminal-action-sub {
  margin-top: 8px;
  font-size: 0.28rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: none;
}

.terminal-camera-kicker,
.terminal-camera-main,
.terminal-camera-subtext {
  font-family: "Press Start 2P", monospace;
  text-transform: uppercase;
}

.terminal-camera-kicker {
  color: #72ef58;
  font-size: 0.34rem;
  letter-spacing: 0.08em;
}

.terminal-camera-main {
  margin-top: 16px;
  color: #f3efd3;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.terminal-camera-subtext {
  margin-top: 20px;
  color: #98ecff;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.terminal-service-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-top: 2px;
}

.terminal-panel-line {
  color: #7ff055;
  font-size: 0.38rem;
  letter-spacing: 0.06em;
  line-height: 1.55;
}

.terminal-panel-hotline {
  align-self: end;
  margin-bottom: 12px;
}

.terminal-panel-split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.terminal-call-state {
  color: #f4f0cb;
}

.scene-display {
  background: #010301;
}

.clean-scene {
  background:
    radial-gradient(circle at center, rgba(9, 54, 90, 0.24), transparent 56%),
    #010301;
}

.clean-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px);
  opacity: 0.1;
  mix-blend-mode: screen;
  animation: crtFlicker 5.5s steps(6, end) infinite;
  pointer-events: none;
  z-index: 1;
}

.clean-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.03) 72%, rgba(0, 0, 0, 0.16) 100%);
  pointer-events: none;
  z-index: 1;
}

.wallpaper-video {
  opacity: 0.62;
  filter: saturate(0.82) contrast(1.04) brightness(0.92) hue-rotate(-10deg);
}

.clean-scene .overlay-window,
.clean-scene .secret-menu-overlay,
.clean-scene .virus-popup,
.clean-scene .info-link-button {
  z-index: 3;
}

.overlay-window {
  left: 18px;
  right: 24px;
  bottom: 18px;
  min-height: 140px;
  border: 1px solid #7eeeff;
  border-radius: 0;
  background: rgba(4, 10, 6, 0.56);
  backdrop-filter: blur(0.75px);
  box-shadow:
    inset 0 0 0 1px rgba(0, 102, 255, 0.24),
    0 0 0 1px rgba(255, 45, 45, 0.1);
}

.overlay-window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 45, 45, 0.96), rgba(255, 45, 45, 0.14));
}

.overlay-window.detail {
  background: #000;
}

.overlay-window:not(.detail) .mode-panel {
  margin: 12px;
  min-height: calc(100% - 24px);
  border: 1px solid rgba(240, 251, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(13, 96, 225, 0.66) 0%, rgba(9, 62, 166, 0.58) 28%, rgba(2, 11, 28, 0.74) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.48);
}

.mode-panel {
  padding: 10px 0 0;
}

.section-title {
  margin: 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(255, 40, 40, 0.78);
  color: #7ff055;
  font-size: 0.48rem;
}

.menu-grid {
  margin: 0;
  padding: 10px 12px 12px;
}

.list-grid {
  gap: 6px;
}

.scroll-grid {
  padding-inline: 12px;
  scrollbar-gutter: stable both-edges;
}

.scroll-grid::-webkit-scrollbar {
  width: 9px;
}

.scroll-grid::-webkit-scrollbar-track {
  background: rgba(1, 5, 8, 0.96);
  border-left: 1px solid rgba(124, 238, 255, 0.22);
  border-right: 1px solid rgba(124, 238, 255, 0.22);
}

.scroll-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f1ecd2, #92dfff);
  border-radius: 0;
}

.list-row {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(123, 236, 255, 0.58);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(1, 12, 4, 0.96), rgba(1, 7, 15, 0.88));
  box-shadow: inset 0 0 0 1px rgba(10, 96, 255, 0.18);
  color: #82f055;
  font-family: "Press Start 2P", monospace;
  font-size: 0.38rem;
  line-height: 1.45;
  text-transform: uppercase;
  text-shadow: 0 0 4px rgba(130, 240, 85, 0.15);
}

.list-row span:nth-child(2) {
  color: #f3efd3;
}

.list-row.active {
  background: linear-gradient(180deg, rgba(16, 92, 211, 0.98), rgba(9, 47, 124, 0.98));
  color: #f4f0d8;
  box-shadow:
    inset 0 0 0 1px rgba(211, 248, 255, 0.92),
    0 0 0 1px rgba(255, 44, 44, 0.12);
}

.list-row.active span {
  color: inherit;
}

.screen-footer-text {
  margin: 0 12px 12px;
  padding: 8px 10px 10px;
  border: 1px solid #7eeeff;
  border-top-color: rgba(255, 40, 40, 0.82);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.76);
  color: #82f055;
  font-size: 0.36rem;
  line-height: 1.7;
}

.viewer-frame {
  background: linear-gradient(180deg, #0e5fd8 0%, #0c3f97 34%, #030912 100%);
}

.overlay-window.detail .viewer-frame {
  background: #000;
}

.viewer-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.58));
  border-bottom-color: rgba(255, 40, 40, 0.7);
}

.media-meta-stack {
  color: #7ff055;
}

.media-meta-stack.right {
  color: #9aefff;
}

.media-bottom-bar {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.86) 34%, rgba(0, 0, 0, 0.97));
}

.media-title {
  color: #f3efd3;
  font-family: "Press Start 2P", monospace;
  font-size: 0.78rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.media-subtitle,
.xp-progress-meta {
  color: #7ff055;
}

.xp-playpause {
  border-color: #a2daf3;
  border-radius: 0;
  background: linear-gradient(180deg, #f9f8f0 0%, #d5d7d0 50%, #b7cceb 50%, #e4dfd3 100%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.95),
    inset -1px -1px 0 rgba(52, 84, 132, 0.72),
    0 1px 0 rgba(0, 0, 0, 0.55);
}

.xp-progress-shell {
  border-radius: 0;
}

.xp-progress-track {
  border-radius: 0;
  background: repeating-linear-gradient(90deg, #0f356f 0 10px, #154288 10px 20px);
}

.xp-progress-fill {
  background: repeating-linear-gradient(90deg, #f1ecd1 0 8px, #91dfff 8px 16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 5px rgba(145, 223, 255, 0.16);
}

.xp-transport {
  transform: translateY(-20px);
}

.camera-booth-overlay {
  position: absolute;
  inset: 18px 22px;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
}

.camera-booth-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 430px);
  height: min(100%, 340px);
  border: 2px solid #7eeeff;
  background:
    linear-gradient(180deg, rgba(10, 85, 196, 0.94), rgba(0, 0, 0, 0.96) 72%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 16px 30px rgba(0, 0, 0, 0.48);
}

.camera-booth-header,
.camera-actions {
  font-family: "Press Start 2P", monospace;
  text-transform: uppercase;
}

.camera-booth-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 2px solid rgba(255, 40, 40, 0.78);
  color: #7ff055;
  font-size: 0.42rem;
  letter-spacing: 0.06em;
}

.camera-preview-frame {
  position: relative;
  margin: 12px;
  overflow: hidden;
  border: 1px solid #f5f3dc;
  background: #000;
}

.camera-preview-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-canvas {
  display: none;
}

.camera-actions {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 10px;
  padding: 0 12px 12px;
}

.camera-action-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  background: linear-gradient(180deg, #2a79ea 0%, #1458bc 52%, #0a3f90 100%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.28),
    inset -1px -1px 0 rgba(0, 0, 0, 0.18),
    0 2px 0 rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-family: "Press Start 2P", monospace;
  font-size: 0.42rem;
  text-shadow: none;
}

.secret-index {
  background: linear-gradient(180deg, rgba(2, 4, 2, 0.76), rgba(0, 0, 0, 0.9));
}

.secret-header {
  color: #81f158;
}

.virus-popup {
  right: 16px;
  bottom: 16px;
  width: min(248px, calc(100% - 32px));
  max-width: 248px;
  box-shadow:
    0 0 0 1px rgba(255, 50, 50, 0.18),
    0 14px 28px rgba(0, 0, 0, 0.54);
}

.virus-popup-close {
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
}

.mode-deck {
  gap: 14px;
  padding: 0;
}

.deck-button {
  min-height: 62px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #5e5a54 0%, #383838 72%, #181818 100%);
  box-shadow:
    inset 0 -13px 15px rgba(0, 0, 0, 0.44),
    0 2px 0 rgba(0, 0, 0, 0.74),
    0 6px 7px rgba(0, 0, 0, 0.24);
  color: #f5f6f2;
}

.deck-button::before {
  display: none;
}

.deck-button.active {
  color: var(--panel-green);
  background: linear-gradient(180deg, #5e5a54 0%, #383838 72%, #181818 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -7px 10px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(0, 0, 0, 0.74),
    0 6px 7px rgba(0, 0, 0, 0.24);
}

.brand-strip {
  padding-left: 0;
}

.brand-copy {
  color: #000;
}

.unit-message {
  color: #9aefff;
}

@keyframes terminalBlink {
  0%,
  45%,
  100% {
    opacity: 1;
  }

  46%,
  58% {
    opacity: 0.22;
  }

  59%,
  72% {
    opacity: 1;
  }

  73%,
  76% {
    opacity: 0.38;
  }
}

@keyframes crtFlicker {
  0%,
  100% {
    opacity: 0.16;
  }

  8% {
    opacity: 0.22;
  }

  13% {
    opacity: 0.12;
  }

  26% {
    opacity: 0.2;
  }

  44% {
    opacity: 0.14;
  }

  63% {
    opacity: 0.24;
  }

  78% {
    opacity: 0.15;
  }
}

@media (max-width: 980px) {
  .virus-popup {
    width: min(228px, calc(100% - 28px));
    max-width: 228px;
  }
}

.screen-info-panel {
  min-width: 0;
  min-height: 0;
}

.mobile-info-command {
  display: none;
}

@media (max-width: 860px) {
  .side-column {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .power-switch {
    width: 46px;
    height: 46px;
    margin-bottom: 0;
  }

  .power-switch::before {
    inset: -6px;
  }

  .power-switch::after {
    inset: 8px;
  }

  .power-symbol {
    width: 20px;
    height: 20px;
  }

  .power-symbol::before {
    inset: 4px;
    border-width: 2px;
  }

  .power-symbol::after {
    top: 0;
    width: 2px;
    height: 11px;
  }

  .side-slab,
  .side-command,
  .mobile-info-command,
  .deck-button,
  .camera-action-button,
  .xp-playpause {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    touch-action: manipulation;
  }

  .mobile-info-command {
    display: flex;
    min-width: 76px;
  }

  .side-slab,
  .side-command {
    min-width: 64px;
    height: 44px;
    padding: 0 10px;
    font-size: 0.42rem;
  }

  .status-lamp {
    margin: 14px 8px 0 0;
  }

  .screen-slot {
    padding: 10px;
  }

  .ifd-base,
  .base-center {
    width: 100%;
  }

  .mode-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .deck-button {
    min-height: 48px;
    padding: 0 10px;
    font-size: 0.54rem;
    letter-spacing: 0.04em;
  }

  .display-content {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
  }

  .screen-info-panel {
    position: absolute;
    inset: 0;
    z-index: 6;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(12px);
    transition: opacity 140ms linear, transform 140ms linear, visibility 0s linear 140ms;
  }

  .display-content.mobile-info-open .screen-info-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .display-content.mobile-info-open .scene-display {
    pointer-events: none;
    opacity: 0.2;
  }

  .screen-info-panel .flight-panel.terminal-panel {
    min-height: 100%;
    padding: 8px 8px 12px;
    border-right: 0;
    background:
      linear-gradient(180deg, rgba(3, 5, 3, 0.98), rgba(0, 0, 0, 0.98)),
      repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 4px);
  }

  .scene-display,
  .scene-view {
    min-height: 100%;
    height: 100%;
  }

  .info-link-button {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
  }

  .info-link-glyph {
    font-size: 1.15rem;
  }

  .overlay-window {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .overlay-window:not(.detail) .mode-panel {
    margin: 8px;
    min-height: calc(100% - 16px);
  }

  .menu-grid {
    padding: 8px 8px 10px;
  }

  .scroll-grid {
    padding-inline: 8px;
  }

  .list-grid {
    gap: 8px;
  }

  .list-row {
    min-height: 48px;
    grid-template-columns: 50px minmax(0, 1fr) 56px;
    padding: 8px 10px;
    font-size: 0.32rem;
    touch-action: manipulation;
  }

  .terminal-action-button,
  .terminal-action-button span {
    text-align: left;
  }

  .terminal-action-button {
    min-height: 64px;
    padding: 10px 12px;
  }

  .terminal-camera-button {
    min-height: 108px;
    padding: 12px 14px 14px;
  }

  .terminal-copy-button {
    min-height: 56px;
  }

  .terminal-action-title {
    font-size: 0.34rem;
  }

  .terminal-action-sub {
    font-size: 0.24rem;
  }

  .terminal-camera-kicker {
    font-size: 0.28rem;
  }

  .terminal-camera-main {
    margin-top: 12px;
    font-size: 0.64rem;
  }

  .terminal-camera-subtext {
    margin-top: 14px;
    font-size: 0.38rem;
  }

  .camera-booth-overlay {
    inset: 10px;
  }

  .camera-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .camera-action-button {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.34rem;
  }

  .xp-transport {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    transform: none;
  }

  .xp-playpause {
    width: 52px;
    height: 44px;
    padding: 0 0 0 12px;
    font-size: 0.44rem;
  }
}
