:root {
  --ink: #2b2350;
  --sun: #ffd23f;
  --goo: #2ec4b6;
  --radius: 24px;
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  background: linear-gradient(#7fd4ff 0%, #c9efff 55%, #eafaff 100%);
  overflow-x: hidden;
}

/* ---------- Sky ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.sun {
  position: absolute; top: 34px; right: 9%;
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffbe0, #ffd23f 55%, #ffab1f);
  box-shadow: 0 0 0 14px rgba(255, 226, 120, .28), 0 0 0 32px rgba(255, 226, 120, .16), 0 0 70px 30px rgba(255, 220, 110, .5);
}
.cloud {
  position: absolute; left: -200px;
  width: 160px; height: 50px; border-radius: 50px;
  background: linear-gradient(#fff 55%, #dcefff);
  opacity: .9;
  animation: drift 70s linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 70px; height: 70px; left: 22px; top: -34px; }
.cloud::after { width: 56px; height: 56px; left: 78px; top: -24px; }
.c1 { top: 12%; }
.c2 { top: 30%; animation-duration: 95s; animation-delay: -40s; transform: scale(.7); }
.c3 { top: 6%; animation-duration: 120s; animation-delay: -80s; transform: scale(1.2); }
@keyframes drift { to { left: 110%; } }
.bubble {
  position: absolute; bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95), rgba(126, 240, 192, .35) 45%, rgba(46, 196, 182, .3));
  border: 2px solid rgba(255, 255, 255, .7);
  animation: rise linear infinite;
}
.b1 { left: 8%; width: 46px; height: 46px; animation-duration: 16s; }
.b2 { left: 27%; width: 26px; height: 26px; animation-duration: 22s; animation-delay: -9s; }
.b3 { left: 71%; width: 58px; height: 58px; animation-duration: 19s; animation-delay: -5s; }
.b4 { left: 90%; width: 32px; height: 32px; animation-duration: 25s; animation-delay: -14s; }
@keyframes rise {
  0% { transform: translate(0, 0); }
  50% { transform: translate(24px, -55vh); }
  100% { transform: translate(-10px, -115vh); }
}

/* ---------- Layout ---------- */
main { position: relative; max-width: 1000px; margin: 0 auto; padding: 36px 22px 40px; }

.hero { text-align: center; }
.flask { width: 104px; height: 121px; margin: 0 auto -6px; animation: wobble 4s ease-in-out infinite; transform-origin: 50% 90%; }
.flask svg { width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.logo {
  margin: 0 0 24px;
  font-size: clamp(60px, 12vw, 116px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--ink), 0 4px 0 var(--ink), 0 6px 0 var(--ink), 0 8px 0 var(--ink),
    0 10px 0 #1c1638, 0 18px 22px rgba(43, 35, 80, .35);
  transform: perspective(600px) rotateX(14deg);
}
.logo .lab { color: #7ef0c0; }
.tagline { margin: 0 0 34px; font-size: 22px; font-weight: 800; }

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; }

.game-card {
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  background: linear-gradient(#fff, #f3f0ff);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 10px 0 var(--ink), 0 26px 32px rgba(43, 35, 80, .25);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
a.game-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 16px 0 var(--ink), 0 34px 38px rgba(43, 35, 80, .28); }
a.game-card:active { transform: translateY(6px); box-shadow: 0 3px 0 var(--ink); }
a.game-card:focus-visible { outline: 5px solid var(--sun); outline-offset: 4px; }

.thumb { aspect-ratio: 16 / 9; border-bottom: 4px solid var(--ink); background: #c9efff; }
.thumb svg { width: 100%; height: 100%; display: block; }
.info { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.info h2 { margin: 0 0 6px; font-size: 30px; font-weight: 900; }
.info p { margin: 0 0 14px; font-size: 17px; font-weight: 700; line-height: 1.4; color: #4a4470; }
.tags { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: #e9e5fb; }
.play {
  margin-top: auto; align-self: flex-start;
  font-size: 22px; font-weight: 900;
  padding: 10px 28px;
  border: 3px solid var(--ink); border-radius: 16px;
  background: linear-gradient(rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 48%, rgba(0, 0, 0, .1)), var(--sun);
  box-shadow: 0 6px 0 var(--ink);
}

.game-card.soon { border-style: dashed; box-shadow: none; background: rgba(255, 255, 255, .6); }
.game-card.soon .thumb { display: grid; place-items: center; border-bottom-style: dashed; background: rgba(255, 255, 255, .5); }
.soon-flask { font-size: 84px; animation: wobble 3s ease-in-out infinite; }

footer { margin-top: 44px; text-align: center; font-size: 15px; font-weight: 800; color: #4a4470; }

@media (prefers-reduced-motion: reduce) {
  .cloud, .bubble, .flask, .soon-flask { animation: none; }
}
