.htp-course {
  --htp-accent: #0297a8;
  --htp-accent-bright: #31d6df;
  --htp-warm: #f0aa48;
  --htp-caution: #d8892d;
  --htp-danger: #d35b52;
  --htp-safe: #48c287;
}

.htp-course .course-hero,
.htp-course .content-section {
  position: relative;
}

.htp-effect-grid .glass-card,
.htp-results .glass-card,
.htp-debrief {
  min-height: 100%;
}

.htp-lab-layout {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.htp-controls {
  position: sticky;
  top: 1.5rem;
}

.htp-controls .scenario-field + .scenario-field {
  margin-top: 1.25rem;
}

.htp-controls label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text);
  font-weight: 800;
}

.htp-airport-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.htp-airport-search {
  position: relative;
  min-width: 0;
}

.htp-controls input[type="text"],
.htp-controls input[type="number"] {
  width: 100%;
  min-height: 3.4rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 0.9rem 1rem;
  outline: none;
}

#airportIdentifier {
  text-transform: uppercase;
}

.htp-airport-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 15;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(49, 214, 223, 0.28);
  background: rgba(6, 20, 23, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.htp-airport-results[hidden] {
  display: none;
}

.htp-airport-result {
  width: 100%;
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.htp-airport-result:hover,
.htp-airport-result:focus-visible {
  background: rgba(49, 214, 223, 0.1);
  outline: none;
}

.htp-airport-result strong {
  color: var(--htp-accent-bright);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.htp-airport-result span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.htp-controls input[type="text"]:focus,
.htp-controls input[type="number"]:focus {
  border-color: rgba(49, 214, 223, 0.75);
  box-shadow: 0 0 0 3px rgba(49, 214, 223, 0.18);
}

.htp-controls input[type="range"] {
  width: 100%;
  accent-color: var(--htp-accent-bright);
}

.htp-controls .cta-button {
  border: 0;
  white-space: nowrap;
}

.htp-reset-button {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.htp-controls .status-pill-row {
  margin-top: 1.5rem;
}

.htp-course .status-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.htp-course .status-pill.is-safe {
  background: rgba(72, 194, 135, 0.14);
  color: var(--htp-safe);
}

.htp-course .status-pill.is-caution {
  background: rgba(216, 137, 45, 0.15);
  color: var(--htp-caution);
}

.htp-course .status-pill.is-danger {
  background: rgba(211, 91, 82, 0.16);
  color: var(--htp-danger);
}

.htp-visual {
  display: grid;
  gap: 1.5rem;
}

.htp-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.htp-metrics > div {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.htp-metric-copy {
  display: block;
  min-width: 0;
}

.htp-metric-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(49, 214, 223, 0.28);
  background:
    radial-gradient(circle at 50% 48%, rgba(49, 214, 223, 0.12), transparent 58%),
    rgba(3, 28, 32, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.24);
  color: var(--htp-accent-bright);
  flex: 0 0 auto;
}

.htp-metric-icon::before,
.htp-metric-icon::after {
  content: "";
  position: absolute;
}

.htp-metric-icon-altitude::before {
  width: 1.15rem;
  height: 1.15rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.htp-metric-icon-altitude::after {
  width: 0.35rem;
  height: 1.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--htp-warm), currentColor);
  transform: translateY(0.05rem);
}

.htp-metric-icon-temp::before,
.htp-metric-icon-virtual-temp::before {
  width: 0.42rem;
  height: 1.35rem;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.htp-metric-icon-temp::after,
.htp-metric-icon-virtual-temp::after {
  bottom: 0.47rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--htp-warm);
}

.htp-metric-icon-virtual-temp::before {
  box-shadow: 0.58rem -0.15rem 0 -0.18rem rgba(49, 214, 223, 0.85);
}

.htp-metric-icon-humidity::before {
  width: 1.05rem;
  height: 1.35rem;
  border-radius: 58% 58% 58% 0;
  background: linear-gradient(135deg, rgba(49, 214, 223, 0.95), rgba(72, 194, 135, 0.84));
  transform: rotate(-45deg);
}

.htp-metric-icon-humidity::after {
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  transform: translate(-0.18rem, -0.18rem);
}

.htp-metric-icon-density::before {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-bottom-color: var(--htp-warm);
}

.htp-metric-icon-density::after {
  width: 1.25rem;
  height: 2px;
  background: var(--htp-warm);
  box-shadow: 0 -0.42rem 0 rgba(49, 214, 223, 0.7), 0 0.42rem 0 rgba(49, 214, 223, 0.7);
}

.htp-metric-icon-ceiling::before {
  width: 1.5rem;
  height: 0.85rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: skewY(-18deg);
}

.htp-metric-icon-ceiling::after {
  width: 1.2rem;
  height: 1.2rem;
  border-left: 2px solid var(--htp-warm);
  border-top: 2px solid var(--htp-warm);
  transform: translate(-0.02rem, 0.14rem) rotate(45deg);
}

.htp-sky-panel {
  border-radius: 1.4rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 78% 14%, rgba(49, 214, 223, 0.18), transparent 31%),
    linear-gradient(180deg, rgba(7, 21, 24, 0.96), rgba(9, 16, 17, 0.9));
}

.htp-sky-caption {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.htp-altitude-stage {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 224, 142, 0.72) 0 3.4rem, rgba(255, 224, 142, 0.18) 3.5rem 6.8rem, transparent 6.9rem),
    linear-gradient(180deg, #143a4d 0%, #2f7584 42%, #9cc0b3 72%, #172d24 100%);
}

.htp-altitude-stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24%;
  height: 18%;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 235, 190, 0.18), transparent),
    linear-gradient(90deg, rgba(240, 170, 72, 0.14), rgba(49, 214, 223, 0.05));
  opacity: 0.9;
}

