/* Desktop-Only Blocker & Access Denied Screen */
#mobile-blocker, #access-denied {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    linear-gradient(rgba(10, 12, 14, 0.84), rgba(6, 7, 9, 0.94)),
    url("../assets/img/bg-portal.png") center/cover no-repeat;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
#access-denied { z-index: 9500; }
#mobile-blocker.visible, #access-denied.visible { display: flex; }

.blocker-card {
  max-width: 580px;
  background: rgba(20, 22, 26, 0.96);
  border: 2px solid var(--crimson);
  border-radius: 3px;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.blocker-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(112, 24, 24, 0.35);
  border: 1px solid var(--crimson);
  color: #e69292;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.6px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.blocker-card h1 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #f0f2f4;
  letter-spacing: 0.6px;
}
.blocker-card p {
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 14px;
  margin: 8px 0;
}
.blocker-diag {
  margin-top: 16px;
  padding: 12px;
  background: #0b0d10;
  border: 1px solid var(--border-steel);
  border-radius: 3px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.85);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
}
.blocker-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Intro Briefing & Portal Screen (Photorealistic Bunker Corridor Backdrop) */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  background:
    linear-gradient(180deg, rgba(10, 12, 14, 0.68) 0%, rgba(8, 10, 12, 0.86) 100%),
    url("../assets/img/bg-portal.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.dossier-frame {
  width: min(980px, 100%);
  background: rgba(20, 22, 26, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-bright);
  border-radius: 3px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.dossier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  background: linear-gradient(180deg, #272b31 0%, #1c1f24 100%);
  border-bottom: 1px solid #0b0d10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.classified-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  color: #d66565;
  border: 2px solid var(--crimson);
  background: rgba(130, 28, 28, 0.16);
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: 800;
  transform: rotate(-0.8deg);
}
.dossier-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dossier-body { padding: 24px 28px; }
.title-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-steel);
}
.title-block h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0.8px;
  color: #f0f2f4;
}
.title-block .subtitle {
  margin-top: 5px;
  font-size: 13px;
  color: var(--cyan);
  font-family: var(--font-mono);
}
.ep-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 3px;
  background: #1b2220;
  border: 1px solid var(--cyan);
  color: #bfd6cf;
  white-space: nowrap;
}
.briefing-terminal {
  background: #0d1013;
  border: 1px solid var(--border-steel);
  border-radius: 3px;
  padding: 18px 20px;
  min-height: 220px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.68;
  color: #d0d7dc;
  position: relative;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.85);
}
.briefing-terminal p { margin: 0 0 11px; }
.briefing-terminal .hl-cyan { color: #a3cbc0; font-weight: 600; }
.briefing-terminal .hl-amber { color: #ddb165; font-weight: 600; }
.briefing-terminal .hl-red { color: #df7474; font-weight: 600; }
.briefing-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.spec-box {
  background: linear-gradient(180deg, #1b1e23 0%, #13161a 100%);
  border: 1px solid var(--border-steel);
  border-radius: 3px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.spec-box .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.spec-box .v {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #eef1f4;
}
.dossier-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dossier-actions .left-btns, .dossier-actions .right-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Victory Screen (victoire, ep2-victoire, ep3-fin) */
#victory-screen {
  position: fixed;
  inset: 0;
  z-index: 700;
  background:
    linear-gradient(180deg, rgba(10, 12, 14, 0.76) 0%, rgba(7, 8, 10, 0.9) 100%),
    url("../assets/img/bg-portal.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.victory-card {
  width: min(880px, 100%);
  background: rgba(21, 23, 27, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--cyan);
  border-radius: 3px;
  padding: 28px 32px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.liaison-box {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 14px;
  margin: 18px 0;
}
.code-panel {
  background: #0d1013;
  border: 1px solid var(--border-bright);
  border-radius: 3px;
  padding: 14px 16px;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.8);
}
.code-panel .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.code-panel .big-code {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 2px;
  margin: 6px 0;
  word-break: break-all;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.stat-tile {
  background: linear-gradient(180deg, #1b1e23 0%, #13161a 100%);
  border: 1px solid var(--border-steel);
  border-radius: 3px;
  padding: 10px;
  text-align: center;
}
.stat-tile .sv { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: #f0f2f4; }
.stat-tile .sk { font-size: 11px; color: var(--text-dim); margin-top: 3px; }

/* Portal Account & Episode Launcher (index.html) */
.portal-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.25fr;
  gap: 18px;
  margin-top: 14px;
}
.portal-card {
  background: rgba(18, 20, 24, 0.88);
  border: 1px solid var(--border-steel);
  border-radius: 3px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.portal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.portal-tabs button.active {
  border-color: var(--cyan);
  background: linear-gradient(180deg, #2a4740 0%, #1d322d 100%);
  color: #f0f4f3;
}
.portal-telemetry {
  margin-top: auto;
  padding-top: 14px;
}
.telemetry-box {
  background: #0d1013;
  border: 1px solid var(--border-steel);
  border-radius: 3px;
  padding: 11px 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text-dim);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.78);
}
.episode-card {
  background: linear-gradient(180deg, #1d2025 0%, #15181c 100%);
  border: 1px solid var(--border-steel);
  border-radius: 3px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.episode-card:last-child { margin-bottom: 0; }
.episode-card:hover {
  border-color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.45);
}
.ep-card-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  align-items: center;
}
.ep-thumb {
  width: 118px;
  height: 78px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border-bright);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  filter: contrast(1.06) brightness(0.92);
  display: block;
}
.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 3px;
  background: #1b2220;
  border: 1px solid var(--border-bright);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--cyan);
  white-space: nowrap;
}
.account-pill.gm {
  border-color: #a95c78;
  color: #e6a8be;
  background: rgba(94, 34, 57, 0.28);
}
