@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@400&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Mono', monospace;
  background-color: #fbf9ff;
  color: #161616;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

ul,
ol {
  list-style: none;
}

.page-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 60px;
  border-bottom: 1px solid #161616;
  overflow: hidden;
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.header__logo-text {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: normal;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 16px;
  white-space: nowrap;
  line-height: normal;
}

.header__burger {
  display: none;
  width: 40px;
  height: 17px;
}

.header__burger img {
  width: 100%;
  height: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background-color: #c4a6e4;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero__title-wrap {
  height: 163px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.hero__title {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  padding: 0 40px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(80px, 15vw, 220px);
  text-transform: uppercase;
  color: #fff;
  text-align: justify;
  text-align-last: justify;
  line-height: 1;
}

.hero__text {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  text-align: center;
  line-height: 1.39;
  letter-spacing: -0.8px;
  width: 1080px;
  max-width: calc(100% - 40px);
}

.hero__text p + p {
  margin-top: 5px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 50px;
  background-color: #fff;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  color: #161616;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__image {
  width: 100%;
  height: 296px;
  object-fit: cover;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 60px;
  width: 100%;
}

.section--purple {
  background-color: #c4a6e4;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.section-header__decor {
  width: 19px;
  height: 10px;
  position: relative;
}

.section-header__decor img {
  display: block;
  width: 100%;
  height: 100%;
}

.section-header__decor--right {
  transform: rotate(180deg) scaleY(-1);
}

.section-header__label {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 9px;
}

.section-header__label-num,
.section-header__label-text {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  line-height: 20px;
}

.section-header__label-line {
  width: 20px;
  height: 1px;
}

.section-header__label-line img {
  width: 100%;
  height: 100%;
}

.section-header--white .section-header__label-num,
.section-header--white .section-header__label-text {
  color: #fff;
}

.section__title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 42px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  width: 100%;
}

.about__image-wrap {
  width: 100%;
  transform: rotate(180deg) scaleY(-1);
}

.about__image {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.section__text {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  line-height: 1.39;
  letter-spacing: -0.8px;
  width: 100%;
}

.section__text p + p {
  margin-top: 5px;
}

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

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 252px;
}

.stat__number {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: -2.4px;
}

.stat__content {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  width: 100%;
}

.stat__dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
}

.stat__label {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.14px;
  flex: 1;
}

.stat__line {
  width: 100%;
  height: 2px;
  background-color: #c4a6e4;
}

.why-choose__grid {
  display: flex;
  gap: 20px;
  align-items: center;
  width: 100%;
}

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

.why-choose__row-top {
  display: flex;
  gap: 20px;
  height: 279px;
}

.why-choose__row-bottom {
  display: flex;
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.why-choose__card {
  width: 265px;
  padding: 10px;
  overflow: hidden;
  display: flex;
  flex-shrink: 0;
}

.why-choose__card--purple {
  background-color: #c4a6e4;
  align-items: flex-start;
  justify-content: center;
}

.why-choose__card--dark {
  background-color: #161616;
  align-items: center;
  justify-content: center;
}

.why-choose__card-text {
  color: #fff;
  flex: 1;
}

.why-choose__card-title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 24px;
  line-height: normal;
  margin-bottom: 24px;
}

.why-choose__card-title--accent {
  color: #c4a6e4;
}

.why-choose__card-desc {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
}

.why-choose__controller {
  width: 171px;
  height: 129px;
  object-fit: cover;
  flex-shrink: 0;
}

.why-choose__card--flex {
  width: auto;
  flex: 1;
  min-width: 0;
}

.why-choose__card--full-height {
  height: 100%;
}

.why-choose__character {
  width: 339px;
  height: 445px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.why-choose__character img {
  position: absolute;
  width: 210%;
  height: 131%;
  top: -31%;
  left: -110%;
  max-width: none;
  object-fit: cover;
}

.new-arrivals {
  display: flex;
  gap: 30px;
  padding: 60px;
  width: 100%;
}

.new-arrivals__image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
  align-self: stretch;
}

.new-arrivals__image-inner {
  transform: rotate(-90deg);
  width: 100cqh;
  height: 100cqw;
}

.new-arrivals__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-arrivals__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.new-arrivals__title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 42px;
  text-transform: uppercase;
  line-height: 1;
}

.new-arrivals__text {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 16px;
  color: rgba(22, 22, 22, 0.8);
  line-height: normal;
}

.new-arrivals__text p + p {
  margin-top: 0;
}

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

