:root {
  --pink: #f2679b;
  --pink-light: #ffd6e5;
  --yellow: #ffc83d;
  --ink: #3a1d47;
  --ink-soft: #5e4a68;
  --bg: #ffffff;
  --bg-tint: #fff5f9;
  --radius: 24px;
  --shadow: 0 10px 0 var(--ink);
  --font: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 60%, var(--pink-light) 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.nav-name {
  font-family: "Lilita One", var(--font);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--yellow);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--ink);
}

.nav-squid {
  width: auto;
  height: 42px;
  mix-blend-mode: multiply;
  transition: transform 0.2s;
}

.nav-brand:hover .nav-squid {
  transform: rotate(-8deg) scale(1.08);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s;
}

.nav-links a:hover {
  border-color: var(--pink);
}

/* ---------- Games ---------- */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 2.5rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 6px;
  margin: 0.6rem auto 0;
  background: var(--pink);
  border-radius: 999px;
}

.games {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.games .section-title {
  grid-column: 1 / -1;
}

.game-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-bottom: 3px solid var(--ink);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.game-info {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.game-info h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.game-link {
  font-weight: 600;
  color: var(--pink);
  text-decoration: none;
}

.game-link:hover {
  text-decoration: underline;
}

.store-badges {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.store-badges a {
  display: block;
  border-radius: 10px;
  transition: transform 0.15s, opacity 0.15s;
}

.store-badges a:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.store-badges img {
  display: block;
  height: 56px;
  width: auto;
}

.coming-soon {
  flex-basis: 100%;
  margin: 0;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.game-info .btn {
  flex-basis: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--ink);
}

.btn:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- About ---------- */
.about {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  font-weight: 500;
}

.site-footer p {
  margin: 0;
}

/* ---------- Bubbles ---------- */
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bubbles span {
  position: absolute;
  bottom: -80px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(242, 103, 155, 0.35);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 214, 229, 0.35));
  animation: rise 14s linear infinite;
}

.bubbles span:nth-child(1)  { left: 5%;  width: 24px; height: 24px; animation-duration: 12s; }
.bubbles span:nth-child(2)  { left: 15%; width: 40px; height: 40px; animation-duration: 18s; animation-delay: 2s; }
.bubbles span:nth-child(3)  { left: 28%; width: 18px; height: 18px; animation-duration: 10s; animation-delay: 4s; }
.bubbles span:nth-child(4)  { left: 40%; width: 34px; height: 34px; animation-duration: 16s; animation-delay: 1s; }
.bubbles span:nth-child(5)  { left: 52%; width: 22px; height: 22px; animation-duration: 13s; animation-delay: 6s; }
.bubbles span:nth-child(6)  { left: 63%; width: 46px; height: 46px; animation-duration: 20s; animation-delay: 3s; }
.bubbles span:nth-child(7)  { left: 74%; width: 20px; height: 20px; animation-duration: 11s; animation-delay: 7s; }
.bubbles span:nth-child(8)  { left: 83%; width: 30px; height: 30px; animation-duration: 15s; animation-delay: 5s; }
.bubbles span:nth-child(9)  { left: 91%; width: 16px; height: 16px; animation-duration: 9s;  animation-delay: 8s; }
.bubbles span:nth-child(10) { left: 97%; width: 36px; height: 36px; animation-duration: 17s; animation-delay: 0s; }
.bubbles span:nth-child(11) { left: 9%;  width: 14px; height: 14px; animation-duration: 10s; animation-delay: 9s; }
.bubbles span:nth-child(12) { left: 21%; width: 28px; height: 28px; animation-duration: 14s; animation-delay: 11s; }
.bubbles span:nth-child(13) { left: 33%; width: 50px; height: 50px; animation-duration: 22s; animation-delay: 6s; }
.bubbles span:nth-child(14) { left: 46%; width: 16px; height: 16px; animation-duration: 9s;  animation-delay: 3s; }
.bubbles span:nth-child(15) { left: 57%; width: 26px; height: 26px; animation-duration: 13s; animation-delay: 10s; }
.bubbles span:nth-child(16) { left: 68%; width: 18px; height: 18px; animation-duration: 11s; animation-delay: 1.5s; }
.bubbles span:nth-child(17) { left: 79%; width: 42px; height: 42px; animation-duration: 19s; animation-delay: 12s; }
.bubbles span:nth-child(18) { left: 88%; width: 22px; height: 22px; animation-duration: 12s; animation-delay: 4.5s; }
.bubbles span:nth-child(19) { left: 2%;  width: 32px; height: 32px; animation-duration: 16s; animation-delay: 7s; }
.bubbles span:nth-child(20) { left: 37%; width: 12px; height: 12px; animation-duration: 8s;  animation-delay: 2.5s; }
.bubbles span:nth-child(21) { left: 49%; width: 38px; height: 38px; animation-duration: 18s; animation-delay: 13s; }
.bubbles span:nth-child(22) { left: 60%; width: 14px; height: 14px; animation-duration: 10s; animation-delay: 5.5s; }
.bubbles span:nth-child(23) { left: 72%; width: 30px; height: 30px; animation-duration: 15s; animation-delay: 8.5s; }
.bubbles span:nth-child(24) { left: 18%; width: 20px; height: 20px; animation-duration: 12s; animation-delay: 14s; }
.bubbles span:nth-child(25) { left: 94%; width: 26px; height: 26px; animation-duration: 14s; animation-delay: 10.5s; }

@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(20px, -55vh); }
  100% { transform: translate(-10px, -115vh); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .games {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-name {
    font-size: 1.15rem;
    -webkit-text-stroke-width: 4px;
  }
  .nav-squid {
    height: 34px;
  }
  .nav-links {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bubbles span {
    animation: none;
  }
  .bubbles {
    display: none;
  }
  .game-card,
  .btn,
  .nav-squid,
  .store-badges a {
    transition: none;
  }
}
