/* =====================================================
   THE MARK — expanded site shared chrome + page components
   (subpages: band, contracts, armory, doctrine, underground,
    press, theatre). Loaded alongside styles.css.
   ===================================================== */

/* ---------- Status bar nav (center) ---------- */
.mk-nav {
  pointer-events: auto;
  display: flex;
  gap: 18px;
  font-size: 10.5px;
  letter-spacing: .22em;
  overflow: hidden;
  white-space: nowrap;
}
.mk-nav a {
  color: var(--faint);
  text-decoration: none;
  transition: color .18s;
}
.mk-nav a:hover { color: var(--green); }
.mk-nav a.mk-nav-on { color: var(--green); text-shadow: 0 0 8px rgba(174, 202, 162, .5); }
@media (max-width: 860px) {
  .mk-nav { gap: 12px; font-size: 9px; }
  .mk-statusbar { padding: 0 44px; }
}
@media (max-width: 640px) {
  .mk-nav a.mk-nav-hidesm { display: none; }
}

/* ---------- Page scaffolding ---------- */
.xp-page { position: relative; }

.xp-hero {
  position: relative;
  min-height: 88vh;
  padding: 108px clamp(20px, 5vw, 90px) 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.xp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.xp-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #07060f 8%, rgba(7, 6, 15, .5) 55%, rgba(7, 6, 15, .2) 100%);
}
.xp-hero-fig {
  position: absolute;
  right: 2%;
  bottom: 0;
  height: 78vh;
  max-height: 760px;
  opacity: .16;
  filter: saturate(.6);
  pointer-events: none;
}
.xp-hero-content { position: relative; z-index: 3; max-width: 1080px; width: 100%; margin: 0 auto; }

.xp-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--violet);
  text-transform: uppercase;
}
.xp-eyebrow.xp-eyebrow-green { color: var(--green-dim); }
.xp-eyebrow.xp-eyebrow-amber { color: var(--amber); }
.xp-eyebrow-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--violet), transparent); max-width: 150px; }

.xp-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 9vw, 120px);
  line-height: .9;
  letter-spacing: .02em;
  color: var(--green);
  text-shadow: 0 0 40px rgba(174, 202, 162, .22);
}
.xp-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 2.1vw, 25px);
  color: var(--text);
  max-width: 640px;
  margin: 16px 0 6px;
}
.xp-sub {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 30px;
}

.xp-section { position: relative; padding: clamp(60px, 9vh, 110px) clamp(20px, 6vw, 120px); background: var(--bg); overflow: hidden; }
.xp-section-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.xp-section-inner { position: relative; z-index: 3; max-width: 1180px; margin: 0 auto; }
.xp-section-inner.xp-narrow { max-width: 1000px; }

.xp-kicker {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--green-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.xp-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 52px);
  color: var(--text);
  letter-spacing: .02em;
}

/* rise-in */
.xp-rise { opacity: 0; animation: xp-rise .6s ease forwards; animation-delay: var(--d, 0s); }
@keyframes xp-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Panels / cards ---------- */
.xp-panel {
  border: 1px solid rgba(124, 92, 255, .32);
  background: rgba(9, 7, 20, .8);
  backdrop-filter: blur(3px);
}
.xp-card {
  border: 1px solid rgba(124, 92, 255, .26);
  background: rgba(10, 8, 22, .6);
  padding: 20px;
  transition: border-color .18s;
}
.xp-card:hover { border-color: rgba(124, 92, 255, .6); }

/* ---------- CTA block (shared across pages) ---------- */
.xp-cta-panel {
  position: relative;
  z-index: 3;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--border-green);
  background: rgba(10, 8, 22, .74);
  backdrop-filter: blur(2px);
  padding: clamp(28px, 5vw, 52px);
}
.xp-cta-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
  color: var(--text);
  margin-bottom: 14px;
}

/* ---------- Footer (subpage variant) ---------- */
.xp-footer {
  position: relative;
  z-index: 3;
  padding: clamp(44px, 6vh, 72px) clamp(20px, 8vw, 120px) 56px;
  background: var(--bg);
  border-top: 1px solid rgba(124, 92, 255, .18);
}
.xp-footer-grid { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; align-items: flex-start; }
.xp-footer-cols { display: flex; gap: 52px; flex-wrap: wrap; }
.xp-footer-col-title { font-size: 10px; letter-spacing: .24em; color: var(--faint); text-transform: uppercase; margin-bottom: 14px; }
.xp-footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.xp-footer-links a { color: var(--green); text-decoration: none; transition: color .18s; }
.xp-footer-links a:hover { color: var(--green-bright); }
.xp-footer-legal {
  max-width: 1180px;
  margin: 42px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(124, 92, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--faint-2);
  text-transform: uppercase;
}

