/* ============================================
   MASKS & MACHETES - REDESIGNED STATIC SITE
   Inspired by the Online Beta Game UI
   ============================================ */

/* --- CSS Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #1a1010;
  --crimson: #c41e1e;
  --crimson-glow: #ff2a2a;
  --blood: #8b0000;
  --gold: #d4a832;
  --gold-bright: #ffd700;
  --text-primary: #e8e0d6;
  --text-secondary: #9a9089;
  --text-muted: #5a5550;
  --accent-dark: #1a0a0a;
  --border-stone: #2a2220;
  --shadow-red: rgba(196, 30, 30, 0.3);
  --shadow-blood: rgba(139, 0, 0, 0.5);
  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Raleway', sans-serif;
  --font-ui: 'Oswald', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
}

/* Dark textured background overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 0, 0, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(139, 0, 0, 0.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Ambient fog/particles */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(196, 30, 30, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(212, 168, 50, 0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  animation: fogDrift 20s ease-in-out infinite alternate;
}

@keyframes fogDrift {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.05em; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212, 168, 50, 0.3), 0 2px 4px rgba(0,0,0,0.8);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--crimson);
  text-shadow: 0 0 20px rgba(196, 30, 30, 0.2);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--gold);
}

a { color: var(--crimson); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--crimson-glow); text-shadow: 0 0 10px var(--shadow-red); }

/* --- Navigation --- */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

.nav-wrapper.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.8), 0 1px 0 rgba(196, 30, 30, 0.2);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.7rem 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--crimson);
  text-shadow: 0 0 15px var(--shadow-red);
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links a.active {
  color: var(--crimson);
}

.nav-links a.active::after {
  width: 80%;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    border-left: 1px solid var(--border-stone);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; padding: 1rem; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center top, rgba(139, 0, 0, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at center bottom, rgba(10, 10, 10, 1) 0%, transparent 40%);
  z-index: 1;
}

.hero-logo {
  position: relative;
  z-index: 2;
  max-width: 500px;
  width: 80%;
  animation: logoFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(196, 30, 30, 0.4));
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-tagline {
  position: relative;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero-cta-group {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
}

.hero-hatter-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  top: -20px;
  transition: transform 0.3s ease;
}

.hero-hatter-link:hover {
  transform: scale(1.05);
}

.hero-hatter {
  height: 180px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: filter 0.3s ease;
}

.hero-hatter-link:hover .hero-hatter {
  filter: drop-shadow(0 4px 16px rgba(196, 30, 30, 0.5));
}

.hero-box-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  top: -12px;
  transition: transform 0.3s ease;
}

.hero-box-link:hover {
  transform: scale(1.05);
}

.hero-game-box {
  height: 140px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: filter 0.3s ease;
}

.hero-box-link:hover .hero-game-box {
  filter: drop-shadow(0 4px 16px rgba(196, 30, 30, 0.5));
}

@media (max-width: 768px) {
  /* Layout: buttons stacked on left, game box on right */
  .hero-cta-group {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
  }
  /* Wrap the two buttons together on the left */
  .hero-cta-group .btn {
    flex: 0 0 auto;
  }
  .hero-hatter-link {
    position: relative;
    z-index: 10;
    top: 0;
    margin-right: 0.5rem;
  }
  .hero-hatter {
    height: 130px;
  }
  .hero-box-link {
    position: relative;
    z-index: 10;
    top: 0;
    margin-left: 0.5rem;
  }
  .hero-game-box {
    height: 130px;
  }
  /* Hero must sit above marquee so game box doesn't get hidden */
  .hero {
    z-index: 2;
  }
  .character-marquee {
    z-index: 0;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.9rem 2.2rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson), var(--blood));
  color: white;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: 0 4px 20px var(--shadow-blood);
}

.btn-primary:hover {
  color: white;
  background: linear-gradient(135deg, var(--crimson-glow), var(--crimson));
  box-shadow: 0 4px 30px var(--shadow-red);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-stone);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.btn-secondary:hover {
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 168, 50, 0.15);
  transform: translateY(-2px);
}

/* Blood drip effect on buttons */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 20%;
  width: 4px;
  height: 0;
  background: var(--crimson-glow);
  border-radius: 0 0 2px 2px;
  transition: height 0.4s ease;
  filter: blur(0.5px);
}

.btn-primary:hover::after {
  height: 8px;
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson) 20%, var(--blood) 50%, var(--crimson) 80%, transparent);
  margin: 0 auto;
  opacity: 0.4;
  position: relative;
}

.section-divider::after {
  content: '✕';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: var(--crimson);
  background: var(--bg-dark);
  padding: 0 1rem;
}

