@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Unbounded:wght@600;700;800;900&display=swap');

:root {
  --comic-black: #08090d;
  --comic-dark: #0f1118;
  --comic-panel: #141722;
  --marvel-red: #e23636;
  --marvel-red-dark: #991b1b;
  --marvel-blue: #2563eb;
  --marvel-blue-light: #60a5fa;
  --comic-gold: #fbbf24;
  --comic-white: #f8fafc;
}

html, body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--comic-black);
  color: var(--comic-white);
  overflow-x: hidden;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.font-display {
  font-family: 'Unbounded', 'Outfit', sans-serif;
  letter-spacing: -0.03em;
}

.font-comic {
  font-family: 'Bangers', 'Unbounded', sans-serif;
  letter-spacing: 0.05em;
}

/* Hide scrollbar for horizontal swipe container on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ================= DARK MARVEL COMIC STYLISH BACKGROUND ================= */
.marvel-comic-bg {
  background-color: #08090d;
  background-image: 
    radial-gradient(rgba(226, 54, 54, 0.07) 1.5px, transparent 1.5px),
    radial-gradient(rgba(37, 99, 235, 0.05) 1.5px, transparent 1.5px),
    radial-gradient(circle at 15% 15%, rgba(226, 54, 54, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(15, 17, 26, 0.95) 0%, transparent 65%),
    radial-gradient(circle at 80% 80%, rgba(226, 54, 54, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #08090d 0%, #0d0f17 25%, #121522 50%, #0a0c13 75%, #06070a 100%);
  background-size: 28px 28px, 42px 42px, auto, auto, auto, auto, auto;
  background-position: 0 0, 14px 14px, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-attachment: fixed;
}

/* ================= COMIC PANELS & CARDS ================= */
.comic-panel {
  background: rgba(18, 22, 34, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(226, 54, 54, 0.35);
  border-radius: 24px;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.comic-panel:hover {
  border-color: rgba(226, 54, 54, 0.65);
  box-shadow: 0 20px 45px -10px rgba(226, 54, 54, 0.25),
              0 0 25px rgba(226, 54, 54, 0.2);
  transform: translateY(-2px);
}

.comic-blue-panel {
  background: rgba(15, 20, 36, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(37, 99, 235, 0.35);
  border-radius: 24px;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.comic-blue-panel:hover {
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 20px 45px -10px rgba(37, 99, 235, 0.25),
              0 0 25px rgba(37, 99, 235, 0.2);
  transform: translateY(-2px);
}

/* Marvel Logo Style Badges */
.marvel-badge-red {
  background: #e23636;
  color: #ffffff;
  font-family: 'Unbounded', 'Outfit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 8px;
  padding: 5px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(226, 54, 54, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.marvel-badge-blue {
  background: #1d4ed8;
  color: #ffffff;
  font-family: 'Unbounded', 'Outfit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 8px;
  padding: 5px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Comic Action Buttons */
.comic-btn-red {
  background: linear-gradient(135deg, #e23636 0%, #991b1b 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 16px;
  padding: 13px 28px;
  min-height: 48px;
  box-shadow: 0 10px 25px -5px rgba(226, 54, 54, 0.5), 
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  cursor: pointer;
}

.comic-btn-red:hover {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 15px 30px -5px rgba(239, 68, 68, 0.65), 
              0 0 25px rgba(226, 54, 54, 0.4);
  transform: translateY(-2px);
}

.comic-btn-red:active {
  transform: translateY(1px);
}

/* ================= LIVE STICKERS ================= */
.live-sticker {
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.75));
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.35s ease;
  will-change: transform;
}

.live-sticker:hover {
  filter: drop-shadow(0 14px 28px rgba(226, 54, 54, 0.6)) brightness(1.1);
  transform: scale(1.12) !important;
  z-index: 45 !important;
}

.live-sticker:active {
  transform: scale(0.92) !important;
}

/* Hero Salute Burst Animation on Click */
@keyframes hero-pop-salute {
  0% { transform: scale(1); }
  30% { transform: scale(1.3) rotate(-8deg); }
  60% { transform: scale(1.1) rotate(6deg); }
  100% { transform: scale(1); }
}

.hero-salute-burst {
  animation: hero-pop-salute 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Distinct Ambient Float Animations */
@keyframes anim-float-slow {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes anim-sway-slow {
  0%, 100% { transform: translateY(0px) rotate(4deg); }
  50% { transform: translateY(8px) rotate(-2deg); }
}

@keyframes anim-bob-gentle {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-7px) scale(1.03); }
}

@keyframes anim-pulse-tilt {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-5px); }
}

@keyframes anim-peek-bounce {
  0%, 100% { transform: translateY(0px) rotate(2deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}

@keyframes anim-hero-glide {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(9px) rotate(3deg); }
}

.anim-hero-1 { animation: anim-float-slow 5s ease-in-out infinite; }
.anim-hero-2 { animation: anim-sway-slow 5.5s ease-in-out infinite; }
.anim-hero-3 { animation: anim-bob-gentle 4.5s ease-in-out infinite; }
.anim-hero-4 { animation: anim-pulse-tilt 4.8s ease-in-out infinite; }
.anim-hero-5 { animation: anim-peek-bounce 5.2s ease-in-out infinite; }
.anim-hero-6 { animation: anim-hero-glide 6s ease-in-out infinite; }

/* Floating Audio / Quick Trigger Controls */
.floating-control-btn {
  background: rgba(12, 15, 24, 0.92);
  border: 1.5px solid rgba(226, 54, 54, 0.45);
  backdrop-filter: blur(14px);
  color: #f87171;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

.floating-control-btn:hover {
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(226, 54, 54, 0.4);
}

/* ================= RETRO POSTERS CARD ================= */
.comic-poster-card {
  background: rgba(14, 18, 28, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.comic-poster-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #e23636;
  box-shadow: 0 20px 40px -5px rgba(226, 54, 54, 0.35), 0 0 25px rgba(226, 54, 54, 0.25);
  z-index: 20;
}

/* ================= WHEEL POINTER (CENTERED & SCALABLE) ================= */
.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid #e23636;
  filter: drop-shadow(0 0 12px rgba(226, 54, 54, 0.95));
  z-index: 30;
  pointer-events: none;
}

@media (min-width: 640px) {
  .wheel-pointer {
    top: -12px;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 28px solid #e23636;
  }
}

/* ================= MARVEL MODAL RESULT POPUP ================= */
.comic-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.comic-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.comic-modal-box {
  background: linear-gradient(145deg, #161b2b 0%, #0d101a 100%);
  border: 3px solid #e23636;
  border-radius: 24px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95),
              0 0 45px rgba(226, 54, 54, 0.4);
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
  padding: 20px;
  text-align: center;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

@media (min-width: 640px) {
  .comic-modal-box {
    border-radius: 28px;
    padding: 28px;
  }
}

.comic-modal-overlay.active .comic-modal-box {
  transform: scale(1) translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #08090d;
}
::-webkit-scrollbar-thumb {
  background: #991b1b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e23636;
}

::selection {
  background-color: #e23636;
  color: #ffffff;
}
