/* Nikke Akhar — site styles. Palette taken from the printed books. */
@font-face {
  font-family: "Baloo Paaji 2";
  src: url("../fonts/baloo-paaji-2.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Gurmukhi";
  src: url("../fonts/noto-sans-gurmukhi.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
}

:root {
  --ink: #173a63;
  --ink-soft: #4f6680;
  --blue: #135091;
  --saffron: #f39216;
  --saffron-deep: #c96d00;
  --magenta: #e03c82;
  --gold: #fbb928;
  --green: #2fa24b;
  --groove: #e2e2e2;
  --panel: #f1f6fb;
  --line: #d7e1ec;
  --white: #ffffff;
  --display: "Baloo Paaji 2", "Noto Sans Gurmukhi", system-ui, sans-serif;
  --body: "Noto Sans Gurmukhi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 34rem;
  --phulkari: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='16' viewBox='0 0 96 16'%3E%3Cpath d='M12 2l6 6-6 6-6-6z' fill='%23f39216'/%3E%3Cpath d='M36 2l6 6-6 6-6-6z' fill='%23e03c82'/%3E%3Cpath d='M60 2l6 6-6 6-6-6z' fill='%23fbb928'/%3E%3Cpath d='M84 2l6 6-6 6-6-6z' fill='%232fa24b'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--saffron-deep); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
.gm { font-family: var(--display); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.phulkari { height: 16px; background: var(--phulkari) repeat-x left center / 96px 16px; }
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

/* header */
.site-head { padding: 1rem 0; }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: .6rem; text-decoration: none; color: var(--blue); }
.brand .gm { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.brand .latin { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink-soft); }
.site-nav { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { color: var(--saffron-deep); }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: #fff; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 1.05rem/1 var(--display);
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-quiet { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--blue); color: var(--blue); }
.btn-small { padding: .6rem 1rem; font-size: .95rem; }

/* hero */
.hero { padding: 2.5rem 0 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.hero h1 {
  font: 800 clamp(2.4rem, 5.2vw, 4.1rem)/1.02 var(--display);
  letter-spacing: -0.015em; margin: 0 0 1.25rem; color: var(--blue);
}
.hero h1 .line { display: block; }
.hero h1 .line:nth-child(2) { color: #8394a6; text-shadow: 0 2px 0 #fff, 0 -1px 0 rgba(23, 58, 99, .18); }
.hero p.lede { font-size: 1.2rem; max-width: var(--measure); margin: 0 0 2rem; color: var(--ink); }
.hero .actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero .note { margin-top: 1.25rem; font-size: .95rem; color: var(--ink-soft); }

/* the trace demo: a page from Book 1 */
.demo {
  position: relative; margin: 0; background: var(--white);
  border-radius: 18px; padding: 1.4rem 1.4rem 1rem;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -22px rgba(23, 58, 99, .45);
  border: 1px solid var(--line);
}
.demo::before, .demo::after { content: ""; position: absolute; left: 1rem; right: 1rem; height: 12px; background: var(--phulkari) repeat-x left center / 72px 12px; }
.demo::before { top: -6px; }
.demo::after { bottom: -6px; }
.demo-row { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.2rem; align-items: center; }
.demo-pic { border: 3px solid var(--saffron); border-radius: 18px; padding: .6rem; text-align: center; }
.demo-pic img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.demo-pic .gm { font-size: 2.1rem; font-weight: 800; line-height: 1.1; color: var(--blue); display: block; margin-top: .2rem; }
.demo-pic .gm b { color: var(--saffron); font-weight: 800; }
.trace { position: relative; aspect-ratio: 1 / 1; max-width: 21rem; touch-action: none; cursor: crosshair; }
.trace svg, .trace canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.trace .guide { stroke: #6ec9dd; stroke-width: 6; stroke-dasharray: 22 14; }
.demo figcaption { display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: .95rem; color: var(--ink-soft); padding-top: .6rem; }
.demo figcaption button { font: inherit; color: var(--blue); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; padding: .2rem; }

/* sections */
section.band { padding: 4.5rem 0; }
section.band.tint { background: var(--panel); }
.band h2 { font: 800 clamp(1.9rem, 3.4vw, 2.6rem)/1.1 var(--display); margin: 0 0 1rem; color: var(--blue); letter-spacing: -0.01em; }
.band .intro { max-width: var(--measure); margin: 0 0 2.5rem; font-size: 1.12rem; }

/* how a page works: a real sequence, so numbered like the books */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.steps li { position: relative; padding-top: 3.4rem; }
.steps .badge { position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 1.2rem/1 var(--display); }
.steps li:nth-child(1) .badge { background: var(--saffron); }
.steps li:nth-child(2) .badge { background: var(--magenta); }
.steps li:nth-child(3) .badge { background: var(--green); }
.steps h3 { font: 700 1.35rem/1.2 var(--display); margin: 0 0 .5rem; }
.steps p { margin: 0 0 1rem; }
.steps img { border-radius: 12px; border: 1px solid var(--line); }

/* the shelf of books */
.shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; align-items: end; padding-bottom: 1.2rem; border-bottom: 10px solid #e9d2b4; }
.book { margin: 0; }
.book img { border-radius: 4px 10px 10px 4px; box-shadow: -4px 0 0 rgba(23,58,99,.15) inset, 0 10px 18px -12px rgba(23,58,99,.6); transform: rotate(-1.2deg); transform-origin: bottom left; }
.book:nth-child(even) img { transform: rotate(1deg); }
.book figcaption { padding-top: .9rem; }
.book .gm { display: block; font-size: 1.35rem; font-weight: 800; color: var(--blue); line-height: 1.15; }
.book span.en { display: block; font-weight: 600; }
.book span.meta { display: block; font-size: .9rem; color: var(--ink-soft); }
.extras { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; margin-top: 3rem; }
.extra { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.2rem; align-items: start; }
.extra img { border-radius: 6px; border: 1px solid var(--line); }
.extra h3 { font: 700 1.25rem/1.2 var(--display); margin: 0 0 .35rem; }
.extra p { margin: 0; }

/* scan to hear */
.hear .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; align-items: center; }
.phone { border: 12px solid var(--ink); border-radius: 38px; overflow: hidden; background: var(--white); box-shadow: 0 30px 50px -30px rgba(23,58,99,.7); }
.phone iframe { display: block; width: 100%; height: 34rem; border: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .9rem; max-width: var(--measure); }
.ticks li { padding-left: 2rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .9rem; height: .9rem; transform: rotate(45deg); background: var(--saffron); border-radius: 2px; }
.ticks li:nth-child(2)::before { background: var(--magenta); }
.ticks li:nth-child(3)::before { background: var(--gold); }
.ticks li:nth-child(4)::before { background: var(--green); }

/* waitlist */
.join .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
form.waitlist { display: grid; gap: 1.1rem; background: var(--white); padding: 1.8rem; border-radius: 18px; border: 1px solid var(--line); }
form.waitlist label, form.waitlist legend { font-weight: 600; display: block; margin-bottom: .35rem; }
form.waitlist input[type=email], form.waitlist select {
  width: 100%; font: inherit; padding: .8rem .9rem; border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--ink);
}
form.waitlist input[type=email]:focus, form.waitlist select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(243,146,22,.35); }
form.waitlist fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
form.waitlist .checks label { font-weight: 400; display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.checks input { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
.hidden-field { position: absolute; left: -9999px; }
form.waitlist button { justify-content: center; }
.fineprint { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* faq */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font: 700 1.15rem/1.35 var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--saffron-deep); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; max-width: var(--measure); }

/* footer */
.site-foot { padding: 2.5rem 0 3rem; font-size: .95rem; color: var(--ink-soft); }
.site-foot .wrap { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
.site-foot .gm { font-size: 1.4rem; color: var(--blue); font-weight: 800; }

/* ---------- listen pages (opened from the QR codes, mostly on phones) ---------- */
body.listen { background: var(--panel); }
.listen-head { background: var(--white); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); }
.listen-head .wrap { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.listen-head .brand { white-space: nowrap; }
.listen-head .brand .gm { font-size: 1.35rem; font-weight: 800; }
.listen-head .where { margin-left: auto; text-align: right; line-height: 1.25; font-size: .88rem; color: var(--ink-soft); }
.listen-head .where strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.05rem; }
.listen main { width: min(40rem, 100% - 1.5rem); margin: 1.2rem auto 2rem; }
.play-all { width: 100%; justify-content: center; font-size: 1.2rem; padding: 1.1rem; margin-bottom: 1.2rem; }
.row-card { background: var(--white); border-radius: 22px; padding: 1.1rem; margin-bottom: 1.1rem; border-top: 8px solid var(--row, var(--blue)); }
.row-top { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.row-num { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--row); color: #fff; display: grid; place-items: center; font: 800 1rem/1 var(--display); flex: none; }
.row-lead { font: 800 3.6rem/1 var(--display); color: var(--row); }
.row-tag { margin-left: auto; background: var(--saffron); color: #fff; font: 700 .95rem/1 var(--display); padding: .45rem .8rem; border-radius: 999px; }
.say-list { display: grid; gap: .6rem; }
.say {
  display: grid; grid-template-columns: 4.2rem 1fr auto; gap: .9rem; align-items: center; width: 100%;
  text-align: left; font: inherit; color: var(--ink); background: var(--panel);
  border: 2px solid transparent; border-radius: 16px; padding: .55rem .8rem .55rem .55rem; cursor: pointer;
}
.say.no-pic { grid-template-columns: 1fr auto; padding-left: 1rem; }
.say img { width: 4.2rem; height: 4.2rem; object-fit: contain; background: #fff; border-radius: 12px; }
.say .gm { font-size: 1.9rem; font-weight: 700; line-height: 1.1; color: var(--blue); display: block; }
.say .gm b { color: var(--saffron); font-weight: 700; }
.say .sub { font-size: .92rem; color: var(--ink-soft); }
.say .icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex: none; }
.say .icon svg { width: 1.1rem; height: 1.1rem; fill: #fff; }
.say.big .gm { font-size: 2.3rem; }
.say:hover { border-color: var(--line); }
.say.playing { border-color: var(--saffron); background: #fff4e6; }
.say.playing .icon { background: var(--saffron); }
.say.missing .icon { background: #b9c6d4; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.chip { font: 700 1.5rem/1 var(--display); color: var(--blue); background: var(--panel); border-radius: 12px; padding: .5rem .65rem .35rem; min-width: 3.2rem; text-align: center; transition: background-color .15s, color .15s; }
.chip.on { background: var(--saffron); color: #fff; }
button.chip { border: 2px solid transparent; cursor: pointer; }
button.chip:hover { border-color: var(--line); }
button.chip.playing { background: var(--saffron); color: #fff; }
.chips.six { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.chips.six .chip { min-width: 0; padding-inline: .2rem; font-size: clamp(1.1rem, 4.6vw, 1.5rem); }
.count-pics { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .6rem; }
.count-pics img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.pager a { flex: 1; text-align: center; justify-content: center; padding-inline: .6rem; white-space: nowrap; }
.pager a.disabled { visibility: hidden; }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .8rem 1.1rem; border-radius: 12px; font-size: .95rem; max-width: calc(100% - 2rem); opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }
.book-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .8rem; list-style: none; padding: 0; margin: 0; }
.book-index a { display: block; background: var(--white); border-radius: 16px; padding: .9rem; text-decoration: none; color: var(--ink); border-top: 6px solid var(--row, var(--blue)); }
.book-index .gm { font-size: 1.9rem; font-weight: 800; color: var(--row, var(--blue)); line-height: 1.1; display: block; }
.book-index .sub { font-size: .88rem; color: var(--ink-soft); }
.listen h1 { font: 800 2rem/1.15 var(--display); color: var(--blue); margin: .4rem 0 1rem; }

/* responsive */
@media (max-width: 960px) {
  .hero .wrap, .hear .wrap, .join .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
  .phone { max-width: 20rem; }
}
@media (max-width: 560px) {
  .site-nav { margin-left: 0; gap: 1rem; }
  .demo-row { grid-template-columns: 1fr; }
  .demo-pic { display: grid; grid-template-columns: 5rem 1fr; align-items: center; gap: .8rem; text-align: left; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-lead { font-size: 3rem; }
  .say .gm { font-size: 1.6rem; }
  .say.big .gm { font-size: 1.95rem; }
  .say { grid-template-columns: 3.6rem 1fr auto; }
  .say img { width: 3.6rem; height: 3.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* songs */
.song-top { display: flex; gap: 1rem; align-items: center; margin-bottom: .9rem; }
.song-top h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.6rem); }
.song-art { width: 96px; height: 96px; flex: none; }
.chips.lines { display: flex; flex-direction: column; gap: .45rem; }
.chips.lines .chip { text-align: left; font-size: clamp(1.05rem, 4.2vw, 1.35rem); line-height: 1.45; padding: .6rem .8rem .5rem; min-width: 0; }
.book-index.songs img { width: 72px; height: 72px; display: block; margin: 0 auto .3rem; }

/* trace */
.t-main { display: flex; flex-direction: column; align-items: center; }
.t-top { width: min(92vw, 460px); display: flex; justify-content: flex-end; }
.t-picker { width: min(94vw, 720px); display: flex; gap: .4rem; overflow-x: auto; padding: .4rem .2rem .7rem; scroll-snap-type: x proximity; }
.t-pick { flex: none; scroll-snap-align: center; font: 800 1.6rem/1 var(--display, "Baloo Paaji 2"); width: 3rem; height: 3rem; border-radius: 14px; border: 2px solid var(--line); background: var(--white); color: var(--blue); cursor: pointer; position: relative; }
.t-pick.now { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.t-pick.star::after { content: "★"; position: absolute; top: -6px; right: -4px; font-size: .8rem; color: var(--gold); }
.t-prompt { font-size: 1.15rem; text-align: center; min-height: 1.6em; margin: .2rem 0 .5rem; }
.t-stage { position: relative; width: min(90vw, 440px); aspect-ratio: 1; background: var(--white); border-radius: 28px; box-shadow: 0 6px 0 var(--line); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.t-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-meter { width: min(90vw, 440px); height: 14px; background: var(--line); border-radius: 99px; margin-top: 14px; overflow: hidden; }
.t-meter i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 99px; transition: width .15s; }
.t-btns { display: flex; gap: .6rem; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.t-reward { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.95); opacity: 0; pointer-events: none; transition: opacity .3s; cursor: pointer; }
.t-reward.show { opacity: 1; pointer-events: auto; }
.t-reward img { width: 58%; transform: scale(.3) rotate(-12deg); transition: transform .55s cubic-bezier(.3,1.6,.5,1); }
.t-reward.show img { transform: none; }
.t-word { font: 800 clamp(2.6rem, 12vw, 3.6rem)/1 "Baloo Paaji 2", sans-serif; color: var(--magenta); margin-top: 6px; }
.t-en { color: var(--blue); }
.t-star { position: absolute; left: 50%; top: 50%; font-size: 28px; pointer-events: none; animation: tpop 1.1s ease-out forwards; }
@keyframes tpop { from { transform: translate(0,0) scale(.4); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(200deg); opacity: 0; } }
.t-note { max-width: 440px; text-align: center; margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { .t-reward img { transition: none; } }

/* app home */
.app-page { background: #eaf3fb; }
.app-home { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.app-head { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0 1rem; }
.app-head .gm { font: 800 1.5rem/1 "Baloo Paaji 2", sans-serif; color: var(--blue); }
.app-stars { background: var(--white); border-radius: 99px; padding: .4rem .9rem .3rem; color: var(--saffron-deep); font-weight: 700; }
.app-home h1 { margin: 0; font-size: clamp(2rem, 8vw, 3rem); color: var(--ink); }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-top: 1.2rem; }
.app-tile { display: flex; flex-direction: column; align-items: flex-start; background: var(--white); border-radius: 26px; padding: 1rem; text-decoration: none; color: var(--ink); border-bottom: 8px solid var(--c); min-height: 12rem; }
.app-tile img { width: 72px; height: 72px; }
.app-tile .gm { font: 800 2rem/1.1 "Baloo Paaji 2", sans-serif; color: var(--c); margin-top: .4rem; }
.app-tile .en { font-weight: 700; }
.app-install { margin-top: 1.4rem; background: var(--white); border-radius: 18px; padding: .8rem 1rem; }
.app-install summary { cursor: pointer; font-weight: 700; color: var(--blue); }
/* home play cards */
.play-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.play-card { display: block; background: var(--white); border-radius: 22px; padding: 1.1rem; text-decoration: none; color: var(--ink); border-top: 8px solid var(--c); }
.play-card img { width: 80px; height: 80px; }
.play-card h3 { margin: .4rem 0 .2rem; color: var(--c); }
.play-card p { margin: 0; }

/* ---- games ---- */
.g-main { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.g-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2rem; }
.g-dots { display: flex; gap: .35rem; flex-wrap: wrap; }
.g-dots i { width: .8rem; height: .8rem; border-radius: 50%; background: var(--line); }
.g-dots i.on { background: var(--c); }
.g-dots i.now { background: var(--white); box-shadow: 0 0 0 3px var(--c) inset; }
.g-score { font-weight: 700; color: var(--ink); }
.g-intro { text-align: center; background: var(--white); border-radius: 26px; padding: 1.6rem 1rem 1.8rem; margin-top: 1rem; border-bottom: 8px solid var(--c); }
.g-intro h1 { font-family: var(--display); color: var(--c); margin: .3rem 0 .2rem; font-size: clamp(2rem, 9vw, 3rem); }
.g-intro[hidden], .g-end[hidden] { display: none; }
.g-go { font-size: 1.25rem; padding: .9rem 2.4rem; margin-top: .6rem; }
.g-prompt { text-align: center; font-size: 1.2rem; font-weight: 700; color: var(--ink); min-height: 1.6em; margin: 1rem 0 .6rem; }
.g-prompt b { font-family: var(--display); color: var(--c); font-size: 1.4em; }
.g-board.g-four, .g-board .g-four { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.g-opt { background: var(--white); border: 3px solid var(--line); border-radius: 24px; cursor: pointer; min-height: 8rem; display: grid; place-items: center; transition: transform .15s; }
.g-opt:hover { border-color: var(--c); }
.g-opt:active { transform: scale(.96); }
.g-letter { font: 800 clamp(3.5rem, 16vw, 5.5rem)/1 var(--display); color: var(--ink); padding-top: .4rem; }
.g-picopt img { width: 72%; max-width: 160px; height: auto; }
.g-opt.right { border-color: var(--green); background: #e7f6ea; animation: gbounce .5s; }
.g-opt.wrong { border-color: var(--magenta); opacity: .45; animation: gshake .35s; }
@keyframes gbounce { 40% { transform: scale(1.08); } }
@keyframes gshake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.g-first { display: grid; gap: .9rem; }
.g-pic { background: var(--white); border: 0; border-radius: 26px; padding: 1rem; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.g-pic img { width: 160px; height: 160px; }
.g-pic span { font: 800 2.2rem/1.2 var(--display); color: var(--c); }
.g-memory { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
@media (min-width: 600px) { .g-memory { grid-template-columns: repeat(4, 1fr); } }
.g-card { position: relative; aspect-ratio: 1; border: 0; border-radius: 20px; cursor: pointer; background: transparent; perspective: 600px; padding: 0; }
.g-card > span { position: absolute; inset: 0; border-radius: 20px; display: grid; place-items: center; backface-visibility: hidden; transition: transform .35s; }
.g-back { background: var(--c); color: #fff; font: 800 2.4rem/1 var(--display); }
.g-face { background: var(--white); transform: rotateY(180deg); border: 3px solid var(--line); }
.g-face span { font: 800 clamp(2.6rem, 11vw, 3.6rem)/1 var(--display); color: var(--ink); padding-top: .3rem; }
.g-face img { width: 78%; height: auto; }
.g-card.up .g-back { transform: rotateY(180deg); }
.g-card.up .g-face { transform: rotateY(360deg); }
.g-card.done .g-face { border-color: var(--green); background: #e7f6ea; }
.g-end { text-align: center; background: var(--white); border-radius: 26px; padding: 1.4rem 1rem; margin-top: 1rem; }
.g-big b { font: 800 2.6rem/1 var(--display); color: var(--c); }
.g-star { position: fixed; z-index: 50; }
@media (prefers-reduced-motion: reduce) { .g-opt, .g-card > span { transition: none; animation: none; } }
.more-play { margin-top: 2rem; }
.more-play h2 { font-size: 1.1rem; margin: 0 0 .6rem; color: var(--ink); }
.more-play div { display: flex; flex-wrap: wrap; gap: .5rem; }
.more-chip { display: inline-flex; flex-direction: column; background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: .5rem .8rem; text-decoration: none; color: var(--ink-soft); font-size: .85rem; }
.more-chip span { font: 800 1.15rem/1.2 var(--display); color: var(--blue); }
.more-chip:hover { border-color: var(--blue); }
/* ---- stars ---- */
.st-main { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.st-main h1 { font-family: var(--display); color: var(--blue); }
.st-sum { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
@media (min-width: 600px) { .st-sum { grid-template-columns: repeat(4, 1fr); } }
.st-sum div { background: var(--white); border-radius: 18px; padding: .8rem; display: flex; flex-direction: column; }
.st-sum b { font: 800 2.2rem/1 var(--display); color: var(--saffron-deep); }
.st-sum span { color: var(--ink-soft); font-size: .9rem; }
.st-badge { font-weight: 700; color: var(--green); margin: 1rem 0; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.6rem, 1fr)); gap: .5rem; }
.st-cell { aspect-ratio: 1; display: grid; place-items: center; background: var(--white); border: 2px dashed var(--line); border-radius: 14px; font: 800 1.9rem/1 var(--display); color: #b9c8d8; text-decoration: none; padding-top: .2rem; }
.st-cell.on { background: var(--gold); border: 2px solid var(--saffron); color: var(--ink); }
.app-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .app-home .app-grid { grid-template-columns: repeat(3, 1fr); } }
.game-page .g-hear-wrap[hidden] { display: none; }
.app-page .app-grid .app-tile .gm { font-size: clamp(1.35rem, 6vw, 2rem); }
.app-tile .sub { font-size: .88rem; }

/* ================= Nikka Pind (the little village) ================= */
.pind { background: #eef6e2; }
.pd-head { display: flex; align-items: center; gap: .8rem; padding: .6rem 1rem; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.pd-back { display: inline-flex; align-items: center; gap: .2rem; background: var(--green); color: #fff; text-decoration: none; border-radius: 99px; padding: .45rem .9rem .35rem .5rem; font: 800 1.1rem/1 var(--display); min-height: 44px; }
.pd-back:hover { background: #24843c; color: #fff; }
.pd-title { display: flex; flex-direction: column; line-height: 1.15; }
.pd-title b { font: 800 1.35rem/1.1 var(--display); color: var(--ink); }
.pd-title span { font-size: .85rem; color: var(--ink-soft); }
.stk-toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 140%); background: var(--white); border: 3px solid var(--gold); border-radius: 22px; padding: .5rem 1rem .5rem .5rem; display: flex; align-items: center; gap: .7rem; z-index: 90; box-shadow: 0 10px 30px rgba(23,58,99,.25); transition: transform .45s cubic-bezier(.2,1.4,.4,1); }
.stk-toast.show { transform: translate(-50%, 0); }
.stk-toast img { width: 64px; height: 64px; animation: stkspin .9s ease-out; }
.stk-toast span { display: flex; flex-direction: column; color: var(--ink-soft); font-size: .85rem; }
.stk-toast b { font: 800 1.3rem/1.1 var(--display); color: var(--saffron-deep); }
@keyframes stkspin { from { transform: scale(.2) rotate(-200deg); } to { transform: none; } }

/* ---- village map ---- */
.pv-page { background: #dff0c2; }
.pv-head { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; max-width: 680px; margin: 0 auto; }
.pv-brand { margin-right: auto; text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.pv-brand span { font: 800 1.7rem/1 var(--display); color: var(--blue); }
.pv-brand small { color: var(--ink-soft); font-size: .75rem; }
.pv-chip { background: var(--white); border-radius: 99px; padding: .5rem .9rem .4rem; text-decoration: none; color: var(--saffron-deep); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; gap: .3rem; }
.pv-par { color: var(--blue); font-size: .9rem; }
.pv-main { max-width: 680px; margin: 0 auto; padding: 0 .6rem 3rem; }
.pv-hello { font: 800 clamp(1.6rem, 6vw, 2.2rem)/1.1 var(--display); color: var(--ink); margin: .2rem .4rem .6rem; }
.pv-hello small { display: block; font: 400 1rem/1.4 var(--body); color: var(--ink-soft); }
.pv-map { position: relative; aspect-ratio: 800 / 1120; border-radius: 28px; overflow: hidden; box-shadow: 0 8px 0 #c5dba0; --sky1: #8fcdf3; --sky2: #e8f6ff; }
.pv-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-sunball { fill: #fbb928; }
.pv-stars { opacity: 0; }
.pv-rays { animation: pvspin 40s linear infinite; }
.pv-cloud.c1 { animation: pvdrift 38s linear infinite; }
.pv-cloud.c2 { transform: translate(260px, 50px) scale(.8); animation: pvdrift2 52s linear infinite; }
.pv-cloud.c3 { transform: translate(420px, -30px) scale(.6); animation: pvdrift3 60s linear infinite; }
@keyframes pvspin { to { transform: rotate(360deg); } }
@keyframes pvdrift { from { transform: translateX(-240px); } to { transform: translateX(760px); } }
@keyframes pvdrift2 { from { transform: translate(-340px, 50px) scale(.8); } to { transform: translate(700px, 50px) scale(.8); } }
@keyframes pvdrift3 { from { transform: translate(600px, -30px) scale(.6); } to { transform: translate(-320px, -30px) scale(.6); } }
.pv-smoke circle { animation: pvsmoke 4s ease-in infinite; transform-origin: center; }
.pv-smoke circle:nth-child(2) { animation-delay: 1.3s; } .pv-smoke circle:nth-child(3) { animation-delay: 2.6s; }
@keyframes pvsmoke { from { transform: translateY(20px); opacity: 0; } 30% { opacity: .85; } to { transform: translateY(-50px); opacity: 0; } }
.pv-ripple { animation: pvripple 3s ease-out infinite; transform-origin: 400px 1010px; }
@keyframes pvripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.pv-birds { animation: pvbirds 26s linear infinite; }
@keyframes pvbirds { from { transform: translate(-80px, 210px); } to { transform: translate(860px, 150px); } }
.pv-kite { position: absolute; left: 12%; top: 5%; width: 13%; height: auto; animation: pvkite 5s ease-in-out infinite; transform-origin: 80% 100%; }
@keyframes pvkite { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(9deg) translateY(-10px); } }
.pl { position: absolute; width: 22%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; text-decoration: none; animation: plbob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.37s); -webkit-tap-highlight-color: transparent; }
@keyframes plbob { 0%, 100% { margin-top: 0; } 50% { margin-top: -5px; } }
.pl-pic { width: 74%; aspect-ratio: 1; border-radius: 50%; background: #fffdf6; border: 4px solid #fff; box-shadow: 0 5px 0 rgba(23,58,99,.18); display: grid; place-items: center; transition: transform .2s; }
.pl-pic img, .pl-pic svg { width: 78%; height: auto; }
.pl:hover .pl-pic, .pl:focus-visible .pl-pic { transform: scale(1.1) rotate(-3deg); }
.pl:active .pl-pic { transform: scale(.94); }
.pl-sign { margin-top: -.5rem; background: #8a5a33; color: #fff; border-radius: 10px; padding: .25rem .5rem .15rem; text-align: center; display: flex; flex-direction: column; line-height: 1.1; box-shadow: 0 3px 0 #5f3c20; max-width: 118%; }
.pl-sign b { font: 800 clamp(.8rem, 3.4vw, 1.15rem)/1.15 var(--display); white-space: nowrap; }
.pl-sign span { font-size: clamp(.55rem, 2.2vw, .72rem); opacity: .9; white-space: nowrap; }
.pl.visited .pl-pic { border-color: var(--gold); }
.pl.visited .pl-pic::after { content: "★"; position: absolute; right: 8%; top: -2%; color: var(--saffron); font-size: 1.2rem; text-shadow: 0 0 0 #fff, 0 2px 0 #fff; }
.pv-night .pv-map { --sky1: #1d2f5e; --sky2: #5a5f9e; }
.pv-night .pv-sunball { fill: #fff6d0; } .pv-night .pv-rays { display: none; } .pv-night .pv-stars { opacity: 1; animation: lotwinkle 3s ease-in-out infinite; }
.pv-night .pv-art { filter: saturate(.8) brightness(.86); }
.pv-giftrow { display: flex; align-items: center; gap: .9rem; background: var(--white); border-radius: 22px; padding: .7rem .9rem; margin-top: 1.1rem; }
.pv-giftrow p { margin: 0; }
.pv-gift { flex: none; display: flex; align-items: center; gap: .6rem; background: var(--magenta); color: #fff; border: 0; border-radius: 18px; padding: .6rem .9rem; cursor: pointer; text-align: left; font-size: .8rem; min-height: 56px; }
.pv-gift span:last-child { display: flex; flex-direction: column; }
.pv-gift b { font: 800 1.15rem/1.1 var(--display); }
.pv-box { width: 34px; height: 30px; background: var(--gold); border-radius: 5px; position: relative; animation: pvshake 2.4s ease-in-out infinite; }
.pv-box::before { content: ""; position: absolute; left: -3px; right: -3px; top: -8px; height: 10px; background: #ffd35e; border-radius: 4px; }
.pv-box::after { content: ""; position: absolute; left: 14px; top: -8px; width: 6px; height: 38px; background: #fff; }
@keyframes pvshake { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
.pv-gift.opened { background: #9fb3c8; } .pv-gift.opened .pv-box { animation: none; }

/* ---- story ---- */
.ks-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; margin-top: .8rem; background: linear-gradient(#ffd98a, #ffeec2); transition: background 1s; }
.ks-stage[data-bg="fly"] { background: linear-gradient(#8fcdf3, #e8f6ff); }
.ks-stage[data-bg="garden"] { background: linear-gradient(#bfe6f7, #e9f7dd); }
.ks-stage[data-bg="dusk"] { background: linear-gradient(#6c5aa8, #f6a56b 70%, #ffd98a); }
.ks-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: #d9b77c; border-radius: 50% 50% 0 0 / 30% 30% 0 0; transition: background 1s; }
.ks-stage[data-bg="garden"] .ks-ground { background: #8cc66a; } .ks-stage[data-bg="fly"] .ks-ground { background: #c9d98d; height: 14%; } .ks-stage[data-bg="dusk"] .ks-ground { background: #5c7a4a; }
.ks-sun { position: absolute; right: 9%; top: 8%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: #ff9f1c; box-shadow: 0 0 0 10px rgba(255,159,28,.3), 0 0 0 24px rgba(255,159,28,.15); animation: kssun 3s ease-in-out infinite; }
@keyframes kssun { 50% { box-shadow: 0 0 0 16px rgba(255,159,28,.3), 0 0 0 34px rgba(255,159,28,.12); } }
.ks-stage[data-bg="dusk"] .ks-sun { top: 46%; background: #ff6b3d; } .ks-stage[data-bg="garden"] .ks-sun, .ks-stage[data-bg="fly"] .ks-sun { background: #fbb928; }
.ks-cloud { position: absolute; width: 22%; height: 9%; background: #fff; border-radius: 99px; opacity: 0; top: 16%; left: 10%; transition: opacity 1s; }
.ks-cloud.b { top: 30%; left: 48%; width: 16%; } .ks-cloud::before { content: ""; position: absolute; left: 20%; top: -60%; width: 50%; height: 120%; background: #fff; border-radius: 50%; }
.ks-stage[data-bg="fly"] .ks-cloud { opacity: .95; animation: kscloud 9s linear infinite; }
@keyframes kscloud { from { transform: translateX(140%); } to { transform: translateX(-180%); } }
.ks-tree { position: absolute; left: 4%; bottom: 20%; width: 26%; aspect-ratio: 1 / 1.3; opacity: 0; transition: opacity 1s; background: radial-gradient(circle at 50% 30%, #3f9b4b 0 38%, transparent 39%), radial-gradient(circle at 28% 48%, #57b35c 0 28%, transparent 29%), radial-gradient(circle at 72% 48%, #2f8a41 0 28%, transparent 29%), linear-gradient(#8a5a33, #8a5a33) 50% 100% / 12% 46% no-repeat; }
.ks-stage[data-bg="garden"] .ks-tree, .ks-stage[data-bg="dusk"] .ks-tree { opacity: 1; }
.ks-pot { position: absolute; right: 12%; bottom: 9%; width: 30%; background: none; border: 0; padding: 0; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .6s, transform .2s; }
.ks-stage[data-bg="garden"] .ks-pot { opacity: 1; pointer-events: auto; }
.ks-inside { opacity: 0; transition: opacity .5s; } .ks-pot.peek .ks-inside, .ks-stage[data-act="pebbles"] .ks-inside, .ks-stage[data-act="drink"] .ks-inside { opacity: 1; }
#ks-water { transition: y .5s, height .5s; }
#ks-stones ellipse { opacity: 0; transition: opacity .3s; }
#ks-stones[data-n="1"] ellipse:nth-child(-n+1), #ks-stones[data-n="2"] ellipse:nth-child(-n+2), #ks-stones[data-n="3"] ellipse:nth-child(-n+3), #ks-stones[data-n="4"] ellipse:nth-child(-n+4), #ks-stones[data-n="5"] ellipse:nth-child(-n+5), #ks-stones[data-n="6"] ellipse { opacity: 1; }
.ks-stage.ready[data-act="tappot"] .ks-pot { animation: kspulse 1.2s ease-in-out infinite; }
@keyframes kspulse { 50% { transform: scale(1.06); } }
.ks-crow { position: absolute; left: 10%; bottom: 16%; width: 26%; background: none; border: 0; padding: 0; cursor: pointer; transition: left 1.5s ease-in, bottom 1.5s ease-in, transform .5s; animation: ksbob 1.6s ease-in-out infinite; }
.ks-crow img { width: 100%; height: auto; }
@keyframes ksbob { 50% { transform: translateY(-4%) rotate(-3deg); } }
.ks-stage[data-bg="fly"] .ks-crow { left: 36%; bottom: 44%; animation: ksflap .5s ease-in-out infinite; }
@keyframes ksflap { 50% { transform: translateY(-8%) rotate(6deg) scaleY(.92); } }
.ks-stage[data-bg="garden"] .ks-crow { left: 30%; bottom: 14%; }
.ks-crow.onpot { left: 46% !important; bottom: 40% !important; }
.ks-crow.sip { transform: rotate(38deg) translateY(12%); animation: none; }
.ks-crow.fly { left: 110% !important; bottom: 80% !important; animation: ksflap .4s ease-in-out infinite; }
.ks-stage[data-bg="dusk"] .ks-crow, .ks-stage[data-act="end"] .ks-crow { left: 62%; bottom: 52%; width: 18%; animation: ksflap .6s ease-in-out infinite; }
.ks-stage.ready[data-act="tapcrow"] .ks-crow, .ks-stage.ready[data-act="drink"] .ks-crow { filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 4px var(--gold)); }
.ks-pebbles { position: absolute; left: 4%; bottom: 3%; width: 46%; height: 16%; }
.ks-peb { position: absolute; left: calc(var(--k) * 15.5%); bottom: calc(10% + (var(--k) * 37 % 3) * 9%); width: 15%; aspect-ratio: 1.5; border: 0; border-radius: 50%; background: #8d8f97; box-shadow: inset -4px -4px 0 #74767e; cursor: pointer; padding: 0; transition: transform .42s cubic-bezier(.3,-.4,.7,1), opacity .1s .4s; animation: kspulse 1.4s ease-in-out infinite; animation-delay: calc(var(--k) * .15s); }
.ks-peb::after { content: ""; position: absolute; inset: -40%; }
.ks-peb.in { transform: translate(calc(330% - var(--k) * 100%), -260%) scale(.6); opacity: 0; animation: none; pointer-events: none; }
.ks-cap { background: var(--white); border-radius: 22px; padding: .9rem 1.1rem; margin-top: .8rem; border-left: 8px solid var(--c, var(--magenta)); }
.ks-pa { font: 700 clamp(1.25rem, 4.6vw, 1.6rem)/1.5 var(--display); color: var(--ink); margin: 0; }
.ks-en { color: var(--ink-soft); margin: .4rem 0 0; font-size: .95rem; }
.ks-opts .ks-opt img { width: 62%; max-width: 130px; height: auto; }
.g-four.ks-opts, .g-four.rd-three { grid-template-columns: repeat(3, 1fr); margin-top: .8rem; }
.g-four.ks-opts[hidden], .g-four.rd-three[hidden] { display: none; }
.ks-opt, .rd-three .g-opt { min-height: 6.5rem; }
.ks-pebpic { display: flex; gap: 4px; align-items: flex-end; } .ks-pebpic i { width: 26px; height: 18px; background: #8d8f97; border-radius: 50%; box-shadow: inset -3px -3px 0 #74767e; } .ks-pebpic i:nth-child(2) { width: 32px; height: 22px; }
.ks-end { position: absolute; inset: 0; background: rgba(255,255,255,.93); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; gap: .3rem; }
.ks-end[hidden] { display: none; } .ks-end b { font: 800 2.4rem/1 var(--display); color: var(--magenta); } .ks-end p { margin: .3rem 0 .6rem; }
.ks-hint { min-height: 1.5em; font-size: 1rem; color: var(--saffron-deep); }
.ks-main .g-intro:not([hidden]) ~ .ks-stage, .ks-main .g-intro:not([hidden]) ~ .ks-cap, .g-main .g-intro:not([hidden]) ~ :not(.more-play) { display: none; }

/* ---- riddles ---- */
.rd-well { position: relative; height: 150px; margin: 1rem auto 0; width: 190px; }
.rd-wall { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; border-radius: 14px; background: repeating-linear-gradient(0deg, #b9773f 0 18px, #9c5f2c 18px 21px), #b9773f; box-shadow: inset 0 10px 0 #8a4b2a; }
.rd-rope { position: absolute; left: 50%; top: 0; width: 5px; margin-left: -2px; height: 100px; background: repeating-linear-gradient(#e2c79a 0 6px, #b79a66 6px 9px); }
.rd-bucket { position: absolute; left: 50%; top: 96px; width: 62px; height: 52px; margin-left: -31px; background: #7b8794; border-radius: 6px 6px 18px 18px; display: grid; place-items: center; color: #fff; font: 800 1.6rem/1 var(--display); z-index: -1; opacity: 0; }
.rd-well.up .rd-bucket { animation: rdup 1.2s cubic-bezier(.3,1.3,.5,1) forwards; z-index: 1; }
@keyframes rdup { from { top: 96px; opacity: 1; } to { top: 20px; opacity: 1; } }
.rd-card { background: var(--white); border-radius: 22px; padding: 1rem 1.1rem; margin-top: .8rem; border-left: 8px solid var(--blue); }
.rd-card[hidden] { display: none; }
.rd-ans { display: flex; align-items: center; gap: .9rem; background: #e7f6ea; border-radius: 22px; padding: .6rem 1rem; margin-top: .8rem; }
.rd-ans[hidden] { display: none; } .rd-ans img { width: 84px; height: 84px; } .rd-ans b { font: 800 2rem/1 var(--display); color: var(--green); } .rd-ans span { color: var(--ink-soft); }

/* ---- kitchen sort ---- */
.so-tray { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; min-height: 9rem; }
.so-item { background: var(--white); border: 3px solid var(--line); border-radius: 20px; aspect-ratio: 1; display: grid; place-items: center; cursor: grab; touch-action: none; padding: 0; transition: box-shadow .15s, opacity .3s, scale .3s; }
.so-item img { width: 80%; height: auto; pointer-events: none; }
.so-item.drag { z-index: 30; box-shadow: 0 12px 24px rgba(23,58,99,.3); cursor: grabbing; } .so-item.sel { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(243,146,22,.3); }
.so-item.gone { opacity: 0; scale: .3; pointer-events: none; } .so-item.no, .wb-tile.no { animation: gshake .35s; border-color: var(--magenta); }
.so-bins { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.so-bin { background: #fff8e8; border: 4px dashed var(--saffron); border-radius: 26px; padding: .8rem .5rem; display: flex; flex-direction: column; align-items: center; cursor: pointer; color: var(--ink-soft); font-size: .85rem; min-height: 10rem; justify-content: center; transition: transform .15s; }
.so-bin[data-bin="keep"] { border-color: var(--green); background: #eef8ea; }
.so-bin img { width: 96px; height: 96px; } .so-bin b { font: 800 1.3rem/1.2 var(--display); color: var(--ink); } .so-bin.hit { transform: scale(1.08); }
.so-basket { width: 96px; height: 70px; margin: 13px 0; border-radius: 10px 10px 40px 40px; background: repeating-linear-gradient(45deg, #c98c56 0 8px, #a8703d 8px 16px); box-shadow: inset 0 10px 0 #8a5a33; }

/* ---- word builder ---- */
.wb-picbtn { margin: .8rem auto 0; width: 100%; } .wb-picbtn span { font: 400 1rem/1.3 var(--body) !important; color: var(--ink-soft) !important; }
.wb-slots { display: flex; justify-content: center; gap: .5rem; margin: .9rem 0; min-height: 4.6rem; }
.wb-slot { min-width: 4rem; height: 4.6rem; border-radius: 16px; border: 3px dashed #9db8d4; background: #f4f9ff; display: grid; place-items: center; font: 800 2.4rem/1 var(--display); color: var(--ink); padding: .3rem .4rem 0; }
.wb-slot.full { border: 3px solid var(--green); background: #e7f6ea; animation: gbounce .4s; }
.wb-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; min-height: 5rem; }
.wb-tile { min-width: 4.4rem; height: 4.8rem; border-radius: 18px; border: 0; background: var(--saffron); color: #fff; font: 800 2.4rem/1 var(--display); padding: .3rem .5rem 0; cursor: grab; touch-action: none; box-shadow: 0 6px 0 var(--saffron-deep); transition: opacity .2s; }
.wb-tile.drag { z-index: 30; cursor: grabbing; } .wb-tile.used { opacity: .15; box-shadow: none; pointer-events: none; }

/* ---- beat maker ---- */
.bt-top { display: flex; align-items: center; gap: 1rem; } .bt-top h1 { font: 800 2rem/1.1 var(--display); color: var(--magenta); margin: 0 0 .3rem; }
.bt-dhol { background: none; border: 0; padding: 0; cursor: pointer; width: 34%; max-width: 170px; flex: none; } .bt-dhol img { width: 100%; height: auto; }
.bt-dhol.hit { animation: bthit .18s; } @keyframes bthit { 40% { transform: scale(1.12) rotate(-4deg); } }
.bt-pres { display: flex; gap: .5rem; margin: .8rem 0; flex-wrap: wrap; } .bt-pres span { font: 800 1.15rem/1 var(--display); }
.bt-grid { background: var(--white); border-radius: 22px; padding: .7rem; display: grid; gap: .5rem; }
.bt-row { display: grid; grid-template-columns: 5.2rem 1fr; gap: .5rem; align-items: center; }
.bt-pad { border: 0; border-radius: 14px; background: var(--panel); color: var(--ink-soft); font-size: .7rem; display: flex; flex-direction: column; padding: .4rem .3rem .3rem; cursor: pointer; min-height: 44px; }
.bt-pad b { font: 800 1.05rem/1.1 var(--display); color: var(--ink); } .bt-pad:active { background: var(--gold); }
.bt-cells { display: grid; grid-template-columns: repeat(8, 1fr); gap: .3rem; }
.bt-cell { aspect-ratio: 1; min-height: 30px; border-radius: 10px; border: 2px solid var(--line); background: #f6f9fc; cursor: pointer; padding: 0; }
.bt-cell:nth-child(4n+1) { background: #eaf1f8; }
.bt-row[data-r="dagga"] .bt-cell.on { background: var(--blue); border-color: var(--blue); } .bt-row[data-r="tilli"] .bt-cell.on { background: var(--saffron); border-color: var(--saffron); }
.bt-row[data-r="chimta"] .bt-cell.on { background: var(--magenta); border-color: var(--magenta); } .bt-row[data-r="taali"] .bt-cell.on { background: var(--green); border-color: var(--green); }
.bt-cell.now { box-shadow: 0 0 0 3px var(--gold); } .bt-cell.now.on { transform: scale(1.15); }

/* ---- muhavre ---- */
.mh-card { background: var(--white); border-radius: 26px; padding: 1rem; text-align: center; margin-top: .8rem; border-bottom: 8px solid var(--green); }
.mh-card img { width: 130px; height: 130px; animation: ksbob 2s ease-in-out infinite; }
.mh-pa { font: 800 clamp(1.5rem, 6vw, 2.1rem)/1.35 var(--display); color: var(--ink); margin: .2rem 0; }
.mh-opts { display: grid; gap: .6rem; margin-top: .8rem; }
.mh-opt { background: var(--white); border: 3px solid var(--line); border-radius: 18px; padding: .9rem 1rem; font: 600 1.05rem/1.3 var(--body); color: var(--ink); text-align: left; cursor: pointer; min-height: 56px; }
.mh-opt:hover { border-color: var(--green); } .mh-opt.right { border-color: var(--green); background: #e7f6ea; } .mh-opt.wrong { opacity: .45; border-color: var(--magenta); animation: gshake .35s; }
.mh-expl { background: #e7f6ea; border-radius: 18px; padding: .8rem 1rem; font-weight: 700; color: var(--ink); } .mh-expl[hidden] { display: none; }

/* ---- radio ---- */
.ra-box { background: #c96d00; border-radius: 28px; padding: 1rem; margin-top: .8rem; box-shadow: inset 0 -10px 0 #a65a00; display: grid; grid-template-columns: 5.5rem 1fr; gap: .8rem; align-items: center; }
.ra-speaker { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fbb928 0 14%, #173a63 15% 100%); border: 5px solid #fbb928; }
.ra-box.on .ra-speaker { animation: raspk .5s ease-in-out infinite; } @keyframes raspk { 50% { transform: scale(1.05); } }
.ra-band { height: 26px; background: #fff7e6; border-radius: 8px; position: relative; background-image: repeating-linear-gradient(90deg, #c96d00 0 2px, transparent 2px 12px); }
.ra-band i { position: absolute; top: -4px; bottom: -4px; left: 10%; width: 5px; background: var(--magenta); border-radius: 3px; transition: left .5s cubic-bezier(.3,1.4,.5,1); }
.ra-dial { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.ra-st { border: 0; border-radius: 14px; background: #fff7e6; color: var(--ink-soft); font-size: .62rem; display: flex; flex-direction: column; align-items: center; padding: .5rem .1rem .35rem; cursor: pointer; min-height: 52px; }
.ra-st b { font: 800 1.1rem/1.1 var(--display); color: var(--ink); } .ra-st.on { background: var(--gold); box-shadow: 0 0 0 3px #fff; }
.ra-title { margin: 0; font-size: 1.15rem; color: var(--ink); } .ra-title b { font: 800 1.4rem/1 var(--display); color: var(--saffron-deep); }
.ra-pa { font-size: clamp(1.05rem, 4vw, 1.3rem) !important; font-weight: 600 !important; } .ra-main .ks-cap { border-left-color: var(--saffron); }
.ra-main .ks-cap:has(.ra-pa:empty) { display: none; }
.g-four.ra-six { grid-template-columns: repeat(3, 1fr); } .ra-six .g-opt { min-height: 6rem; }
.ra-quiz[hidden] { display: none; }

/* ---- sticker book ---- */
.bk-main h1 { font-family: var(--display); color: var(--saffron-deep); margin: 0; }
.bk-main .t-meter { margin: .6rem 0 1rem; } .bk-main .t-meter i { background: var(--gold); display: block; height: 100%; border-radius: 99px; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .5rem; }
.bk-cell { background: var(--white); border: 2px dashed var(--line); border-radius: 16px; padding: .4rem .2rem .2rem; display: flex; flex-direction: column; align-items: center; cursor: default; }
.bk-cell img { width: 78%; height: auto; filter: brightness(0) opacity(.12); }
.bk-cell span { font: 800 1rem/1.3 var(--display); color: #b9c8d8; }
.bk-cell.on { border: 2px solid var(--gold); cursor: pointer; background: #fffaf0; } .bk-cell.on img { filter: none; } .bk-cell.on span { color: var(--ink); }
.bk-cell.pop { animation: gbounce .4s; }

/* ---- lori ---- */
.lo-page { background: #16224a; transition: background 2s; } .lo-page .pd-head { background: #1d2c5c; border-color: #2b3b72; } .lo-page .pd-title b { color: #fff; } .lo-page .pd-title span { color: #b9c4e6; }
.lo-main { max-width: 560px; margin: 0 auto; padding: 2rem 1rem 3rem; text-align: center; color: #dfe6ff; position: relative; }
.lo-main h1 { font: 800 2.2rem/1.2 var(--display); color: #fff6d0; margin: .4rem 0; }
.lo-moon { width: 52%; max-width: 220px; height: auto; animation: lomoon 6s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(255,246,208,.5)); }
@keyframes lomoon { 50% { transform: translateY(-10px) rotate(4deg); } }
.lo-sky i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: lotwinkle 2.6s ease-in-out infinite; }
.lo-sky i:nth-child(1) { left: 8%; top: 10%; } .lo-sky i:nth-child(2) { left: 86%; top: 6%; animation-delay: .5s; } .lo-sky i:nth-child(3) { left: 20%; top: 38%; animation-delay: 1s; } .lo-sky i:nth-child(4) { left: 78%; top: 34%; animation-delay: 1.4s; }
.lo-sky i:nth-child(5) { left: 50%; top: 4%; animation-delay: .8s; } .lo-sky i:nth-child(6) { left: 92%; top: 56%; animation-delay: 1.9s; } .lo-sky i:nth-child(7) { left: 5%; top: 62%; animation-delay: .3s; } .lo-sky i:nth-child(8) { left: 64%; top: 16%; animation-delay: 2.2s; }
@keyframes lotwinkle { 50% { opacity: .2; transform: scale(.6); } }
.lo-dim.lo-page { background: #070b1c; } .lo-dim .lo-main p, .lo-dim .lo-main h1 { opacity: .35; transition: opacity 2s; } .lo-dim .pd-head { opacity: .3; }
.pr-main h1 { color: var(--blue); } .pr-main h2 { font-size: 1.2rem; margin-top: 1.4rem; color: var(--ink); }

@media (min-width: 720px) { .so-tray { grid-template-columns: repeat(8, 1fr); } .ks-stage { aspect-ratio: 16 / 9; } }
@media (prefers-reduced-motion: reduce) {
  .pl, .pv-rays, .pv-cloud, .pv-smoke circle, .pv-ripple, .pv-birds, .pv-kite, .pv-box, .ks-crow, .ks-sun, .ks-peb, .ks-stage .ks-cloud, .mh-card img, .lo-moon, .lo-sky i, .ra-box.on .ra-speaker { animation: none !important; }
  .ks-crow, .ks-peb, .stk-toast { transition: none; }
}
.pind [hidden] { display: none !important; }
.pind .g-four { display: grid; gap: .8rem; }
body.lo-page { background: #16224a; } body.lo-dim.lo-page { background: #070b1c; } body.pv-page { background: #dff0c2; }
.bt-row { grid-template-columns: 4.2rem minmax(0, 1fr); } .bt-cells { gap: .22rem; } .bt-cell { min-height: 0; min-width: 0; border-radius: 8px; }
.rd-well::before { content: ""; position: absolute; left: 8px; right: 8px; top: 0; height: 12px; background: #8a5a33; border-radius: 6px; }
.rd-well::after { content: ""; position: absolute; left: 14px; top: 8px; bottom: 60px; width: 10px; background: #8a5a33; box-shadow: 152px 0 0 #8a5a33; }
.lo-main p { display: block; }
/* home: village band */
.pind-band { background: linear-gradient(#dff0c2, #eef6e2); }
.pind-band .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .pind-band .wrap { grid-template-columns: 1.05fr .95fr; } }
.pind-band h2 span { display: block; font: 800 clamp(2.4rem, 7vw, 3.4rem)/1.05 var(--display); color: var(--green); }
.pind-peek { position: relative; display: block; aspect-ratio: 1 / .92; text-decoration: none; background: radial-gradient(circle at 50% 60%, #fbf3df 0 44%, transparent 45%); }
.pk { position: absolute; width: 34%; display: flex; flex-direction: column; align-items: center; animation: plbob 3.4s ease-in-out infinite; }
.pk img { width: 100%; height: auto; background: #fff; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 6px 0 rgba(23,58,99,.16); }
.pk b { margin-top: -.6rem; background: #8a5a33; color: #fff; border-radius: 10px; padding: .25rem .6rem .1rem; font: 800 1.05rem/1.2 var(--display); box-shadow: 0 3px 0 #5f3c20; white-space: nowrap; }
.pk1 { left: 4%; top: 2%; } .pk2 { right: 4%; top: 6%; animation-delay: -.8s; } .pk3 { left: 0; bottom: 4%; animation-delay: -1.6s; } .pk4 { left: 33%; top: 33%; animation-delay: -2.2s; width: 36%; } .pk5 { right: 0; bottom: 0; animation-delay: -1.1s; }
.pind-peek:hover .pk img { border-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .pk { animation: none; } }
.form-err { color: #b3261e; font-weight: 700; margin: .4rem 0 0; }

/* ================= village art pass (embroidered artwork) ================= */
.pv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-night .pv-bg { filter: brightness(.55) saturate(.8) hue-rotate(-12deg); }
.pv-map { box-shadow: 0 8px 0 #b9cf96; }
.pl-pic { background: rgba(255,253,246,.94); }

/* ---- story stage ---- */
.kx-stage { position: relative; container-type: inline-size; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; margin-top: .8rem; background: #f6e3b4; isolation: isolate; }
@media (min-width: 720px) { .kx-stage { aspect-ratio: 16 / 9; } }
.kx-bg { position: absolute; inset: 0; background-size: cover; background-position: 50% 100%; opacity: 0; transition: opacity .9s; }
.kx-stage[data-bg="hot"] .kx-hot, .kx-stage[data-bg="fly"] .kx-sky, .kx-stage[data-bg="garden"] .kx-garden, .kx-stage[data-bg="dusk"] .kx-garden { opacity: 1; }
.kx-hot { background-position: 50% 100%; animation: kxdrift 18s ease-in-out infinite alternate; }
.kx-sky { background-size: auto 135%; animation: kxpan 14s linear infinite; }
.kx-garden { background-position: 100% 100%; }
@keyframes kxpan { from { background-position: 0% 60%; } to { background-position: 100% 60%; } }
@keyframes kxdrift { from { transform: scale(1.02); } to { transform: scale(1.08) translateX(-1.5%); } }
.kx-glow { position: absolute; right: 4%; top: -6%; width: 46cqw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,102,.55), rgba(255,214,102,0) 65%); opacity: 0; animation: kxglow 2.6s ease-in-out infinite; pointer-events: none; }
.kx-stage[data-bg="hot"] .kx-glow { opacity: 1; }
@keyframes kxglow { 50% { transform: scale(1.18); } }
.kx-puff { position: absolute; width: 34cqw; height: 9cqw; border-radius: 99px; background: rgba(255,255,255,.75); filter: blur(6px); opacity: 0; top: 12%; left: 100%; pointer-events: none; }
.kx-puff.b { top: 58%; width: 24cqw; }
.kx-stage[data-bg="fly"] .kx-puff { opacity: 1; animation: kxpuff 3.4s linear infinite; }
.kx-stage[data-bg="fly"] .kx-puff.b { animation-duration: 2.3s; animation-delay: -1s; }
@keyframes kxpuff { from { transform: translateX(10cqw); } to { transform: translateX(-150cqw); } }
.kx-fly-by { position: absolute; width: 8cqw; height: auto; left: 16cqw; bottom: 22cqw; opacity: 0; pointer-events: none; }
.kx-stage[data-bg="garden"] .kx-fly-by { opacity: 1; animation: kxflit 7s ease-in-out infinite; }
@keyframes kxflit { 0% { transform: translate(0,0) rotate(-8deg); } 25% { transform: translate(9cqw,-5cqw) rotate(10deg); } 50% { transform: translate(18cqw,1cqw) rotate(-6deg); } 75% { transform: translate(8cqw,5cqw) rotate(12deg); } 100% { transform: translate(0,0) rotate(-8deg); } }
.kx-dusk { position: absolute; inset: 0; background: linear-gradient(#3b2f7a 0%, #b3506b 45%, #f39a4d 72%, #6b4a2a 100%); mix-blend-mode: multiply; opacity: 0; transition: opacity 1.4s; pointer-events: none; }
.kx-stage[data-bg="dusk"] .kx-dusk { opacity: .82; }
.kx-dusk i { position: absolute; width: 1cqw; height: 1cqw; border-radius: 50%; background: #fff; mix-blend-mode: normal; animation: lotwinkle 2.4s ease-in-out infinite; }
.kx-dusk i:nth-child(1) { left: 12%; top: 10%; } .kx-dusk i:nth-child(2) { left: 38%; top: 6%; animation-delay: .6s; } .kx-dusk i:nth-child(3) { left: 62%; top: 14%; animation-delay: 1.1s; } .kx-dusk i:nth-child(4) { left: 84%; top: 8%; animation-delay: .3s; } .kx-dusk i:nth-child(5) { left: 50%; top: 22%; animation-delay: 1.6s; }
.kx-pot { position: absolute; left: 58cqw; bottom: 5cqw; width: 30cqw; background: none; border: 0; padding: 0; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .6s; filter: drop-shadow(0 1.2cqw .8cqw rgba(60,30,10,.35)); }
.kx-pot img { width: 100%; height: auto; display: block; }
.kx-stage[data-bg="garden"] .kx-pot, .kx-stage[data-bg="dusk"] .kx-pot { opacity: 1; pointer-events: auto; }
.kx-stage.ready[data-act="tappot"] .kx-pot { animation: kspulse 1.2s ease-in-out infinite; }
.kx-lens { position: absolute; left: 5cqw; top: 4cqw; width: 27cqw; opacity: 0; transform: scale(.4); transform-origin: 100% 100%; transition: opacity .4s, transform .5s cubic-bezier(.2,1.5,.4,1); pointer-events: none; text-align: center; filter: drop-shadow(0 .8cqw 1cqw rgba(23,58,99,.3)); }
.kx-lens svg { width: 100%; height: auto; display: block; }
.kx-lens span { display: inline-block; margin-top: -1.4cqw; background: #8a5a33; color: #fff; border-radius: 99px; padding: .2cqw 2cqw 0; font: 800 3.4cqw/1.5 var(--display); }
.kx-stage.lens .kx-lens { opacity: 1; transform: none; }
.kx-stage[data-bg="hot"] .kx-lens, .kx-stage[data-bg="fly"] .kx-lens, .kx-stage[data-bg="dusk"] .kx-lens { opacity: 0; }
#ks-water { transition: y .6s cubic-bezier(.3,1.4,.5,1), height .6s cubic-bezier(.3,1.4,.5,1); } #ks-wave { transition: transform .6s cubic-bezier(.3,1.4,.5,1); animation: kxwave 1.8s linear infinite; }
@keyframes kxwave { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 40; } }
#ks-stones image { opacity: 0; transition: opacity .25s; }
#ks-stones[data-n="1"] image:nth-child(-n+1), #ks-stones[data-n="2"] image:nth-child(-n+2), #ks-stones[data-n="3"] image:nth-child(-n+3), #ks-stones[data-n="4"] image:nth-child(-n+4), #ks-stones[data-n="5"] image:nth-child(-n+5), #ks-stones[data-n="6"] image { opacity: 1; }
.kx-pebbles { position: absolute; inset: 0; pointer-events: none; }
.kx-peb { position: absolute; width: 8.5cqw; background: none; border: 0; padding: 0; cursor: pointer; pointer-events: auto; animation: kspulse 1.4s ease-in-out infinite; animation-delay: calc(var(--k) * .15s); filter: drop-shadow(0 .5cqw .4cqw rgba(0,0,0,.3)); }
.kx-peb::after { content: ""; position: absolute; inset: -35%; } .kx-peb img { width: 100%; height: auto; display: block; }
.kx-peb.in { animation: none; pointer-events: none; z-index: 5; }
.kx-crow { position: absolute; left: 12cqw; bottom: 12cqw; width: 20cqw; background: none; border: 0; padding: 0; cursor: pointer; z-index: 4; filter: drop-shadow(0 .8cqw .6cqw rgba(0,0,0,.28)); -webkit-tap-highlight-color: transparent; }
.kx-crow > * { display: none; width: 100%; }
.kx-crow[data-pose="idle"] .kx-idle { display: block; height: auto; transform: scaleX(-1); animation: kxidle 1.7s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes kxidle { 0%, 100% { transform: scaleX(-1) rotate(0); } 30% { transform: scaleX(-1) rotate(4deg) translateY(-2%); } 60% { transform: scaleX(-1) rotate(-3deg); } }
.kx-crow[data-pose="fly"] .kx-fly { display: block; aspect-ratio: 300 / 311; background-size: 400% 100%; background-repeat: no-repeat; animation: kxflap .36s steps(4) infinite, kxbob 1.1s ease-in-out infinite; }
@keyframes kxflap { from { background-position-x: 0; } to { background-position-x: 133.333%; } }
@keyframes kxbob { 50% { transform: translateY(-5%); } }
.kx-crow[data-pose="drink"] .kx-drink { display: block; height: auto; transform-origin: 30% 96%; transform: rotate(-14deg); transition: transform .3s; }
.kx-crow.sip[data-pose="drink"] .kx-drink { animation: kxsip .7s ease-in-out 3; }
@keyframes kxsip { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(12deg); } }
.kx-crow.cruise { animation: kxcruise 9s linear infinite; }
@keyframes kxcruise { from { left: -20cqw; bottom: 30cqw; } to { left: 110cqw; bottom: 44cqw; } }
.kx-stage.ready[data-act="tapcrow"] .kx-crow, .kx-stage.ready[data-act="drink"] .kx-crow { filter: drop-shadow(0 0 1.4cqw #fff) drop-shadow(0 0 .8cqw var(--gold)); }
.kx-stage[data-act="end"] .kx-crow { z-index: 0; }
.ks-main .g-intro:not([hidden]) ~ .kx-stage { display: none; }
.ks-opts .ks-opt img { width: 70%; }

/* ---- the well ---- */
.wx-well { position: relative; width: min(64vw, 270px); aspect-ratio: 440 / 513; margin: .6rem auto 0; }
.wx-well img.wx-back, .wx-well img.wx-front { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wx-front { clip-path: polygon(0 49%, 20% 50%, 26% 53.2%, 34% 55.6%, 42% 56.9%, 52% 56.9%, 62% 55.9%, 72% 54.1%, 80% 51.6%, 84% 49%, 100% 49%, 100% 100%, 0 100%); z-index: 3; }
.wx-rope { position: absolute; left: 49.1%; width: 1.9%; top: 30.5%; height: 32%; z-index: 1; border-radius: 3px; background: repeating-linear-gradient(160deg, #e2c79a 0 4px, #a9865a 4px 7px); transition: height 1.4s cubic-bezier(.45,.05,.3,1); }
.wx-bucket { position: absolute; left: 38%; width: 24%; top: 61%; z-index: 2; transition: top 1.4s cubic-bezier(.45,.05,.3,1); transform-origin: 50% 0; }
.wx-bucket img { width: 100%; height: auto; display: block; }
.wx-well.up .wx-rope { height: 3%; } .wx-well.up .wx-bucket { top: 32.5%; animation: wxswing 2.4s ease-in-out 1.4s infinite; }
@keyframes wxswing { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.wx-bucket b { position: absolute; top: 96%; width: 7%; aspect-ratio: 1 / 1.5; background: #4aa3df; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; opacity: 0; }
.wx-bucket b:nth-child(2) { left: 22%; } .wx-bucket b:nth-child(3) { left: 50%; } .wx-bucket b:nth-child(4) { left: 74%; }
.wx-well.drip .wx-bucket b { animation: wxdrip 1.3s ease-in infinite; } .wx-well.drip .wx-bucket b:nth-child(3) { animation-delay: .45s; } .wx-well.drip .wx-bucket b:nth-child(4) { animation-delay: .9s; }
@keyframes wxdrip { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(260%); } }
.so-bin img[src*="basket"] { width: 110px; height: auto; margin: 8px 0; }
.g-intro img[src*="pind/radio"], .pl-pic img[src*="pind/radio"] { object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .kx-hot, .kx-sky, .kx-glow, .kx-puff, .kx-fly-by, .kx-peb, .kx-crow .kx-idle, .kx-crow.cruise, .wx-bucket, .wx-bucket b { animation: none !important; } .kx-crow, .wx-rope, .wx-bucket { transition: none !important; } }
/* stroke tracing: keep the stage still while the hint text changes */
.trace-page .t-prompt { min-height: 2.7em; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.3; margin-block: 6px; }
/* step 2: write it yourself */
.t-tries { display: flex; gap: .4rem; align-items: center; justify-content: center; font-weight: 700; color: var(--ink, #135091); margin: -2px 0 8px; font-size: .95rem; }
.t-tries i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #e03c82; display: inline-block; }
.t-tries i.on { background: #e03c82; }
.t-stage.solo { box-shadow: 0 6px 0 #f39216; }
.t-pick.gold { box-shadow: inset 0 0 0 3px #fbb928; }
/* hint pictures (easy level) */
.t-hint { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 10px; }
.t-hint figure { margin: 0; background: #fff; border-radius: 12px; box-shadow: 0 2px 0 var(--line, #d6e2ee); padding: 4px 4px 2px; text-align: center; }
.t-hint canvas { display: block; }
.t-hint figcaption { font-weight: 800; color: #2fa24b; font-size: .85rem; line-height: 1.2; }
.t-pick.hinted { box-shadow: inset 0 0 0 2px #9db8d4; }
/* fit the whole tracing tool on one screen (phones, tablets) */
.trace-page .t-top { display: none; }
.trace-page .t-picker { padding: .25rem .2rem .35rem; }
.trace-page .t-pick { width: 2.6rem; height: 2.6rem; font-size: 1.4rem; }
.trace-page .t-prompt { min-height: 2.5em; font-size: 1.02rem; margin-block: 2px 4px; }
.trace-page .t-tries { margin: 0 0 6px; }
.trace-page .t-stage, .trace-page .t-meter { width: max(220px, min(90vw, 440px, calc(100svh - 340px))); }
.trace-page .t-stage { border-radius: 22px; }
.trace-page .t-meter { height: 10px; margin-top: 8px; }
.trace-page .t-btns { gap: .4rem; margin-top: 10px; max-width: min(96vw, 560px); }
.trace-page .t-btns .btn { padding: .5rem .85rem; font-size: .92rem; min-height: 40px; }
.trace-page .t-hint figure { padding: 2px 2px 0; }
@media (max-height: 760px) {
  .trace-page .t-hint canvas { width: 54px !important; height: 54px !important; }
}
/* dhol page: smaller drum and title on short screens */
@media (max-height: 820px), (max-width: 560px) {
  .bt-top h1 { font-size: 1.5rem; }
  .bt-dhol { width: 24%; max-width: 120px; }
  .bt-pres { margin: .5rem 0; }
  .bt-grid { padding: .5rem; gap: .35rem; }
  .bt-pad { min-height: 40px; padding: .3rem .25rem .25rem; }
}
@media (max-height: 660px) {
  .bt-top h1 { font-size: 1.3rem; } .bt-top p { display: none; }
  .bt-dhol { width: 18%; max-width: 90px; }
  .bt-pad { min-height: 34px; } .bt-pad b { font-size: .95rem; }
  .pind .t-btns { margin-top: 8px; }
}
@media (max-height: 620px) {
  .trace-page .t-prompt { min-height: 2.3em; font-size: .95rem; }
  .trace-page .t-pick { width: 2.3rem; height: 2.3rem; font-size: 1.25rem; }
  .trace-page .t-btns .btn { padding: .4rem .7rem; min-height: 36px; }
}
.trace-page [hidden] { display: none !important; }
.trace-page .t-stage.hinting, .trace-page .t-stage.hinting + .t-meter { width: max(200px, min(90vw, 440px, calc(100svh - 430px))); }
.prose { max-width: 68ch; margin: 0 auto; padding: 2rem 1.2rem 3rem; line-height: 1.6; }
.prose h1 { font-family: var(--display); color: var(--blue); margin-bottom: .2rem; }
.prose h2 { font-family: var(--display); color: var(--ink); margin: 1.6rem 0 .4rem; font-size: 1.3rem; }
/* installed app (Android) */
html.in-app body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
html.in-app input, html.in-app textarea { -webkit-user-select: text; user-select: text; }
html.in-app button, html.in-app a { touch-action: manipulation; }
/* parent gate */
.pg-wrap { position: fixed; inset: 0; background: rgba(19,40,70,.55); display: grid; place-items: center; z-index: 1000; padding: 1rem; }
.pg-card { background: #fff; border-radius: 22px; padding: 1.4rem 1.2rem 1rem; width: min(92vw, 360px); text-align: center; box-shadow: 0 8px 0 rgba(0,0,0,.15); }
.pg-h { font: 800 1.2rem/1.2 var(--display, sans-serif); color: #e03c82; margin: 0 0 .3rem; }
.pg-q { font: 800 1.8rem/1.2 var(--display, sans-serif); color: #135091; margin: .2rem 0 1rem; }
.pg-row { display: flex; gap: .6rem; justify-content: center; }
.pg-opt { min-width: 64px; font-size: 1.3rem; }
.pg-x { margin-top: 1rem; background: none; border: 0; color: #5b6b7c; text-decoration: underline; font-size: .95rem; cursor: pointer; }
/* offline download panel */
.off-box { background: var(--white, #fff); border-radius: 18px; padding: 1rem 1.1rem; margin: 1rem 0; box-shadow: 0 4px 0 var(--line, #d6e2ee); }
.off-bar { height: 10px; background: var(--line, #d6e2ee); border-radius: 99px; overflow: hidden; margin-top: .6rem; }
.off-bar i { display: block; height: 100%; width: 0; background: var(--green, #2fa24b); transition: width .2s; }

/* ---------- Pind Pass (soft lock) ---------- */
.pl-lock { position: absolute; left: 10%; top: -4%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M20 28v-8a12 12 0 0 1 24 0v8' fill='none' stroke='%238a5a14' stroke-width='7' stroke-linecap='round'/%3E%3Crect x='10' y='27' width='44' height='31' rx='9' fill='%23f6b62b' stroke='%238a5a14' stroke-width='3'/%3E%3Ccircle cx='32' cy='40' r='5' fill='%238a5a14'/%3E%3C/svg%3E") center/68% no-repeat; box-shadow: 0 2px 0 rgba(23,58,99,.2); z-index: 2; }
.pl-locked .pl-pic img { filter: saturate(.55) brightness(.97); }
.pl-locked .pl-pic { border-color: #f6dfa6; }
.t-pick.locked { color: #9aa9b9; background: #f4f6f9; border-style: dashed; }
.t-pick.locked::after { content: ""; position: absolute; right: -5px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M20 28v-8a12 12 0 0 1 24 0v8' fill='none' stroke='%238a5a14' stroke-width='7' stroke-linecap='round'/%3E%3Crect x='10' y='27' width='44' height='31' rx='9' fill='%23f6b62b' stroke='%238a5a14' stroke-width='3'/%3E%3C/svg%3E") center/72% no-repeat; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.pass-card { padding-top: 1.1rem; }
.pass-lock { width: 72px; height: 72px; margin: 0 auto .4rem; border-radius: 50%; background: #fff6dc; display: grid; place-items: center; animation: passwig 1.6s ease-in-out 1; }
.pass-lock svg { width: 46px; height: 46px; }
@keyframes passwig { 0%,100% { transform: rotate(0); } 15% { transform: rotate(-10deg); } 30% { transform: rotate(9deg); } 45% { transform: rotate(-6deg); } 60% { transform: rotate(3deg); } }
.pass-pa { font: 800 1.35rem/1.3 var(--display); color: var(--ink); margin: 0 0 .15rem; }
.pass-sub { color: var(--ink-soft); margin: .2rem 0 1rem; }
.pass-row { display: flex; flex-direction: column; gap: .55rem; }
.pass-row .btn { width: 100%; justify-content: center; text-align: center; }
html.pass-locked .pass-wrap { background: rgba(19,40,70,.82); }
@media (prefers-reduced-motion: reduce) { .pass-lock { animation: none; } }

/* Pind Pass page */
.pass-hero { text-align: center; padding-bottom: 1rem; }
.pass-hero h1 { font: 800 clamp(2.2rem, 6vw, 3.4rem)/1.05 var(--display); color: var(--ink); margin: .2rem 0 .5rem; }
.pass-hero .intro { margin-inline: auto; max-width: 34rem; }
.pass-badge { width: 112px; height: 112px; margin: 0 auto; border-radius: 50%; background: #fff6dc; display: grid; place-items: center; box-shadow: 0 6px 0 rgba(201,109,0,.18); }
.pass-badge img { width: 78%; height: auto; }
.pass-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.5rem; align-items: start; }
.pass-col { border: 2px solid var(--line); border-radius: 22px; padding: 1.4rem 1.4rem 1rem; background: var(--white); }
.pass-col h2 { margin-top: 0; }
.pass-col-paid { border-color: var(--gold); background: #fffaf0; box-shadow: 0 6px 0 rgba(201,109,0,.14); }
.pass-col-paid .sub { margin-top: -.4rem; }
.pass-promise { text-align: center; color: var(--ink-soft); max-width: 40rem; margin: 1.5rem auto 0; }
.pass-ok { font-weight: 700; color: var(--green); margin: .3rem 0 0; }
@media (max-width: 720px) { .pass-cols { grid-template-columns: 1fr; } }
.pass-page .pass-hero { padding-bottom: 0; }
.pass-page .pass-hero + .band { padding-top: 2rem; }

/* ---------- v15 review fixes ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* header: bigger tap targets, phone menu */
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .15rem; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 1rem/1 var(--display); cursor: pointer; }
.nav-bars, .nav-bars::before, .nav-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-bars::before, .nav-bars::after { content: ""; position: absolute; left: 0; }
.nav-bars::before { top: -6px; } .nav-bars::after { top: 6px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: .4rem 0 0; padding: .4rem 0; border-top: 1px solid var(--line); }
  .site-head.open .site-nav { display: flex; }
  .site-nav a:not(.btn) { min-height: 48px; padding: 0 .3rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav .btn { margin-top: .8rem; justify-content: center; }
}
.listen-head .brand { min-height: 44px; align-items: center; }
/* contrast: darker text versions of the book colours */
.app-tile .gm { color: color-mix(in srgb, var(--c) 62%, #000); }
.say .gm b, .demo-pic .gm b { color: var(--saffron-deep); }
.pd-back { background: #23813a; }
.pd-back:hover { background: #1c6b30; }
.pv-gift { background: #c92a6e; }
.st-cell { color: #7f92a8; }
.t-pick.locked { color: #74879c; }
/* play tile lock */
.app-tile { position: relative; }
.app-tile .pl-lock { left: auto; right: .8rem; top: .8rem; width: 34px; }
.tile-locked img { filter: saturate(.55); }
/* parents page links as proper tap targets */
.pr-main .sub a { display: inline-flex; align-items: center; min-height: 44px; }
/* about page */
.about-hero { text-align: center; padding-bottom: .5rem; }
.about-hero h1 { font: 800 clamp(2.1rem, 6vw, 3.2rem)/1.08 var(--display); color: var(--ink); margin: 0 0 .5rem; }
.about-hero .intro { margin-inline: auto; max-width: 36rem; }
.about-page .about-hero + .band { padding-top: 1.5rem; }
.about-prose { max-width: 44rem; }
.about-prose h2 { margin-top: 2.2rem; }
.about-cta { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.g-intro h1 { color: color-mix(in srgb, var(--c) 62%, #000); }
.st-badge { color: var(--ink); }
.site-foot a { display: inline-flex; align-items: center; min-height: 40px; }
.waitlist input[type=checkbox] { width: 22px; height: 22px; }
.about-hero .intro, .pass-hero .intro { margin-bottom: 0; }
.about-prose.prose { padding-top: 0; }
.about-page .about-hero + .band { padding-top: 0; }
/* bilingual FAQ */
.faq summary .faq-pa { display: block; font: 700 1.05rem/1.4 var(--display); color: var(--ink-soft); margin-top: .25rem; }
.faq p.faq-pa { font-size: 1.08rem; line-height: 1.75; color: var(--ink); border-left: 3px solid var(--saffron); padding-left: .8rem; margin-top: .4rem; }
.faq-h-pa { color: var(--saffron-deep); margin-left: .4rem; }
.faq-note { color: var(--ink-soft); margin: -.4rem 0 1.2rem; }
.faq summary .faq-q { display: block; flex: 1; }
