/* v0.63 Clean Itemized Title Hub, Story Campaign Cards & In-Flight Radio Subtitle Styles */

body.title-hub-open {
  overflow: hidden;
}

#titleHub[hidden],
#storyObjectiveHud[hidden],
#storyRadioBar[hidden],
#storyDebrief[hidden],
body.flight-ui #titleHub,
body.flight-ui .geo-credit {
  display: none !important;
}

body.title-hub-open #plan {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
}

body.title-hub-open .quick-controls,
body.title-hub-open .geo-credit {
  z-index: 4;
}

#titleHub {
  position: fixed;
  top: var(--hub-top, 52px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  display: flex;
  flex-direction: row;
  background-color: #07111b;
  background-image: linear-gradient(
      95deg,
      rgba(6, 14, 24, 0.94) 0%,
      rgba(7, 17, 29, 0.84) 36%,
      rgba(7, 16, 28, 0.56) 68%,
      rgba(7, 15, 25, 0.72) 100%
    ),
    url('assets/campaign/title-bg.jpg');
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  color: #f0f8ff;
}

.hub-sidebar {
  flex: 0 0 clamp(270px, 28vw, 370px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 3vh, 34px) clamp(16px, 2.2vw, 28px);
  background: linear-gradient(180deg, rgba(6, 15, 25, 0.88) 0%, rgba(7, 18, 30, 0.72) 100%);
  border-right: 1px solid rgba(112, 210, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-y: auto;
}

.hub-brand {
  margin-bottom: 18px;
}

.hub-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #65dcff;
  background: rgba(101, 220, 255, 0.12);
  border: 1px solid rgba(101, 220, 255, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.hub-title {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 36px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

.hub-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #a4c8dc;
  line-height: 1.45;
}

.hub-menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 auto;
  padding: 0;
  list-style: none;
}

.hub-menu-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(13, 34, 52, 0.62);
  border: 1px solid rgba(140, 200, 235, 0.18);
  color: #dceefa;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hub-menu-btn:hover {
  transform: translateX(4px);
  background: rgba(24, 62, 92, 0.85);
  border-color: rgba(101, 220, 255, 0.55);
}

.hub-menu-btn.active,
.hub-menu-btn[aria-selected="true"] {
  background: linear-gradient(120deg, rgba(22, 82, 118, 0.92), rgba(17, 56, 86, 0.92));
  border-color: #65dcff;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 175, 255, 0.25);
  transform: translateX(4px);
}

.hub-menu-btn-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hub-menu-btn-sub {
  font-size: 11px;
  font-weight: 500;
  color: #8cb7cd;
}

.hub-menu-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(248, 199, 81, 0.16);
  border: 1px solid rgba(248, 199, 81, 0.45);
  color: #ffd976;
  white-space: nowrap;
}

.hub-sidebar-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(140, 200, 235, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #93b7cc;
}

.hub-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vh, 32px) clamp(20px, 3vw, 40px);
  overflow-y: auto;
  position: relative;
}

.hub-welcome-hero {
  margin: auto 0;
  max-width: 680px;
  background: rgba(8, 20, 32, 0.72);
  border: 1px solid rgba(140, 200, 235, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.hub-welcome-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 32px);
  color: #fff;
}

.hub-welcome-hero p {
  margin: 0 0 18px;
  color: #c2dfef;
  line-height: 1.65;
  font-size: 14.5px;
}

.hub-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.hub-stat-card {
  background: rgba(15, 39, 59, 0.75);
  border: 1px solid rgba(120, 190, 230, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
}

.hub-stat-card small {
  display: block;
  font-size: 11px;
  color: #84b4ce;
}

.hub-stat-card strong {
  display: block;
  font-size: 17px;
  color: #ffd976;
  margin-top: 2px;
}

.hub-section-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 980px;
  width: 100%;
  margin: auto 0;
}

.hub-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.hub-section-head h2 {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 900;
  color: #ffffff;
}

.hub-section-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #a6cde2;
}

/* Campaign Split View: Featured Chapter Art + Vertical/Grid Chapter List */
.campaign-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(240px, 1fr);
  gap: 16px;
  align-items: start;
}

.campaign-feature {
  background: rgba(9, 22, 36, 0.9);
  border: 1px solid rgba(125, 200, 240, 0.32);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
}

.campaign-art-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #08121c;
  overflow: hidden;
}

.campaign-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.campaign-feature:hover .campaign-art-wrap img {
  transform: scale(1.03);
}

.campaign-art-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 18px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 15, 24, 0.95) 85%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}

.campaign-ch-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffd976;
  background: rgba(248, 199, 81, 0.18);
  border: 1px solid rgba(248, 199, 81, 0.45);
  padding: 2px 9px;
  border-radius: 999px;
}

