* {
  box-sizing: inherit;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Barlow', sans-serif;
  background-color: #fdfaef; /* Soft Lilac Theme BG */
  color: #333;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

img,
canvas,
iframe,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-sizing: border-box;
}

.c9kv6k-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styling */
.c9kv6k-header-c-l-r {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(107, 70, 193, 0.1); /* Soft Lilac Accent */
}

.c9kv6k-header-c-l-r .c9kv6k-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c9kv6k-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #6b46c1; /* Soft Lilac Primary */
  font-size: 1.2em;
}

.c9kv6k-desktop-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
}

.c9kv6k-desktop-nav a {
  text-decoration: none;
  color: #6b46c1; /* Soft Lilac Primary */
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.c9kv6k-desktop-nav a:hover,
.c9kv6k-desktop-nav a:focus {
  background-color: #6b46c1; /* Soft Lilac Primary */
  color: #fdfaef; /* Soft Lilac Theme BG */
  outline: none;
}

.c9kv6k-header-right {
  display: flex;
  align-items: center;
}

.c9kv6k-age-flag {
  display: flex;
  align-items: center;
  background-color: rgba(107, 70, 193, 0.1);
  padding: 5px 10px;
  border-radius: 20px;
  color: #6b46c1;
  font-weight: 700;
  font-size: 0.9em;
}

.c9kv6k-hamburger {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 2em;
  color: #6b46c1;
  cursor: pointer;
  margin-left: 15px;
}

/* Mobile Menu */
.c9kv6k-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(107, 70, 193, 0.95); /* Soft Lilac Primary with opacity */
  backdrop-filter: blur(15px);
  z-index: 1500;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.c9kv6k-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.c9kv6k-mobile-menu li {
  margin-bottom: 25px;
}

.c9kv6k-mobile-menu a {
  text-decoration: none;
  color: #fdfaef; /* Soft Lilac Theme BG */
  font-size: 1.8em;
  font-weight: 700;
  transition: color 0.3s ease;
}

.c9kv6k-mobile-menu a:hover,
.c9kv6k-mobile-menu a:focus {
  color: #d53f8c; /* Soft Lilac Accent */
  outline: none;
}

.c9kv6k-close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  font-size: 2.5em;
  color: #fdfaef;
  cursor: pointer;
  transition: color 0.3s ease;
}

.c9kv6k-close-menu:hover,
.c9kv6k-close-menu:focus {
  color: #d53f8c; /* Soft Lilac Accent */
  outline: none;
}

/* Footer Styling */
.c9kv6k-footer {
  padding: 50px 20px;
  background: linear-gradient(to top, rgba(107, 70, 193, 0.1), transparent); /* Soft Lilac Accent Gradient */
  color: #333;
  margin-top: auto; /* Pushes footer to the bottom */
}

.c9kv6k-footer .c9kv6k-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.c9kv6k-footer h3 {
  margin-bottom: 20px;
  opacity: 0.8;
  font-size: 1.8em;
  color: #6b46c1;
}

.c9kv6k-footer ul {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid rgba(107, 70, 193, 0.2);
  padding-bottom: 20px;
}

.c9kv6k-footer li a {
  text-decoration: none;
  color: #6b46c1; /* Soft Lilac Primary */
  font-weight: 700;
  opacity: 0.9;
  transition: color 0.3s ease;
}

.c9kv6k-footer li a:hover,
.c9kv6k-footer li a:focus {
  color: #d53f8c; /* Soft Lilac Accent */
  outline: none;
}

.c9kv6k-footer-contact {
  margin-top: 15px;
  font-size: 0.9em;
  text-align: left;
  opacity: 0.9;
  color: #444;
}

.c9kv6k-footer-contact h4 {
  margin-bottom: 5px;
  text-transform: uppercase;
  font-size: 0.85em;
  opacity: 0.8;
  color: #6b46c1;
}

.c9kv6k-footer-contact p {
  margin-bottom: 8px;
  line-height: 1.6;
}

