:root {
  --c1: #F5A300;
  --c2: #FFD36B;
  --ink: #2B2140;
  --ink-soft: #6B6182;
  --card: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.9);
  --bg: #FFF8EC;
  --shadow: 0 18px 40px -18px rgba(60, 30, 90, 0.35);
  --radius: 26px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-wrap: break-word;
  line-height: 1.5;
}
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; letter-spacing: -0.01em; line-height: 1.1; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
section { scroll-margin-top: 16px; }

.glass {
  background: var(--card); border: 1px solid var(--card-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* ---------- animated background ---------- */
.sky {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--c2) 70%, white) 0%, transparent 60%),
    linear-gradient(180deg, #FFF6E6 0%, #FDEFF6 55%, #EEF4FF 100%);
}
.blob {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(60px); opacity: 0.5; mix-blend-mode: multiply;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob.b1 { background: var(--c2); top: -25vmax; left: -20vmax; }
.blob.b2 { background: #FFC6DD; bottom: -30vmax; right: -25vmax; animation-delay: -7s; }
.blob.b3 { background: #C9DEFF; top: 30%; left: 45%; width: 40vmax; height: 40vmax; animation-delay: -13s; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
.particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.particle { position: absolute; top: -10%; animation: fall linear infinite; opacity: 0.8; will-change: transform; }
@keyframes fall {
  0% { transform: translate(0, -10vh) rotate(0deg); }
  50% { transform: translate(var(--sway), 55vh) rotate(180deg); }
  100% { transform: translate(0, 120vh) rotate(360deg); }
}

/* ---------- layout ---------- */
.wrap {
  width: 100%; max-width: 1100px; margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  overflow-x: clip; /* the glow behind the phone must not make the page wider than the screen */
}

.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 800; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #FFC93C, #FF7AA8 60%, #7AA8FF);
  color: white; font-family: "Fredoka", sans-serif; font-size: 20px; font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(255, 100, 150, 0.7);
}
.brand span:last-child { font-family: "Fredoka", sans-serif; font-size: 20px; white-space: nowrap; }
.nav { display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-weight: 800; font-size: 14px; padding: 0 12px; border-radius: 999px;
  transition: background 0.2s;
}
.nav a:hover { background: rgba(255, 255, 255, 0.7); }
.nav a:only-child { background: var(--card); border: 1px solid var(--card-border); }
@media (max-width: 420px) {
  .nav a:not(:only-child) { padding: 0 8px; font-size: 13px; }
  .brand { gap: 8px; }
  .brand span:last-child { font-size: 18px; }
}

.section-head { text-align: center; max-width: 620px; margin: 0 auto 22px; }
.section-head h2 { font-size: clamp(28px, 7vw, 42px); font-weight: 600; }
.section-head p { color: var(--ink-soft); margin-top: 10px; font-size: 16px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--c1) 70%, black); margin-bottom: 8px;
}

.pill, .badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: var(--card); border: 1px solid var(--card-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ink-soft);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3BC46B; box-shadow: 0 0 0 4px rgba(59, 196, 107, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(59, 196, 107, 0); } }
.badge.testing .dot { background: #F5A300; box-shadow: 0 0 0 4px rgba(245, 163, 0, 0.2); animation-name: pulse-amber; }
@keyframes pulse-amber { 50% { box-shadow: 0 0 0 8px rgba(245, 163, 0, 0); } }
.badge.soon .dot { background: #A9A1B8; box-shadow: none; animation: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border: 0; border-radius: 18px;
  font: 800 16px "Nunito", sans-serif; text-decoration: none; cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 55%, var(--c2)));
  box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--c1) 85%, black);
  transition: transform 0.15s, filter 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:hover { filter: brightness(1.05); }