.campaign-feature-body {
  padding: 16px 20px 20px;
}

.campaign-feature-body h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
}

.campaign-story-copy {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #cce4f2;
}

.campaign-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.campaign-chip {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 48, 72, 0.85);
  border: 1px solid rgba(110, 195, 235, 0.28);
  color: #b7e3f9;
}

.campaign-feature-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.campaign-launch-btn {
  flex: 1;
  min-width: 170px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 900;
  background: linear-gradient(135deg, #f8c751, #f39c12);
  color: #121c24;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(248, 199, 81, 0.35);
}

.campaign-launch-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.campaign-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100dvh - 180px);
  overflow-y: auto;
  padding-right: 4px;
}

.campaign-ch-card {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 8px;
  border-radius: 12px;
  background: rgba(9, 24, 38, 0.84);
  border: 1px solid rgba(120, 190, 230, 0.22);
  color: #dceefa;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.campaign-ch-card:hover {
  background: rgba(18, 46, 70, 0.92);
  border-color: rgba(101, 220, 255, 0.5);
}

.campaign-ch-card.selected {
  background: linear-gradient(135deg, rgba(20, 74, 108, 0.94), rgba(14, 48, 76, 0.94));
  border-color: #ffd976;
  box-shadow: 0 0 18px rgba(248, 199, 81, 0.24);
}

.campaign-ch-thumb {
  width: 84px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.campaign-ch-card strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
}

.campaign-ch-card small {
  display: block;
  font-size: 11px;
  color: #8cb7cd;
  margin-top: 2px;
}

.campaign-stars {
  font-size: 12px;
  color: #ffd976;
  padding-right: 4px;
}

/* Quick Missions / Scenery Showcase Grid */
.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.hub-action-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(10, 25, 40, 0.88);
  border: 1px solid rgba(120, 190, 230, 0.25);
  color: #eaf6ff;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.hub-action-card:hover {
  transform: translateY(-2px);
  border-color: #65dcff;
  background: rgba(18, 48, 72, 0.95);
}

.hub-action-card strong {
  font-size: 15px;
  color: #ffffff;
}

.hub-action-card small {
  font-size: 12px;
  color: #9dc5dc;
  line-height: 1.45;
}

.hub-action-pill {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: #ffd976;
  background: rgba(248, 199, 81, 0.14);
  border-radius: 999px;
  padding: 2px 9px;
}

/* Planner Back-to-Hub Bar */
.planner-back-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: rgba(9, 24, 38, 0.94);
  border-bottom: 1px solid rgba(120, 190, 230, 0.2);
}

.hub-back-btn {
  background: rgba(24, 62, 92, 0.9);
  border: 1px solid rgba(101, 220, 255, 0.45);
  color: #bfeaff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.hub-back-btn:hover {
  background: rgba(34, 88, 128, 0.98);
  color: #ffffff;
}

/* In-Flight Story HUD & Radio Dialogue Subtitles */
#storyObjectiveHud {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(8, 22, 34, 0.86);
  border: 1px solid rgba(248, 199, 81, 0.55);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
  color: #fff3d1;
  font-size: 12.5px;
  font-weight: 700;
  pointer-events: none;
  max-width: min(90vw, 620px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#storyRadioBar {
  position: fixed;
  left: 50%;
  bottom: 146px;
  transform: translateX(-50%);
  z-index: 42;
  width: min(640px, 90vw);
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(7, 19, 30, 0.9);
  border: 1px solid rgba(101, 220, 255, 0.45);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  pointer-events: none;
  animation: radioFadeUp 0.28s ease;
}

@keyframes radioFadeUp {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.radio-speaker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #65dcff;
  margin-bottom: 4px;
}

.radio-text {
  font-size: 14px;
  line-height: 1.5;
  color: #f2f9ff;
}

#storyDebrief {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 10, 17, 0.72);
  backdrop-filter: blur(10px);
}

.debrief-box {
  width: min(560px, 94vw);
  background: rgba(9, 23, 36, 0.96);
  border: 1px solid rgba(140, 200, 235, 0.4);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.75);
}

.debrief-banner {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.debrief-body {
  padding: 18px 22px 22px;
}

.debrief-body h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #ffd976;
}

.debrief-body p {
  margin: 0 0 14px;
  color: #cde3f2;
  font-size: 14px;
  line-height: 1.55;
}

.debrief-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hub-mobile-orient-hint {
  display: none;
}

.hub-quick-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.hub-quick-cta-row .campaign-launch-btn {
  flex: 1 1 210px;
}

