/* Mobile-first responsive design */
* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  padding: 0;
  background: #020617;
  /* Slate 950 */
  margin: 0;
  color: #cbd5e1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Hide Logo and Header by default on all pages */
.site-logo,
.site-logo-container,
.site-header {
  display: none !important;
}

/* Remove explicit show for TCG page as logo is distraction */
/* body.tcg-page .site-logo,
body.tcg-page .site-logo-container,
body.tcg-page .site-header {
  display: flex !important;
} */

/* Universal spacer for sub-pages to clear fixed floating nav at bottom */
body:not(:has(.home-container)):not(.about-page)::after {
  content: '';
  display: block;
  height: 180px;
  /* Massive clear space for desktop and mobile */
  width: 100%;
  flex-shrink: 0;
}

/* Home Page specific - one page fit */
.home-container {
  padding: 60px 0 0 0 !important;
  /* Top space for nav bar if any, though nav is bottom */
  min-height: 100vh;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Ensure top isn't cut off */
  position: relative;
  box-sizing: border-box;
  background: #020617;
  /* Ensure dark background is locked in */
}

.home-footer {
  margin-top: auto;
  border-top: 3px solid #bf5af2 !important;
  /* Thick Legendary Purple Border */
  background: rgba(2, 6, 23, 0.98) !important;
  backdrop-filter: blur(20px);
  padding: 1rem 0.5rem 1.5rem 0.5rem;
  /* Larger bottom padding for mobile safety */
  flex-shrink: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 -15px 40px rgba(191, 90, 242, 0.3);
  /* Purple Glow */
}

.home-footer .site-footer {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Considerably larger footer links for Home Page */
.home-footer .footer-nav {
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}

.home-footer .footer-nav a {
  font-size: 1rem;
  /* Considerably larger than standard 0.55rem */
  font-weight: 600;
  color: #f1f5f9;
  padding: 0.5rem;
}

.home-footer .footer-content p {
  font-size: 0.85rem;
  /* Up from 0.6rem */
  color: #94a3b8;
  margin-top: 0.5rem;
}

.home-container #header-include {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.home-container .site-nav {
  position: static;
  transform: none;
  margin: 0.2vh auto;
  /* Minimized margins */
  order: -1;
  /* Move above logo */
  width: auto;
  max-width: 480px;
  flex-shrink: 0;
}

/* Disable shrink effect for home nav */
.home-container .site-nav.shrink {
  padding: 0.4rem;
  bottom: auto;
  transform: none;
}

.home-container .site-nav::before {
  border-radius: 53px;
}

.welcome-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* Safer for scrolling content */
  padding: 4rem 1rem 8rem 1rem;
  /* Top and bottom padding for safe zones */
  overflow-y: visible;
  /* Let parent handle scrolling */
  min-height: 0;
  gap: 3rem;
}

