.cockpit-welcome[hidden] { display: none; }

.cockpit-welcome {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 9, 15, .78);
  backdrop-filter: blur(10px);
  animation: cockpitFadeIn .22s ease-out;
}

.cockpit-welcome-panel {
  position: relative;
  width: min(980px, 95vw);
  max-height: 94vh;
  overflow: hidden;
  border: 1px solid rgba(133, 180, 207, .34);
  border-radius: 26px;
  background: #0b151d;
  box-shadow: 0 36px 120px rgba(0, 0, 0, .68), inset 0 1px rgba(255,255,255,.08);
  color: #eef7fb;
  animation: cockpitPanelIn .32s cubic-bezier(.2,.8,.2,1);
}

.cockpit-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%;
  background: rgba(4, 10, 14, .72);
  color: #eef7fb;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(8px);
}
.cockpit-close:hover { background: rgba(255,255,255,.12); }

.cockpit-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(0,7,12,.22) 0%, rgba(0,7,12,.07) 30%, rgba(0,0,0,.02) 55%, rgba(1,8,13,.32) 100%),
    url('https://media.defense.gov/2024/Mar/15/2003414042/-1/-1/0/240313-F-IO108-001.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cockpit-photo::after {
  content: 'PANEL CESSNA 172 SKYHAWK';
  position: absolute;
  left: 18px;
  bottom: 15px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  background: rgba(4,12,18,.68);
  color: rgba(255,255,255,.92);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .14em;
  backdrop-filter: blur(6px);
}

.cockpit-welcome-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 22px 26px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 45% 0%, rgba(72,198,255,.08), transparent 42%),
    linear-gradient(180deg, #10212c, #09151d);
}

.cockpit-welcome-copy .eyebrow {
  font-size: 9px;
  letter-spacing: .18em;
}

.cockpit-welcome-copy h2 {
  margin: 6px 0 7px;
  max-width: 720px;
  font-size: clamp(19px, 2.35vw, 28px);
  line-height: 1.28;
  letter-spacing: -.025em;
}

.cockpit-welcome-copy p {
  margin: 0;
  max-width: 720px;
  color: #9eb1bc;
  font-size: 11px;
  line-height: 1.55;
}

.cockpit-enter {
  min-width: 195px;
  white-space: nowrap;
}

.cockpit-welcome-credit {
  display: block;
  margin-top: 7px;
  color: #657b88;
  font-size: 8px;
  line-height: 1.35;
}

body.cockpit-welcome-open { overflow: hidden; }

@keyframes cockpitFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cockpitPanelIn {
  from { opacity: 0; transform: translateY(10px) scale(.988); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-height: 820px) and (min-width: 701px) {
  .cockpit-welcome-panel { width: min(820px, 94vw); }
  .cockpit-welcome-footer { padding-block: 15px 17px; }
  .cockpit-welcome-copy p { display: none; }
}

@media (max-width: 700px) {
  .cockpit-welcome { padding: 10px; }
  .cockpit-welcome-panel { border-radius: 19px; }
  .cockpit-photo { aspect-ratio: 16 / 10; }
  .cockpit-photo::after { left: 10px; bottom: 10px; font-size: 7px; }
  .cockpit-welcome-footer { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .cockpit-enter { width: 100%; }
}