/* --- Video Section --- */
.video-section {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: -4rem auto 0;
  padding: 0 2rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border: 1px solid var(--border-stone);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 60px rgba(0,0,0,0.8), 0 0 40px var(--shadow-blood);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Card Styles (for content blocks) --- */
.content-card {
  background: linear-gradient(145deg, rgba(17, 17, 17, 0.9), rgba(26, 10, 10, 0.8));
  border: 1px solid var(--border-stone);
  border-radius: 4px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.content-card:hover::before { opacity: 1; }

.content-card:hover {
  border-color: rgba(196, 30, 30, 0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 30px var(--shadow-blood);
  transform: translateY(-2px);
}

/* --- About / Description Block --- */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-block .box-image {
  max-width: 100%;
  border-radius: 4px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
  transition: transform 0.5s ease;
}

.about-block .box-image:hover {
  transform: scale(1.03) rotate(-1deg);
}

.about-block p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-block .highlight {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .about-block {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-block .box-image { max-width: 300px; margin: 0 auto; }
}

/* --- Monster Gallery --- */
.monster-gallery {
  position: relative;
  z-index: 1;
}

.series-section {
  margin-bottom: 4rem;
}

.series-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--crimson);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.series-title::before,
.series-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson));
}

.series-title::before { right: calc(50% + 8rem); }
.series-title::after { left: calc(50% + 8rem); background: linear-gradient(90deg, var(--crimson), transparent); }

.monster-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.monster-card {
  position: relative;
  width: 140px;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.monster-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: all 0.4s ease;
  filter: saturate(0.8);
}

.monster-card:hover {
  border-color: var(--crimson);
  box-shadow: 0 0 30px var(--shadow-blood), 0 10px 40px rgba(0,0,0,0.6);
  transform: translateY(-5px) scale(1.02);
  background: var(--bg-card-hover);
}

.monster-card:hover img {
  filter: saturate(1.2);
  transform: scale(1.05);
}

.monster-card .monster-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.monster-card:hover .monster-name {
  opacity: 1;
  transform: translateY(0);
}

/* Glow pulse on card hover */
.monster-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--crimson), var(--blood));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  filter: blur(8px);
}

.monster-card:hover::after {
  opacity: 0.3;
}

/* --- Monster Bio Page --- */
.bio-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 120px 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bio-image-wrapper {
  flex: 0 0 350px;
  position: relative;
}

.bio-image-wrapper img {
  width: 100%;
  filter: drop-shadow(0 0 40px var(--shadow-blood));
  animation: bioFloat 4s ease-in-out infinite;
}

@keyframes bioFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

.bio-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.bio-content .bio-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 2;
}

.bio-content .bio-text p {
  margin-bottom: 1rem;
}

.bio-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.bio-back:hover {
  color: var(--crimson);
}

@media (max-width: 768px) {
  .bio-hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }
  .bio-image-wrapper { flex: 0 0 250px; }
  .bio-content h1 { font-size: 2rem; }
}

/* --- Rules Page --- */
.rules-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 2rem 4rem;
  position: relative;
  z-index: 1;
}

.rules-container h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.rules-updated {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

.rule-section {
  margin-bottom: 3rem;
}

.rule-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-stone);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.rule-section .rule-icon {
  font-size: 1.2rem;
}

.rule-section p, .rule-section li {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 0.8rem;
}

.rule-section ul {
  list-style: none;
  padding-left: 0;
}

.rule-section li {
  padding-left: 1.5rem;
  position: relative;
}

.rule-section li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--crimson);
  font-weight: bold;
}

.rule-section strong {
  color: var(--text-primary);
}

.rule-section .disclaimer {
  font-style: italic;
  color: var(--text-muted);
  padding: 1.5rem;
  border-left: 3px solid var(--crimson);
  background: rgba(196, 30, 30, 0.05);
  margin-bottom: 2rem;
}

/* Rivals & Tag Teams tables */
.rivals-list, .tagteam-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.rival-pair, .tagteam-pair {
  padding: 0.6rem 1rem;
  background: rgba(17, 17, 17, 0.6);
  border: 1px solid var(--border-stone);
  border-radius: 3px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.rival-pair .vs {
  color: var(--crimson);
  font-weight: bold;
  margin: 0 0.3rem;
}

/* --- VR Page --- */
.vr-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 2rem 4rem;
  position: relative;
  z-index: 1;
}

.vr-container h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.vr-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.vr-images img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border-stone);
  transition: all 0.4s ease;
}

.vr-images img:hover {
  border-color: var(--crimson);
  box-shadow: 0 0 20px var(--shadow-blood);
  transform: scale(1.02);
}

.vr-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.9;
  text-align: center;
  max-width: 700px;
  margin: 2rem auto;
}

