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

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

:root {
  --bg: #070709;
  --primary: #2ef7d5;
  --secondary: #00f160;
  --white: #ffffff;
  --dark: #0f0e1c;
  --card-bg: rgba(46, 247, 213, 0.1);
  --card-border: rgba(46, 247, 213, 0.3);
  --btn-shadow: 0px 2px 24px 0px rgba(46, 247, 213, 0.65);
  --copyright-color: rgba(255, 255, 255, 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

.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;
  object-fit: contain;
}

.logo__text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--primary);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.nav a {
  color: var(--white);
  transition: color 0.3s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 50px;
  border-radius: 60px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  box-shadow: var(--btn-shadow);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--dark);
  white-space: nowrap;
  transition: opacity 0.3s;
  width: fit-content;
}

.btn:hover {
  opacity: 0.9;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 60px;
  line-height: normal;
  color: var(--primary);
  text-transform: uppercase;
}

.section-title--gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.decorator {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.decorator img {
  position: absolute;
  max-width: none;
}

.decorator--lg {
  width: 646px;
  height: 47px;
}

.decorator--lg img {
  width: 130.5%;
  height: 3191.49%;
  left: -1.55%;
  top: -3025.53%;
}

.decorator--md {
  width: 472px;
  height: 43px;
}

.decorator--md img {
  width: 128.9%;
  height: 2542.37%;
  left: -1.38%;
  top: -1944.07%;
}

.decorator--sm {
  width: 462px;
  height: 68px;
}

.decorator--sm img {
  width: 130.29%;
  height: 1562.5%;
  left: -1.55%;
  top: -472.92%;
}

.hero {
  text-align: center;
  padding-top: 56px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1027px;
  margin: 0 auto;
}

.hero__title {
  font-size: 60px;
  text-align: center;
}

.hero__text {
  text-align: center;
}

.hero__banner {
  width: 100%;
  height: 320px;
  object-fit: cover;
  margin-top: 20px;
}

.story {
  padding-top: 80px;
}

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

.story__image-block {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.story__image {
  width: 472px;
  height: 458px;
  border-radius: 28px;
  object-fit: cover;
}

.story__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 698px;
}

.story__heading {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.story__title {
  font-size: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 20px;
  overflow: hidden;
}

.stat-card__number {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--primary);
  line-height: normal;
}

.stat-card__label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--white);
}

.favorites {
  padding-top: 80px;
}

.favorites--page {
  padding-top: 0;
}

.game-link {
  display: block;
  border-radius: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(46, 247, 213, 0.4);
}

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

.favorites__content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 590px;
  flex-shrink: 0;
}

.favorites__title {
  font-size: 60px;
}

.games-grid {
  display: flex;
  gap: 20px;
}

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

.game-thumb {
  width: 160px;
  height: 160px;
  border-radius: 24px;
  border: 3px solid var(--primary);
  object-fit: cover;
}

.games-col--wide .game-thumb {
  width: 220px;
  height: 220px;
}

.why {
  padding-top: 80px;
}

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

.why__inner {
  max-width: 920px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.why__title {
  font-size: 60px;
  text-align: center;
}

.why__text {
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 245px;
}

.feature-card__icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.feature-card__title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--primary);
  line-height: normal;
}

.feature-card__text {
  font-size: 14px;
  color: var(--white);
  margin-top: 8px;
}

.adventure {
  padding-top: 80px;
  text-align: center;
}

.adventure__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1027px;
  margin: 0 auto;
}

.adventure__title {
  font-size: 60px;
  text-align: center;
}

.adventure__text {
  text-align: center;
}

.adventure__contact {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--primary);
  line-height: normal;
  text-align: center;
}

.adventure__banner {
  width: 100%;
  height: 260px;
  object-fit: cover;
  margin-top: 20px;
}

.footer {
  padding: 40px 0 20px;
}

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

.footer__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.footer__nav a {
  color: var(--white);
  transition: color 0.3s;
}

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

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

.social-links__item {
  width: 40px;
  height: 40px;
  display: block;
}

.social-links__item img {
  width: 100%;
  height: 100%;
}

.copyright {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--copyright-color);
}

.game-detail {
  padding-top: 0;
}

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

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

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

.game-detail__image {
  width: 472px;
  height: 458px;
  border-radius: 28px;
  object-fit: cover;
  flex-shrink: 0;
}

.game-section {
  padding-top: 80px;
  text-align: center;
}

.game-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1027px;
  margin: 0 auto;
}

.policy {
  padding-top: 0;
  padding-bottom: 80px;
}

.policy .container {
  max-width: 1098px;
}

