/* Puzzle World's page: the game's own light, rounded look (PuzzleWorld src/style.css) inside the studio's header and footer. */

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

:root {
  --void: #fff4ec;
  --deep: #ffe8ef;
  --panel: rgba(255, 250, 245, 0.86);
  --line: #f3cbd6;
  --text: #2b1d3a;
  --muted: #6d5a7a;
  --cyan: #ff6f91;
  --pink: #ff6f91;
  --pink-dark: #e04e74;
  --teal: #2ec4b6;
  --teal-dark: #1f9e92;
  --gold: #ffbe3b;
  --violet: #9b7bff;
  --sky: #4ea8ff;
  --leaf: #7bd05a;
  --ui: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --radius: 28px;
  color-scheme: light;
}
body { background: linear-gradient(180deg, #fff4ec 0%, #ffeef3 45%, #fde7f0 100%); font-weight: 500; }
::selection { background: rgba(255, 111, 145, 0.3); }
:focus-visible { outline-color: var(--pink); }

/* Background: soft pastel blobs and dots instead of the studio's aurora and grid. */
.sky::before { background: radial-gradient(circle, #ffd1dc, transparent 65%); opacity: 0.9; }
.sky::after { background: radial-gradient(circle, #c9f3ee, transparent 65%); opacity: 0.9; }
.grid-floor {
  opacity: 0.6;
  background-image: radial-gradient(rgba(255, 111, 145, 0.18) 1.5px, transparent 1.6px);
  background-size: 28px 28px;
}

/* The studio header, light. */
.top.is-solid { background: rgba(255, 244, 236, 0.85); border-color: var(--line); }
.brand { color: var(--text); }
.brand img { filter: none; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--pink-dark); }
.lang-btn { background: #fff; color: var(--text); border-color: var(--line); box-shadow: 0 3px 0 var(--line); }
.lang-btn:hover { border-color: var(--pink); }

.eyebrow { color: var(--pink-dark); letter-spacing: 0.16em; }
.eyebrow::before { box-shadow: none; border-radius: 2px; }
.grad { background: linear-gradient(90deg, var(--pink), var(--gold) 50%, var(--teal)); -webkit-background-clip: text; background-clip: text; }
h2.title { font-weight: 700; letter-spacing: 0; }
.lead { color: var(--muted); }

/* Chunky, pressable buttons like the game's. */
.btn { background: var(--pink); color: #fff; border-radius: 999px; box-shadow: 0 6px 0 var(--pink-dark), 0 16px 30px -12px rgba(224, 78, 116, 0.6); }
.btn:hover { box-shadow: 0 8px 0 var(--pink-dark), 0 20px 36px -12px rgba(224, 78, 116, 0.7); }
.btn.ghost { background: #fff; color: var(--text); box-shadow: 0 6px 0 var(--line); }
.store { border-radius: 18px; box-shadow: 0 6px 0 #000, 0 14px 30px -14px rgba(43, 29, 58, 0.5); background: #2b1d3a; border-color: #2b1d3a; }
.store:hover { border-color: #2b1d3a; box-shadow: 0 8px 0 #000, 0 18px 34px -14px rgba(43, 29, 58, 0.6); }
.store.is-soon:hover { box-shadow: 0 6px 0 #000, 0 14px 30px -14px rgba(43, 29, 58, 0.5); }
.panel { background: var(--panel); border: 0; box-shadow: 0 8px 0 var(--line), 0 24px 50px -30px rgba(224, 78, 116, 0.45); }
.foot { border-color: var(--line); }

/* Hero */
.hero { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
.hero .field { z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero .store-row, .hero .chips-row { justify-content: center; } .hero .lead { margin-left: auto; margin-right: auto; } }
.pw-logo { margin: 18px 0 0; font-size: clamp(58px, 10vw, 112px); line-height: 0.95; font-weight: 700; letter-spacing: -0.01em; }
.pw-logo .w { display: inline-block; white-space: nowrap; }
.pw-logo .l { display: inline-block; animation: hop 0.9s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i) * 55ms + 150ms); }
.pw-logo .pink { color: var(--pink); text-shadow: 0 5px 0 var(--pink-dark), 0 18px 30px rgba(224, 78, 116, 0.25); }
.pw-logo .teal { color: var(--teal); text-shadow: 0 5px 0 var(--teal-dark), 0 18px 30px rgba(31, 158, 146, 0.25); }
@keyframes hop { 0% { transform: translateY(40px) scale(0.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.hero .lead { margin: 22px 0 28px; }
/* Bubbles drift behind the words: a soft halo keeps them readable. */
.hero .lead, .chips-row, .eyebrow { text-shadow: 0 0 6px #fff4ec, 0 0 14px #fff4ec, 0 0 22px #fff4ec; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: var(--muted); font-size: 15px; font-weight: 600; }
.chips-row span::before { content: '●'; margin-right: 6px; color: var(--teal); }
.chips-row span:nth-child(2)::before { color: var(--gold); }
.chips-row span:nth-child(3)::before { color: var(--pink); }

/* A phone, drawn in CSS, around a screenshot. */
.phone {
  position: relative; width: min(300px, 74vw); margin: 0 auto; padding: 12px; border-radius: 44px;
  background: #fff; box-shadow: 0 10px 0 var(--line), 0 40px 80px -30px rgba(224, 78, 116, 0.55);
}
.phone img { border-radius: 33px; width: 100%; height: auto; aspect-ratio: 480 / 1039; object-fit: cover; background: var(--deep); }
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; width: 70px; height: 7px; margin-left: -35px; border-radius: 4px; background: rgba(43, 29, 58, 0.12); z-index: 1; }
.hero .phone { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(1.5deg); } }

/* The four games */
.games { display: grid; gap: clamp(60px, 9vw, 110px); margin-top: 60px; }
.game-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.game-row:nth-child(even) .phone { order: 2; }
@media (max-width: 860px) { .game-row { grid-template-columns: 1fr; } .game-row:nth-child(even) .phone { order: 0; } }
.game-row .icon {
  width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 40px;
  background: var(--tint); box-shadow: 0 6px 0 var(--tint-dark);
}
.game-row h3 { margin: 18px 0 10px; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; }
.game-row p { margin: 0 0 18px; color: var(--muted); font-size: 18px; max-width: 520px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.facts li { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 4px 0 var(--line); font-weight: 600; font-size: 15px; }
.game-row .phone { width: min(270px, 70vw); }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 18px; font-size: 26px; }
.chain span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 3px 0 var(--line); transition: transform 0.2s; }
.chain span:hover { transform: translateY(-4px) scale(1.12); }
.chain i { color: var(--muted); font-style: normal; font-size: 14px; }

/* Shared level */
.level { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: clamp(28px, 5vw, 48px); max-width: 920px; margin: 0 auto; }
@media (max-width: 640px) { .level { grid-template-columns: 1fr; text-align: center; } }
.star {
  width: 120px; height: 120px; display: grid; place-items: center; font-size: 44px; font-weight: 700; color: #fff; margin: 0 auto;
  background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 6px 0 #e09a12); animation: spin-star 8s linear infinite;
}
@keyframes spin-star { 50% { transform: rotate(14deg) scale(1.06); } }
.level h2 { margin: 0 0 8px; }
.bar { height: 22px; border-radius: 999px; background: #f2e3ea; overflow: hidden; margin-top: 18px; box-shadow: inset 0 3px 0 rgba(43, 29, 58, 0.06); }
.bar span { display: block; height: 100%; width: 8%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--gold)); transition: width 2.4s cubic-bezier(.2,.7,.2,1); }
.bar.is-full span { width: 86%; }

/* FAQ, light */
.faq { max-width: 820px; margin: 44px auto 0; display: grid; gap: 14px; text-align: left; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--pink); font-size: 26px; line-height: 1; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.final { text-align: center; overflow: hidden; isolation: isolate; }
.final .field { z-index: -1; }
.final h2 { font-size: clamp(40px, 8vw, 84px); margin: 0 0 14px; line-height: 1; }
.final .lead { margin-left: auto; margin-right: auto; }
.final .store-row { justify-content: center; margin-top: 30px; }
