@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;700;900&display=swap');

:root {
  /* Vibrant Cartoon Palette */
  --bg-color: #0f172a;
  --bg-gradient: linear-gradient(135deg, #1e1b4b 0%, #3b0764 100%);
  --surface-color: rgba(30, 41, 59, 0.7);
  --primary: #d946ef;
  /* Magenta */
  --primary-hover: #c026d3;
  --secondary: #06b6d4;
  /* Cyan */
  --accent: #facc15;
  /* Gold/Yellow */
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;

  --font-heading: 'Fredoka One', cursive;
  --font-body: 'Nunito', sans-serif;

  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(217, 70, 239, 0.5);
  --shadow-gold: 0 0 20px rgba(250, 204, 21, 0.6);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: var(--font-body);
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Layout */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 10px 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-gold);
  transform: rotate(-10deg);
  transition: var(--transition);
}

.logo:hover .logo-icon {
  transform: rotate(0deg) scale(1.1);
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  fill: #000;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 2px 2px 0 var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #fff !important;
  padding: 12px 30px;
  border-radius: 50px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.1rem;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 0 30px var(--primary);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--secondary) !important;
  padding: 12px 30px;
  border-radius: 50px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.1rem;
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: #fff !important;
  box-shadow: 0 0 20px var(--secondary);
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Hero Section with Diagonal Cut */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transform: scale(1.05);
  animation: slowPan 30s infinite alternate linear;
}

@keyframes slowPan {
  0% {
    transform: scale(1.05) translate(0, 0);
  }

  100% {
    transform: scale(1.1) translate(-2%, -2%);
  }
}

.hero-content {
  position: relative;
  max-width: 800px;
  z-index: 2;
  padding-bottom: 10vw;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: var(--font-heading);
  padding: 8px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-gold);
  transform: rotate(-2deg);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 3px 3px 0 var(--primary), 6px 6px 0 rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* Floating Elements Animation */
.floating-element {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.f1 {
  right: 10%;
  top: 20%;
  animation-delay: 0s;
  width: 80px;
  height: 80px;
  fill: var(--accent);
  filter: drop-shadow(0 0 10px var(--accent));
}

.f2 {
  right: 30%;
  bottom: 20%;
  animation-delay: 2s;
  width: 60px;
  height: 60px;
  fill: var(--secondary);
  filter: drop-shadow(0 0 10px var(--secondary));
}

.f3 {
  left: 5%;
  top: 40%;
  animation-delay: 4s;
  width: 100px;
  height: 100px;
  fill: var(--primary);
  filter: drop-shadow(0 0 10px var(--primary));
  opacity: 0.6;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Asymmetrical Games Grid */
.games-section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 3rem;
  color: var(--accent);
  text-shadow: 2px 2px 0 var(--primary);
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  background: var(--secondary);
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  grid-auto-flow: dense;
}

/* Make some items larger for asymmetry */
.games-grid .game-card:nth-child(1),
.games-grid .game-card:nth-child(4) {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 768px) {

  .games-grid .game-card:nth-child(1),
  .games-grid .game-card:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: #000;
  border: 3px solid transparent;
}

.game-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent);
  box-shadow: var(--shadow-gold);
  z-index: 10;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.games-grid .game-card:nth-child(1) img,
.games-grid .game-card:nth-child(4) img {
  aspect-ratio: 16/9;
}

.games-grid .game-card:not(:nth-child(1)):not(:nth-child(4)) img {
  aspect-ratio: 1/1;
}

.game-card:hover img {
  transform: scale(1.1);
}

.game-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(15, 23, 42, 1), transparent);
  transition: bottom 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.game-card:hover .game-overlay {
  bottom: 0;
}

.game-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
}

/* Feature Blocks (SVG instead of emoji) */
.features-section {
  padding: 100px 0;
  position: relative;
  background: 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='%23d946ef' fill-opacity='0.05'%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");
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-box {
  padding: 40px;
  text-align: center;
  transition: transform 0.3s;
}

.feature-box:hover {
  transform: translateY(-10px);
}

.feature-icon-svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  fill: var(--accent);
  filter: drop-shadow(0 0 10px var(--accent));
}

.feature-box h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.feature-box p {
  color: var(--text-muted);
}

/* SEO Content Blocks */
.seo-block {
  padding: 80px 0;
  background: rgba(0, 0, 0, 0.2);
}

.seo-content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.seo-content-inner h2 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 30px;
}

.seo-content-inner h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 20px;
}

