@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;900&display=swap');

:root {
  --header-bg: #77686d;
  --pink: #ffe2ea;
  --mauve: #a27a86;
  --dark: #33131d;
  --shadow: #331c23;
  --white: #ffffff;
  --maxw: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.2;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 80px;
  position: relative;
}

.section {
  position: relative;
  overflow: hidden;
  padding-block: 60px;
}

.section--pink { background: var(--pink); }
.section--white { background: var(--white); }
.section--mauve { background: var(--mauve); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--dark);
  box-shadow: 2px 4px 0 var(--shadow);
  border-radius: 16px;
  padding: 16px 24px;
  color: var(--dark);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 5px 0 var(--shadow);
}

.card {
  background: var(--white);
  border: 2px solid var(--dark);
  box-shadow: 4px 4px 0 var(--shadow);
  border-radius: 24px;
  padding: 20px;
}

.card--mauve {
  background: var(--mauve);
  color: var(--white);
}

.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.deco--mobile { display: none; }

.deco-why-1 { left: -74px; top: 0; width: 174px; }
.deco-why-2 { right: -71px; top: 289px; width: 142px; }
.deco-types-1 { left: -98px; top: -35px; width: 196px; }
.deco-types-2 { right: -110px; top: 240px; width: 220px; }
.deco-footer-1 { left: -59px; top: 188px; width: 118px; }
.deco-footer-2 { right: -59px; top: -35px; width: 118px; }

.site-header {
  background: var(--header-bg);
  overflow: hidden;
}

.site-header .container {
  padding-block: 10px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.logo__img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo__name {
  font-size: 34px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

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

.nav__link {
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
}

.nav__link:hover { opacity: 0.8; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  padding: 5px 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 60px;
  background: url(/wp-content/themes/kylenzorikdroven/assets/images/hero-bg.png) center center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__card {
  width: 800px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 24px;
  border: 2px solid var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(13.75px);
  -webkit-backdrop-filter: blur(13.75px);
  box-shadow: 4px 4px 0 0 var(--white);
}

.hero__title {
  font-size: 80px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
}

.hero .btn { z-index: 1; }

.section-title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--dark);
  position: relative;
  z-index: 1;
}

.section-title--center { text-align: center; }

.why .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.why-card--full { width: 100%; }
.why-card--half { flex: 1 1 calc(50% - 10px); }

.why-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 60px;
  object-fit: cover;
  flex-shrink: 0;
}

.why-card__title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.why-card__text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.about .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-row__img {
  flex: 0 0 46.7%;
  width: 46.7%;
  height: 359px;
  border-radius: 24px;
  object-fit: cover;
}

.about-row__card {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-row__title {
  font-size: 50px;
  font-weight: 900;
  line-height: 1.1;
}

.about-row__text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.types .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 14.5px;
  row-gap: 40px;
  position: relative;
  z-index: 1;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.type-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.type-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 60px;
  object-fit: cover;
  flex-shrink: 0;
}

.type-card__title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.type-card__text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.faq .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item__q {
  flex: 1 1 0;
  min-width: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.faq-item__icon {
  width: 32px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-item__icon img {
  width: 28px;
  height: 28px;
  transform: rotate(-90deg);
}

.faq-item__a {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}

.catalog .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.catalog-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  text-align: center;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.game-card {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  box-shadow: 4px 4px 0 var(--dark);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--dark);
}

.game-hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.game-hero__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.game-hero__text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
}

.game-hero__img {
  flex: 0 0 338px;
  width: 338px;
  height: 338px;
  border-radius: 24px;
  box-shadow: 4px 4px 0 var(--dark);
  object-fit: cover;
}

.game-features .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.deco-game-badge { left: -74px; top: 182px; width: 129px; }
.deco-game-sparkle { right: -51px; top: 0; width: 103px; }
.deco-game-badge-m { left: -74px; top: 202px; width: 129px; }

.policy .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.policy-body {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
}

.policy-body p {
  margin-bottom: 10px;
}

.policy-body p:last-child {
  margin-bottom: 0;
}

.policy-body ul {
  list-style: disc;
  padding-left: 27px;
  margin-bottom: 10px;
}

.policy-body a {
  text-decoration: underline;
  color: inherit;
}

.deco-policy-1 { left: 131px; top: -112px; width: 103px; }
.deco-policy-2 { right: -51px; top: -19px; width: 103px; }

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--mauve);
  padding-block: 60px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  z-index: 1;
}

.footer-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  border: 2px solid var(--dark);
  box-shadow: 2px 4px 0 var(--shadow);
  border-radius: 16px;
  padding: 24px 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 20px;
  color: var(--dark);
  text-align: center;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.contact-btn:hover { transform: translateY(-2px); }

.contact-btn--fill { flex: 1 1 0; min-width: 0; }

.footer-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links a {
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
}

.footer-links a:hover { opacity: 0.8; }

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 21px;
}

.social-btn {
  width: 71px;
  height: 71px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid var(--dark);
  box-shadow: 3.5px 3.5px 0 var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.social-btn:hover { transform: translateY(-2px); }

.social-btn img { width: 25px; height: 22.6px; }
.social-btn--fb img { width: 36px; height: 36px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-logo .logo__name { color: var(--dark); }

.footer-copy {
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  text-align: right;
  white-space: nowrap;
}

/* ===== Cookie banner ===== */
.cookie {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 4, 8, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: cookie-fade 0.3s ease both;
}

.cookie[hidden] { display: none; }

.cookie__card {
  width: 600px;
  max-width: 100%;
  background: var(--white);
  border-radius: 40px;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  box-shadow: 0 20px 60px rgba(13, 4, 8, 0.45);
  animation: cookie-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.cookie__title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--dark);
}

.cookie__text {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--dark);
}

