/* ============================================================
   CYBER KILL CHAIN · Stylesheet
   Design inspired by Linear.app & Apple.com
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #06060b;
  --bg-secondary: #0c0c14;
  --bg-surface: #111119;
  --bg-card: #16161f;
  --bg-elevated: #1c1c28;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text-primary: #ededf0;
  --text-secondary: #7e7e8f;
  --text-tertiary: #53535f;

  --accent: #00c8ff;
  --accent-dim: rgba(0, 200, 255, 0.15);
  --accent-purple: #7c5cfc;
  --accent-gradient: linear-gradient(135deg, #00c8ff 0%, #7c5cfc 100%);

  --danger: #ff4757;
  --success: #00e676;
  --warning: #ffb84d;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img, svg {
  display: block;
}

::selection {
  background: var(--accent-dim);
  color: var(--accent);
}

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Progress Bar --- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 6, 11, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-gradient);
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset;
}
.nav-logo-icon svg {
  display: block;
  overflow: visible;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.nav-link--cta {
  color: var(--bg-primary);
  background: var(--text-primary);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link--cta:hover {
  background: #fff;
  transform: translateY(-1px);
  color: var(--bg-primary);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Animated "global threat map" canvas — renders a dot-grid world,
   city pings, and attack-arc tracers. Sits above the grid-bg but
   below the glows + hero copy. Edges are feathered so the canvas
   melts into the page background instead of revealing a box. */
.hero-cyber-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, black 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, black 45%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-glow--1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
  opacity: 0.12;
}

.hero-glow--2 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  bottom: -100px;
  left: -100px;
  opacity: 0.10;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 200, 255, 0.2);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  animation: scroll-fade 2s ease-in-out infinite;
}

@keyframes scroll-fade {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* --- Sections --- */
.section {
  padding: 140px 0;
  position: relative;
}

.section--intro {
  border-bottom: 1px solid var(--border);
}

.section-label {
  position: relative;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 20px;
  padding-left: 18px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.6);
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.section-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 16px;
}

.section-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.section-body--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --- Intro Grid --- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-visual {
  display: flex;
  justify-content: center;
}

.intro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 340px;
}

.intro-card-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.intro-card-number {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.intro-card-label {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}

.intro-card-row--centered {
  justify-content: center;
}

.intro-card-number--large {
  font-size: 80px;
}

.intro-card-divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* --- Chain Diagram --- */
.section--chain {
  text-align: center;
}

.chain-diagram {
  margin-top: 64px;
}

.chain-track {
  position: relative;
  padding: 40px 0;
}

.chain-line {
  position: absolute;
  top: 50%;
  /* Endpoints sit exactly under node 1 and node 5 centers. With 5 equal-
     width nodes, those centers are at 10% and 90% of the track. */
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  transform: translateY(-14px);
  border-radius: 2px;
  overflow: hidden;
}

.chain-line-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.6s var(--ease-out);
}

.chain-nodes {
  display: flex;
  position: relative;
  z-index: 2;
}

.chain-node {
  /* Equal share of the row keeps node centers deterministic regardless
     of label length (so the chain-line fill formula stays accurate). */
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 4px;
  text-align: center;
  transition: transform 0.3s var(--ease-out);
}

.chain-node:hover {
  transform: translateY(-4px);
}

.chain-node-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.chain-node-ring span {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}

.chain-node:hover .chain-node-ring,
.chain-node.active .chain-node-ring {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim), inset 0 0 12px var(--accent-dim);
  background: rgba(0, 200, 255, 0.08);
}

.chain-node:hover .chain-node-ring span,
.chain-node.active .chain-node-ring span {
  color: var(--accent);
}

.chain-node-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}

.chain-node:hover .chain-node-label,
.chain-node.active .chain-node-label {
  color: var(--text-primary);
}

.chain-detail {
  margin-top: 40px;
  min-height: 120px;
}

.chain-detail-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  text-align: left;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: border-color 0.3s ease;
}

.chain-detail-inner:has(.chain-detail-phase) {
  border-color: var(--accent-dim);
}

.chain-detail-hint {
  color: var(--text-tertiary);
  font-size: 14px;
  text-align: center;
  width: 100%;
}

.chain-detail-phase {
  font-size: 48px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.chain-detail-text h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.chain-detail-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   SCENE SYSTEM · Interactive carousel demonstrations
   ============================================================ */
.section--phases {
  padding-top: 80px;
  padding-bottom: 120px;
  text-align: center;
}

/* --- Carousel shell --- */
.phases-carousel {
  margin-top: 56px;
  text-align: left;
}

.phases-tabs {
  display: flex;
  gap: 2px;
  padding: 0 8px;
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-bottom: none;
}
.phases-tabs::-webkit-scrollbar { display: none; }

.phases-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  position: relative;
  flex: 1 1 auto;
  justify-content: center;
  letter-spacing: 0.01em;
}

.phases-tab:hover { color: var(--text-secondary); }
.phases-tab.active { color: var(--text-primary); }
.phases-tab.completed { color: var(--success); }

.phases-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-elevated);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-tertiary);
}

.phases-tab.active .phases-tab-num {
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.35);
}
.phases-tab.completed .phases-tab-num {
  background: rgba(0, 230, 118, 0.15);
  color: var(--success);
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.35);
}
.phases-tab.completed.active .phases-tab-num {
  background: var(--success);
  color: #000;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.35);
}

.phases-tab-name {
  font-size: 13px;
  display: inline-block;
}

.phases-tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
  transition: left 0.5s var(--ease-out), width 0.5s var(--ease-out);
  pointer-events: none;
}

/* --- Viewport & slides --- */
.phases-viewport {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}

.phases-track {
  position: relative;
}

.phases-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 48px 44px 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.45s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s linear 0.5s;
  pointer-events: none;
}

.phases-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.55s var(--ease-out) 0.05s, transform 0.55s var(--ease-out) 0.05s;
  pointer-events: auto;
  z-index: 2;
}

.phases-slide.exit-left {
  transform: translateX(-24px);
}

/* --- Controls --- */
.phases-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.phases-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.phases-nav svg { transition: transform 0.2s ease; }

.phases-nav:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 200, 255, 0.1);
}

.phases-nav--prev:hover:not(:disabled) svg { transform: translateX(-2px); }
.phases-nav--next:hover:not(:disabled) svg { transform: translateX(2px); }

.phases-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.phases-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.phases-counter-current {
  font-size: 22px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.phases-counter-sep { opacity: 0.4; }

.phases-counter-total {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* --- Scene within slide --- */
.phases-slide .scene {
  padding: 0;
  max-width: none;
  margin: 0;
  border-bottom: none;
}

.scene {
  border-bottom: none;
}

.scene-label {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 16px;
}
.scene-num {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.scene-name {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.scene-aka {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: auto;
}

.scene-stage { perspective: 1200px; margin-top: 24px; }

/* --- Scene prompt (contextual narration) --- */
.scene-prompt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 8px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0));
  border-left: 2px solid var(--accent-dim);
  border-radius: 4px 8px 8px 4px;
}
.scene-prompt strong { color: var(--text-primary); font-weight: 600; }
.scene-prompt em { color: var(--accent); font-style: normal; font-weight: 600; }

/* --- Scene action toolbar --- */
.scene-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
}

.scene-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.scene-action-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 200, 255, 0.12);
}

.scene-action-btn.primary {
  background: var(--accent-gradient);
  color: #000;
  border-color: transparent;
}

.scene-action-btn.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 200, 255, 0.25);
  color: #000;
}

.scene-action-btn.done {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.4);
  color: var(--success);
  pointer-events: none;
}

.scene-action-btn.running {
  background: rgba(255, 184, 77, 0.08);
  border-color: rgba(255, 184, 77, 0.35);
  color: var(--warning);
  pointer-events: none;
}

.scene-action-btn.running::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,184,77,0.25);
  border-top-color: var(--warning);
  animation: btn-spin 0.8s linear infinite;
  margin-left: 2px;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.scene-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: var(--text-tertiary);
}

.scene-action-btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-tertiary);
}

.scene-action-btn--ghost:hover:not(:disabled) {
  border-color: var(--border-hover);
  color: var(--text-secondary);
  background: var(--bg-card);
  transform: none;
  box-shadow: none;
}

.scene-action-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  font-size: 10px;
  font-weight: 800;
}

.scene-action-btn:not(.primary) .scene-action-num {
  background: var(--bg-elevated);
  color: var(--text-tertiary);
}

.scene-action-btn.done .scene-action-num {
  background: rgba(0, 230, 118, 0.2);
  color: var(--success);
}

.scene-action-icon { font-size: 14px; line-height: 1; }

.scene-hint {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-left: auto;
  max-width: 340px;
  line-height: 1.5;
  text-align: right;
  transition: color 0.3s ease;
}

.scene-hint strong { color: var(--text-secondary); font-weight: 600; }
.scene-hint.success { color: var(--success); }
.scene-hint.success strong { color: var(--success); }

