/* ── The CookBook — Sniper Range Intro (game-fi) ── */
#cookbook-intro {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020204;
  color: #fff;
  overflow: hidden;
  font-family: 'Syne', 'Inter', system-ui, sans-serif;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.75s;
}
#cookbook-intro.cb-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#cookbook-intro.cb-impact .cb-stage {
  animation: cbScreenPunch 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}
html.cb-intro-skip #cookbook-intro { display: none !important; }

/* Letterbox */
.cb-letterbox {
  position: absolute;
  left: 0; right: 0;
  height: 5.5vh;
  background: #000;
  z-index: 20;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.cb-letterbox.top { top: 0; transform-origin: top; }
.cb-letterbox.bot { bottom: 0; transform-origin: bottom; }
#cookbook-intro.cb-done .cb-letterbox { transform: scaleY(0); }

.cb-vignette {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, transparent 25%, rgba(0,0,0,0.78) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, transparent 28%, transparent 72%, rgba(0,0,0,0.45) 100%);
}

.cb-flash {
  position: absolute;
  inset: 0;
  z-index: 18;
  background: radial-gradient(circle at 18% 58%, rgba(34,197,94,0.55), transparent 45%),
              rgba(255,255,255,0.35);
  opacity: 0;
  pointer-events: none;
}
#cookbook-intro.cb-flash-on .cb-flash {
  animation: cbMuzzleFlash 0.45s ease-out forwards;
}

/* ═══ Arena battlefield ═══ */
.cb-arena {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.cb-arena-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 55%, #000 20%, transparent 75%);
  opacity: 0;
  animation: cbFadeIn 1.2s ease forwards 0.15s;
}
.cb-arena-glow {
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  left: 20%;
  top: 55%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 40% 40%, rgba(34,197,94,0.28), transparent 40%),
    radial-gradient(circle at 70% 50%, rgba(34,211,238,0.12), transparent 38%),
    radial-gradient(circle at 50% 60%, rgba(168,85,247,0.1), transparent 50%);
  filter: blur(12px);
  opacity: 0;
  animation: cbFadeIn 1.4s ease forwards 0.3s, cbGlowPulse 3.5s ease-in-out infinite 1.6s;
}

