/* ═════════════════════════════════════════════════════════
   TOKENS — design system, single source of truth
   ═════════════════════════════════════════════════════════ */
:root {
  /* surface */
  --void: #08080b;
  --obsidian: #0f0f14;
  --ash: #16161d;
  --smoke: #1d1d27;
  --stone: #2a2a35;
  --grit: #3a3a47;

  /* text */
  --bone: #f5f1ea;
  --pearl: #d8d2c6;
  --fog: rgba(245, 241, 234, 0.62);
  --whisper: rgba(245, 241, 234, 0.38);
  --ghost: rgba(245, 241, 234, 0.16);
  --vapour: rgba(245, 241, 234, 0.06);

  /* signal */
  --blood: #ff2f3f;
  --blood-glow: rgba(255, 47, 63, 0.35);
  --blood-dim: rgba(255, 47, 63, 0.12);
  --ember: #ff8a3d;
  --poison: #d4ff3a;
  --poison-glow: rgba(212, 255, 58, 0.35);
  --frost: #7bb8ff;
  --frost-glow: rgba(123, 184, 255, 0.32);
  --jade: #4dd9a4;
  --jade-glow: rgba(77, 217, 164, 0.3);
  --violet: #a78bff;

  /* drill atmosphere — overridden per [data-active-drill] */
  --drill-accent: var(--blood);
  --drill-accent-glow: var(--blood-glow);
  --drill-temperature: 1; /* 0 cold → 1 hot */
  --drill-pulse: 1.6s;

  /* type */
  --display: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* motion */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-hostile: cubic-bezier(0.7, 0, 0.84, 0); /* heavy at start, snaps at end */

  /* geometry */
  --rail-h: 56px;
  --side-rail-w: 36px;
}

/* ═════════════════════════════════════════════════════════
   RESET
   ═════════════════════════════════════════════════════════ */
.dps-app *, .dps-app *::before, .dps-app *::after { box-sizing: border-box; margin: 0; padding: 0; }
*:focus-visible { outline: 2px solid var(--poison); outline-offset: 3px; }

.dps-app {
  scroll-behavior: smooth;
  background: var(--void);
  /* desktop default — JS removes on touch devices */
}
.dps-app.hide-native-cursor, .dps-app.hide-native-cursor * {
  cursor: none !important;
}

.dps-app {
  font-family: var(--display);
  font-feature-settings: "ss01", "ss02", "cv11";
  font-variation-settings: "wght" 400;
  color: var(--bone);
  background: var(--void);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
::selection { background: var(--blood); color: var(--bone); }

/* hide everything from print except the data */
@media print { .dps-app { background: white; color: black; } .ambient, .cursor-ring, .cursor-dot, .cursor-label, .status-rail, .side-rail { display: none; } }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ambient-grain, .ambient-gradient { display: none; }
}

/* ═════════════════════════════════════════════════════════
   AMBIENT ENVIRONMENT (fixed full-viewport)
   The site itself breathes.
   ═════════════════════════════════════════════════════════ */
.ambient {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

.ambient-gradient {
  position: absolute; inset: -20%; opacity: 0.7;
  filter: blur(80px) saturate(1.4);
  transition: opacity 1.2s var(--ease-out), background 2s var(--ease-out);
  will-change: transform;
}

.ambient-gradient-1 {
  background:
    radial-gradient(circle at 22% 28%, var(--drill-accent-glow) 0%, transparent 38%),
    radial-gradient(circle at 78% 72%, var(--blood-dim) 0%, transparent 48%);
  animation: drift-a 38s var(--ease-in-out) infinite alternate;
}
.ambient-gradient-2 {
  background:
    radial-gradient(circle at 70% 20%, rgba(123, 184, 255, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 30% 80%, rgba(167, 139, 255, 0.10) 0%, transparent 50%);
  animation: drift-b 52s var(--ease-in-out) infinite alternate;
  mix-blend-mode: screen;
}

@keyframes drift-a {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(-8%, 6%) rotate(8deg) scale(1.08); }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1.05); }
  100% { transform: translate(10%, -7%) rotate(-12deg) scale(0.96); }
}

/* cursor-reactive halo (positioned via JS) */
.ambient-halo {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--drill-accent-glow) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0.6;
  filter: blur(40px);
  transition: opacity 0.4s var(--ease-out), width 0.6s var(--ease-out), height 0.6s var(--ease-out);
  will-change: left, top;
  mix-blend-mode: screen;
}

/* film grain */
.ambient-grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
  animation: grain 1.4s steps(6) infinite;
  pointer-events: none;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(1%, -2%); }
  60%  { transform: translate(-1%, 2%); }
  80%  { transform: translate(2%, 0%); }
  100% { transform: translate(0, 0); }
}

/* vignette */
.ambient-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* scanline texture — very subtle */
.ambient-scanlines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 3px
  );
  pointer-events: none;
}

/* ═════════════════════════════════════════════════════════
   CUSTOM CURSOR SYSTEM
   ═════════════════════════════════════════════════════════ */
.cursor-ring, .cursor-dot, .cursor-label {
  position: fixed; pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid var(--bone);
  border-radius: 50%;
  margin-left: -19px; margin-top: -19px;
  mix-blend-mode: difference;
  transition: width 0.35s var(--spring), height 0.35s var(--spring), margin 0.35s var(--spring), border-color 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

.cursor-dot {
  /* The small dot has been removed — the ring is now the dominant cursor.
   * Kept here as display:none so the JS engine doesn't error when it
   * still tries to reference the element. */
  display: none;
}

.cursor-label {
  font-family: var(--mono);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  background: var(--bone); color: var(--void);
  margin-left: 22px; margin-top: -8px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s var(--ease-out), transform 0.32s var(--spring), background 0.2s, color 0.2s;
  white-space: nowrap;
}
.cursor-label.visible {
  opacity: 1; transform: translateX(0);
}
.cursor-label.danger { background: var(--blood); color: var(--bone); }
.cursor-label.safe   { background: var(--jade); color: var(--void); }
.cursor-label.toxic  { background: var(--poison); color: var(--void); }
.cursor-label.cold   { background: var(--frost); color: var(--void); }

.cursor-ring.is-near {
  width: 56px; height: 56px;
  margin-left: -28px; margin-top: -28px;
}
.cursor-ring.is-trap {
  width: 64px; height: 64px;
  margin-left: -32px; margin-top: -32px;
  border-color: var(--blood);
  box-shadow: 0 0 30px var(--blood-glow);
}
.cursor-ring.is-safe {
  width: 42px; height: 42px;
  margin-left: -21px; margin-top: -21px;
  border-color: var(--jade);
}
.cursor-ring.is-pressed {
  width: 22px; height: 22px;
  margin-left: -11px; margin-top: -11px;
}

@media (hover: none), (pointer: coarse) {
  .cursor-ring, .cursor-dot, .cursor-label { display: none; }
  .dps-app.hide-native-cursor, .dps-app.hide-native-cursor * { cursor: auto !important; }
}

/* ═════════════════════════════════════════════════════════
   STATUS RAIL (top sticky chrome)
   ═════════════════════════════════════════════════════════ */
.status-rail {
  position: sticky; top: 0; z-index: 80;
  height: var(--rail-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1.5rem 0 calc(var(--side-rail-w) + 1.5rem);
  background: rgba(8, 8, 11, 0.78);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--vapour);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
}

.status-brand {
  display: flex; align-items: center; gap: 0.85rem;
}
.status-brand-mark {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--drill-accent);
  box-shadow: 0 0 12px var(--drill-accent-glow);
  animation: pulse-mark var(--drill-pulse) ease-in-out infinite;
}
@keyframes pulse-mark {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.status-brand-name {
  color: var(--bone); font-weight: 600;
  font-variation-settings: "wght" 600;
  letter-spacing: 0.16em;
}
.status-brand-tag {
  color: var(--whisper);
  font-size: 0.62rem;
}

.status-center {
  display: flex; align-items: center; gap: 1rem;
  justify-content: center;
}
.status-clock {
  font-variant-numeric: tabular-nums;
  color: var(--whisper); font-size: 0.65rem;
}
.status-drill-active {
  display: none; align-items: center; gap: 0.6rem;
  color: var(--drill-accent);
  font-weight: 600;
}
.status-drill-active.is-on { display: flex; }
.status-drill-active::before {
  content: "●"; animation: pulse-mark 1.2s infinite;
}

.status-right {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 1.2rem;
}
.status-score {
  display: none;
  font-family: var(--mono);
}
.status-score.is-on { display: flex; align-items: baseline; gap: 0.5rem; }
.status-score-label { color: var(--whisper); font-size: 0.62rem; }
.status-score-num {
  font-family: var(--display); font-weight: 800;
  font-size: 1.4rem; color: var(--bone);
  font-variation-settings: "wght" 800;
  font-variant-numeric: tabular-nums;
  min-width: 1.4rem; text-align: right;
  letter-spacing: -0.04em;
  transition: transform 0.4s var(--spring), color 0.3s;
}
.status-score-num.bumping {
  color: var(--poison);
  transform: scale(1.18);
}

.status-fake-counter {
  color: var(--whisper); font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  position: relative;
  cursor: help;
}
.status-fake-counter b { color: var(--bone); font-weight: 600; }
.status-fake-counter::after {
  content: "fabricated"; position: absolute;
  top: calc(100% + 6px); right: 0;
  background: var(--blood); color: var(--bone);
  padding: 0.25rem 0.5rem;
  font-size: 0.55rem; letter-spacing: 0.16em;
  white-space: nowrap; opacity: 0;
  transition: opacity 0.25s, transform 0.3s var(--spring);
  transform: translateY(-4px);
  pointer-events: none;
}
.status-fake-counter:hover::after,
.status-fake-counter.revealed::after {
  opacity: 1; transform: translateY(0);
}

@media (max-width: 720px) {
  .status-rail { grid-template-columns: 1fr auto; padding: 0 0.75rem 0 calc(var(--side-rail-w) + 0.75rem); }
  .status-center, .status-fake-counter { display: none !important; }
  .status-brand-tag { display: none; }
}

/* ═════════════════════════════════════════════════════════
   SIDE RAILS (vertical kinetic typography gutters)
   ═════════════════════════════════════════════════════════ */
.side-rail {
  position: fixed; top: 0; bottom: 0;
  width: var(--side-rail-w);
  z-index: 70;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--void) 0%, var(--obsidian) 100%);
  border-right: 1px solid var(--vapour);
  pointer-events: none;
  overflow: hidden;
}
.side-rail.left { left: 0; }
.side-rail.right { right: 0; border-right: none; border-left: 1px solid var(--vapour); }

