* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SiteFont", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;

  background:
    radial-gradient(circle at 10% 10%, #b8ffa6 0 120px, transparent 121px),
    radial-gradient(circle at 90% 20%, #ffe8d3 0 140px, transparent 141px),
    radial-gradient(circle at 20% 90%, #ffc7e9 0 160px, transparent 161px),
    linear-gradient(180deg, #b7ecff 0%, #d8fff0 60%, #fff5d6 100%);
}

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
}

.cloud {
  position: absolute;
  width: 220px;
  height: 70px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);

  cursor: grab;
  transition: left 0.6s ease, top 0.6s ease;
}

.cloud:active {
  cursor: grabbing;
  transition: none;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  z-index: 2;
}

.cloud::before {
  width: 90px;
  height: 90px;
  right: 30px;
  top: -35px;
}

.cloud::after {
  width: 70px;
  height: 70px;
  right: 120px;
  top: -25px;
}


.c1 { top: 70px; left: 84%; animation: float1 8s ease-in-out infinite; }
.c2 { top: 160px; left: 8%; animation: float2 10s ease-in-out infinite; }
.c3 { top: 260px; left: 70%; animation: float1 12s ease-in-out infinite; }

@keyframes float1 {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(-30px); }
}

@keyframes float2 {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(35px); }
}

@font-face {
  font-family: "SiteFont";
  src: url("/assets/fonts/main-font/site-font.woff2") format("woff2"),
       url("/assets/fonts/main-font/site-font.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.eyes {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  transition: transform 0.3s ease;
  z-index: 5;
}

.eye {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.eye::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: #f2f2f2;
  border-radius: 50%;
}

.eye i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #333;
  border-radius: 50%;
  top: 6px;
  left: 6px;
  transition: transform 0.05s linear;
  z-index: 5;
}

.eye::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 50%;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.1s ease-in-out;
  z-index: 10;

}

.eye.blink::after {
  transform: scaleY(1);
}


.moustache {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  pointer-events: none;
  transition: transform 0.3s ease;
  z-index: 7;
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 600px;
  z-index: 2;
}

a {
  text-decoration: none;
}

.game-btn {
  background: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.3s, filter 0.3s;
  position: relative;
  z-index: 1;
}

.game-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px 10px rgba(255, 255, 150, 0.7), 0 12px 25px rgba(0,0,0,0.15);
}

.game-btn img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
}

.smile {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) scale(0.7);
  width: 70px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.cloud:hover .moustache {
  transform: translateX(-50%) translateY(-18px);
}

.cloud:hover .smile {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.cloud:hover .eyes {
  transform: translateX(-50%) translateY(-16px);
}

footer {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #555;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #ffd3e7;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #c7f7ff;
  border-radius: 10px; 
  border: 3px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #fff6a6;
}


@media (max-width: 768px) {
  .games {
    width: 50%;
    max-width: 100%;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    padding: 10px 10px;
  }

  .game-btn {
    padding: 16px 10px;
    font-size: 0.95rem;
  }

  .game-btn img {
    width: 80px;
    height: 80px;
  }

    .cloud {
    width: 140px;
    height: 45px;
    transform-origin: top left;
  }

  .cloud::before {
    width: 55px;
    height: 55px;
    right: 18px;
    top: -22px;
  }

  .cloud::after {
    width: 45px; 
    height: 45px;
    right: 75px;
    top: -16px;
  }

 
  .c1 { top: 40px; left: 75%; animation: float1-mobile 7s ease-in-out infinite; }
  .c2 { top: 90px; left: 8%; animation: float2-mobile 9s ease-in-out infinite; }
  .c3 { top: 160px; left: 60%; animation: float1-mobile 10s ease-in-out infinite; }


  @keyframes float1-mobile {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-18px); }
  }
  @keyframes float2-mobile {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(22px); }
  }


  .eyes {
    bottom: 10px;
    gap: 9px;
  }
  .eye {
    width: 11px;
    height: 11px;
  }
  .eye::before {
    inset: 2px;
  }
  .eye i {
    width: 4.5px;
    height: 4.5px;
    top: 4px;
    left: 4px;
  }


  .moustache {
    bottom: -12px;
    width: 65px;
  }
  .smile {
    bottom: -5px;
    width: 45px;
    transform: translateX(-50%) scale(0.55);
  }


  .cloud:hover .moustache {
    transform: translateX(-50%) translateY(-12px);
  }
  .cloud:hover .smile {
    transform: translateX(-50%) scale(0.85);
  }
  .cloud:hover .eyes {
    transform: translateX(-50%) translateY(-10px);
  }


  .cloud {
    max-width: 90vw;
    left: clamp(5%, var(--original-left, 50%), 95%);
  }
  .c1 { --original-left: 75%; }
  .c2 { --original-left: 8%; }
  .c3 { --original-left: 60%; }
}