/* =====================================================
   BAND page
   ===================================================== */
.bd-console-top { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; border-bottom: 1px solid rgba(124, 92, 255, .22); }
@media (max-width: 700px) { .bd-console-top { grid-template-columns: 1fr; } }
.bd-readout { padding: 22px 24px; border-right: 1px solid rgba(124, 92, 255, .22); display: flex; flex-direction: column; gap: 16px; }
.bd-label { font-size: 10px; letter-spacing: .24em; color: var(--faint); text-transform: uppercase; margin-bottom: 6px; }
.bd-freq {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
  color: var(--green);
  text-shadow: 0 0 18px rgba(174, 202, 162, .4);
}
.bd-band { font-size: 11px; letter-spacing: .14em; color: var(--green-dim); margin-top: 6px; }
.bd-dial {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(174, 202, 162, .4);
  background: radial-gradient(circle at 50% 40%, rgba(124, 92, 255, .18), rgba(7, 6, 15, .9));
  cursor: pointer;
  position: relative;
  flex: none;
  transition: border-color .18s;
}
.bd-dial:hover { border-color: var(--green); }
.bd-dial-rot { position: absolute; inset: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.bd-dial-tick { position: absolute; top: 7px; left: 50%; width: 2px; height: 20px; margin-left: -1px; background: var(--green); box-shadow: 0 0 6px var(--green); }
.bd-dial-sm { width: 52px; height: 52px; border-color: rgba(124, 92, 255, .45); background: radial-gradient(circle at 50% 40%, rgba(124, 92, 255, .2), rgba(7, 6, 15, .9)); }
.bd-dial-sm .bd-dial-tick { top: 5px; height: 15px; background: var(--violet); box-shadow: 0 0 6px var(--violet); }
.bd-wave-wrap { position: relative; padding: 14px 18px; display: flex; flex-direction: column; }
#bd-wave { width: 100%; height: 96px; display: block; }
.bd-vu { display: flex; gap: 5px; align-items: flex-end; height: 24px; margin-top: 8px; }
.bd-vu span { flex: 1; height: 10%; background: linear-gradient(0deg, var(--violet), var(--green)); transition: height .06s; }
.bd-controls { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(124, 92, 255, .22); }
.bd-golive {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 14px 26px;
  background: var(--violet); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--violet-border-hover);
  cursor: pointer;
  box-shadow: 0 0 30px rgba(124, 92, 255, .4);
  transition: all .18s;
}
.bd-golive .bd-godot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
.bd-golive.bd-live { background: transparent; color: var(--green); border-color: rgba(174, 202, 162, .5); box-shadow: none; }
.bd-golive.bd-live .bd-godot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.bd-feed-wrap { padding: 14px 20px 18px; }
.bd-feedlabel { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font-size: 10px; letter-spacing: .24em; color: var(--green-dim); text-transform: uppercase; }
#bd-feed { height: 190px; overflow: hidden; font-size: 12.5px; line-height: 1.65; color: var(--muted-2); position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
#bd-feed > div { margin-bottom: 3px; animation: bd-feedin .35s ease; }
@keyframes bd-feedin { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes bd-eq { 0%, 100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }
.bd-roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 34px; }
.bd-card { display: flex; flex-direction: column; gap: 12px; }
.bd-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bd-tag { font-size: 10.5px; letter-spacing: .16em; color: var(--violet); }
.bd-type { font-size: 9.5px; letter-spacing: .14em; color: var(--faint); }
.bd-codename { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--green); letter-spacing: .04em; }
.bd-persona { font-size: 12.5px; line-height: 1.6; color: var(--body); flex: 1; }
.bd-playrow { display: flex; align-items: center; gap: 10px; }
.bd-play {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(174, 202, 162, .4);
  color: var(--green);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; transition: all .18s; flex: none;
}
.bd-play:hover { background: rgba(174, 202, 162, .1); border-color: var(--green); }
.bd-eq { display: flex; gap: 3px; align-items: flex-end; height: 20px; flex: 1; }
.bd-eq span { flex: 1; background: #4a4668; transform-origin: bottom; transition: background .2s; }
.bd-samp { min-height: 34px; font-size: 11.5px; line-height: 1.55; color: var(--green-dim); border-top: 1px solid rgba(124, 92, 255, .16); padding-top: 10px; }
.bd-more { border: 1px dashed rgba(174, 202, 162, .3); background: rgba(10, 8, 22, .35); padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.bd-rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2px; background: rgba(124, 92, 255, .2); border: 1px solid rgba(124, 92, 255, .28); }
.bd-rule { background: rgba(9, 7, 20, .82); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.bd-rule-n { font-size: 11px; letter-spacing: .2em; color: var(--violet); }
.bd-rule-t { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--green); letter-spacing: .03em; }
.bd-rule-b { font-size: 12.5px; line-height: 1.7; color: var(--body); }
.bd-incident { border: 1px solid rgba(124, 92, 255, .24); background: rgba(10, 8, 22, .55); padding: 20px 22px; }
.bd-incident-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.bd-redact { height: 9px; width: 130px; background: repeating-linear-gradient(90deg, #3a3658 0 10px, transparent 10px 14px); }
.bd-quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 2.2vw, 23px); line-height: 1.35; color: var(--text); }
.bd-counter { border: 1px solid rgba(216, 162, 74, .4); padding: 12px 18px; }

/* =====================================================
   CONTRACTS page
   ===================================================== */
.ct-tabs { display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid rgba(124, 92, 255, .28); position: relative; top: -30px; }
.ct-tab {
  cursor: pointer;
  border: 1px solid rgba(124, 92, 255, .24);
  border-bottom: none;
  background: rgba(10, 8, 22, .4);
  padding: 16px 22px;
  text-align: left;
  min-width: 210px;
  transition: all .18s;
  font-family: var(--font-mono);
}
.ct-tab-label { font-size: 10px; letter-spacing: .2em; color: var(--faint); text-transform: uppercase; margin-bottom: 6px; }
.ct-tab-sub { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .03em; color: var(--muted); }
.ct-tab.ct-on { background: rgba(124, 92, 255, .16); border-color: rgba(124, 92, 255, .7); }
.ct-tab.ct-on .ct-tab-label { color: var(--violet); }
.ct-tab.ct-on .ct-tab-sub { color: var(--green); }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ct-case {
  position: relative;
  border: 1px solid rgba(124, 92, 255, .26);
  background: rgba(10, 8, 22, .6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.ct-case:hover { border-color: rgba(124, 92, 255, .7); transform: translateY(-3px); }
.ct-case-art { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.ct-case-art > div {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .5s;
}
.ct-case:hover .ct-case-art > div { transform: scale(1.06); }
.ct-case-no {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; letter-spacing: .18em; color: var(--green);
  background: rgba(7, 6, 15, .7); padding: 4px 8px;
  border: 1px solid rgba(174, 202, 162, .3);
}
.ct-stamp {
  position: absolute; top: 10px; right: 10px;
  font-size: 9.5px; letter-spacing: .14em; color: var(--red);
  border: 1px solid rgba(255, 59, 59, .5); padding: 3px 7px;
  transform: rotate(4deg);
  background: rgba(7, 6, 15, .5);
}
.ct-case-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ct-case-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--green); letter-spacing: .03em; line-height: 1.05; }
.ct-case-hook { font-size: 12.5px; line-height: 1.65; color: var(--body); flex: 1; }
.ct-case-open { font-size: 10px; letter-spacing: .18em; color: var(--faint); text-transform: uppercase; border-top: 1px solid rgba(124, 92, 255, .16); padding-top: 11px; }
@keyframes ct-decrypt { from { background-position: 0 0; } to { background-position: 60px 0; } }
@keyframes ct-flicker { 0%, 100% { opacity: .5; } 50% { opacity: .85; } }
.ct-decryptbar {
  height: 10px;
  border: 1px solid rgba(124, 92, 255, .35);
  background: repeating-linear-gradient(90deg, rgba(124, 92, 255, .5) 0 12px, transparent 12px 24px);
  background-size: 60px 100%;
  animation: ct-decrypt 1.2s linear infinite;
  max-width: 420px;
}
.ct-noimg {
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(45deg, #141127 0 8px, #0d0b1e 8px 16px);
  display: flex; align-items: center; justify-content: center;
  animation: ct-flicker 2.4s ease infinite;
}
.ct-sealed {
  border: 1px solid rgba(255, 59, 59, .3);
  background: rgba(20, 8, 14, .5);
  padding: clamp(30px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ct-sealed::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(216, 162, 74, .09) 0 18px, transparent 18px 36px);
  pointer-events: none;
}
.ct-cast { border: 1px solid rgba(124, 92, 255, .28); background: rgba(9, 7, 20, .78); display: flex; flex-direction: column; }
.ct-cast-art { position: relative; aspect-ratio: 4/3; overflow: hidden; border-bottom: 1px solid rgba(124, 92, 255, .22); }
.ct-cast-role { position: absolute; bottom: 10px; left: 12px; font-size: 9.5px; letter-spacing: .16em; color: var(--violet); background: rgba(7, 6, 15, .7); padding: 3px 8px; }
.ct-quote { border-left: 2px solid var(--violet); padding-left: 14px; font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.ct-motif { border: 1px solid rgba(124, 92, 255, .24); background: rgba(10, 8, 22, .5); padding: 26px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* =====================================================
   ARMORY page
   ===================================================== */
.ak-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 30px; }
.ak-card { border: 1px solid rgba(124, 92, 255, .28); background: rgba(9, 7, 20, .7); display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.ak-card:hover { border-color: rgba(124, 92, 255, .65); transform: translateY(-3px); }
.ak-art { position: relative; overflow: hidden; border-bottom: 1px solid rgba(124, 92, 255, .22); }
.ak-art > div { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s; }
.ak-card:hover .ak-art > div { transform: scale(1.05); }
.ak-tag { position: absolute; top: 12px; left: 12px; font-size: 9.5px; letter-spacing: .18em; color: var(--green); background: rgba(7, 6, 15, .6); padding: 3px 7px; }
.ak-wins { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 12px 12px; text-align: center; font-size: 10px; letter-spacing: .2em; color: var(--green-bright); background: linear-gradient(0deg, rgba(7, 6, 15, .85), transparent); }
.ak-name { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--green); letter-spacing: .03em; line-height: 1; }
.ak-tagline { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--text); margin-top: 6px; }
.ak-specs { display: flex; flex-direction: column; gap: 1px; background: rgba(124, 92, 255, .16); border: 1px solid rgba(124, 92, 255, .2); }
.ak-spec { display: flex; justify-content: space-between; gap: 10px; background: rgba(9, 7, 20, .9); padding: 8px 12px; font-size: 11px; }
.ak-chip { font-size: 10px; letter-spacing: .1em; color: var(--green-dim); border: 1px solid rgba(126, 149, 118, .35); padding: 4px 8px; }
.ak-reticle { position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; }
.ak-reticle .ak-r-outer { position: absolute; inset: 0; border: 1px solid rgba(255, 59, 59, .5); border-radius: 50%; background: rgba(7, 6, 15, .4); }
.ak-reticle .ak-r-dot { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--red); box-shadow: 0 0 5px var(--red); animation: rk-fill var(--cycle, 1s) ease-in-out infinite; }
.ak-reticle .ak-r-ring { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 1px solid var(--red); animation: rk-ring var(--cycle, 1s) ease-in-out infinite; }
@keyframes rk-fill { 0%, 12% { opacity: 1; } 22%, 74% { opacity: 0; } 86%, 100% { opacity: 1; } }
@keyframes rk-ring { 0%, 12% { opacity: 0; transform: scale(.4); } 22%, 74% { opacity: 1; transform: scale(1); } 86%, 100% { opacity: 0; transform: scale(.4); } }
.ak-slot { border: 1px solid rgba(174, 202, 162, .4); padding: 20px 34px; min-width: 220px; }

/* =====================================================
   DOCTRINE page
   ===================================================== */
@keyframes dc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dc-manhunt {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 59, 59, 0); }
  50% { box-shadow: 0 0 26px rgba(255, 59, 59, .35); }
}
.dc-letters { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 1.2vw, 16px); margin-bottom: 22px; }
.dc-letter {
  cursor: pointer;
  border: 1px solid rgba(124, 92, 255, .22);
  background: rgba(10, 8, 22, .45);
  padding: clamp(14px, 3vw, 34px) 4px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all .2s;
  font-family: var(--font-mono);
}
.dc-letter .dc-L { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 8vw, 104px); line-height: .8; color: #4a4668; transition: all .2s; }
.dc-letter .dc-Lname { font-size: clamp(9px, 1.1vw, 12px); letter-spacing: .2em; color: var(--faint); text-transform: uppercase; }
.dc-letter.dc-on { border-color: rgba(124, 92, 255, .7); background: rgba(124, 92, 255, .14); }
.dc-letter.dc-on .dc-L { color: var(--green); text-shadow: 0 0 30px rgba(174, 202, 162, .45); }
.dc-letter.dc-on .dc-Lname { color: var(--green); }
.dc-panel { border: 1px solid rgba(124, 92, 255, .4); background: rgba(9, 7, 20, .82); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 280px; }
@media (max-width: 760px) { .dc-panel { grid-template-columns: 1fr; } }
.dc-panel-art { position: relative; overflow: hidden; border-left: 1px solid rgba(124, 92, 255, .25); min-height: 220px; }
.dc-panel-art > div { position: absolute; inset: 0; background-size: cover; background-position: center; animation: dc-fade .5s ease; }
.dc-fadein { animation: dc-fade .35s ease; }
.dc-ladder-row { display: flex; align-items: center; gap: 12px; }
.dc-ladder-bar { flex: 1; height: 26px; display: flex; align-items: center; padding: 0 12px; border: 1px solid; }
.dc-trigger { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(124, 92, 255, .24); background: rgba(10, 8, 22, .6); padding: 14px 16px; }
.dc-manhunt-box { border: 1px solid rgba(255, 59, 59, .5); background: rgba(20, 8, 14, .6); padding: 16px 18px; margin-top: 6px; animation: dc-manhunt 2.2s ease infinite; }
.dc-feature { position: relative; overflow: hidden; border: 1px solid rgba(124, 92, 255, .28); min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; }
.dc-key { border: 1px solid rgba(174, 202, 162, .4); background: rgba(9, 7, 20, .7); padding: 22px 30px; min-width: 190px; }

