/* ==========================================================================
   Bubble Springs: the landing page (index.html)
   The game's own colours (the app repo's lib/ui/kit.dart Palette and each
   world's sky, Palette.skyOf), the store slides' ink outline and gold word,
   cream-rimmed cards like the game's panels. The font is the game's own,
   Fredoka (SIL OFL), served from this folder. No CDN, no trackers.

   The privacy page keeps assets/site.css. A project folder on this site
   is self-contained (CLAUDE.md §2).
   ========================================================================== */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* contrast noted where text sits on the colour */
  --page:   #fff8ec;   /* the game's cream */
  --card:   #ffffff;
  --ink:    #0c2744;   /* Palette.navyDeep: 14.3 on the page */
  --soft:   #4b6079;   /* 6.1 on the page */
  --navy:   #143b62;   /* Palette.navy: white on it 11.5 */
  --link:   #0a6e63;   /* a deep teal for links: 5.8 on the page, white on it 6.2 */
  --teal:   #19b5a5;   /* Palette.teal: fills only, ink text on it 5.9 */
  --teal-edge: #0e8577;
  --gold:   #ffc23d;   /* Palette.gold: ink text on it 10.8 */
  --gold-edge: #d08a12;
  --coral:  #ff7a6b;   /* Palette.coral: fills only */
  --cream:  #fff8ec;
  --cream-edge: #e6d3b3;
  --outline: #1c1630; /* the slides' word outline */
  --deep:   #143a78;   /* the reef's deep water: white on it 11.0 */

  --meadow: #8ec9f2;   /* the worlds' skies, Palette.skyOf */
  --meadow-low: #f7dda4;
  --reef:   #2fb7d6;
  --snow:   #8fb6e8;
  --snow-low: #f6c9d6;

  --shadow: 0 22px 46px rgba(12, 39, 68, .2), 0 6px 14px rgba(12, 39, 68, .1);
  --r: 26px;
  --pad: clamp(16px, 5vw, 40px);
  --maxw: 1160px;
  --sans: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.55;
  color: var(--ink); background: var(--page); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 12px; font-weight: 600; }

h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; font-weight: 500; }
.fine { font-size: .92rem; color: var(--soft); }