@media (max-width: 600px) {
  .vr-images { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-stone);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-logos img {
  height: 40px;
  opacity: 0.6;
  filter: grayscale(0.5);
  transition: all 0.3s ease;
}

.footer-logos img:hover {
  opacity: 1;
  filter: grayscale(0);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-stone);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  box-shadow: 0 0 15px var(--shadow-blood);
}

/* --- Scroll-Driven Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
  transition: none; /* JS controls these now */
}

.reveal.visible {
  /* fallback for no-JS */
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Blood Drip Animation --- */
.blood-drip {
  position: relative;
}

.blood-drip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 10%;
  width: 3px;
  height: 0;
  background: var(--crimson);
  border-radius: 0 0 50% 50%;
  animation: drip 3s ease-in-out infinite;
  animation-delay: var(--drip-delay, 0s);
}

@keyframes drip {
  0%, 60%, 100% { height: 0; opacity: 1; }
  30% { height: 15px; opacity: 1; }
  50% { height: 15px; opacity: 0; }
}

/* --- Page Transition --- */
.page-content {
  animation: pageIn 0.6s ease;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-stone); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--crimson); }

/* --- Loading Screen --- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-inner img {
  width: 120px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

/* --- Play Online Page --- */
.play-online-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 4rem;
  position: relative;
  z-index: 1;
}

.play-online-container h1 {
  margin-bottom: 1rem;
}

.play-online-container .subtitle {
  color: var(--text-secondary);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }

/* Particle canvas background */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   UPGRADED HOMEPAGE COMPONENTS
   ============================================ */

/* --- Floating Cards in Hero --- */
.floating-cards {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.floating-card {
  position: absolute;
  width: 80px;
  height: 112px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0,0,0,0.6), 0 0 15px rgba(139,0,0,0.2);
  animation: cardFloat var(--duration, 15s) linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.15;
  pointer-events: none;
  transform-style: preserve-3d;
}

.floating-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes cardFloat {
  0% { transform: translateY(110vh) translateX(var(--startX, 0px)) rotate(var(--startRot, 0deg)); opacity: 0; }
  5% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-20vh) translateX(var(--endX, 50px)) rotate(var(--endRot, 360deg)); opacity: 0; }
}

/* --- Hero Characters (floating in background) --- */
.hero-characters {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-char {
  position: absolute;
  opacity: 0.06;
  filter: grayscale(0.5) blur(1px);
  transition: opacity 0.5s ease;
  animation: charDrift var(--char-duration, 20s) ease-in-out infinite alternate;
}

.char-1 { left: 2%; bottom: 5%; height: 45%; --char-duration: 22s; animation-delay: 0s; }
.char-2 { right: 2%; bottom: 10%; height: 40%; --char-duration: 18s; animation-delay: -3s; }
.char-3 { left: 15%; top: 15%; height: 30%; --char-duration: 25s; animation-delay: -5s; }
.char-4 { right: 15%; top: 10%; height: 35%; --char-duration: 20s; animation-delay: -8s; }
.char-5 { left: 35%; bottom: 0; height: 35%; --char-duration: 23s; animation-delay: -2s; }
.char-6 { right: 30%; bottom: 5%; height: 30%; --char-duration: 19s; animation-delay: -6s; }

@keyframes charDrift {
  0% { transform: translateY(0) translateX(0) scale(1); }
  100% { transform: translateY(-15px) translateX(10px) scale(1.02); }
}

/* --- Hero Fog --- */
.hero-fog {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(10,10,10,0.6) 70%),
    radial-gradient(ellipse at 30% 80%, rgba(139,0,0,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(139,0,0,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* --- Hero Content (centered over everything) --- */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- SLU Badge --- */
.hero-slu-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero-slu-badge img {
  height: 60px;
  filter: drop-shadow(0 0 15px rgba(212, 168, 50, 0.2));
}

.hero-slu-badge span {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--text-muted);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  animation: fadeUp 1s ease 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--crimson), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Section Label (used above video) --- */
.section-label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* --- Character Marquee --- */
.character-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 3rem 0;
  margin: 2rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}

.marquee-track img {
  height: 100px;
  width: auto;
  opacity: 0.25;
  filter: grayscale(0.3);
  transition: all 0.4s ease;
}

.marquee-track img:hover {
  opacity: 0.8;
  filter: grayscale(0);
  transform: scale(1.15);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- About Section Upgrade --- */
.about-section {
  position: relative;
  z-index: 1;
}

.about-image-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-text-side {
  opacity: 0;
  transform: translateX(60px);
  will-change: opacity, transform;
}

.about-text-side p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-text-side .highlight {
  color: var(--text-primary);
  font-weight: 600;
}

.about-text-side .cta-text {
  color: var(--gold);
  font-weight: 500;
  margin-top: 1rem;
}

.about-ctas {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- 3D Card Flip (About Section) - Scroll Driven --- */
.card-3d-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 380px;
}

.card-3d {
  position: relative;
  width: 100%;
  padding-bottom: 140%;
  transform-style: preserve-3d;
  /* Starts showing the BACK of the card (180deg) — scroll reveals the front */
  transform: rotateY(180deg);
  will-change: transform;
  cursor: pointer;
}

.card-front, .card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.6), 0 0 30px var(--shadow-blood);
  transition: box-shadow 0.4s ease;
}

.card-front img, .card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-back {
  transform: rotateY(180deg);
}

/* Glow intensifies as card reveals */
.card-3d-wrapper.card-revealed .card-front {
  box-shadow: 0 15px 50px rgba(0,0,0,0.6), 0 0 50px var(--shadow-blood), 0 0 80px rgba(196,30,30,0.15);
}

/* --- Monster Showcase (Homepage) --- */
.monsters-preview {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
}

.section-subtitle {
  font-family: var(--font-ui);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.5rem;
}

.section-subtitle-sm {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.3rem;
  margin-bottom: 3rem;
}

.monster-showcase {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-card {
  position: relative;
  flex: 1 1 0;
  min-width: 180px;
  max-width: 280px;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20,10,10,0.8), rgba(10,10,10,0.95));
  border: 1px solid var(--border-stone);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
  /* Scroll-driven: start below and transparent */
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  will-change: opacity, transform;
}