.c9kv6k-footer-contact strong {
  color: #333;
}

.c9kv6k-footer div:nth-last-child(2) {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  margin-top: 15px;
  width: 100%;
}

.c9kv6k-footer div:nth-last-child(2) > div {
  padding: 20px 0;
  margin-bottom: 15px;
  text-align: center;
  border-bottom: 2px dashed rgba(107, 70, 193, 0.3);
  border-top: 2px dashed rgba(107, 70, 193, 0.3);
}

.c9kv6k-footer h4 {
  margin: 0 0 8px 0;
  color: #d53f8c; /* Soft Lilac Accent */
  font-size: 1.2em;
}

.c9kv6k-footer p:nth-of-type(1) {
  margin: 0;
  opacity: 0.9;
  font-size: 1em;
  font-weight: 700;
  color: #333;
}

.c9kv6k-footer p:nth-of-type(2) {
  margin-bottom: 10px;
  font-size: 0.9em;
  text-align: justify;
  color: #444;
  line-height: 1.8;
}

.c9kv6k-footer p:nth-of-type(3) {
  font-size: 0.85em;
  opacity: 0.8;
  text-align: justify;
  color: #555;
  line-height: 1.7;
}

.c9kv6k-footer a {
  text-decoration: underline;
  color: #6b46c1; /* Soft Lilac Primary */
  transition: color 0.3s ease;
}

.c9kv6k-footer a:hover,
.c9kv6k-footer a:focus {
  color: #d53f8c; /* Soft Lilac Accent */
  outline: none;
}

.c9kv6k-copyright {
  margin-top: 15px;
  text-align: center;
  font-size: 0.85em;
  opacity: 0.8;
  color: #444;
}

/* Hero Section */
.c9kv6k-hero {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.c9kv6k-hero-text {
  flex: 1;
  max-width: 550px;
  min-width: 300px;
  z-index: 10;
}

.c9kv6k-hero-text h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #6b46c1; /* Soft Lilac Primary */
  line-height: 1.2;
  text-align: left;
}

.c9kv6k-hero-text p {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.7;
  opacity: 0.9;
  text-align: left;
}

.c9kv6k-hero-text .c9kv6k-btn {
  display: inline-block;
  padding: 15px 35px;
  background-color: #d53f8c; /* Soft Lilac Accent */
  color: #fdfaef; /* Soft Lilac Theme BG */
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(213, 63, 140, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.c9kv6k-hero-text .c9kv6k-btn:hover,
.c9kv6k-hero-text .c9kv6k-btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(213, 63, 140, 0.5);
  outline: none;
}

.c9kv6k-hero-image {
  flex: 1;
  max-width: 550px;
  min-width: 300px;
  position: relative;
  z-index: 5;
}

.c9kv6k-hero-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: -15px 15px 0px rgba(0, 0, 0, 0.05);
}

/* Content Section */
.c9kv6k-content-section {
  padding: 80px 20px;
  line-height: 1.8;
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  color: #333;
}

.c9kv6k-content-section h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #6b46c1; /* Soft Lilac Primary */
  text-align: center;
}

.c9kv6k-content-section p {
  margin-bottom: 25px;
  opacity: 0.9;
}

.c9kv6k-content-section strong {
  color: #6b46c1; /* Soft Lilac Primary */
}

/* Game Grid */
.c9kv6k-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.c9kv6k-game-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(107, 70, 193, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.c9kv6k-game-card:hover,
.c9kv6k-game-card:focus {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(107, 70, 193, 0.2);
  outline: none;
}

.c9kv6k-game-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 15px;
}

.c9kv6k-game-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.c9kv6k-game-card h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #6b46c1; /* Soft Lilac Primary */
  text-align: center;
}

.c9kv6k-game-card p {
  font-size: 1em;
  margin-bottom: 20px;
  line-height: 1.6;
  opacity: 0.85;
}