/* --------------------------------------------------------------- header --- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 236, .94);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(12, 39, 68, .12); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.crumb { color: var(--soft); font-weight: 600; white-space: nowrap; }
.crumb:hover { color: var(--ink); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--soft); font-weight: 600; border-bottom: 2px solid transparent; padding: 3px 0; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--teal); text-decoration: none; }
.head-actions { display: flex; gap: 10px; }
@media (max-width: 980px) { .nav { display: none; } .head-actions { margin-left: auto; } }
@media (max-width: 520px) { .crumb { font-size: 0; } .crumb::before { content: "\2190"; font-size: 1.1rem; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* -------------------------------------------------------------- buttons --- */
.btn { display: inline-flex; align-items: center; gap: 9px; font: inherit; font-weight: 600;
  font-size: 1.05rem; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-teal { background: var(--link); color: #fff; box-shadow: 0 6px 0 #064b43; }
.btn-ghost { background: rgba(255, 255, 255, .75); color: var(--ink); border-color: rgba(12, 39, 68, .2); }
.btn-ghost:hover { background: #fff; }
.btn-white { background: var(--cream); color: var(--ink); box-shadow: 0 6px 0 var(--cream-edge); }
.btn-sm { padding: 6px 16px; font-size: .95rem; }

/* ------------------------------------------------------ the game's look --- */
/* a word the way the game and its slides write a big word: ink outline */
.gold-word { color: var(--gold); -webkit-text-stroke: 6px var(--outline); paint-order: stroke fill; }
.cheer { position: absolute; z-index: 5; font-weight: 700; color: #fff; line-height: 1;
  -webkit-text-stroke: 7px var(--outline); paint-order: stroke fill; white-space: nowrap;
  text-shadow: 0 6px 0 var(--outline); transform: rotate(var(--tilt, -8deg)); }
.cheer em { font-style: normal; color: var(--gold); }

/* a cream-rimmed card, tilted, like the game's panels on the slides */
.card-shot { background: var(--cream); border: 10px solid var(--cream); border-radius: 32px;
  overflow: hidden; box-shadow: 0 0 0 4px var(--outline), 0 12px 0 4px rgba(28, 22, 48, .35), var(--shadow);
  transform: rotate(var(--tilt, -2deg)); }
.card-shot img { width: 100%; border-radius: 22px; }

/* a sunburst behind a band */
.burst-bg { position: relative; overflow: hidden; isolation: isolate; }
.burst-bg::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 2600px; height: 2600px; margin: -1300px 0 0 -1300px;
  background: repeating-conic-gradient(rgba(255, 255, 255, .18) 0 7deg, transparent 7deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 20%, transparent 58%);
          mask: radial-gradient(circle, #000 0, #000 20%, transparent 58%); }
.cloud { position: absolute; z-index: -1; width: 180px; height: 56px; background: #fff;
  border-radius: 60px; opacity: .9; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 84px; height: 84px; left: 26px; top: -42px; }
.cloud::after { width: 64px; height: 64px; left: 92px; top: -28px; }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; height: 130px; }
.hills svg { width: 100%; height: 100%; }

/* the throw: the game's past-throw dots across the top of the hero */
.arc { position: absolute; left: 0; right: 0; top: 0; height: 170px; z-index: 1; pointer-events: none; }
.arc svg { width: 100%; height: 100%; }

/* a sprite that floats; a tap pops it into soap drops and it comes back */
.float { position: absolute; z-index: 2; animation: bob 6s ease-in-out infinite; }
.float button { all: unset; display: block; cursor: pointer; border-radius: 50%; }
.float button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.float img { width: 100%; filter: drop-shadow(0 14px 14px rgba(12, 39, 68, .25)); }
.float.popped { animation: pop .3s ease-out forwards; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
                 50% { transform: translateY(-16px) rotate(calc(var(--tilt, 0deg) * -1)); } }
@keyframes pop { 0% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.18); opacity: 1; }
                 100% { transform: scale(1.5); opacity: 0; } }
.drop { position: absolute; z-index: 3; width: 12px; height: 12px; border-radius: 50%;
  pointer-events: none; border: 2px solid rgba(255, 255, 255, .9);
  animation: drop .7s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes drop { to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }

/* ----------------------------------------------------------------- hero --- */
.hero { background: linear-gradient(180deg, #6fb8ec 0%, var(--meadow) 40%, #d6ecf6 72%, var(--meadow-low) 100%);
  padding: 160px 0 150px; }
.hero .wrap { position: relative; z-index: 3; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 44px; align-items: center; }
.store-name { color: var(--ink); font-weight: 600; margin-bottom: 14px; }
.wordmark { width: min(440px, 100%); margin: 0 0 18px; }
.hero h1 { color: var(--ink); }
.hero .lead { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 20px; }
.soon { display: inline-block; background: var(--navy); color: #fff; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 6px 0 var(--ink); margin: 0; }
.promises { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-weight: 600; }
/* the dot ends an item, so no wrapped line starts with one */
.promises li:not(:last-child)::after { content: "\00b7"; margin-left: 16px; color: var(--soft); }

.phone { position: relative; justify-self: center; width: min(320px, 76vw); aspect-ratio: 9 / 16;
  background: var(--outline); border-radius: 46px; padding: 11px; transform: rotate(3deg);
  box-shadow: 0 40px 80px rgba(12, 39, 68, .35); }
.phone > img, .phone > video { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone .pip { position: absolute; width: 150px; right: -70px; top: -84px; transform: rotate(-6deg);
  filter: drop-shadow(0 12px 12px rgba(12, 39, 68, .3)); }
.phone .cheer { left: -92px; bottom: 120px; font-size: 3rem; --tilt: -10deg; }
.phone-caption { text-align: center; margin-top: 22px; font-weight: 500; color: var(--ink); font-size: .95rem; }

@media (max-width: 900px) {
  .hero { padding: 110px 0 140px; text-align: center; }
  .hero .wrap { grid-template-columns: 1fr; gap: 70px; }
  .wordmark { margin: 0 auto 18px; }
  .hero-cta, .promises { justify-content: center; }
  .hero .float:not(.keep) { display: none; }
  .hero .float { width: 62px !important; }
  /* on a phone the two that stay sit clear of the words: Pip above them, the bubble under the phone */
  .hero .f-pip { top: 22px !important; right: 4% !important; }
  .hero .f-bubble { top: auto !important; bottom: 40px; left: 6% !important; }
  .phone .cheer { left: -24px; font-size: 2.3rem; }
  .phone .pip { width: 112px; right: -26px; top: -66px; }
}

/* ------------------------------------------------------------- sections --- */
section { padding: clamp(70px, 10vw, 116px) 0; }
.section-head { max-width: 780px; margin: 0 auto 46px; text-align: center; }
.section-head .lead { color: var(--soft); }
.after { max-width: 780px; margin: 34px auto 0; text-align: center; color: var(--soft); }

/* how to play */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 70px; }
.step { position: relative; background: var(--card); border-radius: var(--r); padding: 86px 24px 26px;
  text-align: center; box-shadow: 0 8px 0 var(--cream-edge), 0 14px 30px rgba(12, 39, 68, .07); }
.step img { position: absolute; left: 50%; top: -52px; width: 124px; transform: translateX(-50%) rotate(var(--tilt, 0deg));
  filter: drop-shadow(0 12px 12px rgba(12, 39, 68, .22)); }
.step .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-weight: 700; margin-bottom: 10px; box-shadow: 0 3px 0 var(--gold-edge); }
.step p { color: var(--soft); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 440px; margin: 70px auto 0; row-gap: 74px; } }

/* split: words and a picture */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 44px; } .split.flip > :first-child { order: 0; }
  .split .card-shot { max-width: 520px; margin: 0 auto; } }

