/* =========================================================================
   HANGAR v2 — the ship-selection screen, restyled.

   Loaded after style.css and hud.css so it wins on equal specificity; where
   the old rules used a bare class this uses `#shipSelect .x` and never needs
   !important. The markup is unchanged: everything here is paint.

   The reference: a tighter, brighter command deck. Panels are flat plates
   with glowing corner brackets and a hard cyan edge; readouts have small
   glyphs; the two mode pickers are rows of cards with a chevron; LAUNCH is
   a slab of gold with a real bloom. The centre stage gets a holographic pad
   under the model.
   ========================================================================= */

#shipSelect {
  --hg-cyan: #3fd2ff;
  --hg-cyan-dim: rgba(63, 210, 255, .55);
  --hg-line: rgba(63, 190, 255, .42);
  --hg-line-soft: rgba(63, 170, 240, .2);
  --hg-panel: linear-gradient(172deg, rgba(8, 20, 38, .92), rgba(4, 10, 22, .94));
  --hg-text: #eaf6ff;
  --hg-mute: #7f9fc4;
  --hg-gold: #f4b63a;
  background:
    radial-gradient(ellipse at 50% 112%, rgba(30, 120, 210, .42), transparent 52%),
    radial-gradient(ellipse at 50% 50%, rgba(18, 60, 120, .22), transparent 60%),
    radial-gradient(ellipse at 10% -6%, rgba(24, 80, 150, .26), transparent 46%),
    radial-gradient(ellipse at 92% 4%, rgba(18, 60, 120, .24), transparent 42%),
    linear-gradient(178deg, #050b17 0%, #02060f 48%, #040d1f 100%);
}
/* the floor grid, brighter and closer to the eye than before */
#shipSelect::before {
  left: -30%; right: -30%; bottom: -16%; height: 62%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(50, 165, 255, .28), transparent 58%),
    linear-gradient(transparent 0, rgba(63, 170, 255, .13) 1px, transparent 2px) 0 0 / 100% 28px,
    linear-gradient(90deg, transparent 0, rgba(63, 170, 255, .13) 1px, transparent 2px) 0 0 / 44px 100%;
  transform: perspective(520px) rotateX(61deg);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40%);
          mask-image: linear-gradient(180deg, transparent 0, #000 40%);
}

/* (The glow under the hull is a shader disc in hangar3d.js now.) */
#shipSelect #hangarCanvas { z-index: 1; }





/* both chips: one height, one baseline, no stray offsets from the old absolute chip */
#shipSelect #credChip, #shipSelect #acctChip {
  position: static; top: auto; right: auto; margin: 0; box-sizing: border-box;
  display: inline-flex; align-items: center; height: 36px; line-height: 1;
}
#shipSelect #credChip {
  margin: 0; padding: 0 16px; height: 36px;
  font-size: 15px; letter-spacing: 1px; color: #ffd36a;
  background: linear-gradient(180deg, rgba(10, 22, 40, .95), rgba(5, 12, 24, .95));
  border: 1px solid rgba(244, 182, 58, .5);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  box-shadow: 0 0 16px rgba(244, 182, 58, .12), inset 0 1px 0 rgba(255, 220, 140, .18);
}
#shipSelect #credChip .credIcon {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 9px; color: #1a1204;
  background: radial-gradient(circle at 40% 35%, #ffe08a, #f0a92e 70%);
  box-shadow: 0 0 10px rgba(244, 182, 58, .7);
}
#shipSelect #acctChip {
  height: 36px; padding: 0 16px 0 40px;
  font-size: 14px; letter-spacing: 1.5px; text-transform: none;
  color: var(--hg-text);
  background: linear-gradient(180deg, rgba(10, 22, 40, .95), rgba(5, 12, 24, .95));
  border: 1px solid var(--hg-line);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  box-shadow: 0 0 16px rgba(63, 210, 255, .12), inset 0 1px 0 rgba(140, 220, 255, .18);
  position: relative;
}
#shipSelect #acctChip::before {
  content: '◈'; position: absolute; left: 14px; top: 50%; translate: 0 -50%;
  font-size: 15px; color: var(--hg-cyan); text-shadow: 0 0 8px var(--hg-cyan);
}






  
   













































   



















@keyframes hgNudge {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 184, 40, .5); }
  50% { box-shadow: 0 0 30px 5px rgba(255, 184, 40, .8); }
}



















/* ---- tooltip ------------------------------------------------------------- */
.hgTip {
  border-radius: 4px; clip-path: none;
  border: 1px solid var(--hg-line, rgba(63, 190, 255, .42));
  box-shadow: 0 0 22px rgba(63, 200, 255, .2), 0 12px 30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(140, 220, 255, .16);
}

/* ---- small screens: keep the old compact metrics, only re-skinned -------- */
@media (max-width: 900px), (max-height: 620px) {
  
  
  #shipSelect #credChip, #shipSelect #acctChip { height: 28px; font-size: 11px; padding-left: 12px; padding-right: 12px; }
  #shipSelect #acctChip { padding-left: 30px; }
  #shipSelect #acctChip::before { left: 10px; font-size: 12px; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}













/* ══ THE CAMERA CUTOUT ═════════════════════════════════════════════════════
   Every safe-area rule in this project lived in hud.css, so the IN-MATCH HUD
   dodged the notch and the hangar, the menus and the modals did not -- they
   ran their content to the physical edge and put it under the cutout and the
   rounded corners.

   Landscape is the case that matters: the island sits on one SIDE, and which
   side depends on which way the phone is turned. env() answers that for us --
   safe-area-inset-left is 0 on one rotation and ~35px on the other, so
   honouring both is the same rule for both orientations.

   Applied as padding on the screen containers rather than as a margin, so the
   backgrounds still cover the full display and only the CONTENT is indented.
   ════════════════════════════════════════════════════════════════════════ */
body.iosApp {
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
/* EVERY full-screen surface, not a list I keep adding to one screen at a
   time. Each of these is `position: fixed; inset: 0`, so it spans the display
   edge to edge and puts its content under the camera unless told otherwise.
   The movement chooser is the one that showed it up -- cut off on the left,
   because it was not on the list. */
body.iosApp .overlay,
body.iosApp #shipSelect,
body.iosApp #loadScreen,
body.iosApp #rotatePrompt,
body.iosApp #checkinModal,
body.iosApp #mpModal,
body.iosApp #authModal,
body.iosApp #settingsModal,
body.iosApp #moveIntro,
body.iosApp #shipPicker,
body.iosApp #diagPanel,
body.iosApp #adminPanel,
body.iosApp #seoIntro {
  padding-left: var(--safe-l, 0px);
  padding-right: var(--safe-r, 0px);
  box-sizing: border-box;
}



/* SHIP TYPE BADGE (2026-10-01): a pill naming what the hull is in a fight --
   hangar stage and the in-match ship picker. --tb is the role colour. */
.shipTypeBadge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 8px; color: var(--tb, #8fd4ff);
  background: color-mix(in srgb, var(--tb, #8fd4ff) 14%, rgba(2, 9, 18, .82));
  border: 1px solid color-mix(in srgb, var(--tb, #8fd4ff) 62%, transparent);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  font: 700 12px/1 Rajdhani, 'Chakra Petch', system-ui, sans-serif; letter-spacing: 2.2px; text-transform: uppercase; vertical-align: middle; }
.shipTypeBadge svg { flex: none; }
.shipTypeBadge b { font-weight: 700; }



.spRole .spRoleText { margin-left: 6px; font-size: 13px; color: #88bdda; }