.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.2s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn.ghost, .btn.light { background: white; color: var(--ink); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.3); }
.btn.ghost::after { display: none; }
.btn.disabled { opacity: 0.7; cursor: default; }
.btn svg { width: 22px; height: 22px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- hero ---------- */
.hero { display: grid; gap: 28px; align-items: center; padding: 24px 0 40px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding: 48px 0 64px; } }
.hero h1 { font-size: clamp(44px, 12vw, 80px); font-weight: 700; margin: 16px 0 14px; }
.hero-text > p { font-size: clamp(16px, 4.2vw, 20px); color: var(--ink-soft); max-width: 520px; }
@media (max-width: 859px) {
  .hero-text { text-align: center; }
  .hero-text > p { margin: 0 auto; }
  .cta-row { justify-content: center; }
}
.rainbow {
  background: linear-gradient(90deg, #F5A300, #FF5E9A, #8E6BFF, #2EA8FF, #F5A300);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 300% 0; } }

/* home collage */
.collage { position: relative; width: min(100%, 420px); aspect-ratio: 1.15; margin: 0 auto; }
.ci {
  position: absolute; width: 38%; border-radius: 26%;
  box-shadow: 0 18px 30px -14px rgba(60, 30, 90, 0.45);
  border: 4px solid white;
  animation: float 5s ease-in-out infinite;
}
.ci0 { left: 4%; top: 6%; --r: -8deg; animation-delay: 0s; }
.ci1 { left: 34%; top: 0%; --r: 5deg; width: 34%; animation-delay: -1s; z-index: 2; }
.ci2 { right: 2%; top: 10%; --r: 9deg; animation-delay: -2s; }
.ci3 { left: 0%; bottom: 4%; --r: 7deg; width: 34%; animation-delay: -3s; }
.ci4 { left: 32%; bottom: 0%; --r: -5deg; width: 40%; animation-delay: -1.5s; z-index: 3; }
.ci5 { right: 0%; bottom: 8%; --r: -10deg; width: 34%; animation-delay: -2.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-12px) rotate(calc(var(--r) * -0.4)); }
}

/* ---------- game grid ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 56px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.game-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  border-radius: var(--radius); padding: 10px 10px 16px;
  background: var(--card); border: 1px solid var(--card-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(.2, .9, .3, 1.4), box-shadow 0.35s, opacity 0.6s;
}
.game-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 26px 50px -20px color-mix(in srgb, var(--c1) 70%, transparent); }
.game-card:active { transform: scale(0.96); }
.game-card .art { position: relative; border-radius: calc(var(--radius) - 8px); overflow: hidden; aspect-ratio: 1; }
.game-card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.game-card:hover .art img { transform: scale(1.07); }
.game-card .art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 45%, transparent 60%);
  transform: translateX(-120%); transition: transform 0.9s;
}
.game-card:hover .art::after { transform: translateX(120%); }
.game-card .badge { position: absolute; left: 8px; top: 8px; padding: 4px 10px; font-size: 11px; color: var(--ink); background: rgba(255, 255, 255, 0.88); }
.game-card h3 { font-size: clamp(16px, 4.4vw, 21px); margin: 12px 6px 4px; font-weight: 600; }
.game-card p { font-size: 13px; color: var(--ink-soft); margin: 0 6px; display: none; }
@media (min-width: 760px) { .game-card p { display: block; } }
.game-card .go {
  margin: 10px 6px 0; align-self: flex-start;
  font-size: 13px; font-weight: 800; color: white;
  padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 60%, var(--c2)));
}

/* few cards: keep them in the middle of the row */
.grid.center { display: flex; flex-wrap: wrap; justify-content: center; }
.grid.center .game-card { width: calc((100% - 16px) / 2); }
@media (min-width: 760px) { .grid.center .game-card { width: calc((100% - 48px) / 3); } }