/* --- Shared Mock-up Window --- */
.mockup-window {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.mockup-window--terminal { background: #0a0a10; }

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.mockup-titlebar--dark { background: #0e0e16; }

.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }

.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mockup-lock { font-size: 10px; }

.mockup-body { padding: 0; min-height: 340px; position: relative; font-size: 13px; }

/* ============================================================
   RECON SCENE — LinkedIn-themed people search
   Layout: a Chrome browser window (containing LinkedIn) on the left,
   a separate terminal window (the attacker's scraper) on the right.
   Profile rows are non-interactive — clicking "Harvest Emails" runs
   theHarvester in the terminal which streams addresses into target_emails.txt.
   ============================================================ */
@keyframes caret-blink {
  50% { opacity: 0; }
}

/* ----- Two-window layout ----- */
.recon-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* ----- Chrome browser frame (wraps the LinkedIn app) ----- */
.recon-chrome {
  display: flex;
  flex-direction: column;
  background: #dee1e6; /* Chrome window chrome color */
  border: 1px solid #b0b3b8;
  border-radius: 10px 10px 8px 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.recon-chrome-titlebar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 12px 0;
  background: #dee1e6;
}
.recon-chrome-traffic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  flex-shrink: 0;
}
.recon-chrome-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.recon-chrome-dot--red { background: #ff5f57; }
.recon-chrome-dot--yellow { background: #febc2e; }
.recon-chrome-dot--green { background: #28c840; }
.recon-chrome-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.recon-chrome-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 8px;
  border-radius: 8px 8px 0 0;
  background: #ebeef1;
  color: #5f6368;
  font-size: 12px;
  font-weight: 500;
  max-width: 240px;
  min-width: 0;
}
.recon-chrome-tab--active {
  background: #fff;
  color: #202124;
}
.recon-chrome-tab-favicon {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: #0a66c2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.recon-chrome-tab-fav-in {
  font-style: italic;
  font-weight: 800;
  font-size: 9px;
  font-family: Helvetica, Arial, sans-serif;
}
.recon-chrome-tab-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recon-chrome-tab-close {
  font-size: 14px;
  line-height: 1;
  color: #5f6368;
  padding: 0 2px;
}
.recon-chrome-newtab {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #5f6368;
  border-radius: 4px;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.recon-chrome-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fff;
  border-bottom: 1px solid #e5e7ea;
}
.recon-chrome-navbtn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #5f6368;
  flex-shrink: 0;
}
.recon-chrome-navbtn--dim { color: #c4c7c8; }
.recon-chrome-omnibox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: #f1f3f4;
  border-radius: 999px;
  min-width: 0;
  font-size: 12px;
  color: #202124;
}
.recon-chrome-lock { color: #5f6368; flex-shrink: 0; display: inline-flex; }
.recon-chrome-url {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.recon-chrome-url-q { color: #1a73e8; font-weight: 500; }

/* ----- LinkedIn app (lives inside the Chrome viewport) ----- */
.recon-li-app {
  display: flex;
  flex-direction: column;
  background: #f3f2ef; /* LinkedIn off-white page */
  overflow: hidden;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #000;
  flex: 1;
  min-height: 480px;
}

/* ----- Topbar ----- */
.recon-li-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  flex-shrink: 0;
}
.recon-li-logo {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #0a66c2;
  color: #fff;
  font-weight: 800;
  font-style: italic;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: Helvetica, Arial, sans-serif;
}
.recon-li-search-bar {
  flex: 0 1 280px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  background: #edf3f8;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  color: #404040;
}
.recon-li-search-bar:focus-within {
  background: #fff;
  border-color: #0a66c2;
  box-shadow: 0 0 0 1px #0a66c2;
}
.recon-li-search-icon {
  display: inline-flex;
  color: #666;
  flex-shrink: 0;
}
.recon-li-search-bar .recon-search-text {
  color: #404040;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recon-li-search-bar .recon-search-text.recon-search-placeholder {
  color: #767676;
  font-style: normal;
}
.recon-li-search-bar .recon-search-caret {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #0a66c2;
  margin-left: 1px;
  vertical-align: middle;
  opacity: 0;
  animation: caret-blink 1s steps(1) infinite;
}
.recon-li-search-bar .recon-search-caret.active { opacity: 1; }

.recon-li-navicon {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 10px 2px;
  color: #666;
  flex-shrink: 0;
  cursor: default;
  border-bottom: 2px solid transparent;
}
.recon-li-navicon--active {
  color: #000;
  border-bottom-color: #000;
}
.recon-li-navlabel {
  font-size: 10px;
  letter-spacing: 0;
}
.recon-li-bell-dot {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #cd201f;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  border: 1px solid #fff;
}

/* ----- Filter pills row ----- */
.recon-li-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  flex-shrink: 0;
  overflow-x: auto;
}
.recon-li-filter {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #c2c2c2;
  background: #fff;
  color: #404040;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
}
.recon-li-filter--active {
  background: #01754f;
  border-color: #01754f;
  color: #fff;
}
.recon-li-filter--more {
  border: none;
  color: #404040;
  background: transparent;
  text-decoration: underline;
}

/* ----- Body: people search results (no longer holds the harvest panel) ----- */
.recon-li-body {
  padding: 16px;
  background: #f3f2ef;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.recon-li-main {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}
.recon-li-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e6e6e6;
  font-size: 12px;
  color: #666;
}
.recon-li-result-count strong { color: #000; font-weight: 600; }
.recon-li-loc {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #888;
  text-transform: uppercase;
}

/* ----- Profile rows ----- */
.recon-profiles {
  padding: 4px 0;
}
.recon-profile {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #ebebeb;
  background: #fff;
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.18s ease;
}
.recon-profile:last-child { border-bottom: none; }
.recon-profile.visible { opacity: 1; transform: translateY(0); }

/* Profiles are visible-only — no Connect/Harvest interaction. The "scraped"
   state simply tints the row to indicate it ended up in target_emails.txt. */
.recon-profile.harvested {
  background: rgba(216, 240, 224, 0.55);
}

.recon-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: Helvetica, Arial, sans-serif;
}
.recon-avatar[data-c="0"] { background: linear-gradient(135deg, #0a66c2 0%, #1577d0 100%); }
.recon-avatar[data-c="1"] { background: linear-gradient(135deg, #5e548e 0%, #7460a8 100%); }
.recon-avatar[data-c="2"] { background: linear-gradient(135deg, #c43e1c 0%, #e0552e 100%); }
.recon-avatar[data-c="3"] { background: linear-gradient(135deg, #057642 0%, #0a8a4f 100%); }

.recon-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.recon-profile-name {
  color: #0a66c2;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.recon-profile-degree {
  color: #767676;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.recon-profile-role {
  color: #000;
  font-size: 12px;
  line-height: 1.4;
}
.recon-profile-loc {
  color: #767676;
  font-size: 11px;
}

/* ----- Standalone terminal window (right column) ----- */
.recon-term {
  display: flex;
  flex-direction: column;
  background: #0b0d12;
  border: 1px solid #1f2230;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  align-self: start;
}
.recon-term-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #1c1f29;
  border-bottom: 1px solid #2a2e3c;
  flex-shrink: 0;
}
.recon-term-traffic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.recon-term-title {
  flex: 1;
  text-align: center;
  color: #b8bcc8;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.recon-harvest {
  background: #0b0d12;
  padding: 14px 16px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  color: #c9d1d9;
  /* Shrink to fit content but never collapse below this */
  min-height: 320px;
}
.harvest-header {
  color: #7ee787;
  margin-bottom: 10px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid #1f2230;
  display: flex;
  align-items: center;
  gap: 6px;
}
.harvest-status {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e7681;
  background: #1f2230;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #2a2e3c;
}
.harvest-status.is-running {
  color: #f0e35e;
  border-color: rgba(240, 227, 94, 0.4);
  background: rgba(240, 227, 94, 0.08);
  animation: harvest-status-pulse 1.4s ease-in-out infinite;
}
.harvest-status.is-done {
  color: #7ee787;
  border-color: rgba(126, 231, 135, 0.45);
  background: rgba(126, 231, 135, 0.10);
}
@keyframes harvest-status-pulse {
  50% { opacity: 0.55; }
}

.harvest-list {
  /* Grow to fit script + email lines without scrolling. */
  min-height: 240px;
  overflow: hidden;
  padding-right: 4px;
}
.harvest-list > * + * { margin-top: 2px; }
.harvest-empty { color: #6e7681; }
.harvest-blink {
  display: inline-block;
  width: 8px;
  background: #7ee787;
  color: transparent;
  margin-left: 2px;
  animation: caret-blink 1s steps(1) infinite;
}

.harvest-line {
  color: #c9d1d9;
  white-space: pre;
}
@media (prefers-reduced-motion: no-preference) {
  .harvest-line {
    animation: harvest-line-in 0.22s ease;
  }
  @keyframes harvest-line-in {
    from { opacity: 0; transform: translateX(-3px); }
    to   { opacity: 1; transform: translateX(0); }
  }
}
.harvest-line.is-info { color: #79c0ff; }
.harvest-line.is-good { color: #7ee787; }
.harvest-line.is-good strong { color: #d2a8ff; font-weight: 700; }
.harvest-line .harvest-role {
  color: #6e7681;
  font-style: italic;
}

.harvest-count {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #1f2230;
  color: #79c0ff;
  font-weight: 600;
  flex-shrink: 0;
}

/* Mobile: stack the chrome and terminal vertically */
@media (max-width: 880px) {
  .recon-split { grid-template-columns: 1fr; }
  .recon-term { min-height: 360px; }
  .recon-li-search-bar { flex: 1 1 auto; }
  .recon-li-navicon { padding: 4px 6px 2px; }
  .recon-li-navlabel { display: none; }
}

/* --- WEAPON SCENE: Terminal payload builder --- */
.mockup-body--terminal {
  padding: 16px 20px;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  min-height: 300px;
  overflow: hidden;
}
.term-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: pre-wrap;
  word-break: break-all;
}
.term-line.visible { opacity: 1; transform: translateY(0); }
.term-placeholder { color: var(--text-tertiary); opacity: 0.5; }
.term-caret {
  display: inline-block;
  width: 7px;
  background: var(--success);
  color: transparent;
  animation: caret-blink 1s steps(1) infinite;
  margin-left: 2px;
}
.term-prompt { color: var(--success); }
.term-cmd { color: var(--text-primary); }
.term-comment { color: var(--text-tertiary); font-style: italic; }
.term-output { color: var(--text-secondary); }
.term-warn { color: var(--warning); }
.term-danger { color: var(--danger); }
.term-success { color: var(--success); }

.weapon-output {
  margin-top: 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.weapon-output.visible { opacity: 1; transform: translateY(0); }

.weapon-file {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.weapon-file-icon { flex-shrink: 0; }
.weapon-file-icon svg { display: inline; }
.weapon-file-info { flex: 1; }
.weapon-file-name { font-weight: 700; font-size: 15px; display: block; }
.weapon-file-meta { font-size: 12px; color: var(--text-tertiary); }
.weapon-file-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--danger);
  background: rgba(255,71,87,0.12);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,71,87,0.2);
}

/* --- DELIVERY SCENE: Email client --- */
.mockup-body--email {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 380px;
}
.email-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
}
.email-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
  cursor: default;
}
.email-nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}
.email-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.email-badge.visible { opacity: 1; }

.email-main { padding: 16px 20px; }
.email-empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: 60px 0;
  font-size: 14px;
}

.email-message {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
.email-message.visible { opacity: 1; transform: translateY(0); }

.email-msg-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.email-msg-from {
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.email-msg-from .email-spoof {
  font-size: 10px;
  color: var(--danger);
  background: rgba(255,71,87,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.email-msg-from .email-spoof.visible { opacity: 1; }

.email-msg-to, .email-msg-subject {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.email-msg-subject { color: var(--text-primary); font-weight: 600; }

.email-msg-body {
  padding: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.email-msg-body p { margin-bottom: 10px; }
.email-urgency {
  color: var(--danger);
  font-weight: 600;
  background: rgba(255,71,87,0.08);
  padding: 0 4px;
  border-radius: 3px;
}

.email-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 0 16px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.email-attachment-icon {
  font-size: 20px;
}

/* ============================================================
   COMPROMISE · Word-themed document window
   The exploit-doc-window doubles as a Microsoft Word frame so the
   user instantly recognizes the malicious .docm and the iconic yellow
   "SECURITY WARNING — Macros disabled" Protected View bar.
   ============================================================ */
.exploit-desktop {
  position: relative;
  min-height: 420px;
}
.exploit-doc-window {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: filter 0.5s ease;
}
.exploit-doc-window.blurred { filter: brightness(0.5) blur(1px); }

/* Word frame (overrides the dark mockup defaults when .word-app is present) */
.exploit-doc-window.word-app {
  background: #fafafa;
  border-color: #d6d6d6;
  font-family: 'Segoe UI', -apple-system, Helvetica, Arial, sans-serif;
}
.word-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #2b579a;
  color: #fff;
  font-family: 'Segoe UI', -apple-system, Helvetica, Arial, sans-serif;
}
.word-icon {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: #fff;
  color: #2b579a;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.word-title {
  flex: 1 1 0;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.word-titlebtns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}
.word-titlebtn {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}

.word-ribbon {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 10px;
  background: #f3f2f1;
  border-bottom: 1px solid #e1dfdd;
  flex-wrap: wrap;
}
.word-tab {
  padding: 7px 11px;
  font-size: 11px;
  color: #323130;
  border-bottom: 2px solid transparent;
  cursor: default;
}
.word-tab--active {
  color: #2b579a;
  font-weight: 600;
  border-bottom-color: #2b579a;
  background: #fff;
}

.exploit-doc-window.word-app .mockup-body--doc {
  padding: 0;
  min-height: 320px;
  background: #f3f2f1;
}
.exploit-doc-window.word-app .doc-content {
  padding: 0;
}

/* Yellow Word "SECURITY WARNING" bar */
.doc-banner.word-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin: 0;
  background: #fff4ce;
  border: none;
  border-bottom: 1px solid #f4c33d;
  border-radius: 0;
  color: #5c4515;
  font-size: 12.5px;
  font-family: 'Segoe UI', -apple-system, Helvetica, Arial, sans-serif;
}
.doc-banner.word-warning.clicked {
  background: #fde7e9;
  border-bottom-color: #c43e1c;
  color: #c43e1c;
}
.word-warning-icon {
  display: inline-flex;
  color: #d83b01;
  flex-shrink: 0;
}
.doc-banner.word-warning.clicked .word-warning-icon { color: #c43e1c; }
.doc-banner.word-warning .doc-warn {
  flex: 1;
  font-size: 12.5px;
  color: inherit;
}
.doc-banner.word-warning .doc-warn strong {
  color: #d83b01;
  font-weight: 700;
  margin-right: 6px;
}
.doc-banner.word-warning.clicked .doc-warn strong { color: #c43e1c; }
.doc-banner.word-warning .doc-enable-btn {
  margin-left: auto;
  padding: 5px 14px;
  background: #fff;
  color: #323130;
  border: 1px solid #c8c6c4;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Segoe UI', -apple-system, Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.doc-banner.word-warning .doc-enable-btn:hover:not(:disabled) {
  background: #f3f2f1;
  border-color: #a19f9d;
}
.doc-banner.word-warning.clicked .doc-enable-btn {
  background: #c43e1c;
  border-color: #a32a0d;
  color: #fff;
}

/* The "page" inside Word — white sheet with header and faux text lines */
.word-page {
  margin: 18px auto 0;
  padding: 22px 32px 60px;
  max-width: 92%;
  background: #fff;
  border: 1px solid #e1dfdd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-family: 'Segoe UI', -apple-system, Helvetica, Arial, sans-serif;
}
.word-page-head {
  font-size: 11px;
  color: #2b579a;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.word-page .doc-text { padding: 0; }
.word-page .doc-line {
  height: 7px;
  background: #ebebeb;
  border-radius: 999px;
  margin-bottom: 8px;
  width: 100%;
}
.word-page .doc-line--title {
  height: 14px;
  width: 60%;
  margin-bottom: 16px;
  background: #d2d2d2;
}

/* Legacy doc styles (used when scenes reuse mockup-body--doc without .word-app) */
.mockup-body--doc { padding: 0; min-height: 300px; }
.doc-content { padding: 20px; }
.doc-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 184, 77, 0.1);
  border: 1px solid rgba(255, 184, 77, 0.2);
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--warning);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.doc-banner.clicked {
  background: rgba(255, 71, 87, 0.1);
  border-color: rgba(255, 71, 87, 0.3);
  color: var(--danger);
}
.doc-banner-icon { font-size: 16px; }
.doc-enable-btn {
  margin-left: auto;
  padding: 5px 14px;
  background: var(--warning);
  color: #000;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.doc-banner.clicked .doc-enable-btn { background: var(--danger); }

.doc-text { padding: 0 8px; }
.doc-line {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  margin-bottom: 8px;
  width: 100%;
}
.doc-line--title { height: 12px; width: 60%; margin-bottom: 16px; background: var(--bg-card); }

.exploit-terminal-overlay {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 55%;
  background: rgba(10, 10, 16, 0.97);
  border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(255, 71, 87, 0.15);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.exploit-terminal-overlay.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.exploit-terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255,71,87,0.08);
  border-bottom: 1px solid rgba(255,71,87,0.15);
}
.exploit-terminal-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--danger);
  font-weight: 600;
}
.exploit-terminal-body {
  padding: 12px 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  line-height: 1.6;
  color: var(--danger);
  max-height: 200px;
  overflow: hidden;
}

/* --- INSTALL SCENE: System activity monitor --- */
.mockup-body--install {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 340px;
}
.install-log {
  padding: 16px 20px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  line-height: 1.7;
  overflow: hidden;
}
.install-log-entry {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  gap: 12px;
  padding: 3px 0;
}
.install-log-entry.visible { opacity: 1; transform: translateX(0); }
.install-log-time { color: var(--text-tertiary); white-space: nowrap; }
.install-log-type {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.install-log-type--write { color: var(--warning); background: rgba(255,184,77,0.1); }
.install-log-type--reg { color: var(--accent-purple); background: rgba(124,92,252,0.1); }
.install-log-type--exec { color: var(--danger); background: rgba(255,71,87,0.1); }
.install-log-type--net { color: var(--accent); background: rgba(0,200,255,0.1); }
.install-log-msg { color: var(--text-secondary); }

.install-fs {
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  padding: 16px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
}
.install-fs-header {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.install-fs-item {
  padding: 4px 0 4px 12px;
  color: var(--text-secondary);
  border-left: 1px solid var(--border);
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.install-fs-item.visible { opacity: 1; }
.install-fs-item.new-file { color: var(--danger); }
.install-fs-folder { color: var(--text-tertiary); padding: 4px 0; }

/* --- C2 SCENE: Network diagram + console --- */
.c2-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px 0;
  position: relative;
}
.c2-endpoint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 120px;
}
.c2-machine { color: var(--text-secondary); }
.c2-machine svg { display: inline; }
.c2-machine--bad { color: var(--danger); }
.c2-label { font-size: 12px; font-weight: 600; }
.c2-ip { font-size: 11px; color: var(--text-tertiary); font-family: monospace; }

.c2-channel {
  flex: 1;
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c2-wire { position: absolute; inset: 0; display: flex; align-items: center; }
.c2-wire-line {
  width: 100%;
  height: 1px;
  background: var(--border-hover);
}
.c2-packets {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.c2-packet {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
.c2-packet--out {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation-name: packetOut;
}
.c2-packet--in {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  animation-name: packetIn;
}
@keyframes packetOut {
  from { left: 0; opacity: 1; } to { left: 100%; opacity: 0.3; }
}
@keyframes packetIn {
  from { left: 100%; opacity: 1; } to { left: 0; opacity: 0.3; }
}
.c2-label-encrypted {
  position: absolute;
  bottom: -4px;
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
}
.c2-console {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0a10;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.c2-console-body {
  min-height: 180px;
}

/* --- EXFIL SCENE: Data theft visualization --- */
.exfil-layout {
  display: grid;
  grid-template-columns: 260px 1fr 200px;
  gap: 0;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  min-height: 340px;
}
.exfil-source {
  border-right: 1px solid var(--border);
  padding: 16px;
}
.exfil-source-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.exfil-source-header svg { display: inline; width: 16px; height: 16px; }
.exfil-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 4px;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.5s ease, color 0.3s ease;
  color: var(--text-secondary);
}
.exfil-file.visible { opacity: 1; }
.exfil-file.interactive {
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
}
.exfil-file.interactive:hover:not(.stolen):not(.stealing) {
  background: rgba(255, 71, 87, 0.06);
  border-color: rgba(255, 71, 87, 0.2);
  color: var(--text-primary);
}
.exfil-file.interactive:not(.stolen):not(.stealing):hover .exfil-file-icon {
  transform: translateX(-2px);
}
.exfil-file-icon { transition: transform 0.2s ease; }
.exfil-file.stealing {
  background: rgba(255,71,87,0.1);
  color: var(--danger);
  border-color: rgba(255, 71, 87, 0.3);
}
.exfil-file.stealing .exfil-file-icon {
  animation: steal-shake 0.4s ease-in-out infinite;
}
@keyframes steal-shake {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
.exfil-file.stolen {
  opacity: 0.35;
  text-decoration: line-through;
  pointer-events: none;
}
.exfil-file.stolen::after {
  content: '✓';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--danger);
  font-weight: 700;
  font-size: 12px;
}
.exfil-file-icon { font-size: 16px; flex-shrink: 0; }
.exfil-file-info { flex: 1; min-width: 0; }
.exfil-file-name {
  font-weight: 600;
  display: block;
  font-size: 11px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exfil-file-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.exfil-file-service {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 200, 255, 0.10);
  border: 1px solid rgba(0, 200, 255, 0.25);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.exfil-file-size { color: var(--text-tertiary); font-size: 10px; }

/* AWS session-context strip above the source/stream/dest layout */
.exfil-session-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.08), rgba(124, 92, 252, 0.08));
}
.exfil-session-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.exfil-session-role {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.exfil-session-arn {
  flex: 1 1 0;
  min-width: 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.exfil-session-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 71, 87, 0.18);
  border: 1px solid rgba(255, 71, 87, 0.4);
  color: var(--danger);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .exfil-session-strip { flex-wrap: wrap; gap: 8px; }
  .exfil-session-arn { flex-basis: 100%; }
}

.exfil-stream {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
.exfil-arrow-track {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  left: 50%;
  transform: translateX(-50%);
}
.exfil-arrow-line {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(180deg, var(--border) 0px, var(--border) 4px, transparent 4px, transparent 8px);
}
.exfil-progress-wrap {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  z-index: 2;
  text-align: center;
  min-width: 180px;
}
.exfil-progress-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.exfil-progress-label.active { color: var(--danger); }
.exfil-progress-bar {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.exfil-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--danger), #ff6b35);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.exfil-progress-bytes {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: monospace;
}
.exfil-progress-count {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: monospace;
  letter-spacing: 0.03em;
}
.exfil-progress-count span {
  color: var(--danger);
  font-weight: 700;
}

.exfil-dest {
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.exfil-dest-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.exfil-dest-box svg { display: inline; color: var(--danger); }
.exfil-dest-box span { font-size: 12px; font-weight: 600; }
.exfil-dest-box .c2-ip { font-size: 10px; }

/* --- Case Study Section --- */
.section--casestudy {
  padding: 160px 0;
  text-align: center;
}

.case-timeline {
  margin-top: 64px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.case-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
}

.case-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-tertiary);
  background: var(--bg-surface);
  transition: border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
  flex-shrink: 0;
}

.case-step.active .case-step-num {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
}

.case-step-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  min-height: 20px;
  margin: 8px 0;
  position: relative;
  overflow: hidden;
}

.case-step-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent-gradient);
  transition: height 0.8s var(--ease-out) 0.2s;
}

.case-step.active .case-step-line::after {
  height: 100%;
}

.case-step-card {
  padding: 0 0 40px 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.case-step.active .case-step-card {
  opacity: 1;
  transform: translateY(0);
}

.case-step:last-child .case-step-card {
  padding-bottom: 0;
}

.case-step-phase {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.case-step-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.case-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.case-impact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 64px;
  padding: 40px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.case-impact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: var(--accent-gradient);
}

.case-impact-item {
  flex: 1;
  text-align: center;
}

.case-impact-value {
  display: block;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.case-impact-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.case-impact-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 8px;
}

/* --- Quiz --- */
.section--quiz {
  text-align: center;
  padding-bottom: 80px;
}

.quiz-challenge {
  margin-top: 64px;
  margin-bottom: 80px;
}

.quiz-challenge-header {
  margin-bottom: 32px;
}

.quiz-challenge-number {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.quiz-challenge-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.quiz-challenge-desc {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Quiz Ordering */
.quiz-dropzone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
}

.quiz-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: grab;
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  touch-action: none;
  text-align: left;
  position: relative;
}

.quiz-card:active {
  cursor: grabbing;
}

.quiz-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.quiz-card.dragging {
  opacity: 0.95;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-dim);
  z-index: 1000;
}

.quiz-card-placeholder {
  background: var(--accent-dim);
  border: 2px dashed rgba(0, 200, 255, 0.3);
  border-radius: var(--radius-md);
  transition: height 0.15s ease;
}

.quiz-card.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.quiz-card.correct {
  border-color: var(--success);
  background: rgba(0, 230, 118, 0.05);
}

.quiz-card.incorrect {
  border-color: var(--danger);
  background: rgba(255, 71, 87, 0.05);
}

.quiz-card-handle {
  color: var(--text-tertiary);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quiz-card-handle span {
  display: block;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.quiz-card-position {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.quiz-card-text {
  font-size: 15px;
  font-weight: 500;
  flex: 1;
}

/* Quiz Submit */
.quiz-submit {
  display: inline-flex;
  align-items: center;
  padding: 16px 40px;
  background: var(--accent-gradient);
  color: #000;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
  margin-top: 24px;
}

.quiz-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 200, 255, 0.25);
}

.quiz-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Results --- */
.section--results {
  text-align: center;
  padding: 120px 0;
}

.section--results.hidden {
  display: none;
}

.results-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
}

.results-score-ring {
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  position: relative;
}

.results-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.results-ring-bg {
  fill: none;
  stroke: var(--bg-elevated);
  stroke-width: 6;
}

.results-ring-fill {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}

.results-score-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.results-message {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
  line-height: 1.4;
}
.footer p:last-child { margin-bottom: 0; }

.footer-credit {
  font-size: 12px;
}

/* --- Animations (Scroll-triggered) --- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero elements animate on load via CSS animation instead of JS observer */
.hero .anim-fade-up {
  animation: heroFadeUp 0.8s var(--ease-out) forwards;
}
.hero .anim-delay-1 { animation-delay: 0.1s; }
.hero .anim-delay-2 { animation-delay: 0.2s; }
.hero .anim-delay-3 { animation-delay: 0.35s; }
.hero .anim-delay-4 { animation-delay: 0.55s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.5s; }

/* --- Arm & Deliver Scene: Split layout --- */
.armdeliver-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 16px;
  align-items: start;
}

.armdeliver-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 10px;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}

.armdeliver-connector.active {
  opacity: 1;
  transform: scaleX(1);
}

.armdeliver-connector-track {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--danger), var(--warning));
  border-radius: 1px;
}

.armdeliver-connector-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 12px var(--danger);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.armdeliver-connector-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--danger);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================
   ARM & DELIVER · Outlook-themed inbox panel
   The right-side panel mimics the Outlook desktop client (title bar,
   ribbon, action bar, folder pane, message list) so users instantly
   recognize the email client receiving the phish.
   ============================================================ */
.outlook-app {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Segoe UI', -apple-system, Helvetica, Arial, sans-serif;
  color: #323130;
  min-height: 380px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.outlook-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #0078d4;
  color: #fff;
  flex-shrink: 0;
}
.outlook-titleicon { display: inline-flex; color: #fff; flex-shrink: 0; }
.outlook-title {
  flex: 1 1 0;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.outlook-titlebtns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}
.outlook-titlebtn {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}

.outlook-ribbon {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 10px;
  background: #f3f2f1;
  border-bottom: 1px solid #e1dfdd;
  flex-shrink: 0;
}
.outlook-tab {
  padding: 7px 12px;
  font-size: 11px;
  color: #323130;
  border-bottom: 2px solid transparent;
  cursor: default;
}
.outlook-tab--active {
  color: #0078d4;
  font-weight: 600;
  border-bottom-color: #0078d4;
  background: #fff;
}

.outlook-actionbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: #faf9f8;
  border-bottom: 1px solid #e1dfdd;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.outlook-iconbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 2px;
  background: transparent;
  color: #323130;
  font-size: 11px;
  font-weight: 500;
  cursor: default;
}
.outlook-iconbtn svg { color: #0078d4; flex-shrink: 0; }
.outlook-iconbtn--danger svg { color: #c43e1c; }

.outlook-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  flex: 1;
  min-height: 220px;
}
.outlook-folders {
  background: #faf9f8;
  border-right: 1px solid #e1dfdd;
  padding: 10px 4px;
  overflow: hidden;
}
.outlook-folder-account {
  font-size: 10px;
  font-weight: 700;
  color: #605e5c;
  letter-spacing: 0.04em;
  padding: 4px 10px 8px;
  text-transform: uppercase;
}
.outlook-folder {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: #323130;
  border-radius: 2px;
  cursor: default;
}
.outlook-folder--active {
  background: #ebebeb;
  font-weight: 600;
  color: #0078d4;
}
.outlook-folder-icon {
  width: 14px; height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #605e5c;
}
.outlook-folder--active .outlook-folder-icon { color: #0078d4; }
.outlook-folder-badge {
  margin-left: auto;
  background: #0078d4;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.outlook-folder-badge.visible { opacity: 1; }

/* Message pane (where the spoofed email appears) */
.outlook-messagepane {
  padding: 14px 16px;
  background: #fff;
  overflow: hidden;
}
.outlook-messagepane .email-empty {
  padding: 60px 0;
  color: #767676;
  text-align: center;
  font-size: 13px;
}

/* Re-skin the email message inside Outlook to read like a real Outlook reading pane */
.outlook-messagepane .email-message {
  border: 1px solid #e1dfdd;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  font-family: 'Segoe UI', -apple-system, Helvetica, Arial, sans-serif;
}
.outlook-messagepane .email-msg-header {
  padding: 12px 14px;
  border-bottom: 1px solid #e1dfdd;
  background: #faf9f8;
}
.outlook-messagepane .email-msg-from {
  color: #323130;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.outlook-messagepane .email-msg-from .email-spoof {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #c43e1c;
  background: #fde7e9;
  border: 1px solid #f1bbbe;
  padding: 1px 6px;
  border-radius: 2px;
}
.outlook-messagepane .email-msg-to,
.outlook-messagepane .email-msg-subject {
  color: #605e5c;
  font-size: 11px;
  margin-top: 3px;
}
.outlook-messagepane .email-msg-subject {
  color: #323130;
  font-weight: 700;
  font-size: 13px;
  margin-top: 6px;
}
.outlook-messagepane .email-msg-body {
  padding: 12px 14px;
  background: #fff;
  color: #323130;
  font-size: 12.5px;
  line-height: 1.55;
}
.outlook-messagepane .email-urgency {
  color: #c43e1c;
  background: #fde7e9;
  font-weight: 600;
  padding: 0 4px;
  border-radius: 2px;
}
.outlook-messagepane .email-attachment {
  margin: 0 14px 12px;
  padding: 8px 12px;
  background: #faf9f8;
  border: 1px solid #e1dfdd;
  border-radius: 2px;
  font-size: 12px;
  color: #323130;
}
.outlook-messagepane .email-attachment-icon {
  font-size: 16px;
  color: #c43e1c;
}

/* Backwards-compat: keep these so other emailish surfaces don't break,
   but they are no longer used in scene_armdeliver.html. */
.mockup-body--email-compact {
  padding: 0;
  min-height: 300px;
}
.email-inbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.email-main-compact {
  padding: 16px;
}
.email-main-compact .email-message {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
.email-main-compact .email-message.visible {
  opacity: 1;
  transform: translateY(0);
}
/* When the message lives inside Outlook, override the dark email-msg-* base
   styles since the parent has its own product-themed rules above. */
.outlook-messagepane.email-main-compact { padding: 14px 16px; }
.outlook-messagepane.email-main-compact .email-message {
  border-color: #e1dfdd;
  border-radius: 4px;
}

/* --- Control Scene: C2 wrap below install log --- */
.control-grid {
  display: grid;
  gap: 20px;
}
.control-c2-wrap {
  margin-top: 0;
}

.install-empty {
  padding: 24px;
  color: var(--text-tertiary);
  font-size: 12px;
  text-align: center;
  font-style: italic;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* --- Initial Compromise Scene: chained macro → persistence + C2 --- */
.scene--compromise .scene-stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.compromise-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compromise-stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.compromise-stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.compromise-stage-label {
  color: var(--text-primary);
}

/* --- Escalate Privileges Scene: terminal + AWS Management Console --- */
.escalate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.escalate-iam-window {
  display: flex;
  flex-direction: column;
}

/* ---------- AWS Management Console mock-up ---------- */
.aws-console-window {
  background: #ffffff;
  color: #16191f;
  font-family: 'Amazon Ember', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.mockup-body--aws-console {
  padding: 0;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Top global navigation (dark navy) */
.aws-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  height: 40px;
  background: #232f3e;
  color: #ffffff;
  font-size: 12px;
  border-bottom: 1px solid #131a22;
}
.aws-nav-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.aws-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  padding: 2px 4px 0;
  user-select: none;
}
.aws-logo-text {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: 0.5px;
  font-family: 'Amazon Ember', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.aws-logo-smile {
  width: 22px;
  height: 7px;
  margin-top: 1px;
  display: block;
}
.aws-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 2px;
  background: transparent;
  color: #ffffff;
  font-size: 12px;
  cursor: default;
  white-space: nowrap;
}
.aws-nav-grid {
  display: inline-grid;
  grid-template-columns: repeat(3, 3px);
  grid-template-rows: repeat(3, 3px);
  gap: 1px;
}
.aws-nav-grid span {
  width: 3px;
  height: 3px;
  background: #ffffff;
  border-radius: 1px;
}
.aws-nav-search {
  flex: 1 1 140px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  background: #ffffff;
  color: #545b64;
  border-radius: 2px;
  font-size: 12px;
  max-width: 220px;
  min-width: 80px;
}
.aws-nav-search-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aws-nav-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #ffffff;
  white-space: nowrap;
}
.aws-nav-pill {
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}
.aws-nav-account {
  color: #ff9900;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* Service breadcrumb strip */
.aws-service-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid #d5dbdb;
  font-size: 12px;
  flex-wrap: wrap;
}
.aws-service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 2px;
  background: #ff9900;
  color: #16191f;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.aws-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #545b64;
  flex-wrap: wrap;
  min-width: 0;
}
.aws-breadcrumb-link { color: #0972d3; cursor: default; }
.aws-breadcrumb-sep { color: #879596; }
.aws-breadcrumb-current {
  color: #16191f;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Console body */
.aws-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: #fafafa;
  flex: 1;
}

/* Tabs */
.aws-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #d5dbdb;
  overflow-x: auto;
  scrollbar-width: none;
}
.aws-tabs::-webkit-scrollbar { display: none; }
.aws-tab {
  padding: 8px 14px;
  font-size: 12px;
  color: #545b64;
  border-bottom: 2px solid transparent;
  cursor: default;
  white-space: nowrap;
  margin-bottom: -1px;
}
.aws-tab.is-active {
  color: #0972d3;
  border-bottom-color: #0972d3;
  font-weight: 700;
}

/* Generic AWS panel */
.aws-panel {
  background: #ffffff;
  border: 1px solid #d5dbdb;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 28, 36, 0.05);
}
.aws-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #eaeded;
  background: #ffffff;
  font-size: 13px;
  color: #16191f;
  font-weight: 700;
}
.aws-panel-title { color: #16191f; font-weight: 700; }
.aws-panel-body { padding: 14px 16px; }

/* AWS-style button */
.aws-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: default;
  white-space: nowrap;
}
.aws-btn-primary {
  background: #0972d3;
  color: #ffffff;
}

/* Identity / Summary card on AWS skin */
.aws-console-window .escalate-id-card {
  display: block;
  border: 1px solid #d5dbdb;
  background: #ffffff;
  border-radius: 4px;
  padding: 0;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.aws-console-window .escalate-id-card[data-state="user"] {
  border-color: #d5dbdb;
}
.aws-console-window .escalate-id-card[data-state="admin"] {
  border-color: #d91515;
  background: linear-gradient(180deg, #ffffff 0%, #fdf3f3 100%);
}
.aws-console-window .escalate-id-card[data-state="admin"] .aws-panel-head {
  border-bottom-color: #f7c6c7;
}
.escalate-id-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: start;
  padding: 14px 16px;
}
.aws-console-window .escalate-id-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f1f3f3;
  color: #545b64;
  border: 1px solid #d5dbdb;
}
.aws-console-window .escalate-id-card[data-state="admin"] .escalate-id-portrait {
  background: rgba(217, 21, 21, 0.10);
  color: #d91515;
  border-color: rgba(217, 21, 21, 0.4);
}
.aws-console-window .escalate-id-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  min-width: 0;
}
.aws-console-window .escalate-id-meta dt,
.aws-console-window .escalate-id-meta dd {
  margin: 0;
}
.aws-console-window .escalate-id-kicker {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: #545b64;
  font-weight: 700;
  margin-top: 4px;
}
.aws-console-window .escalate-id-meta dt:first-child { margin-top: 0; }
.aws-console-window .escalate-id-name {
  font-size: 14px;
  font-weight: 600;
  color: #16191f;
}
.aws-console-window .escalate-id-arn {
  font-family: 'Monaco', 'Menlo', 'SF Mono', monospace;
  font-size: 11.5px;
  color: #16191f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Identity badge */
.escalate-id-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #eaeded;
  color: #545b64;
  border: 1px solid #d5dbdb;
  transition: all 0.3s ease;
}
.aws-console-window .escalate-id-card[data-state="user"] .escalate-id-badge {
  background: #fff8c5;
  color: #6a4f1a;
  border-color: #f3d878;
}
.aws-console-window .escalate-id-card[data-state="admin"] .escalate-id-badge {
  background: #d91515;
  color: #ffffff;
  border-color: #d91515;
}

/* Permissions table panel */
.aws-console-window .escalate-policies {
  background: #ffffff;
  border: 1px solid #d5dbdb;
  border-radius: 4px;
  overflow: hidden;
}
.aws-console-window .escalate-policies-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid #eaeded;
  color: #16191f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.aws-console-window .escalate-policies-header > span:first-child { font-weight: 700; }
.aws-table-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 8px 16px;
  background: #fafafa;
  color: #545b64;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid #eaeded;
}
.aws-console-window .escalate-policies-list {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}
.aws-console-window .escalate-policy-empty {
  padding: 22px 16px;
  font-size: 12.5px;
  color: #687078;
  text-align: center;
  font-style: normal;
  background: #ffffff;
}
.aws-console-window .escalate-policy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-family: 'Amazon Ember', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12.5px;
  border-bottom: 1px solid #eaeded;
}
.aws-console-window .escalate-policy-row:last-child { border-bottom: none; }
.aws-console-window .escalate-policy-row.is-danger { background: #fdf3f3; }
.aws-console-window .escalate-policy-name {
  color: #0972d3;
  font-weight: 500;
}
.aws-console-window .escalate-policy-row.is-danger .escalate-policy-name {
  color: #d91515;
  font-weight: 700;
}
.aws-console-window .escalate-policy-tag {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: #545b64;
  font-weight: 500;
}

@media (max-width: 900px) {
  .escalate-grid { grid-template-columns: 1fr; }
  .aws-nav-account { display: none; }
}


/* --- Responsive --- */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .case-impact { flex-direction: column; gap: 24px; padding: 32px 24px; }
  .case-impact-divider { width: 48px; height: 1px; margin: 0; }
  .chain-nodes { gap: 4px; }
  .chain-node-ring { width: 40px; height: 40px; }
  .chain-node-ring span { font-size: 13px; }
  .chain-node-label { font-size: 10px; }
  .chain-detail-inner { flex-direction: column; padding: 24px; }

  .mockup-body--install { grid-template-columns: 1fr; }
  .install-fs { border-left: none; border-top: 1px solid var(--border); }
  .exfil-layout { grid-template-columns: 1fr; }
  .exfil-stream { flex-direction: row; padding: 16px; }
  .exfil-arrow-track { display: none; }
  .exfil-dest { border-left: none; border-top: 1px solid var(--border); }
  .c2-layout { flex-direction: column; gap: 16px; }
  .c2-channel { width: 100%; height: 40px; }
  .scene-label { flex-wrap: wrap; }
  .scene-aka { margin-left: 0; flex-basis: 100%; }
  .exploit-terminal-overlay { width: 90%; right: 5%; }
  .armdeliver-grid { grid-template-columns: 1fr; }
  .armdeliver-connector { flex-direction: row; gap: 12px; padding: 16px 0; }
  .armdeliver-connector-track { width: 40px; height: 2px; }
  .defend-timeline { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .defend-track-line { display: none; }
  .defend-node-label { font-size: 9px; max-width: 60px; }

  /* Phases carousel mobile */
  .phases-slide { padding: 32px 20px 28px; }
  .phases-tab { padding: 14px 12px; font-size: 12px; }
  .scene-actions { gap: 8px; }
  .scene-action-btn { padding: 9px 14px; font-size: 12px; }
  .scene-hint {
    margin-left: 0;
    text-align: left;
    max-width: none;
    flex: 1 1 100%;
    order: 10;
  }
}

@media (max-width: 720px) {
  .phases-tab-name { display: none; }
  .phases-tab.active .phases-tab-name { display: inline; }
}

@media (max-width: 600px) {
  .nav-links { gap: 16px; }
  .nav-link:not(.nav-link--cta) { display: none; }
  .section { padding: 80px 0; }
  .scene { padding: 0; }
  .phases-slide { padding: 24px 16px 24px; }
  .hero { padding: 100px 20px 60px; }
  .hero-subtitle br { display: none; }
  .chain-line { display: none; }
  .chain-nodes { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .phases-tabs { padding: 0 4px; }
  .phases-tab { padding: 12px 8px; gap: 6px; }
  .phases-tab-num { width: 22px; height: 22px; font-size: 10px; }
  .phases-controls { flex-direction: row; gap: 8px; }
  .phases-nav { padding: 10px 14px; font-size: 12px; }
}

/* ============================================================
   MASCOT GUIDE · Neko (inline narrator)

   Neko is the primary narrator of the lesson. Each major section
   drops a <div class="mascot-host" data-section="..."> slot into
   its container, and the React component portals the active
   "stage" into whichever host is in view.

   The stage is a prominent two-column panel: a large transparent
   portrait on the LEFT (classic hand-drawn cross-fading poses)
   and a wide narration card on the RIGHT. The user can dismiss
   the narration to collapse it into a slim "replay" pill and
   reveal the section content beneath.
   ============================================================ */

/* --- host slot: sits at the top of each section's container,
       giving Neko generous breathing room above section-label/title --- */
.mascot-host {
  margin: 0 auto 20px;
  min-height: 0;
  /* Compact cap — keeps the narrator panel feeling like a quick
     aside rather than the main content of the page. */
  max-width: 640px;
}
.mascot-host:empty {
  display: none;
}

/* --- stage: the two-column narrator panel.
       Avatar flows out above the top edge of the card so she
       feels like she's stepping onto the page, not stuck inside
       a box. --- */
.mascot-stage {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: end;
  gap: 12px;
  padding: 0;
  animation: mascotStageIn 520ms var(--ease-spring) both;
}
@keyframes mascotStageIn {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- avatar column: breaks out of the card's top edge so Neko
       appears to be standing on top of the speech card --- */
.mascot-stage-avatar {
  position: relative;
  width: 160px;
  padding-bottom: 0;
  /* Lift the character visually; the card underlaps her feet. */
  margin-bottom: -4px;
  pointer-events: none;
}

/* --- speech card --- */
.mascot-stage-card {
  position: relative;
  padding: 10px 18px 8px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(0, 200, 255, 0.08) 0%, rgba(0, 200, 255, 0) 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(124, 92, 252, 0.08) 0%, rgba(124, 92, 252, 0) 55%),
    linear-gradient(180deg, rgba(28, 28, 40, 0.96) 0%, rgba(18, 18, 26, 0.96) 100%);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 80px -40px rgba(0, 200, 255, 0.35);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* speech-bubble tail pointing to the avatar */
.mascot-stage-card::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 46px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, rgba(28, 28, 40, 0.96), rgba(28, 28, 40, 0.96));
  border-left: 1px solid var(--border-hover);
  border-bottom: 1px solid var(--border-hover);
  transform: rotate(45deg);
  border-bottom-left-radius: 4px;
  pointer-events: none;
}

/* --- card header: name + topic + close --- */
.mascot-stage-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.mascot-stage-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mascot-stage-name::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
}
.mascot-stage-topic {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 200, 255, 0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mascot-stage-close {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 140ms ease;
}
.mascot-stage-close:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

/* --- narrated text (typewriter) ---
   Note: no min-height / flex:1 here — we let the card size to the
   actual text so 1-line dialog doesn't leave a huge empty bubble. */
.mascot-stage-text {
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 0;
}
.mascot-caret {
  display: inline-block;
  width: 6px;
  height: 14px;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: mascotCaret 700ms steps(2, end) infinite;
  border-radius: 1px;
}
@keyframes mascotCaret {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* --- actions row: step dots, progress, next --- */
.mascot-stage-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}
.mascot-stage-steps {
  display: inline-flex;
  gap: 5px;
}
.mascot-stage-step {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 180ms ease, width 180ms ease;
}
.mascot-stage-step.is-past {
  background: rgba(0, 200, 255, 0.45);
}
.mascot-stage-step.is-current {
  width: 26px;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.35);
}
.mascot-stage-progress {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-left: auto;
}
.mascot-stage-next {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #0b0b12;
  background: linear-gradient(135deg, #fff 0%, #cfe4ff 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 6px 20px rgba(0, 200, 255, 0.28);
}
.mascot-stage-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 200, 255, 0.4);
}
.mascot-stage-next:active {
  transform: translateY(0);
}

/* ------------------------------------------------------------
   COLLAPSED STATE · slim pill with avatar peek + replay CTA
   ------------------------------------------------------------ */
.mascot-stage--collapsed {
  display: flex;
  justify-content: center;
  animation: mascotStageIn 280ms var(--ease-spring) both;
}
.mascot-stage-reopen {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px 8px 8px;
  background: linear-gradient(180deg, rgba(28, 28, 40, 0.92), rgba(18, 18, 26, 0.92));
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-primary);
  transition: transform 160ms var(--ease-spring), box-shadow 160ms ease, border-color 160ms ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.mascot-stage-reopen:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 200, 255, 0.4);
  box-shadow: 0 10px 28px rgba(0, 200, 255, 0.22);
}
.mascot-stage-reopen-avatar {
  width: 64px;
  flex-shrink: 0;
  display: block;
  margin: -8px 0;
}
.mascot-stage-reopen-avatar .mascot-ground {
  display: none;
}
.mascot-stage-reopen-avatar .mascot-portrait {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}
.mascot-stage-reopen-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}
.mascot-stage-reopen-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.mascot-stage-reopen-cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   PORTRAIT (shared between stage and collapsed pill)
   Uses the intrinsic 1376/768 aspect ratio of the source PNGs
   so stacked poses register pixel-perfect.
   ============================================================ */