.faq__item {
  padding: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq__item--purple {
  background-color: #c4a6e4;
}

.faq__item--dark {
  background-color: #161616;
}

.faq__item-content {
  flex: 1;
  color: #fff;
}

.faq__question {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 24px;
  line-height: normal;
  margin-bottom: 24px;
}

.faq__question--accent {
  color: #c4a6e4;
}

.faq__answer {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  color: #fff;
}

.contact {
  display: flex;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.contact__image-left {
  width: 172px;
  height: 198px;
  flex-shrink: 0;
  object-fit: contain;
}

.contact__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.contact__title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 42px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  line-height: 1;
  width: 100%;
}

.contact__text {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  color: #fff;
  line-height: normal;
  width: 100%;
}

.contact__info {
  display: flex;
  gap: 10px;
  width: 100%;
  height: 68px;
}

.contact__info-item {
  flex: 1;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

.contact__info-text {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
}

.contact__character {
  width: 162px;
  height: 225px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.contact__character img {
  position: absolute;
  width: 223%;
  height: 131%;
  top: -31%;
  left: 0;
  max-width: none;
}

.policy__intro {
  background-color: #c4a6e4;
  padding: 10px;
  overflow: hidden;
  width: 100%;
}

.policy__intro-text {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 18px;
  color: #fff;
  line-height: normal;
}

.policy__body {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.39;
  letter-spacing: -0.8px;
  width: 100%;
}

.policy__body p {
  margin-bottom: 10px;
}

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

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

.policy__body ul li {
  line-height: 1.39;
}

.policy__body a {
  text-decoration: underline;
}

.game-detail {
  display: flex;
  gap: 30px;
  align-items: center;
  width: 100%;
}

.game-detail__left {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex-shrink: 0;
}

.game-detail__title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 42px;
  text-transform: uppercase;
  line-height: 1;
}

.game-detail__image {
  width: 422px;
  height: 422px;
  object-fit: cover;
}

.game-detail__right {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
  min-width: 0;
}

.game-detail__text {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.39;
  letter-spacing: -0.8px;
}

.game-detail__text p + p {
  margin-top: 5px;
}

.game-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 50px;
  background-color: #c4a6e4;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-start;
}

.catalog__grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 1003px;
}

.catalog__row {
  display: flex;
  gap: 34px;
  width: 100%;
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  background-color: #c4a6e4;
  padding: 13px 20px 20px;
  width: 311px;
  flex-shrink: 0;
}

.game-card__image {
  width: 100%;
  height: 224px;
  object-fit: cover;
}

.game-card__title {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  color: #fff;
  line-height: 1.4;
  width: 100%;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px 60px;
  border-top: 1px solid #161616;
  overflow: hidden;
  width: 100%;
}

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

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer__logo-text {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: normal;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 15px;
  white-space: nowrap;
  line-height: normal;
}

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

.footer__socials {
  display: flex;
  align-items: center;
  gap: 26px;
}

.footer__social-icon {
  width: 97px;
  height: 97px;
}

.footer__contact-info {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 15px;
  line-height: normal;
  text-align: right;
}

.footer__copyright {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: rgba(22, 22, 22, 0.5);
  text-align: center;
  width: 100%;
  line-height: normal;
}

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

  .header__logo-text {
    font-size: 20px;
  }

  .header__nav {
    display: none;
  }

  .header__burger {
    display: block;
  }

  .hero {
    gap: 20px;
  }

  .hero__title-wrap {
    height: 76px;
  }

  .header {
    position: relative;
    overflow: visible;
  }

  .hero__title {
    font-size: 80px;
  }

  .hero__text {
    width: calc(100% - 40px);
  }

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

  .section__title {
    font-size: 30px;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }

  .stat__number {
    font-size: 40px;
    letter-spacing: -1.6px;
    text-align: center;
  }

  .stat__label {
    text-align: center;
  }

  .why-choose__grid {
    flex-direction: column;
    align-items: center;
  }

  .why-choose__left {
    display: contents;
  }

  .why-choose__row-top {
    display: contents;
  }

  .why-choose__row-bottom {
    display: contents;
  }

  .why-choose__grid {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .why-choose__character {
    width: 172px;
    height: 226px;
    order: 1;
  }

  .why-choose__character img {
    width: 210%;
    height: 131%;
    top: -31%;
    left: -110%;
  }

  .wc-smooth {
    order: 2;
  }

  .wc-newcontent {
    order: 3;
  }

  .why-choose__controller {
    order: 4;
  }

  .wc-instant {
    order: 5;
  }

  .wc-wide {
    order: 6;
  }

  .why-choose__card {
    width: 100%;
    height: auto;
    flex-shrink: 0;
  }

  .why-choose__card--full-height {
    height: auto;
  }

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

  .new-arrivals__image-wrap {
    width: 100%;
    height: 200px;
    container-type: size;
  }

  .new-arrivals__title {
    font-size: 30px;
  }

  .game-detail {
    flex-direction: column;
  }

  .game-detail__left {
    width: 100%;
  }

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

  .game-detail__image {
    width: 100%;
    height: 390px;
  }

  .game-detail__btn {
    align-self: flex-start;
  }

  .catalog__grid {
    width: 100%;
    align-items: center;
    gap: 20px;
  }

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

  .catalog__row--first {
    order: 2;
  }

  .catalog__row--second {
    order: 1;
  }

  .contact {
    flex-direction: column;
    align-items: center;
  }

  .contact__content {
    gap: 20px;
  }

  .contact__title {
    font-size: 30px;
  }

  .contact__info {
    height: 116px;
    display: flex;
    flex-direction: column;
  }

  .contact__character {
    order: 10;
  }

  .footer {
    padding: 40px 20px;
  }

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

  .footer__logo-text {
    font-size: 20px;
  }

  .footer__links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

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

  .footer__socials {
    gap: 11px;
  }

  .footer__social-icon {
    width: 40px;
    height: 40px;
  }

  .footer__contact-info {
    text-align: center;
  }
}