/* the story band: deep water, white words */
.band-story { background: radial-gradient(circle at 70% 40%, #1f5c9e 0%, var(--deep) 62%); color: #fff; }
.band-story .lead { color: #fff; }
.band-story .story-pics { position: relative; }
.band-story .story-pics .pip { position: absolute; width: 130px; left: -26px; bottom: -64px; z-index: 2;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .35)); }
.sprinkle { position: absolute; z-index: -1; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .5);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .55), rgba(143, 220, 255, .12) 60%); }
.nests { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nests li { background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 16px; font-weight: 600; }

/* stats */
.stats { list-style: none; padding: 0; margin: 0 auto 50px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; max-width: 900px; }
.stats li { background: var(--card); border-radius: 22px; text-align: center; padding: 16px 10px 14px;
  box-shadow: 0 6px 0 var(--cream-edge); }
.stats b { display: block; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; color: var(--navy); }
.stats span { color: var(--soft); font-weight: 600; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* the three worlds: the game's own backdrop, a cream panel, a real screen */
.worlds { display: grid; gap: 30px; }
.world { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center;
  border-radius: 34px; padding: 30px; overflow: hidden; isolation: isolate; box-shadow: var(--shadow);
  background-size: cover; background-position: center bottom; }
.world::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9; }
.w-meadow { background-image: url("worlds/meadow.webp"); }
.w-meadow::before { background: linear-gradient(180deg, rgba(142, 201, 242, .55), rgba(247, 221, 164, .2)); }
.w-reef { background-image: url("worlds/reef.webp"); }
.w-reef::before { background: linear-gradient(180deg, rgba(47, 183, 214, .4), rgba(20, 58, 120, .5)); }
.w-snow { background-image: url("worlds/snow.webp"); }
.w-snow::before { background: linear-gradient(180deg, rgba(143, 182, 232, .45), rgba(246, 201, 214, .3)); }
.world .panel { background: rgba(255, 248, 236, .96); border-radius: 26px; padding: 24px 26px 18px;
  box-shadow: 0 8px 0 var(--cream-edge); }
.world h3 { font-size: 2.1rem; display: flex; align-items: center; gap: 12px; }
.world h3 img { width: 58px; }
.world .opens { display: inline-block; font-weight: 600; background: var(--navy); color: #fff;
  padding: 4px 14px; border-radius: 999px; font-size: .95rem; margin-bottom: 12px; }
.zones { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.zones li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px;
  border-top: 1px solid rgba(12, 39, 68, .1); padding-top: 8px; }
.zones b { font-weight: 600; }
.zones span { color: var(--link); font-weight: 600; }
.world .card-shot { max-width: 300px; justify-self: center; }
.world .card-shot img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; }
@media (max-width: 860px) { .world { grid-template-columns: 1fr; padding: 20px; } .world .card-shot { max-width: 280px; } }