.mascot-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1376 / 768;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4))
          drop-shadow(0 26px 42px rgba(0, 0, 0, 0.55));
  animation: mascotBreathe 5.2s ease-in-out infinite;
  will-change: transform;
  transition: transform 260ms var(--ease-spring);
}

html[data-active-avatar="inu"] .mascot-portrait {
  border-radius: 14px;
}
@keyframes mascotBreathe {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-2px) rotate(-0.25deg); }
  50%      { transform: translateY(-4px) rotate(0.25deg); }
  75%      { transform: translateY(-2px) rotate(-0.15deg); }
}

/* soft elliptical ground shadow under Neko's feet */
.mascot-ground {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 55%;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.22) 45%,
    rgba(0, 0, 0, 0) 75%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: mascotGround 5.2s ease-in-out infinite;
}
@keyframes mascotGround {
  0%, 100% { transform: translateX(-50%) scaleX(1)    scaleY(1);   opacity: 0.85; }
  50%      { transform: translateX(-50%) scaleX(0.92) scaleY(0.9); opacity: 0.65; }
}

/* layered cross-fading pose images */
.neko-pose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transition: opacity 300ms ease, filter 300ms ease;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 1;
}
.neko-pose.is-active {
  opacity: 1;
}
.mascot-portrait.is-mounted .neko-pose.is-active {
  animation: mascotPosePop 420ms var(--ease-spring);
}
@keyframes mascotPosePop {
  0%   { transform: scale(0.94) translateY(6px); opacity: 0; }
  60%  { transform: scale(1.02) translateY(0);   opacity: 1; }
  100% { transform: scale(1)    translateY(0); }
}

/* speaking state — livelier bob while the typewriter is running */
.mascot-portrait.is-speaking {
  animation: mascotBreatheFast 2.8s ease-in-out infinite;
}
@keyframes mascotBreatheFast {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-3px) rotate(-0.4deg); }
  50%      { transform: translateY(-5px) rotate(0.5deg); }
  75%      { transform: translateY(-2px) rotate(-0.3deg); }
}

/* ============================================================
   RESPONSIVE · stack avatar over card on narrower screens
   ============================================================ */
@media (max-width: 820px) {
  .mascot-stage {
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: center;
  }
  .mascot-stage-avatar {
    width: 130px;
    /* Pull the avatar firmly down into the top edge of the card so
       there's no dead space between her feet and the bubble. */
    margin-bottom: -28px;
    z-index: 2;
  }
  .mascot-stage-card {
    padding: 14px 16px 10px;
    width: 100%;
  }
  .mascot-stage-card::before {
    /* move tail to top-center pointing up at the avatar */
    left: 50%;
    top: -8px;
    transform: translateX(-50%) rotate(45deg);
    border-left: none;
    border-bottom: none;
    border-top: 1px solid var(--border-hover);
    border-right: 1px solid var(--border-hover);
  }
  .mascot-stage-text { font-size: 13.5px; }
}
@media (max-width: 520px) {
  .mascot-host { margin-bottom: 16px; }
  .mascot-stage-avatar { width: 110px; margin-bottom: -22px; }
  .mascot-stage-card { padding: 12px 12px 8px; }
  .mascot-stage-text { font-size: 13px; }
  .mascot-stage-head { gap: 8px; }
  .mascot-stage-topic { font-size: 10px; padding: 3px 8px; letter-spacing: 0.12em; }
  .mascot-stage-next { padding: 8px 14px; font-size: 12px; }
  .mascot-stage-step { width: 16px; }
  .mascot-stage-step.is-current { width: 26px; }
  .mascot-stage-progress { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-portrait,
  .mascot-portrait.is-speaking,
  .mascot-ground,
  .mascot-caret,
  .mascot-stage,
  .mascot-stage--collapsed {
    animation: none !important;
  }
  .neko-pose { transition: opacity 120ms linear; }
  .battle-move-showcase,
  .battle-move-showcase * {
    animation: none !important;
  }
}

/* ============================================================
   FLASK MULTI-PAGE ADDITIONS
   Added when the site was split into /learn/<n> and /quiz/<n>.
   Keep at the end of the file so they override earlier rules.
   ============================================================ */

/* Aliases that map the design tokens used below to the tokens
   already declared at the top of this file, plus a few new ones
   (spacing scale, max-content width, mono font stack) needed for
   the new lesson / quiz / result pages. */
:root {
  --bg-base:       var(--bg-primary);
  --border-subtle: var(--border);
  --border-default:var(--border-hover);
  --border-strong: var(--border-hover);
  --accent-blue:   var(--accent);
  --accent-green:  var(--success);
  --font-sans:     var(--font);
  --font-mono:     'SF Mono', ui-monospace, Menlo, Consolas, monospace;

  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-5: 24px;
  --spacing-6: 32px;
  --spacing-7: 48px;
  --spacing-8: 64px;

  --max-content: 1120px;
}

/* --- base page shell --- */
.app-body { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; }

/* Bootstrap overrides so its defaults don't fight our dark theme */
body.app-body {
  background: var(--bg-base);
  color: var(--text-primary);
}
.app-body a { color: inherit; }
.app-body .container {
  /* reuse our narrow container sizing, not Bootstrap's */
  max-width: var(--max-content);
  padding: 0 var(--spacing-5);
}

/* Bootstrap's `.nav { display:flex; flex-wrap:wrap; ... }` would
   collapse our top nav bar (single .nav-inner child). Restore the
   block layout that the design expects, and make the inner row
   span the full width so space-between actually spaces things. */
.nav.app-nav, nav.nav {
  display: block;
}
.nav > .nav-inner {
  width: 100%;
}

/* Re-state nav-link rules with `.nav ...` specificity so Bootstrap's
   own `.nav-link` (same specificity, loaded earlier) can't leak
   through on fresh navigations. */
.nav .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0;
  background: transparent;
  text-decoration: none;
}
.nav .nav-link:hover {
  color: var(--text-primary);
}
.nav .nav-link--cta {
  color: var(--bg-primary);
  background: var(--text-primary);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav .nav-link--cta:hover {
  color: var(--bg-primary);
  background: #fff;
}

/* --- visually-hidden for legend labels --- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- home page hero + start form --- */

/* On the home page we let the hero grow tall enough to fit the
   title, CTA, and the Neko narrator all on the same gradient
   background — no separate dark "well" sitting under it. The
   hero also stretches to fill the main column so its world-map
   background reaches all the way down to the footer (no dark
   gap between the canvas and the footer's top border). */
.page-home .app-main {
  display: flex;
  flex-direction: column;
}
.hero--home {
  min-height: auto;
  flex: 1 0 auto;
  padding-top: calc(var(--spacing-8) + 40px);
  padding-bottom: var(--spacing-6);
  align-items: flex-start;   /* push content up inside the tall hero */
}
.hero--home .hero-content {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Center the Start button (and its meta line) under the hero copy */
.hero-start-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3);
  margin: 0;
}
.hero-start-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
  letter-spacing: 0.01em;
}