.htp-altitude-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--htp-ground-visible-height, 32%);
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(28, 69, 45, 0.95), rgba(8, 27, 21, 0.98));
}

.htp-altitude-axis {
  position: absolute;
  inset: 0 auto 0 1rem;
  z-index: 3;
  width: 7.6rem;
  color: rgba(244, 247, 247, 0.78);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.htp-altitude-axis span {
  position: absolute;
  left: 0;
  transform: translateY(50%);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.48);
}

.htp-temp-scale {
  position: absolute;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 6;
  width: min(13rem, 34%);
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(3, 15, 17, 0.58);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.45rem;
}

.htp-temp-scale p,
.htp-temp-scale strong {
  margin: 0;
}

.htp-temp-scale p {
  color: var(--htp-accent-bright);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.htp-temp-scale strong {
  color: var(--text);
  font-size: 0.92rem;
}

.htp-temp-scale-line {
  position: relative;
  margin: 0.4rem 0 0.2rem;
  border-left: 3px solid rgba(49, 214, 223, 0.72);
  background:
    linear-gradient(180deg, rgba(49, 214, 223, 0.18), rgba(240, 170, 72, 0.2));
}

.htp-temp-scale-line span {
  position: absolute;
  left: 0;
  transform: translateY(50%);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(244, 247, 247, 0.9);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: right;
  padding-right: 0.15rem;
}

.htp-temp-scale-line span::before {
  content: "";
  position: absolute;
  left: -0.3rem;
  top: -0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--htp-accent-bright);
  box-shadow: 0 0 10px rgba(49, 214, 223, 0.55);
}

.htp-temp-scale-line span::after {
  content: attr(data-label);
  display: inline-block;
  padding-left: 0.45rem;
}