.blue {
  font-size: clamp(1.2rem, 5vw, 2.5rem);
  font-weight: 700;
  margin: 2rem auto;
  /* Centered with vertical breathing room */
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.3px;
  max-width: 1000px;
  width: 100%;

  /* Sleek Gradient Text with Shimmer */
  background: linear-gradient(110deg, #22d3ee 30%, #a5f3fc 40%, #818cf8 50%, #22d3ee 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  animation: shine 4s linear infinite;
  will-change: background-position;
}

@media (min-width: 1024px) {
  .blue {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    max-width: 1000px;
    margin-top: 3rem;
    margin-bottom: 2rem;
  }
}

.heading-accent {
  display: block;
  color: #f1f5f9 !important;
  /* Solid Slate 100 */
  -webkit-text-fill-color: #f1f5f9 !important;
  /* Force override of transparent fill */
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  margin-top: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(1.5rem, 6vw, 3rem);
  /* Responsive scaling */
  line-height: 1.2;
}

/* Ensure animation exists globally if not already */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Optimization Note: detailed gradient animations often trigger paint. 
   Keeping this layout for now as refactoring to transform would require 
   complex DOM changes for the text-clip effect on .blue */

/* Mobile: Reduce logo on content pages */
.small-logo-page:not(.tcg-page) {
  padding-top: 30px !important;
  /* Just enough for the 28px bar + 2px */
}

/* TCG page specifically wants 0 gap at top */
.tcg-page.small-logo-page {
  padding-top: 0 !important;
}

.home-cont.admin-header h3,
.admin-header h4 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

.home-container .site-header {
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.home-container .site-logo {
  display: block !important;
  max-height: 200px;
  /* Fixed pixels for stability */
  width: auto;
  max-width: 90vw;
  margin: 0.5rem auto;
  /* Use rem instead of vh */
}

@media (max-width: 480px) {
  .home-container .site-logo {
    max-height: 180px;
    /* Use fixed pixels for stability on mobile */
    max-width: 85vw;
  }

  .home-footer .footer-nav {
    gap: 0.5rem;
  }

  .home-footer .footer-nav a {
    font-size: 0.75rem;
    padding: 0.15rem;
  }

  .home-footer .footer-content p {
    font-size: 0.65rem;
    margin-top: 0.1rem;
  }
}

.small-logo-page .site-logo {
  max-width: 60%;
  margin: 0 auto;
}

/* Header/logo styles */
.site-header {
  text-align: center;
  margin: 1rem 0 0.5rem 0;
  padding: 0.5rem 0;
  position: relative;
  z-index: 10;
}

.site-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Navigation styles - mobile optimized */
.site-nav {
  text-align: center;
  margin: 0;
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  /* Apple Glass Effect */
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 50px;
  padding: 0.55rem;
  width: 95%;
  max-width: 520px;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  /* Allow glow to extend outside nav pill */

  /* STRICT ISOLATION: Prevent theme fonts/colors from bleeding in */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
  color: #0f172a !important;
  /* Force default text color base */
}

/* AGGRESSIVE OVERRIDE: Force Nav to ignore MTG Theme */
body.theme-mtg .site-nav,
body.theme-mtg .site-nav a {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  text-shadow: none !important;
  letter-spacing: normal !important;
  font-style: normal !important;
}

.site-nav.shrink {
  padding: 0.35rem;
  bottom: 1.25rem;
  transform: translateX(-50%) scale(0.93);
  /* slightly more opaque when shrunk? or consistent? keeping consistent but reduced padding */
}

#nav-char-img {
  width: 52px;
  /* Increased size for better badge visibility */
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #ffd700;
  display: block;
  margin-right: -0.1rem;
  /* Adjusted for larger size */
  background: #020617;
  z-index: 1100;
  /* PERFORMANCE FIX: Only transition transform/shadow, NEVER width/height/layout */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  cursor: pointer;

  /* Minimized geometry changes to prevent shimmering */
  will-change: transform, box-shadow;
  transform: translateZ(0);
  /* Hardware accelerate the container */

  /* Legendary Neon Glow (Gold/Purple) - NO SCALING */
  box-shadow:
    0 0 10px rgba(255, 215, 0, 0.8),
    0 0 20px rgba(139, 92, 246, 0.4),
    0 0 30px rgba(255, 215, 0, 0.2);
  animation: legendary-glow 3s infinite alternate ease-in-out;
}

.nav-profile-link {
  display: flex !important;
  align-items: center;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
}

@keyframes legendary-glow {
  0% {
    box-shadow:
      0 0 8px rgba(255, 215, 0, 0.7),
      0 0 12px rgba(139, 92, 246, 0.3),
      0 0 15px rgba(255, 215, 0, 0.1);
    /* Absolutely NO transform/scale here */
  }

  100% {
    box-shadow:
      0 0 18px rgba(255, 215, 0, 1),
      0 0 28px rgba(236, 72, 153, 0.7),
      0 0 40px rgba(255, 215, 0, 0.5);
  }
}

.site-nav.shrink #nav-char-img {
  /* PERFORMANCE FIX: Scale instead of resize to avoid layout thrashing */
  transform: translateZ(0) scale(0.77);
  /* approx 40px/52px */
  /* Ensure width/height stay constant to prevent reflow */
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

@media (max-width: 480px) {
  #nav-char-img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border-width: 1.5px;
    margin-right: -0.3rem;
  }

  .site-nav.shrink #nav-char-img {
    /* PERFORMANCE FIX: Scale instead of resize */
    transform: translateZ(0) scale(0.76);
    /* approx 32px/42px */
    /* Maintain base mobile dimensions */
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }

  /* Remove excessive padding now that pic is in flow */
  .loot-stats-bar {
    gap: 0.8rem;
    padding-left: 0;
  }
}

