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

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

body {
  font-family: 'Anton', sans-serif;
  background-color: #0e0e0e;
  color: #ffffff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 65px;
  padding: 24px 60px;
  background: linear-gradient(to right, #efa906, #fee001);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 60px;
  box-shadow: 0px 4px 10px rgba(239, 169, 6, 0.9);
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  color: #0c0c0c;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.header {
  padding: 20px 0;
}

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

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

.logo__icon {
  width: 30px;
  height: 30px;
}

.logo__text {
  font-size: 24px;
  text-transform: uppercase;
  line-height: normal;
}

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

.header-nav__link {
  font-size: 14px;
  line-height: normal;
}

.hero {
  padding: 44px 0 60px;
}

.hero .container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  max-width: 813px;
  flex-shrink: 0;
}

.hero__badge {
  width: 175px;
  height: 99px;
  object-fit: cover;
}

.hero__title {
  font-size: 80px;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero__title span {
  color: #efa906;
}

.hero__description {
  font-size: 14px;
  line-height: normal;
  max-width: 590px;
  font-weight: 400;
}

.hero__image {
  width: 463px;
  height: 682px;
  object-fit: cover;
  flex-shrink: 0;
}

.section {
  padding: 30px 0;
}

.section__title {
  font-size: 76px;
  text-transform: uppercase;
  line-height: normal;
  margin-bottom: 30px;
}

.section__title--center {
  text-align: center;
}

.architect {
  padding: 30px 0;
}

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

.architect__image {
  width: 580px;
  height: 413px;
  border-radius: 30px;
  object-fit: cover;
  flex-shrink: 0;
}

.architect__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: 590px;
}

.architect__text {
  font-size: 14px;
  line-height: normal;
  font-weight: 400;
}

.architect__badge {
  width: 175px;
  height: 99px;
  object-fit: cover;
}

.hall-of-fame {
  padding: 30px 0;
}

.hall-of-fame__top {
  display: flex;
  align-items: center;
  gap: 120px;
}

.hall-of-fame__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 674px;
}

.hall-of-fame__title {
  font-size: 76px;
  text-transform: uppercase;
  line-height: normal;
}

.hall-of-fame__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 587px;
}

.hall-of-fame__text {
  font-size: 14px;
  line-height: normal;
  font-weight: 400;
}

.hall-of-fame__image {
  width: 406px;
  height: 342px;
  border-radius: 30px;
  object-fit: cover;
  flex-shrink: 0;
}

.hall-of-fame__grid {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.hall-of-fame__thumb-link {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 24px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.hall-of-fame__thumb-link:hover {
  transform: scale(1.05);
}

.hall-of-fame__thumb {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
}

.choose-game {
  padding: 30px 0;
}

.choose-game .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.choose-game__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.choose-game__text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1092px;
}

.choose-game__text {
  font-size: 14px;
  line-height: normal;
  text-align: center;
  font-weight: 400;
}

.choose-game__text p + p {
  margin-top: 14px;
}

.choose-game__banner {
  width: 100%;
  height: 300px;
  border-radius: 30px;
  object-fit: cover;
}

.choose-game__badge {
  width: 175px;
  height: 99px;
  object-fit: cover;
}

.switch-mood {
  padding: 30px 0;
}

.switch-mood__row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.switch-mood__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: 590px;
}

.switch-mood__text {
  font-size: 14px;
  line-height: normal;
  font-weight: 400;
}

.switch-mood__text p + p {
  margin-top: 14px;
}

.switch-mood__badge {
  width: 175px;
  height: 99px;
  object-fit: cover;
}

.switch-mood__image {
  width: 580px;
  height: 329px;
  border-radius: 30px;
  object-fit: cover;
  flex-shrink: 0;
}

.contacts {
  padding: 30px 0;
}

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

.contacts__text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1092px;
}

.contacts__text {
  font-size: 14px;
  line-height: normal;
  text-align: center;
  font-weight: 400;
}

