/* Transit Mode screens. Wide screens keep the card on the right. A narrow screen fills the window. */
#inventory.transit-eye {
  z-index: 36;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-end;
  padding:
    calc(72px + var(--frame-y) + env(safe-area-inset-top))
    calc(78px + var(--frame-x) + env(safe-area-inset-right))
    calc(var(--dock-h) + 12px + env(safe-area-inset-bottom))
    calc(36px + var(--frame-x) + env(safe-area-inset-left));
  background: transparent;
  pointer-events: none;
}

#inventory.transit-eye .sheet-card {
  pointer-events: auto;
  flex: 0 1 auto;
  align-self: stretch;
  width: min(460px, 42vw);
  max-height: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 22px 20px 16px;
  border: 1px solid rgba(120, 196, 214, 0.55);
  border-radius: 28px;
  background: rgba(8, 14, 22, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  overflow: auto;
}

#transit-sheet {
  position: fixed;
  z-index: 33;
  left: calc(8px + var(--frame-x) + env(safe-area-inset-left));
  width: min(340px, calc(100vw - 84px - var(--frame-x) - env(safe-area-inset-left)));
  overflow: auto;
  pointer-events: none;
}

#transit-sheet[hidden] { display: none; }

.transit-sheet-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
  border: 1px solid rgba(231, 238, 246, 0.18);
  border-radius: 10px;
  background: rgba(10, 14, 28, 0.72);
  color: #e7eef6;
  font: 12px/1.35 "IBM Plex Mono", ui-monospace, monospace;
  pointer-events: auto;
}

.transit-kicker {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(231, 238, 246, 0.62);
  font-size: 10px;
}

#transit-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

#transit-wallet-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#transit-copy {
  flex: none;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 193, 74, 0.7);
  border-radius: 11px;
  background: transparent;
  color: #ffe7bf;
  font: 700 10px "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

#transit-gala {
  margin-left: auto;
  color: #ffc14a;
  white-space: nowrap;
}

.transit-block { margin-top: 4px; }

.transit-block h3 {
  margin: 0 0 4px;
  font: 700 10px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(231, 238, 246, 0.7);
}

.transit-coins h3 { color: #ffb040; }

.transit-nfts h3 { color: #b078ff; }

#transit-loadout,
#transit-coins,
#transit-nfts {
  list-style: none;
  margin: 0;
  padding: 0;
}

#transit-loadout li,
#transit-coins li,
#transit-nfts li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: center;
  padding: 3px 6px;
}

#transit-loadout li i,
#transit-coins li i,
#transit-nfts li i {
  grid-column: 1 / -1;
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #7ee0ff;
}

#transit-coins li:nth-child(odd) { background: rgba(255, 176, 64, 0.16); }
#transit-coins li:nth-child(even) { background: rgba(255, 176, 64, 0.06); }
#transit-nfts li:nth-child(odd) { background: rgba(176, 120, 255, 0.18); }
#transit-nfts li:nth-child(even) { background: rgba(176, 120, 255, 0.07); }

#transit-name {
  margin: 0;
  font: 600 16px/1.2 Sora, sans-serif;
  color: #fff;
}

#transit-faction,
#transit-title,
#transit-meta,
#transit-heading { margin: 0; }

#transit-faction { font-weight: 600; }

.transit-flight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

#transit-compass {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
}

#transit-compass svg { width: 100%; height: 100%; }

#transit-compass circle { fill: none; stroke: rgba(231, 238, 246, 0.35); stroke-width: 2; }

#transit-compass line { stroke: rgba(231, 238, 246, 0.45); stroke-width: 2; }

#transit-needle { fill: #ffc14a; }

#transit-bearing { fill: #7ee0ff; stroke: none; }

.transit-speed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#transit-speed-gauge {
  width: auto;
  margin: 0;
  align-items: flex-end;
  text-align: right;
  gap: 1px;
  pointer-events: none;
}

#transit-speed-gauge[hidden] { display: none !important; }

.transit-speed span { color: rgba(231, 238, 246, 0.62); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }

.transit-speed strong { font: 600 15px/1 Sora, sans-serif; color: #fff; }

.transit-speed-bar {
  width: 52px;
  height: 3px;
  border-radius: 2px;
  background: rgba(231, 238, 246, 0.16);
  overflow: hidden;
}

#transit-speed-fill { display: block; height: 100%; width: 0; background: #7ee0ff; }

#transit-heading { margin: 0; color: rgba(231, 238, 246, 0.78); font-size: 11px; line-height: 1.2; }

#transit-title {
  margin: 0;
  color: #e7eef6;
}

#transit-meta { margin: 0; color: rgba(231, 238, 246, 0.78); }

.transit-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(231, 238, 246, 0.16);
  overflow: hidden;
}

#transit-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #ffc14a;
}

#transit-exit {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 193, 74, 0.9);
  border-radius: 16px;
  background: rgba(28, 18, 8, 0.92);
  color: #ffe7bf;
  cursor: pointer;
  pointer-events: auto;
}

#transit-exit i {
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}

#transit-exit span {
  font: 700 11px "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#transit-exit[hidden] { display: none; }

@media (max-width: 800px) {
  #inventory.transit-eye {
    align-items: stretch;
    justify-content: stretch;
    flex-direction: column;
    padding:
      calc(var(--frame-y) + 52px + env(safe-area-inset-top))
      var(--frame-x)
      calc(var(--dock-h) + 44px + env(safe-area-inset-bottom) + var(--keyboard))
      var(--frame-x);
  }

  #inventory.transit-eye .sheet-card {
    flex: 1 1 0;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    border-radius: 18px;
    padding: 18px 16px 20px;
    background: rgba(8, 14, 22, 0.86);
  }
}