/* Floating chart candles in the sky (ambient) */
.cb-candle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cb-candle-field .cb-amb {
  position: absolute;
  width: 10px;
  opacity: 0;
  animation: cbAmbCandle linear infinite;
}
.cb-amb .wick {
  width: 2px;
  margin: 0 auto;
  background: rgba(255,255,255,0.35);
}
.cb-amb .body {
  width: 100%;
  border-radius: 1px;
  box-shadow: 0 0 10px currentColor;
}
.cb-amb.bull { color: #22c55e; }
.cb-amb.bull .body { background: linear-gradient(180deg, #4ade80, #16a34a); }
.cb-amb.bear { color: #ef4444; }
.cb-amb.bear .body { background: linear-gradient(180deg, #f87171, #dc2626); }

/* Crosshair HUD corners */
.cb-hud-corner {
  position: absolute;
  width: 56px;
  height: 56px;
  z-index: 3;
  opacity: 0;
  animation: cbFadeIn 0.6s ease forwards 0.8s;
  border-color: rgba(34,197,94,0.55);
  border-style: solid;
  border-width: 0;
}
.cb-hud-corner.tl { top: 8vh; left: 4vw; border-top-width: 2px; border-left-width: 2px; }
.cb-hud-corner.tr { top: 8vh; right: 4vw; border-top-width: 2px; border-right-width: 2px; }
.cb-hud-corner.bl { bottom: 8vh; left: 4vw; border-bottom-width: 2px; border-left-width: 2px; }
.cb-hud-corner.br { bottom: 8vh; right: 4vw; border-bottom-width: 2px; border-right-width: 2px; }

.cb-range-label {
  position: absolute;
  top: 9vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.45em;
  color: rgba(34,197,94,0.65);
  text-transform: uppercase;
  opacity: 0;
  animation: cbFadeIn 0.7s ease forwards 1s;
  white-space: nowrap;
}

/* Kill feed */
.cb-killfeed {
  position: absolute;
  top: 12vh;
  right: 5vw;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  max-width: 220px;
  pointer-events: none;
}
.cb-kill {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 3px;
  background: rgba(5,8,6,0.82);
  border: 1px solid rgba(34,197,94,0.35);
  color: #86efac;
  box-shadow: 0 0 16px rgba(34,197,94,0.15);
  opacity: 0;
  transform: translateX(24px);
  animation: cbKillIn 0.35s ease forwards, cbKillOut 0.4s ease forwards 1.6s;
}
.cb-kill.bear {
  border-color: rgba(239,68,68,0.4);
  color: #fca5a5;
  box-shadow: 0 0 16px rgba(239,68,68,0.12);
}
.cb-kill strong { color: #fff; font-weight: 800; }

/* ═══ Sniper character ═══ */
.cb-sniper {
  position: absolute;
  left: max(2vw, 8px);
  bottom: 10vh;
  width: 160px;
  height: 210px;
  z-index: 4;
  opacity: 0;
  transform: translateX(-40px);
  animation: cbSniperIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
  filter: drop-shadow(0 0 24px rgba(34,197,94,0.25));
}
.cb-sniper.shooting {
  animation: cbRecoil 0.28s ease;
}
.cb-sniper-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cb-sniper .body-fill { fill: #0a1210; stroke: #22c55e; stroke-width: 1.5; }
.cb-sniper .accent-fill { fill: #14532d; stroke: #4ade80; stroke-width: 1; }
.cb-sniper .scope { fill: #0f172a; stroke: #22d3ee; stroke-width: 1.4; }
.cb-sniper .lens {
  fill: rgba(34,211,238,0.35);
  stroke: #67e8f9;
  stroke-width: 1;
  animation: cbLensPulse 1.8s ease-in-out infinite;
}
.cb-sniper .visor { fill: rgba(34,197,94,0.2); stroke: #22c55e; stroke-width: 1.2; }
.cb-sniper .glow-line { stroke: #22c55e; stroke-width: 1; opacity: 0.6; }
.cb-muzzle {
  position: absolute;
  left: 142px;
  top: 78px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #4ade80 30%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.3);
}
.cb-sniper.shooting .cb-muzzle {
  animation: cbMuzzlePop 0.28s ease-out;
}

/* Laser sight */
.cb-laser {
  position: absolute;
  left: 150px;
  top: 90px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, rgba(34,197,94,0.9), rgba(34,197,94,0));
  box-shadow: 0 0 8px #22c55e;
  opacity: 0;
  animation: cbLaserSweep 2.4s ease-in-out infinite 1.2s;
  transform-origin: left center;
}

/* Flying candle projectiles (shot targets) */
.cb-projectiles {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.cb-shot {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 8px currentColor);
}
.cb-shot .wick-t,
.cb-shot .wick-b {
  width: 2px;
  margin: 0 auto;
  background: currentColor;
  opacity: 0.85;
}
.cb-shot .body {
  width: 14px;
  margin: 0 auto;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.15);
}
.cb-shot.bull { color: #22c55e; }
.cb-shot.bull .body {
  background: linear-gradient(180deg, #4ade80, #15803d);
  box-shadow: 0 0 14px rgba(34,197,94,0.55);
}
.cb-shot.bear { color: #ef4444; }
.cb-shot.bear .body {
  background: linear-gradient(180deg, #f87171, #b91c1c);
  box-shadow: 0 0 14px rgba(239,68,68,0.45);
}
.cb-shot.flying {
  animation: cbCandleFly linear forwards;
}
.cb-shot.hit {
  animation: cbCandleHit 0.45s ease-out forwards;
}
.cb-shot .hit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border: 2px solid #fff;
  border-radius: 50%;
  opacity: 0;
}
.cb-shot.hit .hit-ring {
  animation: cbHitRing 0.45s ease-out forwards;
}

/* Floating score pops */
.cb-float {
  position: absolute;
  z-index: 8;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #86efac;
  text-shadow: 0 0 12px rgba(34,197,94,0.7);
  pointer-events: none;
  animation: cbFloatScore 0.9s ease-out forwards;
}
.cb-float.bear { color: #fca5a5; text-shadow: 0 0 12px rgba(239,68,68,0.6); }

.cb-scan {
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  z-index: 2;
  background: linear-gradient(transparent, rgba(34,197,94,0.06), transparent);
  top: -120px;
  animation: cbScan 3.2s ease-in-out infinite 1.1s;
  pointer-events: none;
}

/* ═══ Center stage UI ═══ */
.cb-stage {
  position: relative;
  z-index: 10;
  width: min(560px, 92vw);
  text-align: center;
  padding: 20px;
}

.cb-chapter {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(12px);
  animation: cbRise 0.65s ease forwards 0.5s;
  text-shadow: 0 0 18px rgba(34,197,94,0.5);
}
.cb-chapter span { color: #5a5a72; letter-spacing: 0.28em; }

/* Crosshair mark */
.cb-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  position: relative;
  opacity: 0;
  transform: scale(0.3);
  animation: cbMarkSlam 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.75s;
}
.cb-mark-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(34,197,94,0.55);
  background:
    radial-gradient(circle at center, rgba(34,197,94,0.12) 0%, transparent 55%),
    rgba(5,8,6,0.75);
  box-shadow:
    0 0 0 1px rgba(34,211,238,0.2),
    0 0 40px rgba(34,197,94,0.3),
    inset 0 0 24px rgba(34,197,94,0.08);
}
.cb-mark-ring::before,
.cb-mark-ring::after {
  content: '';
  position: absolute;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
.cb-mark-ring::before {
  left: 50%; top: 10px; bottom: 10px;
  width: 2px; margin-left: -1px;
}
.cb-mark-ring::after {
  top: 50%; left: 10px; right: 10px;
  height: 2px; margin-top: -1px;
}
.cb-mark-dot {
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 16px #22c55e;
  animation: cbLensPulse 1.4s ease-in-out infinite 1.4s;
}
.cb-mark-orbit {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(34,211,238,0.35);
  animation: cbOrbit 8s linear infinite 1.5s;
}

.cb-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #7f7f99;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(10px);
  animation: cbRise 0.6s ease forwards 1.05s;
}

.cb-title {
  font-size: clamp(44px, 8.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0 0 12px;
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  animation: cbTitleSlam 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s;
  filter: drop-shadow(0 0 28px rgba(34,197,94,0.35));
}
.cb-title .cb-the {
  display: block;
  font-size: 0.28em;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: #a7a7bf;
  margin-bottom: 8px;
}
.cb-title .cb-name {
  display: inline-block;
  background: linear-gradient(105deg, #ffffff 5%, #4ade80 35%, #22d3ee 60%, #22c55e 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cbShimmer 2.8s ease-in-out infinite 2s;
}
.cb-title-line {
  width: 0;
  height: 2px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, transparent, #22c55e, #22d3ee, transparent);
  animation: cbLineExpand 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) forwards 1.7s;
  box-shadow: 0 0 12px rgba(34,197,94,0.5);
}

.cb-tagline {
  font-size: 13px;
  color: #a7a7bf;
  max-width: 400px;
  margin: 0 auto 22px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px);
  animation: cbRise 0.65s ease forwards 1.85s;
}

.cb-modules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-bottom: 20px;
  opacity: 0;
  animation: cbRise 0.5s ease forwards 2.05s;
}
.cb-mod {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 3px;
  border: 1px solid #1a261c;
  color: #4a5a4e;
  background: rgba(5,12,8,0.75);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.cb-mod.on {
  color: #e8fff0;
  border-color: rgba(34,197,94,0.5);
  background: rgba(34,197,94,0.12);
  box-shadow: 0 0 16px rgba(34,197,94,0.22);
}
.cb-mod.on.cyan {
  border-color: rgba(34,211,238,0.5);
  background: rgba(34,211,238,0.1);
  box-shadow: 0 0 14px rgba(34,211,238,0.2);
}
.cb-mod.on.accent {
  border-color: rgba(168,85,247,0.5);
  background: rgba(168,85,247,0.12);
  box-shadow: 0 0 14px rgba(168,85,247,0.2);
}

.cb-boot {
  text-align: left;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.75;
  color: #7f7f99;
  background: rgba(3,8,5,0.88);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  min-height: 110px;
  opacity: 0;
  transform: translateY(10px);
  animation: cbRise 0.5s ease forwards 2.2s;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), inset 0 0 40px rgba(34,197,94,0.03);
}
.cb-boot .cb-line {
  opacity: 0;
  transform: translateX(-8px);
}
.cb-boot .cb-line.show {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cb-boot .ok { color: #22c55e; }
.cb-boot .cyan { color: #22d3ee; }
.cb-boot .muted { color: #5a5a72; }
.cb-boot .accent { color: #a855f7; }
.cb-boot .warn { color: #f59e0b; }

.cb-progress-wrap {
  position: relative;
  height: 4px;
  background: #0c1610;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 14px;
  opacity: 0;
  animation: cbRise 0.45s ease forwards 2.3s;
  border: 1px solid rgba(34,197,94,0.15);
}
.cb-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #15803d, #22c55e, #22d3ee);
  border-radius: 99px;
  box-shadow: 0 0 14px rgba(34,197,94,0.55);
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cb-progress-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  animation: cbBarShine 1.6s ease-in-out infinite 2.6s;
}

.cb-status {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4ade80;
  opacity: 0;
  animation: cbRise 0.45s ease forwards 2.35s;
  min-height: 1.4em;
}
.cb-status.ready {
  color: #22c55e;
  text-shadow: 0 0 16px rgba(34,197,94,0.5);
}

.cb-enter {
  margin-top: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: scale(0.9);
  text-shadow: 0 0 24px rgba(34,197,94,0.6);
}
.cb-enter.show { animation: cbEnterPulse 1s ease forwards; }

.cb-resume {
  display: none;
  margin-top: 20px;
  padding: 14px 28px;
  border: 1px solid rgba(34,197,94,0.5);
  background: rgba(34,197,94,0.14);
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(34,197,94,0.25);
}
.cb-resume.show {
  display: inline-block;
  animation: cbEnterPulse 1s ease forwards;
}
.cb-resume:hover {
  background: rgba(34,197,94,0.25);
  border-color: #22c55e;
}

.cb-skip {
  position: absolute;
  bottom: max(24px, 8vh);
  right: 24px;
  z-index: 22;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(34,197,94,0.25);
  color: #6b7a6e;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  animation: cbRise 0.4s ease forwards 2.5s;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.cb-skip:hover {
  color: #fff;
  border-color: #22c55e;
  background: rgba(34,197,94,0.12);
}

/* Exit wipe — green bars */
.cb-wipe {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.cb-wipe span {
  flex: 1;
  background: linear-gradient(90deg, #020804, #050507);
  transform: scaleX(0);
  transform-origin: left;
}
#cookbook-intro.cb-wiping .cb-wipe span {
  animation: cbWipe 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
#cookbook-intro.cb-wiping .cb-wipe span:nth-child(2) { animation-delay: 0.04s; }
#cookbook-intro.cb-wiping .cb-wipe span:nth-child(3) { animation-delay: 0.08s; }
#cookbook-intro.cb-wiping .cb-wipe span:nth-child(4) { animation-delay: 0.12s; }
#cookbook-intro.cb-wiping .cb-wipe span:nth-child(5) { animation-delay: 0.16s; }

/* Keyframes */
@keyframes cbFadeIn { to { opacity: 1; } }
@keyframes cbGlowPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; filter: blur(16px); }
}
@keyframes cbSniperIn {
  to { opacity: 1; transform: none; }
}
@keyframes cbRecoil {
  0% { transform: translateX(0); }
  30% { transform: translateX(-10px) rotate(-1deg); }
  100% { transform: translateX(0); }
}
@keyframes cbMuzzlePop {
  0% { opacity: 1; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(2.2); }
}
@keyframes cbMuzzleFlash {
  0% { opacity: 0.4; }
  100% { opacity: 0; }
}
@keyframes cbLaserSweep {
  0%, 100% { width: 18vw; opacity: 0.15; }
  50% { width: 42vw; opacity: 0.55; }
}
@keyframes cbLensPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes cbOrbit { to { transform: rotate(360deg); } }
@keyframes cbCandleFly {
  0% { transform: translate(0, 0) scale(0.6) rotate(-8deg); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translate(var(--fly-x), var(--fly-y)) scale(1.05) rotate(12deg); opacity: 0.95; }
}
@keyframes cbCandleHit {
  0% { transform: translate(var(--fly-x), var(--fly-y)) scale(1); opacity: 1; filter: brightness(2); }
  100% { transform: translate(var(--fly-x), calc(var(--fly-y) - 20px)) scale(1.6); opacity: 0; filter: brightness(3); }
}
@keyframes cbHitRing {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(6); border-color: #22c55e; }
}
@keyframes cbFloatScore {
  0% { opacity: 1; transform: translateY(0) scale(0.8); }
  100% { opacity: 0; transform: translateY(-48px) scale(1.15); }
}
@keyframes cbKillIn {
  to { opacity: 1; transform: none; }
}
@keyframes cbKillOut {
  to { opacity: 0; transform: translateX(16px); }
}
@keyframes cbAmbCandle {
  0% { transform: translateY(20px) scale(0.7); opacity: 0; }
  15% { opacity: 0.55; }
  100% { transform: translateY(-110vh) scale(1); opacity: 0; }
}
@keyframes cbMarkSlam {
  0% { opacity: 0; transform: scale(0.3); }
  55% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes cbTitleSlam {
  0% { opacity: 0; transform: translateY(24px) scale(0.92); }
  55% { opacity: 1; transform: translateY(-3px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cbLineExpand { to { width: min(260px, 52vw); } }
@keyframes cbRise { to { opacity: 1; transform: none; } }
@keyframes cbShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes cbScan {
  0% { top: -120px; }
  100% { top: 110%; }
}
@keyframes cbBarShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes cbEnterPulse {
  0% { opacity: 0; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1.06); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.9; transform: scale(1); }
}
@keyframes cbScreenPunch {
  0% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
@keyframes cbWipe {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 720px) {
  .cb-sniper {
    width: 110px;
    height: 150px;
    bottom: 12vh;
    left: 0;
    opacity: 0.85;
  }
  .cb-laser { display: none; }
  .cb-killfeed {
    top: auto;
    bottom: 14vh;
    right: 12px;
    max-width: 160px;
  }
  .cb-hud-corner { width: 36px; height: 36px; }
  .cb-range-label { font-size: 8px; letter-spacing: 0.28em; }
  .cb-stage { padding: 12px; }
  .cb-boot { min-height: 96px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  #cookbook-intro *,
  #cookbook-intro *::before {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
  .cb-projectiles,
  .cb-candle-field,
  .cb-laser { display: none; }
}
