@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/fredoka.woff2) format('woff2');
}

:root {
  --bg: #fff7f1;
  --bg-soft: #ffeef3;
  --card: #ffffff;
  --ink: #3d1a36;
  --ink-soft: #6e4a66;
  --pink: #ef3a74;
  --pink-dark: #a0103e;
  --sky: #92d1f7;
  --sun: #fccb0a;
  --line: #f3d6e0;
  --radius: 22px;
  --wrap: 1080px;
  --shadow: 0 6px 0 rgba(160, 16, 62, .12), 0 14px 30px rgba(61, 26, 54, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 'Fredoka', ui-rounded, 'Segoe UI', system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-dark); }
a:hover { color: var(--pink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; border-radius: 10px; }

/* header */
.site-header { background: #fff; border-bottom: 3px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.brand img { width: 150px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--bg-soft); color: var(--pink-dark); }
.nav a[aria-current="page"] { background: var(--pink); color: #fff; }
@media (max-width: 640px) {
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; padding-top: 10px; padding-bottom: 8px; }
  .brand img { width: 136px; }
  .nav { justify-content: center; }
  .nav a { padding: 6px 11px; font-size: 15px; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--pink); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1.05rem;
  box-shadow: 0 4px 0 var(--pink-dark);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 var(--pink-dark); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--pink-dark); }
.btn.alt { background: #fff; color: var(--pink-dark); box-shadow: 0 4px 0 var(--line), inset 0 0 0 2px var(--line); }
.btn.alt:hover { color: var(--pink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { padding: 56px 0 64px; background: radial-gradient(circle at 80% 20%, #ffe0ea 0, transparent 55%), radial-gradient(circle at 10% 90%, #e2f3fd 0, transparent 50%); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 32px; }
.hero .tagline { font-size: clamp(1.15rem, 3vw, 1.45rem); color: var(--ink-soft); margin-bottom: 1.4em; }
.hero .mascot { width: 100%; max-width: 320px; justify-self: center; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .hero .mascot { animation: none; } }
@media (max-width: 720px) {
  .hero { padding: 32px 0 44px; text-align: center; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .mascot { max-width: 180px; order: -1; }
  .hero .btns { justify-content: center; }
}

/* sections */
section { padding: 48px 0; }
.page-head { padding: 44px 0 8px; }
.page-head p { color: var(--ink-soft); font-size: 1.15rem; max-width: 640px; }
.soft { background: var(--bg-soft); }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.feature-game img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.pill {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: var(--sun); color: var(--ink); font-size: .85rem; font-weight: 600; margin-bottom: 10px;
}
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; list-style: none; }
.facts li { background: var(--bg-soft); border-radius: 999px; padding: 4px 12px; font-size: .95rem; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.values .card-body h3 { color: var(--pink-dark); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* trailer */
.trailer { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.trailer img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.trailer .play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(239, 58, 116, .92); box-shadow: 0 5px 0 var(--pink-dark);
  display: grid; place-items: center; transition: transform .15s ease;
}
.trailer .play::after { content: ""; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; margin-left: 6px; }
.trailer:hover .play { transform: scale(1.08); }
.small { font-size: .9rem; color: var(--ink-soft); }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.shots img { border-radius: 16px; box-shadow: var(--shadow); aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }
@media (max-width: 760px) {
  .shots { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .shots img { scroll-snap-align: start; }
}

.play-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.play-list .card-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; height: 100%; }
.play-list p { color: var(--ink-soft); margin: 0; flex: 1; }

/* prose */
.prose > * { max-width: 720px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.mail {
  display: inline-block; font-size: clamp(1.2rem, 5vw, 1.7rem); font-weight: 600;
  background: #fff; padding: 12px 22px; border-radius: 16px; box-shadow: var(--shadow);
  text-decoration: none; word-break: break-all;
}

/* footer */
.site-footer { margin-top: 40px; background: var(--ink); color: #f6e3ee; padding: 32px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }

/* ---------- creative layer ---------- */
.hero-sky {
  position: relative; overflow: hidden; padding-bottom: 110px;
  background:
    radial-gradient(circle at 78% 30%, rgba(255,216,77,.55) 0, transparent 28%),
    radial-gradient(circle at 15% 15%, rgba(126,232,250,.45) 0, transparent 35%),
    radial-gradient(circle at 60% 95%, rgba(255,126,179,.35) 0, transparent 40%),
    linear-gradient(180deg, #ffe9f1 0%, #fff4e6 60%, #fff7f1 100%);
}
.hero-sky .wrap { position: relative; z-index: 2; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.75); border: 2px solid var(--line);
  font-weight: 600; font-size: .9rem; color: var(--pink-dark); letter-spacing: .03em; text-transform: uppercase;
}
.rainbow {
  background: linear-gradient(90deg, #ef3a74, #f7931e, #fccb0a, #14b8a6, #3a86ff, #9b5de5, #ef3a74);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% 0; } }
.mascot-wrap { position: relative; justify-self: center; width: 100%; max-width: 340px; }
.mascot-wrap .mascot { position: relative; z-index: 1; max-width: 100%; }
.halo {
  position: absolute; inset: -12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,216,77,.6) 0, rgba(255,216,77,0) 65%);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.08); opacity: .7; } }

.jelly { position: absolute; width: 64px; height: 64px; z-index: 1; filter: drop-shadow(0 6px 6px rgba(61,26,54,.15)); animation: float 5s ease-in-out infinite; }
.jelly.inline { position: relative; display: inline-block; vertical-align: middle; width: 1.3em; height: 1.3em; animation-duration: 3s; filter: none; }
.j1 { right: 3%; top: 8%; width: 54px; height: 54px; }
.j2 { left: 44%; top: 6%;  width: 40px; height: 40px; animation-delay: -1s; }
.j3 { right: 4%; top: 64%; width: 58px; height: 58px; animation-delay: -2s; }
.j4 { left: 38%; bottom: 70px; width: 46px; height: 46px; animation-delay: -3s; }
.j5 { right: 38%; top: 12%; width: 34px; height: 34px; animation-delay: -1.5s; }
.j6 { left: 2%; bottom: 90px; width: 42px; height: 42px; animation-delay: -2.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}
.spark { position: absolute; width: 18px; height: 18px; color: #fccb0a; z-index: 1; animation: twinkle 2.4s ease-in-out infinite; }
.s1 { left: 22%; top: 10%; } .s2 { right: 16%; top: 22%; animation-delay: -.8s; color: #ff7eb3; }
.s3 { left: 52%; bottom: 120px; animation-delay: -1.6s; color: #7ee8fa; } .s4 { right: 6%; bottom: 150px; animation-delay: -.4s; }
@keyframes twinkle { 50% { transform: scale(.4) rotate(45deg); opacity: .4; } }
.slash {
  position: absolute; z-index: 1; left: 30%; top: 8%; width: 60%; height: 70%; opacity: .7;
  stroke-dasharray: 700; stroke-dashoffset: 700; animation: slash 4.5s ease-in-out infinite;
}
.slash path { stroke-dasharray: 700; stroke-dashoffset: 700; animation: slash 4.5s ease-in-out infinite; }
@keyframes slash { 0% { stroke-dashoffset: 700; opacity: 0; } 15% { opacity: 1; } 35% { stroke-dashoffset: 0; opacity: 1; } 55%, 100% { stroke-dashoffset: 0; opacity: 0; } }

.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; z-index: 2; fill: var(--ink); }

.marquee { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; padding: 14px 0; }
.marquee div { display: inline-block; animation: marquee 28s linear infinite; }
.marquee span { font-weight: 700; font-size: 1.3rem; margin: 0 22px; }
.marquee span:nth-child(5n+1) { color: #ff7eb3; } .marquee span:nth-child(5n+2) { color: #fccb0a; }
.marquee span:nth-child(5n+3) { color: #7ee8fa; } .marquee span:nth-child(5n+4) { color: #b9f6a5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* cards: playful hover */
.card { border: 3px solid #fff; transition: transform .2s ease, box-shadow .2s ease; }
.values .card:nth-child(1) { background: #fff0f5; } .values .card:nth-child(2) { background: #fff8e1; } .values .card:nth-child(3) { background: #e9f7fd; }
.values .card:hover, .play-list .card:hover { transform: translateY(-6px) rotate(-1deg); }
.feature-game { border-radius: 30px; }

/* page heads */
.page-head { position: relative; overflow: hidden; padding: 56px 0 32px; background: linear-gradient(180deg, #ffe9f1, var(--bg)); }
.page-head .wrap { position: relative; z-index: 2; }
.page-head .jelly.p1 { right: 8%; top: 22%; width: 70px; height: 70px; }
.page-head .jelly.p2 { right: 22%; top: 58%; width: 40px; height: 40px; animation-delay: -2s; }
@media (max-width: 640px) { .page-head .jelly.p1 { width: 44px; height: 44px; top: 12%; right: 4%; } .page-head .jelly.p2 { display: none; } }

/* phones */
.phones { perspective: 1000px; }
.phones img { border: 6px solid var(--ink); border-radius: 26px; transition: transform .25s ease; }
@media (min-width: 761px) {
  .phones img:nth-child(1) { transform: rotate(-6deg) translateY(16px); }
  .phones img:nth-child(2) { transform: rotate(-3deg) translateY(4px); }
  .phones img:nth-child(4) { transform: rotate(3deg) translateY(4px); }
  .phones img:nth-child(5) { transform: rotate(6deg) translateY(16px); }
  .phones img:hover { transform: translateY(-12px) scale(1.04); z-index: 2; position: relative; }
}

@media (max-width: 720px) {
  .hero-sky { padding-bottom: 90px; }
  .mascot-wrap { max-width: 190px; order: -1; }
  .j2, .j5, .s3 { display: none; }
  .j1 { top: 4%; } .j3 { top: auto; bottom: 90px; }
  .slash { left: 0; width: 100%; top: 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .jelly, .spark, .slash, .slash path, .halo, .marquee div, .rainbow { animation: none !important; }
  .slash path { stroke-dashoffset: 0; }
}
.page-head + section { padding-top: 20px; }
@media (max-width: 720px) { .j4, .j6 { display: none; } }