/* ===================== Hover effects ===================== */
.header__nav a,
.footer__links a {
  position: relative;
  transition: opacity 0.25s ease;
}
.header__nav a::after,
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}
.header__nav a:hover::after,
.footer__links a:hover::after {
  width: 100%;
}

.header__logo,
.footer__logo {
  transition: opacity 0.25s ease;
}
.header__logo:hover,
.footer__logo:hover {
  opacity: 0.75;
}

.hero__btn,
.game-detail__btn {
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.hero__btn:hover {
  background-color: #c4a6e4;
  color: #fff;
  transform: translateY(-3px);
}
.game-detail__btn:hover {
  background-color: #161616;
  transform: translateY(-3px);
}

.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(196, 166, 228, 0.45);
}
.game-card__image {
  transition: transform 0.4s ease;
}
.game-card:hover .game-card__image {
  transform: scale(1.05);
}

.footer__social-icon {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.footer__social-icon:hover {
  transform: translateY(-4px) scale(1.05);
  opacity: 0.85;
}

.why-choose__card,
.faq__item,
.stat {
  transition: transform 0.3s ease;
}
.why-choose__card:hover {
  transform: translateY(-4px);
}
.faq__item:hover {
  transform: translateX(6px);
}

.contact__info-item {
  transition: background-color 0.25s ease;
}
.contact__info-item:hover {
  background-color: #fff;
}
.contact__info-item:hover .contact__info-text {
  color: #c4a6e4;
}

/* ===================== Scroll reveal animation ===================== */
@keyframes lmx-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0;
}
.reveal.is-visible {
  animation: lmx-fade-up 0.7s ease forwards;
}

/* Hero entrance animation on load */
.hero__title {
  animation: lmx-fade-up 0.8s ease both;
}
.hero__text {
  animation: lmx-fade-up 0.8s ease 0.12s both;
}
.hero__btn {
  animation: lmx-fade-up 0.8s ease 0.24s both;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .hero__title,
  .hero__text,
  .hero__btn {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===================== Cookie banner ===================== */
.cookie {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  width: calc(100% - 40px);
  max-width: 600px;
  background-color: #fff;
  padding: 40px;
  box-shadow: 0 15px 50px rgba(22, 22, 22, 0.2);
  transform: translateY(180%);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cookie.is-visible {
  transform: translateY(0);
}
.cookie__title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 32px;
  text-transform: uppercase;
  color: #161616;
  line-height: 1;
  margin-bottom: 20px;
}
.cookie__text {
  font-family: 'Space Mono', monospace;
  font-weight: 400;
  font-size: 16px;
  color: #161616;
  line-height: 1.4;
  margin-bottom: 28px;
}
.cookie__buttons {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 18px 30px;
  background-color: #c4a6e4;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.cookie__btn:hover {
  background-color: #161616;
  transform: translateY(-3px);
}

/* ===================== Mobile nav toggle ===================== */
@media (max-width: 768px) {
  .header__nav--open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px;
    background-color: #fbf9ff;
    border-bottom: 1px solid #161616;
    font-size: 18px;
    z-index: 200;
  }
  .cookie {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 24px;
  }
  .cookie__title {
    font-size: 26px;
  }
  .cookie__btn {
    flex: 1;
    padding: 16px 20px;
  }
}