@media (max-width: 900px) {
  #titleHub {
    flex-direction: column;
    overflow: hidden;
  }
  .hub-sidebar {
    flex: 0 0 auto;
    border-right: 0;
    border-bottom: 1px solid rgba(112, 210, 255, 0.25);
    padding: 8px 10px 6px;
    overflow: visible;
  }
  .hub-brand {
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 8px;
  }
  .hub-brand .hub-kicker {
    margin-bottom: 0;
    font-size: 10px;
    padding: 2px 8px;
  }
  .hub-brand .hub-title {
    font-size: 18px;
    line-height: 1.15;
  }
  .hub-brand .hub-subtitle {
    display: none;
  }
  #hubCareerCard {
    padding: 6px 9px;
    margin-bottom: 6px;
    font-size: 11px;
  }
  .hub-menu-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    margin: 0;
    padding: 2px 0 4px;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hub-menu-list::-webkit-scrollbar {
    display: none;
  }
  .hub-menu-list > li {
    flex: 0 0 auto;
  }
  .hub-menu-btn {
    width: auto;
    padding: 7px 11px;
    font-size: 12.5px;
    border-radius: 999px;
    gap: 5px;
    white-space: nowrap;
  }
  .hub-menu-btn:hover,
  .hub-menu-btn.active,
  .hub-menu-btn[aria-selected="true"] {
    transform: none;
  }
  .hub-menu-btn-sub {
    display: none;
  }
  .hub-menu-badge {
    font-size: 10px;
    padding: 1px 6px;
  }
  .hub-sidebar-footer {
    display: none;
  }
  .hub-stage {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 10px 12px 18px;
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  .hub-mobile-orient-hint {
    display: block;
    font-size: 11.5px;
    line-height: 1.35;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(16, 48, 76, 0.88);
    border: 1px solid rgba(101, 220, 255, 0.35);
    color: #b7ebff;
    text-align: center;
  }
  .hub-hero-showcase {
    min-height: 92px;
  }
  .hub-hero-overlay {
    padding: 12px 14px;
    gap: 5px;
  }
  .hub-hero-overlay h2 {
    font-size: 19px;
    margin: 0;
  }
  .campaign-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .campaign-feature,
  .campaign-chapter-list {
    min-width: 0;
    max-width: 100%;
  }
  .campaign-art-wrap {
    aspect-ratio: auto;
    height: 132px;
  }
  .campaign-feature-body {
    padding: 12px 14px 14px;
  }
  #campaignRouteCanvas {
    width: 100% !important;
    max-width: 100% !important;
    height: 76px !important;
  }
  .campaign-feature-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(9, 22, 36, 0) 0%, rgba(9, 22, 36, 0.96) 28%);
    padding: 8px 0 4px;
    z-index: 4;
  }
  .campaign-chapter-list {
    max-height: none;
  }
  .hub-hero-stats {
    grid-template-columns: 1fr;
  }
  #storyRadioBar {
    bottom: 142px;
    font-size: 13px;
  }
  #storyObjectiveHud {
    top: 62px;
    font-size: 11px;
    padding: 5px 12px;
  }
}

@media (max-width: 920px) and (max-height: 540px) {
  #titleHub {
    flex-direction: row;
    overflow: hidden;
  }
  .hub-mobile-orient-hint {
    display: none;
  }
  .hub-sidebar {
    flex: 0 0 218px;
    border-right: 1px solid rgba(112, 210, 255, 0.22);
    border-bottom: 0;
    padding: 8px 10px;
    gap: 6px;
    overflow-y: auto;
    min-height: 0;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
  .hub-brand {
    display: block;
    margin-bottom: 4px;
  }
  .hub-brand .hub-kicker {
    display: none;
  }
  #hubCareerCard {
    display: none;
  }
  .hub-menu-list {
    display: flex;
    flex-direction: column;
    touch-action: pan-y;
    overflow-x: visible;
    overflow-y: visible;
    gap: 4px;
    padding: 0;
  }
  .hub-menu-list > li {
    flex: none;
  }
  .hub-menu-btn {
    width: 100%;
    border-radius: 10px;
    padding: 6px 9px;
    font-size: 12px;
    white-space: normal;
  }
  .hub-menu-btn-sub {
    display: none;
  }
  .hub-stage {
    min-width: 0;
    padding: 8px 14px 10px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .hub-section-head {
    margin-bottom: 4px;
  }
  .hub-section-head h2 {
    font-size: 16px;
  }
  .hub-section-head p {
    display: none;
  }
  .hub-welcome-hero h2 {
    font-size: 22px;
  }
  .campaign-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: 8px;
  }
  .campaign-art-wrap {
    aspect-ratio: auto;
    height: 58px;
  }
  .campaign-feature-body {
    padding: 6px 10px 8px;
  }
  .campaign-feature-body h3 {
    font-size: 14px;
    margin-bottom: 2px;
  }
  .campaign-story-copy {
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .campaign-meta-chips {
    gap: 4px;
    margin-bottom: 4px;
  }
  .campaign-chip {
    font-size: 10.5px;
    padding: 2px 7px;
  }
  #campaignRouteCanvas {
    display: none !important;
  }
  .campaign-feature-actions {
    position: sticky;
    bottom: 0;
    padding: 4px 0 2px;
    background: linear-gradient(180deg, rgba(9, 22, 36, 0) 0%, rgba(9, 22, 36, 0.96) 28%);
    z-index: 4;
  }
  .campaign-launch-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .hub-online-banner {
    min-height: 64px;
  }
  .hub-online-banner-body {
    padding: 9px 12px;
  }
  .hub-online-banner-body p {
    display: none;
  }
}