/* =====================================================
   UNDERGROUND terminal
   ===================================================== */
@keyframes ug-blink { 50% { opacity: 0; } }
.ug-wrap {
  position: fixed;
  inset: 34px 0 0 0;
  display: flex;
  flex-direction: column;
  padding: 18px clamp(14px, 3vw, 40px) 16px;
  background: #050409;
  z-index: 10;
}
.ug-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--green-dim);
  text-transform: uppercase;
  border: 1px solid rgba(174, 202, 162, .25);
  border-bottom: none;
  padding: 12px 18px;
  background: rgba(10, 8, 22, .5);
}
.ug-scroll {
  flex: 1;
  overflow-y: auto;
  border: 1px solid rgba(174, 202, 162, .25);
  background: rgba(7, 5, 12, .75);
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.75;
  scrollbar-width: thin;
  scrollbar-color: #3a3658 transparent;
}
.ug-scroll div { white-space: pre-wrap; word-break: break-word; }
.ug-promptrow {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(174, 202, 162, .25);
  border-top: none;
  background: rgba(10, 8, 22, .6);
  padding: 12px 18px;
}
.ug-promptrow .ug-prompt { color: #9a7cff; font-size: 14px; white-space: nowrap; }
#ug-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  caret-color: var(--green);
}
#ug-input::placeholder { color: #454264; }
.ug-cursor { width: 9px; height: 16px; background: var(--green); animation: ug-blink 1s steps(1) infinite; }
.ug-menu { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 12px; }
.ug-menu button {
  cursor: pointer;
  background: rgba(174, 202, 162, .06);
  border: 1px solid rgba(174, 202, 162, .28);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  padding: 8px 13px;
  transition: all .15s;
}
.ug-menu button:hover { background: rgba(174, 202, 162, .16); border-color: var(--green); color: var(--green-bright); }

