/*
 * STARZ Mini Games / original lobby information architecture.
 * Scope deliberately excludes the store and every other game page.
 * Load after orbital-theme.css when that stylesheet is injected at runtime.
 * Geometry follows styles.css + console-panel.css; red steel and the fixed
 * orbital plate remain STARZ-owned. No game state or API behavior lives here.
 */
body.orbital-frigate-page {
  --lobby-signal: #d34a50;
  --lobby-steel: #b8c0be;
  --lobby-line: rgba(183, 193, 194, .24);
}

/* A background, never a scene that pushes the player controls down the page. */
body.orbital-frigate-page > .orbital-frigate-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body.orbital-frigate-page #top > .hero {
  margin-top: 0;
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
}

body.orbital-frigate-page .hero > .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
  gap: 56px;
}

body.orbital-frigate-page .hero-grid > * { min-width: 0; }

/* Keep the two-line title footprint without borrowing MASO's condensed face
 * or inserting an additional badge row above the original promotion stack. */
body.orbital-frigate-page .hero-copy > h1 {
  font-family: "Orbitron", "Arial Narrow", sans-serif;
  font-size: clamp(2.2rem, 4.25vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 16px 0 18px;
}
body.orbital-frigate-page .hero-copy > h1 > .grad-text {
  display: block;
  margin-top: .055em;
}

/* The inactive Derby template stays inert, including if a decoration helper
 * ever clones it. Its game and destination are not removed. */
body.orbital-frigate-page .hero-copy > .bunker-notice { display: none !important; }

body.orbital-frigate-page .hero-copy > :is(.fire-sale, .color-role-entry, .bunker-entry),
body.orbital-frigate-page .hero-copy > .hero-cta {
  width: 100%;
  max-width: 660px;
  box-sizing: border-box;
}
body.orbital-frigate-page .hero-copy > .hero-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-flow: row;
  gap: 14px;
}
body.orbital-frigate-page .hero-cta > :is(a, button) { min-width: 0; }

/* Promotion slots remain in place; unsupported percentages and rewards are
 * not represented as offers. The destination owns current availability. */
