:root {
  --primary-color: #0071f8;
  --primary-deep: #005bd1;
  --primary-soft: #e8f3ff;
  --accent-color: #ee626b;
  --sky-color: #4facfe;
  --page-bg: #f1f7ff;
  --section-bg: #f8fbff;
  --card-bg: rgba(255, 255, 255, 0.86);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-soft: rgba(0, 113, 248, 0.14);
  --shadow-soft: 0 18px 50px rgba(15, 78, 153, 0.14);
  --shadow-card: 0 16px 38px rgba(15, 78, 153, 0.1);
  --gradient-primary: linear-gradient(135deg, #0071f8 0%, #4facfe 100%);
  --gradient-title: linear-gradient(135deg, #005bd1 0%, #0071f8 48%, #4facfe 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-family: "Poppins", sans-serif;
  color: var(--text-main);
  background: var(--page-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(248, 251, 255, 0.92);
  border-bottom: 1px solid rgba(0, 113, 248, 0.08);
  box-shadow: 0 2px 18px rgba(15, 78, 153, 0.06);
  backdrop-filter: blur(14px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(15, 78, 153, 0.12);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.brand-mark,
.footer-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  white-space: nowrap;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.96rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--primary-color);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-item-dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  width: min(330px, 80vw);
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 11px 14px;
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 0.92rem;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dropdown-menu a:hover {
  color: var(--primary-color);
  background: var(--primary-soft);
  transform: translateX(4px);
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 78px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.floating-shapes {
  position: absolute;
  inset: 0;
}

.shape {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.16;
  filter: blur(1px);
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  top: 11%;
  left: 8%;
  width: 290px;
  height: 290px;
  background: var(--gradient-primary);
}

.shape-2 {
  right: 9%;
  bottom: 18%;
  width: 190px;
  height: 190px;
  background: linear-gradient(135deg, #ee626b 0%, #ffc6ce 100%);
  animation-delay: 4s;
}

.shape-3 {
  bottom: 5%;
  left: 24%;
  width: 230px;
  height: 230px;
  background: linear-gradient(135deg, #8bd4ff 0%, #ffffff 100%);
  animation-delay: 8s;
}

.shape-4 {
  top: 22%;
  right: 27%;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #0071f8 0%, #dbeafe 100%);
  animation-delay: 12s;
}

.games-carousel {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 78px);
  overflow: hidden;
}

.carousel-container {
  display: flex;
  min-height: calc(100vh - 78px);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 76px 88px;
}

.slide-wrapper {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.slide-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-main-image {
  width: min(100%, 820px);
  aspect-ratio: 4 / 3;
  max-height: 66vh;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.slide-content {
  width: 100%;
  animation: fadeInUp 0.75s ease both;
}

.game-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 16px;
  padding: 6px 14px;
  color: var(--primary-color);
  background: rgba(0, 113, 248, 0.1);
  border: 1px solid rgba(0, 113, 248, 0.12);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-hero-title {
  max-width: 650px;
  margin-bottom: 18px;
  padding-bottom: 0.08em;
  color: var(--primary-color);
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2.1rem, 5vw, 4.15rem);
  font-weight: 700;
  line-height: 1.14;
  -webkit-text-fill-color: transparent;
}

.game-hero-subtitle {
  max-width: 570px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--gradient-primary);
  box-shadow: 0 14px 30px rgba(0, 113, 248, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 113, 248, 0.36);
}

.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 28px;
  pointer-events: none;
  transform: translateY(-50%);
}

.carousel-btn {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 113, 248, 0.18);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  font-size: 2.15rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.carousel-btn:hover {
  color: #ffffff;
  background: var(--primary-color);
  transform: scale(1.08);
}

.carousel-indicators {
  position: absolute;
  bottom: 34px;
  left: 50%;
  z-index: 8;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.indicator {
  width: 12px;
  height: 12px;
  background: rgba(0, 113, 248, 0.22);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.indicator.active {
  width: 34px;
  background: var(--primary-color);
}

.about-section {
  padding: 96px 0;
}

.legal-page {
  padding-top: 78px;
  background: var(--page-bg);
}

.legal-hero {
  position: relative;
  padding: 94px 0 62px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 113, 248, 0.12), rgba(79, 172, 254, 0.08));
  border-bottom: 1px solid var(--border-soft);
}

.legal-hero::before,
.legal-hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.legal-hero::before {
  top: -120px;
  right: 8%;
  width: 280px;
  height: 280px;
  background: rgba(0, 113, 248, 0.12);
}

.legal-hero::after {
  bottom: -150px;
  left: 9%;
  width: 340px;
  height: 340px;
  background: rgba(238, 98, 107, 0.1);
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.legal-eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 14px;
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-title {
  margin-bottom: 12px;
  color: var(--primary-color);
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2.4rem, 6vw, 4.35rem);
  font-weight: 700;
  line-height: 1.06;
  -webkit-text-fill-color: transparent;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
}

.legal-body {
  padding: 72px 0 96px;
}

.legal-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.legal-content {
  color: var(--text-main);
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  font-family: "Poppins", sans-serif !important;
  line-height: 1.22 !important;
  page-break-after: auto !important;
  page-break-inside: auto !important;
}

.legal-content h1 {
  margin: 34px 0 14px !important;
  color: var(--primary-deep) !important;
  font-size: clamp(1.55rem, 3vw, 2.1rem) !important;
  font-weight: 700 !important;
}

.legal-content h2 {
  margin: 24px 0 10px !important;
  color: var(--text-main) !important;
  font-size: clamp(1.16rem, 2.2vw, 1.42rem) !important;
  font-weight: 700 !important;
}

.legal-content h3 {
  margin: 18px 0 8px !important;
  color: var(--text-main) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted) !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 0.98rem !important;
  line-height: 1.86 !important;
}

.legal-content p {
  margin: 0 0 14px !important;
}

.legal-content span {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

.legal-content strong,
.legal-content b,
.legal-content span[style*="font-weight:bold"],
.legal-content span[style*="font-weight: bold"] {
  color: var(--text-main) !important;
  font-weight: 700 !important;
}

.legal-content ul,
.legal-content ol {
  margin: 12px 0 18px !important;
  padding-left: 24px !important;
  list-style-position: outside;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  margin: 8px 0 !important;
  padding-left: 4px !important;
  text-indent: 0 !important;
}

.legal-content a {
  color: var(--primary-deep);
  font-weight: 700;
}

.legal-content > :first-child {
  margin-top: 0 !important;
}

.section-title {
  margin-bottom: 14px;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  -webkit-text-fill-color: transparent;
}

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

.about-section {
  background: var(--page-bg);
}

.about-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.about-description {
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  text-align: justify;
}

.about-description strong {
  color: var(--text-main);
  font-weight: 700;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-info-card {
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.about-info-title {
  margin-bottom: 16px;
  color: var(--text-main);
  font-size: 1.25rem;
  text-align: center;
}

.about-contact-info {
  display: flex;
  justify-content: center;
}

.contact-email-link {
  color: var(--primary-deep);
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 700;
  word-break: break-word;
}

.address-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.8;
  text-align: center;
}

.footer {
  padding: 60px 0 22px;
  background: #eaf4ff;
  border-top: 1px solid var(--border-soft);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 42px;
  margin-bottom: 38px;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-description,
.footer-links a,
.footer-bottom {
  color: var(--text-muted);
}

.footer-title {
  margin-bottom: 16px;
  color: var(--text-main);
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(0, 113, 248, 0.12);
  font-size: 0.92rem;
  text-align: center;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(26px, -24px) rotate(120deg);
  }

  66% {
    transform: translate(-20px, 22px) rotate(240deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@media (max-width: 1024px) {
  .slide-wrapper {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  .slide-content,
  .game-hero-subtitle,
  .game-hero-title {
    margin-right: auto;
    margin-left: auto;
  }

  .slide-main-image {
    max-height: 50vh;
  }

}

@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .nav-wrapper {
    min-height: 70px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hamburger {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 92px);
    padding: 14px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu > li {
    width: 100%;
  }

  .nav-link,
  .dropdown-menu a {
    width: 100%;
    padding: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-item-dropdown {
    position: static;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 4px;
    padding: 4px;
    background: var(--primary-soft);
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .hero {
    padding-top: 70px;
  }

  .games-carousel,
  .carousel-container,
  .carousel-slide {
    min-height: calc(100vh - 70px);
  }

  .carousel-slide {
    padding: 30px 18px 92px;
  }

  .slide-main-image {
    border-radius: 16px;
  }

  .carousel-controls {
    top: auto;
    bottom: 28px;
    padding: 0 18px;
    transform: none;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
  }

  .carousel-indicators {
    bottom: 42px;
  }

  .about-section {
    padding: 72px 0;
  }

  .legal-page {
    padding-top: 70px;
  }

  .legal-hero {
    padding: 68px 0 46px;
  }

  .legal-body {
    padding: 44px 0 68px;
  }

  .legal-card {
    border-radius: 14px;
  }

  .about-content,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .about-description {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand-text {
    max-width: 210px;
    white-space: normal;
    line-height: 1.15;
  }

  .game-hero-title {
    font-size: 2rem;
  }

  .game-hero-subtitle {
    font-size: 0.96rem;
  }

  .btn {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
  }

  .legal-hero {
    padding: 52px 0 38px;
  }

  .legal-card {
    padding: 22px 18px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 0.94rem !important;
    line-height: 1.76 !important;
  }

}