/* v0.63b In-Flight Layout & Mobile Landscape Uncluttered Spacing */
@keyframes radioFadeUpMobile {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

body.flight-ui:not(.mobile-mode) #storyObjectiveHud {
  top: 56px;
  padding: 5px 14px;
  font-size: 12px;
}

body.flight-ui:not(.mobile-mode) #storyRadioBar {
  top: calc(var(--hdr-h, 52px) + 46px);
  bottom: auto;
  left: 16px;
  transform: none;
  width: min(360px, 34vw);
  padding: 8px 12px;
}

body.flight-ui:not(.mobile-mode) #tacticalGuide {
  bottom: 38px;
  max-width: min(760px, 90vw);
  padding: 5px 10px;
}

body.flight-ui:not(.mobile-mode) #tacticalGuide button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
}

.mobile-mode.flight-ui #hud {
  --stick-size: clamp(80px, 23dvh, 114px);
  --throttle-height: clamp(106px, 30dvh, 154px);
  --throttle-width: clamp(40px, 5.8vw, 52px);
  --flight-bottom: max(6px, env(safe-area-inset-bottom));
}

.mobile-mode.flight-ui #glassReadouts {
  top: 43%;
  width: min(58vw, 86dvh, 520px);
  height: min(54dvh, 62vw, 340px);
}

.mobile-mode.flight-ui #storyObjectiveHud {
  top: calc(var(--hdr-h, 46px) + 4px);
  left: max(10px, env(safe-area-inset-left));
  transform: none;
  max-width: 39vw;
  padding: 4px 10px;
  font-size: 11px;
  z-index: 6;
}

.mobile-mode.flight-ui #waypointChip {
  top: calc(var(--hdr-h, 46px) + 4px);
  right: max(10px, env(safe-area-inset-right));
  left: auto;
  transform: none;
  max-width: 35vw;
  padding: 3px 9px;
  font-size: 11px;
}

.mobile-mode.flight-ui #touchQuick {
  right: calc(var(--throttle-width) + 8px);
  bottom: var(--flight-bottom);
  width: min(26vw, 200px);
  gap: 3px;
}

.mobile-mode.flight-ui #touchQuick button {
  min-height: 31px;
  padding: 2px 4px;
  font-size: clamp(10px, 1.4vw, 12.5px);
}

.mobile-mode.flight-ui #touchRudderControl {
  bottom: calc(var(--flight-bottom) + var(--throttle-height) + 22px);
  width: min(19vw, 140px);
  font-size: 11px;
}

.mobile-mode.flight-ui #touchRudder {
  height: 30px !important;
}

.mobile-mode.flight-ui #stats {
  left: calc(var(--stick-size) + 12px);
  right: calc(var(--throttle-width) + min(26vw, 200px) + 16px);
  bottom: var(--flight-bottom);
  transform: none;
  width: auto;
  padding: 3px 8px;
  font-size: 11px;
  justify-content: center;
}

.mobile-mode.flight-ui #flightGuide,
.mobile-mode.flight-ui #gateGuide {
  left: calc(var(--stick-size) + 12px);
  right: calc(var(--throttle-width) + min(26vw, 200px) + 16px);
  bottom: calc(var(--flight-bottom) + 30px) !important;
  transform: none;
  width: auto;
  max-width: none;
}

.mobile-mode.flight-ui #tacticalGuide {
  left: calc(var(--stick-size) + 10px);
  right: calc(var(--throttle-width) + min(26vw, 200px) + 12px);
  bottom: calc(var(--flight-bottom) + 28px) !important;
  transform: none;
  width: auto;
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
}