body.orbital-frigate-page .hero-copy > .fire-sale {
  border-color: #975056;
  background: linear-gradient(115deg, #321b20, #19171b 65%, #3b2024);
}
body.orbital-frigate-page .console-plus h2 {
  font-size: clamp(1.55rem, 2.65vw, 2.35rem);
  overflow-wrap: anywhere;
}

@media (min-width: 941px) {
  body.orbital-frigate-page .hero .hero-copy {
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }
  body.orbital-frigate-page .hero-copy > .fire-sale { margin-top: auto; }
}

/* Original mobile order: heading, cosmetic shop, color roles, station,
 * Events, Millionaires, Crates, then Player Console. DOM order is tab order.
 * Existing navToggle/navLinks handlers still own opening the hamburger. */
@media (max-width: 940px) {
  body.orbital-frigate-page .hero > .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  body.orbital-frigate-page .hero .hero-copy { display: block; }
  body.orbital-frigate-page .hero-copy > .fire-sale { margin-top: 0; }
  body.orbital-frigate-page .nav-links:not(.open) { display: none; }
  body.orbital-frigate-page .nav-links.open {
    display: flex;
    flex-direction: column;
    background: #11171bf7;
    border-color: var(--lobby-line);
  }
  body.orbital-frigate-page .nav-toggle { display: block; margin-left: auto; }
  body.orbital-frigate-page .nav-cta { display: none; }
}

@media (max-width: 767px) {
  body.orbital-frigate-page .hero-copy > h1 {
    font-size: clamp(1.8rem, 8.9vw, 4rem);
  }
  body.orbital-frigate-page .hero-copy > .eyebrow {
    font-size: clamp(.55rem, 2.4vw, .72rem);
  }
  body.orbital-frigate-page .console-plus h2 {
    font-size: clamp(1.65rem, 7vw, 2.5rem);
  }
}

@media (max-width: 640px) {
  body.orbital-frigate-page .nav-back { display: none; }
  body.orbital-frigate-page .nav-inner {
    height: 60px;
    gap: 8px;
    flex-wrap: nowrap;
  }
  body.orbital-frigate-page .nav .brand {
    font-size: clamp(.85rem, 4vw, 1.05rem);
    letter-spacing: .025em;
    gap: 6px;
    flex-shrink: 1;
  }
  body.orbital-frigate-page .nav .starz-brand-mark {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }
  body.orbital-frigate-page .nav-auth { margin-left: auto; min-width: 0; }
  body.orbital-frigate-page .nav-auth .btn-login {
    font-size: .72rem;
    padding-inline: 10px;
  }
  body.orbital-frigate-page .nav-toggle {
    flex: 0 0 44px;
    min-width: 44px;
    min-height: 44px;
    margin-left: 0;
  }
  body.orbital-frigate-page .nav-links.open { top: 60px; }
}

/* Inactive club: no metallic sheen or hover invitation. The status stays
 * readable on phones, where the original membership tag was hidden. */
body.orbital-frigate-page .hero-cta .btn-mclub:disabled {
  flex-wrap: wrap;
  border-color: #555b60;
  background: #25292d;
  color: #a5abad;
  box-shadow: none;
  text-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: auto;
  transform: none;
  transition: none;
  animation: none;
}
body.orbital-frigate-page .hero-cta .btn-mclub:disabled::before,
body.orbital-frigate-page .hero-cta .btn-mclub:disabled::after {
  content: none;
  display: none;
  animation: none;
}
body.orbital-frigate-page .hero-cta .btn-mclub:disabled .mclub-chip {
  background: #656c70;
  box-shadow: none;
}
body.orbital-frigate-page .hero-cta .btn-mclub:disabled .mclub-name {
  min-width: 0;
  background: none;
  color: #a5abad;
  -webkit-text-fill-color: currentColor;
  overflow-wrap: anywhere;
}
body.orbital-frigate-page .hero-cta .btn-mclub:disabled .mclub-tag {
  display: inline-block;
  color: #b0b6b8;
  border-color: #555b60;
  transition: none;
}

/* Lunar engineering postcard: an unobscured base to the right, silver lettering
 * on the dark left. Retain the existing stack width and razor-cut access edge. */
body.orbital-frigate-page .hero-copy > .bunker-entry {
  --station-cut: 12px;
  min-height: 154px;
  align-items: center;
  gap: 16px;
  border: 0;
  border-radius: 0;
  padding: 22px 24px;
  background: #a9555d;
  clip-path: polygon(var(--station-cut) 0, 100% 0, 100% calc(100% - var(--station-cut)), calc(100% - var(--station-cut)) 100%, 0 100%, 0 var(--station-cut));
  box-shadow: none;
  color: #e4e9eb;
  animation: none;
  transition: none;
}
body.orbital-frigate-page .hero-copy > .bunker-entry::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border: 0;
  background-color: #111519;
  background-image:
    linear-gradient(90deg, rgba(9, 13, 17, .62), rgba(9, 13, 17, .18) 47%, transparent 70%),
    url("/media/starz-spacestation-button.webp");
  background-size: cover;
  background-position: center, center right;
  background-repeat: no-repeat;
  box-shadow: none;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  pointer-events: none;
}
body.orbital-frigate-page .hero-copy > .bunker-entry::after,
body.orbital-frigate-page .hero-copy > .bunker-entry .bunker-entry__beacon,
body.orbital-frigate-page .hero-copy > .bunker-entry .bunker-entry__hatch {
  display: none;
}
body.orbital-frigate-page .hero-copy > .bunker-entry .bunker-entry__copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 64%;
  gap: 9px;
  text-shadow: 0 2px 5px #090d11;
}
body.orbital-frigate-page .hero-copy > .bunker-entry .bunker-entry__label {
  color: #f0a5a7;
  font-size: .6rem;
  letter-spacing: .15em;
}
body.orbital-frigate-page .hero-copy > .bunker-entry .bunker-entry__title {
  color: #e4e9eb;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  letter-spacing: .015em;
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
}
body.orbital-frigate-page .hero-copy > .bunker-entry .bunker-entry__arrow {
  align-self: flex-end;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #bc666e;
  border-radius: 0;
  background: #15191de0;
  color: #f58c93;
  text-shadow: none;
}
body.orbital-frigate-page .hero-copy > .bunker-entry:hover {
  background: #f16a72;
  transform: none;
}
body.orbital-frigate-page .hero-copy > .bunker-entry:active {
  background: #c9ced2;
  transform: none;
}
/* The inset focus edge stays visible inside the clipped silhouette. */
body.orbital-frigate-page .hero-copy > .bunker-entry:focus-visible {
  outline: 3px solid #f5e8d4;
  outline-offset: -5px;
  background: #f5e8d4;
}
body.orbital-frigate-page .hero-copy > .bunker-entry:focus-visible::before {
  inset: 3px;
}