.contacts__details {
  font-size: 18px;
  line-height: normal;
  text-align: center;
  color: #efa906;
  margin-top: 14px;
}

.contacts__map {
  width: 100%;
  height: 300px;
  border-radius: 30px;
  object-fit: cover;
}

.contacts__badge {
  width: 175px;
  height: 99px;
  object-fit: cover;
}

.footer {
  padding: 20px 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

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

.footer-nav__link {
  font-size: 14px;
  line-height: normal;
}

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

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

.footer__copyright {
  font-size: 14px;
  line-height: normal;
  color: rgba(255, 255, 255, 0.5);
}

.game-hero {
  padding: 30px 0;
}

.game-hero__top {
  display: flex;
  align-items: center;
  gap: 120px;
}

.game-hero__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 674px;
}

.game-hero__title {
  font-size: 76px;
  text-transform: uppercase;
  line-height: normal;
}

.game-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 587px;
}

.game-hero__text {
  font-size: 14px;
  line-height: normal;
  font-weight: 400;
}

.game-hero__image {
  width: 406px;
  height: 342px;
  border-radius: 30px;
  object-fit: cover;
  flex-shrink: 0;
}

.game-details {
  padding: 30px 0;
}

.game-details__row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.game-details__image {
  width: 580px;
  height: 413px;
  border-radius: 30px;
  object-fit: cover;
  flex-shrink: 0;
}

.game-details__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: 590px;
}

.game-details__text {
  font-size: 14px;
  line-height: normal;
  font-weight: 400;
}

.game-details__text p + p {
  margin-top: 14px;
}

.policy {
  padding: 30px 0;
}

.policy .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 1098px;
}

.policy__title {
  font-size: 76px;
  text-transform: uppercase;
  line-height: normal;
}

.policy__text {
  font-size: 14px;
  line-height: normal;
  font-weight: 400;
  white-space: pre-wrap;
}

.policy__text p {
  margin-bottom: 0;
  line-height: normal;
}

.policy__text .policy__spacer {
  height: 14px;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: 760px;
  animation: cookie-slide-up 0.5s ease both;
}

.cookie-banner[hidden] {
  display: none;
}

@keyframes cookie-slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner__inner {
  padding: 32px;
  background-color: #161616;
  border: 1px solid #efa906;
  border-radius: 28px;
}

.cookie-banner__icon {
  display: block;
  margin-bottom: 22px;
}

.cookie-banner__icon svg {
  display: block;
}

.cookie-banner__title {
  font-size: 36px;
  text-transform: uppercase;
  color: #efa906;
  line-height: normal;
  margin-bottom: 18px;
}

.cookie-banner__text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: #ffffff;
  margin-bottom: 26px;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 65px;
  padding: 0 40px;
  border-radius: 60px;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s, background-color 0.25s, color 0.25s;
}

.cookie-banner__btn--accept {
  background: linear-gradient(to right, #efa906, #fee001);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0px 4px 16px rgba(239, 169, 6, 0.9);
  color: #0c0c0c;
}

.cookie-banner__btn--accept:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 22px rgba(239, 169, 6, 1);
}