/* ============================================================
   COMIC SPLASH TAKEOVER — first arrival, after the uplink.
   Iris slips the Contractor the 4281 access code. Panels are lit
   one at a time (a moving spotlight) synced to the Narrator/Iris VO.
   ============================================================ */
.mk-comic {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  background: #04030a;
  opacity: 0; transition: opacity .7s ease;
  overflow: hidden; cursor: default;
}
.mk-comic.mk-comic-on { opacity: 1; }
.mk-comic[hidden] { display: none; }
html.mk-comic-lock, html.mk-comic-lock body { overflow: hidden !important; }

.mk-comic-stage {
  position: relative;
  width: min(96vw, 170.6vh);   /* image is 2000x1126 (~1.776) → keep aspect so clip-path maps to panels */
  aspect-ratio: 2000 / 1126;
  box-shadow: 0 0 0 1px rgba(122,138,255,.18), 0 24px 90px rgba(0,0,0,.7);
  user-select: none;
}
.mk-comic-base, .mk-comic-spot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;
  display: block;
}
/* base layer — softly held back so the spotlit panel reads as "lit", but never
   so dark the rest of the comic (or the 4281 code) becomes unreadable */
.mk-comic-base {
  filter: brightness(.52) saturate(.82) contrast(1.02);
  transition: filter .8s ease;
}
/* full-brightness layer, revealed only inside the active panel via clip-path */
.mk-comic-spot {
  clip-path: inset(100% 100% 100% 100%);
  transition: clip-path .55s cubic-bezier(.4,0,.2,1), filter .55s ease;
  filter: drop-shadow(0 0 14px rgba(122,138,255,.28));
}
/* when the whole comic is lit (sequence done / reduced-motion / silent view) */
.mk-comic.mk-comic-lit .mk-comic-base { filter: brightness(1) saturate(1) contrast(1); }
.mk-comic.mk-comic-lit .mk-comic-spot { clip-path: inset(0 0 0 0); filter: none; }