.seo-content-inner p {
  margin-bottom: 20px;
  font-size: 1.15rem;
  color: #e2e8f0;
}

.seo-content-inner ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.seo-content-inner li {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

/* FAQ Accordion */
.faq-section {
  padding: 80px 0;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--surface-color);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 20px 30px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover,
.faq-question.active {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.3);
}

.faq-icon {
  width: 24px;
  height: 24px;
  fill: var(--accent);
  transition: transform 0.3s;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 20px 30px;
  color: var(--text-muted);
}

/* Responsible Gaming */
.resp-section {
  padding: 80px 0;
  background: #000;
  border-top: 2px solid var(--accent);
}

.resp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.resp-visual {
  background: var(--surface-color);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--primary);
}

.resp-visual h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.eighteen-badge-svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  fill: var(--accent);
}

.resp-logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.resp-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.resp-logos img {
  max-height: 40px;
  width: auto;
  max-width: 100%;
  filter: invert(0.8);
  opacity: 0.7;
  transition: opacity 0.3s;
  object-fit: contain;
}

.resp-logos img:hover {
  opacity: 1;
}

.resp-text h2 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  margin-bottom: 20px;
}

.resp-list {
  list-style: none;
  margin-bottom: 30px;
}

.resp-list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.resp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23facc15'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
}

/* Footer */
.site-footer {
  background: #020617;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 25px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col a {
  color: #e2e8f0;
  font-size: 1.1rem;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 10px;
}

.disclaimer-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-bottom: 40px;
  border-left: 5px solid var(--accent);
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 700px;
  transition: bottom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-popup.show {
  bottom: 30px;
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px;
}

/* Policy Pages */
.policy-page {
  padding: 150px 0 80px;
}

.policy-content {
  background: var(--surface-color);
  padding: 60px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-content h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--accent);
  margin-bottom: 20px;
  text-align: center;
  word-wrap: break-word;
}

.policy-date {
  display: block;
  text-align: center;
  color: var(--secondary);
  margin-bottom: 50px;
  font-weight: bold;
}

.policy-content h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary);
  word-wrap: break-word;
}

.policy-content p {
  margin-bottom: 20px;
  font-size: 1.15rem;
}

/* Mobile Nav */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #0f172a;
  z-index: 999;
  padding: 100px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right 0.4s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  border-left: 2px solid var(--primary);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
}

/* Newspaper Style Block */
.newspaper-section {
  padding: 80px 0;
  position: relative;
  z-index: 5;
}

.newspaper-paper {
  background: #f4f1ea;
  color: #1a1a1a;
  padding: 60px;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  font-family: 'Georgia', 'Times New Roman', serif;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.newspaper-header {
  text-align: center;
  border-bottom: 4px double #1a1a1a;
  border-top: 4px double #1a1a1a;
  padding: 20px 0;
  margin-bottom: 40px;
}

.newspaper-header h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(1.8rem, 8vw, 3.5rem);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1a1a1a;
  line-height: 1.1;
  word-wrap: break-word;
}

.newspaper-date {
  font-style: italic;
  font-size: 1.1rem;
  display: block;
  margin-top: 10px;
}

.newspaper-content {
  column-count: 2;
  column-gap: 40px;
  column-rule: 1px solid #ccc;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.7;
}

.newspaper-content p {
  margin-bottom: 20px;
}

.newspaper-content p:first-of-type::first-letter {
  float: left;
  font-size: clamp(3rem, 10vw, 4rem);
  line-height: 0.8;
  margin-right: 10px;
  font-weight: bold;
  color: #1a1a1a;
}

.newspaper-image {
  width: 100%;
  max-width: 400px;
  margin: 0 0 20px 0;
  border: 1px solid #1a1a1a;
  padding: 5px;
  background: #fff;
  filter: sepia(0.3) contrast(1.2);
  display: block;
}

.newspaper-caption {
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  margin-bottom: 20px;
  display: block;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .hero-bg-wrapper {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
  }

  .resp-inner {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
    /* Globally reduce text sizes */
  }

  .container {
    width: 95%;
    /* Reduce horizontal gaps */
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .policy-content {
    padding: 20px;
  }

  .games-section {
    padding: 40px 0;
  }

  .features-section {
    padding: 40px 0;
  }

  .seo-block {
    padding: 40px 0;
  }

  .newspaper-content {
    column-count: 1;
  }

  .newspaper-paper {
    padding: 20px;
  }

  .resp-visual {
    padding: 20px;
  }

  .seo-content-inner {
    padding: 30px !important;
  }
}