/* ---------- studio home ---------- */
.studio { --c1: #3D7BEA; --c2: #BCDCFF; --bg: #F5F9FF; }
.studio .sky {
  background:
    radial-gradient(120% 80% at 50% -10%, #DCEBFF 0%, transparent 60%),
    linear-gradient(180deg, #EEF5FF 0%, #F3F1FF 55%, #EAF8F3 100%);
}
.studio .blob { opacity: 0.4; mix-blend-mode: normal; }
.studio .blob.b2 { background: #DAD3FF; }
.studio .blob.b3 { background: #C4EEDF; }
.studio .brand-mark, .app-page .brand-mark { background: #2B2A6B; overflow: hidden; box-shadow: 0 6px 16px -6px rgba(43, 42, 107, 0.7); }
.studio .brand-mark img, .app-page .brand-mark img { display: block; width: 100%; height: 100%; }
.studio .rainbow { background-image: linear-gradient(90deg, #2E8BFF, #8E6BFF, #22B8A0, #2E8BFF); }
.studio-hero h1 { font-size: clamp(38px, 9vw, 66px); }
/* six equal icons in two rows, so none hides behind another */
.studio .ci { width: 32%; }
.studio .ci0, .studio .ci3 { left: 0; right: auto; }
.studio .ci1, .studio .ci4 { left: 34%; right: auto; }
.studio .ci2, .studio .ci5 { left: auto; right: 0; }
.studio .ci0, .studio .ci1, .studio .ci2 { top: 8%; bottom: auto; }
.studio .ci3, .studio .ci4, .studio .ci5 { top: auto; bottom: 8%; }
/* an app's name does not say what it does, so its card keeps the text on phones */
.grid.center .game-card p { display: block; }
.studio .game-card p { display: block; }
.studio .game-card { height: 100%; }
.studio .game-card .go { margin-top: auto; }
.highlights { display: none; list-style: none; flex-wrap: wrap; gap: 6px; margin: 10px 6px 14px; }
.highlights li {
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink);
  background: color-mix(in srgb, var(--c2) 32%, white);
}
@media (min-width: 760px) { .highlights { display: flex; } }
@media (max-width: 759px) { .studio .game-card .go { margin-top: 10px; } }
.foot-cols { display: grid; gap: 22px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.foot-cols div { display: flex; flex-direction: column; font-size: 14px; }
.foot-cols b { margin-bottom: 4px; }
.foot-cols a { display: flex; align-items: center; min-height: 36px; color: var(--ink-soft); text-decoration: none; }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; }
.legal { margin-top: 20px; border-top: 1px solid rgba(43, 33, 64, 0.1); }
.legal summary { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 800; cursor: pointer; }
.legal-rows { display: grid; gap: 2px 24px; grid-template-columns: 1fr; padding-bottom: 8px; }
@media (min-width: 760px) { .legal-rows { grid-template-columns: repeat(2, 1fr); } }
.legal-rows div { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.legal-rows b { flex: 1; font-size: 14px; font-weight: 700; }
.legal-rows a { display: flex; align-items: center; min-height: 40px; color: var(--ink-soft); }
.made { margin-top: 18px; font-size: 14px; font-weight: 800; }
.made + .copy, .credit + .copy { margin-top: 4px; }
.credit { margin-top: 4px; font-size: 13px; color: var(--ink-soft); }

/* ---------- app pages ---------- */
.app-tag { font-family: "Fredoka", sans-serif; font-weight: 600; color: color-mix(in srgb, var(--c1) 80%, black); margin-bottom: 8px; }
.hero-text > p.app-tag { color: color-mix(in srgb, var(--c1) 80%, black); }
@media (min-width: 1000px) { .app-page .feats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .feats.three { grid-template-columns: repeat(3, 1fr); } }
.app-page .particles { display: none; }
.phone.tall { aspect-ratio: 1080 / 2424; width: min(58vw, 270px); }
.gallery.tall .shots img { aspect-ratio: 1080 / 2424; }
@media (min-width: 900px) { .gallery.tall .shots { row-gap: 18px; } }
.sample { margin-top: 2px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.step-no { font-family: "Fredoka", sans-serif; font-weight: 700; color: var(--c1); }
.faqs { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq { padding: 0 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 10px 0;
  font-weight: 800; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 500; line-height: 1; color: var(--c1); }
.faq[open] summary::after { content: "–"; }
.faq p { padding-bottom: 16px; font-size: 15px; color: var(--ink-soft); }

/* ---------- why ---------- */
.why { padding-bottom: 56px; }
.why-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .why-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.why-card, .feat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--card-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.why-card b, .feat b { font-family: "Fredoka", sans-serif; font-size: 18px; font-weight: 600; }
.why-card span:last-child, .feat span:last-child { font-size: 14px; color: var(--ink-soft); }
.why-ic, .feat-ic {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 6px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c2) 60%, white), white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 8px 16px -10px rgba(60, 30, 90, 0.4);
}
.why-card:nth-child(2) .why-ic { background: linear-gradient(135deg, #FFD3E2, white); }
.why-card:nth-child(3) .why-ic { background: linear-gradient(135deg, #D6E6FF, white); }
.why-card:nth-child(4) .why-ic { background: linear-gradient(135deg, #D7F3DC, white); }
.why-ic.big { width: 72px; height: 72px; font-size: 38px; border-radius: 22px; margin: 0 auto 12px; }

/* ---------- tester band ---------- */
.band { padding-bottom: 56px; }
.band-inner {
  position: relative; overflow: hidden; text-align: center;
  padding: 40px 20px; border-radius: 32px; color: white;
  background: linear-gradient(135deg, #FF8A5C, #FF5E9A 45%, #8E6BFF);
  box-shadow: 0 30px 60px -30px rgba(142, 107, 255, 0.8);
}
.band-inner::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 40%);
  animation: drift 12s ease-in-out infinite alternate;
}
.band-inner > * { position: relative; }
.band .eyebrow { color: rgba(255, 255, 255, 0.85); }
.band h2 { font-size: clamp(28px, 7vw, 44px); font-weight: 600; }
.band p { max-width: 560px; margin: 12px auto 22px; opacity: 0.92; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 6px 14px 6px 6px; border-radius: 999px; font-weight: 800; font-size: 14px;
  background: white; color: var(--ink);
  transition: transform 0.2s;
}
.chip:hover { transform: translateY(-3px); }
.chip img { width: 28px; height: 28px; border-radius: 50%; }

/* ---------- contact ---------- */
.contact {
  text-align: center; max-width: 620px; margin: 0 auto 56px; padding: 36px 20px; border-radius: 32px;
  background: var(--card); border: 1px solid var(--card-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.contact h2 { font-size: clamp(28px, 7vw, 40px); font-weight: 600; }
.contact p { color: var(--ink-soft); margin: 10px 0 22px; }

/* ---------- footer ---------- */
.footer { padding: 40px 0 32px; background: rgba(255, 255, 255, 0.55); border-top: 1px solid rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.foot-top p { color: var(--ink-soft); font-size: 14px; }
.foot-links { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .foot-links { grid-template-columns: repeat(3, 1fr); } }
.foot-links.one { grid-template-columns: 1fr; }
.foot-links div { display: flex; flex-direction: column; font-size: 14px; }
.foot-links b { font-size: 14px; }
.foot-links a { display: block; padding: 10px 0; color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.copy { margin-top: 28px; font-size: 13px; color: var(--ink-soft); }
.copy a { color: inherit; }

/* ---------- game page ---------- */
.title-row { display: flex; align-items: center; gap: 12px; }
@media (max-width: 859px) { .title-row { justify-content: center; } }
.app-icon { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--c1) 80%, black); }
.game-hero h1 { font-size: clamp(40px, 11vw, 68px); }
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(64vw, 280px); aspect-ratio: 9 / 16; border-radius: 36px; padding: 8px;
  background: linear-gradient(160deg, #3A2E55, #1D1530);
  box-shadow: 0 40px 70px -30px color-mix(in srgb, var(--c1) 70%, black), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  transform: rotate(4deg);
  animation: bob 5s ease-in-out infinite;
}
.phone img, .phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #1D1530; }
.phone.has-video { aspect-ratio: 886 / 1920; width: min(58vw, 270px); }
.sound {
  position: absolute; right: -14px; bottom: 40px; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 22px; background: white; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s;
}
.sound:active { transform: scale(0.9); }
.sound.nudge { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.5); } }

/* screenshot viewer */
.shots img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: rgba(20, 12, 30, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 520px); max-height: 86vh; width: auto; height: auto; border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); transform: scale(0.94); transition: transform 0.3s cubic-bezier(.2, .9, .3, 1.3);
}
.lightbox.open img { transform: none; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); font: 700 30px/1 "Fredoka", sans-serif;
}
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: white; font-weight: 800; font-size: 14px; }
.phone::before {
  content: ""; position: absolute; inset: -30px; z-index: -1; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--c1), var(--c2), #fff, var(--c1));
  filter: blur(40px); opacity: 0.55; animation: spin 12s linear infinite;
}
@keyframes bob { 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-stage { position: relative; width: 168px; height: 168px; margin: 8px auto; }
.icon-stage.big { width: min(60vw, 280px); height: min(60vw, 280px); }
.icon-stage .ring {
  position: absolute; inset: -18px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--c1), var(--c2), #fff, var(--c1));
  filter: blur(18px); opacity: 0.75; animation: spin 9s linear infinite;
}
.icon-stage img {
  position: relative; width: 100%; height: 100%; border-radius: 24%;
  box-shadow: 0 24px 44px -16px color-mix(in srgb, var(--c1) 80%, black);
  animation: bob 4s ease-in-out infinite;
}

.gallery { position: relative; margin: 0 -16px 56px; }
.arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  font: 700 28px/1 "Fredoka", sans-serif; color: var(--ink);
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s, transform 0.2s;
}
.arrow:active { transform: translateY(-50%) scale(0.92); }
.arrow.prev { left: 10px; }
.arrow.next { right: 10px; }
.arrow[hidden] { display: block; opacity: 0; pointer-events: none; }
.shots {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 16px 24px; scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots img {
  flex: none; width: min(56vw, 230px); aspect-ratio: 9 / 16; object-fit: cover; scroll-snap-align: center;
  border-radius: 24px; box-shadow: var(--shadow); border: 4px solid white;
  transition: transform 0.3s;
}
.shots img:hover { transform: translateY(-6px) rotate(-1deg); }
/* Wide screens: every screenshot fits in one row, no scrolling needed. */
@media (min-width: 900px) {
  .gallery { margin: 0 0 56px; }
  .shots { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); overflow: visible; padding: 10px 0 24px; }
  .shots img { width: 100%; }
  .arrow { display: none !important; }
}

.about { padding-bottom: 56px; }
.feats { display: grid; gap: 14px; }
@media (min-width: 640px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feats { grid-template-columns: repeat(4, 1fr); } }

/* in-app browser banner */
.inapp {
  display: none; margin: 4px 0 8px; padding: 18px; border-radius: 22px; text-align: center;
  background: linear-gradient(135deg, #2B2140, #4A3A78); color: white;
  box-shadow: 0 18px 40px -16px rgba(43, 33, 64, 0.7);
  animation: wiggle 2.4s ease-in-out infinite;
}
.inapp.show { display: block; }
@keyframes wiggle { 0%, 90%, 100% { transform: none; } 93% { transform: rotate(-1.2deg); } 96% { transform: rotate(1.2deg); } }
.inapp p { font-size: 14px; opacity: 0.85; margin: 4px 0 14px; }
.inapp b { font-size: 17px; }
.inapp .btn { width: 100%; }
.inapp .ios-hint { display: none; font-size: 14px; margin-top: 4px; }
.inapp.ios .btn { display: none; }
.inapp.ios .ios-hint { display: block; }

/* tester steps */
.tester { max-width: 600px; margin: 0 auto; padding-bottom: 56px; }
.tester > .btn { width: 100%; }
.steps { display: grid; gap: 14px; margin-bottom: 16px; }
.step {
  padding: 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.step .btn { width: 100%; }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.num {
  flex: none; width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center;
  font-family: "Fredoka", sans-serif; font-size: 22px; font-weight: 700; color: white;
  background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 50%, var(--c2)));
  transition: transform 0.4s cubic-bezier(.2, .9, .3, 1.6);
}
.step h3 { font-size: 20px; font-weight: 600; }
.step .sub { font-size: 14px; color: var(--ink-soft); }
.step.done .num { background: #3BC46B; transform: rotate(360deg); }
.step.done .num::before { content: "✓"; }
.step.done .num span { display: none; }
.notes {
  margin-bottom: 16px; padding: 20px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--c2) 22%, rgba(255, 255, 255, 0.7));
  border: 1px dashed color-mix(in srgb, var(--c1) 45%, white);
}
.notes h3 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.notes ul { list-style: none; display: grid; gap: 12px; }
.notes li { display: flex; gap: 12px; font-size: 15px; }
.notes li .ic { flex: none; font-size: 20px; line-height: 1.3; }

/* more games */
.more { padding-bottom: 56px; }
.minis { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.minis .mini { flex: 0 1 160px; min-width: 140px; }
.mini {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 18px; text-decoration: none;
  background: var(--card); border: 1px solid var(--card-border); font-weight: 800; font-size: 14px; line-height: 1.2;
  transition: transform 0.25s;
}
.mini:hover { transform: translateY(-4px); }
.mini img { width: 48px; height: 48px; border-radius: 14px; flex: none; }

/* ---------- effects ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .9, .3, 1.2); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.game-card.reveal.in:hover { transform: translateY(-6px) rotate(-1deg); transition-delay: 0s; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%);
  padding: 12px 18px; border-radius: 999px; font-weight: 800; font-size: 14px;
  background: var(--ink); color: white; transition: transform 0.35s cubic-bezier(.2, .9, .3, 1.4); z-index: 10;
}
.toast.show { transform: translate(-50%, 0); }
.confetti { position: fixed; pointer-events: none; z-index: 20; font-size: 22px; animation: pop 1.1s ease-out forwards; }
@keyframes pop {
  0% { transform: translate(0, 0) scale(0.4); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(var(--rot)); opacity: 0; }
}

/* Touch screens have no hover: a tapped card must not stay lifted. */
@media (hover: none) {
  .game-card:hover, .game-card.reveal.in:hover, .mini:hover, .chip:hover, .shots img:hover { transform: none; }
  .game-card:hover .art img { transform: none; }
}

/* Older phones without color-mix would lose these whole backgrounds. */
@supports not (color: color-mix(in srgb, red, blue)) {
  .btn, .game-card .go, .num { background: var(--c1); }
  .sky { background: linear-gradient(180deg, #FFF6E6 0%, #FDEFF6 55%, #EEF4FF 100%); }
  .studio .sky { background: linear-gradient(180deg, #EEF5FF 0%, #F3F1FF 55%, #EAF8F3 100%); }
  .why-ic, .feat-ic { background: linear-gradient(135deg, var(--c2), white); }
  .eyebrow { color: var(--ink-soft); }
  .notes { background: rgba(255, 255, 255, 0.7); border-color: var(--c1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .particles { display: none; }
}
