/* =========================================================
   SYNDICATE - Modern Noir Design System
   Mobile-First Responsive Stylesheet
   ========================================================= */

:root {
  --bg-canvas: #0F1012;
  --bg-surface: #16181C;
  --bg-card: #1C1E24;
  --bg-card-hover: #262931;
  
  --border-subtle: #2A2D35;
  --border-focus: #404552;
  
  --text-primary: #F4F4F6;
  --text-muted: #8A8F98;
  --text-dim: #555A64;
  
  --color-team-a: #8B5CF6;
  --color-team-a-border: #A78BFA;
  --color-team-a-bg: rgba(139, 92, 246, 0.15);
  
  --color-team-b: #2563EB;
  --color-team-b-border: #3B82F6;
  --color-team-b-bg: rgba(37, 99, 235, 0.15);
  
  --font-mono: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'SF Mono', 'Courier New', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-glow-a: 0 0 16px rgba(139, 92, 246, 0.4);
  --shadow-glow-b: 0 0 16px rgba(37, 99, 235, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-mono);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   Procedural CRT Scanline & Grain Overlay
   --------------------------------------------------------- */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 998;
  opacity: 0.08;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.5) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 6px 100%;
}

/* ---------------------------------------------------------
   Header Bar
   --------------------------------------------------------- */