/* Give the Start button a more prominent, gradient-accent look on
   the home page so it reads as "the one thing you should click". */
.hero--home .hero-cta {
  padding: 16px 34px;
  font-size: 15px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
  color: #fff;
  box-shadow: 0 10px 40px rgba(0, 200, 255, 0.28);
}
.hero--home .hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 56px rgba(124, 92, 252, 0.45);
  color: #fff;
}

/* Neko panel inside the hero — now sits in the middle of the hero
   column, between the subtitle and the Start button, so the CTA is
   the last element the user sees. */
.hero-mascot {
  width: 100%;
  margin: var(--spacing-6) auto var(--spacing-7);
}

/* --- lesson page layout --- */
.section--lesson {
  padding-top: var(--spacing-7);
  /* Override the global 140px bottom padding — that was designed
     for the old single-page layout and leaves a huge empty gap
     above the footer in multi-page mode. */
  padding-bottom: var(--spacing-6);
}
.lesson-header {
  margin-bottom: var(--spacing-6);
}
.lesson-header .section-title {
  margin-bottom: 0;
}
.lesson-body {
  margin-top: var(--spacing-5);
  margin-bottom: var(--spacing-7);
}

/* --- stepper (top-of-page progress) --- */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--spacing-6);
  flex-wrap: wrap;
}
.stepper-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}
.stepper-dot:hover {
  transform: translateY(-1px);
  border-color: var(--border-default);
  color: var(--text-secondary);
}
.stepper-dot.is-current {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.18);
}
.stepper-dot.is-past {
  background: rgba(0, 200, 255, 0.12);
  border-color: rgba(0, 200, 255, 0.4);
  color: var(--accent-blue);
}
.stepper-dot-num { display: block; }
.stepper-track {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--border-subtle);
  margin: 0 4px;
}

/* --- lesson/quiz navigation buttons --- */
.lesson-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-4);
  padding: var(--spacing-5) 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--spacing-6);
  flex-wrap: wrap;
}
.lesson-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.lesson-nav-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.lesson-nav-btn--ghost {
  background: transparent;
}
.lesson-nav-btn--primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 200, 255, 0.2);
}
.lesson-nav-btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 200, 255, 0.35);
  color: #fff;
}
.lesson-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.lesson-nav-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* --- framework overview (lesson 1) ---
   The intro bullets used to live here but were removed — Neko
   already narrates the same content, so the diagram now claims
   the full content width on its own. */
.framework-layout {
  display: block;
}
.framework-layout .chain-diagram {
  padding: 0;
}

/* --- quiz question page --- */
.section--quiz-q {
  padding-top: var(--spacing-7);
  padding-bottom: var(--spacing-6);
}
.stepper--quiz .stepper-dot { cursor: default; }
.stepper--quiz .stepper-dot:hover { transform: none; }

.quiz-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-5);
}
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3);
  border: 0;
  padding: 0;
  margin: 0;
}
@media (max-width: 700px) {
  .quiz-options { grid-template-columns: 1fr; }
}
.quiz-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-4) var(--spacing-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.2s ease;
}
.quiz-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.quiz-option:hover {
  border-color: var(--border-default);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}
.quiz-option.is-selected {
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.08) 0%, rgba(124, 92, 252, 0.08) 100%);
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.35);
}
.quiz-option-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: all 0.2s ease;
}
.quiz-option.is-selected .quiz-option-marker {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  border-color: transparent;
  color: #fff;
}
.quiz-option-text {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-primary);
}

/* --- results page --- */
.section--result {
  padding-top: var(--spacing-7);
  padding-bottom: var(--spacing-6);
}

.results-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--spacing-7);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3);
  margin-bottom: var(--spacing-7);
}
.results-score-ring {
  position: relative;
  width: 160px;
  height: 160px;
}
.results-ring-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.results-ring-bg {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 8;
}
.results-ring-fill {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.results-score-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.results-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.results-message {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0;
}
.results-sub {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
}
.results-actions {
  display: flex;
  gap: var(--spacing-3);
  margin-top: var(--spacing-4);
  flex-wrap: wrap;
  justify-content: center;
}
.results-restart-form { margin: 0; }

.result-review-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--spacing-4);
}
.result-review {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}
.result-review-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--spacing-4) var(--spacing-5);
}
.result-review-item.is-correct {
  border-left-color: var(--accent-green);
}
.result-review-item.is-incorrect {
  border-left-color: #ff4757;
}
.result-review-head {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  margin-bottom: 10px;
}
.result-review-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}
.result-review-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
}
.result-review-item.is-correct .result-review-badge {
  background: rgba(0, 224, 168, 0.1);
  color: var(--accent-green);
}
.result-review-item.is-incorrect .result-review-badge {
  background: rgba(255, 71, 87, 0.1);
  color: #ff7a85;
}
.result-review-prompt {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--text-primary);
}
.result-review-answers {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0 0 10px;
  font-size: 13px;
}
.result-review-answers dt {
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.result-review-answers dd {
  margin: 0;
  color: var(--text-secondary);
}
.result-review-explanation {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.55;
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

/* --- Per-challenge result review --- */
.result-challenges {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}
.result-challenge {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--spacing-4) var(--spacing-5);
}
.result-challenge.is-perfect {
  border-left-color: var(--accent-green);
}
.result-challenge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-3);
  margin-bottom: var(--spacing-3);
  padding-bottom: var(--spacing-3);
  border-bottom: 1px dashed var(--border-subtle);
}
.result-challenge-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.result-challenge-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}
.result-challenge-score {
  text-align: right;
  flex-shrink: 0;
}
.result-challenge-score-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}
.result-challenge-score-label {
  display: block;
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ============================================================
   FINAL BATTLE · turn-based duel UI
   ============================================================ */
.battle-workbench {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 88% -8%, rgba(124, 92, 252, 0.10), transparent 55%),
    radial-gradient(circle at -8% 110%, rgba(0, 200, 255, 0.10), transparent 55%),
    var(--bg-surface);
  overflow: hidden;
}

.battle-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-4);
  padding: var(--spacing-5) var(--spacing-5) var(--spacing-4);
}

.battle-combatants {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--spacing-3);
  align-items: stretch;
}

.battle-combatant {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  padding: var(--spacing-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.battle-combatant--player {
  border-left: 3px solid var(--accent-pink, #ff5d8f);
}

.battle-combatant--opponent {
  border-left: 3px solid #00c8ff;
  align-items: flex-end;
  text-align: right;
}

.battle-combatant-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.battle-combatant--opponent .battle-combatant-head {
  align-items: flex-end;
}

.battle-combatant-kicker {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.battle-combatant--player .battle-combatant-kicker { color: #d34b75; }
.battle-combatant--opponent .battle-combatant-kicker { color: #1c8fc4; }

.battle-combatant-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.battle-combatant-portrait {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1376 / 768;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 80%, rgba(0, 200, 255, 0.10), transparent 65%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  overflow: visible;
}

.battle-combatant-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 220ms ease;
}

.battle-combatant.is-hit {
  animation: battle-shake 380ms ease;
}

@keyframes battle-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(3px); }
}

.battle-combatant-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.battle-float {
  position: absolute;
  left: 50%;
  top: 35%;
  transform: translate(-50%, 0);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #d34b75;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: battle-float 1.0s ease-out forwards;
  pointer-events: none;
  white-space: nowrap;
}
.battle-float--crit  { color: #ff3b6f; font-size: 32px; }
.battle-float--miss  { color: var(--text-tertiary); font-size: 18px; letter-spacing: 0.08em; }
.battle-float--heal  { color: #2bbb6e; }
.battle-float--progress { color: #d34b75; font-size: 22px; }
.battle-float--damage { color: #1c8fc4; }

@keyframes battle-float {
  0%   { transform: translate(-50%,  0);    opacity: 0;   }
  20%  { transform: translate(-50%, -10px); opacity: 1;   }
  100% { transform: translate(-50%, -56px); opacity: 0;   }
}

.battle-vs {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5d8f, #00c8ff);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Kill-chain progress strip (Red Team's objective tracker). Five
   tiles, one per phase. Each tile shows P# + label and an inline
   progress bar that fills as the player accumulates progress on
   that phase. data-tile-state controls cleared / active / pending. */
.battle-killchain {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 100%;
}

.battle-killchain-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.30);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 200ms ease, border-color 200ms ease, opacity 200ms ease;
  min-height: 56px;
  opacity: 0.55;
}
.battle-killchain-tile[data-tile-state="active"] {
  background: linear-gradient(180deg, rgba(255, 93, 143, 0.16), rgba(255, 93, 143, 0.05));
  border-color: rgba(255, 93, 143, 0.50);
  opacity: 1;
  box-shadow: 0 4px 18px rgba(255, 93, 143, 0.18);
}
.battle-killchain-tile[data-tile-state="cleared"] {
  background: linear-gradient(180deg, rgba(211, 75, 117, 0.20), rgba(211, 75, 117, 0.06));
  border-color: rgba(211, 75, 117, 0.55);
  opacity: 1;
}

.battle-killchain-num {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
}
.battle-killchain-tile[data-tile-state="active"] .battle-killchain-num,
.battle-killchain-tile[data-tile-state="cleared"] .battle-killchain-num {
  color: #d34b75;
}

.battle-killchain-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
}
.battle-killchain-tile[data-tile-state="active"] .battle-killchain-label,
.battle-killchain-tile[data-tile-state="cleared"] .battle-killchain-label {
  color: var(--text-primary);
}

.battle-killchain-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

.battle-killchain-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d34b75, #ff7e9c);
  transition: width 320ms ease;
}
.battle-killchain-tile[data-tile-state="cleared"] .battle-killchain-progress-fill {
  width: 100% !important;
  background: linear-gradient(90deg, #d34b75, #ff5a82);
}
.battle-killchain-tile[data-tile-state="cleared"]::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #d34b75;
}

/* Detection meter (Blue Team's countdown). One linear bar with a
   tick indicator at the IR threshold. is-mid / is-high / is-max
   are toggled by JS as detection climbs. */
.battle-detection {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.battle-detection-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--text-secondary);
}

.battle-detection-row--meta {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.battle-detection-label {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1c8fc4;
}

.battle-detection-text {
  font-weight: 700;
  color: var(--text-primary);
}
.battle-detection-current { color: var(--text-primary); }
.battle-detection-sep { color: var(--text-tertiary); padding: 0 2px; }
.battle-detection-max { color: var(--text-tertiary); }

.battle-detection-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.battle-detection-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00b1f0, #5fd8ff);
  transition: width 320ms ease, background 220ms ease;
}
.battle-detection-fill.is-mid {
  background: linear-gradient(90deg, #f5a524, #ffd16a);
}
.battle-detection-fill.is-high {
  background: linear-gradient(90deg, #ff5d8f, #ff8aab);
}
.battle-detection-fill.is-max {
  background: linear-gradient(90deg, #b03b62, #d34b75);
}

.battle-detection-meta { white-space: nowrap; }

.battle-posture {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.battle-posture-label {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.battle-posture-tile {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(0, 200, 255, 0.10), rgba(0, 200, 255, 0.04));
  border: 1px solid rgba(0, 200, 255, 0.30);
  min-width: 140px;
  cursor: help;
  outline: none;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.battle-posture-tile:hover,
.battle-posture-tile:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 200, 255, 0.35);
}

.battle-posture-tile[data-posture="patching"] {
  background: linear-gradient(180deg, rgba(43, 187, 110, 0.14), rgba(43, 187, 110, 0.04));
  border-color: rgba(43, 187, 110, 0.36);
}
.battle-posture-tile[data-posture="firewalled"] {
  background: linear-gradient(180deg, rgba(124, 92, 252, 0.14), rgba(124, 92, 252, 0.04));
  border-color: rgba(124, 92, 252, 0.36);
}
.battle-posture-tile[data-posture="hunting"] {
  background: linear-gradient(180deg, rgba(245, 165, 36, 0.14), rgba(245, 165, 36, 0.04));
  border-color: rgba(245, 165, 36, 0.40);
}
.battle-posture-tile[data-posture="honeypotting"] {
  background: linear-gradient(180deg, rgba(255, 93, 143, 0.14), rgba(255, 93, 143, 0.04));
  border-color: rgba(255, 93, 143, 0.36);
}

.battle-posture-kicker {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.battle-posture-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.battle-posture-name-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.battle-posture-info {
  flex-shrink: 0;
  color: var(--text-tertiary);
  opacity: 0.7;
  transition: opacity 160ms ease, color 160ms ease, transform 160ms ease;
}
.battle-posture-tile:hover .battle-posture-info,
.battle-posture-tile:focus-visible .battle-posture-info,
.battle-posture-tile:focus-within .battle-posture-info {
  opacity: 1;
  color: var(--accent);
  transform: scale(1.08);
}

.battle-posture-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: max-content;
  max-width: min(280px, 80vw);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 50;
}
.battle-posture-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 24px;
  width: 9px;
  height: 9px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-default);
  border-top: 1px solid var(--border-default);
  transform: rotate(45deg);
}
.battle-posture-tile:hover .battle-posture-tooltip,
.battle-posture-tile:focus .battle-posture-tooltip,
.battle-posture-tile:focus-visible .battle-posture-tooltip,
.battle-posture-tile:focus-within .battle-posture-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.battle-posture-blurb {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.battle-posture-hint-line {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.battle-log-wrap {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.025);
}

.battle-log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.03);
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease;
}
.battle-log-head:hover {
  background: rgba(0, 0, 0, 0.06);
}
.battle-log-head:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.battle-log-wrap[data-collapsed="false"] .battle-log-head {
  border-bottom: 1px solid var(--border-subtle);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.battle-log-head-left,
.battle-log-head-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.battle-log-kicker {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.battle-log-count {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.03);
}

.battle-log-turn {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.battle-log-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: transform 200ms ease, color 200ms ease;
}
.battle-log-wrap[data-collapsed="false"] .battle-log-chevron {
  transform: rotate(180deg);
  color: var(--text-secondary);
}

.battle-log {
  list-style: none;
  margin: 0;
  padding: 12px 14px 14px;
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.battle-log-wrap[data-collapsed="true"] .battle-log {
  display: none;
}

.battle-log-line strong { color: var(--text-primary); }
.battle-log-line em     { font-style: normal; font-weight: 700; color: var(--text-primary); }

.battle-log-line--intro { color: var(--text-tertiary); font-style: italic; }
.battle-log-line--crit  { color: #2bbb6e; }
.battle-log-line--weak  { color: #d34b75; }
.battle-log-line--miss  { color: var(--text-tertiary); }
.battle-log-line--opp   { color: #1c8fc4; }
.battle-log-line--recon { color: #7c5cfc; font-style: italic; }

.battle-moves-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.battle-moves-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--spacing-3);
}

.battle-moves-kicker {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.battle-moves-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

.battle-moves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.battle-move-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease,
              border-color 160ms ease, background 160ms ease;
  font: inherit;
}

.battle-move-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(124, 92, 252, 0.16);
}

.battle-move-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.battle-move-btn:disabled,
.battle-move-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.4);
}

.battle-move-btn[data-strength="strong"] {
  border-color: rgba(43, 187, 110, 0.55);
  background: linear-gradient(180deg, rgba(43, 187, 110, 0.07), transparent);
}
.battle-move-btn[data-strength="weak"] {
  border-color: rgba(211, 75, 117, 0.45);
  background: linear-gradient(180deg, rgba(211, 75, 117, 0.05), transparent);
}

.battle-move-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.battle-move-phase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(124, 92, 252, 0.18);
  color: var(--accent, #7c5cfc);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.battle-move-btn[data-strength="strong"] .battle-move-phase {
  background: rgba(43, 187, 110, 0.22);
  color: #1f8c52;
}

.battle-move-kicker {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.battle-move-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.battle-move-tagline {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.battle-move-strength {
  margin-top: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-tertiary);
}
.battle-move-strength[data-strength="strong"] {
  color: #1f8c52;
  background: rgba(43, 187, 110, 0.16);
}
.battle-move-strength[data-strength="weak"] {
  color: #b03b62;
  background: rgba(211, 75, 117, 0.14);
}

/* Victory / Defeat overlay */
.battle-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-5);
  background: rgba(15, 18, 26, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 5;
}
.battle-overlay.is-open { opacity: 1; }
.battle-overlay[hidden] { display: none; }

.battle-overlay-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-5) var(--spacing-5);
  max-width: 460px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 60px rgba(15, 18, 26, 0.32);
  transform: translateY(8px);
  transition: transform 280ms ease;
}
.battle-overlay.is-open .battle-overlay-card { transform: translateY(0); }

.battle-overlay-card[data-outcome="victory"] {
  border-top: 4px solid #2bbb6e;
}
.battle-overlay-card[data-outcome="defeat"] {
  border-top: 4px solid #d34b75;
}

.battle-overlay-kicker {
  display: inline-block;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.battle-overlay-card[data-outcome="victory"] .battle-overlay-kicker { color: #1f8c52; }
.battle-overlay-card[data-outcome="defeat"]  .battle-overlay-kicker { color: #b03b62; }

.battle-overlay-title {
  margin: 0 0 var(--spacing-2);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.battle-overlay-text {
  margin: 0 0 var(--spacing-4);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.battle-overlay-actions {
  display: flex;
  gap: var(--spacing-2);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Move showcase (in-battle; separate from victory overlay)
   Drives ~5s scenes for every player and opponent move.
   ============================================================ */
.battle-move-showcase {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  --bms-side: #ff5d8f;
  --bms-side-soft: rgba(255, 93, 143, 0.22);
  --bms-side-dim: rgba(255, 93, 143, 0.45);
}
.battle-move-showcase[data-battle-side="opponent"] {
  --bms-side: #00c8ff;
  --bms-side-soft: rgba(0, 200, 255, 0.20);
  --bms-side-dim: rgba(0, 200, 255, 0.45);
}
.battle-move-showcase.is-open {
  opacity: 1;
  pointer-events: auto;
}
.battle-move-showcase[hidden] {
  display: none !important;
}
.battle-move-showcase-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.battle-move-showcase-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 280ms ease, opacity 280ms ease;
  border-top: 3px solid var(--bms-side);
}
.battle-move-showcase.is-open .battle-move-showcase-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.battle-move-showcase-skip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
}
.battle-move-showcase-skip:hover {
  color: var(--text-primary);
  border-color: var(--border-default);
}
.battle-move-showcase-head {
  padding: 18px 56px 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg, var(--bms-side-soft), transparent 80%),
    transparent;
}
.battle-showcase-actor {
  display: flex;
  align-items: center;
  gap: 14px;
}
.battle-showcase-actor-portrait {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bms-side-dim);
  background:
    radial-gradient(circle at 50% 80%, var(--bms-side-soft), transparent 70%),
    rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.battle-showcase-actor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.battle-showcase-actor-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.battle-showcase-actor-line {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.battle-showcase-actor-line strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.battle-showcase-actor-verb {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
/* Once the result lands, drop the kicker pill and "uses" line so the
   header de-clutters and the user's eye is on the effectiveness banner. */
.battle-move-showcase[data-showcase-stage="result"] .battle-move-showcase-kicker,
.battle-move-showcase[data-showcase-stage="result"] .battle-showcase-actor-line {
  display: none;
}
.battle-move-showcase-kicker {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bms-side);
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bms-side-soft);
}
.battle-move-showcase-title {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.battle-move-showcase-stage {
  position: relative;
  min-height: 280px;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 50% -10%, var(--bms-side-soft), transparent 55%),
    rgba(0, 0, 0, 0.18);
  transition: filter 320ms ease, opacity 320ms ease;
}
/* When the result reveals, freeze the scene animations and dim it
   slightly so the user clearly registers "attack finished". */
.battle-move-showcase[data-showcase-stage="result"] .battle-move-showcase-stage {
  filter: brightness(0.55) saturate(0.7);
}
.battle-move-showcase[data-showcase-stage="result"] .battle-move-scene.is-playing,
.battle-move-showcase[data-showcase-stage="result"] .battle-move-scene.is-playing * {
  animation-play-state: paused !important;
}
.battle-move-scene {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 14px;
  bottom: 14px;
  box-sizing: border-box;
}
.battle-move-showcase .mono {
  font-family: var(--font-mono);
  font-size: 11px;
}
.battle-move-showcase .scene-ui {
  height: 100%;
  min-height: 252px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background: rgba(14, 18, 26, 0.98);
  overflow: hidden;
  position: relative;
}
.battle-move-showcase .scene-titlebar {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-subtle);
}

/* Mac-style window bar (used by most scenes) */
.scene-window-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-subtle);
}
.scene-window-bar--blue {
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.18), rgba(255, 255, 255, 0.04));
}
.scene-window-bar--in {
  background: linear-gradient(90deg, rgba(10, 102, 194, 0.18), rgba(255, 255, 255, 0.04));
}
.scene-window-bar--term {
  background: rgba(0, 0, 0, 0.55);
}
.scene-window-dots {
  display: inline-flex;
  gap: 5px;
}
.scene-window-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #555;
  display: inline-block;
}
.scene-window-dots i:nth-child(1) { background: #ff5f57; }
.scene-window-dots i:nth-child(2) { background: #febc2e; }
.scene-window-dots i:nth-child(3) { background: #28c840; }
.scene-window-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Result strip — hidden during attack play, revealed at the end */
.battle-move-showcase-result {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22)),
    rgba(0, 0, 0, 0.12);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 360ms ease, opacity 320ms ease 60ms,
              transform 360ms ease, padding 320ms ease;
  padding-top: 0;
  padding-bottom: 0;
}
.battle-move-showcase[data-showcase-stage="result"] .battle-move-showcase-result {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 16px;
  padding-bottom: 18px;
}
.battle-showcase-result-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  align-items: center;
  text-align: center;
}
.battle-showcase-effect {
  --effect-color: var(--text-secondary);
  --effect-bg: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--effect-color);
  background: var(--effect-bg);
  animation: bms_effect_pop 380ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.battle-showcase-effect-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--effect-color);
}
.battle-showcase-effect[data-tone="crit"] {
  --effect-color: #2bbb6e;
  --effect-bg: rgba(43, 187, 110, 0.14);
}
.battle-showcase-effect[data-tone="neutral"] {
  --effect-color: #d8e6ff;
  --effect-bg: rgba(255, 255, 255, 0.06);
}
.battle-showcase-effect[data-tone="weak"] {
  --effect-color: #ffb84d;
  --effect-bg: rgba(255, 184, 77, 0.12);
}
.battle-showcase-effect[data-tone="miss"] {
  --effect-color: #ff8a80;
  --effect-bg: rgba(255, 80, 80, 0.12);
}
.battle-showcase-effect[data-tone="defense"] {
  --effect-color: #1c8fc4;
  --effect-bg: rgba(0, 200, 255, 0.12);
}
.battle-showcase-effect[data-tone="ir"] {
  --effect-color: #ff8a80;
  --effect-bg: rgba(255, 60, 60, 0.16);
}
.battle-showcase-effect[data-tone="zero_day"] {
  --effect-color: #ffd166;
  --effect-bg: rgba(255, 209, 102, 0.16);
  border-width: 2px;
  box-shadow:
    0 0 0 4px rgba(255, 209, 102, 0.10),
    0 0 22px rgba(255, 209, 102, 0.45);
  animation:
    bms_effect_pop 380ms cubic-bezier(0.34, 1.56, 0.64, 1) both,
    bms_zeroday_glow 1.4s ease-in-out 380ms infinite alternate;
}
@keyframes bms_zeroday_glow {
  0%   { box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.10), 0 0 22px rgba(255, 209, 102, 0.45); }
  100% { box-shadow: 0 0 0 6px rgba(255, 209, 102, 0.16), 0 0 30px rgba(255, 209, 102, 0.65); }
}
.battle-showcase-jump-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #ffe4a1;
  background: rgba(255, 209, 102, 0.10);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 6px;
  padding: 8px 12px;
  max-width: 360px;
  text-align: center;
  line-height: 1.5;
}
.battle-showcase-jump-line strong {
  color: #ffd166;
  font-weight: 800;
}
@keyframes bms_effect_pop {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.battle-showcase-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.battle-showcase-verdict {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.battle-showcase-verdict.is-crit {
  color: #1f8c52;
  border-color: rgba(43, 187, 110, 0.45);
  background: rgba(43, 187, 110, 0.12);
}
.battle-showcase-verdict.is-neutral { color: var(--text-secondary); }
.battle-showcase-verdict.is-weak {
  color: #b03b62;
  border-color: rgba(211, 75, 117, 0.4);
  background: rgba(211, 75, 117, 0.1);
}
.battle-showcase-verdict.is-miss {
  color: var(--text-tertiary);
  border-style: dashed;
}
.battle-showcase-verdict.is-defense {
  color: #1c8fc4;
  border-color: rgba(0, 200, 255, 0.4);
  background: rgba(0, 200, 255, 0.10);
}
.battle-showcase-verdict.is-ir {
  color: #ff8a80;
  border-color: rgba(255, 60, 60, 0.45);
  background: rgba(255, 60, 60, 0.12);
  letter-spacing: 0.18em;
  animation: bms_ir_pill 1.6s ease-in-out infinite;
}
.battle-showcase-stat {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}
.battle-showcase-stat.is-good {
  color: #2bbb6e;
  border-color: rgba(43, 187, 110, 0.45);
  background: rgba(43, 187, 110, 0.12);
}
.battle-showcase-stat.is-bad {
  color: #ff8a80;
  border-color: rgba(255, 80, 80, 0.4);
  background: rgba(255, 80, 80, 0.1);
}
.battle-showcase-stat.is-muted {
  color: var(--text-tertiary);
  border-style: dashed;
  opacity: 0.85;
}
.battle-showcase-note {
  font-size: 12px;
  color: #2bbb6e;
  font-weight: 600;
}

/* ----- Generic fallback ----- */
.scene-ui--generic {
  align-items: center;
  justify-content: center;
  position: relative;
}
.scene-generic-pulse {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bms-side-soft), transparent 70%);
}
.scene-generic-label {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--bms-side);
}