.showcase-card.featured {
  display: none;
}

.showcase-card-inner {
  position: relative;
  padding: 1rem 0.5rem 0.5rem;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.showcase-card-inner img {
  width: 90%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  object-position: bottom center;
  transition: all 0.5s ease;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

/* Force all showcase cards to same height for consistency */
.showcase-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.showcase-name {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding: 0.8rem 0 0.5rem;
  transition: color 0.3s ease;
}

.showcase-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.showcase-card:hover {
  border-color: var(--crimson);
  box-shadow: 0 0 40px var(--shadow-blood), 0 15px 50px rgba(0,0,0,0.6);
}

.showcase-card:hover .showcase-card-inner {
  transform: translateY(-8px) scale(1.05);
}

.showcase-card.featured:hover .showcase-card-inner {
  transform: translateY(-8px) scale(1.1);
}

.showcase-card:hover .showcase-card-inner img {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 10px 25px rgba(196, 30, 30, 0.3));
}

.showcase-card:hover .showcase-name {
  color: var(--crimson);
}

.showcase-card:hover .showcase-glow {
  opacity: 1;
}

@media (max-width: 768px) {
  .monster-showcase { gap: 0.75rem; padding: 0 0.75rem; }
  .showcase-card {
    width: calc(25% - 0.75rem);
    min-width: 0;
    height: 220px;
    flex: 1 1 calc(25% - 0.75rem);
  }
  .showcase-card.featured { display: none; }
  .showcase-card-inner { padding: 0.3rem 0.3rem 0.2rem; justify-content: flex-end; }
  .showcase-card-inner img { width: 95%; flex: 1; min-height: 0; aspect-ratio: unset; object-fit: contain; }
  .showcase-name { padding: 0.3rem 0 0.2rem; font-size: 0.65rem; }
}

/* --- Play Section Grid --- */
.play-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 4rem 2rem;
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.play-card {
  position: relative;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(17,17,17,0.6), rgba(10,10,10,0.8));
  border: 1px solid var(--border-stone);
  border-radius: 6px;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
  overflow: hidden;
  /* Scroll-driven: start offset and transparent */
  opacity: 0;
  transform: translateY(50px);
  will-change: opacity, transform;
}

.play-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.play-card:hover::before { opacity: 1; }

