:root {
  --uno-red: #D72600;
  --uno-yellow: #F9C80E;
  --uno-green: #379711;
  --uno-blue: #0956BF;
  --uno-dark: #0f172a;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #020617;
  /* Slate 950 */
  color: #f8fafc;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: 'Outfit', sans-serif;
}

h2,
.prose h2,
.prose :where(h2):not(:where([class~="not-prose"] *)) {
  font-size: 2rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

h3,
.prose h3,
.prose :where(h3):not(:where([class~="not-prose"] *)) {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

@media (min-width: 768px) {

  h2,
  .prose h2,
  .prose :where(h2):not(:where([class~="not-prose"] *)) {
    font-size: 2.5rem !important;
  }

  h3,
  .prose h3,
  .prose :where(h3):not(:where([class~="not-prose"] *)) {
    font-size: 2.25rem !important;
  }
  
  .md\:pt-20 {
    padding-top: 5rem; /* 20 * 0.25rem */
  }

  .md\:pb-16 {
    padding-bottom: 4rem; /* 16 * 0.25rem */
  }

  .md\:min-h-screen {
    min-height: 100vh;
  }
}

/* Glassmorphism utilities */
.glass {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Uno Colors Glow FX */
.glow-red {
  box-shadow: 0 0 20px rgba(215, 38, 0, 0.4);
}

.glow-blue {
  box-shadow: 0 0 20px rgba(9, 86, 191, 0.4);
}

.glow-green {
  box-shadow: 0 0 20px rgba(55, 151, 17, 0.4);
}

.glow-yellow {
  box-shadow: 0 0 20px rgba(249, 200, 14, 0.4);
}

/* Animated Gradients */
.bg-animated-gradient {
  background: linear-gradient(-45deg, var(--uno-red), var(--uno-blue), var(--uno-green), var(--uno-yellow));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

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

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

/* Ad Slot Reservations (CLS Protection) */
.ad-sidebar {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

@media (min-width: 1024px) {
  .ad-sidebar {
    min-height: 600px;
  }
}

.ad-header {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.ad-in-article {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 2rem 0;
}

/* Game Canvas Styles */
#game-container {
  perspective: 1000px;
}

.playing-card {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.playing-card:hover {
  transform: translateY(-15px) rotate(2deg);
  z-index: 50;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Typography Refinements */
p {
  line-height: 1.8 !important;
  letter-spacing: 0.035em !important;
  margin-bottom: 2rem !important;
  /* Forces a full line break effect */
}

li {
  line-height: 1.8 !important;
  letter-spacing: 0.035em !important;
  margin-bottom: 0.75rem;
}

.prose h2,
.prose h3 {
  letter-spacing: 0.025em;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}
/* SEO Core Web Vitals - CLS Protection for Ads */
.ad-header, .ad-sidebar, .ad-in-article { min-height: 250px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.2); border: 1px dashed rgba(255,255,255,0.1); }

/* Tailwind Utility Fallbacks */
.mt-16 {
  margin-top: 4rem !important; /* 64px spacing */
}

/* FAQ Component Styling & Prose Overrides */
.faq-accordion {
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.faq-accordion[open] {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.75) 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-accordion summary {
  padding: 1.5rem;
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-accordion summary:hover {
  color: #f8fafc !important;
}

/* Remove default arrow in Chrome/Safari */
.faq-accordion summary::-webkit-details-marker {
  display: none;
}

/* Animated pure CSS chevron indicator */
.faq-accordion summary::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.faq-accordion[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--uno-red) !important;
}

.faq-accordion .faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.25rem;
}

.faq-accordion .faq-content p {
  font-size: 0.975rem !important;
  line-height: 1.7 !important;
  color: #cbd5e1 !important; /* Slate 300 */
  margin-bottom: 0 !important;
}

.faq-accordion .faq-content p strong {
  color: #ffffff !important;
}

/* pt-16 Fallback utility */
.pt-16 {
  padding-top: 4rem !important;
}

/* About Us Buttons */
.about-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  width: 100%;
}

@media (min-width: 640px) {
  .about-buttons-container {
    flex-direction: row;
  }
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem !important;
  font-weight: 700 !important;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  text-decoration: none !important;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  flex: 1;
}

.about-btn i {
  margin-right: 0.5rem;
}

.about-btn-primary {
  background-color: var(--uno-red) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(215, 38, 0, 0.4);
}

.about-btn-primary:hover {
  background-color: #b01f00 !important;
  box-shadow: 0 6px 20px rgba(215, 38, 0, 0.6);
  transform: translateY(-1px);
}

.about-btn-secondary {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-1px);
}

/* Glassmorphic Cookie Consent Banner */
#cookie-consent-banner {
  position: fixed !important;
  bottom: 1.5rem !important;
  left: 1.5rem !important;
  right: 1.5rem !important;
  z-index: 9999 !important;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.98) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1rem !important;
  padding: 1.25rem !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.5s ease, opacity 0.5s ease !important;
  max-width: 420px !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  #cookie-consent-banner {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 1rem !important;
    max-width: none !important;
  }
}

.cookie-content {
  display: flex !important;
  align-items: flex-start !important;
  gap: 1rem !important;
}

.cookie-icon {
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 50% !important;
  background-color: rgba(215, 38, 0, 0.15) !important;
  color: var(--uno-red) !important;
  border: 1px solid rgba(215, 38, 0, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.cookie-text {
  flex-grow: 1 !important;
}

.cookie-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 0.25rem 0 !important;
  font-size: 1.05rem !important;
}

.cookie-desc {
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

.cookie-buttons {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 0.75rem !important;
  margin-top: 1.25rem !important;
}

.cookie-btn {
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border-radius: 0.5rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.cookie-btn-decline {
  background: transparent !important;
  color: #94a3b8 !important;
}

.cookie-btn-decline:hover {
  color: #ffffff !important;
}

.cookie-btn-accept {
  background-color: var(--uno-red) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(215, 38, 0, 0.3) !important;
}

.cookie-btn-accept:hover {
  background-color: #b01f00 !important;
  box-shadow: 0 4px 18px rgba(215, 38, 0, 0.5) !important;
}

/* Brand Primary Button */
.btn-brand-primary {
  background-color: var(--uno-red) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 14px rgba(215, 38, 0, 0.4) !important;
  transition: all 0.2s ease-in-out !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.btn-brand-primary:hover {
  background-color: #b01f00 !important;
  box-shadow: 0 6px 20px rgba(215, 38, 0, 0.6) !important;
  transform: translateY(-2px) !important;
}