.side-rail-track {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--ghost);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
  white-space: nowrap;
  animation: scroll-rail 80s linear infinite;
}
.side-rail.right .side-rail-track {
  animation: scroll-rail-reverse 110s linear infinite;
}
@keyframes scroll-rail {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(50%); }
}
@keyframes scroll-rail-reverse {
  0%   { transform: translateY(50%); }
  100% { transform: translateY(-50%); }
}
.side-rail-track span {
  display: inline-block;
  padding: 0.5rem 0;
}
.side-rail-track .rail-bullet { color: var(--drill-accent); padding: 0 0.6rem; }

@media (max-width: 720px) {
  .side-rail.right { display: none; }
  :root { --side-rail-w: 24px; }
  .side-rail-track { font-size: 0.5rem; letter-spacing: 0.2em; }
}

/* ═════════════════════════════════════════════════════════
   MAIN
   ═════════════════════════════════════════════════════════ */
.dps-app .dps-main, .dps-app main {
  position: relative; z-index: 10;
  padding-left: var(--side-rail-w);
  padding-right: var(--side-rail-w);
  min-height: calc(100vh - var(--rail-h));
}
@media (max-width: 720px) {
  .dps-app .dps-main, .dps-app main { padding-right: 0; }
}

.screen { display: none; }
.screen.active { display: block; animation: screen-enter 0.7s var(--ease-out); }

@keyframes screen-enter {
  0%   { opacity: 0; transform: translateY(12px) scale(0.998); filter: blur(8px); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* exit animation (for cinematic transitions) */
.screen.exiting {
  animation: screen-exit 0.5s var(--ease-hostile) forwards;
}
@keyframes screen-exit {
  0%   { opacity: 1; transform: none; filter: none; }
  100% { opacity: 0; transform: scale(1.04); filter: blur(12px); }
}

/* ═════════════════════════════════════════════════════════
   SCREEN: INTRO
   asymmetric, oversized numerals, atmospheric
   ═════════════════════════════════════════════════════════ */
#screen-intro {
  padding: 4rem 2.5rem 8rem;
  max-width: 1400px;
  margin: 0 auto;
}

.intro-marker {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--whisper);
  margin-bottom: 4rem;
}
.intro-marker::before {
  content: ""; display: block;
  width: 38px; height: 1px; background: var(--whisper);
}
.intro-marker em {
  font-style: normal; color: var(--drill-accent);
  font-family: var(--mono); font-weight: 600;
}

.intro-headline {
  font-family: var(--display);
  font-size: clamp(3.2rem, 8.5vw, 8.8rem);
  font-variation-settings: "wght" 720;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--bone);
  max-width: 16ch;
  margin-bottom: 2.5rem;
}
.intro-headline .h-line { display: block; opacity: 0; transform: translateY(36px); }
.screen.active .intro-headline .h-line {
  animation: line-rise 0.95s var(--ease-out) forwards;
}
.screen.active .intro-headline .h-line:nth-child(1) { animation-delay: 0.10s; }
.screen.active .intro-headline .h-line:nth-child(2) { animation-delay: 0.22s; }
.screen.active .intro-headline .h-line:nth-child(3) { animation-delay: 0.34s; }
@keyframes line-rise {
  0%   { opacity: 0; transform: translateY(36px); filter: blur(8px); }
  100% { opacity: 1; transform: none; filter: none; }
}

.intro-headline .h-italic {
  font-style: italic;
  font-variation-settings: "wght" 600;
  color: var(--drill-accent);
}
.intro-headline .h-thin {
  font-variation-settings: "wght" 240;
  color: var(--fog);
  font-style: italic;
}
.intro-headline .h-strike {
  position: relative; display: inline-block;
}
.intro-headline .h-strike::after {
  content: ""; position: absolute;
  left: 0; right: 0; top: 52%;
  height: 4px; background: var(--drill-accent);
  transform: scaleX(0); transform-origin: left;
}
.screen.active .intro-headline .h-strike::after {
  animation: strike-through 0.7s var(--ease-out) 1.2s forwards;
}
@keyframes strike-through {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.intro-lede {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  font-variation-settings: "wght" 380;
  line-height: 1.55;
  color: var(--pearl);
  max-width: 58ch;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fade-rise 0.9s var(--ease-out) 0.7s forwards;
}
@keyframes fade-rise {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: none; }
}

/* Stats strip — asymmetric, system-feel */
.intro-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--vapour);
  margin-bottom: 6rem;
  border-top: 1px solid var(--vapour);
  border-bottom: 1px solid var(--vapour);
  opacity: 0;
  animation: fade-rise 0.9s var(--ease-out) 0.95s forwards;
}
.intro-stat {
  background: var(--void);
  padding: 1.6rem 1.4rem;
}
.intro-stat-num {
  font-family: var(--display);
  font-size: 2.6rem;
  font-variation-settings: "wght" 800;
  letter-spacing: -0.04em;
  color: var(--bone);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block; margin-bottom: 0.35rem;
}
.intro-stat-num em { color: var(--drill-accent); font-style: italic; }
.intro-stat-label {
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--whisper);
}
@media (max-width: 900px) {
  .intro-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Section label */
.section-label {
  display: flex; align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--whisper);
}
.section-label-num {
  font-family: var(--display);
  font-variation-settings: "wght" 600;
  font-size: 0.9rem;
  color: var(--drill-accent);
}
.section-label-line { flex: 1; height: 1px; background: var(--vapour); }