.play-card:hover {
  border-color: rgba(196,30,30,0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 30px var(--shadow-blood);
  /* Note: translateY hover handled via margin-top to avoid fighting scroll transforms */
  margin-top: -5px;
  margin-bottom: 5px;
}

.play-card-icon {
  color: var(--crimson);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.play-card:hover .play-card-icon {
  color: var(--crimson-glow);
  filter: drop-shadow(0 0 10px var(--shadow-red));
  transform: scale(1.1);
}

.play-card h3 {
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.play-card:hover h3 { color: var(--gold-bright); }

.play-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.play-card-product {
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.play-card-product img {
  width: 160px;
  height: auto;
  border-radius: 4px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
  transition: all 0.4s ease;
}

.play-card:hover .play-card-product img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 25px rgba(196,30,30,0.3));
}

@media (max-width: 768px) {
  .play-grid { grid-template-columns: 1fr; }
}

/* --- Footer Upgrade --- */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-slu-logo {
  height: 60px;
  opacity: 0.5;
  filter: grayscale(0.3);
  transition: all 0.3s ease;
}

.footer-slu-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

.footer-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-samhain-logo {
  height: 40px;
  opacity: 0.5;
  filter: grayscale(0.3);
  transition: all 0.3s ease;
}

.footer-samhain-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* --- Enhanced VR Images --- */
.vr-images img {
  border-radius: 8px;
  border: 1px solid var(--border-stone);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.vr-images img:hover {
  border-color: var(--crimson);
  box-shadow: 0 0 30px var(--shadow-blood), 0 15px 50px rgba(0,0,0,0.6);
  transform: scale(1.03);
}

/* --- Monster Gallery Padding --- */
.monster-gallery {
  padding: 2rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Gold Text Utility --- */
.gold-text {
  color: var(--gold);
  text-shadow: 0 0 30px rgba(212, 168, 50, 0.3), 0 2px 4px rgba(0,0,0,0.8);
}

/* --- Bio Back Link Utility --- */
.bio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.bio-back-link:hover {
  color: var(--crimson);
}

/* --- Rules Page Enhanced Sections --- */
.rule-section h2.blood-drip {
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-stone);
  margin-bottom: 1.5rem;
}

.rule-section strong {
  color: var(--gold);
}

/* --- Rules Callout Box --- */
.rules-callout {
  background: rgba(196, 30, 30, 0.06);
  border-left: 3px solid var(--crimson);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Setup Steps --- */
.rules-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rule-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-stone);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.rule-step:hover {
  border-color: rgba(196, 30, 30, 0.3);
  background: rgba(196, 30, 30, 0.04);
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

.rule-step p {
  margin: 0;
  line-height: 1.7;
}

/* --- Oracle Section Header --- */
.oracle-section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.oracle-showcase-card {
  width: 120px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(212, 168, 50, 0.2), 0 8px 30px rgba(0,0,0,0.4);
  border: 1px solid rgba(212, 168, 50, 0.15);
  transition: all 0.4s ease;
}

.oracle-showcase-card:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 0 30px rgba(212, 168, 50, 0.35), 0 12px 40px rgba(0,0,0,0.5);
}

@media (max-width: 600px) {
  .oracle-section-header {
    flex-direction: column;
  }
  .oracle-showcase-card {
    width: 100px;
  }
}

/* --- Chaos Card Grid --- */
.chaos-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.chaos-rule-card {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-stone);
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  align-items: center;
}

.chaos-rule-card:hover {
  border-color: var(--crimson);
  background: rgba(196, 30, 30, 0.05);
  box-shadow: 0 0 25px rgba(196, 30, 30, 0.1), 0 10px 40px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

.chaos-card-img {
  flex-shrink: 0;
  width: 90px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(196, 30, 30, 0.08) 0%, transparent 70%);
  border-radius: 8px;
  overflow: hidden;
}

.chaos-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(196, 30, 30, 0.2));
  transition: all 0.4s ease;
}

.chaos-rule-card:hover .chaos-card-img img {
  filter: drop-shadow(0 0 15px rgba(196, 30, 30, 0.5));
  transform: scale(1.08);
}

.chaos-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(212, 168, 50, 0.2);
}

.chaos-card-info p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Rivals Matchup Grid --- */
.rivals-matchup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.rival-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-stone);
  border-radius: 10px;
  transition: all 0.4s ease;
}

.rival-matchup:hover {
  border-color: var(--crimson);
  background: rgba(196, 30, 30, 0.05);
  box-shadow: 0 0 25px rgba(196, 30, 30, 0.1);
}

.rival-fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.rival-fighter img {
  width: 70px;
  height: 85px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(196, 30, 30, 0.15));
  transition: all 0.4s ease;
}

.rival-matchup:hover .rival-fighter img {
  filter: drop-shadow(0 0 12px rgba(196, 30, 30, 0.4));
  transform: scale(1.08);
}

.rival-fighter span {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-align: center;
}

.vs-badge {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--crimson);
  text-shadow: 0 0 20px rgba(196, 30, 30, 0.5), 0 2px 4px rgba(0,0,0,0.8);
  flex-shrink: 0;
  animation: vsPulse 2s ease-in-out infinite;
}

@keyframes vsPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(196, 30, 30, 0.5), 0 2px 4px rgba(0,0,0,0.8); }
  50% { text-shadow: 0 0 35px rgba(196, 30, 30, 0.8), 0 0 60px rgba(196, 30, 30, 0.3), 0 2px 4px rgba(0,0,0,0.8); }
}