.site-nav a {
  text-decoration: none;
  color: #0f172a !important;
  /* Force default link color */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 600 !important;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-shadow: none !important;
}

.site-nav a:active {
  background-color: #e2e8f0;
  color: #06b6d4 !important;
}

.site-nav a:hover {
  background-color: #e2e8f0;
  color: #06b6d4 !important;
}

/* Content sections */
section {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: 8px;
}

.video-section {
  margin: 1.5rem 0;
  padding: 0;
  background-color: transparent;
}

.video-section video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

h2 {
  font-size: 1.35rem;
  color: #f1f5f9;
  /* Slate 100 */
  margin: 0.75rem 0;
}

p {
  font-size: 1.15rem;
  color: #cbd5e1;
  /* Slate 300 */
  margin: 0.75rem 0;
  text-align: center;
}

ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

li {
  font-size: 1rem;
  color: #cbd5e1;
  /* Slate 300 */
  margin: 0.5rem 0;
}

/* Tablet and desktop adjustments */
@media (min-width: 481px) {
  body {
    padding: 1.5rem;
  }



  .site-logo {
    width: 100%;
    max-width: 900px;
    /* Cap max size on large screens */
    margin: 4rem auto 0 auto;
    display: block;
  }

  .small-logo-page .site-logo {
    max-width: 250px;
    margin: 0 auto;
  }

  .site-nav a {
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .site-nav a:active {
    background-color: #e2e8f0;
    color: #06b6d4;
  }

  .site-nav a:hover {
    background-color: #e2e8f0;
    color: #06b6d4;
  }
}

/* Top System Status (Pill HUD - Dark Fantasy) */
.system-status-pill {
  display: none;
  /* Hidden by default */
  position: absolute;
  /* Changed from fixed to absolute so it scrolls away */
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;

  /* Dark Fantasy Gradient */
  background: linear-gradient(135deg, #0A84FF, #8E2DE2, #4A00E0);
  background-size: 200% 200%;
  animation: gradient-shift 5s ease infinite;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  /* Restored pill shape */
  padding: 8px 12px;
  will-change: background-position;

  /* Layout */
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 9999;

  /* Glow */
  box-shadow: 0 0 20px rgba(142, 45, 226, 0.4), 0 0 10px rgba(10, 132, 255, 0.3);

  font-family: 'Courier New', Courier, monospace;

  /* STRICT ISOLATION: Prevent theme bleed */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  font-style: normal !important;
  text-shadow: none !important;
  color: #fff !important;
  letter-spacing: normal !important;
}

/* AGGRESSIVE OVERRIDE: Force System Pill to ignore MTG Theme via High Specificity */
body.theme-mtg .system-status-pill,
body.theme-mtg .system-status-pill * {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  text-shadow: none !important;
  letter-spacing: normal !important;
}

/* Visibility Override for Home Page */
.home-container .system-status-pill {
  display: flex !important;
}

.system-status-pill .status-label {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.system-status-pill .status-time {
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ensure animation exists globally if not already */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Mobile adjustment */
@media (max-width: 600px) {
  .system-status-pill {
    width: 95%;
    padding: 10px 14px;
    /* Increased padding */
    top: 10px;
  }

  .system-status-pill .status-label,
  .system-status-pill .status-time {
    font-size: 0.85rem;
    /* Increased font-size */
  }
}

/* Footer styles */
.site-footer {
  margin-top: auto;
  margin-bottom: 0;
  margin-left: -1rem;
  margin-right: -1rem;
  padding: 0.25rem 1rem;
  background-color: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  width: calc(100% + 2rem);
}

.footer-content p {
  font-size: 0.6rem;
  color: #64748b;
  margin: 0 0 0.2rem 0;
}

.footer-nav {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: #475569;
  font-size: 0.55rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #06b6d4;
}

/* Products section for Movies page */
.products {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 1rem;
  width: 100%;
}

/* Video Grid for Content page */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
  background-color: transparent;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

/* Two columns on tablets */
@media (min-width: 600px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
  }
}

/* Three columns on desktop */
@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Light Beam Animation */
.beam-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.beam-container span {
  position: absolute;
  display: block;
  width: 4px;
  height: 10px;
  /* Short beam head */
  background: white;
  box-shadow: 0 0 15px 4px red, 0 0 30px 8px rgba(255, 0, 0, 0.6);
  border-radius: 50%;
}

.beam-container span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, transparent, red);
  opacity: 0.5;
  transform: translateY(10px);
}

/* Left Beam - Gravity Up/Down */
.beam-container span:nth-child(1) {
  left: 0;
  bottom: 0;
  /* Use transform for positioning animation base to avoid layout thrashing */
  transform-origin: bottom center;
  animation: gravity-left 8s ease-in-out infinite;
  will-change: transform, opacity;
}

.beam-container span:nth-child(1)::after {
  background: linear-gradient(to top, transparent, red);
  transform: translateY(10px);
}

/* Right Beam - Gravity Down/Up */
.beam-container span:nth-child(2) {
  right: 0;
  top: 0;
  /* Use transform for positioning animation base */
  transform-origin: top center;
  animation: gravity-right 8s ease-in-out infinite;
  will-change: transform, opacity;
}

.beam-container span:nth-child(2)::after {
  background: linear-gradient(to bottom, transparent, red);
  transform: translateY(-200px);
}

@keyframes gravity-left {
  0% {
    opacity: 0;
    transform: translateY(0) scaleY(1);
  }

  10% {
    opacity: 1;
  }

  45% {
    /* Instead of bottom: 80%, use translateY to move it up */
    /* Assuming 100vh height roughly, using percentage of container */
    transform: translateY(-80vh) scaleY(1.5);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Decelerate */
  50% {
    transform: translateY(-82vh) scaleY(1);
    animation-timing-function: ease-in;
  }

  /* Peak */
  90% {
    transform: translateY(0) scaleY(2);
    animation-timing-function: ease-in;
  }

  /* Accelerate down */
  100% {
    opacity: 0;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes gravity-right {
  0% {
    opacity: 0;
    transform: translateY(0) scaleY(1);
  }

  10% {
    opacity: 1;
  }

  45% {
    /* Instead of top: 80%, use translateY to move it down */
    transform: translateY(80vh) scaleY(1.5);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  50% {
    transform: translateY(82vh) scaleY(1);
    animation-timing-function: ease-in;
  }

  90% {
    transform: translateY(0) scaleY(2);
    animation-timing-function: ease-in;
  }

  100% {
    opacity: 0;
    transform: translateY(0) scaleY(1);
  }
}

/* Violet Nav Beam using Conic Gradient */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.site-nav {
  position: fixed;
  /* Existing rules mostly unchanged, simplified here for context */
  /* Ensure masking works */
  background: #f1f5f9;
}

.site-nav::before {
  content: '';
  position: absolute;
  inset: -3px;
  /* Border width */
  z-index: -1;
  /* AI Assistant Style Multi-Color Gradient */
  background: conic-gradient(from var(--angle),
      transparent 0%,
      transparent 40%,
      #06b6d4 55%,
      /* Cyan */
      #8b5cf6 70%,
      /* Purple */
      #ec4899 85%,
      /* Pink */
      #f97316 98%,
      /* Orange */
      transparent 100%);
  border-radius: 53px;
  /* nav has 50px */
  animation: rotate-beam 4s linear infinite;
  filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 15px rgba(6, 182, 212, 0.4));
  border-radius: 53px;
  /* nav has 50px */
  animation: rotate-beam 4s linear infinite;
  filter: drop-shadow(0 0 10px violet);

  /* Masking to create border-only effect */
  padding: 3px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes rotate-beam {
  to {
    --angle: 360deg;
  }
}

/* Pulsing Background Effects */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  /* Behind Tractor Beam on Home (-1) */
  overflow: hidden;
  background-color: #020617;
  /* Restore base dark layer */
  pointer-events: none;
}

/* On sub-pages, bring blobs vertically higher than opacity canvases */
.small-logo-page .background-effects {
  z-index: -1;
  background-color: transparent;
  overflow: visible;
  /* Allow blobs to extend */
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform, opacity;
}

.glow-1 {
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
  /* Green/Blueish */
  top: 5%;
  left: -15%;
  animation: pulse-float 15s infinite alternate ease-in-out;
}

.glow-2 {
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
  /* Purple/Blueish */
  bottom: 5%;
  right: -15%;
  animation: pulse-float-reverse 18s infinite alternate-reverse ease-in-out;
}


@keyframes pulse-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.4;
  }

  50% {
    transform: translate3d(5%, 10%, 0) scale(1.1);
    opacity: 0.6;
  }

  100% {
    transform: translate3d(-5%, 5%, 0) scale(1);
    opacity: 0.4;
  }
}

@keyframes pulse-float-reverse {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.3;
  }

  100% {
    transform: translate3d(5%, -5%, 0) scale(1.2);
    opacity: 0.5;
  }
}

/* --- Global Loot Logic (Stats Bar & Nav Login) --- */
.loot-stats-bar {
  display: flex;
  gap: 1.2rem;
  background: transparent;
  border: none;
  padding: 0.2rem 0;
  /* Balanced padding top/bottom */
  margin-bottom: 0.2rem;
  width: 100%;
  flex-basis: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  position: relative;
  z-index: 2;
  /* Ensure text is above the glow pseudo-element */
}

.stat-item .label {
  font-size: 0.7rem;
  opacity: 0.7;
}

.stat-item.lvl .value {
  color: #4f46e5;
  /* Indigo */
}

.stat-item.gold .value {
  color: #d97706;
  /* Darker Gold for light bg */
  text-shadow: none;
}

.stat-item.xp .value {
  color: #0891b2;
  /* Cyan/Teal */
  text-shadow: none;
}

/* Nav Login Button - Match .site-nav a */
#header-login-btn,
#header-logout-btn {
  background: transparent;
  border: none;
  color: #0f172a;
  /* Dark text */
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin: 0;
  font-family: inherit;
  /* Ensure font matches */
}