.htp-performance-bars {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.htp-performance-row {
  display: grid;
  gap: 0.35rem;
}

.htp-performance-row > span {
  color: rgba(244, 247, 247, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.htp-performance-row b {
  color: var(--text);
  font-size: 0.82rem;
}

.htp-performance-track {
  position: relative;
  height: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.htp-performance-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--htp-warm), var(--htp-accent-bright));
  transition: width 500ms ease;
}

.htp-temp-delta {
  align-self: end;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  background: rgba(240, 170, 72, 0.15);
  border: 1px solid rgba(240, 170, 72, 0.34);
  color: #ffe1a7;
  font-size: 0.82rem;
  font-weight: 900;
}

.htp-temp-delta.is-cooler {
  background: rgba(49, 214, 223, 0.14);
  border-color: rgba(49, 214, 223, 0.35);
  color: #b8fbff;
}

.htp-cloud {
  position: absolute;
  z-index: 1;
  width: 12rem;
  height: 3.2rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 54%, rgba(255, 255, 255, 0.72) 0 28%, transparent 29%),
    radial-gradient(circle at 43% 35%, rgba(255, 255, 255, 0.8) 0 34%, transparent 35%),
    radial-gradient(circle at 67% 51%, rgba(255, 255, 255, 0.66) 0 30%, transparent 31%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2));
  filter: blur(0.2px);
  opacity: 0.72;
}

.htp-cloud-one {
  left: 26%;
  top: 16%;
  animation: htp-cloud-drift calc(var(--htp-scene-speed, 6s) * 3.4) linear infinite;
}

.htp-cloud-two {
  left: 82%;
  top: 33%;
  width: 9rem;
  opacity: 0.55;
  animation: htp-cloud-drift calc(var(--htp-scene-speed, 6s) * 4.1) linear infinite;
  animation-delay: calc(var(--htp-scene-speed, 6s) * -1.5);
}

.htp-moving-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.htp-moving-sky span {
  position: absolute;
  left: 100%;
  width: 22rem;
  height: 0.16rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  animation: htp-sky-stream var(--htp-scene-speed, 6s) linear infinite;
}

.htp-moving-sky span:nth-child(1) {
  top: 22%;
}

.htp-moving-sky span:nth-child(2) {
  top: 48%;
  animation-delay: -2.1s;
  animation-duration: 7.2s;
}

.htp-moving-sky span:nth-child(3) {
  top: 68%;
  animation-delay: -4.6s;
  animation-duration: 5.4s;
}

@keyframes htp-sky-stream {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100vw - 30rem));
  }
}

@keyframes htp-cloud-drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100vw - 16rem));
  }
}

.htp-terrain {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--htp-ground-bottom, 0);
  height: 32%;
  z-index: 2;
  pointer-events: none;
  transition: bottom 700ms ease;
}

.htp-ridge,
.htp-midground,
.htp-runway {
  position: absolute;
  display: block;
  left: 0;
  right: auto;
  bottom: 0;
}

