/* ==========================================================================
   Merrifruit: the landing pages (index.html, bn/index.html)
   The game's own day colours (lib/app/theme/app_colors.dart, the themes'
   scenes, HudStyle): cream page, plum ink, mango buttons with a hard edge,
   dark-wood plaques, the gold of a ripe fruit, each world's sky. The font
   is the game's own, Baloo Da 2 (SIL OFL), served from this folder; it
   carries Bangla too. No CDN, no trackers.

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

@font-face {
  font-family: "Baloo Da 2";
  src: url("fonts/baloo-da-2.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  /* contrast: text colours measured on the cream page */
  --page:   #fff8ec;
  --card:   #ffffff;
  --ink:    #2b1b3d;   /* 15.0 */
  --soft:   #5b4a6b;   /* 7.4 */
  --grape:  #5a3fd6;   /* links: 6.4 */
  --mango:  #ff9f1c;   /* the Play button: fill only, ink text on it 7.7 */
  --mango-edge: #d9770a;
  --wood:   #97602f;   /* plaques: cream text on it 5.3 */
  --wood-edge: #6b4024;
  --gold:   #ffc93c;
  --leaf:   #45a853;
  --cream:  #fff8ec;

  --orchard: #9fd9ff;  /* the worlds' skies */
  --village: #ffd58a;
  --market:  #8fcfe2;

  --shadow: 0 22px 46px rgba(43, 27, 61, .2), 0 6px 14px rgba(43, 27, 61, .1);
  --r: 26px;
  --pad: clamp(18px, 5vw, 40px);
  --maxw: 1160px;
  --sans: "Baloo Da 2", "Hind Siliguri", -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(--grape); 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: 700; }

h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7vw, 4.7rem); }
h2 { font-size: clamp(2.05rem, 4.6vw, 3.2rem); }
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, .93);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(43, 27, 61, .12); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.crumb { color: var(--soft); font-weight: 700; white-space: nowrap; }
.crumb:hover { color: var(--ink); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; 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: 700; border-bottom: 2px solid transparent; padding: 3px 0; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--mango); text-decoration: none; }
.head-actions { display: flex; gap: 10px; }
@media (max-width: 960px) { .nav { display: none; } .head-actions { margin-left: auto; } }
@media (max-width: 520px) { .crumb { font-size: 0; } .crumb::before { content: "\2190"; font-size: 1.1rem; } }

/* -------------------------------------------------------------- buttons --- */
.btn { display: inline-flex; align-items: center; gap: 9px; font: inherit; font-weight: 800;
  font-size: 1.05rem; padding: 13px 24px 11px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }
.btn-play { background: var(--mango); color: var(--ink); box-shadow: 0 6px 0 var(--mango-edge); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: rgba(43, 27, 61, .2); }
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: 7px 16px 5px; font-size: .95rem; }
.btn-wood { background: var(--wood); color: var(--cream); box-shadow: 0 6px 0 var(--wood-edge); }

/* ------------------------------------------------------ the game's look --- */
.plaque { display: inline-block; background: var(--wood); color: var(--cream);
  border: 5px solid var(--wood-edge); border-radius: 26px; box-shadow: 0 8px 0 var(--wood-edge);
  font-weight: 800; line-height: 1; padding: 16px 32px 8px; }
.nice { position: absolute; z-index: 5; font-weight: 800; color: var(--gold); line-height: 1;
  -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; white-space: nowrap;
  text-shadow: 0 6px 0 rgba(43, 27, 61, .3); transform: rotate(var(--tilt, -8deg)); }
.gold-word { color: var(--gold); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }

.card-shot { background: var(--cream); border: 10px solid var(--cream); border-radius: 34px;
  overflow: hidden; box-shadow: 0 10px 0 rgba(107, 64, 36, .45), var(--shadow);
  transform: rotate(var(--tilt, -2deg)); }
.card-shot img, .card-shot video { width: 100%; border-radius: 24px; }

/* a sky band with the sunburst and soft clouds */
.sky { position: relative; overflow: hidden; isolation: isolate; }
.sky::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, .2) 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: .92; }
.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: 120px; }
.hills svg { width: 100%; height: 100%; }

/* the vine with the game's fruit hanging off it */
.vine { position: absolute; left: 0; right: 0; top: 0; height: 190px; z-index: 1; pointer-events: none; }
.vine svg { width: 100%; height: 100%; }

/* a fruit that floats; a tap squeezes it into juice and it grows 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(43, 27, 61, .28)); }
.float.popped { animation: squish .34s 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 squish { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25, .8); opacity: .8; }
                    100% { transform: scale(1.5); opacity: 0; } }
.drop { position: absolute; z-index: 3; width: 12px; height: 12px; border-radius: 50% 50% 50% 0;
  pointer-events: none; animation: drop .75s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes drop { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* ----------------------------------------------------------------- hero --- */