.mk-comic-scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.16) 3px, rgba(0,0,0,0) 4px);
  mix-blend-mode: multiply; opacity: .5;
}

/* speaker tag that flips between NARRATOR / IRIS as each line plays */
.mk-comic-voice {
  position: absolute; left: 0; bottom: -30px; z-index: 4;
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .22em;
  color: #7a8aff; text-transform: uppercase; opacity: 0;
  transition: opacity .25s ease;
  text-shadow: 0 0 10px rgba(122,138,255,.5);
}
.mk-comic-voice.is-on { opacity: .95; }

/* prominent, centered call-to-action so nobody misses that the comic is voiced */
.mk-comic-sound {
  position: absolute; left: 50%; top: 4.5%; transform: translateX(-50%); z-index: 5;
  font-family: 'Space Mono', monospace; font-size: 14px; letter-spacing: .14em;
  color: #eaf0ff; text-transform: uppercase; white-space: nowrap;
  background: rgba(10,10,26,.82); border: 1px solid rgba(122,138,255,.6);
  padding: 11px 20px;
  pointer-events: none; opacity: 0; transition: opacity .4s ease;
  box-shadow: 0 0 26px rgba(122,138,255,.28);
  animation: mkComicReady 1.7s ease-in-out infinite;
}
.mk-comic-sound.is-on { opacity: 1; }
.mk-comic-stage { cursor: pointer; }
@media (max-width: 640px) { .mk-comic-sound { font-size: 11px; letter-spacing: .08em; padding: 9px 12px; } }