.htp-ridge {
  width: 300%;
  height: 100%;
  clip-path: polygon(0 72%, 9% 58%, 17% 68%, 29% 38%, 41% 66%, 54% 48%, 66% 70%, 79% 44%, 91% 61%, 100% 54%, 100% 100%, 0 100%);
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.htp-ridge-back {
  background:
    linear-gradient(180deg, rgba(82, 117, 92, 0.82), rgba(24, 65, 47, 0.94));
  opacity: 0.82;
  bottom: -8%;
  height: 108%;
  animation: htp-layer-pan calc(var(--htp-scene-speed, 30s) * 9) linear infinite;
}

.htp-ridge-mid {
  clip-path: polygon(0 88%, 12% 76%, 21% 84%, 33% 58%, 45% 82%, 58% 67%, 70% 86%, 83% 63%, 94% 78%, 100% 74%, 100% 100%, 0 100%);
  background:
    linear-gradient(180deg, rgba(39, 96, 60, 0.98), rgba(10, 39, 30, 0.98));
  animation: htp-layer-pan calc(var(--htp-scene-speed, 30s) * 6) linear infinite;
}

.htp-midground {
  width: 300%;
  height: 52%;
  z-index: 3;
  background-repeat: repeat-x;
  background-size: 28rem 100%;
  background-position: 0 100%;
  pointer-events: none;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.htp-midground-far {
  opacity: 0.78;
  background-image:
    linear-gradient(180deg, transparent 0 54%, rgba(28, 67, 42, 0.95) 54% 100%),
    radial-gradient(ellipse at 18% 61%, rgba(24, 80, 53, 0.92) 0 7%, transparent 8%),
    radial-gradient(ellipse at 46% 62%, rgba(19, 76, 50, 0.94) 0 5%, transparent 6%),
    radial-gradient(ellipse at 74% 60%, rgba(29, 82, 49, 0.9) 0 8%, transparent 9%);
  clip-path: polygon(0 64%, 8% 58%, 15% 64%, 21% 54%, 27% 65%, 37% 61%, 45% 48%, 53% 66%, 62% 59%, 71% 53%, 78% 67%, 88% 58%, 100% 63%, 100% 100%, 0 100%);
  animation: htp-layer-pan calc(var(--htp-foreground-speed, 120s) * 1.35) linear infinite;
}

.htp-midground-near {
  height: 34%;
  z-index: 4;
  opacity: 0.92;
  background-image:
    linear-gradient(180deg, transparent 0 54%, rgba(9, 38, 28, 0.98) 54% 100%),
    linear-gradient(90deg, transparent 0 10%, rgba(91, 69, 46, 0.98) 10% 11%, transparent 11% 22%, rgba(80, 65, 45, 0.92) 22% 23%, transparent 23% 46%, rgba(85, 65, 42, 0.98) 46% 47%, transparent 47% 100%),
    radial-gradient(circle at 10.5% 44%, rgba(26, 91, 50, 0.95) 0 7%, transparent 8%),
    radial-gradient(circle at 22.5% 42%, rgba(31, 103, 58, 0.95) 0 8%, transparent 9%),
    radial-gradient(circle at 46.5% 41%, rgba(22, 92, 51, 0.96) 0 7%, transparent 8%);
  clip-path: polygon(0 76%, 8% 69%, 15% 74%, 24% 62%, 36% 78%, 48% 67%, 58% 78%, 68% 63%, 80% 76%, 91% 66%, 100% 73%, 100% 100%, 0 100%);
  opacity: 0;
  transition: opacity 700ms ease;
  animation: htp-layer-pan calc(var(--htp-foreground-speed, 120s) * 1.1) linear infinite;
}

.htp-course.is-above-1000-agl .htp-midground-near {
  opacity: 0.92;
}

.htp-runway {
  left: 18%;
  right: 15%;
  bottom: 3%;
  height: 18%;
  z-index: 3;
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.78) 12% 14%, transparent 14% 26%),
    linear-gradient(180deg, #5e6868, #1b2425);
  box-shadow: 0 -0.4rem 1.4rem rgba(0, 0, 0, 0.24);
  animation: htp-runway-pan var(--htp-runway-speed, 3.6s) linear infinite;
}

@keyframes htp-layer-pan {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-33.333%, 0, 0);
  }
}

@keyframes htp-runway-pan {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: -10rem 0, 0 0;
  }
}

.htp-altitude-marker {
  position: absolute;
  left: 11.5rem;
  right: clamp(2rem, 30%, 15rem);
  z-index: 4;
  transform: translateY(50%);
  border-top: 2px solid currentColor;
  color: var(--htp-accent-bright);
  transition: bottom 2s ease, color 180ms ease;
}