.app-header {
  height: 56px;
  background: rgba(22, 24, 28, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Obsidian Syndicate Glowing Header */
.app-header.team-a {
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.55) 0%, rgba(22, 16, 34, 0.95) 50%, rgba(88, 28, 135, 0.45) 100%);
  border-bottom: 2px solid #8B5CF6;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

/* Cobalt Syndicate Glowing Header */
.app-header.team-b {
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.55) 0%, rgba(14, 22, 38, 0.95) 50%, rgba(30, 58, 138, 0.45) 100%);
  border-bottom: 2px solid #3B82F6;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-crest {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.team-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.team-badge.team-a {
  color: #FFFFFF;
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.team-badge.team-b {
  color: #FFFFFF;
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.25);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.wordmark {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

@media (max-width: 580px) {
  .header-center {
    display: none;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.icon-btn:hover, .icon-btn:active {
  color: var(--text-primary);
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------------------------------------------------------
   Main Container
   --------------------------------------------------------- */
.main-content {
  flex: 1;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------------
   Screen 2: Syndicate Assignment Screen
   --------------------------------------------------------- */
.screen-assignment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 16px 0;
  animation: fadeIn 0.3s ease;
}

.assignment-wrap {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 12px;
}

.oscilloscope-wrap {
  width: 100%;
  max-width: 360px;
  height: 140px;
  background: #090A0D;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 0 auto 18px auto;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

#oscilloscope-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.oscilloscope-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  pointer-events: none;
}

.frequency-status {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  margin-bottom: 4px;
}

.frequency-substatus {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.assignment-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-top: 20px;
  box-shadow: var(--shadow-card);
  animation: lockIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.team-a .assignment-card {
  border-top: 3px solid #8B5CF6;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.2);
}

body.team-b .assignment-card {
  border-top: 3px solid #3B82F6;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 99, 235, 0.2);
}

@keyframes lockIn {
  0% { transform: scale(0.88); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.assignment-crest {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px auto;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.22));
}

.assignment-heading {
  font-size: 1.28rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.assignment-subtext {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.assignment-callsign-section {
  margin-bottom: 22px;
  text-align: left;
}

.assignment-callsign-section .form-label {
  display: block;
  margin-bottom: 8px;
}

.callsign-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.callsign-input-group:focus-within {
  border-color: #8B5CF6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25);
}

body.team-b .callsign-input-group:focus-within {
  border-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.callsign-at-prefix {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #A78BFA;
  padding: 12px 0 12px 14px;
  user-select: none;
  pointer-events: none;
}

body.team-b .callsign-at-prefix {
  color: #93C5FD;
}

.callsign-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 10px;
}

.callsign-reroll-btn {
  background: transparent !important;
  border: none !important;
  border-left: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  font-size: 1.15rem;
  padding: 10px 14px !important;
  cursor: pointer;
  transition: background 0.15s;
}

.callsign-reroll-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.assignment-error-text {
  color: var(--accent-red);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 8px;
  line-height: 1.4;
  display: none;
}

.input-error {
  border-color: var(--accent-red) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
}

.assignment-start-btn {
  width: 100%;
  font-size: 1rem;
  padding: 14px 20px;
}

/* ---------------------------------------------------------
   Act 0.5: Operative Briefing (Inline Story Screen)
   --------------------------------------------------------- */
.briefing-screen {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  margin: auto 0;
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.3s ease;
}

.briefing-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.briefing-crest {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

.briefing-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.briefing-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.briefing-story {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #D1D5DB;
  margin-bottom: 20px;
}

.briefing-phases {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.briefing-phase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.phase-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.phase-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.phase-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.briefing-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bypass-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.bypass-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-focus);
  border-radius: 3px;
  cursor: pointer;
  display: grid;
  place-content: center;
}

.bypass-checkbox:checked {
  background: var(--text-primary);
}

.bypass-checkbox:checked::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--bg-canvas);
  border-bottom: 2px solid var(--bg-canvas);
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ---------------------------------------------------------
   Phase Header Row (Single-line with question box)
   --------------------------------------------------------- */
.phase-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.phase-header-row .phase-pill {
  margin: 0;
  padding: 7px 18px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.phase-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.phase-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease;
}

body.team-a .phase-pill {
  border-color: rgba(139, 92, 246, 0.35);
}

body.team-b .phase-pill {
  border-color: rgba(37, 99, 235, 0.38);
}

.phase-pill .phase-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-team-a-border);
  box-shadow: 0 0 8px var(--color-team-a-border);
  display: inline-block;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

body.team-b .phase-pill .phase-dot {
  background: var(--color-team-b-border);
  box-shadow: 0 0 8px var(--color-team-b-border);
}

.phase-help-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.phase-help-btn:hover, .phase-help-btn:active {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------
   The 10-Asset Card Grid
   --------------------------------------------------------- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 480px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.15s ease, background-color 0.2s ease;
}

.asset-card:active {
  transform: scale(0.97);
}

.asset-word {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-align: center;
  word-break: break-word;
  transition: color 0.2s ease;
}

.asset-status-pip {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}

.wire-view .asset-card {
  min-height: 68px;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  position: relative;
  user-select: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

/* Wire View Styling (5 friendly clickable, 5 rival muted) */
.wire-view .asset-card.friendly {
  border-width: 2px;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.wire-view .asset-card.friendly:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.wire-view .asset-card.friendly:active {
  transform: scale(0.97);
}

.wire-view .asset-card.friendly.team-a {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(139, 92, 246, 0.12);
}

.wire-view .asset-card.friendly.team-a .asset-word {
  color: #FFFFFF;
}

.wire-view .asset-card.friendly.team-a.is-wire-target {
  border-color: #A78BFA !important;
  background: rgba(139, 92, 246, 0.32) !important;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.55) !important;
  transform: translateY(-2px);
}

.wire-view .asset-card.friendly.team-b {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(37, 99, 235, 0.12);
}

.wire-view .asset-card.friendly.team-b .asset-word {
  color: #FFFFFF;
}

.wire-view .asset-card.friendly.team-b.is-wire-target {
  border-color: #60A5FA !important;
  background: rgba(37, 99, 235, 0.32) !important;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.55) !important;
  transform: translateY(-2px);
}

.wire-view .asset-card.rival {
  opacity: 0.65;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: not-allowed;
  pointer-events: auto;
}

.wire-view .asset-card.rival .asset-word {
  color: var(--text-muted);
}

/* Tactical Target Badges on Wire Cards (Top-right pill on selected assets) */
.wire-target-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
  transition: all 0.15s ease;
}

body.team-a .wire-target-badge.target {
  background: #8B5CF6;
  color: #FFFFFF;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

body.team-b .wire-target-badge.target {
  background: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

.wire-assets-count-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px 0 10px;
}

/* Board Header Tags */
.board-header-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.board-header-tag .tag-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--text-primary);
  font-weight: 700;
}

.board-help-trigger {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.board-help-trigger:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.board-help-trigger .help-icon {
  font-size: 0.8rem;
  color: var(--color-gold);
}

/* Selection & Confirm/Clear Overlay in Intercept */
.intercept-view .asset-card {
  min-height: 72px;
  height: auto;
  position: relative;
}

.intercept-view .asset-card.selected-for-guess {
  border: 2px solid #FBBF24 !important;
  background: rgba(251, 191, 36, 0.08) !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.35);
  transform: translateY(-1px);
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intercept-view .asset-card.selected-for-guess .asset-word {
  font-size: 0.86rem;
  color: #FBBF24;
  margin-bottom: 2px;
}

.card-action-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  margin-top: 1px;
}

.card-action-btn {
  flex: 1;
  height: 26px;
  font-size: 1.05rem;
  font-weight: 900;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, filter 0.1s ease;
  line-height: 1;
}

.card-action-btn:active {
  transform: scale(0.96);
}

.card-action-btn.confirm {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #22C55E;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}

.card-action-btn.confirm:hover {
  background: rgba(34, 197, 94, 0.35);
  border-color: #22C55E;
  color: #86EFAC;
}

.card-action-btn.clear {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #EF4444;
}

.card-action-btn.clear:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: #EF4444;
  color: #FCA5A5;
}

.intercept-feedback-banner {
  display: none !important;
}

/* Intercept View Styling (Bone White unrevealed cards) */
.intercept-view .asset-card.unrevealed {
  background: #20232A;
  border-color: #313540;
}

.intercept-view .asset-card.unrevealed:hover {
  background: #282C36;
  border-color: #4A5060;
}

.intercept-view .asset-card.revealed-friendly {
  animation: inkStamp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.intercept-view .asset-card.revealed-friendly.revealed-a {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.38), rgba(76, 29, 149, 0.75));
  border: 2px solid #A78BFA;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

.intercept-view .asset-card.revealed-friendly.revealed-b {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(30, 58, 138, 0.78));
  border: 2px solid #60A5FA;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.4);
}

.intercept-view .asset-card.revealed-friendly .asset-word {
  color: #FFFFFF;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Revealed Rival Card (Opponent Penalty / Turn Over) */
.intercept-view .asset-card.revealed-rival {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(153, 27, 27, 0.55));
  border: 2px solid #EF4444;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.35);
  animation: inkStamp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.intercept-view .asset-card.revealed-rival .asset-word {
  color: #FCA5A5;
  text-decoration: line-through;
  text-decoration-color: #EF4444;
  font-weight: 700;
  opacity: 0.85;
}

/* Status Pill Badge on Revealed Cards */
.asset-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
}

.asset-badge.revealed-friendly {
  background: #22C55E;
  color: #000000;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.asset-badge.revealed-rival {
  background: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

@keyframes inkStamp {
  0% { transform: scale(1.15) rotate(-1.5deg); opacity: 0.7; }
  60% { transform: scale(0.96) rotate(0.5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ---------------------------------------------------------
   Control Panels (The Wire & The Intercept)
   --------------------------------------------------------- */
.panel-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

/* Transmission Card (Screen 3: Intercept Top Panel) */
.transmission-card {
  background: linear-gradient(180deg, #161B27 0%, #0D1018 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 3px solid #8B5CF6;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.team-b .transmission-card {
  border-top: 3px solid #3B82F6;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(37, 99, 235, 0.12);
}

.transmission-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.transmission-console-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #C4B5FD;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

body.team-b .transmission-console-tag {
  color: #93C5FD;
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.38);
}

.transmission-intro {
  font-size: 0.84rem;
  color: #94A3B8;
  line-height: 1.4;
  text-align: center;
}

.transmission-author {
  color: #E2E8F0;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

body.team-a .transmission-author {
  background: rgba(139, 92, 246, 0.15);
  color: #DDD6FE;
}

body.team-b .transmission-author {
  background: rgba(37, 99, 235, 0.15);
  color: #BFDBFE;
}

.transmission-directive-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: center;
}

.directive-text {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.directive-assets-badge {
  font-size: 0.84rem;
  font-weight: 700;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 12px;
  border-radius: 999px;
}

.directive-assets-badge strong {
  color: #FFFFFF;
  font-size: 0.95rem;
}

.transmission-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 24px;
  font-family: var(--font-mono);
}

.transmission-secured-status {
  color: #CBD5E1;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.transmission-secured-status strong {
  color: #34D399;
}

.transmission-secured-status.failed {
  color: #EF4444;
  font-weight: 700;
}

.transmission-secured-status.success {
  color: #34D399;
  font-weight: 700;
}

.intercept-field-notice {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #94A3B8;
  margin: 14px 0 10px;
  line-height: 1.4;
}

/* Outgoing Wire Panel (Screen 4: Wire Top Panel) */
.wire-panel-card {
  background: linear-gradient(180deg, #161B27 0%, #0D1018 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 3px solid #8B5CF6;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.team-b .wire-panel-card {
  border-top: 3px solid #3B82F6;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(37, 99, 235, 0.12);
}

.wire-panel-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wire-console-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #C4B5FD;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

body.team-b .wire-console-tag {
  color: #93C5FD;
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.38);
}

.wire-instruction {
  font-size: 0.84rem;
  color: #94A3B8;
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.45;
}

.wire-form-block {
  margin-bottom: 0;
}

/* Section Header Divider (Between Top Card and Bottom Grid) */
.grid-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  padding-bottom: 6px;
}

.grid-section-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #CBD5E1;
  text-transform: uppercase;
}

.grid-section-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wire-input-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.wire-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wire-field-wrap.word-wrap {
  flex: 1;
  min-width: 0;
}

.wire-field-wrap.count-wrap {
  width: 90px;
  flex-shrink: 0;
}

.wire-field-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wire-word-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  box-sizing: border-box;
  font-size: 0.95rem;
}

.wire-count-select {
  width: 100%;
  height: 44px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  padding: 0 8px;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239CA3AF%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 22px;
  transition: border-color 0.15s ease;
}

.wire-count-select:invalid,
.wire-count-select option[value=""] {
  color: var(--text-muted);
}

.wire-count-select:focus {
  border-color: var(--text-muted);
}

.wire-submit-btn {
  width: 100%;
  height: 46px;
  font-size: 0.92rem;
  font-weight: 800;
}

.btn-primary:disabled,
.wire-submit-btn:disabled {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #64748B !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.wire-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input-row {
  display: flex;
  gap: 8px;
}

.text-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 10px 12px;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color 0.15s ease;
}

.text-input:focus {
  border-color: var(--text-muted);
  background: var(--bg-card-hover);
}

.count-selector {
  display: flex;
  gap: 6px;
}

.count-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.count-btn.active {
  background: var(--text-primary);
  color: var(--bg-canvas);
  border-color: var(--text-primary);
}

/* Username input with reroll */
.username-row {
  display: flex;
  gap: 8px;
}

.username-input {
  flex: 1;
  text-transform: none;
}

/* Primary Action Buttons */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-canvas);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: transform 0.1s ease, background-color 0.15s ease;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

/* Error Banner */
.error-banner {
  display: none;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid var(--color-team-a-border);
  color: #FCA5A5;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

/* ---------------------------------------------------------
   Act 3: Debrief & Live Scores
   --------------------------------------------------------- */
.debrief-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.debrief-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Tug of war meter */
.faction-war-container {
  margin-bottom: 20px;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.tug-bar-wrap {
  height: 14px;
  background: #111317;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  overflow: hidden;
  display: flex;
}

.tug-fill-a {
  height: 100%;
  background: var(--color-team-a);
  transition: width 0.5s ease;
}

.tug-fill-b {
  height: 100%;
  background: var(--color-team-b);
  transition: width 0.5s ease;
}

/* Share Summary Box */
.share-dossier-box {
  background: var(--bg-card);
  border: 1px dashed var(--border-focus);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.85rem;
  color: #D1D5DB;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* ---------------------------------------------------------
   Modals & Info Dialog
   --------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.modal-dismiss-btn {
  width: 100%;
  margin-top: 20px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .modal-backdrop {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background: #0D0F14;
  }

  .modal-content {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 16px)) 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    box-shadow: none;
  }

  .modal-close {
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------
   Wire Dispatched Card & Status Badges
   --------------------------------------------------------- */
.wire-submitted-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
  animation: fadeIn 0.25s ease-out;
}

.wire-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.wire-card-tag {
  color: var(--text-primary);
  font-weight: 700;
}

.wire-card-directive {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 14px 0;
}

.wire-status-badge {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 10px;
}

.wire-status-badge.calibrating {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.wire-status-badge.direct-hit,
.wire-status-badge.direct_hit {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22C55E;
  color: #22C55E;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.wire-status-badge.operational {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid #8B5CF6;
  color: #C4B5FD;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

.wire-status-badge.compromised {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #EF4444;
}

.wire-status-detail {
  font-size: 0.8rem;
  color: #94A3B8;
  text-align: center;
  line-height: 1.45;
  margin-top: 8px;
  font-family: var(--font-mono);
}

/* Example Callout Box in Explain Screens */
.example-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #8B5CF6;
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 8px;
  font-size: 0.82rem;
  color: #E2E8F0;
  line-height: 1.45;
}

body.team-b .example-box {
  border-left-color: #3B82F6;
}

.example-box strong {
  color: #FFFFFF;
}

/* Initial Landing Screen */
.landing-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(85vh - 40px);
  text-align: center;
  padding: 30px 16px;
  animation: fadeIn 0.4s ease;
}

.landing-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.landing-emblem img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.45));
}

