@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

:root {
  --bg: #1a1921;
  --pink: #fd3b81;
  --magenta: #e12bea;
  --orange: #fe5117;
  --purple: #7b2ff7;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --card: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.1);
  /* Content stays in a centered 1080px column while section backgrounds run full-bleed */
  --content: 1080px;
  --edge: max(60px, calc(50% - 540px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  list-style: none;
}

p {
  line-height: normal;
}

.shell {
  width: 100%;
  background: var(--bg);
  overflow-x: clip;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 60px;
  background: var(--pink);
  color: var(--white);
  border-radius: 30px;
  font-size: 16px;
  line-height: 1.2;
  text-transform: capitalize;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.section-title {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}

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

.glow {
  position: absolute;
  width: 424px;
  height: 424px;
  pointer-events: none;
  z-index: 0;
}

.glow img {
  position: absolute;
  inset: -37.57%;
  width: 175.14%;
  height: 175.14%;
}

.hero__glow--1 {
  left: calc(50% - 776px);
  top: 361px;
}

.hero__glow--2 {
  left: calc(50% + 388px);
  top: -137px;
}

.genres__glow--1 {
  left: calc(50% - 563px);
  top: 185px;
}

.genres__glow--2 {
  left: calc(50% + 306px);
  top: 326px;
}

.prose p {
  font-size: 16px;
  line-height: normal;
  color: var(--white);
}

.prose p + p {
  margin-top: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background: var(--card);
  border-bottom: 2.632px solid var(--magenta);
  border-radius: 26.316px;
  overflow: hidden;
}

.card__title {
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
  color: var(--magenta);
}

.card__text {
  font-size: 16px;
  line-height: normal;
  color: var(--white);
}

.header {
  position: relative;
  z-index: 50;
  padding: 14px var(--edge);
  background: var(--bg);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 30px;
  background: var(--glass);
  border-radius: 60px;
  backdrop-filter: blur(4.15px);
  -webkit-backdrop-filter: blur(4.15px);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.nav__logo-text {
  font-size: 24px;
  line-height: 0.9;
  letter-spacing: 1.92px;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.nav__menu {
  display: contents;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 72px;
}

.nav__links a {
  position: relative;
  font-size: 16px;
  line-height: 1.2;
  text-transform: capitalize;
  color: var(--white);
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: width 0.25s ease;
}

.nav__links a:hover {
  color: var(--pink);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  padding: 12px 40px;
  flex-shrink: 0;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 16px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 80px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-template-areas:
    "title media"
    "text media"
    "cta media";
  column-gap: 40px;
  row-gap: 20px;
  align-items: start;
  padding: 0 var(--edge);
}

.hero__title {
  grid-area: title;
  font-size: clamp(60px, 10vw, 120px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}

.hero__media {
  grid-area: media;
  align-self: center;
  width: 420px;
  height: 527px;
  border-radius: 17.544px;
  overflow: hidden;
}

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

.hero__text {
  grid-area: text;
  font-size: 16px;
  line-height: normal;
  color: var(--white);
}

.hero__cta {
  grid-area: cta;
  justify-self: start;
}

.stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px var(--edge);
  overflow: hidden;
  background: linear-gradient(90deg, #fe5214 0%, #fd3b81 73.077%, #4620ba 100%);
}

.stats__media {
  flex: 1 0 0;
  min-width: 0;
  height: 220px;
}

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

.stats__grid {
  display: contents;
}

.stats__item {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  color: var(--white);
  white-space: nowrap;
}

.stats__num {
  font-size: 40px;
  line-height: normal;
}

.stats__label {
  font-size: 16px;
  line-height: normal;
}

.about {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 40px;
  padding: 80px var(--edge);
  overflow: hidden;
}

.about__watermark {
  position: absolute;
  left: calc(50% - 690px);
  top: 50%;
  transform: translateY(-50%);
  width: 478px;
  height: auto;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.about__media {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  align-self: stretch;
  width: 420px;
  border-radius: 17.544px;
  overflow: hidden;
}

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

.about__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 0 0;
  min-width: 0;
}

.genres {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 80px var(--edge);
  overflow: hidden;
}

.genres__title,
.genres__grid {
  position: relative;
  z-index: 1;
}

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

.catalog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 80px var(--edge);
  overflow: hidden;
}

.catalog__title,
.catalog__prose,
.catalog__grid {
  position: relative;
  z-index: 1;
}

.catalog__glow--1 {
  left: calc(50% - 563px);
  top: 185px;
}

.catalog__glow--2 {
  left: calc(50% + 306px);
  top: 326px;
}

.catalog__prose {
  width: 100%;
  text-align: center;
}

.catalog__prose p {
  font-size: 16px;
  line-height: normal;
  color: var(--white);
}

.catalog__prose p + p {
  margin-top: 16px;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 207.018px);
  gap: 17.544px;
  justify-content: center;
}

.game-card {
  display: block;
  width: 207.018px;
  height: 207.018px;
  border-radius: 17.544px;
  overflow: hidden;
  background: var(--card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(253, 59, 129, 0.25);
}

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

.btn--orange {
  background: var(--orange);
}

.game-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 80px;
  overflow: hidden;
}

.game-hero__glow--1 {
  left: calc(50% - 776px);
  top: 361px;
}

.game-hero__glow--2 {
  left: calc(50% + 388px);
  top: -137px;
}

.game-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 0 var(--edge);
}

.game-hero__cover {
  width: 207.018px;
  height: 207.018px;
  border-radius: 17.544px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.game-hero__title {
  width: 100%;
  font-size: 60px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
}

.game-hero__text {
  width: 100%;
  font-size: 16px;
  line-height: normal;
  text-align: center;
  color: var(--white);
}

.game-hero__cta {
  padding: 20px 60px;
}

.game-divider {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 17.544px;
  background: linear-gradient(90deg, #fe5214 0%, #fd3b81 73.077%, #4620ba 100%);
}

.game-detail {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 80px var(--edge);
}

.game-detail__cover {
  width: 240px;
  height: 240px;
  border-radius: 17.544px;
  overflow: hidden;
  flex-shrink: 0;
}

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

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

.game-detail__title {
  width: 100%;
  font-size: 60px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}

.game-detail__cta {
  padding: 20px 60px;
}

.policy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 80px var(--edge);
}

.policy__title {
  width: 100%;
  font-size: 60px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
}

.policy__body {
  width: 100%;
  color: var(--white);
}

.policy__body p {
  font-size: 16px;
  line-height: normal;
  margin-bottom: 10px;
}

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

.policy__body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 10px;
}

.policy__body li {
  font-size: 16px;
  line-height: normal;
}

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

.banner {
  width: 100%;
}

.banner img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.why {
  display: flex;
  align-items: stretch;
  gap: 40px;
  padding: 80px var(--edge);
}

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

.why__media {
  flex-shrink: 0;
  align-self: stretch;
  width: 420px;
  border-radius: 17.544px;
  overflow: hidden;
}

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

.faq {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 80px var(--edge);
}

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

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 60px var(--edge);
  background: var(--bg);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 500px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 0 0;
  min-width: 0;
  text-align: center;
}

.footer__links a {
  font-size: 16px;
  line-height: 1.2;
  text-transform: capitalize;
  color: var(--white);
}

.footer__links a:hover {
  color: var(--pink);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 22.875px;
  flex-shrink: 0;
}

.footer__social a {
  display: block;
  width: 61px;
  height: 61px;
  transition: transform 0.2s ease;
}

.footer__social a:hover {
  transform: translateY(-2px);
}

.footer__social img {
  width: 61px;
  height: 61px;
}

.footer__copy {
  font-size: 16px;
  line-height: normal;
  color: var(--muted);
}

.footer__brand {
  width: 100%;
  font-size: clamp(48px, 13.333vw, 160px);
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

@media (max-width: 991px) {
  .header {
    padding: 14px 20px;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 24px 30px;
    background-color: #1f1e27;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
    z-index: 60;
  }

  .nav.is-open .nav__menu {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .nav__cta {
    align-self: center;
  }

  .nav__burger {
    display: flex;
  }

  .hero {
    gap: 20px;
    padding-top: 40px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "media"
      "text"
      "cta";
    padding: 0 20px;
  }

  .hero__title {
    font-size: clamp(40px, 13.5vw, 60px);
  }

  .hero__glow--1 {
    left: -129px;
    top: 533px;
    width: 318px;
    height: 318px;
  }

  .hero__glow--2 {
    left: auto;
    right: -40px;
    top: -60px;
    width: 310px;
    height: 310px;
  }

  .genres__glow--1 {
    left: -114px;
    top: 78px;
    width: 308px;
    height: 308px;
  }

  .genres__glow--2 {
    left: auto;
    right: -120px;
    top: 608px;
    width: 424px;
    height: 424px;
  }

  .hero__media {
    width: 100%;
    height: auto;
    aspect-ratio: 390 / 300;
  }

  .hero__cta {
    justify-self: center;
  }

  .stats {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .stats__media {
    width: 100%;
    flex: none;
  }

  .stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
  }

  .stats__item {
    text-align: center;
    white-space: normal;
  }

  .about {
    flex-direction: column;
    gap: 20px;
    padding: 40px 20px;
  }

  .about__media {
    width: 100%;
    align-self: auto;
    aspect-ratio: 390 / 300;
  }

  .about__watermark {
    left: 0;
    width: 100%;
    height: auto;
  }

  .genres {
    gap: 20px;
    padding: 40px 20px;
  }

  .genres__title {
    order: 2;
    text-align: left;
  }

  .genres__grid {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .genres__grid .card:nth-child(1) { order: 4; }
  .genres__grid .card:nth-child(2) { order: 5; }
  .genres__grid .card:nth-child(3) { order: 6; }
  .genres__grid .card:nth-child(4) { order: 1; }
  .genres__grid .card:nth-child(5) { order: 2; }
  .genres__grid .card:nth-child(6) { order: 3; }

  .catalog {
    gap: 20px;
    padding: 40px 20px;
  }

  .catalog__title {
    font-size: 36px;
  }

  .catalog__glow--1 {
    left: -133px;
    top: 434px;
    width: 348px;
    height: 348px;
  }

  .catalog__glow--2 {
    left: auto;
    right: -120px;
    top: -75px;
    width: 301px;
    height: 301px;
  }

  .catalog__grid {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 6.084px;
  }

  .game-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 10.673px;
  }

  .game-hero {
    gap: 20px;
    padding-top: 40px;
  }

  .game-hero__inner {
    gap: 20px;
    padding: 0 20px;
  }

  .game-hero__title {
    font-size: 36px;
  }

  .game-hero__glow--1 {
    left: -129px;
    top: 533px;
    width: 318px;
    height: 318px;
  }

  .game-hero__glow--2 {
    left: auto;
    right: -39px;
    top: -31px;
    width: 221px;
    height: 221px;
  }

  .game-detail {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
  }

  .game-detail__title {
    font-size: 36px;
  }

  .policy {
    gap: 20px;
    padding: 40px 20px;
  }

  .policy__title {
    font-size: 36px;
  }

  .why {
    flex-direction: column;
    gap: 20px;
    padding: 40px 20px;
  }

  .why__media {
    order: -1;
    width: 100%;
    align-self: auto;
    aspect-ratio: 390 / 300;
  }

  .faq {
    gap: 20px;
    padding: 40px 20px;
  }

  .footer {
    padding: 60px 20px;
  }

  .footer__top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer__contact {
    order: 1;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .footer__social {
    order: 2;
  }

  .footer__links {
    order: 3;
    align-items: center;
  }

  .footer__brand {
    font-size: 55px;
  }
}

/* ===== Cookie consent banner ===== */
.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100;
  width: min(420px, calc(100% - 48px));
  padding: 36px 32px;
  border: 2px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(150deg, var(--orange) 0%, var(--pink) 55%, var(--purple) 100%) border-box;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: cookieIn 0.5s ease both;
}

.cookie[hidden] {
  display: none;
}

.cookie__title {
  font-size: 40px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 20px;
}

.cookie__text {
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  color: var(--white);
}

.cookie__text + .cookie__text {
  margin-top: 16px;
}

.cookie__actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.cookie__btn {
  flex: 1 0 0;
  padding: 16px 24px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

/* ===== Animations ===== */
@keyframes cookieIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.glow {
  animation: floaty 9s ease-in-out infinite;
}

.genres__glow--2,
.catalog__glow--2,
.game-hero__glow--2,
.hero__glow--2 {
  animation-duration: 11s;
  animation-direction: alternate;
}

/* Scroll reveal (active only when JS adds the .js flag) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

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

/* ===== Hover effects ===== */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(225, 43, 234, 0.22);
  border-bottom-color: var(--pink);
}

.hero__media img,
.about__media img,
.why__media img,
.stats__media img,
.game-hero__cover img,
.game-detail__cover img {
  transition: transform 0.5s ease;
}

.hero__media:hover img,
.about__media:hover img,
.why__media:hover img,
.stats__media:hover img,
.game-hero__cover:hover img,
.game-detail__cover:hover img {
  transform: scale(1.06);
}

.banner img {
  transition: transform 0.6s ease;
}

.banner:hover img {
  transform: scale(1.03);
}

.footer__links a {
  transition: color 0.2s ease;
}

@media (max-width: 991px) {
  .cookie {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    padding: 28px 22px;
  }

  .cookie__title {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow,
  .cookie {
    animation: none;
  }

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}