.mobile-mode.flight-ui #tacticalGuide p {
  width: 100%;
  margin: 0 0 2px;
  font-size: 10.5px;
  line-height: 1.25;
}

.mobile-mode.flight-ui #tacticalGuide button {
  min-height: 28px !important;
  padding: 3px 7px !important;
  font-size: 11px !important;
}

.mobile-mode.flight-ui #status {
  font-size: 11.5px;
  padding: 4px 10px;
}

.mobile-mode.flight-ui #storyRadioBar {
  left: max(8px, env(safe-area-inset-left));
  right: auto;
  bottom: calc(var(--stick-size) + var(--flight-bottom) + 14px);
  transform: none;
  width: auto;
  max-width: min(290px, 34vw);
  margin-inline: 0;
  padding: 6px 10px;
  border-radius: 10px;
  animation: radioFadeUpMobile 0.24s ease;
}

.mobile-mode.flight-ui #storyRadioBar .radio-speaker {
  font-size: 10px;
  margin-bottom: 2px;
}

.mobile-mode.flight-ui #storyRadioBar .radio-text {
  font-size: 11.5px;
  line-height: 1.35;
}

@media (max-width: 620px) and (orientation: portrait) {
  .mobile-mode.flight-ui #storyObjectiveHud,
  .mobile-mode.flight-ui #waypointChip {
    max-width: 46vw;
  }
  .mobile-mode.flight-ui #stats {
    left: 8px;
    right: 8px;
    bottom: calc(var(--stick-size) + 10px);
  }
  .mobile-mode.flight-ui #flightGuide,
  .mobile-mode.flight-ui #gateGuide,
  .mobile-mode.flight-ui #tacticalGuide {
    left: 8px;
    right: 8px;
    bottom: calc(var(--stick-size) + 42px) !important;
    max-width: none;
    transform: none;
  }
  .mobile-mode.flight-ui #storyRadioBar {
    top: calc(var(--hdr-h, 50px) + 42px);
    bottom: auto;
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

/* v0.64 Pilot Career Card, Medals Wall, Debrief Stars & Endless Challenge Cards */
.hub-career-card {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 30, 48, 0.85);
  border: 1px solid rgba(112, 210, 255, 0.28);
}

.hub-career-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #eaf6ff;
  margin-bottom: 6px;
}

.hub-career-money {
  color: #ffd976;
  font-weight: 800;
  font-family: monospace;
}

.hub-xp-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 6px;
}

.hub-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #65dcff, #ffd976);
  transition: width 0.3s ease;
}

.hub-career-sub {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8cb7d2;
}

.medals-panel {
  background: rgba(9, 23, 36, 0.84);
  border: 1px solid rgba(140, 200, 235, 0.22);
  border-radius: 14px;
  padding: 12px 16px;
}

.medals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.medal-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(14, 30, 46, 0.72);
  border: 1px solid rgba(140, 200, 235, 0.14);
  opacity: 0.45;
}

.medal-badge.unlocked {
  opacity: 1;
  border-color: rgba(248, 199, 81, 0.55);
  background: rgba(24, 46, 66, 0.9);
}

.medal-badge > span {
  font-size: 18px;
}

.medal-badge strong {
  display: block;
  font-size: 12px;
  color: #eef8ff;
}

.medal-badge small {
  display: block;
  font-size: 10.5px;
  color: #9ec4dc;
}

.debrief-stars {
  font-size: 24px;
  letter-spacing: 4px;
  color: #ffd976;
  margin-bottom: 6px;
}

.debrief-breakdown {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  color: #9cb9cc;
}

.debrief-breakdown li.ok {
  color: #8fffcf;
}

.debrief-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.reward-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(101, 220, 255, 0.15);
  border: 1px solid rgba(101, 220, 255, 0.4);
  color: #dff7ff;
}

.reward-chip.medal,
.reward-chip.rank {
  background: rgba(248, 199, 81, 0.18);
  border-color: rgba(248, 199, 81, 0.55);
  color: #ffe28a;
}

/* =========================================================================
   v0.65: Unified Home Hub (Welcome, Story & Online Mode, Art Cards, Settings)
   ========================================================================= */

.hub-home-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hub-hero-showcase {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 128px;
  border: 1px solid rgba(112, 185, 255, 0.28);
  background: rgba(10, 18, 32, 0.85);
}

.hub-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.15);
}

