/* ===== COSA NOSTRA // UNDERGROUND v7 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --paper: #e8e4d4;
  --paper-dark: #d5d0be;
  --blood: #d90429;
  --dark-blood: #8b0000;
  --gold: #d4af37;
  --ink: #111;
  --gray: #2b2b2b;
  --white: #f5f5f5;
  --head: 'Anton', sans-serif;
  --type: 'Special Elite', monospace;
  --ui: 'Inter', sans-serif;
}

/* === NATIVE SVG CURSOR (never disappears) === */
html, body, a, button, input, textarea {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='none' stroke='%23d90429' stroke-width='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='12' stroke='%23d90429' stroke-width='1.5'/%3E%3Cline x1='16' y1='20' x2='16' y2='30' stroke='%23d90429' stroke-width='1.5'/%3E%3Cline x1='2' y1='16' x2='12' y2='16' stroke='%23d90429' stroke-width='1.5'/%3E%3Cline x1='20' y1='16' x2='30' y2='16' stroke='%23d90429' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%23d90429'/%3E%3C/svg%3E") 16 16, crosshair;
}
a:hover, button:hover, .brutal-row:hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Crect x='4' y='4' width='24' height='24' fill='none' stroke='%23d90429' stroke-width='2'/%3E%3Cline x1='16' y1='6' x2='16' y2='12' stroke='%23d90429' stroke-width='2'/%3E%3Cline x1='16' y1='20' x2='16' y2='26' stroke='%23d90429' stroke-width='2'/%3E%3Cline x1='6' y1='16' x2='12' y2='16' stroke='%23d90429' stroke-width='2'/%3E%3Cline x1='20' y1='16' x2='26' y2='16' stroke='%23d90429' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='2.5' fill='%23d90429'/%3E%3C/svg%3E") 16 16, pointer;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ui);
  background: var(--bg);
  background-image: radial-gradient(ellipse at 30% 20%, rgba(217,4,41,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(212,175,55,0.03) 0%, transparent 50%);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

/* === DIRT OVERLAY === */
.dirty-overlay {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* === MARQUEE === */
.marquee-wall {
  position: fixed; top: 22%; left: -10%; width: 130%; z-index: 0;
  transform: rotate(-5deg); opacity: 0.035; pointer-events: none;
  font-family: var(--head); font-size: 8rem; white-space: nowrap; color: var(--white);
  line-height: 1; text-transform: uppercase;
}
.marquee-track { display: inline-block; animation: scroll-l 45s linear infinite; }
.mt-reverse { animation: scroll-r 38s linear infinite; margin-top: 10px; color: var(--blood); }
@keyframes scroll-l { to { transform: translateX(-50%); } }
@keyframes scroll-r { 0% { transform: translateX(-50%); } to { transform: translateX(0); } }

/* === HEADER === */
.mafia-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.92); border-bottom: 3px solid var(--blood);
  backdrop-filter: blur(6px);
}
.header-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1300px; margin: 0 auto; height: 60px; padding: 0 24px;
}
.logo { font-family: var(--head); font-size: 24px; letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px; }
.skull { color: var(--blood); font-size: 28px; }
.nav { display: flex; gap: 24px; }
.nav a { font-family: var(--head); font-size: 18px; color: #ccc; transition: color 0.2s; }
.nav a:hover { color: var(--blood); }
.call-to-action {
  font-family: var(--head); font-size: 16px; letter-spacing: 2px;
  background: var(--blood); color: #fff; padding: 6px 18px; border: 2px solid var(--blood);
  box-shadow: 4px 4px 0 var(--dark-blood); transition: all 0.15s;
}
.call-to-action:hover { background: transparent; color: var(--blood); transform: translate(4px,4px); box-shadow: none; }
.burger { display: none; background: none; border: none; color: var(--blood); font-size: 28px; font-family: var(--head); }
.mobile-menu { display: none; flex-direction: column; background: rgba(10,10,10,0.98); border-bottom: 2px solid var(--blood); }
.mobile-menu.show { display: flex; }
.mobile-menu a { font-family: var(--head); font-size: 20px; padding: 14px 24px; border-bottom: 1px solid #222; color: #ccc; }
.mobile-menu a:hover { color: var(--blood); }
.mob-cta { text-align: center; background: var(--blood); color: #fff!important; margin: 12px 24px; padding: 12px !important; }
@media(max-width:768px){ .nav,.call-to-action{display:none} .burger{display:block} }

/* === HERO === */
.hero-block { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding-top: 60px; z-index: 1; }
.tape-strip {
  background: var(--gold); color: var(--ink); font-family: var(--head); font-size: 22px;
  white-space: nowrap; padding: 5px 0; border-bottom: 3px solid var(--ink); border-top: 3px solid var(--ink);
  animation: scroll-l 16s linear infinite;
}
.hero-layout { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 1300px; margin: 0 auto; width: 100%; padding: 40px 24px; }
.warning-tape {
  display: inline-block; background: var(--blood); color: #fff; font-family: var(--head); font-size: 14px;
  padding: 4px 10px; transform: rotate(-2deg); margin-bottom: 14px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--dark-blood);
}
.hero-title { font-family: var(--head); font-size: clamp(56px, 10vw, 110px); line-height: 0.9; letter-spacing: 2px; margin-bottom: 20px; }
.blood-text { color: var(--blood); text-shadow: 3px 3px 0 var(--dark-blood); }
.ransom-note { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; font-family: var(--type); font-weight: bold; font-size: 20px; }
.cut-let { display: inline-block; padding: 2px 6px; background: var(--paper); color: var(--ink); border: 1px solid #999; transform: rotate(calc(var(--r,0)*1deg)); box-shadow: 1px 1px 2px rgba(0,0,0,0.3); }
.cut-let:nth-child(even) { --r: 3; background: #fff; }
.cut-let:nth-child(3n) { --r: -2; background: #ddd; }
.cut-let:nth-child(7n) { --r: 4; background: #f0eee0; }
.manifest-sub { font-size: 16px; color: #bbb; max-width: 480px; margin-bottom: 24px; line-height: 1.7; border-left: 4px solid var(--blood); padding-left: 16px; }
.tags span { display: inline-block; font-family: var(--type); background: #1a1a1a; color: #ccc; padding: 4px 10px; margin: 0 4px 8px 0; border: 1px solid #333; }

.hero-3d { position: relative; width: 100%; height: 400px; display: flex; justify-content: center; align-items: center; }
#artifactCanvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.target-svg { position: absolute; width: 75%; height: 75%; z-index: 1; opacity: 0.25; animation: spin-slow 40s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.down-arrow { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-family: var(--head); font-size: 20px; color: var(--blood); animation: bob 2s infinite; }
@keyframes bob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }
@media(max-width:900px){
  .hero-layout{grid-template-columns:1fr;text-align:center}
  .warning-tape{transform:rotate(0)}
  .manifest-sub{margin:0 auto 24px;border-left:none;border-bottom:4px solid var(--blood);padding-left:0;padding-bottom:8px}
  .ransom-note{justify-content:center}
  .hero-3d{order:-1;height:280px}
}

/* === SECTIONS === */
.section { max-width: 1300px; margin: 0 auto; padding: 100px 24px; position: relative; z-index: 1; }
.section-title { font-family: var(--head); font-size: clamp(28px,5vw,56px); text-transform: uppercase;
  color: var(--white); margin-bottom: 48px; border-bottom: 6px solid var(--blood); display: inline-block; padding-bottom: 4px; }

/* === REALISTIC PAPER DOCUMENTS === */
.paper-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.real-paper {
  position: relative; padding: 40px 28px 36px;
  background: var(--paper);
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(180,160,120,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200,190,160,0.2) 0%, transparent 50%);
  color: var(--ink);
  box-shadow: 2px 2px 4px rgba(0,0,0,0.25), 6px 6px 0 rgba(0,0,0,0.7), 10px 10px 20px rgba(0,0,0,0.4);
  transform: rotate(-1.5deg);
  transition: transform 0.25s, box-shadow 0.25s;
}
.real-paper:nth-child(2) { transform: rotate(1.2deg); }
.real-paper:nth-child(3) { transform: rotate(-0.8deg); }
.real-paper:nth-child(4) { transform: rotate(2deg); }
.real-paper:hover { transform: scale(1.03) rotate(0deg); z-index: 10; box-shadow: 4px 4px 8px rgba(0,0,0,0.3), 8px 8px 0 var(--blood), 14px 14px 30px rgba(0,0,0,0.5); }
.real-paper.folded { border-right: 16px solid var(--paper-dark); }
.real-paper.burned {
  background: #c5bc9e;
  background-image: radial-gradient(ellipse at 90% 90%, rgba(60,30,10,0.35) 0%, transparent 50%);
  box-shadow: inset 0 0 40px rgba(50,25,10,0.3), 6px 6px 0 rgba(0,0,0,0.7);
}
.real-paper .typewriter { font-family: var(--type); line-height: 1.6; }
.real-paper h3 { font-size: 18px; font-weight: bold; margin-bottom: 12px; border-bottom: 2px dashed var(--ink); padding-bottom: 8px; font-family: var(--type); }
.real-paper p { font-size: 14px; font-family: var(--type); }

/* Masking Tape */
.masking-tape {
  position: absolute; width: 80px; height: 24px;
  background: rgba(230, 210, 120, 0.75);
  border-top: 1px solid rgba(200,180,80,0.5);
  border-bottom: 1px solid rgba(200,180,80,0.5);
  z-index: 5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.masking-tape.top-center { top: -10px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.masking-tape.top-left { top: -8px; left: 16px; transform: rotate(5deg); }
.masking-tape.top-right { top: -8px; right: 16px; transform: rotate(-3deg); }
.masking-tape.bottom-right { bottom: -8px; right: 20px; transform: rotate(4deg); }

/* Stamps (realistic overlay) */
.stamp-realistic {
  position: absolute; font-family: var(--head); font-size: 22px; text-transform: uppercase;
  padding: 4px 14px; border: 4px double; pointer-events: none;
  mix-blend-mode: multiply; letter-spacing: 3px;
}
.red-stamp { color: var(--blood); border-color: var(--blood); opacity: 0.6; top: 12%; right: -5%; transform: rotate(14deg); }
.black-stamp { color: #333; border-color: #333; opacity: 0.5; bottom: 8%; right: 8%; transform: rotate(-8deg); }

/* Blood Drop (decoration) */
.blood-drop {
  position: absolute; bottom: 20px; right: 24px; width: 16px; height: 22px;
  background: var(--blood); border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  opacity: 0.5; box-shadow: 0 2px 6px rgba(217,4,41,0.4);
}

/* === OPERATIONS === */
.brutal-list { display: flex; flex-direction: column; gap: 12px; }
.brutal-row {
  display: grid; grid-template-columns: 90px 1fr 2fr; align-items: center; gap: 16px;
  background: #111; border: 2px solid #2a2a2a; padding: 16px 24px;
  transition: all 0.2s; color: var(--white);
}
.brutal-row:hover { border-color: var(--blood); transform: translateX(8px); box-shadow: -6px 6px 0 var(--blood); }
.brutal-row.dead { background: #080808; border-color: #1a1a1a; opacity: 0.5; pointer-events: none; }
.brutal-status { font-family: var(--head); font-size: 18px; padding: 4px 8px; text-align: center; letter-spacing: 1px; }
.brutal-status.life { background: var(--white); color: var(--ink); }
.brutal-status.rip { background: var(--dark-blood); color: #fff; }
.brutal-name { font-family: var(--head); font-size: 22px; display: flex; flex-direction: column; }
.ext-link { font-family: var(--type); font-size: 12px; color: #666; margin-top: 4px; }
.brutal-row:hover .ext-link { color: var(--blood); }
.brutal-desc { font-size: 14px; color: #999; }
@media(max-width:900px){
  .brutal-row{grid-template-columns:1fr;text-align:center;padding:20px}
  .brutal-status{display:inline-block;margin:0 auto;width:fit-content}
}

/* === DECK (AUDIO) === */
.mafia-deck { background: #121212; border: 3px solid #222; box-shadow: 10px 10px 0 #000; padding: 24px; }
.deck-screen { background: #000; border: 3px inset #333; height: 120px; position: relative; margin-bottom: 20px; overflow: hidden; }
#bloodVisualizer { width: 100%; height: 100%; display: block; }
.deck-overlay { position: absolute; top: 10px; left: 14px; right: 14px; pointer-events: none; }
.rec-light { font-family: var(--head); font-size: 14px; color: var(--blood); animation: blinker 1s infinite; }
@keyframes blinker { 0%,100%{opacity:1;text-shadow:0 0 8px var(--blood)} 50%{opacity:0.2;text-shadow:none} }
.deck-track-name { font-family: var(--head); font-size: clamp(24px,4vw,36px); color: #fff; margin-top: 6px; text-shadow: 2px 2px 0 #000; }
.deck-artist-name { font-family: var(--type); font-size: 13px; color: #888; }
.deck-progress { margin-bottom: 20px; }
.d-bar { height: 6px; background: #222; border: 1px solid #333; position: relative; }
.d-fill { height: 100%; background: var(--blood); width: 0; transition: width 0.1s linear; }
.d-time { font-family: var(--type); font-size: 11px; color: #666; margin-top: 6px; display: flex; justify-content: flex-end; gap: 6px; }
.deck-buttons { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.deck-btn {
  font-family: var(--head); font-size: 18px; padding: 10px 20px;
  background: #111; color: #ccc; border: 2px solid #333;
  box-shadow: 3px 3px 0 #000; transition: all 0.1s;
}
.deck-btn:active { transform: translate(3px,3px); box-shadow: none; }
.deck-btn:hover { border-color: var(--blood); color: var(--blood); }
.play-btn { background: var(--blood)!important; border-color: var(--blood)!important; color: #fff!important; }
.play-btn:hover { background: var(--dark-blood)!important; }
body.playing .play-btn::after { content: 'ПАУЗА ❚❚'; }
body.playing .play-btn { font-size: 0; }
body.playing .play-btn::after { font-size: 18px; }

.deck-list-title { font-family: var(--head); font-size: 22px; border-bottom: 2px solid #222; margin-bottom: 12px; padding-bottom: 8px; color: #999; }
.deck-list { list-style: none; }
.tape-file { display: flex; align-items: center; gap: 16px; padding: 14px 10px; border-bottom: 1px dashed #222; transition: background 0.2s; }
.tape-file:hover { background: #1a1a1a; }
.tape-file.active { background: var(--dark-blood); border-left: 4px solid var(--blood); }
.tape-file.active .tf-artist,.tape-file.active .tf-num { color: #ddd; }
.tf-num { font-family: var(--head); font-size: 18px; color: var(--blood); width: 36px; }
.tf-info { flex: 1; }
.tf-title { font-family: var(--head); font-size: 20px; letter-spacing: 1px; }
.tf-artist { font-family: var(--type); font-size: 12px; color: #666; }

/* === FINAL CTA === */
.final-call { text-align: center; padding: 120px 24px; border: 8px solid var(--blood); position: relative; overflow: hidden; }
.blood-splatter-bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(217,4,41,0.08) 0%, transparent 70%); }
.final-call h2 { font-family: var(--head); font-size: clamp(36px,7vw,80px); line-height: 0.95; margin-bottom: 20px; }
.final-call p { font-size: 17px; max-width: 500px; margin: 0 auto 36px; color: #999; }
.btn-fatal {
  font-family: var(--head); font-size: 28px; background: #fff; color: var(--ink);
  padding: 14px 44px; border: 4px solid #fff; display: inline-block;
  box-shadow: 6px 6px 0 var(--blood); transition: all 0.2s;
}
.btn-fatal:hover { background: var(--blood); color: #fff; border-color: var(--blood); transform: translate(-4px,-4px); box-shadow: 10px 10px 0 var(--dark-blood); }

/* === FOOTER === */
.mafia-footer { text-align: center; padding: 36px 24px; background: #000; border-top: 2px solid #222; font-family: var(--head); font-size: 18px; color: #444; letter-spacing: 1px; }

/* ============================================
   ANIMATION MEGAPACK v8
   ============================================ */

/* --- REVEAL ON SCROLL --- */
.anim-in { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim-in.vis { opacity: 1; transform: translateY(0); }
.anim-in-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim-in-left.vis { opacity: 1; transform: none; }
.anim-in-right { opacity: 0; transform: translateX(60px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim-in-right.vis { opacity: 1; transform: none; }
.anim-scale { opacity: 0; transform: scale(0.85); transition: opacity 0.5s ease, transform 0.5s ease; }
.anim-scale.vis { opacity: 1; transform: scale(1); }

/* stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }
.stagger > *:nth-child(7) { transition-delay: 0.6s; }

/* --- GLITCH TEXT (hero title) --- */
.glitch-text { position: relative; }
.glitch-text::before, .glitch-text::after {
  content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden;
}
.glitch-text::before { color: var(--blood); animation: glitch-clip-1 3s infinite linear alternate-reverse; }
.glitch-text::after { color: var(--gold); animation: glitch-clip-2 3s infinite linear alternate-reverse; }
@keyframes glitch-clip-1 {
  0%,88% { clip-path: inset(0 100% 0 0); } 89% { clip-path: inset(15% 0 65% 0); }
  91% { clip-path: inset(55% 0 20% 0); } 93%,100% { clip-path: inset(0 100% 0 0); }
}
@keyframes glitch-clip-2 {
  0%,85% { clip-path: inset(0 100% 0 0); } 86% { clip-path: inset(70% 0 5% 0); }
  88% { clip-path: inset(5% 0 80% 0); } 90%,100% { clip-path: inset(0 100% 0 0); }
}

/* --- SKULL PULSE --- */
.skull-pulse { animation: skull-beat 1.5s ease-in-out infinite; display: inline-block; }
@keyframes skull-beat {
  0%,100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); }
  45% { transform: scale(1.15); } 60% { transform: scale(1); }
}

/* --- WARNING TAPE FLASH --- */
.flash-tape { animation: tape-flash 2s ease-in-out infinite; }
@keyframes tape-flash {
  0%,100% { opacity: 1; } 50% { opacity: 0.6; }
}

/* --- CUT LETTERS SLAM-IN --- */
.cut-let { opacity: 0; transform: translateY(-30px) rotate(calc(var(--r,0)*1deg)) scale(0.5); 
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(.17,.67,.36,1.35); }
.cut-let.vis { opacity: 1; transform: translateY(0) rotate(calc(var(--r,0)*1deg)) scale(1); }

/* --- TAGS SLIDE --- */
.tags span { opacity: 0; transform: translateX(-20px); transition: opacity 0.4s ease, transform 0.4s ease; }
.tags.vis span { opacity: 1; transform: none; }

/* --- PAPER FLOAT --- */
.real-paper { animation: paper-float 6s ease-in-out infinite; }
.real-paper:nth-child(2) { animation-delay: -1.5s; }
.real-paper:nth-child(3) { animation-delay: -3s; }
.real-paper:nth-child(4) { animation-delay: -4.5s; }
@keyframes paper-float {
  0%,100% { transform: rotate(var(--paper-rot, -1.5deg)) translateY(0); }
  50% { transform: rotate(var(--paper-rot, -1.5deg)) translateY(-6px); }
}
.real-paper:nth-child(1) { --paper-rot: -1.5deg; }
.real-paper:nth-child(2) { --paper-rot: 1.2deg; }
.real-paper:nth-child(3) { --paper-rot: -0.8deg; }
.real-paper:nth-child(4) { --paper-rot: 2deg; }

/* --- STAMP SLAM --- */
.stamp-realistic { opacity: 0; transform: rotate(var(--stamp-rot, 14deg)) scale(2.5);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(.17,.67,.36,1.2); }
.stamp-realistic.vis { opacity: 0.6; transform: rotate(var(--stamp-rot, 14deg)) scale(1); }
.red-stamp { --stamp-rot: 14deg; }
.black-stamp { --stamp-rot: -8deg; }

/* --- BLOOD DROP DRIP --- */
.blood-drop { animation: drip 3s ease-in infinite; }
@keyframes drip {
  0% { transform: scaleY(1); opacity: 0.5; } 70% { transform: scaleY(1); opacity: 0.5; }
  85% { transform: scaleY(1.6) translateY(8px); opacity: 0.8; }
  100% { transform: scaleY(0.3) translateY(20px); opacity: 0; }
}

/* --- BRUTAL ROW SLIDE-IN --- */
.brutal-row.anim-in { transform: translateX(-80px); }
.brutal-row.anim-in.vis { transform: translateX(0); }

/* --- SCANLINE ON HOVER (ops cards) --- */
.brutal-row::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blood), transparent);
  opacity: 0; pointer-events: none;
}
.brutal-row { position: relative; overflow: hidden; }
.brutal-row:hover::after { animation: scanline-sweep 0.5s ease-out forwards; }
@keyframes scanline-sweep { 0% { top: 0; opacity: 0.8; } 100% { top: 100%; opacity: 0; } }

/* --- DECK GLOW PULSE --- */
.deck-screen { animation: screen-glow 4s ease-in-out infinite; }
@keyframes screen-glow {
  0%,100% { box-shadow: inset 0 0 20px rgba(217,4,41,0.05); }
  50% { box-shadow: inset 0 0 30px rgba(217,4,41,0.15); }
}

/* --- REC DOT SCALE --- */
.rec-light { animation: blinker 1s infinite, rec-scale 1s infinite; }
@keyframes rec-scale { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* --- PLAY BUTTON PULSE --- */
.play-btn { animation: play-pulse 2s ease-in-out infinite; }
@keyframes play-pulse {
  0%,100% { box-shadow: 3px 3px 0 #000; } 50% { box-shadow: 3px 3px 0 #000, 0 0 20px rgba(217,4,41,0.4); }
}

/* --- FINAL CTA BORDER PULSE --- */
.final-call { animation: border-pulse 3s ease-in-out infinite; }
@keyframes border-pulse {
  0%,100% { border-color: var(--blood); } 50% { border-color: var(--gold); }
}

/* --- BTN FATAL SHAKE ON HOVER --- */
.btn-fatal:hover { animation: micro-shake 0.3s ease-in-out 2; }
@keyframes micro-shake {
  0%,100% { transform: translate(-4px,-4px); }
  25% { transform: translate(-6px,-2px) rotate(-1deg); }
  75% { transform: translate(-2px,-6px) rotate(1deg); }
}

/* --- FOOTER FADE-IN --- */
.mafia-footer { opacity: 0; transition: opacity 1s ease 0.3s; }
.mafia-footer.vis { opacity: 1; }

/* --- PARALLAX LAYER (applied via JS) --- */
[data-parallax] { transition: transform 0.1s linear; }

/* --- TYPING CURSOR BLINK (for elements that use typing effect) --- */
.typing-cursor::after { content: '|'; animation: cursor-blink 0.6s step-end infinite; color: var(--blood); }
@keyframes cursor-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* --- COUNTER ANIMATION (number count-up) --- */
.counter-value { font-variant-numeric: tabular-nums; }