.hero { background: linear-gradient(180deg, #7cc8ff 0%, var(--orchard) 45%, #e6f6ff 100%);
  padding: 170px 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: 700; margin-bottom: 14px; }
.hero .plaque { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 22px; }
.hero h1 { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.promises { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-weight: 800; }
/* 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(--ink); border-radius: 46px; padding: 11px; transform: rotate(3deg);
  box-shadow: 0 40px 80px rgba(43, 27, 61, .35); }
.phone > video { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone .pico { position: absolute; width: 150px; right: -64px; top: -96px; transform: rotate(-6deg);
  filter: drop-shadow(0 12px 12px rgba(43, 27, 61, .3)); }
.phone .nice { left: -84px; bottom: 120px; font-size: 3.2rem; --tilt: -10deg; }
.phone-caption { text-align: center; margin-top: 22px; font-weight: 600; color: var(--soft); font-size: .95rem; }

@media (max-width: 900px) {
  .hero { padding: 110px 0 140px; text-align: center; }
  .hero .wrap { grid-template-columns: 1fr; gap: 70px; }
  .hero-cta, .promises { justify-content: center; }
  .hero .float:nth-of-type(n+3) { display: none; }
  .hero .float { width: 62px !important; }
  .phone .nice { left: -30px; font-size: 2.4rem; }
  .phone .pico { width: 112px; right: -30px; top: -70px; }
}

/* ------------------------------------------------------------- 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); }
.band-village { background: linear-gradient(180deg, var(--village), #fff4dc); }
.band-market { background: linear-gradient(180deg, var(--market), #e9f4ec); }
.band-grape { background: #6a4fe6; color: #fff; }
.band-grape .lead, .band-grape .section-head .lead { color: rgba(255, 255, 255, .92); }

/* the preview video: our poster, YouTube only on a press of play */
.video { margin: 0 auto; max-width: 960px; }
.video-poster { position: relative; display: block; border-radius: 30px; overflow: hidden;
  box-shadow: 0 10px 0 rgba(107, 64, 36, .4), var(--shadow); border: 10px solid var(--cream); }
.video-poster img { width: 100%; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 14px; color: var(--ink); font-weight: 800; }
.video-play svg { width: 84px; height: 84px; padding: 22px 18px 22px 26px; border-radius: 50%;
  background: var(--mango); fill: var(--ink); box-shadow: 0 6px 0 var(--mango-edge); }
.video-label { background: rgba(255, 248, 236, .95); padding: 8px 18px 4px; border-radius: 999px; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 30px; }
.video figcaption { text-align: center; margin-top: 16px; }

/* how to play */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; background: var(--card); border-radius: var(--r); padding: 84px 22px 24px;
  text-align: center; box-shadow: 0 8px 0 rgba(107, 64, 36, .18), 0 14px 30px rgba(43, 27, 61, .07); }
.step img { position: absolute; left: 50%; top: -44px; width: 112px; transform: translateX(-50%) rotate(var(--tilt, 0deg));
  filter: drop-shadow(0 12px 12px rgba(43, 27, 61, .25)); }
.step .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--mango); color: var(--ink); font-weight: 800; margin-bottom: 10px; box-shadow: 0 3px 0 var(--mango-edge); }
.step p { color: var(--soft); margin: 0; }
.after { max-width: 780px; margin: 34px auto 0; text-align: center; color: var(--soft); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 70px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; max-width: 420px; margin: 60px auto 0; } }