/* --- Scene compositions --- */
.scene-li-rows {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scene-li-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  opacity: 0;
  transform: translateY(12px);
}
.scene-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #0a66c2;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scene-li-text { color: var(--text-primary); }
.scene-li-email { color: #7cb8ff; font-size: 10px; }
.scene-li-graph {
  height: 48px;
  margin: 0 12px 12px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 20% 60%, rgba(10, 102, 194, 0.35), transparent 45%),
    radial-gradient(circle at 70% 40%, rgba(124, 92, 252, 0.3), transparent 40%),
    rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: scale(0.92);
}

.scene-term {
  flex: 1;
  margin: 0;
  padding: 10px 12px;
  font-size: 10px;
  line-height: 1.55;
  color: #9bdc8f;
  background: #0d1117;
  overflow: hidden;
  transform: translateY(0);
}

.scene-job-cards {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scene-job-card {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0.35;
  filter: grayscale(0.4);
}
.scene-job-role { font-weight: 700; font-size: 12px; color: var(--text-primary); }
.scene-job-meta { font-size: 10px; color: var(--text-tertiary); }

.scene-mail-fields {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.scene-mail-k { color: var(--text-tertiary); margin-right: 6px; }
.scene-mail-body {
  min-height: 48px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
}
.scene-mail-attach {
  font-size: 10px;
  color: #d34b75;
}
.scene-mail-sent {
  padding: 8px 12px;
  text-align: center;
  color: #1f8c52;
  opacity: 0;
  transform: translateY(6px);
}

.scene-browser-bar {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  color: #9bdc8f;
  border-bottom: 1px solid var(--border-subtle);
}
.scene-browser-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.scene-lock { margin-right: 6px; }
.scene-wh-banner {
  padding: 10px;
  border-radius: 6px;
  background: rgba(211, 75, 117, 0.15);
  border: 1px dashed rgba(211, 75, 117, 0.45);
  font-size: 11px;
  color: var(--text-primary);
}
.scene-wh-script {
  font-size: 10px;
  color: #ff9f43;
  opacity: 0.4;
}

/* VPN credential sign-in scene (compromise_creds) */
.scene-ui--creds {
  position: relative;
  align-items: center;
  justify-content: center;
}
.scene-creds-card {
  position: relative;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 6px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scene-creds-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scene-creds-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #b30000;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.scene-creds-org {
  font-weight: 700;
  font-size: 13px;
  color: #1a1a1a;
}
.scene-creds-tagline {
  font-size: 9px;
  color: #6b7280;
  letter-spacing: 0.04em;
}
.scene-creds-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}
.scene-creds-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scene-creds-k {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}
.scene-creds-input {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background: #f8fafc;
  min-height: 22px;
  color: #111827;
  overflow: hidden;
}
.scene-creds-typed {
  white-space: nowrap;
  overflow: hidden;
}
.scene-creds-caret {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #1f2937;
  margin-left: 1px;
  opacity: 0;
}
.scene-creds-submit {
  align-self: flex-start;
  margin-top: 4px;
  padding: 5px 14px;
  border-radius: 3px;
  background: #b30000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: default;
  user-select: none;
}
.scene-creds-hibp {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(255, 184, 77, 0.18);
  border: 1px solid rgba(255, 159, 67, 0.45);
  color: #8a4a00;
  font-size: 9px;
  letter-spacing: 0.02em;
}
.scene-creds-hibp-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-weight: 800;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scene-creds-banner {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(43, 187, 110, 0.18);
  border: 1px solid rgba(43, 187, 110, 0.5);
  color: #6ddc9d;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
}
.scene-creds-banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2bbb6e;
  box-shadow: 0 0 6px #2bbb6e;
}

.scene-ui--fw {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.scene-fw-wall {
  width: 100%;
  text-align: center;
  padding: 24px 12px;
  border-radius: 8px;
  border: 2px solid rgba(0, 200, 255, 0.35);
  background: linear-gradient(180deg, rgba(0, 80, 120, 0.35), rgba(0, 20, 40, 0.6));
  font-size: 11px;
  color: #7ee8ff;
}
.scene-fw-packet {
  position: absolute;
  top: 50%;
  left: 6%;
  margin-top: -13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.22), rgba(124, 92, 252, 0.22));
  border: 1px solid rgba(255, 71, 87, 0.55);
  box-shadow: 0 0 16px rgba(255, 71, 87, 0.35);
  white-space: nowrap;
  opacity: 0;
  z-index: 4;
}
.scene-fw-breach {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.2em;
  color: #ff5d5d;
  text-shadow: 0 0 24px rgba(255, 60, 60, 0.8);
  z-index: 6;
  pointer-events: none;
}
.battle-move-showcase[data-battle-verdict="strong"] .scene-fw-breach {
  text-shadow: 0 0 36px rgba(255, 120, 80, 1);
}

.scene-doc-warn {
  padding: 12px;
  font-size: 11px;
  color: #ffc857;
}
.scene-doc-ribbon {
  margin: 0 12px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #c43e1c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
  transform: scale(0.95);
  opacity: 0.85;
}
.scene-macro-run {
  flex: 1;
  margin: 12px;
  padding: 10px;
  border-radius: 6px;
  background: #000;
  color: #ff6b6b;
  font-size: 10px;
  opacity: 0;
}

.scene-driveby {
  padding: 12px;
  color: var(--text-secondary);
  flex: 1;
}
.scene-driveby-bar {
  margin: 0 12px 12px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.scene-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c5cfc, #00c8ff);
}

.scene-net {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 8px;
  flex-wrap: wrap;
}
.scene-node {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.scene-edge {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}
.scene-edge--hop {
  background: linear-gradient(90deg, rgba(124, 92, 252, 0.2), rgba(124, 92, 252, 0.9));
  opacity: 0.25;
}
.scene-net-caption {
  text-align: center;
  padding: 8px;
  font-size: 10px;
  color: var(--text-tertiary);
}

.scene-sched {
  width: calc(100% - 24px);
  margin: 12px;
  border-collapse: collapse;
  font-size: 10px;
  color: var(--text-secondary);
}
.scene-sched th,
.scene-sched td {
  border: 1px solid var(--border-subtle);
  padding: 8px;
  text-align: left;
}
.scene-sched-row {
  opacity: 0;
  transform: translateY(6px);
}

.scene-c2-lines {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scene-c2-line {
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0.35;
}
.scene-c2-host {
  padding: 10px 12px;
  text-align: center;
  color: #ff6b6b;
  font-size: 11px;
  opacity: 0;
}

.scene-file-row {
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-secondary);
}
.scene-exfil-bar {
  margin: 4px 12px 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.scene-exfil-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2bbb6e, #00c8ff);
}

.scene-ransom-title {
  text-align: center;
  padding: 20px 12px 8px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ff3b5c;
  text-shadow: 0 0 20px rgba(255, 0, 60, 0.5);
}
.scene-ransom-body,
.scene-ransom-timer {
  text-align: center;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--text-secondary);
}

.scene-log {
  flex: 1;
  margin: 0;
  padding: 10px 12px;
  font-size: 10px;
  line-height: 1.5;
  color: #9bdc8f;
  background: #0a0e14;
  overflow: hidden;
}
.scene-log-shred {
  padding: 10px;
  text-align: center;
  font-size: 10px;
  color: #ff9f43;
  opacity: 0;
}