.mk-comic-go {
  position: absolute; right: 22px; bottom: 18px; z-index: 6;
  font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: #d8ddff;
  background: rgba(12,12,28,.72); border: 1px solid rgba(122,138,255,.4);
  padding: 11px 18px; cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s;
  animation: mkComicPulse 2.2s ease-in-out infinite;
}
.mk-comic-go:hover { background: rgba(122,138,255,.18); border-color: #7a8aff; color: #fff; box-shadow: 0 0 24px rgba(122,138,255,.3); }
.mk-comic-go.is-ready { animation: mkComicReady 1.6s ease-in-out infinite; border-color: #7a8aff; }

@keyframes mkComicPulse { 0%,100% { opacity: .62; } 50% { opacity: 1; } }
@keyframes mkComicReady {
  0%,100% { box-shadow: 0 0 0 0 rgba(122,138,255,0); }
  50%     { box-shadow: 0 0 26px 2px rgba(122,138,255,.45); }
}

@media (max-width: 640px) {
  .mk-comic-stage { width: 98vw; }
  .mk-comic-go { right: 12px; bottom: 12px; font-size: 11px; padding: 9px 13px; }
  .mk-comic-sound { left: 12px; bottom: 14px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-comic-go, .mk-comic-sound { animation: none; }
  .mk-comic-spot { transition: none; }
}

/* KNOWN FACTS — the Iris access-code exhibit (case-file photo reveal) */
.mk-faq-figure { margin: 14px 0 2px; }
.mk-faq-figure img {
  display: block; width: 100%; max-width: 500px;
  border: 1px solid rgba(122,138,255,.4); border-radius: 2px;
  box-shadow: 0 12px 44px rgba(0,0,0,.55);
}
.mk-faq-figure figcaption {
  margin-top: 9px; max-width: 500px;
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .07em;
  color: rgba(200,208,255,.62); text-transform: uppercase; line-height: 1.5;
}