/* the Long Climb: Snow Peak's dusk */
.band-climb { background: linear-gradient(180deg, var(--snow) 0%, #c9c7ea 55%, var(--snow-low) 100%); }
.heights { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.heights li { background: var(--cream); border-radius: 20px; padding: 10px 18px 8px; box-shadow: 0 0 0 4px var(--outline), 0 8px 0 4px rgba(28, 22, 48, .3); }
.heights b { display: block; font-size: 2rem; line-height: 1; }
.heights span { font-size: .9rem; font-weight: 600; color: var(--soft); }
.climb-pics { position: relative; max-width: 380px; margin: 0 auto; }
.climb-pics .card-shot img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.climb-pics .gold { position: absolute; width: 120px; right: -40px; top: -40px; z-index: 2;
  filter: drop-shadow(0 12px 12px rgba(12, 39, 68, .3)); }

/* the win: gold band, ink words */
.band-win { background: var(--gold); }
.band-win .lead { color: var(--ink); }
.cheers { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cheers li { background: rgba(255, 255, 255, .7); border-radius: 18px; padding: 12px 18px 10px; }
.win-pics { position: relative; max-width: 460px; margin: 0 auto; }
.win-pics .stars { position: absolute; left: -30px; top: -46px; width: 96px; z-index: 2; transform: rotate(-12deg);
  filter: drop-shadow(0 10px 10px rgba(12, 39, 68, .25)); }

/* screens strip */
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px var(--pad) 26px; margin: 0 calc(var(--pad) * -1); scrollbar-width: thin; }
.shots img { flex: 0 0 auto; width: 230px; border-radius: 22px; scroll-snap-align: center;
  box-shadow: 0 14px 28px rgba(12, 39, 68, .2); }
@media (min-width: 1120px) { .shots { justify-content: center; } .shots img { width: 128px; border-radius: 14px; } }

/* promises: teal band, ink words, cream tiles */
.band-promise { background: var(--teal); }
.band-promise .section-head .lead { color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { background: var(--cream); color: var(--ink); border-radius: 26px; padding: 22px 16px 18px; text-align: center;
  box-shadow: 0 0 0 4px var(--outline), 0 10px 0 4px rgba(28, 22, 48, .35); }
.tile svg { width: 52px; height: 52px; color: var(--navy); margin: 0 auto 6px; display: block; }
.tile b { display: block; font-size: 1.25rem; }
.tile span { font-size: .95rem; color: var(--soft); }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .tiles { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 20px; padding: 2px 22px; box-shadow: 0 6px 0 var(--cream-edge); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.12rem; padding: 15px 0 12px; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--link); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--soft); margin: 0 0 16px; }

/* footer */
.site-foot { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 44px 0; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.site-foot a { color: #fff; font-weight: 600; }
.site-foot .studio { display: flex; align-items: center; gap: 10px; }
.site-foot .studio img { border-radius: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-foot .fine { flex-basis: 100%; color: rgba(255, 255, 255, .7); margin: 8px 0 0; }