.c9kv6k-game-card .c9kv6k-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  background-color: #d53f8c; /* Soft Lilac Accent */
  color: #fdfaef; /* Soft Lilac Theme BG */
  font-size: 1em;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.c9kv6k-game-card .c9kv6k-btn:hover,
.c9kv6k-game-card .c9kv6k-btn:focus {
  background-color: #b02f70; /* Darker Accent */
  transform: translateY(-2px);
  outline: none;
}

/* Buttons */
.c9kv6k-btn {
  background-color: #6b46c1; /* Soft Lilac Primary */
  color: #fdfaef; /* Soft Lilac Theme BG */
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c9kv6k-btn:hover,
.c9kv6k-btn:focus {
  background-color: #503291; /* Darker Primary */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(107, 70, 193, 0.3);
  outline: none;
}

/* Game Canvas Specific Styling */
#game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 50px auto;
  padding: 30px;
  background-color: rgba(107, 70, 193, 0.05);
  border-radius: 20px;
  box-shadow: inset 0 0 20px rgba(107, 70, 193, 0.1);
  max-width: 700px;
}

#game-canvas {
  display: block;
  background-color: #ffffff;
  border: 4px solid #6b46c1;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(107, 70, 193, 0.2);
  aspect-ratio: 16/9;
  max-width: 100%;
}

#balance-display {
  font-size: 2em;
  font-weight: 700;
  color: #d53f8c; /* Soft Lilac Accent */
  text-align: center;
  margin-top: 10px;
}

#spin-button {
  padding: 15px 40px;
  font-size: 1.4em;
  border-radius: 12px;
  background-color: #d53f8c; /* Soft Lilac Accent */
  box-shadow: 0 6px 18px rgba(213, 63, 140, 0.4);
}

#spin-button:hover,
#spin-button:focus {
  background-color: #b02f70;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(213, 63, 140, 0.5);
}

.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 16px;
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 1em;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: visibility 0s, opacity 0.5s linear;
}

.toast.show {
  visibility: visible;
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .c9kv6k-desktop-nav ul {
    display: none; /* Hide desktop nav on mobile */
  }

  .c9kv6k-hamburger {
    display: block; /* Show hamburger on mobile */
  }

  .c9kv6k-header-c-l-r .c9kv6k-container {
    padding: 15px 20px;
  }

  .c9kv6k-logo {
    font-size: 1em;
  }

  .c9kv6k-hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 50px 20px;
  }

  .c9kv6k-hero-text {
    max-width: 100%;
  }

  .c9kv6k-hero-text h1 {
    font-size: 2.8em;
    text-align: center;
  }

  .c9kv6k-hero-text p {
    font-size: 1.1em;
    text-align: center;
  }

  .c9kv6k-hero-image {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .c9kv6k-hero-image img {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
  }

  .c9kv6k-game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .c9kv6k-game-card {
    border-radius: 12px;
  }

  .c9kv6k-game-card img {
    height: 180px;
  }

  .c9kv6k-game-card h3 {
    font-size: 1.4em;
  }

  .c9kv6k-content-section {
    padding: 50px 15px;
    font-size: 1rem;
  }

  .c9kv6k-content-section h2 {
    font-size: 2em;
  }

  .c9kv6k-footer {
    padding: 30px 15px;
  }

  .c9kv6k-footer ul {
    flex-direction: column;
    gap: 15px;
  }

  #game-container {
    padding: 20px 15px;
    margin: 30px auto;
  }

  #spin-button {
    padding: 12px 30px;
    font-size: 1.2em;
  }

  .toast {
    width: 90%;
    left: 5%;
    bottom: 15px;
    transform: translateX(0);
  }
}

@media (min-width: 1200px) {
  .c9kv6k-container {
    padding: 0 0; /* No padding needed for full width containers */
  }
}

/* Utility Classes for potential future use */
.c9kv6k-text-center {
  text-align: center;
}

.c9kv6k-margin-bottom-large {
  margin-bottom: 40px;
}

.c9kv6k-padding-section {
  padding: 80px 0;
}