/* Drill index grid — asymmetric, with one feature card */
.drill-index {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
  margin-bottom: 4rem;
}

.drill-card {
  position: relative;
  padding: 1.8rem 1.6rem 5.2rem;
  background: var(--obsidian);
  border: 1px solid var(--vapour);
  text-align: left;
  cursor: none;
  overflow: hidden;
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  min-height: 280px;
  display: flex; flex-direction: column;
}
/* Layout: large featured cards alternate with smaller — asymmetric */
.drill-card:nth-child(1) { grid-column: span 7; min-height: 360px; }
.drill-card:nth-child(2) { grid-column: span 5; }
.drill-card:nth-child(3) { grid-column: span 4; }
.drill-card:nth-child(4) { grid-column: span 4; }
.drill-card:nth-child(5) { grid-column: span 4; }
.drill-card:nth-child(6) { grid-column: span 12; min-height: 240px; }

@media (max-width: 900px) {
  .drill-card,
  .drill-card:nth-child(1),
  .drill-card:nth-child(2),
  .drill-card:nth-child(3),
  .drill-card:nth-child(4),
  .drill-card:nth-child(5),
  .drill-card:nth-child(6) { grid-column: span 12; }
}

.drill-card::before {
  content: ""; position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--drill-accent-glow) 0%, transparent 35%);
  opacity: 0; transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}
.drill-card:hover {
  background: var(--ash);
  border-color: var(--ghost);
  transform: translateY(-2px);
}
.drill-card:hover::before { opacity: 1; }

.drill-card-meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.6rem;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--whisper);
}
.drill-card-num {
  display: flex; align-items: baseline; gap: 0.4rem;
}
.drill-card-num b {
  font-family: var(--display);
  font-variation-settings: "wght" 700;
  font-size: 1.1rem;
  color: var(--bone);
  font-style: italic;
}
.drill-card-difficulty {
  display: flex; gap: 3px;
}
.drill-card-difficulty i {
  display: block; width: 6px; height: 6px;
  background: var(--ghost);
}
.drill-card-difficulty i.on { background: var(--drill-accent); box-shadow: 0 0 6px var(--drill-accent-glow); }

.drill-card-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-variation-settings: "wght" 680;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--bone);
  margin-bottom: 1.2rem;
}
.drill-card:nth-child(1) .drill-card-title { font-size: clamp(2rem, 3.4vw, 3.4rem); }
.drill-card:nth-child(6) .drill-card-title { font-size: clamp(1.8rem, 3vw, 2.8rem); }

.drill-card-blurb {
  font-size: 0.95rem;
  font-variation-settings: "wght" 360;
  color: var(--fog);
  line-height: 1.55;
  flex: 1;
}

.drill-card-foot {
  position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.6rem;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--whisper);
  padding-top: 1rem;
  border-top: 1px solid var(--vapour);
}
.drill-card-foot .deploy {
  display: flex; align-items: center; gap: 0.45rem;
  color: var(--bone);
  font-variation-settings: "wght" 600;
}
.drill-card-foot .deploy svg {
  width: 14px; height: 14px;
  transition: transform 0.35s var(--spring);
}
.drill-card:hover .deploy svg { transform: translateX(4px); }
.drill-card-foot .deploy::before {
  content: ""; display: block; width: 24px; height: 1px;
  background: currentColor;
}

.drill-card-tactics {
  font-variant-numeric: tabular-nums;
}
.drill-card-tactics b { color: var(--drill-accent); font-family: var(--display); font-variation-settings: "wght" 700; font-style: italic; }

/* Big background numeral inside large card */
.drill-card-bignum {
  position: absolute;
  right: -0.5rem; bottom: -2rem;
  font-family: var(--display);
  font-variation-settings: "wght" 200;
  font-size: 12rem; line-height: 1;
  color: var(--vapour);
  font-style: italic;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}
.drill-card:nth-child(1) .drill-card-bignum { font-size: 18rem; opacity: 0.7; }
.drill-card:nth-child(6) .drill-card-bignum { right: 2rem; bottom: -3rem; font-size: 14rem; }

/* Per-drill accent on cards */
.drill-card[data-drill="free_trial"]      { --card-accent: var(--blood);  --card-glow: var(--blood-glow); }
.drill-card[data-drill="cookie_banner"]   { --card-accent: var(--frost);  --card-glow: var(--frost-glow); }
.drill-card[data-drill="comparison_trap"] { --card-accent: var(--ember);  --card-glow: rgba(255,138,61,0.35); }
.drill-card[data-drill="cancellation_maze"] { --card-accent: var(--violet); --card-glow: rgba(167,139,255,0.32); }
.drill-card[data-drill="harvest_quiz"]    { --card-accent: var(--poison); --card-glow: var(--poison-glow); }
.drill-card[data-drill="recipe_wall"]     { --card-accent: var(--jade);   --card-glow: var(--jade-glow); }
.drill-card[data-drill] {
  --drill-accent: var(--card-accent);
  --drill-accent-glow: var(--card-glow);
}
.drill-card[data-drill] .drill-card-num b,
.drill-card[data-drill] .drill-card-tactics b { color: var(--card-accent); }
.drill-card[data-drill] .drill-card-difficulty i.on { background: var(--card-accent); box-shadow: 0 0 6px var(--card-glow); }

/* Manifesto block */
.manifesto {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 3rem;
  margin: 6rem 0;
  padding: 3rem 0;
  border-top: 1px solid var(--vapour);
  border-bottom: 1px solid var(--vapour);
}
.manifesto-heading {
  font-family: var(--display);
  font-size: 1.6rem;
  font-variation-settings: "wght" 600;
  letter-spacing: -0.02em;
  color: var(--bone);
  font-style: italic;
}
.manifesto-body p {
  font-size: 1.05rem; line-height: 1.6;
  color: var(--fog);
  margin-bottom: 1rem;
}
.manifesto-body p em {
  color: var(--bone); font-style: italic;
}
.manifesto-body strong { color: var(--bone); font-variation-settings: "wght" 600; font-weight: 600; }
@media (max-width: 720px) {
  .manifesto { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; margin: 4rem 0; }
}

/* ═════════════════════════════════════════════════════════
   SCREEN: DRILL — the brief panel + persuasion meter
   ═════════════════════════════════════════════════════════ */
#screen-drill {
  padding: 2.5rem 2rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.drill-brief {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--vapour);
}

.drill-brief-num {
  font-family: var(--display);
  font-variation-settings: "wght" 200;
  font-style: italic;
  font-size: 5rem;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--drill-accent);
  font-variant-numeric: tabular-nums;
}

.drill-brief-body {
  display: flex; flex-direction: column;
  padding-top: 0.5rem;
}
.drill-brief-label {
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--whisper); margin-bottom: 0.8rem;
}
.drill-brief-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-variation-settings: "wght" 720;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--bone);
  margin-bottom: 1.2rem;
}
.drill-brief-setup {
  font-size: 1rem;
  font-variation-settings: "wght" 380;
  color: var(--pearl);
  line-height: 1.55;
  max-width: 58ch;
}

.drill-brief-meter {
  display: flex; flex-direction: column;
  align-items: flex-end;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--whisper);
  min-width: 120px;
}
.drill-brief-meter-label { margin-bottom: 0.5rem; }
.drill-brief-meter-bar {
  width: 120px; height: 4px;
  background: var(--vapour);
  position: relative; overflow: hidden;
}
.drill-brief-meter-fill {
  position: absolute; inset: 0 100% 0 0;
  background: var(--drill-accent);
  box-shadow: 0 0 12px var(--drill-accent-glow);
  transition: inset 0.55s var(--spring);
}
.drill-brief-meter-readout {
  margin-top: 0.5rem;
  font-family: var(--display);
  font-variation-settings: "wght" 700;
  font-size: 0.95rem;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .drill-brief { grid-template-columns: auto 1fr; }
  .drill-brief-num { font-size: 3.5rem; }
  .drill-brief-meter { grid-column: 1 / -1; align-items: flex-start; }
}