/* Keyframes (~5s per scene) */
@keyframes bms_li_in {
  0% { opacity: 0; transform: translateY(14px); }
  12% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes bms_li_graph {
  0%, 40% { opacity: 0; transform: scale(0.9); }
  55% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes bms_term_scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-42%); }
}
@keyframes bms_job_pick {
  0%, 30% { opacity: 0.35; filter: grayscale(0.4); }
  45% { opacity: 1; filter: none; border-color: rgba(43, 187, 110, 0.55); }
  100% { opacity: 1; filter: none; border-color: rgba(43, 187, 110, 0.55); }
}
@keyframes bms_mail_sent {
  0%, 55% { opacity: 0; transform: translateY(10px); }
  70% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes bms_script_blink {
  0%, 40% { opacity: 0.35; }
  45%, 55% { opacity: 1; color: #ff5d5d; }
  60%, 100% { opacity: 0.85; }
}
@keyframes bms_creds_type_user {
  0%   { clip-path: inset(0 100% 0 0); }
  20%  { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes bms_creds_type_pass {
  0%, 22% { clip-path: inset(0 100% 0 0); }
  44%     { clip-path: inset(0 0 0 0); }
  100%    { clip-path: inset(0 0 0 0); }
}
@keyframes bms_creds_caret_user {
  0%       { opacity: 0.85; transform: translateX(-2px); }
  20%      { opacity: 0; }
  100%     { opacity: 0; }
}
@keyframes bms_creds_caret_pass {
  0%, 22%  { opacity: 0; }
  24%, 42% { opacity: 0.85; }
  44%      { opacity: 0; }
  100%     { opacity: 0; }
}
@keyframes bms_creds_submit {
  0%, 48%   { transform: scale(1); box-shadow: none; filter: brightness(1); }
  52%, 60%  { transform: scale(0.96); filter: brightness(0.9); }
  62%       { transform: scale(1.04); box-shadow: 0 0 0 4px rgba(43,187,110,.18); filter: brightness(1.05); }
  72%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(43,187,110,0); filter: brightness(1); }
}
@keyframes bms_creds_banner {
  0%, 70%  { opacity: 0; transform: translateY(8px) scale(0.96); }
  80%      { opacity: 1; transform: translateY(0) scale(1.02); }
  100%     { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bms_fw_packet {
  0%   { opacity: 0; transform: translateX(0)    scale(0.85); filter: brightness(1); }
  8%   { opacity: 1; transform: translateX(20%)  scale(1);    filter: brightness(1); }
  30%  { opacity: 1; transform: translateX(180%) scale(1.05); filter: brightness(1.15); }
  35%  { opacity: 1; transform: translateX(230%) scale(1.15); filter: brightness(1.6); }
  37%  { opacity: 0; transform: translateX(240%) scale(0.4);  filter: brightness(2); }
  100% { opacity: 0; transform: translateX(240%) scale(0.4); }
}
@keyframes bms_fw_breach {
  0%, 60%  { opacity: 0; transform: translate(-50%, -50%) scale(0.25); }
  68%      { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  74%      { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100%     { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes bms_fw_impact {
  0%, 33%  { opacity: 0; transform: translate(-50%, -50%) scale(0); }
  37%      { opacity: 1; transform: translate(-50%, -50%) scale(1.6); }
  44%      { opacity: 0.55; transform: translate(-50%, -50%) scale(2.4); }
  52%      { opacity: 0; transform: translate(-50%, -50%) scale(2.7); }
  100%     { opacity: 0; }
}
@keyframes bms_fw_brick_break {
  0%, 35%  { background: linear-gradient(180deg, #3b6486, #233957); border-color: #4a6e96; box-shadow: inset 0 0 0 1px rgba(126, 232, 255, 0.15); opacity: 1; transform: translateY(0) rotate(0); }
  38%      { background: linear-gradient(180deg, #ffe7a0, #ff7a55); border-color: #ffb289; box-shadow: 0 0 18px rgba(255, 130, 60, 0.85), inset 0 0 0 1px rgba(255, 220, 160, 0.6); opacity: 1; transform: translateY(0) rotate(0); }
  46%      { background: linear-gradient(180deg, #ff8a6d, #b32b1c); border-color: #ff8a6d; box-shadow: 0 0 12px rgba(255, 80, 60, 0.7); opacity: 0.7; transform: translateY(4px) rotate(-3deg); }
  58%      { opacity: 0; transform: translateY(14px) rotate(-6deg); }
  100%     { opacity: 0; transform: translateY(14px) rotate(-6deg); }
}
@keyframes bms_fw_brick_break_alt {
  0%, 35%  { background: linear-gradient(180deg, #3b6486, #233957); border-color: #4a6e96; box-shadow: inset 0 0 0 1px rgba(126, 232, 255, 0.15); opacity: 1; transform: translateY(0) rotate(0); }
  38%      { background: linear-gradient(180deg, #ffe7a0, #ff7a55); border-color: #ffb289; box-shadow: 0 0 18px rgba(255, 130, 60, 0.85), inset 0 0 0 1px rgba(255, 220, 160, 0.6); opacity: 1; transform: translateY(0) rotate(0); }
  46%      { background: linear-gradient(180deg, #ff8a6d, #b32b1c); border-color: #ff8a6d; box-shadow: 0 0 12px rgba(255, 80, 60, 0.7); opacity: 0.7; transform: translateY(4px) rotate(3deg); }
  58%      { opacity: 0; transform: translateY(14px) rotate(6deg); }
  100%     { opacity: 0; transform: translateY(14px) rotate(6deg); }
}
@keyframes bms_fw_spark_a {
  0%, 33%  { opacity: 0; transform: translate(0, 0) scale(0.8); }
  37%      { opacity: 1; transform: translate(0, 0) scale(1.2); }
  60%      { opacity: 0; transform: translate(34px, -26px) scale(0.4); }
  100%     { opacity: 0; }
}
@keyframes bms_fw_spark_b {
  0%, 33%  { opacity: 0; transform: translate(0, 0) scale(0.8); }
  37%      { opacity: 1; transform: translate(0, 0) scale(1.2); }
  62%      { opacity: 0; transform: translate(-32px, -24px) scale(0.4); }
  100%     { opacity: 0; }
}
@keyframes bms_fw_spark_c {
  0%, 33%  { opacity: 0; transform: translate(0, 0) scale(0.8); }
  37%      { opacity: 1; transform: translate(0, 0) scale(1.2); }
  64%      { opacity: 0; transform: translate(38px, 16px) scale(0.4); }
  100%     { opacity: 0; }
}
@keyframes bms_fw_spark_d {
  0%, 33%  { opacity: 0; transform: translate(0, 0) scale(0.8); }
  37%      { opacity: 1; transform: translate(0, 0) scale(1.2); }
  62%      { opacity: 0; transform: translate(-30px, 22px) scale(0.4); }
  100%     { opacity: 0; }
}
@keyframes bms_fw_spark_e {
  0%, 33%  { opacity: 0; transform: translate(0, 0) scale(0.8); }
  37%      { opacity: 1; transform: translate(0, 0) scale(1.2); }
  66%      { opacity: 0; transform: translate(2px, -34px) scale(0.4); }
  100%     { opacity: 0; }
}
@keyframes bms_fw_spark_f {
  0%, 33%  { opacity: 0; transform: translate(0, 0) scale(0.8); }
  37%      { opacity: 1; transform: translate(0, 0) scale(1.2); }
  66%      { opacity: 0; transform: translate(0, 30px) scale(0.4); }
  100%     { opacity: 0; }
}
@keyframes bms_fw_stage2 {
  0%, 50%  { opacity: 0; transform: translateX(-14px); }
  62%      { opacity: 1; transform: translateX(0); }
  100%     { opacity: 1; transform: translateX(0); }
}
@keyframes bms_ribbon {
  0%, 20% { transform: scale(0.92); opacity: 0.6; }
  35% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes bms_macro {
  0%, 45% { opacity: 0; transform: translateY(8px); }
  60% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes bms_bar {
  0% { width: 0; }
  85% { width: 100%; }
  100% { width: 100%; }
}
@keyframes bms_net_hop {
  0%, 25% { opacity: 0.2; }
  40%, 55% { opacity: 1; box-shadow: 0 0 12px rgba(124, 92, 252, 0.8); }
  100% { opacity: 1; box-shadow: 0 0 8px rgba(124, 92, 252, 0.5); }
}
@keyframes bms_sched {
  0%, 30% { opacity: 0; transform: translateY(10px); }
  45% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes bms_c2_line {
  0%, 20% { opacity: 0.25; }
  35%, 100% { opacity: 1; }
}
@keyframes bms_c2_host {
  0%, 50% { opacity: 0; }
  65% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes bms_ransom_pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
@keyframes bms_log_shred {
  0%, 60% { opacity: 0; }
  75% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes bms_log_fade {
  0%, 55% { opacity: 1; filter: none; }
  85% { opacity: 0.15; filter: blur(1px); }
  100% { opacity: 0.1; filter: blur(2px); }
}
@keyframes bms_generic_pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.battle-move-scene.is-playing[data-scene-id="recon_linkedin"] .scene-li-row:nth-child(1) {
  animation: bms_li_in 5s linear both;
}
.battle-move-scene.is-playing[data-scene-id="recon_linkedin"] .scene-li-row:nth-child(2) {
  animation: bms_li_in 5s linear both;
  animation-delay: 0.35s;
}
.battle-move-scene.is-playing[data-scene-id="recon_linkedin"] .scene-li-row:nth-child(3) {
  animation: bms_li_in 5s linear both;
  animation-delay: 0.7s;
}
.battle-move-scene.is-playing[data-scene-id="recon_linkedin"] .scene-li-graph {
  animation: bms_li_graph 5s linear both;
}

.battle-move-scene.is-playing[data-scene-id="recon_subdomain"] .scene-term {
  animation: bms_term_scroll 5s linear both;
}

.battle-move-scene.is-playing[data-scene-id="recon_jobboard"] .scene-job-card:nth-child(1) {
  animation: bms_job_pick 5s linear both;
}
.battle-move-scene.is-playing[data-scene-id="recon_jobboard"] .scene-job-card:nth-child(2) {
  animation: bms_job_pick 5s linear both;
  animation-delay: 0.4s;
}
.battle-move-scene.is-playing[data-scene-id="recon_jobboard"] .scene-job-card:nth-child(3) {
  animation: bms_job_pick 5s linear both;
  animation-delay: 0.8s;
}

.battle-move-scene.is-playing[data-scene-id="deliver_phish"] .scene-mail-sent {
  animation: bms_mail_sent 5s linear both;
}

.battle-move-scene.is-playing[data-scene-id="deliver_waterhole"] .scene-wh-script {
  animation: bms_script_blink 5s linear both;
}

.battle-move-scene.is-playing[data-scene-id="compromise_creds"] .scene-creds-typed[data-typed="username"] {
  animation: bms_creds_type_user 5s linear both;
}
.battle-move-scene.is-playing[data-scene-id="compromise_creds"] .scene-creds-typed[data-typed="password"] {
  animation: bms_creds_type_pass 5s linear both;
}
.battle-move-scene.is-playing[data-scene-id="compromise_creds"] .scene-creds-caret[data-caret="username"] {
  animation: bms_creds_caret_user 5s linear both;
}
.battle-move-scene.is-playing[data-scene-id="compromise_creds"] .scene-creds-caret[data-caret="password"] {
  animation: bms_creds_caret_pass 5s linear both;
}
.battle-move-scene.is-playing[data-scene-id="compromise_creds"] .scene-creds-submit {
  animation: bms_creds_submit 5s ease-out both;
}
.battle-move-scene.is-playing[data-scene-id="compromise_creds"] .scene-creds-banner {
  animation: bms_creds_banner 5s ease-out both;
}

.battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-packet {
  animation: bms_fw_packet 5s cubic-bezier(0.5, 0, 0.5, 1) both;
}
.battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-impact {
  animation: bms_fw_impact 5s ease-out both;
}
.battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-brick--target:nth-of-type(odd) {
  animation: bms_fw_brick_break 5s ease-out both;
}
.battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-brick--target:nth-of-type(even) {
  animation: bms_fw_brick_break_alt 5s ease-out both;
}
.battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-sparks i:nth-child(1) { animation: bms_fw_spark_a 5s ease-out both; }
.battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-sparks i:nth-child(2) { animation: bms_fw_spark_b 5s ease-out both; }
.battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-sparks i:nth-child(3) { animation: bms_fw_spark_c 5s ease-out both; }
.battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-sparks i:nth-child(4) { animation: bms_fw_spark_d 5s ease-out both; }
.battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-sparks i:nth-child(5) { animation: bms_fw_spark_e 5s ease-out both; }
.battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-sparks i:nth-child(6) { animation: bms_fw_spark_f 5s ease-out both; }
.battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-stage2 {
  animation: bms_fw_stage2 5s ease-out both;
}
.battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-breach {
  animation: bms_fw_breach 5s ease-out both;
}

.battle-move-scene.is-playing[data-scene-id="compromise_macro"] .scene-doc-ribbon {
  animation: bms_ribbon 5s linear both;
}
.battle-move-scene.is-playing[data-scene-id="compromise_macro"] .scene-macro-run {
  animation: bms_macro 5s linear both;
}

.battle-move-scene.is-playing[data-scene-id="compromise_persist"] .scene-sched-row {
  animation: bms_sched 5s linear both;
}

.battle-move-scene.is-playing[data-scene-id="escalate_cred_hunt"] .scene-term-found,
.battle-move-scene.is-playing[data-scene-id="escalate_imds"] .scene-term-found,
.battle-move-scene.is-playing[data-scene-id="escalate_assume_role"] .scene-driveby-banner {
  animation: bms_blink 1.4s ease-in-out 2;
  animation-delay: 1.2s;
}
.battle-move-scene.is-playing[data-scene-id="escalate_assume_role"] .scene-bar-fill {
  animation: bms_bar 5s linear both;
}

.battle-move-scene.is-playing[data-scene-id="exfil_data"] .scene-exfil-fill {
  animation: bms_bar 5s linear both;
}

.battle-move-scene.is-playing[data-scene-id="exfil_ransom"] .scene-ransom-title {
  animation: bms_ransom_pulse 5s ease-in-out both;
}

.battle-move-scene.is-playing[data-scene-id="exfil_wipe"] .scene-log {
  animation: bms_log_fade 5s linear both;
}
.battle-move-scene.is-playing[data-scene-id="exfil_wipe"] .scene-log-shred {
  animation: bms_log_shred 5s linear both;
}

.battle-move-scene.is-playing[data-scene-id="generic"] .scene-generic-label {
  animation: bms_generic_pulse 5s ease-in-out both;
}

@media (prefers-reduced-motion: reduce) {
  .battle-move-showcase,
  .battle-move-showcase-card,
  .battle-move-showcase * {
    animation: none !important;
    transition: none !important;
  }
  .battle-move-showcase.is-open,
  .battle-move-showcase.is-open .battle-move-showcase-card {
    opacity: 1;
    transform: none;
  }
  .battle-move-scene.is-playing .scene-li-row,
  .battle-move-scene.is-playing .scene-li-graph,
  .battle-move-scene.is-playing .scene-mail-sent,
  .battle-move-scene.is-playing .scene-creds-banner,
  .battle-move-scene.is-playing .scene-creds-submit,
  .battle-move-scene.is-playing .scene-fw-packet,
  .battle-move-scene.is-playing .scene-fw-breach,
  .battle-move-scene.is-playing .scene-fw-stage2,
  .battle-move-scene.is-playing .scene-macro-run,
  .battle-move-scene.is-playing .scene-c2-host,
  .battle-move-scene.is-playing .scene-log-shred {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-impact,
  .battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-sparks i,
  .battle-move-scene.is-playing[data-scene-id="deliver_zeroday"] .scene-fw-brick--target {
    opacity: 0 !important;
  }
  .battle-move-scene.is-playing .scene-job-card {
    opacity: 1 !important;
    filter: none !important;
    border-color: rgba(43, 187, 110, 0.55);
  }
  .battle-move-scene.is-playing .scene-wh-script {
    opacity: 0.9 !important;
  }
  .battle-move-scene.is-playing .scene-bar-fill,
  .battle-move-scene.is-playing .scene-exfil-fill {
    width: 100% !important;
  }
  .battle-move-scene.is-playing .scene-edge--hop {
    opacity: 1 !important;
    box-shadow: 0 0 8px rgba(124, 92, 252, 0.5);
  }
  .battle-move-scene.is-playing .scene-c2-line {
    opacity: 1 !important;
  }
  .battle-move-scene.is-playing .scene-sched-row {
    opacity: 1 !important;
    transform: none !important;
  }
  .battle-move-scene.is-playing .scene-term {
    transform: none !important;
  }
  .battle-move-scene.is-playing .scene-log {
    opacity: 0.35 !important;
    filter: none !important;
  }
}

/* Enhanced scene system (red + blue team) */
.battle-move-showcase .scene-li-search,
.battle-move-showcase .scene-term-body,
.battle-move-showcase .scene-job-cards,
.battle-move-showcase .scene-mail-fields,
.battle-move-showcase .scene-browser-body,
.battle-move-showcase .scene-driveby-body,
.battle-move-showcase .scene-exfil-rows,
.battle-move-showcase .scene-honey-alerts,
.battle-move-showcase .scene-hunt-results,
.battle-move-showcase .scene-dlp-rules,
.battle-move-showcase .scene-ir-checklist {
  padding: 10px 12px;
}

/* ============================================================
   LinkedIn-themed Recon scene (data-scene-id=recon_linkedin)
   ============================================================ */
.battle-move-showcase .scene-ui--li {
  background: #1a1a1a;
}
.battle-move-showcase .scene-ui--li .scene-li-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #1f1f1f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}
.battle-move-showcase .scene-ui--li .scene-li-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #0a66c2;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 13px;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.battle-move-showcase .scene-ui--li .scene-li-search {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: 4px;
  color: #c9c9c9;
}
.battle-move-showcase .scene-ui--li .scene-li-search-icon {
  color: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.battle-move-showcase .scene-ui--li .scene-li-search-text {
  color: rgba(255, 255, 255, 0.85);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.battle-move-showcase .scene-ui--li .scene-li-caret {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #c9c9c9;
  margin-left: 1px;
  opacity: 0.7;
}
.battle-move-showcase .scene-ui--li .scene-li-navicon {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.battle-move-showcase .scene-ui--li .scene-li-bell-dot {
  position: absolute;
  top: 1px; right: 1px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #cd201f;
}
.battle-move-showcase .scene-ui--li .scene-li-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 10px;
}
.battle-move-showcase .scene-ui--li .scene-li-filter {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  white-space: nowrap;
}
.battle-move-showcase .scene-ui--li .scene-li-filter--active {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
  font-weight: 600;
}
.battle-move-showcase .scene-ui--li .scene-li-rows {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #1a1a1a;
}
.battle-move-showcase .scene-ui--li .scene-li-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
}
.battle-move-showcase .scene-ui--li .scene-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a66c2, #1577d0);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Helvetica, Arial, sans-serif;
  flex-shrink: 0;
}
.battle-move-showcase .scene-ui--li .scene-li-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.battle-move-showcase .scene-ui--li .scene-li-name {
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  font-family: Helvetica, Arial, sans-serif;
}
.battle-move-showcase .scene-ui--li .scene-li-degree {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
.battle-move-showcase .scene-ui--li .scene-li-role {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}
.battle-move-showcase .scene-ui--li .scene-li-email {
  color: #70b5f9;
  font-size: 9px;
}
.battle-move-showcase .scene-ui--li .scene-li-connect {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #70b5f9;
  color: #70b5f9;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  font-family: Helvetica, Arial, sans-serif;
}
.battle-move-showcase .scene-ui--li .scene-li-banner {
  margin-top: auto;
  padding: 6px 12px;
  background: rgba(10, 102, 194, 0.16);
  border-top: 1px solid rgba(10, 102, 194, 0.35);
  color: #b5d8ff;
  font-size: 10px;
  text-align: center;
}

/* ============================================================
   Outlook-themed Phish scene (data-scene-id=deliver_phish)
   ============================================================ */
.battle-move-showcase .scene-ui--outlook {
  background: #1a1a1a;
}
.battle-move-showcase .scene-ui--outlook .scene-outlook-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #0078d4;
  color: #fff;
  flex: 0 0 auto;
}
.battle-move-showcase .scene-ui--outlook .scene-outlook-titleicon {
  display: inline-flex;
  align-items: center;
  color: #fff;
  flex-shrink: 0;
}
.battle-move-showcase .scene-ui--outlook .scene-outlook-title {
  flex: 1 1 0;
  min-width: 0;
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.battle-move-showcase .scene-ui--outlook .scene-outlook-titlebtns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}
.battle-move-showcase .scene-ui--outlook .scene-outlook-titlebtn {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.battle-move-showcase .scene-ui--outlook .scene-outlook-titlebtn--close:hover {
  background: #c43e1c;
}
.battle-move-showcase .scene-ui--outlook .scene-outlook-ribbon {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 10px;
  background: #f3f2f1;
  border-bottom: 1px solid #e1dfdd;
  flex: 0 0 auto;
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}
.battle-move-showcase .scene-ui--outlook .scene-outlook-tab {
  padding: 6px 10px;
  font-size: 10px;
  color: #323130;
  border-bottom: 2px solid transparent;
}
.battle-move-showcase .scene-ui--outlook .scene-outlook-tab--active {
  color: #0078d4;
  font-weight: 600;
  border-bottom-color: #0078d4;
  background: #fff;
}
.battle-move-showcase .scene-ui--outlook .scene-outlook-actionbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #faf9f8;
  border-bottom: 1px solid #e1dfdd;
  flex: 0 0 auto;
}
.battle-move-showcase .scene-ui--outlook .scene-mail-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 2px;
  background: #0078d4;
  border: 1px solid #006cbd;
  color: #fff;
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}
.battle-move-showcase .scene-ui--outlook .scene-outlook-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #605e5c;
  font-size: 11px;
  font-weight: 700;
}
.battle-move-showcase .scene-ui--outlook .scene-mail-fields {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  padding: 8px 12px;
  background: #fff;
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  gap: 4px;
}
.battle-move-showcase .scene-ui--outlook .scene-mail-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid #f3f2f1;
  font-size: 11px;
  color: #323130;
}
.battle-move-showcase .scene-ui--outlook .scene-mail-k {
  width: 50px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #605e5c;
}
.battle-move-showcase .scene-ui--outlook .scene-mail-recipient {
  display: inline-block;
  padding: 1px 8px 1px 22px;
  border-radius: 2px;
  background: #deecf9;
  border: 1px solid #c7e0f4;
  color: #0078d4;
  font-weight: 600;
  position: relative;
}
.battle-move-showcase .scene-ui--outlook .scene-mail-recipient::before {
  content: '';
  position: absolute;
  left: 4px; top: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #0078d4;
  transform: translateY(-50%);
}
.battle-move-showcase .scene-ui--outlook .scene-mail-empty { color: #c8c6c4; }
.battle-move-showcase .scene-ui--outlook .scene-mail-typed {
  color: #323130;
  font-weight: 600;
}
.battle-move-showcase .scene-ui--outlook .scene-mail-caret {
  background: #323130;
}
.battle-move-showcase .scene-ui--outlook .scene-mail-body {
  margin-top: 6px;
  padding: 8px 0;
  background: transparent;
  color: #323130;
  font-size: 11px;
  line-height: 1.5;
  border: none;
}
.battle-move-showcase .scene-ui--outlook .scene-mail-attach {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 2px;
  background: #f3f2f1;
  border: 1px solid #c7c6c4;
  color: #323130;
  font-size: 10px;
}
.battle-move-showcase .scene-ui--outlook .scene-mail-attach-icon {
  display: inline-flex;
  align-items: center;
  color: #c43e1c;
}
.battle-move-showcase .scene-ui--outlook .scene-mail-sent {
  padding: 6px 12px;
  text-align: center;
  background: #dff6dd;
  color: #107c10;
  font-weight: 600;
  border-top: 1px solid #c8e6c9;
}
.battle-move-showcase .scene-ui--outlook .scene-mail-envelope {
  position: absolute;
  right: 14px; bottom: 50px;
  font-size: 24px;
  color: #0078d4;
  opacity: 0;
}

/* ============================================================
   Word-themed Macro scene (data-scene-id=compromise_macro)
   ============================================================ */
.battle-move-showcase .scene-ui--word {
  background: #fafafa;
}
.battle-move-showcase .scene-ui--word .scene-word-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: #2b579a;
  color: #fff;
  flex: 0 0 auto;
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}
.battle-move-showcase .scene-ui--word .scene-word-icon {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  background: #fff;
  color: #2b579a;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  flex-shrink: 0;
}
.battle-move-showcase .scene-ui--word .scene-word-title {
  flex: 1 1 0;
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.battle-move-showcase .scene-ui--word .scene-word-titlebtns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}
.battle-move-showcase .scene-ui--word .scene-word-titlebtn {
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.battle-move-showcase .scene-ui--word .scene-word-ribbon {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 10px;
  background: #f3f2f1;
  border-bottom: 1px solid #e1dfdd;
  flex: 0 0 auto;
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}
.battle-move-showcase .scene-ui--word .scene-word-tab {
  padding: 5px 9px;
  font-size: 10px;
  color: #323130;
  border-bottom: 2px solid transparent;
}
.battle-move-showcase .scene-ui--word .scene-word-tab--active {
  color: #2b579a;
  font-weight: 600;
  border-bottom-color: #2b579a;
  background: #fff;
}
/* Word security warning bar — yellow/amber */
.battle-move-showcase .scene-ui--word .scene-word-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff4ce;
  border-bottom: 1px solid #f4c33d;
  color: #5c4515;
  flex: 0 0 auto;
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}
.battle-move-showcase .scene-ui--word .scene-word-warning-icon {
  display: inline-flex;
  color: #d83b01;
  flex-shrink: 0;
}
.battle-move-showcase .scene-ui--word .scene-word-warning .scene-doc-warn {
  flex: 1;
  padding: 0;
  margin: 0;
  font-size: 11px;
  color: #5c4515;
}
.battle-move-showcase .scene-ui--word .scene-word-warning .scene-doc-warn strong {
  color: #d83b01;
  font-weight: 700;
}
.battle-move-showcase .scene-ui--word .scene-word-warning .scene-doc-ribbon-btn {
  margin: 0;
  padding: 4px 10px;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #c8c6c4;
  color: #323130;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  width: auto;
}
.battle-move-showcase .scene-ui--word .scene-word-warning .scene-doc-cursor {
  position: absolute;
  right: 22px;
  top: 92px;
  color: #323130;
  font-size: 10px;
  opacity: 0;
}
.battle-move-showcase .scene-ui--word .scene-word-page {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  margin: 8px 14px 0;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e1dfdd;
  border-bottom: none;
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
}
.battle-move-showcase .scene-ui--word .scene-word-page-head {
  font-size: 10px;
  color: #2b579a;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.battle-move-showcase .scene-ui--word .scene-doc-line {
  height: 4px;
  border-radius: 999px;
  background: #e1dfdd;
  margin: 6px 0 0;
}
.battle-move-showcase .scene-ui--word .scene-doc-line--short { width: 65%; }
.battle-move-showcase .scene-ui--word .scene-doc-shell {
  margin: 0 14px 8px;
  padding: 6px 8px;
  border-radius: 0 0 4px 4px;
  background: #1e1e1e;
  border: 1px solid #1e1e1e;
  border-top: 2px solid #d83b01;
}
.battle-move-showcase .scene-ui--word .scene-doc-shell-line {
  color: #ff8f8f;
  font-size: 9px;
  opacity: 0;
  transform: translateY(8px);
}
.battle-move-showcase .scene-li-meta { display: flex; flex-direction: column; gap: 2px; }
.battle-move-showcase .scene-li-name { color: var(--text-primary); font-weight: 700; font-size: 12px; }
.battle-move-showcase .scene-li-role { color: var(--text-secondary); font-size: 11px; }
.battle-move-showcase .scene-li-banner,
.battle-move-showcase .scene-job-banner,
.battle-move-showcase .scene-exfil-banner,
.battle-move-showcase .scene-patch-banner,
.battle-move-showcase .scene-dlp-banner,
.battle-move-showcase .scene-sched-footnote {
  font-size: 10px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 12px;
}
.battle-move-showcase .scene-li-node,
.battle-move-showcase .scene-li-edge { position: absolute; }
.battle-move-showcase .scene-li-graph { position: relative; }
.battle-move-showcase .scene-li-node {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7cb8ff; opacity: .3;
}
.battle-move-showcase .scene-li-node--1 { left: 12%; top: 56%; }
.battle-move-showcase .scene-li-node--2 { left: 35%; top: 34%; }
.battle-move-showcase .scene-li-node--3 { left: 62%; top: 64%; }
.battle-move-showcase .scene-li-node--4 { left: 84%; top: 38%; }
.battle-move-showcase .scene-li-edge {
  height: 2px; background: rgba(124, 184, 255, .25);
  transform-origin: left center;
}
.battle-move-showcase .scene-li-edge--a { left: 14%; top: 58%; width: 22%; transform: rotate(-24deg); }
.battle-move-showcase .scene-li-edge--b { left: 37%; top: 36%; width: 30%; transform: rotate(24deg); }
.battle-move-showcase .scene-li-edge--c { left: 65%; top: 64%; width: 22%; transform: rotate(-30deg); }

.battle-move-showcase .scene-term-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #0b1118;
  overflow: hidden;
}
.battle-move-showcase .scene-term-line {
  color: #9bdc8f;
  font-size: 10px;
  line-height: 1.4;
  opacity: .35;
  transform: translateY(8px);
}
.battle-move-showcase .scene-term-found { color: #63e6be; }
.battle-move-showcase .scene-term-cursor { color: #d8e6ff; margin-top: auto; }
.battle-move-showcase .scene-term-caret {
  display: inline-block; width: 8px; height: 11px; background: #d8e6ff;
}

.battle-move-showcase .scene-job-card { position: relative; }
.battle-move-showcase .scene-job-leak { color: #89c2ff; opacity: 0; }
.battle-move-showcase .scene-mail-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 11px;
}
.battle-move-showcase .scene-mail-k {
  width: 46px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.battle-move-showcase .scene-mail-typed { color: #ffe5aa; position: relative; }
.battle-move-showcase .scene-mail-caret {
  display: inline-block; width: 7px; height: 12px; background: #ffe5aa;
  vertical-align: -2px;
}
.battle-move-showcase .scene-mail-actions { padding: 0 12px 8px; }
.battle-move-showcase .scene-mail-send-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 200, 255, 0.14);
  border: 1px solid rgba(0, 200, 255, 0.4);
  color: #8de8ff;
}
.battle-move-showcase .scene-mail-envelope {
  position: absolute;
  right: 14px; bottom: 58px;
  font-size: 26px; opacity: 0;
}

.battle-move-showcase .scene-wh-article { display: flex; flex-direction: column; gap: 8px; }
.battle-move-showcase .scene-wh-h1 { color: var(--text-primary); font-weight: 700; font-size: 13px; }
.battle-move-showcase .scene-wh-line { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); }
.battle-move-showcase .scene-wh-line--short { width: 65%; }

.battle-move-showcase .scene-ui--creds {
  padding: 24px;
  background: linear-gradient(180deg, #142136 0%, #0e1623 100%);
}
.battle-move-showcase .scene-creds-card {
  width: 88%;
  max-width: 360px;
}

.battle-move-showcase .scene-fw-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.battle-move-showcase .scene-fw-side {
  position: absolute;
  top: 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(126, 232, 255, 0.28);
  background: rgba(0, 30, 50, 0.6);
  color: rgba(126, 232, 255, 0.75);
  z-index: 2;
}
.battle-move-showcase .scene-fw-side--in { left: 14px; }
.battle-move-showcase .scene-fw-side--out {
  right: 14px;
  color: rgba(255, 138, 138, 0.7);
  border-color: rgba(255, 100, 100, 0.32);
  background: rgba(50, 12, 12, 0.55);
}
.battle-move-showcase .scene-fw-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: min(82%, 460px);
  margin: 40px auto 0;
  z-index: 1;
}
.battle-move-showcase .scene-fw-brick {
  display: block;
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(180deg, #2f4f74, #1d2e47);
  border: 1px solid #35527a;
  transform-origin: 50% 100%;
}
.battle-move-showcase .scene-fw-brick--target {
  background: linear-gradient(180deg, #3b6486, #233957);
  border-color: #4a6e96;
  box-shadow: inset 0 0 0 1px rgba(126, 232, 255, 0.15);
}
.battle-move-showcase .scene-fw-label { text-align: center; margin-top: 10px; color: #8ec9ff; font-size: 10px; z-index: 1; }

/* Packet redesign — branded 0day capsule */
.battle-move-showcase .scene-fw-packet-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 71, 87, 0.78);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.battle-move-showcase .scene-fw-packet-cve {
  font-size: 10px;
  color: #ffd9d9;
  letter-spacing: 0.04em;
}
.battle-move-showcase .scene-fw-trail {
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -1px;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 100, 0.0) 0%, rgba(255, 200, 80, 0.85) 75%, #fff 100%);
  border-radius: 999px;
  filter: blur(0.4px);
  pointer-events: none;
}

/* Impact flash — bright burst at point of contact */
.battle-move-showcase .scene-fw-impact {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #ffe082 28%, rgba(255,140,40,0.55) 55%, transparent 75%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}

/* Sparks — radial ember particles */
.battle-move-showcase .scene-fw-sparks {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  z-index: 5;
  pointer-events: none;
}
.battle-move-showcase .scene-fw-sparks i {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 8px rgba(255, 200, 100, 0.85);
  opacity: 0;
}

/* Stage-2 reverse shell text — emerges through the breach */
.battle-move-showcase .scene-fw-stage2 {
  position: absolute;
  top: 50%;
  left: 56%;
  margin-top: -10px;
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 4px;
  background: rgba(43, 187, 110, 0.16);
  border: 1px solid rgba(43, 187, 110, 0.5);
  color: #8aef9a;
  white-space: nowrap;
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}
.battle-move-showcase[data-battle-verdict="strong"] .scene-fw-breach {
  text-shadow: 0 0 40px rgba(255,120,80,1);
}

.battle-move-showcase .scene-doc-ribbon-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 193, 7, .14);
}
.battle-move-showcase .scene-doc-cursor { position: absolute; right: 18px; top: 36px; opacity: 0; }
.battle-move-showcase .scene-doc-line { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); margin: 8px 12px 0; }
.battle-move-showcase .scene-doc-line--short { width: 65%; }
.battle-move-showcase .scene-doc-shell { margin: 10px 12px 12px; padding: 8px; border-radius: 6px; background: #070b11; }
.battle-move-showcase .scene-doc-shell-line { color: #ff8f8f; font-size: 10px; opacity: 0; transform: translateY(8px); }

.battle-move-showcase .scene-driveby-stack { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.battle-move-showcase .scene-driveby-line { color: #9db2ce; font-size: 10px; opacity: .3; transform: translateX(-8px); }
.battle-move-showcase .scene-driveby-banner {
  margin-top: 10px;
  font-size: 10px;
  color: #9bf3d2;
  border: 1px solid rgba(43,187,110,.35);
  border-radius: 6px;
  padding: 6px 8px;
  opacity: 0;
}

.battle-move-showcase .scene-net {
  position: relative;
  flex: 1;
  min-height: 154px;
}
.battle-move-showcase .scene-net-node {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 72px;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.05);
}
.battle-move-showcase .scene-net-node--a { left: 10%; top: 22%; }
.battle-move-showcase .scene-net-node--b { left: 42%; top: 56%; }
.battle-move-showcase .scene-net-node--c { right: 10%; top: 24%; }
.battle-move-showcase .scene-net-icon { font-size: 16px; }
.battle-move-showcase .scene-net-label { font-size: 10px; color: var(--text-secondary); }
.battle-move-showcase .scene-net-edge {
  position: absolute; height: 2px; background: rgba(255,255,255,.2);
}
.battle-move-showcase .scene-net-edge--ab { left: 25%; top: 46%; width: 23%; transform: rotate(24deg); }
.battle-move-showcase .scene-net-edge--bc { left: 56%; top: 48%; width: 23%; transform: rotate(-24deg); }
.battle-move-showcase .scene-net-packet {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: #7c5cfc; box-shadow: 0 0 14px rgba(124,92,252,.8);
  left: 25%; top: 46%;
}

.battle-move-showcase .scene-sched { width: calc(100% - 24px); margin: 10px 12px 0; border-collapse: collapse; }
.battle-move-showcase .scene-sched thead th { background: rgba(255,255,255,.05); }
.battle-move-showcase .scene-sched th,
.battle-move-showcase .scene-sched td { border: 1px solid var(--border-subtle); padding: 6px 8px; font-size: 10px; color: var(--text-secondary); }
.battle-move-showcase .scene-sched-row--new { opacity: 0; transform: translateY(8px); }
.battle-move-showcase .scene-sched-pill {
  display: inline-block; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.08);
}
.battle-move-showcase .scene-sched-pill--new { color: #83f7b8; background: rgba(43,187,110,.15); }

.battle-move-showcase .scene-c2-map {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px;
}
.battle-move-showcase .scene-c2-map-arrow {
  width: 56px; height: 2px; background: linear-gradient(90deg, rgba(124,92,252,.2), rgba(124,92,252,.9));
}
.battle-move-showcase .scene-c2-map-pulse {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: #7c5cfc; left: calc(50% - 6px); top: 46px;
}
.battle-move-showcase .scene-c2-timeline {
  display: flex; gap: 6px; justify-content: center; padding: 0 12px;
}
.battle-move-showcase .scene-c2-tick {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18);
}

.battle-move-showcase .scene-exfil-row {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 10px;
  margin-bottom: 8px;
}
.battle-move-showcase .scene-exfil-name { color: var(--text-primary); }
.battle-move-showcase .scene-exfil-meta { color: var(--text-tertiary); }

.battle-move-showcase .scene-ransom-glitch {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,0,60,.08), rgba(255,0,60,.08) 2px, transparent 2px, transparent 6px);
  opacity: .35;
}
.battle-move-showcase .scene-ransom-skull {
  text-align: center;
  font-size: 36px;
  margin-top: 14px;
  color: #ff6b6b;
}
.battle-move-showcase .scene-ransom-meta { text-align: center; color: #ffc2c2; }
.battle-move-showcase .scene-ransom-timer-row {
  display: flex; justify-content: center; gap: 8px; align-items: center; margin-top: 10px;
}

.battle-move-showcase .scene-log-body { position: relative; flex: 1; padding: 8px 12px; background: #0a0e14; }
.battle-move-showcase .scene-log-line {
  color: #9bdc8f; font-size: 10px; line-height: 1.4; margin-bottom: 4px;
  transform: translateX(0); opacity: 1;
}
.battle-move-showcase .scene-log-shred-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: linear-gradient(90deg, rgba(255,159,67,.15), rgba(255,159,67,.65), rgba(255,159,67,.15));
  opacity: 0;
}

.battle-move-showcase .scene-honey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 12px;
}
.battle-move-showcase .scene-honey-cell {
  height: 22px; border-radius: 5px; background: rgba(255,255,255,.08);
}
.battle-move-showcase .scene-honey-cell--decoy { background: rgba(0,200,255,.24); border: 1px dashed rgba(0,200,255,.6); }
.battle-move-showcase .scene-honey-radar {
  width: 140px; height: 140px; border-radius: 50%;
  margin: 0 auto;
  border: 1px solid rgba(0,200,255,.45);
  background:
    radial-gradient(circle at 50% 50%, rgba(0,200,255,.14), transparent 66%),
    linear-gradient(90deg, transparent 49%, rgba(0,200,255,.25) 50%, transparent 51%);
}
.battle-move-showcase .scene-honey-alert { color: #89e7ff; font-size: 10px; opacity: .35; transform: translateY(8px); }

.battle-move-showcase .scene-hunt-query {
  margin: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #08131d;
  border: 1px solid rgba(0,200,255,.35);
}
.battle-move-showcase .scene-hunt-prompt { color: #5bcaff; margin-right: 6px; }
.battle-move-showcase .scene-hunt-caret {
  display: inline-block; width: 8px; height: 12px; background: #8de8ff; vertical-align: -2px;
}
.battle-move-showcase .scene-hunt-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 12px 10px; align-items: end; height: 70px; }
.battle-move-showcase .scene-hunt-bar { height: 18px; border-radius: 4px 4px 0 0; background: rgba(141,232,255,.26); }
.battle-move-showcase .scene-hunt-bar--spike { height: 58px; background: rgba(255,107,107,.65); }
.battle-move-showcase .scene-hunt-row { color: #b5e8ff; font-size: 10px; opacity: .35; transform: translateY(6px); }
.battle-move-showcase .scene-hunt-row--alert { color: #ff8a80; }

.battle-move-showcase .scene-edr-host {
  margin: 10px 12px 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,200,255,.3);
  background: rgba(0,200,255,.08);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  column-gap: 8px;
  align-items: center;
}
.battle-move-showcase .scene-edr-host-name { color: #c9ecff; }
.battle-move-showcase .scene-edr-host-status { color: #ff8a80; white-space: nowrap; }
.battle-move-showcase .scene-edr-quarantine {
  width: 11px; height: 11px; border-radius: 50%;
  background: #ff5d5d; box-shadow: 0 0 12px rgba(255,93,93,.7);
}
.battle-move-showcase .scene-edr-tree {
  margin: 0 12px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #070d14;
}
.battle-move-showcase .scene-edr-tree-line { color: #9ec6e8; font-size: 10px; line-height: 1.35; margin-bottom: 2px; opacity: .45; }
.battle-move-showcase .scene-edr-tree-line:last-child { margin-bottom: 0; }
.battle-move-showcase .scene-edr-tree-line--bad { color: #ff9ca0; }
.battle-move-showcase .scene-edr-actions {
  margin-top: auto;
  padding: 8px 12px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.battle-move-showcase .scene-edr-pill {
  font-size: 10px;
  line-height: 1.3;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,.18);
  white-space: nowrap;
}
.battle-move-showcase .scene-edr-pill--isolate { background: rgba(0,200,255,.12); color: #8de8ff; }
.battle-move-showcase .scene-edr-pill--quarantine { background: rgba(255,93,93,.12); color: #ffb3b6; }

.battle-move-showcase .scene-patch-pipeline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 12px 8px;
}
.battle-move-showcase .scene-patch-stage {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 6px; border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.04);
  opacity: .35;
}
.battle-move-showcase .scene-patch-stage-num {
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.battle-move-showcase .scene-patch-link { width: 16px; height: 2px; background: rgba(255,255,255,.18); }
.battle-move-showcase .scene-patch-package { color: #9ad8ff; margin-left: 8px; opacity: .45; }
.battle-move-showcase .scene-patch-list { padding: 0 12px; }
.battle-move-showcase .scene-patch-row { color: #c3ddf2; font-size: 10px; margin-bottom: 4px; opacity: .35; }
.battle-move-showcase .scene-patch-status { color: #ffd166; }

.battle-move-showcase .scene-dlp-pipe {
  margin: 12px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.04);
  position: relative;
  overflow: hidden;
}
.battle-move-showcase .scene-dlp-packet {
  position: absolute; top: 9px;
  padding: 2px 6px; border-radius: 999px; font-size: 9px;
  background: rgba(255,255,255,.12); color: #cfe6ff;
}
.battle-move-showcase .scene-dlp-packet--ok:nth-child(1) { left: 8px; }
.battle-move-showcase .scene-dlp-packet--ok:nth-child(2) { left: 84px; }
.battle-move-showcase .scene-dlp-packet--bad { left: 158px; background: rgba(255,93,93,.18); color: #ffb3b6; }
.battle-move-showcase .scene-dlp-packet--ok:nth-child(4) { left: 262px; }
.battle-move-showcase .scene-dlp-scanner {
  position: absolute; top: 0; bottom: 0; width: 24px;
  background: linear-gradient(90deg, rgba(0,200,255,.08), rgba(0,200,255,.45), rgba(0,200,255,.08));
  left: -24px;
}
.battle-move-showcase .scene-dlp-rule { color: #badff7; font-size: 10px; margin-bottom: 4px; opacity: .4; }
.battle-move-showcase .scene-dlp-rule--hit { color: #ff9ca0; }

.battle-move-showcase .scene-ui--ir { background: radial-gradient(circle at 50% 0%, rgba(255, 60, 60, 0.22), rgba(14,18,26,0.96) 40%); }
.battle-move-showcase .scene-ir-flash { position: absolute; inset: 0; background: rgba(255,70,70,.25); opacity: 0; }
.battle-move-showcase .scene-ir-banner {
  margin: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,93,93,.45);
  background: rgba(255,93,93,.14);
  display: flex; flex-direction: column; gap: 4px;
}
.battle-move-showcase .scene-ir-kicker { color: #ffb3b6; font-size: 10px; letter-spacing: .1em; }
.battle-move-showcase .scene-ir-title { color: #ffe2e4; font-weight: 700; }
.battle-move-showcase .scene-ir-team {
  display: flex; justify-content: center; gap: 10px; padding: 4px 12px 8px;
}
.battle-move-showcase .scene-ir-analyst {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-family: var(--font-mono);
  color: #ffe5e8; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  opacity: .35;
}
.battle-move-showcase .scene-ir-step { color: #ffd5d8; font-size: 10px; opacity: .4; transform: translateY(6px); }
.battle-move-showcase .scene-ir-step--blink { color: #ff8a80; }
.battle-move-showcase .scene-ir-meter {
  margin: 10px 12px 12px;
  height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.14); overflow: hidden;
}
.battle-move-showcase .scene-ir-meter-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #ff5d5d, #ff9f43);
}

/* shared motion */
@keyframes bms_in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bms_fade { from { opacity: .25; } to { opacity: 1; } }
@keyframes bms_blink { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes bms_slide_lr { from { transform: translateX(-16px); opacity: .25; } to { transform: translateX(0); opacity: 1; } }
@keyframes bms_width { from { width: 0; } to { width: 100%; } }
@keyframes bms_pulse_node { 0%,100% { opacity: .3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes bms_packet_hop {
  0% { left: 25%; top: 46%; opacity: 0; }
  15% { opacity: 1; }
  50% { left: 48%; top: 56%; opacity: 1; }
  85% { left: 70%; top: 35%; opacity: 1; }
  100% { left: 70%; top: 35%; opacity: 0; }
}
@keyframes bms_rotate_sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes bms_ir_pill { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 10px rgba(255,93,93,.55); } }

/* Player scene animation mapping */
.battle-move-scene.is-playing[data-scene-id="generic"] .scene-generic-pulse { animation: bms_blink 1.5s ease-in-out infinite; }
.battle-move-scene.is-playing[data-scene-id="generic"] .scene-generic-label { animation: bms_in .6s ease both; }
.battle-move-scene.is-playing[data-scene-id="recon_linkedin"] .scene-li-caret { animation: bms_blink .9s steps(1) infinite; }
.battle-move-scene.is-playing[data-scene-id="recon_linkedin"] .scene-li-row { animation: bms_in .55s ease both; }
.battle-move-scene.is-playing[data-scene-id="recon_linkedin"] .scene-li-row:nth-child(2) { animation-delay: .28s; }
.battle-move-scene.is-playing[data-scene-id="recon_linkedin"] .scene-li-row:nth-child(3) { animation-delay: .52s; }
.battle-move-scene.is-playing[data-scene-id="recon_linkedin"] .scene-li-node { animation: bms_pulse_node 1.4s ease-in-out infinite; }
.battle-move-scene.is-playing[data-scene-id="recon_linkedin"] .scene-li-node--2 { animation-delay: .2s; }
.battle-move-scene.is-playing[data-scene-id="recon_linkedin"] .scene-li-node--3 { animation-delay: .45s; }
.battle-move-scene.is-playing[data-scene-id="recon_linkedin"] .scene-li-banner { animation: bms_in .5s ease both; animation-delay: 1s; }

.battle-move-scene.is-playing[data-scene-id="recon_subdomain"] .scene-term-line { animation: bms_in .4s ease both; }
.battle-move-scene.is-playing[data-scene-id="recon_subdomain"] .scene-term-line:nth-child(2) { animation-delay: .18s; }
.battle-move-scene.is-playing[data-scene-id="recon_subdomain"] .scene-term-line:nth-child(3) { animation-delay: .36s; }
.battle-move-scene.is-playing[data-scene-id="recon_subdomain"] .scene-term-line:nth-child(4) { animation-delay: .54s; }
.battle-move-scene.is-playing[data-scene-id="recon_subdomain"] .scene-term-line:nth-child(5) { animation-delay: .72s; }
.battle-move-scene.is-playing[data-scene-id="recon_subdomain"] .scene-term-line:nth-child(6) { animation-delay: .9s; }
.battle-move-scene.is-playing[data-scene-id="recon_subdomain"] .scene-term-line:nth-child(7) { animation-delay: 1.08s; }
.battle-move-scene.is-playing[data-scene-id="recon_subdomain"] .scene-term-line:nth-child(8) { animation-delay: 1.26s; }
.battle-move-scene.is-playing[data-scene-id="recon_subdomain"] .scene-term-caret { animation: bms_blink .9s steps(1) infinite; }

.battle-move-scene.is-playing[data-scene-id="recon_jobboard"] .scene-job-card { animation: bms_in .5s ease both; }
.battle-move-scene.is-playing[data-scene-id="recon_jobboard"] .scene-job-card:nth-child(2) { animation-delay: .28s; }
.battle-move-scene.is-playing[data-scene-id="recon_jobboard"] .scene-job-card:nth-child(3) { animation-delay: .56s; }
.battle-move-scene.is-playing[data-scene-id="recon_jobboard"] .scene-job-leak { animation: bms_fade .8s ease both; animation-delay: .9s; }
.battle-move-scene.is-playing[data-scene-id="recon_jobboard"] .scene-job-banner { animation: bms_in .5s ease both; animation-delay: 1.1s; }

.battle-move-scene.is-playing[data-scene-id="deliver_phish"] .scene-mail-caret { animation: bms_blink .8s steps(1) infinite; }
.battle-move-scene.is-playing[data-scene-id="deliver_phish"] .scene-mail-send-btn { animation: bms_in .45s ease both; animation-delay: .6s; }
.battle-move-scene.is-playing[data-scene-id="deliver_phish"] .scene-mail-envelope { animation: bms_slide_lr .8s ease both; animation-delay: 1s; }
.battle-move-scene.is-playing[data-scene-id="deliver_phish"] .scene-mail-sent { animation: bms_in .55s ease both; animation-delay: 1.5s; }

.battle-move-scene.is-playing[data-scene-id="deliver_waterhole"] .scene-wh-banner { animation: bms_blink 1.4s ease-in-out infinite; }
.battle-move-scene.is-playing[data-scene-id="deliver_waterhole"] .scene-wh-script { animation: bms_in .55s ease both; animation-delay: .8s; }

.battle-move-scene.is-playing[data-scene-id="deliver_usb"] .scene-usb-stick { animation: bms_slide_lr .9s ease both; }
.battle-move-scene.is-playing[data-scene-id="deliver_usb"] .scene-usb-toast { animation: bms_in .55s ease both; animation-delay: .9s; }


.battle-move-scene.is-playing[data-scene-id="compromise_macro"] .scene-doc-cursor { animation: bms_in .4s ease both; animation-delay: .4s; }
.battle-move-scene.is-playing[data-scene-id="compromise_macro"] .scene-doc-ribbon-btn { animation: bms_blink 1.1s ease-in-out 2; animation-delay: .45s; }
.battle-move-scene.is-playing[data-scene-id="compromise_macro"] .scene-doc-shell-line { animation: bms_in .45s ease both; animation-delay: 1s; }
.battle-move-scene.is-playing[data-scene-id="compromise_macro"] .scene-doc-shell-line:nth-child(2) { animation-delay: 1.2s; }
.battle-move-scene.is-playing[data-scene-id="compromise_macro"] .scene-doc-shell-line:nth-child(3) { animation-delay: 1.4s; }

.battle-move-scene.is-playing[data-scene-id="compromise_persist"] .scene-sched-row--new { animation: bms_in .55s ease both; animation-delay: .8s; }
.battle-move-scene.is-playing[data-scene-id="compromise_persist"] .scene-sched-footnote { animation: bms_in .45s ease both; animation-delay: 1.15s; }

.battle-move-scene.is-playing[data-scene-id="escalate_cred_hunt"] .scene-term-line { animation: bms_in .35s ease both; }
.battle-move-scene.is-playing[data-scene-id="escalate_cred_hunt"] .scene-term-line:nth-child(2) { animation-delay: .15s; }
.battle-move-scene.is-playing[data-scene-id="escalate_cred_hunt"] .scene-term-line:nth-child(3) { animation-delay: .3s; }
.battle-move-scene.is-playing[data-scene-id="escalate_cred_hunt"] .scene-term-line:nth-child(4) { animation-delay: .55s; }
.battle-move-scene.is-playing[data-scene-id="escalate_cred_hunt"] .scene-term-line:nth-child(5) { animation-delay: .8s; }
.battle-move-scene.is-playing[data-scene-id="escalate_cred_hunt"] .scene-term-line:nth-child(6) { animation-delay: 1.05s; }
.battle-move-scene.is-playing[data-scene-id="escalate_cred_hunt"] .scene-term-line:nth-child(7) { animation-delay: 1.3s; }
.battle-move-scene.is-playing[data-scene-id="escalate_cred_hunt"] .scene-term-line:nth-child(8) { animation-delay: 1.55s; }
.battle-move-scene.is-playing[data-scene-id="escalate_cred_hunt"] .scene-term-line:nth-child(9) { animation-delay: 1.8s; }
.battle-move-scene.is-playing[data-scene-id="escalate_cred_hunt"] .scene-term-caret { animation: bms_blink .8s steps(1) infinite; }

.battle-move-scene.is-playing[data-scene-id="escalate_imds"] .scene-term-line { animation: bms_in .35s ease both; }
.battle-move-scene.is-playing[data-scene-id="escalate_imds"] .scene-term-line:nth-child(2) { animation-delay: .15s; }
.battle-move-scene.is-playing[data-scene-id="escalate_imds"] .scene-term-line:nth-child(3) { animation-delay: .3s; }
.battle-move-scene.is-playing[data-scene-id="escalate_imds"] .scene-term-line:nth-child(4) { animation-delay: .5s; }
.battle-move-scene.is-playing[data-scene-id="escalate_imds"] .scene-term-line:nth-child(5) { animation-delay: .75s; }
.battle-move-scene.is-playing[data-scene-id="escalate_imds"] .scene-term-line:nth-child(6) { animation-delay: 1s; }
.battle-move-scene.is-playing[data-scene-id="escalate_imds"] .scene-term-line:nth-child(7) { animation-delay: 1.25s; }
.battle-move-scene.is-playing[data-scene-id="escalate_imds"] .scene-term-line:nth-child(8) { animation-delay: 1.5s; }
.battle-move-scene.is-playing[data-scene-id="escalate_imds"] .scene-term-caret { animation: bms_blink .8s steps(1) infinite; }

.battle-move-scene.is-playing[data-scene-id="escalate_assume_role"] .scene-driveby-line { animation: bms_slide_lr .45s ease both; }
.battle-move-scene.is-playing[data-scene-id="escalate_assume_role"] .scene-driveby-line:nth-child(2) { animation-delay: .3s; }
.battle-move-scene.is-playing[data-scene-id="escalate_assume_role"] .scene-driveby-line:nth-child(3) { animation-delay: .65s; }
.battle-move-scene.is-playing[data-scene-id="escalate_assume_role"] .scene-driveby-bar .scene-bar-fill { animation: bms_width 1.4s ease both; animation-delay: .9s; }
.battle-move-scene.is-playing[data-scene-id="escalate_assume_role"] .scene-driveby-banner { animation: bms_in .5s ease both; animation-delay: 1.6s; }

.battle-move-scene.is-playing[data-scene-id="exfil_data"] .scene-exfil-fill--a { animation: bms_width 1.2s ease both; }
.battle-move-scene.is-playing[data-scene-id="exfil_data"] .scene-exfil-fill--b { animation: bms_width 1.2s ease both; animation-delay: .35s; }
.battle-move-scene.is-playing[data-scene-id="exfil_data"] .scene-exfil-fill--c { animation: bms_width 1.2s ease both; animation-delay: .7s; }
.battle-move-scene.is-playing[data-scene-id="exfil_data"] .scene-exfil-banner { animation: bms_in .5s ease both; animation-delay: 1.2s; }

.battle-move-scene.is-playing[data-scene-id="exfil_ransom"] .scene-ransom-glitch { animation: bms_blink .45s steps(1) infinite; }
.battle-move-scene.is-playing[data-scene-id="exfil_ransom"] .scene-ransom-title { animation: bms_blink 1.1s ease-in-out infinite; }
.battle-move-scene.is-playing[data-scene-id="exfil_ransom"] .scene-ransom-secs { animation: bms_blink .9s steps(1) infinite; }

.battle-move-scene.is-playing[data-scene-id="exfil_wipe"] .scene-log-line { animation: bms_fade .5s ease both reverse; animation-delay: 1s; }
.battle-move-scene.is-playing[data-scene-id="exfil_wipe"] .scene-log-line:nth-child(2) { animation-delay: 1.15s; }
.battle-move-scene.is-playing[data-scene-id="exfil_wipe"] .scene-log-line:nth-child(3) { animation-delay: 1.3s; }
.battle-move-scene.is-playing[data-scene-id="exfil_wipe"] .scene-log-line:nth-child(4) { animation-delay: 1.45s; }
.battle-move-scene.is-playing[data-scene-id="exfil_wipe"] .scene-log-line:nth-child(5) { animation-delay: 1.6s; }
.battle-move-scene.is-playing[data-scene-id="exfil_wipe"] .scene-log-line:nth-child(6) { animation-delay: 1.75s; }
.battle-move-scene.is-playing[data-scene-id="exfil_wipe"] .scene-log-shred-bar { animation: bms_in .4s ease both; animation-delay: 1.1s; }
.battle-move-scene.is-playing[data-scene-id="exfil_wipe"] .scene-log-shred { animation: bms_in .55s ease both; animation-delay: 1.9s; }

/* Opponent scene animation mapping */
.battle-move-scene.is-playing[data-scene-id="honeypot_phase1"] .scene-honey-radar { animation: bms_rotate_sweep 3.2s linear infinite; }
.battle-move-scene.is-playing[data-scene-id="honeypot_phase1"] .scene-honey-alert { animation: bms_in .5s ease both; }
.battle-move-scene.is-playing[data-scene-id="honeypot_phase1"] .scene-honey-alert:nth-child(2) { animation-delay: .3s; }
.battle-move-scene.is-playing[data-scene-id="honeypot_phase1"] .scene-honey-alert:nth-child(3) { animation-delay: .6s; }

.battle-move-scene.is-playing[data-scene-id="hunt_phase2"] .scene-hunt-caret { animation: bms_blink .8s steps(1) infinite; }
.battle-move-scene.is-playing[data-scene-id="hunt_phase2"] .scene-hunt-bar { animation: bms_in .4s ease both; }
.battle-move-scene.is-playing[data-scene-id="hunt_phase2"] .scene-hunt-row { animation: bms_in .45s ease both; animation-delay: .65s; }
.battle-move-scene.is-playing[data-scene-id="hunt_phase2"] .scene-hunt-row:nth-child(2) { animation-delay: .85s; }
.battle-move-scene.is-playing[data-scene-id="hunt_phase2"] .scene-hunt-row:nth-child(3) { animation-delay: 1.05s; }

.battle-move-scene.is-playing[data-scene-id="edr_phase3"] .scene-edr-tree-line { animation: bms_in .45s ease both; }
.battle-move-scene.is-playing[data-scene-id="edr_phase3"] .scene-edr-tree-line:nth-child(2) { animation-delay: .2s; }
.battle-move-scene.is-playing[data-scene-id="edr_phase3"] .scene-edr-tree-line:nth-child(3) { animation-delay: .4s; }
.battle-move-scene.is-playing[data-scene-id="edr_phase3"] .scene-edr-tree-line:nth-child(4) { animation-delay: .6s; }
.battle-move-scene.is-playing[data-scene-id="edr_phase3"] .scene-edr-pill { animation: bms_in .45s ease both; animation-delay: .95s; }
.battle-move-scene.is-playing[data-scene-id="edr_phase3"] .scene-edr-pill--quarantine { animation-delay: 1.15s; }

.battle-move-scene.is-playing[data-scene-id="iam_phase4"] .scene-patch-stage { animation: bms_in .45s ease both; }
.battle-move-scene.is-playing[data-scene-id="iam_phase4"] .scene-patch-stage:nth-of-type(3) { animation-delay: .2s; }
.battle-move-scene.is-playing[data-scene-id="iam_phase4"] .scene-patch-stage:nth-of-type(5) { animation-delay: .4s; }
.battle-move-scene.is-playing[data-scene-id="iam_phase4"] .scene-patch-package { animation: bms_in .45s ease both; animation-delay: .65s; }
.battle-move-scene.is-playing[data-scene-id="iam_phase4"] .scene-patch-row { animation: bms_in .45s ease both; animation-delay: .9s; }
.battle-move-scene.is-playing[data-scene-id="iam_phase4"] .scene-patch-row:nth-child(2) { animation-delay: 1.1s; }
.battle-move-scene.is-playing[data-scene-id="iam_phase4"] .scene-patch-row:nth-child(3) { animation-delay: 1.3s; }
.battle-move-scene.is-playing[data-scene-id="iam_phase4"] .scene-patch-banner { animation: bms_in .45s ease both; animation-delay: 1.55s; }

.battle-move-scene.is-playing[data-scene-id="dlp_phase5"] .scene-dlp-scanner { animation: bms_slide_lr 1.6s linear infinite; }
.battle-move-scene.is-playing[data-scene-id="dlp_phase5"] .scene-dlp-rule { animation: bms_in .45s ease both; animation-delay: .75s; }
.battle-move-scene.is-playing[data-scene-id="dlp_phase5"] .scene-dlp-rule:nth-child(2) { animation-delay: .95s; }
.battle-move-scene.is-playing[data-scene-id="dlp_phase5"] .scene-dlp-rule:nth-child(3) { animation-delay: 1.15s; }
.battle-move-scene.is-playing[data-scene-id="dlp_phase5"] .scene-dlp-banner { animation: bms_in .45s ease both; animation-delay: 1.4s; }

.battle-move-scene.is-playing[data-scene-id="ir"] .scene-ir-flash { animation: bms_blink .4s steps(1) 6; }
.battle-move-scene.is-playing[data-scene-id="ir"] .scene-ir-analyst { animation: bms_in .4s ease both; }
.battle-move-scene.is-playing[data-scene-id="ir"] .scene-ir-analyst:nth-child(2) { animation-delay: .12s; }
.battle-move-scene.is-playing[data-scene-id="ir"] .scene-ir-analyst:nth-child(3) { animation-delay: .24s; }
.battle-move-scene.is-playing[data-scene-id="ir"] .scene-ir-analyst:nth-child(4) { animation-delay: .36s; }
.battle-move-scene.is-playing[data-scene-id="ir"] .scene-ir-step { animation: bms_in .45s ease both; animation-delay: .55s; }
.battle-move-scene.is-playing[data-scene-id="ir"] .scene-ir-step:nth-child(2) { animation-delay: .75s; }
.battle-move-scene.is-playing[data-scene-id="ir"] .scene-ir-step:nth-child(3) { animation-delay: .95s; }
.battle-move-scene.is-playing[data-scene-id="ir"] .scene-ir-step:nth-child(4) { animation-delay: 1.15s; }
.battle-move-scene.is-playing[data-scene-id="ir"] .scene-ir-meter-fill { animation: bms_width 1.2s ease both; animation-delay: .9s; }

@media (prefers-reduced-motion: reduce) {
  .battle-move-showcase .scene-li-row,
  .battle-move-showcase .scene-job-leak,
  .battle-move-showcase .scene-mail-envelope,
  .battle-move-showcase .scene-mail-sent,
  .battle-move-showcase .scene-doc-shell-line,
  .battle-move-showcase .scene-driveby-line,
  .battle-move-showcase .scene-driveby-banner,
  .battle-move-showcase .scene-sched-row--new,
  .battle-move-showcase .scene-honey-alert,
  .battle-move-showcase .scene-hunt-row,
  .battle-move-showcase .scene-edr-tree-line,
  .battle-move-showcase .scene-patch-row,
  .battle-move-showcase .scene-dlp-rule,
  .battle-move-showcase .scene-ir-step {
    opacity: 1 !important;
    transform: none !important;
  }
  .battle-move-showcase .scene-exfil-fill,
  .battle-move-showcase .scene-bar-fill,
  .battle-move-showcase .scene-ir-meter-fill {
    width: 100% !important;
  }
}

@media (max-width: 880px) {
  .battle-combatants {
    grid-template-columns: 1fr;
  }
  .battle-vs {
    margin: -6px auto;
  }
  .battle-combatant--opponent {
    align-items: flex-start;
    text-align: left;
  }
  .battle-combatant--opponent .battle-combatant-head { align-items: flex-start; }
  .battle-combatant--opponent .battle-detection-row { justify-content: space-between; }
  .battle-posture { align-items: flex-start; }
  .battle-posture-tile { align-items: flex-start; }
  .battle-posture-tooltip { right: auto; left: 0; }
  .battle-posture-tooltip::before { right: auto; left: 24px; }
  .battle-killchain { grid-template-columns: repeat(5, 1fr); }
  .battle-killchain-label { font-size: 11px; }
}

/* ============================================================
   AVATARS · Pokedex-style picker page
   ============================================================ */
.section--avatars {
  padding: var(--spacing-7) 0 var(--spacing-7);
}

.avatars-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-5);
  text-align: center;
}

.avatars-kicker {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.avatars-title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.avatars-subtitle {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.avatars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-4);
}

.avatar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  padding: var(--spacing-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.avatar-card:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(124, 92, 252, 0.14);
}

.avatar-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.avatar-card[data-active="true"] {
  border-color: rgba(0, 200, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.18);
  background:
    radial-gradient(circle at 80% 0%, rgba(0, 200, 255, 0.12), transparent 60%),
    var(--bg-surface);
}

.avatar-card[data-locked="true"] {
  cursor: not-allowed;
  opacity: 0.85;
}

.avatar-card[data-locked="true"]:hover { transform: none; box-shadow: none; }

.avatar-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1376 / 768;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 80%, rgba(0, 0, 0, 0.10), transparent 65%),
    rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.avatar-card[data-locked="true"] .avatar-portrait-img {
  filter: grayscale(1) brightness(0.35) contrast(1.4);
}

.avatar-portrait-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-tertiary);
  text-align: center;
  padding: var(--spacing-3);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.avatar-portrait-lock svg { opacity: 0.65; }

.avatar-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.avatar-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.avatar-card[data-locked="true"] .avatar-name {
  color: var(--text-tertiary);
}

.avatar-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.avatar-flavor {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

.avatar-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.avatar-tag {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
}

.avatar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.avatar-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-default);
}

.avatar-card[data-active="true"] .avatar-status-dot {
  background: #00c8ff;
  box-shadow: 0 0 0 4px rgba(0, 200, 255, 0.18);
}

.avatar-card[data-active="true"] .avatar-status-text {
  color: #1c8fc4;
}

.avatar-card[data-locked="true"] .avatar-status-text {
  color: var(--text-tertiary);
}

.avatar-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 16px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 30px rgba(15, 18, 26, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
  z-index: 30;
}
.avatar-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   RESULT · battle per-turn recap + unlock banner
   ============================================================ */
.result-battle-banner {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-3) var(--spacing-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 200, 255, 0.35);
  background:
    linear-gradient(135deg, rgba(0, 200, 255, 0.10), rgba(124, 92, 252, 0.08));
  margin-bottom: var(--spacing-4);
}

.result-battle-banner-portrait {
  width: 60px;
  aspect-ratio: 1376 / 768;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}
.result-battle-banner-portrait img { width: 100%; height: 100%; object-fit: contain; display: block; }

.result-battle-banner-text { display: flex; flex-direction: column; gap: 2px; }

.result-battle-banner-kicker {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1c8fc4;
}

.result-battle-banner-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.result-battle-banner-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.result-battle-banner-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 6px 18px rgba(0, 200, 255, 0.28),
    0 0 0 1px rgba(124, 92, 252, 0.35) inset;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), filter 160ms var(--ease-out);
  white-space: nowrap;
  flex-shrink: 0;
}
.result-battle-banner-cta svg {
  display: block;
  color: #ffffff;
  flex-shrink: 0;
}
.result-battle-banner-cta:hover,
.result-battle-banner-cta:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 8px 22px rgba(0, 200, 255, 0.40),
    0 0 0 1px rgba(124, 92, 252, 0.45) inset;
  outline: none;
}

.result-battle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-battle-item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto auto;
  align-items: center;
  gap: var(--spacing-3);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.result-battle-item.is-correct  { border-left: 3px solid #2bbb6e; }
.result-battle-item.is-incorrect { border-left: 3px solid #d34b75; }
.result-battle-item.is-neutral  { border-left: 3px solid var(--border-default); }
.result-battle-item.is-miss     { border-left: 3px solid var(--text-tertiary); }
.result-battle-item.is-phase-cleared {
  background: linear-gradient(180deg, rgba(211, 75, 117, 0.06), transparent);
}

.result-battle-deltas {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: right;
}
.result-battle-delta--progress  { color: #d34b75; font-weight: 700; }
.result-battle-delta--detection { color: #1c8fc4; }

/* Stat strip above the per-turn list — phases cleared / detection /
   turns / outcome. Four equal cells, each with a big number and a
   label underneath. */
.result-battle-stats {
  list-style: none;
  margin: 0 0 var(--spacing-3);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.result-battle-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.result-battle-stat-num {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.result-battle-stat-num--small { font-size: 13px; letter-spacing: 0.10em; }
.result-battle-stat-num--small.is-victory { color: #1f8c52; }
.result-battle-stat-num--small.is-defeat  { color: #b03b62; }

.result-battle-stat-of {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-left: 2px;
}

.result-battle-stat-label {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

@media (max-width: 640px) {
  .result-battle-stats { grid-template-columns: repeat(2, 1fr); }
  .result-battle-item {
    grid-template-columns: 64px 1fr auto;
    grid-template-rows: auto auto;
  }
  .result-battle-deltas { grid-column: 2 / -1; }
  .result-battle-verdict { grid-column: 2 / -1; justify-self: start; }
}

.result-battle-turn {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}

.result-battle-move    { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.result-battle-posture { font-size: 12.5px; color: var(--text-secondary); }
.result-battle-verdict {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-tertiary);
}
.result-battle-item.is-correct   .result-battle-verdict { color: #1f8c52; background: rgba(43, 187, 110, 0.16); }
.result-battle-item.is-incorrect .result-battle-verdict { color: #b03b62; background: rgba(211, 75, 117, 0.14); }

.result-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
}