body.orbital-frigate-page .hero-cta .event-launch {
  box-sizing: border-box;
  border: 1px solid #ff777d;
  border-radius: 2px;
  background: #f13a40;
  color: #261014;
  box-shadow: none;
  text-shadow: none;
  animation: none;
  transition: none;
}
body.orbital-frigate-page .hero-cta .event-launch::before,
body.orbital-frigate-page .hero-cta .event-launch::after {
  content: none;
  display: none;
  animation: none;
}
body.orbital-frigate-page .hero-cta .event-launch:hover {
  border-color: #ff999c;
  background: #ff5056;
  color: #261014;
  box-shadow: none;
  transform: none;
}
body.orbital-frigate-page .hero-cta .event-launch:active {
  background: #e93038;
  transform: none;
}
body.orbital-frigate-page .hero-cta .event-launch:focus-visible {
  outline: 3px solid #f5e8d4;
  outline-offset: 4px;
}
body.orbital-frigate-page .hero-cta .event-launch .event-launch-copy {
  min-width: 0;
}
body.orbital-frigate-page .hero-cta .event-launch .event-launch-copy strong,
body.orbital-frigate-page .hero-cta .event-launch .event-launch-copy small,
body.orbital-frigate-page .hero-cta .event-launch .event-launch-arrow {
  color: #261014;
  text-shadow: none;
}
body.orbital-frigate-page .hero-cta .event-launch .event-launch-badge {
  border: 1px solid #7d1923;
  border-radius: 0;
  background: #30151c;
  color: #fce8df;
  box-shadow: none;
  text-shadow: none;
  animation: none;
  font-size: clamp(.65rem, 1.1vw, .86rem);
}
@media (max-width: 480px) {
  body.orbital-frigate-page .hero-copy > .bunker-entry {
    min-height: 164px;
    gap: 10px;
    padding-inline: 16px;
  }
  body.orbital-frigate-page .hero-copy > .bunker-entry .bunker-entry__copy {
    max-width: 66%;
  }
  body.orbital-frigate-page .hero-copy > .bunker-entry .bunker-entry__title {
    font-size: clamp(.85rem, 3.6vw, 1.1rem);
    letter-spacing: 0;
  }
  body.orbital-frigate-page .hero-cta .event-launch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
  }
  body.orbital-frigate-page .hero-cta .event-launch .event-launch-badge {
    grid-column: 1;
    justify-self: start;
    padding: 5px 8px;
    font-size: .62rem;
  }
  body.orbital-frigate-page .hero-cta .event-launch .event-launch-arrow {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}
@media (forced-colors: active) {
  body.orbital-frigate-page .hero-copy > .bunker-entry {
    background: LinkText;
  }
  body.orbital-frigate-page .hero-copy > .bunker-entry::before {
    background: Canvas;
  }
  body.orbital-frigate-page .hero-copy > .bunker-entry .bunker-entry__label,
  body.orbital-frigate-page .hero-copy > .bunker-entry .bunker-entry__title,
  body.orbital-frigate-page .hero-copy > .bunker-entry .bunker-entry__arrow,
  body.orbital-frigate-page .hero-cta .event-launch .event-launch-copy strong,
  body.orbital-frigate-page .hero-cta .event-launch .event-launch-copy small,
  body.orbital-frigate-page .hero-cta .event-launch .event-launch-arrow,
  body.orbital-frigate-page .hero-cta .event-launch .event-launch-badge {
    color: LinkText;
  }
  body.orbital-frigate-page .hero-copy > .bunker-entry:focus-visible,
  body.orbital-frigate-page .hero-cta .event-launch:focus-visible {
    outline-color: Highlight;
  }
}
