* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Comic Sans MS, Verdana, sans-serif;
  color: #2b3550;
  line-height: 1.6;
}

.sky {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #bfe3ff 0%, #dff0ff 25%, #ffe2f2 60%, #ffd9ec 100%);
}

.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("img/cat.gif");
  background-repeat: repeat;
  background-size: 160px 168px;
}

/* clouds */
.cloud {
  position: absolute;
  width: 220px;
  opacity: 0.9;
  filter: drop-shadow(0 6px 10px rgba(80, 110, 160, 0.25));
  animation: drift 60s linear infinite;
}
.cloud-a { top: 6%;  left: -260px; width: 260px; animation-duration: 70s; }
.cloud-b { top: 18%; left: -200px; width: 180px; animation-duration: 50s; animation-delay: -15s; opacity: 0.75; }
.cloud-c { top: 32%; left: -300px; width: 320px; animation-duration: 90s; animation-delay: -40s; opacity: 0.65; }
.cloud-d { top: 4%;  left: -180px; width: 150px; animation-duration: 45s; animation-delay: -8s; opacity: 0.8; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 400px)); }
}

/* floating background bubbles */
#bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.bg-bubble {
  position: absolute;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.15) 60%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.6);
  animation: rise linear infinite;
}
@keyframes rise {
  from { transform: translateY(0) translateX(0); }
  to   { transform: translateY(-110vh) translateX(20px); }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

/* glossy aero panel */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 26px;
  box-shadow:
    0 10px 30px rgba(120, 140, 200, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.9);
  padding: 1.75rem 1.75rem;
  margin-bottom: 2rem;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.panel .shine {
  position: absolute;
  top: 0; left: 8%;
  width: 55%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0));
  border-radius: 50% 50% 60% 60% / 60% 60% 40% 40%;
  pointer-events: none;
}

.hero {
  text-align: center;
}

.avatar {
  width: 260px;
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  background: radial-gradient(circle at 35% 30%, #fff, #ffc4e0 45%, #ff9ecf 100%);
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(255, 130, 190, 0.45), inset 0 2px 4px rgba(255,255,255,0.8);
  color: #a4306d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 0.4rem;
  background: linear-gradient(180deg, #ff8fc7, #a76bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.tagline {
  color: #6b6f95;
  font-size: 1.05rem;
  margin: 0;
}

section h2 {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  color: #6a4fa0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bubble-icon {
  font-style: normal;
}

.about p {
  margin: 0;
  font-size: 1.05rem;
}

.link-grid {
  display: grid;
  gap: 0.75rem;
}

.link-card {
  display: block;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 18px;
  color: #4a4f7a;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(140, 150, 220, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(140, 150, 220, 0.3);
}

.game-sub {
  margin: -0.5rem 0 1rem;
  color: #6b6f95;
  font-size: 0.95rem;
}

.game-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6a4fa0;
}

.stat span {
  color: #d4527e;
  margin-left: 0.25rem;
}

.game-area {
  position: relative;
  height: 320px;
  border-radius: 20px;
  background: linear-gradient(180deg, #eaf6ff, #fdeaf6);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: inset 0 2px 8px rgba(140,150,220,0.15);
  overflow: hidden;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(2px);
  z-index: 5;
}

.game-overlay.hidden {
  display: none;
}

.start-btn, .again-btn {
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff9ecf, #a76bff);
  border: none;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(167, 107, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.6);
  cursor: pointer;
}

.start-btn:hover, .again-btn:hover {
  filter: brightness(1.05);
}

.game-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #bfe3ff 45%, #8fc8ff 100%);
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 4px 10px rgba(100,150,220,0.3), inset 0 2px 4px rgba(255,255,255,0.8);
  cursor: pointer;
}

.game-bubble.pink {
  background: radial-gradient(circle at 30% 30%, #ffffff, #ffc4e0 45%, #ff9ecf 100%);
}

.game-bubble.pop {
  animation: pop 0.25s ease forwards;
  pointer-events: none;
}

@keyframes pop {
  to { transform: scale(1.6); opacity: 0; }
}

footer {
  text-align: center;
  color: #6b6f95;
  font-size: 0.85rem;
  margin-top: 3rem;
}
