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

:root {
  --bg: #FFF6E9;
  --bg-alt: #FFEBD3;
  --bg-deep: #2D1B4E;
  --ink: #2D1B4E;
  --muted: #6B5A86;
  --coral: #FF5E7E;
  --orange: #FF8A3D;
  --sun: #FFC23D;
  --violet: #7C5CFF;
  --mint: #3CCFB4;
  --sky: #4FB8FF;
  --white: #FFFFFF;
  --grad-main: linear-gradient(90deg, #FF5E7E 0%, #FF8A3D 50%, #7C5CFF 100%);
  --grad-sun: linear-gradient(135deg, #FFE27A 0%, #FFB23D 55%, #FF5E7E 100%);
  --font-head: 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  --font-body: 'Nunito', Arial, sans-serif;
  --header-h: 8rem;
  --radius: 2.8rem;
}

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

html {
  font-size: 62.5%;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

body {
  font-size: 1.7rem;
  overflow-x: hidden;
}

body.fixed {
  overflow: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 124rem;
  margin: 0 auto;
  padding: 0 3rem;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--coral);
}

.preloader img {
  width: 5.6rem;
  height: 5.6rem;
}

html.hide .preloader {
  display: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 246, 233, 0.92);
  -webkit-backdrop-filter: blur(1.2rem);
  backdrop-filter: blur(1.2rem);
  box-shadow: 0 0.6rem 2.4rem rgba(45, 27, 78, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 4.4rem;
  height: 4.4rem;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.7rem;
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 0.3rem;
  border-radius: 0.3rem;
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--coral);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.burger-btn {
  display: none;
  position: relative;
  width: 4.4rem;
  height: 4.4rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.burger-btn span {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  height: 0.3rem;
  border-radius: 0.3rem;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.burger-btn span:nth-child(1) {
  top: 1.3rem;
}

.burger-btn span:nth-child(2) {
  top: 2.1rem;
}

.burger-btn span:nth-child(3) {
  top: 2.9rem;
}

.burger-btn.act span:nth-child(1) {
  top: 2.1rem;
  transform: rotate(45deg);
}

.burger-btn.act span:nth-child(2) {
  opacity: 0;
}

.burger-btn.act span:nth-child(3) {
  top: 2.1rem;
  transform: rotate(-45deg);
}

#mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--bg);
  padding: 4rem 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
}

.mobile-nav .nav-link {
  font-size: 2.4rem;
}

.section {
  position: relative;
  padding: 11rem 0;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4.4rem;
  line-height: 1.15;
  margin-bottom: 2.8rem;
}

.section-title-center {
  text-align: center;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5.6rem;
}

.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p + p {
  margin-top: 1.8rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 6rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 30%, rgba(255, 194, 61, 0.35) 0%, rgba(255, 194, 61, 0) 45%),
    radial-gradient(circle at 10% 90%, rgba(124, 92, 255, 0.14) 0%, rgba(124, 92, 255, 0) 40%),
    var(--bg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 6.4rem;
  line-height: 1.05;
  margin-bottom: 3rem;
}

.hero-title .grad-text {
  display: inline-block;
}

.hero-content p {
  color: var(--muted);
  font-size: 1.9rem;
  max-width: 60rem;
}

.hero-question {
  display: block;
  margin-top: 2.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.6rem;
  color: var(--coral);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54rem;
  height: 54rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 246, 233, 0) 30%, var(--bg) 70%),
    repeating-conic-gradient(rgba(255, 194, 61, 0.45) 0deg 10deg, rgba(255, 194, 61, 0) 10deg 20deg);
  animation: sunSpin 40s linear infinite;
}

.hero-pers {
  position: relative;
  width: 100%;
  max-width: 44rem;
  filter: drop-shadow(0 2.4rem 3.2rem rgba(255, 94, 126, 0.25));
  animation: persBounce 4s ease-in-out infinite;
}

.orb {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset -0.6rem -0.8rem 1.4rem rgba(0, 0, 0, 0.12), inset 0.6rem 0.6rem 1.2rem rgba(255, 255, 255, 0.6);
  animation: orbFloat 6s ease-in-out infinite;
}

.orb-1 {
  width: 5.6rem;
  height: 5.6rem;
  top: 18%;
  left: 46%;
  background: var(--coral);
}

.orb-2 {
  width: 3.6rem;
  height: 3.6rem;
  top: 72%;
  left: 52%;
  background: var(--violet);
  animation-delay: -2s;
}

.orb-3 {
  width: 2.8rem;
  height: 2.8rem;
  top: 14%;
  left: 6%;
  background: var(--mint);
  animation-delay: -4s;
}

.orb-4 {
  width: 4.4rem;
  height: 4.4rem;
  top: 82%;
  left: 90%;
  background: var(--sky);
  animation-delay: -1s;
}

.orb-5 {
  width: 2.4rem;
  height: 2.4rem;
  top: 30%;
  left: 94%;
  background: var(--sun);
  animation-delay: -3s;
}

@keyframes sunSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes persBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.6rem);
  }
}