.hub-hero-overlay {
  position: relative;
  z-index: 1;
  padding: 16px 20px;
  background: linear-gradient(95deg, rgba(7, 13, 24, 0.92) 0%, rgba(7, 13, 24, 0.68) 60%, rgba(7, 13, 24, 0.35) 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hub-hero-overlay h3 {
  margin: 0;
  font-size: 18px;
  color: #f4f8ff;
}

.hub-hero-overlay p {
  margin: 0;
  font-size: 13px;
  color: rgba(226, 238, 255, 0.86);
  max-width: 680px;
  line-height: 1.5;
}

.hub-primary-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hub-art-mode-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(145, 200, 255, 0.26);
  background: rgba(12, 22, 38, 0.88);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.hub-art-mode-card:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 205, 255, 0.65);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.hub-art-mode-card.featured {
  min-height: 235px;
}

.hub-art-mode-card.featured img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.hub-art-mode-body {
  padding: 13px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.hub-art-mode-body h4 {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
}

.hub-art-mode-body p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(215, 231, 255, 0.84);
  line-height: 1.45;
  flex: 1;
}

.hub-mode-pill {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

.hub-mode-pill.gold {
  background: rgba(248, 199, 81, 0.2);
  border: 1px solid rgba(248, 199, 81, 0.55);
  color: #ffe393;
}

.hub-mode-pill.cyan {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #9be4ff;
}

.hub-secondary-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 10px;
}

.hub-mini-art-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(145, 200, 255, 0.2);
  background: rgba(13, 24, 41, 0.82);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.hub-mini-art-card:hover {
  border-color: rgba(112, 205, 255, 0.55);
  background: rgba(20, 36, 62, 0.92);
  transform: translateY(-1px);
}

.hub-mini-art-card img {
  width: 58px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.hub-mini-art-card strong {
  display: block;
  font-size: 13px;
  color: #f4f8ff;
  margin-bottom: 2px;
}

.hub-mini-art-card span {
  display: block;
  font-size: 11.5px;
  color: rgba(205, 224, 250, 0.78);
  line-height: 1.3;
}

.hub-online-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 112px;
  border: 1px solid rgba(86, 198, 255, 0.32);
  background: rgba(10, 20, 36, 0.9);
}

.hub-online-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.hub-online-banner-body {
  position: relative;
  z-index: 1;
  padding: 15px 18px;
  background: linear-gradient(90deg, rgba(8, 16, 30, 0.92) 0%, rgba(8, 16, 30, 0.55) 100%);
}

.hub-online-banner-body h4 {
  margin: 0 0 5px;
  font-size: 16px;
  color: #f5f9ff;
}

.hub-online-banner-body p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(220, 236, 255, 0.86);
}

.hub-panel-card {
  border-radius: 14px;
  border: 1px solid rgba(145, 200, 255, 0.22);
  background: rgba(13, 24, 41, 0.85);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-panel-card h4 {
  margin: 0;
  font-size: 15px;
  color: #f0f6ff;
}

.hub-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hub-form-grid label,
.hub-settings-list label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  color: rgba(220, 235, 255, 0.88);
}

.hub-form-grid input,
.hub-form-grid select,
.hub-settings-list select {
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(140, 195, 255, 0.28);
  background: rgba(7, 14, 26, 0.86);
  color: #f3f8ff;
  font-size: 13px;
}

.hub-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hub-settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-settings-list input[type="range"] {
  width: 100%;
  accent-color: #4cc2ff;
}

.hub-check-row {
  flex-direction: row !important;
  align-items: center;
  gap: 9px !important;
  cursor: pointer;
}

.hub-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4cc2ff;
}

.hub-art-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.hub-art-action-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(145, 200, 255, 0.24);
  background: rgba(13, 24, 41, 0.88);
  display: flex;
  flex-direction: column;
}

.hub-art-action-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
}

.hub-art-action-card .hub-art-mode-body {
  padding: 12px 14px 14px;
}

@media (max-width: 720px) {
  .hub-primary-modes,
  .hub-form-grid,
  .hub-settings-grid {
    grid-template-columns: 1fr;
  }

  .hub-art-mode-card.featured {
    min-height: 205px;
  }

  .hub-art-mode-card.featured img {
    height: 115px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hub-hero-showcase {
    min-height: 88px;
  }

  .hub-hero-overlay {
    padding: 10px 14px;
  }

  .hub-art-mode-card.featured {
    min-height: 170px;
  }

  .hub-art-mode-card.featured img {
    height: 88px;
  }
}

/* ==========================================================================
   v0.66: Room Pill in Menu, Aircraft Performance Upgrades, Interactive Radar
   Map Toolbar, Desktop/Mobile Online Dogfight Bar & Landscape HUD Fit
   ========================================================================== */

/* 1. Hide giant room badge at top center during flight (moved into 選單 menu),
      and make it compact when on the menu header */
#headerMpBtn {
  font-size: 11px !important;
  padding: 3px 9px !important;
  gap: 5px !important;
  transform: scale(0.92);
}