/* --- Tag Team Grid --- */
.tagteam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tagteam-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-stone);
  border-radius: 10px;
  transition: all 0.4s ease;
}

.tagteam-card:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 50, 0.04);
  box-shadow: 0 0 25px rgba(212, 168, 50, 0.1), 0 10px 40px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

.tagteam-fighters {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.tagteam-fighters img {
  width: 65px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(212, 168, 50, 0.1));
  transition: all 0.4s ease;
}

.tagteam-card:hover .tagteam-fighters img {
  filter: drop-shadow(0 0 12px rgba(212, 168, 50, 0.35));
  transform: scale(1.06);
}

.tagteam-plus {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 15px rgba(212, 168, 50, 0.4);
}

.tagteam-names {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

/* --- Weapons Cards --- */
.weapons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.weapon-card {
  display: flex;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.9) 0%, rgba(10, 10, 18, 0.95) 100%);
  border: 1px solid rgba(0, 180, 220, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.weapon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 180, 220, 0.6), transparent);
}

.weapon-card:hover {
  border-color: rgba(0, 180, 220, 0.5);
  box-shadow: 0 0 30px rgba(0, 180, 220, 0.15), inset 0 0 30px rgba(0, 180, 220, 0.03);
  transform: translateY(-3px);
}

.weapon-card-art {
  flex-shrink: 0;
  width: 130px;
  position: relative;
}

.weapon-card-art img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 180, 220, 0.1);
  transition: all 0.4s ease;
}

.weapon-card:hover .weapon-card-art img {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 180, 220, 0.25);
  transform: scale(1.03);
}

.weapon-bonus {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--crimson);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(139, 0, 0, 0.5);
  z-index: 2;
}