.htp-altitude-marker span {
  display: inline-flex;
  margin-top: -0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(3, 15, 16, 0.9);
  border: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.htp-density-marker {
  color: var(--htp-warm);
}

.htp-ceiling-marker {
  color: var(--htp-accent-bright);
}

.htp-ceiling-marker.is-caution {
  color: var(--htp-caution);
}

.htp-ceiling-marker.is-danger {
  color: var(--htp-danger);
}

.htp-performance-warning {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 10;
  width: min(24rem, calc(100% - 2rem));
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(211, 91, 82, 0.72);
  background: rgba(49, 18, 18, 0.9);
  color: #ffd8d5;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.htp-performance-warning strong,
.htp-performance-warning span {
  display: block;
}

.htp-performance-warning strong {
  margin-bottom: 0.35rem;
  color: #fff2f0;
  font-size: 1rem;
}

.htp-performance-warning span {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.htp-performance-warning[hidden] {
  display: none;
}

.htp-course.is-performance-stopped .htp-ceiling-aircraft {
  filter: drop-shadow(0 0 18px rgba(211, 91, 82, 0.5));
}

.htp-aircraft-symbol {
  position: absolute;
  left: 43%;
  z-index: 7;
  width: 100px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(49, 214, 223, 0.34));
  transform: translate(-50%, 50%) rotate(var(--htp-climb-attitude, -8deg));
  transition: bottom 2s ease, transform 2s ease;
}

.htp-aircraft-wing,
.htp-aircraft-tail {
  fill: rgba(49, 214, 223, 0.9);
}

.htp-aircraft-window {
  fill: rgba(3, 38, 45, 0.88);
}

.htp-aircraft-door {
  fill: none;
  stroke: rgba(3, 38, 45, 0.55);
  stroke-width: 2;
}

.htp-aircraft-nose {
  fill: rgba(244, 253, 253, 0.98);
}

.htp-aircraft-strut {
  fill: none;
  stroke: rgba(232, 249, 249, 0.82);
  stroke-width: 3;
  stroke-linecap: round;
}

.htp-aircraft-gear {
  stroke: rgba(232, 249, 249, 0.9);
  stroke-width: 3;
  stroke-linecap: round;
}

.htp-aircraft-wheel {
  fill: rgba(3, 38, 45, 0.9);
  stroke: rgba(232, 249, 249, 0.82);
}

.htp-airport-symbol {
  position: absolute;
  left: 18%;
  bottom: 2%;
  z-index: 4;
  width: min(18vw, 156px);
  min-width: 104px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.34));
  animation: htp-airport-pass var(--htp-airport-pass-speed, 130s) linear 1 forwards;
}

@keyframes htp-airport-pass {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100vw - 22rem));
  }
}

.htp-airport-runway {
  fill: rgba(48, 56, 56, 0.96);
  stroke: rgba(231, 238, 236, 0.5);
  stroke-width: 2;
}

.htp-airport-centerline,
.htp-airport-window {
  fill: none;
  stroke: rgba(245, 248, 242, 0.9);
  stroke-width: 4;
  stroke-linecap: round;
}

.htp-airport-hangar,
.htp-airport-tower {
  fill: rgba(12, 83, 87, 0.95);
  stroke: rgba(88, 221, 224, 0.45);
  stroke-width: 2;
}

.htp-airport-hangar-door,
.htp-airport-cab {
  fill: rgba(225, 246, 244, 0.9);
  stroke: rgba(3, 60, 63, 0.55);
  stroke-width: 2;
}

.htp-airport-beacon {
  fill: var(--htp-warm);
  stroke: rgba(255, 240, 188, 0.9);
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(240, 170, 72, 0.65));
}

.htp-vsi {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  right: auto;
  bottom: auto;
  z-index: 8;
  width: 7.3rem;
  padding: 0.48rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(3, 15, 17, 0.54);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.htp-vsi p {
  margin: 0 0 0.25rem;
  color: var(--htp-accent-bright);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
}

.htp-vsi strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--text);
  font-size: 0.72rem;
  text-align: center;
}

.htp-vsi-dial {
  position: relative;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 2px solid rgba(244, 247, 247, 0.34);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 0 7%, transparent 8%),
    conic-gradient(from 90deg, rgba(211, 91, 82, 0.24), rgba(244, 247, 247, 0.12), rgba(49, 214, 223, 0.24), transparent 0 180deg),
    rgba(2, 16, 18, 0.74);
}

.htp-vsi-dial::after {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 999px;
  border: 1px solid rgba(244, 247, 247, 0.16);
}