.landing-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F4F4F6;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
  margin-bottom: 12px;
  line-height: 1.1;
}

.landing-mission-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  margin-top: -2px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

.landing-teaser {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 26px;
}

.landing-factions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.landing-factions-vs {
  color: #CBD5E1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.95;
}

.landing-faction-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.landing-faction-tag.obsidian {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid #8B5CF6;
  color: #C4B5FD;
}

.landing-faction-tag.cobalt {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid #2563EB;
  color: #93C5FD;
}

.landing-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 320px;
}

.landing-how-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
  padding: 6px 12px;
}

.landing-how-link:hover {
  color: var(--text-primary);
}

/* ---------------------------------------------------------
   4-Screen Architecture: Title, Intercept, Wire, Briefing
   --------------------------------------------------------- */
.game-screen {
  animation: fadeIn 0.3s ease-out;
  width: 100%;
}

.screen-title {
  min-height: calc(85vh - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 16px;
}

.screen-intercept,
.screen-wire,
.screen-briefing {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 24px;
}

/* Standalone Briefing Final Screen */
.briefing-final-header {
  text-align: center;
  margin-bottom: 20px;
}

.briefing-final-crest {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.4));
}

body.team-b .briefing-final-crest {
  filter: drop-shadow(0 0 16px rgba(37, 99, 235, 0.45));
}

.briefing-final-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F4F4F6;
  margin-bottom: 6px;
}

.briefing-final-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.share-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--text-primary);
  margin-bottom: 16px;
  user-select: all;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.share-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.share-actions-row #copy-btn {
  min-width: 108px;
  text-align: center;
  justify-content: center;
}