#header-login-btn:hover,
#header-logout-btn:hover {
  background-color: #e2e8f0;
  color: #06b6d4;
  box-shadow: none;
}



/* Tractor Beam Animation */
.tractor-beam {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.beam-gradient {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 150vw;
  /* Massive width */
  height: 60vh;
  /* Cloud-like top base */
  background: radial-gradient(ellipse at center,
      rgba(129, 140, 248, 0.4) 0%,
      rgba(34, 211, 238, 0.2) 30%,
      rgba(34, 211, 238, 0.05) 60%,
      transparent 80%);
  filter: blur(40px);
  animation: beam-cloud-pulse 8s infinite alternate ease-in-out;
}

.beam-core {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  /* Base width */
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(34, 211, 238, 0.4) 20%,
      rgba(129, 140, 248, 0.1) 60%,
      transparent 100%);
  filter: blur(15px);
  will-change: transform, opacity;
  animation: beam-core-pulse 4s infinite ease-in-out;
}

/* Shooting light pulse */
.beam-core::after {
  content: '';
  position: absolute;
  top: 0;
  /* Was -20%, but we start animation there now */
  left: 0;
  width: 100%;
  height: 30%;
  /* Length of the shooting pulse */
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9) 50%, transparent);
  filter: blur(5px);
  will-change: transform, opacity;
  animation: beam-shoot 3s infinite ease-out;
}