body.flight-ui #headerMpBtn {
  display: none !important;
}

#quickMpRoomBtn {
  width: 100%;
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(86, 198, 255, 0.42);
  background: rgba(16, 44, 70, 0.85);
  color: #78effe;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}

/* 2. Wallet badge & Aircraft Performance Upgrades tab */
.hub-wallet-badge {
  background: rgba(255, 207, 94, 0.16) !important;
  border-color: rgba(255, 207, 94, 0.48) !important;
  color: #ffd875 !important;
  font-weight: 800 !important;
}

.hub-upgrade-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(10, 24, 42, 0.88);
  border: 1px solid rgba(110, 195, 255, 0.28);
  font-size: 12.5px;
  color: #bfe6ff;
}

.hub-upgrade-summary span {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 74, 114, 0.45);
  border: 1px solid rgba(120, 205, 255, 0.25);
}

.hub-upgrades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
}

.hub-upgrade-card {
  border-radius: 14px;
  border: 1px solid rgba(135, 198, 255, 0.25);
  background: linear-gradient(165deg, rgba(14, 28, 48, 0.92), rgba(9, 18, 32, 0.94));
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.hub-upgrade-card.maxed {
  border-color: rgba(255, 210, 96, 0.55);
  box-shadow: 0 0 18px rgba(255, 204, 84, 0.14);
}

.hub-upgrade-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-upgrade-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 105, 165, 0.28);
  border: 1px solid rgba(125, 205, 255, 0.28);
  flex-shrink: 0;
}

.hub-upgrade-head h4 {
  margin: 0 0 2px;
  font-size: 14.5px;
  color: #f3f8ff;
}

.hub-upgrade-sub {
  font-size: 11.5px;
  color: #82d8ff;
}

.hub-upgrade-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(215, 232, 252, 0.84);
}

.upg-pips {
  display: flex;
  align-items: center;
  gap: 5px;
}

.upg-pip {
  width: 22px;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(140, 195, 255, 0.25);
}

.upg-pip.filled {
  background: linear-gradient(90deg, #38bdf8, #facc15);
  border-color: #fde047;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

.upg-lv-text {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffdf7e;
}

/* 3. Interactive Radar Map Toolbar (Zoom + / -, Center, World, Direct-To GPS) */
.radar-map-toolbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 8px;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(9, 24, 38, 0.86);
  border: 1px solid rgba(105, 205, 255, 0.26);
}

.radar-zoom-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.radar-zoom-btns button {
  flex: 1 1 auto;
  padding: 4px 7px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
  background: rgba(24, 58, 86, 0.85) !important;
  border: 1px solid rgba(115, 208, 255, 0.32) !important;
  color: #e6f6ff !important;
  cursor: pointer;
}

.radar-zoom-btns button:hover {
  background: rgba(42, 96, 140, 0.92) !important;
}

.radar-direct-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #8ce4ff;
  font-weight: 600;
}

.radar-direct-row select {
  flex: 1 1 92px;
  min-width: 0;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(6, 16, 28, 0.92);
  border: 1px solid rgba(115, 208, 255, 0.35);
  color: #f0f8ff;
  font-size: 11.5px;
}

#campaignRouteCanvas {
  display: block;
  width: 100%;
  height: 110px;
  border-radius: 10px;
  background: rgba(5, 14, 24, 0.85);
}

/* 4. Fighter Online Combat Bar visible on both Desktop and Mobile when active */
@media (min-width: 901px) {
  body.flight-ui #touchFlight {
    display: block !important;
    pointer-events: none !important;
  }
  body.flight-ui #touchLeft,
  body.flight-ui #touchRudderControl,
  body.flight-ui #touchThrottleControl,
  body.flight-ui #touchQuick > button {
    display: none !important;
  }
  body.flight-ui #touchCombatBar:not([hidden]) {
    display: flex !important;
    pointer-events: auto !important;
    position: fixed !important;
    left: 16px !important;
    bottom: 62px !important;
    z-index: 42 !important;
    gap: 6px !important;
    background: rgba(8, 18, 32, 0.82);
    padding: 6px 8px;
    border-radius: 11px;
    border: 1px solid rgba(255, 120, 96, 0.38);
  }
}

/* 5. Mobile landscape HUD safety so readouts never collide with ◂ 方向舵 ▸ */
@media (max-width: 960px) and (orientation: landscape) {
  body.flight-ui #glassReadouts {
    width: min(46vw, 76dvh, 410px) !important;
    height: min(46vw, 76dvh, 410px) !important;
  }
}