@keyframes orbFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.8rem);
  }
}

.gameplay {
  background: var(--bg-alt);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6.4rem;
}

.split-reverse .split-media {
  order: 2;
}

.split-text p {
  color: var(--muted);
}

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 0.6rem solid var(--white);
  box-shadow: 0 2.4rem 5rem rgba(45, 27, 78, 0.14);
}

.media-frame img {
  width: 100%;
}

.media-frame-tilt {
  transform: rotate(2deg);
}

.meter {
  margin-top: 2.8rem;
  height: 2rem;
  border-radius: 2rem;
  background: var(--white);
  padding: 0.4rem;
  box-shadow: inset 0 0.2rem 0.6rem rgba(45, 27, 78, 0.12);
}

.meter-fill {
  display: block;
  height: 100%;
  border-radius: 2rem;
  background: var(--grad-main);
  animation: meterFill 5s ease-in-out infinite;
}

@keyframes meterFill {
  0% {
    width: 12%;
  }
  70%, 100% {
    width: 100%;
  }
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.card {
  position: relative;
  padding: 3.2rem 3.2rem 3.2rem 9.6rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 0.2rem solid transparent;
  box-shadow: 0 1.2rem 3rem rgba(45, 27, 78, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card p {
  color: var(--muted);
}

.card-num {
  position: absolute;
  top: 3.2rem;
  left: 3rem;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--white);
}

.card-sun .card-num {
  background: var(--grad-sun);
}

.card-rainbow .card-num {
  background: var(--grad-main);
}

.card-violet .card-num {
  background: var(--violet);
}

.card-mint .card-num {
  background: var(--mint);
}

.card:hover {
  transform: translateY(-0.4rem);
}

.card-sun:hover {
  border-color: var(--sun);
  box-shadow: 0 1.6rem 3.6rem rgba(255, 194, 61, 0.35);
}

.card-rainbow:hover {
  border-color: var(--coral);
  box-shadow: 0 1.6rem 3.6rem rgba(255, 94, 126, 0.3);
}

.card-violet:hover {
  border-color: var(--violet);
  box-shadow: 0 1.6rem 3.6rem rgba(124, 92, 255, 0.3);
}

.card-mint:hover {
  border-color: var(--mint);
  box-shadow: 0 1.6rem 3.6rem rgba(60, 207, 180, 0.3);
}

.challenges {
  background:
    radial-gradient(circle at 0% 0%, rgba(60, 207, 180, 0.16) 0%, rgba(60, 207, 180, 0) 40%),
    radial-gradient(circle at 100% 100%, rgba(255, 94, 126, 0.14) 0%, rgba(255, 94, 126, 0) 40%),
    var(--bg-alt);
}

.challenges-media {
  max-width: 86rem;
  margin: 0 auto;
}

.challenges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.8rem;
  margin-top: -6rem;
  position: relative;
  z-index: 1;
}

.contact-card {
  max-width: 88rem;
  margin: 0 auto;
  padding: 6rem 6.4rem;
  text-align: center;
  border-radius: 4rem;
  background: var(--bg-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 194, 61, 0.3) 0%, rgba(255, 194, 61, 0) 30%),
    radial-gradient(circle at 90% 85%, rgba(255, 94, 126, 0.3) 0%, rgba(255, 94, 126, 0) 35%);
  pointer-events: none;
}