/* a fruit's life */
.life { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.life li { background: var(--card); border-radius: var(--r); padding: 18px 16px 20px; text-align: center;
  box-shadow: 0 8px 0 rgba(107, 64, 36, .2); }
.life img, .life .ash { width: 120px; height: 120px; margin: -50px auto 6px; }
.life .ash { display: grid; place-items: center; }
.life .ash span { width: 72px; height: 72px; border-radius: 50%; background: #9e9e9e;
  box-shadow: inset -8px -10px 0 rgba(0, 0, 0, .12), 0 10px 12px rgba(43, 27, 61, .2); }
.life h3 { margin-bottom: 6px; }
.life p { color: var(--soft); font-size: .98rem; margin: 0; }
.life-wrap { padding-top: 40px; }
@media (max-width: 980px) { .life { grid-template-columns: repeat(2, 1fr); row-gap: 64px; } }
@media (max-width: 520px) { .life { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }

/* modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mode { position: relative; color: var(--ink); border-radius: 30px; overflow: hidden; padding: 24px 22px 0;
  display: flex; flex-direction: column; box-shadow: var(--shadow); isolation: isolate; }
.mode::before { content: ""; position: absolute; inset: -50%; z-index: -1;
  background: repeating-conic-gradient(from 0deg at 50% 72%, rgba(255, 255, 255, .22) 0 8deg, transparent 8deg 20deg); }
.mode h3 { font-size: 1.8rem; margin-bottom: 4px; }
.mode p { margin-bottom: 14px; }
.mode .tag { align-self: flex-start; font-size: .85rem; font-weight: 800; background: var(--wood); color: var(--cream);
  padding: 5px 12px 2px; border-radius: 999px; margin-bottom: 10px; }
.mode .media { margin-top: auto; border: 8px solid var(--cream); border-bottom: 0; border-radius: 22px 22px 0 0;
  overflow: hidden; aspect-ratio: 9 / 10; background: var(--cream); }
.mode .media img, .mode .media video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.m-classic { background: #ffb547; }
.m-daily { background: #b9a6ff; }
.m-zen { background: #9ddc84; }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } .mode .media { aspect-ratio: 4 / 3; } }

.rules { max-width: 980px; margin: 34px auto 0; background: var(--card); border-radius: var(--r);
  box-shadow: 0 8px 0 rgba(107, 64, 36, .18); }
.rules summary { cursor: pointer; font-weight: 800; font-size: 1.15rem; padding: 18px 24px 14px; list-style: none;
  display: flex; justify-content: space-between; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: "+"; color: var(--mango-edge); font-size: 1.6rem; line-height: 1; }
.rules[open] summary::after { content: "\2212"; }
.table-wrap { overflow-x: auto; padding: 0 16px 18px; }
table.modes-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.modes-table th, .modes-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid rgba(43, 27, 61, .1); vertical-align: top; }
.modes-table thead th { background: #fff1d6; }

/* split: words and a picture */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feats li { background: rgba(255, 255, 255, .85); border-radius: 18px; padding: 13px 18px 10px; }
.band-grape .feats li { background: rgba(255, 255, 255, .14); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.flip > :first-child { order: 0; }
  .split .card-shot { max-width: 460px; margin: 0 auto; } }

/* everything in it */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.group { background: var(--card); border-radius: var(--r); padding: 26px 24px 16px;
  box-shadow: 0 8px 0 rgba(107, 64, 36, .18); }
.group h3 { display: flex; align-items: center; gap: 12px; }
.group h3 img { width: 54px; }
.group ul { list-style: none; padding: 0; margin: 0; }
.group li { padding: 10px 0; border-top: 1px solid rgba(43, 27, 61, .09); color: var(--soft); }
.group li b { color: var(--ink); }
@media (max-width: 980px) { .groups { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }

/* the three worlds */
.worlds { display: grid; gap: 26px; }
.world { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; align-items: center;
  border-radius: 32px; padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.world h3 { font-size: 2rem; }
.world p { margin-bottom: .6em; }
.world .opens { display: inline-block; font-weight: 800; background: var(--wood); color: var(--cream);
  padding: 5px 14px 2px; border-radius: 999px; }
.w-orchard { background: linear-gradient(180deg, var(--orchard), #e6f6ff 70%, #c9ecb8); }
.w-village { background: linear-gradient(180deg, var(--village), #fff4dc 70%, #cfe9b0); }
.w-market { background: linear-gradient(180deg, var(--market), #e9f4ec 70%, #e6d2b8); }
.ladder { list-style: none; margin: 0; padding: 16px 12px 10px; display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px 6px; background: var(--cream); border: 5px solid var(--wood); border-radius: 26px;
  box-shadow: 0 8px 0 var(--wood-edge); }
.ladder li { text-align: center; font-size: .82rem; font-weight: 700; line-height: 1.1; }
.ladder img { width: 64px; margin: 0 auto 2px; }
@media (max-width: 860px) { .world { grid-template-columns: 1fr; } .ladder { grid-template-columns: repeat(4, 1fr); } }

/* screens strip (assets/site.js opens a picture large) */
.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; cursor: zoom-in;
  box-shadow: 0 14px 28px rgba(43, 27, 61, .2); }
@media (min-width: 1120px) { .shots { justify-content: center; } .shots img { width: 128px; border-radius: 14px; } }

/* promises */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { background: var(--cream); color: var(--ink); border: 5px solid var(--wood); border-radius: 26px;
  padding: 22px 16px 16px; text-align: center; box-shadow: 0 8px 0 var(--wood-edge); }
.tile svg { width: 52px; height: 52px; color: #e8590c; margin: 0 auto 6px; display: block; }
.tile b { display: block; font-size: 1.2rem; }
.tile span { font-size: .95rem; color: var(--soft); }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 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 rgba(107, 64, 36, .14); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.12rem; padding: 15px 0 11px; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mango-edge); 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: 700; }
.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, .62); margin: 8px 0 0; }

/* the large picture viewer (assets/site.js) */
.shot-viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
.shot-viewer::backdrop { background: rgba(20, 12, 30, .86); }
.sv-bar { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 8px 12px; }
.sv-bar button, .sv-arrow { font: inherit; font-weight: 800; background: rgba(255, 255, 255, .14); color: #fff;
  border: 0; border-radius: 999px; padding: 8px 16px 5px; cursor: pointer; }
.sv-stage { display: flex; align-items: center; gap: 10px; }
.sv-stage img { max-height: 80vh; width: auto; border-radius: 18px; }
.sv-arrow { padding: 10px; display: grid; place-items: center; }
.sv-arrow svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sv-cap { color: rgba(255, 255, 255, .85); text-align: center; max-width: 460px; margin: 10px auto 0; }

/* a small phone: the header keeps its buttons, the trailer its play disc */
@media (max-width: 420px) {
  .brand span { display: none; }
  .video-label { display: none; }
}