.cookie__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie__btn {
  min-width: 160px;
  font-size: 22px;
}

@keyframes cookie-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cookie-pop {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Entrance + ambient animations ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__card { animation: fade-up 0.9s ease both; }
.hero__title { animation: fade-up 1s ease 0.1s both; }
.hero__text { animation: fade-up 1s ease 0.2s both; }
.hero .btn { animation: fade-up 1s ease 0.3s both; }

.deco { animation: floaty 6s ease-in-out infinite; }
.deco-why-2, .deco-types-2, .deco-footer-2, .deco-game-sparkle { animation-duration: 7.5s; animation-delay: -2s; }
.deco-types-1, .deco-policy-1 { animation-duration: 5s; animation-delay: -1s; }

/* ===== Hover effects ===== */
.why-card,
.type-card,
.faq-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover,
.type-card:hover,
.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 6px 8px 0 var(--shadow);
}

.why-card__icon,
.type-card__icon {
  transition: transform 0.3s ease;
}

.why-card:hover .why-card__icon,
.type-card:hover .type-card__icon {
  transform: scale(1.1) rotate(-5deg);
}

.game-hero__img {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.game-hero__img:hover {
  transform: translate(-2px, -2px) scale(1.02);
  box-shadow: 8px 8px 0 var(--dark);
}

.game-card img {
  transition: transform 0.4s ease;
}

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

.logo {
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.nav__link {
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.contact-btn:hover { transform: translateY(-3px); box-shadow: 2px 7px 0 var(--shadow); }
.social-btn { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.social-btn:hover { transform: translateY(-3px) rotate(-4deg); box-shadow: 3.5px 6px 0 var(--shadow); }

.social-btn img { transition: transform 0.2s ease; }
.social-btn:hover img { transform: scale(1.1); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__card, .hero__title, .hero__text, .hero .btn,
  .deco, .cookie, .cookie__card { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .container { padding: 0 20px; }

  /* Let the dropdown menu escape the header instead of being clipped */
  .site-header { overflow: visible; position: relative; z-index: 30; }

  .deco--desktop { display: none; }
  .deco--mobile { display: block; }

  .deco-why-m1 { left: -28px; top: 20px; width: 83px; }
  .deco-why-m2 { right: -33px; top: 339px; width: 83px; }
  .deco-types-m1 { left: -26px; top: -15px; width: 53px; }
  .deco-types-m2 { right: -30px; top: 55px; width: 65px; }
  .deco-footer-m1 { left: -36px; top: 355px; width: 81px; }
  .deco-footer-m2 { right: -59px; top: 232px; width: 118px; }

  .logo__img { width: 40px; height: 40px; }
  .logo__name { font-size: 22px; }

  .nav {
    position: absolute;
    top: calc(100% + 6px);
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    background: var(--header-bg);
    border: 2px solid var(--dark);
    border-radius: 16px;
    padding: 20px;
    z-index: 20;
    display: none;
  }

  .nav.is-open { display: flex; }
  .nav .btn { width: 100%; }
  .nav-toggle { display: flex; }

  .hero { padding-block: 40px; }
  .hero__card { width: 100%; }
  .hero__title { font-size: 42px; }

  .section { padding-block: 40px; }
  .why .container,
  .about .container,
  .types .container,
  .faq .container { gap: 30px; }

  .section-title { font-size: 32px; }
  .why .section-title { text-align: center; }
  .types .section-title,
  .faq .section-title { text-align: left; }

  .why-grid { gap: 30px; }
  .why-card--full,
  .why-card--half { flex: 1 1 100%; width: 100%; }
  .why-card--huge { order: 1; }
  .why-card--ent { order: 2; }
  .why-card--instant { order: 3; }
  .why-card--easy { order: 4; }

  .about-row,
  .about-row--rev { flex-direction: column; gap: 30px; }
  .about-row__img { flex: none; width: 100%; height: 300px; order: -1; }
  .about-row__title { font-size: 26px; }

  .types-grid { grid-template-columns: 1fr; row-gap: 30px; }

  .catalog .container { gap: 30px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .game-card { border-radius: 8px; box-shadow: 1.3px 1.3px 0 var(--dark); }
  .game-card:hover { transform: none; box-shadow: 1.3px 1.3px 0 var(--dark); }
  .game-card:nth-child(4) { order: 5; }
  .game-card:nth-child(5) { order: 6; }
  .game-card:nth-child(6) { order: 4; }

  .game-hero .container { flex-direction: column; gap: 30px; }
  .game-hero__content { align-items: center; text-align: center; gap: 20px; }
  .game-hero__content .section-title { text-align: center; }
  .game-hero__text { text-align: center; }
  .game-hero__img { order: -1; flex: none; width: 338px; max-width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .game-features .container { gap: 30px; }
  .features-grid { grid-template-columns: 1fr; gap: 30px; }

  .policy .container { gap: 30px; }

  .site-footer { padding-block: 40px; }

  .footer-contacts { flex-direction: column; align-items: stretch; gap: 10px; }
  .contact-btn { width: 100%; flex: none; }

  .footer-mid { flex-direction: column; gap: 20px; }
  .footer-links { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .footer-social { justify-content: center; }

  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 900px) {
  .cookie__card { border-radius: 28px; padding: 28px; gap: 18px; }
  .cookie__title { font-size: 36px; }
  .cookie__text { font-size: 18px; }
  .cookie__actions { gap: 14px; }
  .cookie__btn { min-width: 0; flex: 1 1 0; font-size: 18px; }
}

@media (max-width: 480px) {
  .logo__name { font-size: 20px; }
  .hero__title { font-size: 34px; }
  .contact-btn { font-size: 16px; }
  .cookie__title { font-size: 30px; }
  .cookie__actions { width: 100%; }
}