.weapon-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.weapon-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.weapon-pairing {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.weapon-pairing img {
  width: 40px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(139, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.weapon-card:hover .weapon-pairing img {
  filter: drop-shadow(0 0 10px rgba(139, 0, 0, 0.5));
  transform: scale(1.08);
}

.weapon-pairing span {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.weapon-card-info p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Responsive Rules --- */
@media (max-width: 600px) {
  .rivals-matchup-grid {
    grid-template-columns: 1fr;
  }
  .tagteam-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chaos-card-img {
    width: 70px;
    height: 85px;
  }
  .rival-fighter img {
    width: 55px;
    height: 68px;
  }
  .tagteam-fighters img {
    width: 50px;
    height: 62px;
  }
  .weapons-grid {
    grid-template-columns: 1fr;
  }
  .weapon-card-art {
    width: 100px;
  }
}

@media (max-width: 400px) {
  .tagteam-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Scroll Sprites (pop in from sides on scroll) --- */
.scroll-sprites {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}

.scroll-sprite {
  position: absolute;
  height: 600px;
  width: auto;
  opacity: 0;
  filter: drop-shadow(0 0 30px rgba(139, 0, 0, 0.5));
  will-change: transform, opacity;
  transition: none;
}

/* Left-side sprites anchored to left edge */
.scroll-sprite.sprite-left {
  left: -450px;
}

/* Right-side sprites anchored to right edge */
.scroll-sprite.sprite-right {
  right: -450px;
}

/* Vertical positions — pushed down so lower body is off-screen, only upper body peeks in */
.scroll-sprite[data-sprite-index="0"] { top: 45%; }
.scroll-sprite[data-sprite-index="1"] { top: 50%; }
.scroll-sprite[data-sprite-index="2"] { top: 55%; }
.scroll-sprite[data-sprite-index="3"] { top: 48%; }
.scroll-sprite[data-sprite-index="4"] { top: 52%; }
.scroll-sprite[data-sprite-index="5"] { top: 46%; }

/* Hide scroll sprites on mobile */
@media (max-width: 1024px) {
  .scroll-sprites {
    display: none !important;
    visibility: hidden !important;
  }
}

/* HTP styles moved to css/how-to-play.css */

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

/* --- Mobile: 768px and below --- */
@media (max-width: 768px) {
  /* Hero: reduce padding and character overlap */
  .hero {
    padding: 100px 1.5rem 3rem;
    min-height: 90vh;
  }

  .hero-logo {
    max-width: 320px;
  }

  .hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
  }

  /* Hide hero characters on tablets/phones — they overlap content */
  .hero-characters {
    display: none;
  }

  /* Hide floating cards on mobile */
  .floating-cards {
    display: none;
  }

  /* Hide scroll sprites on mobile */
  .scroll-sprites {
    display: none !important;
  }

  /* Reduce hero CTA sizing */
  .hero-cta-group {
    gap: 1rem;
    margin-top: 2rem;
  }

  /* Series title decorative lines */
  .series-title::before,
  .series-title::after {
    width: 10%;
  }
  .series-title::before { right: calc(50% + 4rem); }
  .series-title::after { left: calc(50% + 4rem); }
  .series-title { font-size: 1.4rem; }

  /* Reduce section padding */
  .section {
    padding: 4rem 1.5rem;
  }

  /* Marquee smaller on mobile */
  .marquee-track img {
    height: 70px;
  }
  .character-marquee {
    padding: 2rem 0;
  }

  /* Monster gallery padding on mobile */
  .monster-gallery {
    padding: 1.5rem 1rem 3rem;
  }

  /* Showcase cards - 2 per row, fill width */
  .monster-showcase { gap: 0.75rem; padding: 0 1rem; }
  .showcase-card {
    width: calc(50% - 0.5rem);
    min-width: 0;
    height: 240px;
    flex: 1 1 calc(50% - 0.5rem);
  }
  .showcase-card.featured { display: none; }
  .showcase-card-inner { padding: 0.3rem 0.3rem 0.2rem; justify-content: flex-end; }
  .showcase-card-inner img { width: 90%; flex: 1; min-height: 0; aspect-ratio: unset; object-fit: contain; }
  .showcase-name { padding: 0.3rem 0 0.2rem; font-size: 0.65rem; }

  /* Monster card grid - fill width on mobile, 2 per row */
  .monster-grid {
    max-width: 100%;
    gap: 1rem;
    padding: 0 0.5rem;
  }
  .monster-card {
    width: calc(50% - 0.75rem);
  }

  /* Bio pages */
  .bio-content h1 { font-size: 2rem; }

  /* Footer */
  .site-footer {
    padding: 2.5rem 1.5rem;
  }

  /* VR container */
  .vr-container {
    padding: 100px 1.5rem 3rem;
  }

  /* Rules container */
  .rules-container {
    padding: 100px 1.5rem 3rem;
  }

  /* Weapon cards */
  .weapons-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Mobile: 600px and below --- */
@media (max-width: 600px) {
  /* Hero further reduced */
  .hero {
    padding: 90px 1rem 2.5rem;
    min-height: 85vh;
  }

  .hero-logo {
    max-width: 260px;
  }

  .hero-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
  }

  /* Buttons scale down */
  .btn {
    font-size: 0.8rem;
    padding: 0.7rem 1.5rem;
    letter-spacing: 0.15em;
  }

  .hero-cta-group {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.6rem;
    align-items: center;
    justify-items: center;
  }
  .hero-hatter-link { grid-column: 1; grid-row: 1 / 3; }
  .hero-cta-group .btn { grid-column: 2; }
  .hero-box-link { grid-column: 3; grid-row: 1 / 3; }

  /* About block */
  .about-block {
    padding: 3rem 1rem;
    gap: 2rem;
  }

  .about-ctas {
    justify-content: center;
  }

  /* Card 3D flip smaller */
  .card-3d-wrapper {
    max-width: 260px;
  }

  /* Sections */
  .section {
    padding: 3rem 1rem;
  }

  /* Series title — hide decorative lines entirely on small screens */
  .series-title::before,
  .series-title::after {
    display: none;
  }
  .series-title {
    font-size: 1.2rem;
  }

  /* Monster showcase - 2 per row, fill width */
  .showcase-card {
    width: calc(50% - 0.5rem);
    height: 220px;
    flex: 1 1 calc(50% - 0.5rem);
  }
  .showcase-card.featured { display: none; }
  .showcase-card-inner img { width: 90%; flex: 1; min-height: 0; aspect-ratio: unset; object-fit: contain; }
  .showcase-name { padding: 0.3rem 0 0.2rem; font-size: 0.6rem; }

  /* Monster grid - maintain 2-per-row fill on small screens */
  .monster-card {
    width: calc(50% - 0.5rem);
  }
  .monster-grid {
    gap: 0.6rem;
    padding: 0 0.3rem;
  }

  /* Play section */
  .play-section {
    padding: 2rem 1rem;
  }
  .play-card {
    padding: 2rem 1.2rem;
  }

  /* Section divider */
  .section-divider::after {
    font-size: 0.9rem;
  }

  /* Bio hero */
  .bio-hero {
    padding: 90px 1rem 3rem;
    gap: 2rem;
  }
  .bio-image-wrapper { flex: 0 0 200px; }

  /* Rules */
  .rules-container {
    padding: 90px 1rem 3rem;
  }
  .rule-step {
    padding: 1rem;
    gap: 1rem;
  }

  /* VR */
  .vr-container {
    padding: 90px 1rem 3rem;
  }

  /* Footer */
  .footer-slu-logo {
    height: 45px;
  }

  /* Marquee even smaller */
  .marquee-track img {
    height: 55px;
  }

  /* Scroll indicator hide */
  .scroll-indicator {
    display: none;
  }

  /* Rival matchups */
  .rival-fighter img {
    width: 45px;
    height: 56px;
  }
  .vs-badge {
    font-size: 1rem;
  }

  /* Tag team */
  .tagteam-fighters img {
    width: 42px;
    height: 52px;
  }
}

/* --- Mobile: 400px and below (very small) --- */
@media (max-width: 400px) {
  .hero {
    padding: 85px 0.8rem 2rem;
  }

  .hero-logo {
    max-width: 220px;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }

  .hero-tagline {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }

  .btn {
    font-size: 0.75rem;
    padding: 0.6rem 1.2rem;
  }

  .monster-card {
    width: calc(50% - 0.4rem);
  }

  .showcase-card {
    width: calc(50% - 0.4rem);
    height: 200px;
    flex: 1 1 calc(50% - 0.4rem);
  }
  .showcase-card.featured { display: none; }
  .showcase-card-inner img { width: 90%; flex: 1; min-height: 0; aspect-ratio: unset; object-fit: contain; }
  .showcase-name { padding: 0.2rem 0 0.15rem; font-size: 0.55rem; }

  .marquee-track img {
    height: 45px;
  }

  .about-block {
    padding: 2rem 0.8rem;
  }

  .play-card {
    padding: 1.5rem 1rem;
  }

  .rules-container {
    padding: 85px 0.8rem 2rem;
  }

  .vr-container {
    padding: 85px 0.8rem 2rem;
  }

  .bio-hero {
    padding: 85px 0.8rem 2rem;
  }

  .bio-image-wrapper { flex: 0 0 180px; }

  .chaos-card-img {
    width: 55px;
    height: 68px;
  }
  .chaos-rule-card {
    padding: 1rem;
    gap: 0.8rem;
  }
}

/* --- Inline Style Mobile Overrides (must use !important to beat inline styles) --- */
@media (max-width: 600px) {
  /* Override inline font-size/padding on hero buttons */
  .hero-cta-group .btn-primary[style],
  .hero-cta-group .btn[style] {
    font-size: 0.9rem !important;
    padding: 0.9rem 2rem !important;
  }

  /* Override inline text sizing */
  .hero-content p[style] {
    font-size: 0.95rem !important;
    margin-top: 1rem !important;
    line-height: 1.7 !important;
  }

  /* Override inline hero tagline spacing */
  .hero-tagline[style] {
    margin-top: 1.5rem !important;
  }

  /* Override big CTA buttons (bottom of pages) */
  section[style] .btn-primary[style] {
    font-size: 1rem !important;
    padding: 1rem 2.5rem !important;
  }

  /* Override section inline padding */
  section[style*="padding"] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Override inline max-width on vr images */
  .vr-images[style] {
    max-width: 100% !important;
  }

  /* Override inline section subtitle margins */
  .section-subtitle[style] {
    margin-bottom: 1.5rem !important;
  }

  /* VR page text blocks with inline styles */
  .vr-arena-section p[style],
  .vr-lounge-section p[style],
  .vr-select-section p[style] {
    font-size: 0.95rem !important;
    margin: 1rem auto !important;
  }
}

@media (max-width: 400px) {
  .hero-cta-group .btn-primary[style],
  .hero-cta-group .btn[style] {
    font-size: 0.8rem !important;
    padding: 0.7rem 1.5rem !important;
  }

  .hero-content p[style] {
    font-size: 0.85rem !important;
  }

  section[style] .btn-primary[style] {
    font-size: 0.85rem !important;
    padding: 0.8rem 2rem !important;
  }
}

/* --- Rules Quick Jump Nav --- */
.rules-jump {
  position: sticky;
  top: 60px;
  z-index: 90;
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem 1rem;
  background: rgba(8, 8, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 0, 0, 0.15);
  flex-wrap: wrap;
}

.rules-jump a {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(139, 0, 0, 0.15);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.rules-jump a:hover {
  color: #fff;
  border-color: var(--crimson);
  background: rgba(139, 0, 0, 0.15);
  box-shadow: 0 0 12px rgba(139, 0, 0, 0.15);
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Offset for sticky nav when jumping to anchors */
[id] {
  scroll-margin-top: 130px;
}

/* Rules jump nav mobile */
@media (max-width: 600px) {
  .rules-jump {
    gap: 0.2rem;
    padding: 0.5rem 0.5rem;
  }
  .rules-jump a {
    font-size: 0.55rem;
    padding: 0.25rem 0.5rem;
    letter-spacing: 0.05em;
  }
}