/* Dispatch menu. Keep the active flight outside the menu styling scope. */
#titleHub {background:#141c20;color:#f6f3e9;font-family:"Segoe UI","Microsoft JhengHei",sans-serif}
#titleHub .hub-sidebar {background:#172024;border-color:#394449;backdrop-filter:none;-webkit-backdrop-filter:none}
#titleHub .hub-kicker,#titleHub .hub-menu-badge {background:none;border:0;padding:0;color:#c8c5b5;border-radius:0}
#titleHub .hub-title {text-shadow:none}
#titleHub .hub-menu-list {gap:0}
#titleHub .hub-menu-btn {border:0;border-bottom:1px solid #364247;border-radius:0;background:transparent;box-shadow:none;transform:none;transition:none;min-height:44px}
#titleHub .hub-menu-btn:hover {background:#293437}
#titleHub .hub-menu-btn.active {background:#303a39;box-shadow:inset 3px 0 #f1bd65;color:#fff}
#titleHub button:focus-visible {outline:2px solid #ffcf7e;outline-offset:-3px}
#titleHub .hub-stage {font-variant-numeric:tabular-nums}
.dispatch-home {position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:clamp(330px,67vh,810px);overflow:hidden;background:#222d33}
.dispatch-photo {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}
.dispatch-brief {margin:clamp(12px,3vw,44px);padding:clamp(16px,2vw,30px);max-width:34rem;background:#152024f2;border-top:3px solid #e6b867}
.dispatch-route {font:600 14px/1.4 Consolas,monospace;letter-spacing:.1em;color:#f2c475}
.dispatch-brief h2 {font-size:clamp(26px,3.3vw,52px);line-height:1.15;margin:.4em 0}
.dispatch-brief p {margin:0 0 1.1em;color:#c6ced0;font-variant-numeric:tabular-nums}
#titleHub :is(.campaign-launch-btn,.hub-back-btn,.campaign-chip,.campaign-ch-card,.campaign-feature,.hub-section-panel,.hub-career-card) {border-radius:2px;box-shadow:none;transform:none}
#titleHub .campaign-launch-btn {background:#eac17c;color:#182023;border:1px solid #eac17c;text-shadow:none;min-height:44px}
#titleHub .hub-back-btn {background:#253035;color:white;min-height:44px}
#titleHub .campaign-ch-card {background:#1d282d;border-color:#415055}
#titleHub .campaign-ch-card.selected {border-color:#eac17c}
#storyObjectiveHud,#storyRadioBar {font-variant-numeric:tabular-nums;border-radius:2px;box-shadow:none;text-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-width:900px){.dispatch-home{min-height:clamp(215px,48svh,400px)}.dispatch-brief{margin:8px;padding:12px}.dispatch-brief h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){#titleHub button,#storyRadioBar{transition:none;animation:none}}

#titleHub:has(.hangar-home) .hub-stage {padding:0}
.hangar-home {height:100%;min-height:260px;align-items:flex-end}
.hangar-home .dispatch-photo {object-position:center}
.hangar-home .dispatch-brief {display:grid;gap:5px;margin:0 0 3% 3%;padding:14px;background:#101b20ed;border:0}
.hangar-home .dispatch-brief h2 {font-size:19px;margin:0 0 6px}
.hangar-home button {text-align:left}
.route-caption {display:block;color:#a7bac4}
.hangar-step {display:flex;align-items:end;gap:4px}
.hangar-step button {min-height:40px}
body.flight-ui.cockpit-active #glassReadouts {pointer-events:none;width:94%;height:64%;top:38%}
#storyDebrief .debrief-box {border-radius:2px;background:#101c23;box-shadow:none}
@media(min-width:901px){
  #titleHub .campaign-layout {grid-template-columns:minmax(185px,.75fr) minmax(285px,1.4fr)}
  .campaign-layout .campaign-chapter-list {grid-area:1/1}
  .campaign-layout .campaign-feature {grid-area:1/2}
  #storyDebrief .debrief-box {display:grid;grid-template-columns:35% 1fr}
  #storyDebrief .debrief-banner {height:100%;object-fit:cover}
}
@media(max-width:960px) and (orientation:landscape){
  body.mobile-mode.flight-ui.cockpit-active #glassReadouts {width:78% !important;height:46dvh !important;top:30%}
  .hangar-home {min-height:190px}
  .hangar-home .dispatch-brief {margin:6px;padding:7px}
}

#storyDebrief { grid-template-rows:minmax(0,1fr); touch-action:pan-y; padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
#storyDebrief .debrief-box {min-height:0;max-height:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-gutter:stable}
#storyDebrief .debrief-banner {max-height:24vh}
#landingCard,#tacticalReport {box-sizing:border-box;max-height:80vh;max-height:80dvh;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