@keyframes beam-cloud-pulse {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
  }
}

@keyframes beam-core-pulse {

  0%,
  100% {
    opacity: 0.6;
    /* width: 60px -> scaleX 1 */
    transform: translateX(-50%) scaleX(1);
  }

  50% {
    opacity: 0.8;
    /* width: 80px -> scaleX 1.33 */
    transform: translateX(-50%) scaleX(1.33);
  }
}

@keyframes beam-shoot {
  0% {
    /* top: -20% -> translateY(-20%)? No, parent is relative. */
    /* top is relative to parent height. */
    transform: translateY(-20%);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  80% {
    /* top: 120% */
    transform: translateY(120%);
    opacity: 1;
  }

  100% {
    transform: translateY(120%);
    opacity: 0;
  }
}

/* RSS Feed Styles for Poop Reading */
.rss-feed-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.rss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.rss-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.rss-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  background: rgba(255, 255, 255, 0.9);
}

.rss-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  color: #1e293b;
  line-height: 1.4;
}

.rss-card .meta {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rss-card .description {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rss-card .read-more {
  display: inline-flex;
  align-items: center;
  color: #0ea5e9;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: auto;
}

.rss-card .read-more:hover {
  color: #0284c7;
}

.rss-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #22d3ee, #818cf8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* WebGL Background Container */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  /* Below .background-effects (-1) on sub-pages */
  pointer-events: none;
}

/* About Page - Contact section at bottom */
.about-page .contact-info {
  margin-bottom: 0;
  border-radius: 0;
}

.about-page .site-footer {
  margin-top: 0;
}

/* Karen-themed Contact Info Section */
.about-page .contact-info {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 105, 180, 0.3);
  border-bottom: none;
  padding: 2rem;
  text-align: center;
}

