@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --purple-950: #1f0b40;
  --purple-900: #2c1160;
  --purple-700: #5524a6;
  --purple-600: #6b32c4;
  --purple-500: #8548dc;
  --purple-200: #dccbf7;
  --lavender: #f5effe;
  --cream: #fff8ea;
  --yellow: #ffcb2b;
  --orange: #ff8d1c;
  --orange-deep: #e86a00;
  --ink: #2a1848;
  --muted: #62557a;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 14px 34px rgba(60, 24, 120, 0.16);
  --display: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-600); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #efe6fb;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--display); font-weight: 500; font-size: 17px;
  color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--lavender); color: var(--purple-700); }
.nav a.nav-cta { background: var(--purple-600); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--purple-700); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 600; font-size: 19px;
  text-decoration: none; border-radius: 999px; padding: 15px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #3a1a00;
  background: linear-gradient(180deg, #ffd84a 0%, #ffab1f 100%);
  box-shadow: 0 6px 0 var(--orange-deep), 0 16px 28px rgba(0, 0, 0, 0.25);
}
.btn-primary:hover { box-shadow: 0 8px 0 var(--orange-deep), 0 20px 32px rgba(0, 0, 0, 0.28); }
.btn-primary small { display: block; font-family: var(--body); font-weight: 600; font-size: 12px; line-height: 1; opacity: 0.75; letter-spacing: 0.02em; }
.btn-primary span { display: block; line-height: 1.1; }
.btn-ghost { color: #fff; border: 2px solid rgba(255, 255, 255, 0.55); padding: 13px 24px; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-purple { color: #fff; background: var(--purple-600); box-shadow: 0 5px 0 var(--purple-900); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 85% 8%, rgba(255, 173, 60, 0.30), transparent 62%),
    radial-gradient(700px 500px at 5% 95%, rgba(255, 110, 199, 0.22), transparent 60%),
    linear-gradient(155deg, #33127a 0%, #5a25b8 48%, #8a47e2 100%);
}
.hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 150px;
}
.hero-logo { width: min(430px, 82%); margin: 0 0 14px -10px; filter: drop-shadow(0 12px 22px rgba(20, 0, 60, 0.45)); }
.hero h1 { font-size: clamp(34px, 4.3vw, 54px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--yellow); display: block; }
.hero p.lead { font-size: 20px; color: #ece2ff; max-width: 500px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-meta { margin-top: 22px; font-size: 14px; color: #d6c6f7; }

.hero-art { position: relative; justify-self: center; width: min(430px, 100%); }
.hero-art .poster {
  border-radius: 34px; border: 7px solid #fff; transform: rotate(2.5deg);
  box-shadow: 0 30px 60px rgba(18, 0, 55, 0.5);
  aspect-ratio: 1100 / 1325; object-fit: cover; width: 100%;
}
.hero-art .float { position: absolute; filter: drop-shadow(0 14px 18px rgba(18, 0, 55, 0.4)); }
.hero-art .float-duck { width: 44%; left: -19%; bottom: 7%; animation: bob 5s ease-in-out infinite; }
.hero-art .float-octo { width: 38%; right: -15%; top: 6%; animation: bob 6s ease-in-out -2s infinite; }

.bubble {
  position: absolute; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.9) 0 7%, rgba(255, 255, 255, 0.18) 9% 40%, rgba(255, 255, 255, 0.05) 60%, rgba(255, 255, 255, 0.22) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  animation: rise 14s ease-in-out infinite;
}
.b1 { width: 90px; height: 90px; left: 4%; top: 16%; }
.b2 { width: 46px; height: 46px; left: 44%; top: 9%; animation-delay: -4s; }
.b3 { width: 130px; height: 130px; right: 3%; bottom: 22%; animation-delay: -7s; }
.b4 { width: 34px; height: 34px; left: 52%; bottom: 17%; animation-delay: -2s; }
.b5 { width: 60px; height: 60px; left: 9%; bottom: 30%; animation-delay: -10s; }
@keyframes rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; z-index: 2; display: block; }

