/* ═══════════════════════════════════════════════════════════════
   HELL-ATMO.CSS — Atmosphere (perf-optimised, compositor-only)
   No filter/backdrop-filter animations. Only transform + opacity.
   ═══════════════════════════════════════════════════════════════ */

/* ─── VIGNETTE — single fixed overlay, no animation ─────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(40,0,0,0.45) 100%);
}

/* ─── LIGHTNING FLASH ────────────────────────────────────────── */
.hell-lightning {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: rgba(255,40,0,0.05);
  will-change: opacity;
}

/* ─── FLOATING SOUL / GHOST — transform only ────────────────── */
.hell-soul {
  position: absolute;
  pointer-events: none;
  z-index: 7;
  will-change: transform, opacity;
}
.soul-ghost {
  width: 22px; height: 22px;
  background: radial-gradient(circle at 38% 32%, rgba(200,220,255,0.92), rgba(160,180,255,0.55));
  border-radius: 50% 50% 42% 42%;
}
.soul-ghost::before {
  content: '';
  position: absolute;
  bottom: -7px; left: -2px;
  width: 26px; height: 10px;
  background: rgba(160,180,255,0.45);
  clip-path: polygon(0% 0%,13% 100%,26% 50%,39% 100%,52% 50%,65% 100%,78% 50%,91% 100%,100% 0%);
}
.soul-ghost::after {
  content: '';
  position: absolute;
  top: 7px; left: 5px;
  width: 4px; height: 4px;
  background: rgba(0,0,20,0.7);
  border-radius: 50%;
  box-shadow: 7px 0 0 rgba(0,0,20,0.7);
}
.soul-ghost { position: relative; }