.about-page .contact-info h2 {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #ff69b4, #ff1493, #dc143c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(255, 105, 180, 0.5);
  margin-bottom: 1.5rem;
}

.about-page .blue {
  font-size: clamp(1rem, 2.2vh, 1.8rem);
  line-height: 1.3;
}

.about-page .contact-info li {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 105, 180, 0.3);
  margin: 0.5rem 0;
  letter-spacing: 0.5px;
}

/* Mind-blown effect display - centered above contact */
.mind-effect-display {
  text-align: center;
  font-size: clamp(0.9rem, 2.2vh, 1.6rem);
  font-weight: 700;
  color: #fff;
  padding: 0.5rem;
  min-height: 3.5em;
  /* Stabilize height to prevent jumping */
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow:
    0 0 10px rgba(255, 105, 180, 0.8),
    0 0 20px rgba(255, 105, 180, 0.6),
    0 0 40px rgba(255, 105, 180, 0.4),
    0 0 60px rgba(255, 20, 147, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.8);
  animation: glowPulse 1s ease-in-out infinite;
}

.about-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 0 110px 0;
  /* Clear fixed nav at bottom */
  box-sizing: border-box;
}

.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 1rem;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    text-shadow:
      0 0 10px rgba(255, 105, 180, 0.8),
      0 0 20px rgba(255, 105, 180, 0.6),
      0 0 40px rgba(255, 105, 180, 0.4),
      0 0 60px rgba(255, 20, 147, 0.3),
      0 2px 4px rgba(0, 0, 0, 0.8);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.02);
    text-shadow:
      0 0 15px rgba(255, 105, 180, 1),
      0 0 30px rgba(255, 105, 180, 0.8),
      0 0 50px rgba(255, 105, 180, 0.6),
      0 0 80px rgba(255, 20, 147, 0.5),
      0 2px 4px rgba(0, 0, 0, 0.8);
  }
}

