/* AuroraCockpit V2.2.1 / subtle premium polish.
   Small additive CSS layer: no DOM, layout, animation, map or engine changes.
   The existing green/teal cockpit remains the visual identity. */
html.layout-v2 {
  --v221-fine-glow: rgba(76, 203, 212, .055);
  --v221-fine-sheen: rgba(232, 255, 253, .06);
}

/* Give existing instruments a more precise, layered material finish. */
html.layout-v2 :is(.panel, .mission-camera-evidence, .tactical-gauge) {
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .26),
    0 0 18px var(--v221-fine-glow),
    inset 0 1px 0 var(--v221-fine-sheen);
}

/* Keep the existing HUD corner brackets, only soften their tint. */
html.layout-v2 .panel::before {
  border-top-color: rgba(146, 234, 225, .46);
  border-left-color: rgba(146, 234, 225, .46);
}
html.layout-v2 .panel::after {
  border-right-color: rgba(133, 218, 218, .29);
  border-bottom-color: rgba(133, 218, 218, .29);
}

/* Subtle definition around the real radar and Tactical instrument rings. */
html.layout-v2 #radar.radar {
  box-shadow:
    0 0 0 1px rgba(123, 222, 209, .11),
    0 0 24px rgba(57, 171, 195, .055),
    inset 0 0 36px rgba(110, 219, 196, .035);
}
html.layout-v2 .tactical-gauge-ring {
  filter: drop-shadow(0 0 12px rgba(104, 213, 206, .085));
}

/* A touch of dimensionality for existing status and control surfaces. */
html.layout-v2 :is(.status-strip, .v2-tactical-launcher) {
  box-shadow:
    inset 0 1px 0 rgba(237, 255, 251, .055),
    0 7px 19px rgba(0, 0, 0, .13);
}
html.layout-v2 #cloudDeckDialog .cloud-map-wrap {
  box-shadow:
    inset 0 1px 0 rgba(236, 255, 251, .045),
    0 0 20px rgba(74, 179, 194, .04);
}

/* A tasteful active-state halo; do not change button dimensions or colours. */
html.layout-v2 #pwaBottomNav .pwa-nav-button.active {
  box-shadow:
    inset 0 -2px 0 rgba(125, 255, 213, .65),
    inset 0 1px 0 rgba(255, 255, 255, .055),
    0 0 14px rgba(79, 218, 205, .075);
}
html.layout-v2 #v221NightBrief .v221-brief-best {
  box-shadow: inset 0 1px 0 rgba(227, 255, 248, .045);
}

/* Respect the V2.2.1 floating phone navigation's existing !important state. */
@media (max-width: 760px), (max-width: 900px) and (max-height: 450px) {
  html.layout-v2 #pwaBottomNav .pwa-nav-button.active {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .055),
      0 0 13px rgba(79, 218, 205, .065) !important;
  }
}

/* Deliberately no keyframes, moving scanlines, overlay elements,
   structural properties, or enlarged-touch-target overrides. */

/* Desktop-only hover affordance for the five PWA destinations.
   V2.2.1 hides the legacy view-tabs, so their :hover rules never run.
   Keep selected and hovered states distinct, and avoid changing phone taps. */
@media (hover:hover) and (pointer:fine) and (min-width:761px) {
  html.layout-v2 #pwaBottomNav .pwa-nav-button {
    cursor:pointer;
    transition:background .18s ease,border-color .18s ease,color .18s ease,
      box-shadow .18s ease,transform .18s ease;
  }
  html.layout-v2 #pwaBottomNav .pwa-nav-button:not(.active):hover:not(:disabled) {
    color:#e9fff5;
    border-color:rgba(137,239,215,.54);
    background:linear-gradient(165deg,rgba(37,99,92,.56),rgba(8,38,44,.93));
    box-shadow:inset 0 1px 0 rgba(248,255,252,.09),
      0 0 0 1px rgba(121,230,209,.08),
      0 0 17px rgba(70,201,201,.11);
    transform:translateY(-1px);
  }
  html.layout-v2 #pwaBottomNav .pwa-nav-button.active:hover:not(:disabled) {
    color:#fff;
    border-color:rgba(152,255,223,.78);
    background:linear-gradient(165deg,rgba(39,113,96,.54),rgba(12,57,54,.83));
    box-shadow:inset 0 -2px 0 rgba(150,255,211,.9),
      inset 0 1px 0 rgba(255,255,255,.09),
      0 0 19px rgba(86,216,191,.14);
    transform:translateY(-1px);
  }
  html.layout-v2 #pwaBottomNav .pwa-nav-button:hover:not(:disabled) .pwa-nav-icon {
    color:#afffe2;
  }
}
@media (prefers-reduced-motion:reduce) {
  html.layout-v2 #pwaBottomNav .pwa-nav-button {
    transition:none!important;
  }
  html.layout-v2 #pwaBottomNav .pwa-nav-button:hover {
    transform:none!important;
  }
}