.contact-card > * {
  position: relative;
}

.contact-mark {
  width: 8.8rem;
  height: 8.8rem;
  margin: 0 auto 2.4rem;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.8rem;
}

.mail-link {
  font-weight: 700;
  color: var(--sun);
  border-bottom: 0.2rem solid rgba(255, 194, 61, 0.5);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.mail-link:hover {
  color: var(--white);
  border-color: var(--white);
}

.footer {
  padding: 4rem 0;
  background: var(--bg-alt);
  border-top: 0.2rem solid rgba(45, 27, 78, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 600;
}

.footer-links a {
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-sep {
  color: var(--muted);
}

.footer-copy {
  color: var(--muted);
  font-size: 1.5rem;
}

.legal-page {
  padding-top: calc(var(--header-h) + 6rem);
}

.legal-content {
  max-width: 92rem;
  margin: 0 auto;
  padding: 5.6rem 6rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1.2rem 3rem rgba(45, 27, 78, 0.08);
  overflow-wrap: break-word;
}

.legal-content h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 4.4rem;
  line-height: 1.15;
  margin-bottom: 2.4rem;
}

.legal-content h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.25;
  margin: 3.6rem 0 1.4rem;
}

.legal-content h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2rem;
  margin: 2.4rem 0 1rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content p {
  margin-bottom: 1.4rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 2.4rem;
  margin-bottom: 1.4rem;
}

.legal-content li + li {
  margin-top: 0.6rem;
}

.legal-content a {
  color: var(--coral);
  text-decoration: underline;
  transition: color 0.25s ease;
}

.legal-content a:hover {
  color: var(--violet);
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: 5.6rem;
  }

  .hero-pers {
    max-width: 36rem;
  }

  .hero-sun {
    width: 46rem;
    height: 46rem;
  }

  .orb-1 {
    top: 64%;
    left: 6%;
  }

  .orb-5 {
    top: 92%;
    left: 30%;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 4.8rem;
  }

  .split-reverse .split-media {
    order: 0;
  }

  .split-media {
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 8rem 0;
  }

  .section-title {
    font-size: 3.6rem;
  }

  .section-title-center {
    margin-bottom: 4rem;
  }

  .challenges-grid {
    grid-template-columns: 1fr;
    margin-top: 3.2rem;
  }

  .contact-card {
    padding: 4.8rem 3.2rem;
  }

  .legal-content {
    padding: 4rem 3.2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 6.8rem;
  }

  body {
    font-size: 1.6rem;
  }

  .container {
    padding: 0 2rem;
  }

  .logo-mark {
    width: 3.8rem;
    height: 3.8rem;
  }

  .logo-text {
    font-size: 2.2rem;
  }

  .hero {
    padding-top: calc(var(--header-h) + 4rem);
  }

  .hero-title {
    font-size: 4.2rem;
  }

  .hero-content p {
    font-size: 1.7rem;
  }

  .hero-question {
    font-size: 2.2rem;
  }

  .hero-pers {
    max-width: 28rem;
  }

  .hero-sun {
    width: 36rem;
    height: 36rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .card {
    padding: 8.8rem 2.4rem 2.8rem;
  }

  .card-num {
    top: 2.8rem;
    left: 2.4rem;
  }

  .media-frame {
    border-width: 0.4rem;
  }

  .media-frame-tilt {
    transform: none;
  }

  .contact-card {
    padding: 4rem 2.2rem;
    border-radius: 3rem;
  }

  .contact-card p {
    font-size: 1.6rem;
  }

  .legal-content {
    padding: 3.2rem 2rem;
  }

  .legal-content h1 {
    font-size: 3.2rem;
  }

  .legal-content h2 {
    font-size: 2.2rem;
  }
}