/* Apple Glass Video Feed Styles */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.4, 0.25, 1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fade-in-up 0.6s ease-out forwards;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.video-frame-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  background: #000;
}

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

.card-content {
  padding: 1.25rem;
}

.card-content h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

/* PWA Install Prompt */
.pwa-prompt {
  display: none;
  /* Hidden by default */
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 23, 42, 0.9);
  /* Dark Slate */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  max-width: 320px;
  animation: slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: system-ui, -apple-system, sans-serif;
}

@keyframes slide-up {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pwa-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pwa-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pwa-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #000;
  /* Placeholder if image fails */
}

.pwa-info h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

.pwa-info p {
  margin: 0.2rem 0 0 0 !important;
  font-size: 0.85rem !important;
  text-align: left !important;
  color: #94a3b8 !important;
}

.pwa-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pwa-btn {
  flex: 1;
  padding: 0.8rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.1s;
}

.pwa-btn:active {
  transform: scale(0.96);
}

.pwa-btn.install {
  background: #06b6d4;
  /* Cyan */
  color: #fff;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.pwa-btn.dismiss {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
}

.pwa-btn.dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Mobile Adjustment */
@media (max-width: 480px) {
  .pwa-prompt {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: none;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
  }
}

/* Legal Page Styles - RESTORED & FIXED */
.legal-container {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 60px auto;
  padding: 60px;
  background: rgba(2, 6, 23, 0.6);
  /* Reduced opacity for transparent nice look */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

/* IMPORTANT: Override global section styles that add white background */
.legal-container section {
  background-color: transparent !important;
  padding: 0 !important;
  margin: 1.5rem 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.legal-container h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.legal-container h2 {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-top: 3.5rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.legal-container p,
.legal-container li {
  line-height: 1.7;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.011em;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.legal-container strong {
  color: #fbbf24;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

/* Beam container visible on all pages - removed display: none */

.legal-meta {
  text-align: center;
  color: #cbd5e1;
  font-size: 0.95rem;
  letter-spacing: 0;
  margin-bottom: 4rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

#legal-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  pointer-events: none;
}

#scales-canvas {
  width: 100%;
  max-width: 400px;
  height: 150px;
  display: block;
  margin: 0 auto 20px auto;
  background: transparent;
}

/* Home Page About Section */
.about-section {
  background: rgba(2, 6, 23, 0.4);
  /* Darker glass for better contrast */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  width: 90%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.about-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;

  /* Matching Welcome Section Rotating Color */
  background: linear-gradient(110deg, #22d3ee 30%, #a5f3fc 40%, #818cf8 50%, #22d3ee 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
}

.about-section p {
  font-size: 1rem;
  /* Fixed size instead of clamp with vh */
  line-height: 1.6;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.about-links {
  font-size: 1rem;
  color: #94a3b8;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.about-links a {
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;

  /* Matching Welcome Section Rotating Color */
  background: linear-gradient(110deg, #22d3ee 30%, #a5f3fc 40%, #818cf8 50%, #22d3ee 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
}

.about-links a:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}



/* --- Global Dungeon Buttons (for Auth) --- */
.dungeon-btn {
  background: #1e293b;
  border: 1px solid #475569;
  color: #ffd700;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  font-family: inherit;
  /* Use site font */

  /* STRICT ISOLATION from MTG/Theme fonts */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  font-style: normal !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
}

/* AGGRESSIVE OVERRIDE: Prevent buttons from becoming Serif in MTG */
body.theme-mtg .dungeon-btn {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  text-shadow: none !important;
}

.dungeon-btn:hover {
  background: #334155;
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.dungeon-btn.mini-btn {
  padding: 4px 12px;
  font-size: 0.8rem;
}

/* --- Global Animations --- */
@keyframes shine {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes coin-float {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-40px);
    opacity: 0;
  }
}

.coin-anim {
  position: absolute;
  pointer-events: none;
  animation: coin-float 1s ease-out forwards;
  font-size: 1.2rem;
  color: #ffd700;
  z-index: 10000;
  font-weight: bold;
  text-shadow: 0 0 3px #000;
}

/* --- Magic Surge Effects (Ported from Feedback) --- */
@keyframes magic-aura {
  0% {
    background-position: 0 0;
    transform: scale(1);
  }

  50% {
    background-position: 400% 0;
    transform: scale(1.02);
  }

  100% {
    background-position: 0 0;
    transform: scale(1);
  }
}

@keyframes surge-glow {
  from {
    filter: brightness(1) contrast(1);
  }

  to {
    filter: brightness(2) contrast(1.5) drop-shadow(0 0 10px #fff);
  }
}

/* Apply Magic Aura to Loot Stats Bar Separator/Background */
.loot-stats-bar {
  position: relative;
  /* Create a stacking context for pseudo-elements */
  z-index: 1;
}

/* SEO Links Section */
.seo-links-section {
  padding: 6rem 1.5rem 10rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 10;
  background-color: transparent !important;
  /* Grid removed per user request */
  border: none !important;
}

.seo-title {
  text-align: center;
  margin-bottom: 3rem;
}

.seo-title h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 0;
  background: linear-gradient(110deg, #fff 30%, #22d3ee 40%, #00ff41 50%, #fff 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  animation: shine 4s linear infinite;
}

.seo-title p {
  color: #00ff41;
  /* Borg Green */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.seo-links-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.seo-link-card {
  text-decoration: none;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(0, 255, 65, 0.3);
  /* Green border on all cards */
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  padding: 3rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  color: #cbd5e1;
  /* Prevent default blue links */
}

/* Background gradient for cards */
.seo-link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(20, 184, 166, 0.1) 0%, transparent 50%);
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.seo-link-card:hover {
  transform: translateY(-12px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(0, 255, 65, 0.2);
}

.seo-link-card:hover::before {
  opacity: 1;
}

.seo-link-card.primary {
  background: #020617;
}

.seo-link-card.primary::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ff41, #22d3ee, transparent);
  animation: border-slide 3s linear infinite;
}

@keyframes border-slide {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.seo-link-card .card-tag {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #00ff41;
  /* Borg Green */
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: tag-pulse 2s infinite alternate;
}

@keyframes tag-pulse {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
    filter: brightness(1.3);
  }
}

.seo-link-card .card-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.seo-link-card h3 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  color: #f8fafc;
  text-align: left !important;
  font-weight: 900;
  letter-spacing: -1px;
}

.seo-link-card p {
  font-size: 1.2rem;
  color: #94a3b8;
  margin: 1rem 0;
  text-align: left !important;
  max-width: 800px;
  line-height: 1.6;
}

.seo-link-card .card-action {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  width: fit-content;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.seo-link-card .card-action::after {
  content: '→';
  transition: transform 0.3s ease;
  font-size: 1.4rem;
}

.seo-link-card:hover .card-action {
  background: #00ff41;
  color: #000;
  border-color: #00ff41;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.seo-link-card:hover .card-action::after {
  transform: translateX(10px);
}

.seo-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .seo-links-section {
    padding-bottom: 160px;
  }

  .seo-link-card {
    padding: 2rem;
  }

  .seo-link-card h3 {
    font-size: 1.8rem;
  }

  .seo-links-grid {
    grid-template-columns: 1fr;
  }
}

/* Separator glow removed per user request */