.htp-vsi-ticks {
  position: absolute;
  inset: 0.35rem;
  border-radius: 999px;
  background:
    repeating-conic-gradient(from 90deg, rgba(244, 247, 247, 0.86) 0 1deg, transparent 1deg 10deg);
  mask-image: radial-gradient(circle, transparent 0 76%, #000 77% 83%, transparent 84%);
}

.htp-vsi-mark {
  position: absolute;
  color: rgba(244, 247, 247, 0.86);
  font-size: 0.46rem;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.htp-vsi-mark-0 {
  left: 9%;
  top: 50%;
  transform: translateY(-50%);
  color: var(--htp-accent-bright);
}

.htp-vsi-mark-plus-5 {
  left: 12%;
  top: 30%;
}

.htp-vsi-mark-plus-10 {
  left: 28%;
  top: 15%;
}

.htp-vsi-mark-minus-5 {
  left: 11%;
  bottom: 30%;
}

.htp-vsi-mark-minus-10 {
  left: 27%;
  bottom: 15%;
}

.htp-vsi-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  height: 3px;
  border-radius: 999px;
  background: var(--htp-warm);
  transform-origin: left center;
  transform: rotate(var(--htp-vsi-angle, 180deg));
  box-shadow: 0 0 10px rgba(240, 170, 72, 0.6);
  transition: transform 320ms ease;
}

.htp-vsi-needle::before {
  content: "";
  position: absolute;
  left: -0.28rem;
  top: -0.28rem;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 999px;
  background: #f7fbfc;
}

.htp-results h3 {
  color: var(--htp-accent-bright);
}

.htp-debrief {
  background:
    radial-gradient(circle at top right, rgba(240, 170, 72, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.045);
}

.htp-school-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background:
    radial-gradient(circle at 14% 20%, rgba(49, 214, 223, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(5, 38, 42, 0.95), rgba(9, 16, 17, 0.92));
}

.htp-school-cta p {
  max-width: 58rem;
}

.htp-school-cta .cta-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.htp-article-link {
  margin-top: 1rem;
}

.htp-article-modal {
  width: min(1180px, calc(100vw - 2rem));
  height: min(860px, calc(100vh - 2rem));
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  background: transparent;
  color: var(--text);
}

.htp-article-modal::backdrop {
  background: rgba(0, 7, 9, 0.78);
  backdrop-filter: blur(8px);
}

.htp-article-modal-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(49, 214, 223, 0.24);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(49, 214, 223, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(10, 25, 29, 0.98), rgba(4, 13, 15, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.htp-article-modal-header,
.htp-article-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.htp-article-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.htp-article-modal-header h2 {
  margin: 0;
  color: var(--htp-accent-bright);
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
}

.htp-article-modal-close {
  min-height: 2.8rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.htp-article-modal-close:hover,
.htp-article-modal-close:focus-visible {
  border-color: rgba(49, 214, 223, 0.7);
  color: var(--white);
  outline: none;
}

.htp-article-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #050d0f;
}

.htp-article-modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1080px) {
  .htp-lab-layout {
    grid-template-columns: 1fr;
  }

  .htp-controls {
    position: static;
  }

  .htp-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .htp-airport-row {
    grid-template-columns: 1fr;
  }

  .htp-metrics,
  .htp-results {
    grid-template-columns: 1fr;
  }

  .htp-sky-caption {
    align-items: start;
    flex-direction: column;
  }

  .htp-school-cta {
    align-items: start;
    flex-direction: column;
  }

  .htp-altitude-stage {
    min-height: 380px;
  }

  .htp-altitude-marker {
    left: 7.5rem;
    right: 2rem;
  }

  .htp-ceiling-aircraft {
    right: 2rem;
  }

  .htp-temp-scale {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 16rem;
    margin: 1rem 1rem 0 auto;
  }

  .htp-vsi {
    left: 0.6rem;
    right: auto;
    top: 0.6rem;
    bottom: auto;
    width: 6.3rem;
  }

  .htp-article-modal-header,
  .htp-article-modal-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