/* ─── TORCH ──────────────────────────────────────────────────── */
.hell-torch {
  position: absolute;
  z-index: 7;
  pointer-events: none;
}
.torch-stick {
  width: 7px; height: 36px;
  background: linear-gradient(to bottom, #6a3800, #3a1800);
  border-radius: 2px;
  position: relative;
}
.torch-bowl {
  position: absolute;
  top: -6px; left: -4px;
  width: 15px; height: 8px;
  background: #4a2800;
  border-radius: 3px 3px 1px 1px;
}
.torch-flame-wrap {
  position: absolute;
  top: -32px; left: -3px;
  width: 13px; height: 28px;
  will-change: transform;
  animation: torch-sway 0.35s ease-in-out infinite alternate;
}
.torch-f1 {
  position: absolute;
  bottom: 0; left: 1px;
  width: 11px; height: 24px;
  background: linear-gradient(to top, #ff5500 0%, #ffbb00 55%, rgba(255,240,200,0.7) 100%);
  border-radius: 50% 50% 30% 30%;
  transform-origin: bottom center;
  animation: flame-a 0.25s ease-in-out infinite alternate;
}
.torch-f2 {
  position: absolute;
  bottom: 0; left: 3px;
  width: 7px; height: 17px;
  background: linear-gradient(to top, #ff2200 0%, #ffdd00 60%, rgba(255,255,255,0.5) 100%);
  border-radius: 50% 50% 30% 30%;
  transform-origin: bottom center;
  animation: flame-b 0.2s ease-in-out infinite alternate;
}
.torch-glow-halo {
  position: absolute;
  top: -44px; left: -20px;
  width: 53px; height: 53px;
  background: radial-gradient(circle, rgba(255,130,0,0.22), transparent 70%);
  border-radius: 50%;
  will-change: opacity, transform;
  animation: glow-halo 0.4s ease-in-out infinite alternate;
}
@keyframes torch-sway { 0%{transform:rotate(-3deg)} 100%{transform:rotate(3deg)} }
@keyframes flame-a { 0%{transform:scaleX(1) scaleY(1) rotate(-2deg)} 100%{transform:scaleX(0.82) scaleY(1.12) rotate(2deg)} }
@keyframes flame-b { 0%{transform:scaleX(0.88) scaleY(1.05) rotate(3deg)} 100%{transform:scaleX(1.12) scaleY(0.92) rotate(-3deg)} }
@keyframes glow-halo { 0%{opacity:0.65;transform:scale(0.9)} 100%{opacity:1;transform:scale(1.12)} }

/* Torch wall glow — no animation, just gradient */
.torch-wall-glow {
  position: absolute;
  top: 0; bottom: 0;
  width: 18%;
  pointer-events: none;
  z-index: 3;
}
.torch-wall-glow.left  { left:0;  background: linear-gradient(to right, rgba(255,110,0,0.06), transparent); }
.torch-wall-glow.right { right:0; background: linear-gradient(to left,  rgba(255,110,0,0.06), transparent); }

/* ─── SKULL DIVIDER ──────────────────────────────────────────── */
.skull-divider {
  position: absolute;
  bottom: -13px;
  z-index: 10;
  display: flex;
  gap: 36px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.skull-icon {
  width: 18px; height: 16px;
  background: #b89060;
  border-radius: 50% 50% 35% 35%;
  position: relative;
  flex-shrink: 0;
}
.skull-icon::before {
  content: '';
  position: absolute;
  bottom: -5px; left: 2px;
  width: 14px; height: 6px;
  background: #9a7040;
  border-radius: 0 0 2px 2px;
}
.skull-icon::after {
  content: '';
  position: absolute;
  top: 5px; left: 3px;
  width: 3px; height: 3px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  box-shadow: 7px 0 0 rgba(0,0,0,0.7), 1px 7px 0 3px rgba(0,0,0,0.7);
}
.skull-icon.sm { transform: scale(0.6) translateY(5px); opacity: 0.4; }

/* ─── CHAINS — transform only ────────────────────────────────── */
.hell-chain {
  position: absolute;
  width: 3px;
  background: repeating-linear-gradient(to bottom,
    #555 0,#555 4px,#888 4px,#888 6px,#555 6px,#555 11px,transparent 11px,transparent 13px);
  pointer-events: none;
  z-index: 5;
  will-change: transform;
  animation: chain-sway var(--cs,3.5s) ease-in-out infinite var(--cd,0s);
}
.hell-chain::before {
  content: '';
  position: absolute;
  top: -1px; left: -4px;
  width: 11px; height: 7px;
  border: 2px solid #777;
  border-radius: 50%;
}
@keyframes chain-sway { 0%,100%{transform:rotate(-4deg)} 50%{transform:rotate(4deg)} }

/* ─── ICE CRACKS (circle 9) ─────────────────────────────────── */
.ice-crack {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  background: transparent;
  border-top: 1px solid rgba(140,200,255,0.3);
  will-change: opacity;
  animation: crack-shimmer 4s ease-in-out infinite var(--ci,0s);
}
@keyframes crack-shimmer { 0%,100%{opacity:0.15} 50%{opacity:0.35} }

/* ─── PENTAGRAM (circle 6) ───────────────────────────────────── */
.pentagram-bg {
  position: absolute;
  opacity: 0.035;
  pointer-events: none;
  will-change: transform;
  animation: penta-spin 80s linear infinite;
}
@keyframes penta-spin { from{transform:translate(-50%,-50%) rotate(0deg)} to{transform:translate(-50%,-50%) rotate(360deg)} }

/* ─── CIRCLE BG TEXT ─────────────────────────────────────────── */
.circle-bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: clamp(5rem,18vw,14rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.025);
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  user-select: none;
  will-change: transform;
}

/* ─── LAVA POOL STRIP (circles 5-8) ─────────────────────────── */
.lava-pool {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
  animation: lava-flow 4s linear infinite;
  background: linear-gradient(90deg,
    #660000 0%,#cc2200 15%,#ff6600 28%,#ffaa00 35%,
    #cc2200 45%,#ff4400 58%,#ffcc00 65%,
    #aa1100 75%,#ff3300 85%,#ffaa00 92%,#660000 100%);
  background-size: 200px 100%;
}
@keyframes lava-flow { from{background-position:0 0} to{background-position:200px 0} }

/* ─── PIXEL CITY — Enhanced ──────────────────────────────────── */
/* People now have richer bodies */
.pix-person {
  position: absolute;
  bottom: 24px;
  will-change: transform;
}
/* Head */
.pix-head {
  position: absolute;
  top: 0;
  border-radius: 50%;
}
/* Body */
.pix-body {
  position: absolute;
  border-radius: 2px 2px 0 0;
}
/* Arms */
.pix-arm {
  position: absolute;
  border-radius: 1px;
  transform-origin: top center;
}
/* Legs */
.pix-leg {
  position: absolute;
  border-radius: 0 0 2px 2px;
  transform-origin: top center;
}
/* Accessories */
.pix-hat  { position: absolute; }
.pix-case { position: absolute; }
.pix-dog  { position: absolute; }

@media (max-width: 768px) {
  .hell-torch   { display: none; }
  .skull-divider{ display: none; }
  .hell-chain   { display: none; }
  .pentagram-bg { display: none; }
}