/* Sections */
section { padding: 84px 0; }
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: 10px;
}
.section-title { font-size: clamp(30px, 3.6vw, 44px); color: var(--purple-900); margin-bottom: 14px; }
.section-lead { font-size: 19px; color: var(--muted); max-width: 640px; margin-bottom: 44px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* How it plays: demo + features */
.play { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 44px; align-items: center; }
.features { display: grid; gap: 16px; }
.feature {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start;
  background: var(--lavender); border-radius: var(--radius); padding: 22px 24px;
  border: 2px solid #eadffb;
}
.feature .num {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 24px; color: #3a1a00;
  background: linear-gradient(180deg, #ffd84a, #ffab1f); box-shadow: 0 4px 0 var(--orange-deep);
}
.feature h3 { font-size: 23px; color: var(--purple-900); margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.55; }

.demo { width: 100%; max-width: 440px; margin: 0 auto; }
.demo-board {
  position: relative; aspect-ratio: 1 / 1; border-radius: 26px; padding: 0;
  background: linear-gradient(160deg, #6a35c9, #45189a);
  border: 10px solid #4a1da6; box-shadow: 0 0 0 4px #ffcb2b, 0 22px 40px rgba(60, 24, 120, 0.35);
  overflow: hidden; transition: opacity 0.4s ease;
}
.demo-board.fade { opacity: 0.15; }
.demo-cells, .demo-pieces { position: absolute; inset: 0; }
.demo-cells {
  background-image: url("/assets/tile.webp"); background-size: 20% 20%;
}
.demo-piece {
  position: absolute; width: 20%; height: 20%; display: grid; place-items: center;
  transition: left var(--slide, 450ms) cubic-bezier(0.3, 0.1, 0.25, 1), top var(--slide, 450ms) cubic-bezier(0.3, 0.1, 0.25, 1), transform 0.3s ease, opacity 0.3s ease;
}
.demo-piece img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(30, 10, 80, 0.35)); }
.demo-piece.glow { transform: scale(1.16); z-index: 2; }
.demo-piece.glow img { filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 14px #ffe36b); }
.demo-piece.pop { transform: scale(0.1); opacity: 0; }
.demo-bubble {
  position: absolute; width: var(--size, 6%); aspect-ratio: 1; border-radius: 50%; z-index: 3; pointer-events: none;
  margin: calc(var(--size, 6%) / -2) 0 0 calc(var(--size, 6%) / -2);
  background: radial-gradient(circle at 32% 30%, #fff 0 22%, rgba(255, 255, 255, 0.55) 26% 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  animation: demo-burst 0.65s ease-out forwards;
}
@keyframes demo-burst {
  from { transform: translate(0, 0) scale(0.4); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(1.1); opacity: 0; }
}
.demo-hand {
  position: absolute; width: 30%; z-index: 5; opacity: 0; pointer-events: none;
  transform: scale(1.12); transform-origin: 15% 12%;
  transition-property: left, top, opacity, transform; transition-timing-function: cubic-bezier(0.3, 0.1, 0.25, 1);
  transition-duration: 0ms;
  filter: drop-shadow(0 8px 8px rgba(20, 0, 60, 0.4));
}
.demo-hand.show { opacity: 1; transition: opacity 0.25s ease, transform 0.2s ease, left 0ms, top 0ms; }
.demo-hand.show.press { transform: scale(0.96); transition-property: left, top, opacity, transform; transition-timing-function: cubic-bezier(0.3, 0.1, 0.25, 1); }
.demo-steps { list-style: none; display: flex; justify-content: center; gap: 10px; padding: 0; margin: 22px 0 8px; }
.demo-steps li {
  font-family: var(--display); font-weight: 600; font-size: 15px; padding: 6px 16px; border-radius: 999px;
  color: var(--muted); background: var(--lavender); border: 2px solid #eadffb; transition: all 0.25s ease;
}
.demo-steps li.on { color: #3a1a00; background: linear-gradient(180deg, #ffd84a, #ffab1f); border-color: #ffab1f; transform: scale(1.08); }
.demo-caption { text-align: center; color: var(--muted); font-size: 15px; margin: 0; min-height: 1.6em; }

/* Match items */
.items-section { background: linear-gradient(180deg, #fff 0%, var(--lavender) 100%); padding-top: 20px; }
.items { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.item {
  flex: 0 1 196px; background: #fff; border-radius: var(--radius); padding: 16px 14px 20px;
  box-shadow: var(--shadow); border: 2px solid #f1e9fc; transition: transform 0.2s ease;
}
.item:hover { transform: translateY(-6px) scale(1.03); }
.item-pic { height: 150px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; }
.item-pic img { width: auto; max-height: 112px; max-width: 78%; filter: drop-shadow(0 10px 10px rgba(40, 10, 90, 0.25)); }
.item h3 { font-size: 21px; color: var(--purple-900); margin-bottom: 4px; }
.item p { font-size: 15px; line-height: 1.45; color: var(--muted); margin: 0; }
.item-blue .item-pic { background: radial-gradient(circle at 50% 40%, #e6f3ff, #b9dcff); }
.item-red .item-pic { background: radial-gradient(circle at 50% 40%, #ffe9e6, #ffc0b8); }
.item-yellow .item-pic { background: radial-gradient(circle at 50% 40%, #fff6d6, #ffe392); }
.item-green .item-pic { background: radial-gradient(circle at 50% 40%, #e6f9e0, #b8ebaa); }
.item-purple .item-pic { background: radial-gradient(circle at 50% 40%, #fbe6ff, #efb8fb); }

/* Crew */
.crew-section { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }
.crew { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 18px 16px 22px; text-align: center;
  box-shadow: var(--shadow); border: 2px solid #f1e9fc;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card .pic {
  height: 170px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; padding: 12px;
}
.card .pic img { max-height: 146px; width: auto; filter: drop-shadow(0 8px 10px rgba(40, 10, 90, 0.28)); }
.pic.sun { background: radial-gradient(circle at 50% 35%, #fff3c4, #ffe08a); }
.pic.sea { background: radial-gradient(circle at 50% 35%, #e3f6ff, #b6e4fb); }
.pic.pink { background: radial-gradient(circle at 50% 35%, #ffe9f3, #ffc9df); }
.pic.red { background: radial-gradient(circle at 50% 35%, #ffe2dc, #ffb7a8); }
.pic.teal { background: radial-gradient(circle at 50% 35%, #dcf7f4, #a9e6e0); }
.card h3 { font-size: 22px; color: var(--purple-900); margin-bottom: 2px; }
.card .role { font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--orange-deep); margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; }

/* Journey */
.journey-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 16px; }
.journey-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); }
.journey-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.journey-grid figure:hover img { transform: scale(1.05); }
.journey-grid .tall { grid-row: span 2; }
.journey-grid .wide { grid-column: span 2; background: linear-gradient(120deg, #f4dc8f 0%, #dfe39a 45%, #c3d98c 100%); }
.journey-grid .wide img { object-fit: cover; object-position: 50% 58%; }
.journey-grid figcaption {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--purple-900);
  background: rgba(255, 255, 255, 0.92); padding: 5px 13px; border-radius: 999px;
}

/* CTA band */
.cta {
  position: relative; overflow: hidden; color: #fff; text-align: center; padding: 76px 0 84px;
  background:
    radial-gradient(600px 300px at 15% 100%, rgba(255, 173, 60, 0.35), transparent 65%),
    linear-gradient(140deg, #4a1da6, #7b3fdb);
}
.cta h2 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 12px; }
.cta p { color: #e8dcff; font-size: 19px; margin-bottom: 30px; }
.cta .icon { width: 108px; height: 108px; border-radius: 26px; margin: 0 auto 22px; border: 4px solid #fff; box-shadow: 0 16px 30px rgba(18, 0, 55, 0.4); }
.cta .peek { position: absolute; width: 210px; right: 5%; bottom: -18px; }

/* Studio */
.studio { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.studio-card { background: var(--lavender); border-radius: 28px; padding: 44px 36px; text-align: center; border: 2px solid #eadffb; }
.studio-card img { width: 290px; margin: 0 auto 18px; }
.studio-card p { color: var(--muted); margin: 0; font-size: 15px; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.facts li { padding-left: 30px; position: relative; color: var(--muted); }
.facts li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 18%, var(--yellow) 22% 100%); box-shadow: 0 2px 0 var(--orange-deep);
}

/* Footer */
.site-footer { background: var(--purple-950); color: #cbbbe8; padding: 56px 0 34px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { font-family: var(--display); font-weight: 600; font-size: 17px; color: #fff; margin: 0 0 12px; }
.site-footer a { color: #e6d9ff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .name { font-family: var(--display); font-weight: 600; font-size: 24px; color: #fff; margin-bottom: 10px; }
.site-footer .name span { color: var(--yellow); }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px; font-size: 13px; color: #a493c6; }

/* Inner pages */
.page-hero {
  color: #fff; padding: 62px 0 96px; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 90% 0%, rgba(255, 173, 60, 0.28), transparent 65%), linear-gradient(150deg, #33127a, #6a2fc8);
}
.page-hero h1 { font-size: clamp(34px, 4.4vw, 50px); margin-bottom: 8px; }
.page-hero p { color: #e8dcff; font-size: 19px; margin: 0; max-width: 620px; }
.page-hero .mascot { position: absolute; right: 6%; bottom: -26px; width: 190px; z-index: 3; filter: drop-shadow(0 12px 16px rgba(18, 0, 55, 0.4)); }
.page-hero .wave { height: 60px; }
.page { padding: 50px 0 84px; }
.page .wrap { max-width: 800px; }
.page h2 { font-size: 25px; color: var(--purple-900); margin: 40px 0 10px; }
.page h3 { font-size: 19px; color: var(--purple-900); margin: 24px 0 4px; font-weight: 600; }
.page p, .page li { color: #4d4263; }
.page li { margin-bottom: 7px; }
.page strong { color: var(--ink); }
.page .date { color: var(--muted); font-size: 15px; }
.contact-card {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--lavender); border: 2px solid #eadffb; border-radius: var(--radius); padding: 26px 28px; margin: 26px 0 8px;
}
.contact-card img { width: 112px; margin-bottom: -26px; align-self: flex-end; }
.contact-card { overflow: hidden; }
.contact-card .label { font-size: 14px; color: var(--muted); margin: 0; }
.contact-card a.mail { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 5vw, 25px); text-decoration: none; color: var(--purple-700); word-break: break-word; }
.faq { border: 2px solid #eee4fb; border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 500; font-size: 19px; color: var(--purple-900); padding: 14px 0; list-style-position: outside; }
.faq p { margin: 0 0 16px; }
.notfound { text-align: center; padding: 80px 0 100px; }
.notfound img { width: 220px; margin: 0 auto 20px; }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; padding-top: 44px; padding-bottom: 130px; text-align: center; }
  .hero-logo { margin: 0 auto 14px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { width: min(340px, 74%); }
  .play { grid-template-columns: 1fr; gap: 36px; }
  .crew { grid-template-columns: repeat(2, 1fr); }
  .crew .card:last-child { grid-column: span 2; }
  .journey-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 210px; }
  .journey-grid .tall { grid-row: span 1; grid-column: span 2; height: 300px; }
  .journey-grid { grid-auto-rows: auto; }
  .journey-grid figure:not(.tall) { height: 210px; }
  .studio { grid-template-columns: 1fr; gap: 34px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .cta .peek { display: none; }
  .page-hero .mascot { width: 120px; right: 4%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .wrap { padding: 0 18px; }
  .site-header .wrap { height: 62px; }
  .brand img { height: 38px; }
  .nav { gap: 0; }
  .nav a { padding: 7px 8px; font-size: 14.5px; white-space: nowrap; }
  .item { flex-basis: 150px; }
  .item-pic { height: 124px; }
  .item-pic img { max-height: 92px; }
  .nav a.nav-cta { display: none; }
  .hero p.lead { font-size: 18px; }
  .btn { font-size: 18px; padding: 14px 24px; }
  .wave { height: 60px; }
  .card .pic { height: 140px; }
  .card .pic img { max-height: 118px; }
  .page-hero { padding: 44px 0 80px; }
  .page-hero .mascot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.brand { flex: none; }
@media (max-width: 380px) { .nav a:first-child { display: none; } }