.policy__title {
  font-size: 60px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.policy__text {
  white-space: pre-wrap;
  line-height: 1.6;
}

.policy__text p {
  margin-bottom: 16px;
}

.game-section__title {
  font-size: 60px;
  text-align: center;
}

.game-section__text {
  text-align: center;
}

@media (max-width: 1280px) {
  .container {
    width: 100%;
    padding: 0 15px;
  }

  .story .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .favorites .container {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    width: 330px;
    padding: 0;
    margin: 0 auto;
  }

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

  .section-title {
    font-size: 34px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero__inner {
    width: 330px;
    margin: 0 auto;
  }

  .hero__title {
    font-size: 34px;
    width: 330px;
  }

  .hero .decorator--lg {
    width: 100%;
    height: 25px;
  }

  .hero .decorator--lg img {
    width: 130.5%;
    height: 3191.49%;
    left: -1.55%;
    top: -3025.53%;
  }

  .hero__banner {
    width: 100vw;
    height: 260px;
    margin-left: calc(-50vw + 165px);
  }

  .story {
    padding-top: 60px;
  }

  .story .container {
    flex-direction: column;
    width: 330px;
  }

  .story__image-block {
    width: 100%;
  }

  .story__image {
    width: 330px;
    height: 320px;
  }

  .story .decorator--md {
    width: 330px;
    height: 30px;
  }

  .story__content {
    width: 100%;
  }

  .story__title {
    font-size: 34px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    width: 330px;
  }

  .favorites {
    padding-top: 60px;
  }

  .favorites .container {
    flex-direction: column;
    width: 330px;
  }

  .favorites__content {
    width: 100%;
  }

  .favorites__title {
    font-size: 34px;
  }

  .favorites .decorator--sm {
    width: 330px;
    height: 49px;
  }

  .games-grid {
    flex-direction: column;
    align-items: center;
    width: 330px;
  }

  .games-col {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 330px;
  }

  .game-thumb {
    width: 157px;
    height: 157px;
  }

  .games-col--wide {
    width: 220px;
  }

  .games-col--wide .game-thumb {
    width: 220px;
    height: 220px;
  }

  .why {
    padding-top: 60px;
  }

  .why__inner {
    width: 330px;
  }

  .why__title {
    font-size: 34px;
  }

  .why .decorator--md {
    width: 330px;
    height: 30px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    width: 330px;
    min-height: auto;
  }

  .adventure {
    padding-top: 60px;
  }

  .adventure__inner {
    width: 330px;
  }

  .adventure__title {
    font-size: 34px;
  }

  .adventure__contact {
    font-size: 18px;
  }

  .adventure .decorator--lg {
    width: 330px;
    height: 24px;
  }

  .adventure__banner {
    width: 100vw;
    height: 260px;
    margin-left: calc(-50vw + 165px);
  }

  .footer .container {
    width: 330px;
  }

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

  .policy__title {
    font-size: 34px;
  }

  .game-detail .container {
    flex-direction: column;
    width: 330px;
  }

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

  .game-detail__image {
    width: 330px;
    height: 320px;
  }

  .game-detail__content {
    width: 100%;
  }

  .game-section {
    padding-top: 60px;
  }

  .game-section__inner {
    width: 330px;
  }

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

.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: calc(100% - 48px);
  max-width: 540px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--primary);
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(46, 247, 213, 0.25);
}

.cookie--visible {
  display: flex;
  animation: cookie-in 0.5s ease;
}

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

.cookie__icon {
  width: 60px;
  height: 60px;
  line-height: 0;
}

.cookie__title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--primary);
}

.cookie__text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
}

.cookie__accept {
  width: 100%;
  padding: 18px;
}

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

.cookie__manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px;
  border-radius: 60px;
  border: 1px solid var(--primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--primary);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.cookie__manage:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-2px);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  animation: fade-in-up 0.6s ease both;
}

.hero__inner {
  animation: fade-in-up 0.8s ease both;
}

.logo {
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.85;
}

.btn {
  transition: opacity 0.3s, transform 0.3s;
}

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

.stat-card {
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(46, 247, 213, 0.25);
}

.feature-card {
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(46, 247, 213, 0.25);
}

.game-thumb {
  transition: transform 0.3s, box-shadow 0.3s;
}

.game-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(46, 247, 213, 0.4);
}

.social-links__item {
  transition: transform 0.3s, opacity 0.3s;
}

.social-links__item:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .cookie {
    left: 15px;
    bottom: 15px;
    width: calc(100% - 30px);
    padding: 24px;
    gap: 16px;
  }

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