.cookie-banner__btn--settings {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.cookie-banner__btn--settings:hover {
  transform: translateY(-2px);
  background-color: #efa906;
  border-color: #efa906;
  color: #0c0c0c;
}

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

  .header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero .container {
    flex-direction: column;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__description {
    max-width: 100%;
  }

  .hero__image {
    width: 100%;
    height: auto;
    aspect-ratio: 736 / 1084;
  }

  .section__title {
    font-size: 34px;
  }

  .architect__row {
    flex-direction: column;
  }

  .architect__image {
    width: 100%;
    height: 413px;
  }

  .architect__content {
    width: 100%;
  }

  .hall-of-fame__title {
    font-size: 34px;
  }

  .hall-of-fame__top {
    flex-direction: column;
    gap: 20px;
  }

  .hall-of-fame__info {
    width: 100%;
  }

  .hall-of-fame__content {
    max-width: 100%;
  }

  .hall-of-fame__image {
    width: 100%;
    height: 278px;
  }

  .hall-of-fame__grid {
    flex-wrap: wrap;
    gap: 15px;
  }

  .hall-of-fame__thumb-link {
    width: calc(50% - 8px);
    height: auto;
    aspect-ratio: 1;
  }

  .hall-of-fame__thumb {
    width: 100%;
    height: 100%;
  }

  .choose-game__text-block {
    max-width: 100%;
  }

  .choose-game__banner {
    height: 300px;
  }

  .switch-mood__row {
    flex-direction: column;
  }

  .switch-mood__content {
    width: 100%;
  }

  .switch-mood__image {
    width: 100%;
    height: 329px;
  }

  .contacts__map {
    height: 300px;
  }

  .policy__title {
    font-size: 34px;
  }

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

  .game-hero__top {
    flex-direction: column;
    gap: 20px;
  }

  .game-hero__info {
    width: 100%;
  }

  .game-hero__content {
    max-width: 100%;
  }

  .game-hero__image {
    width: 260px;
    height: 260px;
    border-radius: 24px;
  }

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

  .game-details__image {
    width: 100%;
    height: auto;
    aspect-ratio: 580 / 413;
  }

  .game-details__content {
    width: 100%;
  }

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

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .cookie-banner__inner {
    padding: 24px;
    border-radius: 24px;
  }

  .cookie-banner__title {
    font-size: 30px;
  }

  .cookie-banner__text {
    font-size: 14px;
  }

  .cookie-banner__btn {
    height: 58px;
    font-size: 16px;
  }
}

/* ===== Scroll-reveal animations ===== */
.has-js .header,
.has-js section,
.has-js .footer {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.has-js .header {
  transform: translateY(-24px);
}

.has-js .header.is-visible,
.has-js section.is-visible,
.has-js .footer.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .has-js .header,
  .has-js section,
  .has-js .footer {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cookie-banner {
    animation: none;
  }
}

/* ===== Hover effects ===== */
.header-nav__link,
.footer-nav__link {
  position: relative;
  transition: color 0.25s ease;
}

.header-nav__link::after,
.footer-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #efa906, #fee001);
  transition: width 0.25s ease;
}

.header-nav__link:hover,
.footer-nav__link:hover {
  color: #efa906;
}

.header-nav__link:hover::after,
.footer-nav__link:hover::after {
  width: 100%;
}

.logo {
  transition: transform 0.25s ease;
}

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

.btn-primary {
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0px 8px 22px rgba(239, 169, 6, 1);
}

.hall-of-fame__thumb-link {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hall-of-fame__thumb-link:hover {
  transform: translateY(-6px);
  box-shadow: 0px 12px 28px rgba(239, 169, 6, 0.35);
}

.hall-of-fame__thumb {
  transition: transform 0.4s ease;
}

.hall-of-fame__thumb-link:hover .hall-of-fame__thumb {
  transform: scale(1.08);
}

.footer__social-link {
  display: inline-flex;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer__social-link:hover {
  transform: translateY(-3px) scale(1.1);
  opacity: 0.85;
}

.architect__image,
.switch-mood__image,
.game-details__image,
.game-hero__image,
.choose-game__banner,
.contacts__map {
  transition: transform 0.4s ease;
}

.architect__image:hover,
.switch-mood__image:hover,
.game-details__image:hover,
.game-hero__image:hover,
.choose-game__banner:hover,
.contacts__map:hover {
  transform: scale(1.02);
}

/* ===== Cookie banner dismiss animation ===== */
.cookie-banner--hide {
  animation: cookie-slide-down 0.4s ease forwards;
}

@keyframes cookie-slide-down {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(40px);
  }
}