.drill-instruction {
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--whisper);
  margin: 1.5rem 0;
  display: flex; align-items: center; gap: 0.6rem;
}
.drill-instruction::before {
  content: ""; display: block;
  width: 18px; height: 1px; background: var(--whisper);
}

/* ═════════════════════════════════════════════════════════
   FAKE-PAGE CONTAINER (per-drill atmosphere)
   The simulations themselves live inside this.
   ═════════════════════════════════════════════════════════ */
.fake-page {
  position: relative;
  background: var(--bone);
  color: #1a1a22;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 60px 120px -30px rgba(0, 0, 0, 0.85),
    0 30px 60px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--vapour),
    0 0 80px var(--drill-accent-glow);
  margin-bottom: 2rem;
  isolation: isolate;
}

/* Browser chrome */
.fake-browser-bar {
  background: linear-gradient(180deg, #d8d4cc 0%, #c8c4bc 100%);
  padding: 0.6rem 0.9rem;
  display: flex; align-items: center; gap: 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.fake-browser-bar .dots { display: flex; gap: 0.3rem; }
.fake-browser-bar .dots span {
  display: block; width: 10px; height: 10px;
  border-radius: 50%; background: rgba(0,0,0,0.25);
}
.fake-browser-bar .dots span:nth-child(1) { background: #ff5f57; }
.fake-browser-bar .dots span:nth-child(2) { background: #febc2e; }
.fake-browser-bar .dots span:nth-child(3) { background: #28c840; }

.fake-browser-bar .url {
  flex: 1;
  font-family: var(--mono); font-size: 0.78rem;
  background: rgba(255,255,255,0.7);
  padding: 0.32rem 0.7rem; border-radius: 4px;
  color: #5a5a62;
  letter-spacing: 0;
  border: 1px solid rgba(0,0,0,0.05);
}
.fake-browser-bar .url::before {
  content: "🔒 ";
  font-size: 0.7rem;
}

/* "Flag a tactic" affordance — universal hover state */
.flag-hint {
  position: relative; cursor: none;
  transition: filter 0.2s var(--ease-out);
}
.flag-hint::after {
  content: "FLAG"; position: absolute;
  top: -10px; right: -10px;
  background: var(--blood); color: white;
  font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.16em; padding: 2px 5px;
  opacity: 0; transform: scale(0.7) rotate(-8deg);
  transition: opacity 0.25s, transform 0.3s var(--spring);
  pointer-events: none;
  z-index: 5;
}
.flag-hint:hover::after { opacity: 1; transform: scale(1) rotate(-3deg); }
.flag-hint.flagged::after {
  content: "✓ FLAGGED"; background: var(--jade); color: var(--void);
  opacity: 1; transform: scale(1) rotate(-3deg);
}
.flagged { outline: 2px dashed var(--jade); outline-offset: 2px; animation: flag-pop 0.5s var(--spring); }
@keyframes flag-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ═════════════════════════════════════════════════════════
   DRILL 1: FREE TRIAL — hyperactive urgency
   ═════════════════════════════════════════════════════════ */
.dps-app[data-active-drill="free_trial"] {
  --drill-accent: var(--blood);
  --drill-accent-glow: var(--blood-glow);
  --drill-pulse: 0.9s;
}

.urgency-banner {
  background: linear-gradient(90deg, #c8141e 0%, #ff2f3f 50%, #c8141e 100%);
  background-size: 200% 100%;
  color: white;
  padding: 0.7rem 1rem;
  text-align: center;
  font-family: var(--mono); font-size: 0.85rem;
  font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative; cursor: none;
  animation: urgency-shimmer 3s linear infinite, urgency-pulse 0.9s ease-in-out infinite;
}
@keyframes urgency-shimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
@keyframes urgency-pulse {
  0%, 100% { box-shadow: inset 0 0 0 rgba(255,255,255,0); }
  50%      { box-shadow: inset 0 0 30px rgba(255,255,255,0.3); }
}
.urgency-banner #countdown {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  background: rgba(0,0,0,0.3);
  padding: 0.1rem 0.5rem;
  margin: 0 0.3rem;
  letter-spacing: 0.08em;
}

.fake-content {
  padding: 2.5rem 2rem 2rem;
  font-family: var(--display);
  font-variation-settings: "wght" 400;
}
.fake-content h2 {
  font-family: var(--display);
  font-size: 1.9rem;
  font-variation-settings: "wght" 700;
  letter-spacing: -0.03em;
  color: #14141a;
  margin-bottom: 0.8rem;
}
.fake-content .price-line {
  font-size: 1rem;
  color: #4a4a55;
  margin-bottom: 1.5rem;
}
.fake-content .price-line strong {
  color: #14141a;
  font-variation-settings: "wght" 700;
}

.social-proof, .scarcity-warning {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.6rem;
  border-radius: 4px;
  cursor: none;
  position: relative;
}
.social-proof {
  background: rgba(77, 217, 164, 0.12);
  border: 1px solid rgba(77, 217, 164, 0.35);
  color: #1d6f47;
}
.scarcity-warning {
  background: rgba(255, 47, 63, 0.1);
  border: 1px solid rgba(255, 47, 63, 0.35);
  color: #a01018;
  animation: scarcity-throb 1.8s ease-in-out infinite;
}
@keyframes scarcity-throb {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}

.toggle-row {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.toggle-row input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: #14141a;
  cursor: none;
  flex-shrink: 0;
}
.toggle-row label {
  font-size: 0.95rem;
  color: #2a2a35;
  cursor: none;
  line-height: 1.4;
}
.toggle-row .price-tag {
  font-size: 0.78rem;
  color: #888;
}

.fake-cta {
  display: block; width: 100%;
  margin-top: 1.4rem;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(180deg, #ff5263 0%, #ff2f3f 100%);
  color: white;
  font-family: var(--display);
  font-size: 1.05rem; font-variation-settings: "wght" 700;
  letter-spacing: -0.01em;
  border-radius: 6px;
  cursor: none;
  box-shadow:
    0 12px 30px -10px var(--blood-glow),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.fake-cta::before {
  content: ""; position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: cta-shine 3s ease-in-out infinite;
}
@keyframes cta-shine {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
.fake-cta:hover {
  transform: scale(1.01);
  box-shadow: 0 16px 40px -10px var(--blood-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}

.confirm-shame {
  display: block; width: 100%;
  margin-top: 0.7rem; padding: 0.75rem;
  font-size: 0.88rem; color: #6a6a75;
  text-align: center; cursor: none;
  background: transparent;
  text-decoration: underline; text-decoration-color: #ccc;
}
.confirm-shame:hover { color: #2a2a35; }

.fine-print-toggle {
  display: block; margin-top: 1.5rem;
  font-size: 0.8rem; color: #888;
  cursor: none;
}
.fine-print {
  display: none;
  margin-top: 0.8rem;
  padding: 1rem;
  background: #f0ece4;
  font-size: 0.78rem; color: #5a5a62;
  line-height: 1.55;
  border-radius: 4px;
}
.fine-print.visible { display: block; animation: fade-rise 0.4s var(--ease-out); }
.fine-print.read { border-left: 3px solid var(--jade); }

.buried-exit {
  display: block;
  margin-top: 2.5rem;
  font-size: 0.72rem;
  color: #bcbcc4;
  text-align: center;
  cursor: none;
  text-decoration: underline;
}
.buried-exit:hover { color: #2a2a35; }

/* ═════════════════════════════════════════════════════════
   DRILL 2: COOKIE BANNER — corporate compliance blue
   ═════════════════════════════════════════════════════════ */
.dps-app[data-active-drill="cookie_banner"] {
  --drill-accent: var(--frost);
  --drill-accent-glow: var(--frost-glow);
  --drill-pulse: 2.2s;
}

.fake-news-bg {
  padding: 2rem;
  font-family: Georgia, serif;
  color: #2a2a35;
  filter: blur(2px) brightness(0.92);
  user-select: none;
}
.fake-news-bg h1 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.fake-news-bg .byline {
  font-size: 0.85rem; color: #888;
  margin-bottom: 1.2rem;
  font-style: italic;
}
.fake-news-bg p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem; line-height: 1.55;
}

.cookie-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  z-index: 5;
}
.coerce-flag {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--mono); font-size: 0.7rem;
  color: white; background: rgba(255, 47, 63, 0.9);
  padding: 0.35rem 0.6rem;
  cursor: none; letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cookie-modal {
  background: white;
  max-width: 500px; width: 100%;
  padding: 2rem 1.8rem;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  font-family: var(--display);
}
.cookie-title {
  font-size: 1.25rem; font-variation-settings: "wght" 700;
  color: #14141a;
  margin-bottom: 0.8rem;
  cursor: none;
}
.cookie-blurb {
  font-size: 0.9rem; color: #4a4a55;
  line-height: 1.55; margin-bottom: 1.4rem;
}
.partner-count {
  text-decoration: underline; text-decoration-style: dotted;
  cursor: none;
}

.cookie-button-row {
  display: flex; gap: 0.6rem;
}
.cookie-accept-all {
  flex: 1;
  background: linear-gradient(180deg, #4d8eff 0%, #2563d8 100%);
  color: white;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-variation-settings: "wght" 700;
  font-size: 0.95rem;
  cursor: none;
  box-shadow: 0 8px 20px rgba(37, 99, 216, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cookie-accept-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 216, 0.45);
}
.cookie-manage {
  flex: 0 0 auto;
  font-size: 0.78rem;
  color: #8a8a95;
  text-decoration: underline; text-decoration-color: #ccc;
  cursor: none;
  padding: 0.85rem 0.6rem;
}

.cookie-prefs {
  display: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.cookie-prefs.expanded { display: block; animation: fade-rise 0.4s; }

.cookie-prefs h4 {
  font-size: 0.85rem; font-variation-settings: "wght" 700;
  color: #14141a; margin-bottom: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.cookie-prefs .li-section {
  margin-top: 1.5rem; cursor: none;
  position: relative;
}
.cookie-prefs .li-section::before {
  content: "⚠ "; color: var(--blood);
}

.pref-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.85rem;
}
.pref-row input { accent-color: #2563d8; cursor: none; }
.pref-row label { flex: 1; color: #2a2a35; cursor: none; }
.pref-explain { color: #999; font-size: 0.72rem; }

.cookie-final-actions {
  display: flex; gap: 0.6rem; margin-top: 1.2rem;
}
.cookie-reject-small {
  flex: 1; padding: 0.7rem;
  font-size: 0.78rem; color: #888;
  text-decoration: underline; cursor: none;
}
.cookie-save {
  flex: 1; padding: 0.7rem;
  background: #14141a; color: white;
  border-radius: 4px; font-size: 0.85rem;
  font-variation-settings: "wght" 600;
  cursor: none;
}

/* ═════════════════════════════════════════════════════════
   DRILL 3: COMPARISON TRAP — aggressive retail
   ═════════════════════════════════════════════════════════ */
.dps-app[data-active-drill="comparison_trap"] {
  --drill-accent: var(--ember);
  --drill-accent-glow: rgba(255, 138, 61, 0.35);
  --drill-pulse: 1.4s;
}

.shop-header {
  padding: 1.8rem 2rem 1rem;
  font-family: var(--display);
}
.shop-header h2 {
  font-size: 1.65rem;
  font-variation-settings: "wght" 700;
  color: #14141a;
  margin-bottom: 0.3rem;
}
.shop-breadcrumb {
  font-size: 0.78rem; color: #888;
}

.live-viewer {
  margin: 0 2rem 1rem;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 138, 61, 0.12);
  border-left: 3px solid var(--ember);
  font-size: 0.85rem; color: #8a4419;
  cursor: none;
  animation: viewer-bump 6s ease-in-out infinite;
}
@keyframes viewer-bump {
  0%, 90%, 100% { opacity: 1; transform: translateX(0); }
  45%   { opacity: 0.8; transform: translateX(-2px); }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.06);
  margin: 1rem 0;
}
@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: white;
  padding: 1.5rem 1.2rem;
  display: flex; flex-direction: column;
  font-family: var(--display);
  cursor: none;
  position: relative;
  transition: background 0.3s;
}
.product-card.highlighted {
  background: linear-gradient(180deg, #fff8f0 0%, #ffffff 100%);
  z-index: 2;
  box-shadow: 0 0 0 2px var(--ember), 0 20px 40px rgba(255, 138, 61, 0.18);
}
.popular-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--ember); color: white;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem; font-variation-settings: "wght" 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 12px;
  cursor: none;
  box-shadow: 0 4px 12px rgba(255, 138, 61, 0.4);
}

.product-image {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 0.6rem;
  filter: grayscale(0.2);
}
.product-name {
  font-size: 1.1rem;
  font-variation-settings: "wght" 700;
  color: #14141a;
  margin-bottom: 0.3rem;
}
.product-rating {
  font-size: 0.8rem; color: #888;
  margin-bottom: 0.8rem;
}
.review-count { cursor: none; text-decoration: underline; text-decoration-style: dotted; }

.product-price-row {
  display: flex; align-items: baseline; gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.price-anchor {
  font-size: 0.95rem; color: #aaa;
  text-decoration: line-through;
  cursor: none;
}
.price-now {
  font-family: var(--display);
  font-size: 1.65rem;
  font-variation-settings: "wght" 800;
  color: #14141a;
  letter-spacing: -0.03em;
  cursor: none;
  font-variant-numeric: tabular-nums;
}
.save-line {
  font-size: 0.8rem; color: var(--ember);
  font-variation-settings: "wght" 600;
  margin-bottom: 0.8rem;
}

.product-features {
  list-style: none;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #4a4a55;
}
.product-features li {
  padding: 0.2rem 0; padding-left: 1rem; position: relative;
}
.product-features li::before {
  content: "✓"; position: absolute; left: 0; color: var(--jade);
}

.examine-link {
  font-size: 0.78rem; color: #888;
  text-decoration: underline; cursor: none;
  text-align: left; padding: 0.3rem 0;
}
.hidden-detail {
  display: none;
  margin: 0.5rem 0;
  padding: 0.6rem 0.8rem;
  background: #f5f0e8;
  font-size: 0.82rem; color: #5a5a62;
  line-height: 1.5; border-radius: 4px;
}
.hidden-detail.shown { display: block; animation: fade-rise 0.3s; }
.hidden-detail.flagged { background: rgba(77, 217, 164, 0.12); border-left: 3px solid var(--jade); }

.buy-button {
  margin-top: auto;
  padding: 0.85rem;
  background: #14141a;
  color: white;
  border-radius: 4px;
  font-variation-settings: "wght" 600;
  font-size: 0.9rem;
  cursor: none;
  transition: transform 0.2s;
}
.buy-button.highlighted {
  background: var(--ember);
  box-shadow: 0 8px 20px rgba(255, 138, 61, 0.4);
}
.buy-button:hover { transform: translateY(-1px); }

.flagged-as-decoy {
  outline: 2px dashed var(--jade);
  outline-offset: 2px;
}
.flagged-as-decoy::after {
  content: "← DECOY"; position: absolute;
  top: 10px; right: 10px;
  background: var(--jade); color: var(--void);
  font-family: var(--mono); font-size: 0.6rem;
  padding: 3px 6px; letter-spacing: 0.1em;
}

.bundle-section {
  margin: 1rem 2rem;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.08), rgba(255, 138, 61, 0.02));
  border: 1px dashed rgba(255, 138, 61, 0.4);
  border-radius: 6px;
  cursor: none;
  font-family: var(--display);
}
.bundle-title {
  font-size: 0.95rem; font-variation-settings: "wght" 700;
  color: var(--ember);
  margin-bottom: 0.5rem;
}
.bundle-items {
  font-size: 0.88rem; color: #4a4a55;
  margin-bottom: 0.5rem;
}
.bundle-price {
  font-size: 0.95rem; font-variation-settings: "wght" 700;
  color: #14141a;
}

.shop-actions {
  padding: 1rem 2rem 2rem;
  text-align: center;
}
.shop-walk-away {
  font-size: 0.85rem;
  color: #888;
  text-decoration: underline;
  cursor: none;
}

/* ═════════════════════════════════════════════════════════
   DRILL 4: CANCELLATION MAZE — friction-heavy, slow
   ═════════════════════════════════════════════════════════ */
.dps-app[data-active-drill="cancellation_maze"] {
  --drill-accent: var(--violet);
  --drill-accent-glow: rgba(167, 139, 255, 0.32);
  --drill-pulse: 2.8s;
}

.maze-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 2rem;
  background: #14141a; color: white;
  font-family: var(--display);
}
.maze-logo {
  font-variation-settings: "wght" 700;
  letter-spacing: 0.05em;
}
.maze-user { font-size: 0.85rem; color: #ccc; }

.maze-progress {
  display: flex; justify-content: center; gap: 8px;
  padding: 1.2rem 0;
  background: #f5f0e8;
}
.maze-progress .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ccc;
  transition: all 0.4s var(--spring);
}
.maze-progress .dot.active {
  background: var(--violet);
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(167, 139, 255, 0.5);
}
.maze-progress .dot.completed {
  background: var(--jade);
}

.maze-step {
  display: none;
  padding: 2.5rem 2rem;
  font-family: var(--display);
}
.maze-step.active { display: block; animation: fade-rise 0.55s var(--ease-out); }

.maze-step h3 {
  font-size: 1.6rem;
  font-variation-settings: "wght" 700;
  color: #14141a;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}
.maze-step > p {
  color: #4a4a55;
  margin-bottom: 1.4rem;
  line-height: 1.55;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}
@media (max-width: 600px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
}

.dash-card {
  padding: 1rem;
  background: #f5f0e8;
  border-radius: 6px;
  text-align: left;
  cursor: none;
  font-family: var(--display);
  font-size: 0.92rem;
  font-variation-settings: "wght" 600;
  color: #14141a;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.dash-card-icon { font-size: 1.4rem; }
.dash-card.warm  { background: #fff0e8; }
.dash-card.cool  { background: #e8f3ff; }
.dash-card.green { background: #e8fff0; }
.dash-card:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.08); }

.dash-cancel-buried {
  display: block;
  margin: 1.8rem auto 0;
  font-size: 0.72rem;
  color: #bcbcc4;
  text-decoration: underline;
  text-align: center;
  cursor: none;
}
.dash-cancel-buried:hover { color: #2a2a35; }

.loss-list {
  background: #fff5f5;
  border-left: 3px solid var(--blood);
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
  border-radius: 4px;
}
.loss-list-title {
  font-variation-settings: "wght" 700;
  color: #a01018;
  margin-bottom: 0.6rem;
}
.loss-list ul { list-style: none; }
.loss-list li {
  padding: 0.3rem 0; padding-left: 1rem;
  font-size: 0.9rem; color: #4a4a55;
  position: relative;
}
.loss-list li::before {
  content: "✗"; position: absolute; left: 0;
  color: var(--blood);
}

.maze-action-row {
  display: flex; gap: 0.8rem; align-items: center;
  flex-wrap: wrap;
}
.maze-stay {
  flex: 1; min-width: 200px;
  padding: 1rem 1.2rem;
  background: var(--jade);
  color: #0a3525;
  border-radius: 6px;
  font-variation-settings: "wght" 700;
  font-size: 1rem;
  cursor: none;
  box-shadow: 0 8px 20px rgba(77, 217, 164, 0.35);
}
.maze-continue {
  font-size: 0.8rem; color: #888;
  text-decoration: underline; cursor: none;
}

.retention-offer {
  background: linear-gradient(135deg, #f0e8ff, #faf5ff);
  padding: 1.5rem;
  border-radius: 8px; margin-bottom: 1.4rem;
  text-align: center;
}
.offer-tag {
  display: inline-block;
  background: var(--violet); color: white;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}
.offer-headline {
  font-size: 1.8rem; font-variation-settings: "wght" 800;
  color: #14141a;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.offer-detail {
  font-size: 0.9rem; color: #4a4a55;
}

.maze-pause-card {
  display: block; width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, #e8e0ff, #f5f0ff);
  border-radius: 8px; text-align: left;
  cursor: none; margin-bottom: 1rem;
  border: 2px solid var(--violet);
}
.pause-headline {
  font-size: 1.1rem; font-variation-settings: "wght" 700;
  color: #14141a; margin-bottom: 0.3rem;
}
.pause-blurb { font-size: 0.85rem; color: #6a6a75; }

.phone-block {
  background: #f5f0e8; padding: 1.2rem;
  border-radius: 6px; margin-bottom: 1rem;
  text-align: center;
}
.phone-label {
  font-size: 0.75rem; color: #888;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.phone-number {
  font-size: 1.4rem; font-variation-settings: "wght" 800;
  color: #14141a; font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.phone-hours { font-size: 0.8rem; color: #6a6a75; margin-top: 0.3rem; }

.webform-link {
  display: block;
  font-size: 0.72rem;
  color: #aaa;
  text-decoration: underline;
  text-align: center;
  cursor: none;
}

.trap-feedback {
  display: none;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: #fff5f5;
  border-left: 3px solid var(--blood);
  font-size: 0.88rem; color: #6a3030;
  border-radius: 4px;
}
.trap-feedback.shown { display: block; animation: fade-rise 0.45s var(--ease-out); }

.maze-confirmed {
  text-align: center; padding: 2rem 0;
}
.check-icon {
  font-size: 3rem; color: var(--jade);
  margin-bottom: 1rem;
  animation: check-pop 0.6s var(--spring);
}
@keyframes check-pop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* ═════════════════════════════════════════════════════════
   DRILL 5: HARVEST QUIZ — hyper-feminine viral
   ═════════════════════════════════════════════════════════ */
.dps-app[data-active-drill="harvest_quiz"] {
  --drill-accent: var(--poison);
  --drill-accent-glow: var(--poison-glow);
  --drill-pulse: 0.7s;
}

.harvest-page {
  background: linear-gradient(135deg, #fff0f5 0%, #f5e8ff 100%);
  padding: 2rem;
}

.harvest-header { text-align: center; margin-bottom: 1.5rem; }
.harvest-eyebrow {
  font-size: 0.75rem;
  color: #8a3a8a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.harvest-title {
  font-family: var(--display);
  font-size: 1.8rem;
  font-variation-settings: "wght" 800;
  color: #4a1a4a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.emoji-row { display: block; font-size: 2rem; margin-bottom: 0.5rem; }
.harvest-subtitle { font-size: 0.95rem; color: #6a4a6a; }

.harvest-progress-bar {
  height: 6px; background: rgba(0,0,0,0.08);
  border-radius: 3px; margin-bottom: 1.5rem;
  overflow: hidden;
}
.harvest-progress-fill {
  height: 100%; width: 14.28%;
  background: linear-gradient(90deg, #ff6ec7, #c084fc);
  transition: width 0.5s var(--ease-out);
  border-radius: 3px;
}

.harvest-card {
  display: none;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(138, 58, 138, 0.12);
  font-family: var(--display);
}
.harvest-card.active { display: block; animation: harvest-enter 0.45s var(--spring); }
@keyframes harvest-enter {
  0%   { opacity: 0; transform: scale(0.96) translateY(8px); }
  100% { opacity: 1; transform: none; }
}

.harvest-q-number {
  font-size: 0.72rem; color: #aa6aaa;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.harvest-q-text {
  font-size: 1.4rem; font-variation-settings: "wght" 700;
  color: #2a1a4a; margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.harvest-q-cover {
  font-size: 0.92rem; color: #6a4a6a;
  margin-bottom: 1.2rem; line-height: 1.55;
}

.harvest-input {
  display: block; width: 100%;
  padding: 0.8rem 1rem; margin-bottom: 0.6rem;
  background: #fafafa;
  border: 1px solid #e8d8e8;
  border-radius: 6px; font-size: 0.95rem;
  font-family: inherit;
}
.harvest-input:focus { outline: 2px solid #c084fc; border-color: #c084fc; }

.harvest-submit {
  display: block; width: 100%;
  padding: 0.9rem;
  background: linear-gradient(90deg, #ff6ec7, #c084fc);
  color: white;
  border-radius: 6px;
  font-variation-settings: "wght" 700;
  font-size: 0.95rem;
  cursor: none;
  margin-bottom: 0.7rem;
  box-shadow: 0 8px 20px rgba(192, 132, 252, 0.3);
}

.harvest-skip {
  display: block; width: 100%;
  padding: 0.55rem;
  font-size: 0.78rem; color: #888;
  text-align: center; cursor: none;
}

.harvest-options {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.harvest-option {
  padding: 0.75rem 1rem;
  background: #fafafa;
  border: 1px solid #e8d8e8;
  border-radius: 6px; text-align: left;
  cursor: none; font-size: 0.92rem;
  color: #2a1a4a;
  transition: background 0.2s, border-color 0.2s;
}
.harvest-option:hover { background: #f5e8ff; border-color: #c084fc; }

.harvest-result {
  display: none;
  padding: 2rem; text-align: center;
  background: white; border-radius: 12px;
}
.harvest-result.active { display: block; animation: harvest-enter 0.6s var(--spring); }

.harvest-result-eyebrow {
  font-size: 0.75rem; color: #aa6aaa;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.harvest-result-title {
  font-size: 2.2rem;
  font-variation-settings: "wght" 800;
  background: linear-gradient(90deg, #ff6ec7, #c084fc);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.harvest-result-blurb {
  font-size: 0.95rem; color: #4a3a5a;
  line-height: 1.55; margin-bottom: 1rem;
  max-width: 46ch; margin-left: auto; margin-right: auto;
}

.harvest-share-row {
  display: flex; gap: 0.5rem; justify-content: center;
  margin-bottom: 1.2rem; flex-wrap: wrap;
}
.harvest-share-btn {
  padding: 0.55rem 0.9rem;
  background: #1da1f2; color: white;
  border-radius: 18px; font-size: 0.78rem;
  font-variation-settings: "wght" 600;
  cursor: none;
}
.harvest-share-btn.fb { background: #1877f2; }
.harvest-share-btn.wa { background: #25d366; }

.harvest-debrief-btn {
  padding: 0.85rem 1.5rem;
  background: var(--void); color: var(--bone);
  border-radius: 6px; font-variation-settings: "wght" 600;
  font-size: 0.9rem; cursor: none;
}

/* ═════════════════════════════════════════════════════════
   DRILL 6: RECIPE WALL — chaos escalation
   ═════════════════════════════════════════════════════════ */
.dps-app[data-active-drill="recipe_wall"] {
  --drill-accent: var(--jade);
  --drill-accent-glow: var(--jade-glow);
  --drill-pulse: 1.1s;
}

.recipe-page {
  position: relative;
  font-family: var(--display);
  background: white;
}
.recipe-page.popup-active .recipe-page-content {
  filter: blur(3px) brightness(0.92);
  user-select: none; pointer-events: none;
}

.recipe-page-content {
  padding: 2rem;
  transition: filter 0.3s;
}

.recipe-site-header {
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  display: flex; justify-content: space-between; align-items: baseline;
}
.recipe-site-name {
  font-size: 1.2rem; font-variation-settings: "wght" 800;
  letter-spacing: 0.08em;
}
.recipe-site-tag { font-size: 0.78rem; color: #888; }

.recipe-headline {
  font-size: 2rem;
  font-variation-settings: "wght" 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
  color: #14141a;
}
.recipe-meta {
  font-size: 0.82rem; color: #888;
  margin-bottom: 1.5rem;
  display: flex; gap: 0.6rem;
}

.autoplay-video {
  position: relative;
  background: linear-gradient(135deg, #1a1a22, #2a2a35);
  height: 180px;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  overflow: hidden;
}
.play-icon {
  font-size: 3rem; color: white;
  animation: video-pulse 1.5s ease-in-out infinite;
}
@keyframes video-pulse {
  0%, 100% { opacity: 0.9; }
  50%      { opacity: 0.6; }
}
.ad-label {
  position: absolute; top: 8px; left: 8px;
  background: rgba(255, 47, 63, 0.9); color: white;
  font-family: var(--mono); font-size: 0.62rem;
  padding: 0.2rem 0.5rem; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.recipe-flag-hint {
  position: absolute; bottom: 8px; right: 10px;
  font-size: 0.7rem; color: #aaa;
  font-style: italic;
}

.life-story {
  cursor: none;
  margin-bottom: 1.5rem;
  position: relative;
}
.life-story p {
  font-size: 0.92rem;
  color: #4a4a55;
  line-height: 1.65;
  margin-bottom: 0.7rem;
}

.actual-recipe {
  background: #f5f0e8;
  padding: 1.5rem; border-radius: 6px;
  margin-top: 1.5rem;
}
.actual-recipe h3 {
  font-size: 1.3rem;
  font-variation-settings: "wght" 700;
  margin-bottom: 0.5rem;
  color: #14141a;
}
.actual-recipe ul {
  list-style: none;
  margin-bottom: 1.2rem;
}
.actual-recipe ul li {
  padding: 0.4rem 0;
  font-size: 0.92rem;
  border-bottom: 1px dashed #ddd;
}

.recipe-done-btn {
  display: block; width: 100%;
  margin-top: 1rem; padding: 0.9rem;
  background: var(--jade); color: var(--void);
  border-radius: 6px; font-variation-settings: "wght" 700;
  cursor: none;
}

.recipe-popup {
  display: none;
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 5;
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.recipe-popup.shown { display: flex; animation: popup-enter 0.35s var(--spring); }
@keyframes popup-enter {
  0%   { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: none; }
}

.recipe-popup-inner {
  background: white;
  max-width: 380px; width: 100%;
  padding: 1.5rem; border-radius: 8px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.recipe-popup-close {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%; background: #f0e8e0;
  font-size: 0.85rem; color: #888;
  cursor: none;
  display: flex; align-items: center; justify-content: center;
}

.recipe-popup-inner h3 {
  font-size: 1.15rem; font-variation-settings: "wght" 700;
  margin-bottom: 0.6rem; color: #14141a;
}
.recipe-popup-inner p {
  font-size: 0.88rem; color: #4a4a55;
  line-height: 1.55; margin-bottom: 1rem;
}

.recipe-popup-cta {
  display: block; width: 100%;
  padding: 0.75rem; border-radius: 6px;
  font-variation-settings: "wght" 700; font-size: 0.9rem;
  margin-bottom: 0.5rem; cursor: none;
  background: #14141a; color: white;
}
.recipe-popup-cta.warm   { background: linear-gradient(180deg, #ff8a3d, #ff6a1a); }
.recipe-popup-cta.purple { background: linear-gradient(180deg, #a78bff, #7b5dff); }
.recipe-popup-cta.green  { background: linear-gradient(180deg, #4dd9a4, #2bb585); color: var(--void); }

.popup-skip-link {
  display: block; width: 100%; padding: 0.45rem;
  font-size: 0.78rem; color: #888;
  text-decoration: underline; text-align: center;
  cursor: none;
}

.popup-feature-list {
  list-style: none; margin-bottom: 1rem;
}
.popup-feature-list li {
  padding: 0.25rem 0; padding-left: 1rem;
  font-size: 0.85rem; color: #4a4a55;
  position: relative;
}
.popup-feature-list li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--jade);
}

/* ═════════════════════════════════════════════════════════
   SCREEN: DEBRIEF
   ═════════════════════════════════════════════════════════ */
#screen-debrief {
  padding: 4rem 2.5rem 8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.debrief-marker {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--whisper);
  margin-bottom: 3rem;
}
.debrief-marker::before {
  content: ""; display: block;
  width: 38px; height: 1px; background: var(--whisper);
}
.debrief-marker em {
  font-style: normal; color: var(--drill-accent);
}

.debrief-hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: end;
  padding-bottom: 4rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--vapour);
}
@media (max-width: 800px) {
  .debrief-hero { grid-template-columns: 1fr; gap: 2rem; }
}

.debrief-score {
  font-family: var(--display);
  font-size: clamp(10rem, 22vw, 18rem);
  font-variation-settings: "wght" 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.debrief-score em {
  font-style: italic; color: var(--drill-accent);
  font-variation-settings: "wght" 200;
}
.debrief-score .total {
  font-variation-settings: "wght" 200;
  color: var(--fog);
}

.debrief-rating {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-variation-settings: "wght" 500;
  font-style: italic;
  color: var(--pearl);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 32ch;
}

.tactic-breakdown {
  display: flex; flex-direction: column;
  gap: 1.5rem;
}

.tactic-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem 2rem;
  background: var(--obsidian);
  border: 1px solid var(--vapour);
  position: relative;
  transition: background 0.4s, border-color 0.4s;
}
.tactic-card.dodged {
  border-left: 4px solid var(--jade);
}
.tactic-card.dodged::before {
  content: "DODGED"; position: absolute;
  top: -1px; left: -4px;
  background: var(--jade); color: var(--void);
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.2em; padding: 0.3rem 0.55rem;
}
.tactic-card.missed {
  border-left: 4px solid var(--blood);
}
.tactic-card.missed::before {
  content: "MISSED"; position: absolute;
  top: -1px; left: -4px;
  background: var(--blood); color: var(--bone);
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.2em; padding: 0.3rem 0.55rem;
}
.tactic-card:hover {
  background: var(--ash);
  border-color: var(--ghost);
}

.tactic-status {
  display: none;
}
.tactic-index {
  font-family: var(--display);
  font-variation-settings: "wght" 200;
  font-size: 3.6rem; line-height: 1;
  color: var(--whisper);
  font-style: italic;
  font-variant-numeric: tabular-nums;
}
.tactic-name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-variation-settings: "wght" 700;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 0.6rem;
}
.tactic-description {
  font-size: 0.95rem; color: var(--pearl);
  margin-bottom: 1rem; line-height: 1.55;
}
.tactic-psychology {
  font-size: 0.88rem; color: var(--fog);
  margin-bottom: 1rem; line-height: 1.55;
  padding-left: 1rem; border-left: 2px solid var(--vapour);
}
.tactic-psychology strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--drill-accent);
  margin-bottom: 0.4rem;
}
.tactic-consequence {
  font-size: 0.88rem; color: var(--blood);
  padding: 0.8rem 1rem;
  background: rgba(255, 47, 63, 0.05);
  border-left: 2px solid var(--blood);
  font-style: italic;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .tactic-card { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
  .tactic-index { font-size: 2.4rem; }
}

.debrief-actions {
  display: flex; gap: 1rem; justify-content: center;
  margin-top: 4rem; flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1rem 2rem; cursor: none;
  transition: all 0.3s var(--spring);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--bone); color: var(--void);
  font-variation-settings: "wght" 600;
}
.btn-primary:hover {
  background: var(--poison);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--poison-glow);
}
.btn-secondary {
  background: transparent; color: var(--bone);
  border: 1px solid var(--ghost);
}
.btn-secondary:hover {
  border-color: var(--bone);
  background: var(--vapour);
}

/* ═════════════════════════════════════════════════════════
   META-LAYER REVEAL (the "you noticed/missed" overlay)
   ═════════════════════════════════════════════════════════ */
.reveal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: rgba(8, 8, 11, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
.reveal.visible { opacity: 1; pointer-events: auto; }

.reveal-card {
  max-width: 560px;
  background: var(--obsidian);
  border: 1px solid var(--ghost);
  padding: 3rem 2.5rem;
  position: relative;
  transform: scale(0.96) translateY(20px);
  transition: transform 0.7s var(--spring);
}
.reveal.visible .reveal-card {
  transform: none;
}
.reveal-marker {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--drill-accent); margin-bottom: 1rem;
}
.reveal-title {
  font-family: var(--display);
  font-size: 2.4rem;
  font-variation-settings: "wght" 720;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--bone);
  margin-bottom: 1.2rem;
}
.reveal-title em {
  font-style: italic; color: var(--drill-accent);
  font-variation-settings: "wght" 600;
}
.reveal-body {
  font-size: 1rem; color: var(--pearl);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.reveal-dismiss {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  background: var(--bone); color: var(--void);
  cursor: none;
}

/* ═════════════════════════════════════════════════════════
   NOTIFICATION TOASTS (fake system messages)
   ═════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed; top: calc(var(--rail-h) + 1rem); right: 1.5rem;
  z-index: 150;
  display: flex; flex-direction: column; gap: 0.6rem;
  pointer-events: none;
  max-width: 320px;
}
.toast {
  background: rgba(15, 15, 20, 0.92);
  border: 1px solid var(--ghost);
  border-left: 3px solid var(--drill-accent);
  padding: 0.85rem 1rem;
  backdrop-filter: blur(20px);
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--bone);
  transform: translateX(110%);
  transition: transform 0.55s var(--spring), opacity 0.4s;
  pointer-events: auto;
  letter-spacing: 0.02em;
}
.toast.visible { transform: translateX(0); }
.toast.outgoing { transform: translateX(110%); opacity: 0; }
.toast b {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wght" 700;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}
.toast small {
  display: block;
  font-size: 0.64rem; color: var(--whisper);
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ═════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════ */
.dps-app footer {
  position: relative; z-index: 10;
  padding: 4rem 2.5rem 3rem;
  padding-left: calc(var(--side-rail-w) + 2.5rem);
  padding-right: calc(var(--side-rail-w) + 2.5rem);
  border-top: 1px solid var(--vapour);
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--whisper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 720px) {
  .dps-app footer { grid-template-columns: 1fr; padding-right: calc(var(--side-rail-w) + 1rem); padding-left: calc(var(--side-rail-w) + 1rem); }
}
.dps-app footer .promise {
  color: var(--bone);
  font-variation-settings: "wght" 600;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  font-family: var(--display);
  font-style: italic;
}
.dps-app footer p { margin-bottom: 0.3rem; }
.dps-app footer a {
  color: var(--poison);
  text-decoration: underline;
  text-decoration-color: var(--ghost);
  cursor: none;
}
.dps-app footer a:hover { text-decoration-color: var(--poison); }

/* ═════════════════════════════════════════════════════════
   MAGNETIC / HOVER-DISTORT — applied to interactive elements via JS
   ═════════════════════════════════════════════════════════ */
.magnet { transition: transform 0.4s var(--spring); will-change: transform; }

/* hostile loading bar that appears on drill entry */
.drill-curtain {
  position: fixed; inset: 0; z-index: 300;
  background: var(--void);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.drill-curtain.visible {
  opacity: 1; pointer-events: auto;
}
.drill-curtain-label {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--drill-accent);
}
.drill-curtain-num {
  font-family: var(--display);
  font-size: 14rem; line-height: 1;
  font-variation-settings: "wght" 800;
  font-style: italic;
  letter-spacing: -0.06em;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.drill-curtain-progress {
  width: 200px; height: 1px;
  background: var(--vapour); position: relative;
  overflow: hidden;
}
.drill-curtain-progress::after {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0; width: 0;
  background: var(--drill-accent);
  animation: curtain-fill 0.9s var(--ease-out) forwards;
}
@keyframes curtain-fill {
  to { width: 100%; }
}
.drill-curtain-name {
  font-family: var(--display);
  font-style: italic;
  font-variation-settings: "wght" 400;
  font-size: 1.4rem;
  color: var(--pearl);
  letter-spacing: -0.02em;
}

/* shake (used on incorrect input) */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}
.shake { animation: shake 0.3s var(--ease-in-out); }