/* ============================================================
   SITHEAN — foundry.css
   Styles for foundry.html — the LUNAR FOUNDRY SIMULATION deck.

   G1 (2026-11-25): station-chrome wrapper around the owner's
   game "Moonbound Foundry", which runs isolated inside an
   iframe (html/games/moonbound.html) so its position:fixed UI
   can never escape into the site chrome. This wrapper is 100%
   station palette + shared components; the GAME inside the
   frame keeps its own industrial art direction (sanctioned
   exception, DESIGN-SYSTEM.md §2).

   CRT decision: the scanline/vignette layer stays ON for this
   page. It is subtle (0.035 alpha), pointer-events:none, and
   suits the lunar-foundry phosphor vibe — the iframe content
   remains fully interactive beneath it.
============================================================ */

/* ---- intro ---- */
.fbIntro {
  font-size: 13px;
  color: #9988bb;
  line-height: 1.85;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(0,0,0,0.3);
  border-left: 3px solid #440066;
}

/* ---- briefing panel (terminal chrome) ---- */
.fbBrief {
  background: rgba(0,0,0,0.65);
  border: 1px solid #440066;
  overflow: hidden;
  margin-bottom: 24px;
}

.fbBriefHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 14px;
  background: rgba(50,0,80,0.7);
  border-bottom: 1px solid #440066;
  font-size: 10px;
  letter-spacing: 2px;
  color: #9977cc;
}

.fbBriefTitle {
  color: #d4c8ff;
  letter-spacing: 2.5px;
}

.fbBriefBody { padding: 14px 18px; }

.fbBriefBody p {
  font-size: 12px;
  color: #9988bb;
  line-height: 1.9;
  margin-bottom: 12px;
}

/* mission arc — numbered terminal steps */
.fbArc {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.fbArc li {
  display: flex;
  gap: 12px;
  padding: 7px 10px;
  border-bottom: 1px solid #1e0030;
  color: #b8adcc;
  line-height: 1.7;
}

.fbArc li:last-child { border-bottom: none; }

.fbArcStep {
  flex-shrink: 0;
  color: #7a00aa;
  letter-spacing: 1px;
}

.fbArc li strong { color: #cc99ff; font-weight: normal; }

/* ---- controls manifest ---- */
.fbCtlGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 20px 0;
}

.fbCtl {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.45);
  border: 1px solid #330044;
  font-size: 11px;
  color: #9988bb;
  letter-spacing: 0.5px;
}

.fbKey {
  flex-shrink: 0;
  min-width: 64px;
  text-align: center;
  padding: 3px 8px;
  background: rgba(0,0,0,0.6);
  border: 1px solid #5500aa;
  color: #d4c8ff;
  font-size: 10px;
  letter-spacing: 1px;
}

/* ---- launch deck ---- */
.fbDeck {
  background: rgba(0,0,0,0.7);
  border: 1px solid #5500aa;
  overflow: hidden;
  margin-bottom: 24px;
}

.fbDeckHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: rgba(40,0,70,0.8);
  border-bottom: 1px solid #440066;
  font-size: 10px;
  letter-spacing: 2px;
}

.fbDeckHeaderLeft {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d4c8ff;
}

.fbDeckHeaderRight {
  color: #443366;
  font-size: 10px;
  letter-spacing: 1.5px;
  animation: blink 2s step-end infinite;
}

/* status dot — stDot semantics from style.css */
.fbDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #173322;
  border: 1px solid #1f4d33;
  flex-shrink: 0;
}

.fbDot.live {
  background: #44ff99;
  border-color: #44ff99;
  box-shadow: 0 0 6px #44ff99;
  animation: stPulse 1.6s ease-in-out infinite;
}

/* frame wrap: 16:9, standby cover until LAUNCH */
.fbFrameWrap {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 75vh;
  background: #000;
  overflow: hidden;
}

.fbStandby {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(80,0,120,0.06) 3px,
      rgba(80,0,120,0.06) 4px
    );
}

.fbStandbyGlyph {
  font-size: 40px;
  opacity: 0.55;
  text-shadow: 0 0 18px #9966ff;
}

.fbStandbyLabel {
  font-size: 12px;
  color: #d4c8ff;
  letter-spacing: 3px;
  text-shadow: 0 0 10px #aa66ff;
}

.fbStandbySub {
  font-size: 9px;
  color: #5544aa;
  letter-spacing: 1.5px;
  text-align: center;
  padding: 0 20px;
  line-height: 1.8;
}

.fbFrame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* deck footer: badge + controls */
.fbDeckFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(20,0,40,0.6);
  border-top: 1px solid #330044;
}

.fbDeckControls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fbLaunch {
  font-family: 'OCR A Std', monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #0a0014;
  background: linear-gradient(to bottom, #cc99ff, #9955dd);
  border: 1px solid #cc99ff;
  padding: 11px 26px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}

.fbLaunch:hover {
  box-shadow: 0 0 16px rgba(204,153,255,0.5);
  transform: translateY(-1px);
}

.fbPower {
  font-family: 'OCR A Std', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #ff4455;
  background: rgba(0,0,0,0.5);
  border: 1px solid #ff4455;
  padding: 10px 20px;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s;
}

.fbPower:hover {
  background: rgba(60,0,10,0.5);
  box-shadow: 0 0 12px rgba(255,68,85,0.35);
}

/* footer note */
.fbNote {
  font-size: 11px;
  color: #443366;
  letter-spacing: 1px;
  margin-top: -10px;
  margin-bottom: 20px;
}

/* ── mobile ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .fbCtlGrid { grid-template-columns: 1fr; }
  .fbDeckFooter { flex-direction: column; align-items: stretch; }
  .fbDeckControls { flex-direction: column; }
  .fbLaunch, .fbPower { width: 100%; }
}
