:root {
  --ink: #1e2650;
  --sky: #8fd6ff;
  --sky2: #cdeeff;
  --grass: #8ad97a;
  --grass2: #5bbf62;
  --sun: #ffc23d;
  --tomato: #ef5b52;
  --blue: #3e9be0;
  --mint: #2fb383;
  --card: #ffffff;
  --paper: #fff8e6;
  --lock: #b9c1d6;
  --font: "Baloo 2", "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky2) 45%, var(--grass) 100%);
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
#app {
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
button:focus-visible { outline: 4px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

/* shared pieces */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
}
.icon-btn {
  width: 48px; height: 48px;
  border-radius: 16px;
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  font-size: 22px;
  display: grid; place-items: center;
  flex: none;
}
.icon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.icon-btn:disabled { opacity: .35; }
.gem-count {
  display: flex; align-items: center; gap: 4px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 2px 14px 0 10px;
  font-size: 22px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.bigbtn {
  min-width: 96px; height: 84px;
  padding: 0 18px;
  border-radius: 26px;
  background: var(--card);
  border: 4px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  font-size: 40px; font-weight: 800;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1;
}
.bigbtn small { font-size: 15px; letter-spacing: 1px; margin-top: 2px; }
.bigbtn.green { background: var(--mint); color: #fff; }
.bigbtn.gold { background: var(--sun); }
.bigbtn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.bigbtn:disabled { opacity: .4; }
.stars { display: flex; gap: 1px; justify-content: center; font-size: 18px; line-height: 1; }
.stars i { font-style: normal; color: rgba(30, 38, 80, .2); }
.stars i.on { color: var(--sun); text-shadow: 0 1px 0 #b27c00; }
.stars.big { font-size: 40px; }
.stars.huge { font-size: 64px; margin-block: 6px; }
.stars.huge i.on { animation: starpop .5s both; }
@keyframes starpop { 0% { transform: scale(0) rotate(-90deg); } 70% { transform: scale(1.3); } 100% { transform: none; } }

/* home */
.home {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  padding: 16px;
  position: relative;
}
.home .back { position: absolute; top: 14px; left: 14px; }
.logo {
  margin: 0;
  font-size: clamp(38px, 13vw, 50px); line-height: .95; text-align: center; font-weight: 800;
  color: #fff;
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink);
  transform: rotate(-3deg);
}
.logo-art { font-size: 30px; letter-spacing: 6px; }
.players { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.player {
  width: 120px; height: 132px;
  border-radius: 28px;
  background: var(--card);
  border: 4px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.player .av { font-size: 60px; line-height: 1.1; }
.player .pg { font-size: 18px; font-weight: 800; }
.player.add .av { font-size: 54px; color: var(--mint); }
.player:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.big-q { font-size: 72px; }
.avatars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.avatar {
  width: clamp(58px, 18vw, 76px); height: clamp(58px, 18vw, 76px); font-size: clamp(34px, 11vw, 46px);
  border-radius: 22px; background: var(--card);
  border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.avatar:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.start-choice { display: flex; gap: 18px; }
.start-choice .bigbtn { width: 130px; height: 130px; font-size: 60px; }

/* map */
.map { height: 100%; display: flex; flex-direction: column; position: relative; }
.map .topbar { position: relative; z-index: 2; }
.avatar-btn, .pet-btn {
  width: 56px; height: 56px; font-size: 34px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  display: grid; place-items: center;
}
.scroller { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.world-banner {
  margin: 4px auto 0;
  width: max-content;
  padding: 2px 22px 0;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 16px;
  font-size: 26px; font-weight: 800;
}
.path { position: relative; margin: 0 16px; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; }
.trail polyline { stroke: var(--ink); opacity: .45; }
.node-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.node {
  width: 78px; height: 78px;
  border-radius: 50%;
  font-size: 38px; font-weight: 800;
  display: grid; place-items: center;
  background: var(--card);
  border: 4px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}
.node.txt { font-size: 30px; }
.node.done { background: #e5f8ee; }
.node.locked { background: var(--lock); font-size: 28px; box-shadow: 0 4px 0 #7d86a3; border-color: #7d86a3; }
.node.current { background: var(--sun); animation: bob 1.4s ease-in-out infinite; }
.node.boss { width: 92px; height: 92px; font-size: 48px; }
.node:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.stars.soon { font-size: 22px; }
@keyframes bob { 50% { transform: translateY(-6px) scale(1.05); } }
.wobble { animation: wobble .45s; }
@keyframes wobble { 20%, 60% { transform: translateX(-8px) rotate(-4deg); } 40%, 80% { transform: translateX(8px) rotate(4deg); } }
.gear {
  position: absolute; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .7); border: 2px solid rgba(30, 38, 80, .4);
  font-size: 22px; overflow: hidden; z-index: 3;
  display: grid; place-items: center;
}
.gear span { position: relative; z-index: 1; }
.gear i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--sun); }

/* popup */
.overlay {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(20, 26, 60, .45);
  display: grid; place-items: center;
  padding: 16px;
  animation: fadein .2s;
}
@keyframes fadein { from { opacity: 0; } }
.popup {
  position: relative;
  width: min(360px, 100%);
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 30px;
  padding: 26px 18px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: popin .25s cubic-bezier(.3, 1.6, .5, 1);
}
@keyframes popin { from { transform: scale(.7); } }
.popup .close { position: absolute; top: -18px; right: -10px; }
/* ⓘ what-to-do popup: plain English for parents and kids who read */
.icon-btn.info { width: 40px; height: 40px; border-radius: 50%; font: italic 800 24px/1 Georgia, "Times New Roman", serif; color: var(--blue); }
.overlay.infoov { place-items: end center; padding-bottom: 12px; background: rgba(20, 26, 60, .3); } /* sits over the answers so the question stays in view */
.popup.infopop { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; padding: 16px 16px 14px; gap: 8px; }
.infopop .infoicon { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font: italic 800 22px/1 Georgia, "Times New Roman", serif; }
.infopop p { margin: 0; font-size: 18px; line-height: 1.4; text-align: center; color: var(--ink); }
.pop-icon { font-size: 80px; font-weight: 800; line-height: 1; }
.pop-icon.txt { font-size: 70px; }
.pop-btns { display: flex; gap: 16px; }
.pop-btns .bigbtn { width: 110px; height: 96px; font-size: 44px; }
/* a round left part way through: how far it got, and 🔁 to start it over */
.pop-btns .bigbtn { position: relative; overflow: hidden; }
.bigbtn .resbar { position: absolute; left: 0; bottom: 0; height: 8px; width: 100%; background: rgba(255, 255, 255, .45); }
.bigbtn .resbar::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--f, 0)); }
.bigbtn.gold .resbar { background: rgba(0, 0, 0, .15); }
.bigbtn.gold .resbar::after { background: var(--ink); }
.icon-btn.restart { font-size: 24px; }

/* play */
.play { height: 100%; display: flex; flex-direction: column; }
.prog { flex: 1; height: 18px; border-radius: 99px; background: rgba(255, 255, 255, .7); border: 3px solid var(--ink); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--mint); transition: width .35s; }
.play.gate .prog i { background: var(--sun); }
.streak { height: 30px; text-align: center; font-size: 22px; font-weight: 800; }
.streak b { color: #fff; background: var(--tomato); border-radius: 10px; padding: 0 8px; margin-left: 4px; }
.streak.hot { animation: bob .6s infinite; }
.card {
  position: relative;
  flex: 1;
  margin: 0 14px;
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; justify-content: safe center;
  gap: 14px;
  padding: 14px 10px;
  min-height: 0;
  overflow: hidden;
}
.modebadge { position: absolute; top: 8px; left: 12px; font-size: 26px; }
.eq { font-size: clamp(40px, 12vw, 58px); font-weight: 800; line-height: 1; letter-spacing: 1px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vis { display: flex; justify-content: center; max-width: 100%; }
.vis.pop { animation: popin .3s; }
.floater {
  position: absolute; top: 20px; right: 20px;
  font-size: 30px; font-weight: 800; color: var(--mint);
  animation: floatup .9s forwards;
}
@keyframes floatup { to { transform: translateY(-40px); opacity: 0; } }

.answers { padding: 14px; display: grid; gap: 12px; }
.answers.grid { grid-template-columns: 1fr 1fr; }
.answers.row { grid-auto-flow: column; grid-auto-columns: 1fr; }
.answers.pair { grid-template-columns: 1fr 1fr; }
.choice {
  min-height: 76px;
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink);
  font-size: 40px; font-weight: 800;
  display: grid; place-items: center;
  padding: 6px;
}
.answers.pair .choice { min-height: 110px; }
.answers.pair .frames { transform: scale(.72); }
.choice:active, .choice.pressed { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.choice.ok, .padshow.ok { background: var(--mint); color: #fff; animation: popin .3s; }
.choice.bad, .padshow.bad { background: var(--tomato); color: #fff; animation: wobble .45s; }
.choice.right { outline: 5px dashed var(--mint); outline-offset: 3px; }
.answers.pad { grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 10px; }
.padshow {
  grid-column: 1 / -1;
  height: 62px;
  border: 4px solid var(--ink); border-radius: 18px;
  background: var(--paper);
  font-size: 44px; font-weight: 800; text-align: center; line-height: 58px;
  font-variant-numeric: tabular-nums;
}
.key {
  height: 54px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--ink);
  font-size: 30px; font-weight: 800;
}
.key:active, .key.pressed { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.key.go { background: var(--mint); color: #fff; }
.key.del { background: #ffe1df; }
.bottombar { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 12px; }
.pet-mini { font-size: 40px; position: relative; }
.stage-mini { width: 48px; text-align: center; font-size: 26px; font-weight: 800; }

/* picture aids */
.frames { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tf { display: grid; grid-template-columns: repeat(5, 30px); grid-auto-rows: 30px; border: 3px solid var(--ink); border-radius: 6px; background: var(--card); }
.tf i { border: 1px solid rgba(30, 38, 80, .35); position: relative; }
.tf i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; }
.tf .c-a::after { background: var(--tomato); }
.tf .c-b::after { background: var(--blue); }
.tf .c-x::after { background: var(--tomato); opacity: .3; }
.tf .c-x::before { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 800; z-index: 1; }
.blocks { display: flex; align-items: flex-end; gap: 4px; }
.blocks .bar {
  width: 14px; height: 120px;
  background: repeating-linear-gradient(to top, var(--tomato) 0 10px, #c0433c 10px 12px);
  border: 2px solid var(--ink); border-radius: 3px;
}
.blocks.b .bar { background: repeating-linear-gradient(to top, var(--blue) 0 10px, #2a73ad 10px 12px); }
.blocks .ones { display: grid; grid-template-columns: repeat(2, 14px); gap: 2px; margin-left: 4px; align-content: end; }
.blocks .ones i { width: 14px; height: 14px; background: var(--tomato); border: 2px solid var(--ink); border-radius: 3px; }
.blocks.b .ones i { background: var(--blue); }
.blocks .x { opacity: .25; }
.pairvis { display: flex; align-items: flex-end; gap: 12px; }
.pairvis .blocks .bar { height: 90px; }
.pairvis .op { font-size: 34px; align-self: center; }
.pairvis .op:empty { width: 10px; }
.pairvis .frames { flex-direction: column; flex-wrap: nowrap; }
.pairvis .tf { --c: min(26px, 5.4vw); grid-template-columns: repeat(5, var(--c)); grid-auto-rows: var(--c); }
.vis > .frames .tf { --c: min(40px, 11vw); grid-template-columns: repeat(5, var(--c)); grid-auto-rows: var(--c); }
.vis > .frames .tf i::after { inset: 5px; }
.arr { display: grid; gap: calc(var(--s) * .25); }
.arr i { width: var(--s); height: var(--s); border-radius: 50%; background: var(--sun); border: 2px solid #b27c00; }
.arr i.alt { background: #ffd978; }
.seq {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 60px));
  justify-content: center;
  gap: 4px;
  width: 100%;
  font-size: clamp(16px, calc(190px / var(--n)), 38px);
  font-weight: 800;
}
.seq span {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.seq span.num { font-size: .78em; }
.seq span.n3 { font-size: .6em; }
.slot {
  display: inline-grid; place-items: center;
  min-width: 1.1em; min-height: 1.1em;
  padding: 0 .12em;
  border: 4px dashed #d99a00 !important;
  border-radius: 14px;
  background: #fff4cc !important;
  color: #d99a00;
  vertical-align: middle;
  animation: glow 1.4s ease-in-out infinite;
}
.eq .slot { font-size: .8em; }
.slot.filled { border-style: solid !important; background: #d7f5e6 !important; border-color: var(--mint) !important; color: var(--ink); animation: popin .3s; }
.slot.fixed { border-style: solid !important; border-color: var(--tomato) !important; color: var(--ink); animation: popin .3s; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(255, 194, 61, .35); } }

/* results */
.result {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 16px;
}
.res-top { font-size: 64px; font-weight: 800; }
.res-gems { font-size: 34px; font-weight: 800; }
.res-streak { font-size: 26px; }
.chest { font-size: 96px; animation: bob 1s ease-in-out infinite; }
.chest.open { animation: shake .5s; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(12deg) scale(1.2); } }
.reward { display: flex; flex-direction: column; align-items: center; animation: popin .4s; }
.rw-item { font-size: 96px; line-height: 1.1; }
.rw-sub { font-size: 28px; font-weight: 800; }
.rw-item.dup { opacity: .7; }
.retry-face { font-size: 80px; }
.hatch { font-size: 44px; display: flex; align-items: center; gap: 10px; }
.res-btns { display: flex; gap: 16px; margin-top: 10px; }
.placed { display: flex; align-items: center; gap: 14px; font-size: 64px; }
.placed b { font-size: 44px; }
.stage-ic { font-weight: 800; }

/* pet */
.pet { position: relative; display: inline-block; line-height: 1; }
.pet .hat { position: absolute; left: 50%; top: -.42em; transform: translateX(-50%); font-size: .6em; }
.pet-btn .pet { font-size: 32px; }
.pet-btn .pet .hat { top: -.35em; }
.pet-mini .hat { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font-size: 24px; }
.petscreen { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; overflow-y: auto; padding-bottom: 20px; }
.petscreen > * { flex-shrink: 0; }
.petscreen .topbar { width: 100%; }
.pet-stage { height: 190px; display: grid; place-items: end center; }
.pet.huge { font-size: 130px; }
.pet.s1 { transform: scale(.8); }
.pet.grow { animation: grow 1s; }
.pet.munch { animation: munch .4s; }
.pet.bounce { animation: bob .8s infinite; }
@keyframes grow { 0% { transform: scale(.4) rotate(-20deg); } 60% { transform: scale(1.3) rotate(8deg); } }
@keyframes munch { 50% { transform: scale(1.15, .9); } }
.pet-hint { font-size: 36px; font-weight: 800; }
.growbar { width: 220px; height: 22px; border-radius: 99px; background: var(--card); border: 3px solid var(--ink); overflow: hidden; }
.growbar i { display: block; height: 100%; background: var(--mint); }
.feed { width: 140px; }
.hats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 14px; }
.hatbtn { width: 52px; height: 52px; border-radius: 14px; background: var(--card); border: 3px solid var(--ink); font-size: 28px; }
.hatbtn.on { background: var(--sun); }
.hatbtn:disabled { opacity: .45; }
.book { width: calc(100% - 28px); background: var(--paper); border: 4px solid var(--ink); border-radius: 22px; padding: 12px; }
.book-head { text-align: center; font-size: 26px; font-weight: 800; }
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.book-grid span { aspect-ratio: 1; display: grid; place-items: center; font-size: 36px; border-radius: 14px; background: rgba(30, 38, 80, .08); }
.book-grid span.got { background: var(--card); border: 2px solid var(--ink); }

/* parent corner (text is fine here, it's for adults) */
.popup.parent { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; align-items: stretch; gap: 10px; max-height: 90vh; overflow-y: auto; }
.parent h2 { margin: 0; font-family: var(--font); font-size: 26px; }
.pc-sum, .pc-note { margin: 0; font-size: 15px; }
.pc-note { color: #5b6285; font-size: 13px; }
.pc-table { border-collapse: collapse; font-size: 15px; }
.pc-table td { padding: 2px 6px; border-bottom: 1px solid #e3e0d5; }
.pc-table .stars { justify-content: flex-start; }
.pc-row { display: flex; align-items: center; gap: 10px; font-size: 16px; min-height: 40px; }
.pc-row input { width: 22px; height: 22px; }
.pc-btns { display: flex; gap: 10px; justify-content: space-between; }
.pc-btn { padding: 10px 14px; border-radius: 12px; border: 2px solid var(--ink); background: var(--card); font-size: 15px; font-family: inherit; }
.pc-btn.danger { border-color: var(--tomato); color: #b3261e; }

/* demo hand */
#hand {
  position: fixed; z-index: 50;
  font-size: 54px;
  transform: translate(-30%, -10%);
  transition: left .7s ease-in-out, top .7s ease-in-out;
  pointer-events: none;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .25));
}
#hand.tap { transform: translate(-30%, -10%) scale(.8); }

@media (max-height: 700px) {
  .choice { min-height: 62px; font-size: 34px; }
  .key { height: 46px; }
  .padshow { height: 52px; line-height: 48px; }
  .tf { grid-template-columns: repeat(5, 24px); grid-auto-rows: 24px; }
  .blocks .bar { height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- improvement cycle 1 ---------- */
.slot.typing { border-style: solid !important; color: var(--ink); }
.eq.tfq { font-size: clamp(34px, 10vw, 50px); }
.card.small .eq, .answers.small .choice { font-size: clamp(26px, 8vw, 34px); }
.answers.small .choice { font-size: 28px; }
.card.golden { border-color: #d99a00; background: radial-gradient(circle at 50% 30%, #fff7d6, #ffe38a); box-shadow: 0 0 0 6px rgba(255, 194, 61, .45); }
.card.golden::before { content: "✨"; position: absolute; top: 8px; right: 12px; font-size: 28px; animation: bob 1s infinite; }

/* tap-every / pairs questions */
.target { display: flex; justify-content: center; align-items: center; font-size: clamp(40px, 12vw, 56px); }
.target .shape { filter: drop-shadow(0 3px 0 rgba(30, 38, 80, .25)); }
.counter { display: flex; justify-content: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.slot.mini { min-width: 34px; min-height: 34px; font-size: 16px; border-width: 3px !important; border-radius: 10px; animation: none; padding: 0 4px; }
.answers.multi { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.answers.multi.g3 { grid-template-columns: repeat(3, 1fr); }
.answers.multi.g4 { grid-template-columns: repeat(4, 1fr); }
.answers.multi .choice { min-height: 58px; font-size: 26px; }
.answers.multi.g3 .choice { min-height: 74px; padding: 2px; }
.answers.multi.g3 .choice svg { width: 100%; height: auto; max-width: 70px; }
.choice.item.sel { background: #fff4cc; border-color: #d99a00; transform: translateY(2px); }
.choice.item:disabled { opacity: 1; }

/* pyramid */
.pyr { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 30px; font-weight: 800; }
.pyr div { display: flex; gap: 4px; }
.pyr span { width: 58px; height: 46px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 10px; background: var(--paper); font-variant-numeric: tabular-nums; }
.pyr span.slot { border-radius: 10px; }
.pyr .n3 { font-size: .75em; }

/* mirror */
.mirror { display: flex; align-items: stretch; gap: 0; }
.mirror .mline { width: 0; border-left: 4px dashed var(--tomato); margin: 0 6px; }
.slot.mslot { width: 64px; height: 128px; font-size: 40px; border-radius: 8px; padding: 0; }
.slot.mslot svg { width: 64px; height: 128px; }
.answers.row .choice svg.half { width: 44px; height: 88px; }

/* ladybug */
.bug { position: absolute; left: -40px; font-size: 34px; z-index: 3; }
.bug.crawl { animation: crawl 5s linear forwards; }
@keyframes crawl { 0% { left: -40px; transform: rotate(90deg); } 45% { transform: rotate(80deg) translateY(-8px); } 100% { left: calc(100% + 40px); transform: rotate(100deg); } }

/* pet reactions */
.pet-mini.hop { animation: hop .45s; }
.pet-mini.dance { animation: dance .8s; }
.pet-mini.sad { animation: wobble .45s; filter: grayscale(.5); }
@keyframes hop { 50% { transform: translateY(-14px); } }
@keyframes dance { 25% { transform: rotate(-15deg) translateY(-10px); } 75% { transform: rotate(15deg) translateY(-10px); } }

/* boss */
.bossbar { display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.bossbar .boss { font-size: 54px; line-height: 1; display: inline-block; }
.bossbar .boss.hit { animation: hit .5s; }
.bossbar .boss.laugh { animation: dance .6s; }
@keyframes hit { 20% { transform: translateX(-10px) rotate(-10deg); filter: brightness(2) saturate(0); } 60% { transform: translateX(8px) rotate(6deg); } }
.hp { flex: 1; height: 20px; border-radius: 99px; background: #fff; border: 3px solid var(--ink); overflow: hidden; }
.hp i { display: block; height: 100%; width: 100%; background: var(--tomato); transition: width .4s; }
.hearts { font-size: 20px; letter-spacing: 1px; }
.play.boss .streak { height: 24px; }
.node.puzzle.open { background: #efe6ff; }
.node.puzzle.current { background: var(--sun); }
.node.boss.open { background: #ffd9d6; }
.boss-end { font-size: 90px; }
.boss-end.beaten { animation: popin .5s; }
.chest.big { font-size: 120px; }
.reward.three { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
.reward.three .rw-item { font-size: 60px; }
.reward.three .rw-sub { font-size: 18px; text-align: center; }
.hatbtn.shop { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; }
.hatbtn.shop span { font-size: 22px; line-height: 1; }
.hatbtn.shop small { font-size: 11px; font-weight: 800; }
.card { overflow: clip; }

/* first-launch choice: two little maps */
.start-choice { flex-direction: column; align-items: stretch; width: min(340px, 100%); gap: 16px; }
.pathbtn { position: relative; border: 4px solid var(--ink); border-radius: 26px; padding: 34px 10px 10px; box-shadow: 0 6px 0 var(--ink); font: inherit; color: var(--ink); cursor: pointer; }
.pathbtn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.pathbtn.green { background: #bff0d9; }
.pathbtn.gold { background: #ffe8a3; }
.minipath, .pathnums { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); justify-items: center; align-items: center; }
.minipath .stop { width: min(46px, 12vw); height: min(46px, 12vw); display: grid; place-items: center; font-size: min(26px, 7vw); background: #fff; border: 3px solid var(--ink); border-radius: 50%; }
.minipath .stop.won { background: var(--sun); }
.minipath .stop.quiz .slot { min-width: 34px; min-height: 34px; font-size: 20px; border-radius: 50%; padding: 0; }
.pathnums { margin-top: 4px; font-size: 16px; font-weight: 800; }
.walker, .flyer { position: absolute; top: -34px; font-size: 30px; line-height: 1; }
.walker { left: calc(10% - 15px); animation: walk 5s steps(1) infinite; }
@keyframes walk { 0%, 15% { left: calc(10% - 15px); } 20%, 35% { left: calc(30% - 15px); } 40%, 55% { left: calc(50% - 15px); } 60%, 100% { left: calc(10% - 15px); } }
.flyer { left: calc(10% - 15px); animation: fly 3.2s ease-in-out infinite; }
@keyframes fly { 0%, 15% { left: calc(10% - 15px); top: -30px; transform: rotate(45deg); } 55% { top: -44px; } 85%, 100% { left: calc(90% - 15px); top: -30px; transform: rotate(45deg); } }

/* player picker */
.player .pmeta { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; }
.player .pet.tiny { font-size: 22px; position: relative; }
.player .pst { color: #d99a00; }
.player.last { box-shadow: 0 6px 0 var(--ink), 0 0 0 5px var(--sun); }

/* family sync */
.pc-btn.primary { background: var(--mint); color: #fff; border-color: var(--ink); font-weight: 700; }
.fam-join { display: flex; gap: 8px; }
.fam-join input { flex: 1; min-width: 0; font: 600 18px ui-monospace, monospace; letter-spacing: 1px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 12px; text-transform: uppercase; }
.fam-code { font: 800 28px ui-monospace, monospace; letter-spacing: 2px; text-align: center; background: #fff4cc; border: 2px dashed #d99a00; border-radius: 14px; padding: 10px; user-select: all; }
.fam-msg { margin: 0; font-size: 15px; font-weight: 600; color: #1e7a52; }
.fam-err { color: #b3261e; font-weight: 400; }

/* child's name */
.player .pname { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 800; }
.namebox { display: flex; gap: 12px; align-items: center; width: min(320px, 100%); }
.namebox input { flex: 1; min-width: 0; font-family: inherit; font-size: 26px; font-weight: 800; padding: 12px 14px; border: 4px solid var(--ink); border-radius: 18px; text-align: center; background: #fff; }
.pc-row #pc-name { flex: 1; width: auto; height: auto; font-size: 16px; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 10px; }

/* ---------- worlds ---------- */
.world-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 6px auto 0; padding: 0 6px; }
.wtab { display: flex; align-items: center; gap: 4px; padding: 4px 14px; font: inherit; font-size: 24px; color: var(--ink); background: rgba(255, 255, 255, .75); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); }
.wtab b { font-size: 18px; }
.wtab.on { background: var(--sun); }
.wtab.locked { opacity: .6; }
.map.w-ocean { background: linear-gradient(180deg, #7fd3f7 0%, #3aa6d8 45%, #1f6fa8 100%); }
.map.w-ocean .trail polyline { stroke: #fff; opacity: .7; }
.map.w-ocean .node.locked { background: #9fc3dc; }

/* ---------- Ocean pictures ---------- */
.place { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 280px; }
.place .flats { display: flex; flex-wrap: wrap; gap: 4px; max-width: 150px; }
.flat { width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 3px; background-color: #ffd978;
  background-image: linear-gradient(rgba(30, 38, 80, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 38, 80, .35) 1px, transparent 1px); background-size: 4.4px 4.4px; }
.coins { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; justify-content: center; }
.coins .stack { display: flex; flex-direction: column-reverse; align-items: center; }
.coins .stack .coin + .coin { margin-bottom: -26px; }
.coin { display: grid; place-items: center; width: 50px; height: 34px; border-radius: 50%; border: 3px solid var(--ink); font-weight: 800; font-size: 13px; box-shadow: 0 3px 0 rgba(30, 38, 80, .35); }
.coin.k1000 { background: #ffd24a; font-size: 12px; }
.coin.k100 { background: #cfd6e4; }
.coin.k10 { background: #e59a5b; }
.coin.k1 { background: #f2c9a0; width: 40px; }
.share { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fishrow { font-size: 22px; line-height: 1.1; max-width: 260px; text-align: center; word-break: break-all; }
.fishrow.left { opacity: .9; outline: 2px dashed var(--tomato); border-radius: 8px; padding: 2px 4px; }
.nets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 290px; }
.net { min-width: 44px; min-height: 44px; max-width: 70px; padding: 3px; border: 3px dashed var(--ink); border-radius: 50%; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; font-size: 16px; line-height: 1; }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1; font-size: .72em; margin: 0 .1em; }
.frac b { font-weight: 800; }
.frac b + b { border-top: .09em solid currentColor; padding-top: .06em; }
.frac .slot { font-size: 1em !important; min-width: 1.4em; }
.choice .frac { font-size: 30px; }
.cdot { display: inline-block; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--ink); vertical-align: middle; }
.eq .cdot { width: .8em; height: .8em; }
.column { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 30px; font-weight: 800; line-height: 1.15; text-align: right; }
.colline { border-top: 4px solid var(--ink); margin-top: 2px; }
u.hl { text-decoration: none; color: var(--tomato); border-bottom: 5px solid var(--tomato); }
.mach { display: inline-block; font-size: .7em; padding: 0 .25em; border: 3px solid var(--ink); border-radius: 10px; background: #e7f4ff; }
.die { font-size: 46px; line-height: 1; }
.eq small { font-size: .55em; }
.eq svg.shape { vertical-align: middle; }
.choice svg.shape { max-width: 100%; height: auto; }
.answers.pair .choice svg.shape { max-height: 120px; }

/* Ocean: world buttons stay in view, and a hello for a newly opened world */
.map > .world-tabs { margin: 0 auto 4px; position: relative; z-index: 2; }
.newworld { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(30, 38, 80, .35); animation: fadein .3s; }
.newworld div { display: flex; flex-direction: column; align-items: center; padding: 18px 34px; background: var(--card); border: 4px solid var(--ink); border-radius: 28px; box-shadow: 0 6px 0 var(--ink); animation: popin .5s; }
.newworld span { font-size: 90px; line-height: 1.1; }
.newworld b { font-size: 34px; }
@keyframes fadein { from { opacity: 0; } }
.seq span.n4 { font-size: .46em; }
.coins .stackgrp { display: flex; gap: 2px; align-items: flex-end; }
.coins .stack .coin + .coin { margin-bottom: -20px; }
.eq small.rem { font-size: .6em; display: inline-block; transform: rotate(-12deg); }
svg.die { display: block; margin: auto; }

/* Ocean: numbers to a million */
.zoom { display: flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: wrap; max-width: 300px; margin: auto; }
.zoom .zc { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; }
.zoom .zc i { font-style: normal; font-size: 26px; line-height: 1.1; }
.zoom .zc b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.zoom .zc .slot { font-size: 22px; }
.zoom .x10 { font-size: 11px; color: var(--tomato); }

/* Ocean: long division */
.deal { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chests { font-size: 30px; letter-spacing: 2px; text-align: center; max-width: 260px; }

/* Ocean: shape sorter */
.rails { font-size: 1em; }
.target .rails { font-size: 50px; }

/* Ocean: picture stories */
.story { display: flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; }
.story .arrow { font-size: 14px; color: var(--ink); opacity: .5; }
.story .panel { flex: 0 1 auto; min-width: 58px; min-height: 84px; max-width: 128px; padding: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; font-size: 16px; line-height: 1.1; text-align: center; }
.story .panel .num { font-size: 20px; font-weight: 800; }
.story .panel .slot { font-size: 26px; }
.story .groups { display: flex; flex-direction: column; gap: 2px; }
.story .grp { display: flex; align-items: center; gap: 1px; font-size: 13px; white-space: nowrap; }
.story .grp i { font-style: normal; font-size: 16px; margin-right: 2px; }
.story .move { display: flex; align-items: center; gap: 2px; font-size: 14px; flex-wrap: wrap; justify-content: center; }
.story .move b { font-size: 20px; }
.story .fishrow { font-size: 13px; max-width: 110px; }
.story .nets { gap: 3px; max-width: 110px; }
.story .net { min-width: 26px; min-height: 26px; font-size: 12px; border-width: 2px; }
.story .tag { display: inline-flex; flex-direction: column; align-items: center; font-size: 20px; }
.story .tag small { font-size: 11px; font-weight: 800; }
.vis svg.chart { max-width: 100%; height: auto; }
.coins .stack .coin + .coin { margin-bottom: -16px; }
.zoom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; max-width: 320px; width: 100%; }
.zoom .zc { position: relative; min-width: 0; }
.zoom .zc i { font-size: 36px; }
.zoom .zc b { font-size: 15px; }
.zoom .zc .slot { font-size: 26px; }
.zoom .zc em { position: absolute; right: -14px; top: 10px; font-style: normal; font-size: 10px; font-weight: 800; color: var(--tomato); z-index: 1; }
.story .panel { min-height: 120px; max-width: 132px; font-size: 20px; }
.story .grp { font-size: 16px; }
.story .grp i { font-size: 20px; }
.story .move { font-size: 18px; }
.story .fishrow { font-size: 16px; max-width: 120px; }
.story .net { min-width: 32px; min-height: 32px; font-size: 14px; }
.story .tag { font-size: 26px; }
.story .tag small { font-size: 13px; }
.story .panel .slot { font-size: 32px; }
.choice .ex { font-size: 20px; white-space: nowrap; }
.choice .bign { font-size: min(24px, 6.4vw); white-space: nowrap; letter-spacing: -.5px; }
.story .panel:first-child { max-width: none; }
.story .panel:last-child { min-width: 52px; }
.story .groups { max-width: 100%; }
@media (max-width: 340px) { .story .grp { font-size: 13px; } .story .grp i { font-size: 16px; } .zoom .zc i { font-size: 28px; } }
.zoom .zc em { font-size: 12px; right: -16px; }
@media (max-width: 340px) { .zoom .zc em { font-size: 11px; } }
.zoom { align-items: end; }
.zoom .zc i { line-height: 1; white-space: nowrap; }

/* Meadow additions: new-stop sparkle, coin shop, stories, parent coin choice */
.node.fresh { box-shadow: 0 0 0 5px var(--sun), 0 5px 0 var(--ink); }
.node .newbadge { position: absolute; top: -10px; right: -10px; font-size: 22px; animation: twinkle 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes twinkle { 50% { transform: scale(1.3) rotate(20deg); } }
.wtab.hasnew { position: relative; }
.wtab.hasnew::after { content: '✨'; position: absolute; top: -10px; right: -8px; font-size: 16px; }
.mcoins { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; max-width: 260px; }
.mcoin { display: inline-grid; place-items: center; border-radius: 50%; border: 3px solid var(--ink); font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 rgba(30, 38, 80, .3); line-height: 1; }
.mcoin.il.v10 { width: 48px; height: 48px; background: #ffd24a; }
.mcoin.il.v5 { width: 44px; height: 44px; background: #cfd6e4; }
.mcoin.il.v2 { width: 40px; height: 40px; background: #cfd6e4; }
.mcoin.il.v1 { width: 36px; height: 36px; background: #e3e7ef; }
.mcoin.us.v25 { width: 48px; height: 48px; background: #cfd6e4; }
.mcoin.us.v5 { width: 42px; height: 42px; background: #dfe3ea; }
.mcoin.us.v10 { width: 36px; height: 36px; background: #cfd6e4; }
.mcoin.us.v1 { width: 38px; height: 38px; background: #e59a5b; }
.choice .mcoins { max-width: 100%; gap: 2px; }
.choice .mcoin { transform: scale(.78); margin: -4px; }
.pricetag { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.pricetag i { font-style: normal; font-size: 70px; line-height: 1; }
.pricetag b { font-size: 28px; font-weight: 800; padding: 2px 14px; background: #fff4cc; border: 3px solid var(--ink); border-radius: 10px; }
.story .crowd { font-size: 18px; line-height: 1.15; word-break: break-all; max-width: 110px; }
.story .fly { font-size: 22px; color: var(--sky, #3e9be0); }
.story .box { font-style: normal; font-size: 24px; }
.pc-seg { display: inline-flex; gap: 6px; margin-left: 8px; }
.pc-cty { font: inherit; font-size: 15px; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); }
.pc-cty.on { background: var(--sun); font-weight: 800; }

/* Ten-rods: thicker, further apart, and a small gap after every five so they are easy to count */
.blocks { gap: 7px; }
.blocks .bar { width: 18px; border-width: 2.5px; }
.blocks .bar:nth-of-type(5) { margin-right: 7px; }
.blocks .ones { grid-template-columns: repeat(2, 16px); gap: 3px; margin-left: 6px; }
.blocks .ones i { width: 16px; height: 16px; }
.pairvis { flex-wrap: wrap; justify-content: center; }
.pairvis .blocks { gap: 5px; }
.pairvis .blocks .bar { width: 14px; }
.pairvis .blocks .bar:nth-of-type(5) { margin-right: 5px; }
.pairvis .blocks .ones { grid-template-columns: repeat(2, 13px); gap: 2px; margin-left: 4px; }
.pairvis .blocks .ones i { width: 13px; height: 13px; }
.eq .fewest { display: inline-flex; align-items: center; gap: 2px; font-size: .9em; }
.eq .fewest b { font-size: .8em; color: var(--tomato); }

/* one pet per world */
.petpicks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 12px; }
.petpick { width: 48px; height: 62px; border-radius: 16px; background: var(--card); border: 3px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 28px; line-height: 1; padding: 2px 0; }
.petpick .pet { font-size: 26px; }
.petpick .pet .hat { top: -.35em; }
.petpick small { font-size: 16px; margin-top: 3px; }
.petpick.on { background: var(--sun); }
.petpick.locked { opacity: .5; }
.newworld.petborn div { flex-direction: row; gap: 12px; font-size: 70px; }
.newworld.petborn .pet { font-size: 90px; }

/* Candy Factory (world 3) */
.map.w-candy { background: linear-gradient(180deg, #ffd6e8 0%, #f7a8cb 50%, #d9779f 100%); }
.map.w-candy .trail polyline { stroke: #fff; opacity: .8; }
.map.w-candy .node.locked { background: #f0c3d6; }
.mixn { font-size: 1em; margin-right: .05em; }
.cakes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 290px; }
.cgroups { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 290px; }
.cgroup { display: inline-flex; flex-wrap: wrap; max-width: 92px; justify-content: center; padding: 3px 5px; border: 3px dashed var(--ink); border-radius: 12px; font-size: 18px; line-height: 1.1; background: #fff; }
.boxset { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; max-width: 290px; }
.choice svg.shape { max-width: 100%; height: auto; max-height: 96px; }
.onebox { font-size: 32px; }
.saletag { display: inline-flex; align-items: center; gap: 10px; }
.saletag .tagp { font-size: 42px; font-weight: 800; padding: 6px 18px; background: #fff4cc; border: 3px solid var(--ink); border-radius: 12px 30px 30px 12px; }
.saletag .tagoff { font-size: 21px; letter-spacing: -.5px; font-weight: 800; color: #fff; background: var(--tomato, #ef5b52); border-radius: 50%; width: 80px; height: 80px; display: grid; place-items: center; transform: rotate(-12deg); }
.mixes { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.mixrow { display: flex; gap: 10px; font-size: 22px; flex-wrap: wrap; justify-content: center; max-width: 250px; }
.mixrow span { display: inline-flex; flex-wrap: wrap; }
.mixc { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; }
.mixc b { white-space: nowrap; }

.cgroups.many .cgroup { font-size: 13px; max-width: 70px; }
.onebox { display: inline-flex; align-items: center; gap: 6px; font-size: 26px; }
.rowbox { display: inline-grid; grid-template-columns: repeat(6, 12px); gap: 3px; padding: 4px; border: 3px solid var(--ink); border-radius: 8px; background: #ffe3ef; }
.rowbox.two { grid-template-columns: repeat(3, 12px); }
.rowbox i { width: 12px; height: 12px; border-radius: 50%; background: #f28dbb; border: 1.5px solid var(--ink); box-sizing: border-box; }
.okmark { color: #2fb383; font-size: 26px; }
.nomark { color: #ef5b52; font-size: 26px; margin-right: 4px; }
.ptag { display: inline-block; padding: 0 .3em; background: #fff4cc; border: 3px solid var(--ink); border-radius: 8px 22px 22px 8px; }
.ratecard { display: flex; align-items: center; gap: 10px; font-size: 26px; padding: 6px 12px; border: 3px dashed var(--ink); border-radius: 14px; background: #fff; flex-wrap: wrap; justify-content: center; max-width: 280px; }
.ratecard span { display: inline-flex; flex-wrap: wrap; max-width: 150px; }

/* Pyramid Desert (world 4) */
.map.w-desert { background: linear-gradient(180deg, #ffe7a8 0%, #f3c86b 50%, #d99a3a 100%); }
.map.w-desert .trail polyline { stroke: #fff; opacity: .8; }
.map.w-desert .node.locked { background: #ecd49c; }
.rollrow { display: flex; align-items: center; gap: 6px; }
.rolltrack { display: flex; flex-direction: column; align-items: flex-start; font-size: 22px; }
.rolltrack i { display: block; width: 110px; border-top: 4px dashed var(--ink); margin-top: 4px; }
.camels { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 290px; }
.camel { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.camel b { font-size: 16px; }
.numcards { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 290px; }
.numcards b { min-width: 42px; padding: 6px 8px; font-size: 24px; font-weight: 800; text-align: center; background: #fff4d6; border: 3px solid var(--ink); border-radius: 10px; }
/* Six worlds: the tabs stay on one row on phones. */
@media (max-width: 479px) {
  .world-tabs { gap: 5px; }
  .wtab { padding: 3px 6px; font-size: 19px; gap: 2px; }
  .wtab b { font-size: 14px; }
}
@media (max-width: 359px) {
  .world-tabs { gap: 4px; padding: 0 2px; }
  .wtab { padding: 3px 4px; font-size: 17px; gap: 1px; }
  .wtab b { font-size: 13px; }
}
.lvlicon { display: inline-flex; align-items: flex-end; gap: .08em; height: 1em; vertical-align: baseline; }
.lvlicon i { width: .28em; box-sizing: border-box; background: var(--sand, #d9a33a); border: 1.5px solid var(--ink); border-bottom-width: 2.5px; }
.lvlicon b { font-size: .5em; margin: 0 4px; align-self: center; }
.midicon { display: inline-flex; align-items: center; gap: 4px; }
.midicon i { width: .5em; height: .7em; border: 3px solid var(--ink); border-radius: 5px; background: #fff4d6; }

/* Volcano (world 5) */
.map.w-volcano { background: linear-gradient(180deg, #ffd3b0 0%, #f08a5d 50%, #b8452f 100%); }
.map.w-volcano .trail polyline { stroke: #fff; opacity: .85; }
.map.w-volcano .node.locked { background: #e9b8a0; }
.mbox { display: inline-grid; place-items: center; min-width: 1.05em; height: 1.05em; box-sizing: border-box; border: 3px solid #6b4420; border-radius: 6px; background: linear-gradient(#c68a4e 0 28%, #6b4420 28% 34%, #c68a4e 34%); color: #fff; font-size: .8em; vertical-align: -.1em; }
.mbox::after { content: '?'; font-size: .75em; padding-top: .15em; }
.vx { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; color: #c2362d; padding: 0 .04em; margin-right: .08em; }
.vbal { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.veq { font-size: 30px; font-weight: 800; white-space: nowrap; letter-spacing: -.3px; }
.magic { display: grid; grid-template-columns: repeat(3, 56px); gap: 4px; font-size: 26px; font-weight: 800; }
.magic span { height: 52px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 10px; background: #fff4e6; font-variant-numeric: tabular-nums; }
.magic span.slot { border-radius: 10px; }
.magic .blank { background: #e9e2da; }
.answers.col { grid-template-columns: 1fr; gap: 8px; }
.answers.col .choice { min-height: 48px; padding-top: 2px; padding-bottom: 2px; }
.choice .ex .mbox { font-size: 1em; }
.choice .exs { font-size: 17px; letter-spacing: -.3px; }
/* Space */
.map.w-space { background: linear-gradient(180deg, #2a2466 0%, #3d3a8f 45%, #6b5bd6 100%); }
.map.w-space .trail polyline { stroke: #ffe680; opacity: .8; }
.map.w-space .node.locked { background: #9c95d6; }
.vy { color: #2f6fd0; }
.choice .pt { white-space: nowrap; font-size: 22px; letter-spacing: -.5px; }
.answers.pts { gap: 5px; }
.eq .fillx { font-size: 20px; white-space: nowrap; }
.answers.pts .choice { padding-left: 2px; padding-right: 2px; min-width: 0; }
.answers.pts .choice .pt { font-size: clamp(14px, 4.4vw, 18px); letter-spacing: -1px; }
.answers.col .choice .exs { font-size: 21px; }
.sys { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: clamp(21px, 7.2vw, 26px); font-weight: 800; }
.sys > div { white-space: nowrap; letter-spacing: -.3px; }
.swp { display: inline-block; border: 3px solid #3e9be0; border-radius: 10px; padding: 0 5px; background: #e3f1fc; }
.stk { display: inline-flex; flex-direction: column; align-items: stretch; gap: 4px; font-size: 25px; font-weight: 800; }
.stk > div { white-space: nowrap; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stk .op { font-size: .8em; min-width: 1.1em; }
.stk hr { width: 100%; border: 0; border-top: 4px solid var(--ink); margin: 2px 0; }
.gone { position: relative; display: inline-block; opacity: .5; }
.gone::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; border-top: 4px solid #ef5b52; transform: rotate(-20deg); }
.rtab { border-collapse: collapse; font-size: 22px; font-weight: 800; }
.rtab th, .rtab td { border: 3px solid var(--ink); padding: 4px 10px; min-width: 34px; text-align: center; background: #fff; }
.rtab th { background: #e6e3ff; }
.ntrail { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 4px; max-width: 290px; font-size: 24px; font-weight: 800; }
.ntrail b { min-width: 40px; height: 40px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: #fff4cc; padding: 0 4px; }
.ntrail span { padding: 2px 8px; border-radius: 10px; background: #e6e3ff; white-space: nowrap; }
.ntrail i { font-style: normal; font-size: 18px; opacity: .6; }
.sstory .panel { font-size: 21px; max-width: 136px; }
.sstory .panel > span { white-space: nowrap; }
.sstory .panel > .tight { font-size: .85em; letter-spacing: -1px; }
.sstory .panel .num { font-size: 22px; }
@media (max-width: 359px) { .sstory .panel { font-size: 17px; padding: 4px; } .sstory .panel .num { font-size: 19px; } .sstory { gap: 2px; } }
.choice .rsz { font-size: 22px; white-space: nowrap; }
.mirr { display: inline-block; width: 0; height: .9em; border-left: 5px dashed #ef5b52; margin: 0 .3em; vertical-align: -.1em; }
.pgrid { border-collapse: separate; border-spacing: 4px; font-size: 26px; }
.pgrid td { width: 44px; height: 44px; text-align: center; background: #eef0ff; border-radius: 10px; }
.pgrid th { padding-left: 8px; font-size: 24px; font-weight: 800; color: #8a5cf6; }
.eq sup.psup { font-size: .9em; vertical-align: .5em; line-height: 0; }
.eq sup.psup .slot { font-size: 1em; min-width: 1.1em; min-height: 1.1em; }
/* Picture stories: the middle picture moves instead of showing an arrow */
.story .panel:has(.leave, .enter, .swimout, .swimin, .puff) { overflow: hidden; position: relative; }
.story .perch { display: flex; align-items: flex-end; justify-content: center; gap: 2px; min-height: 26px; }
.story .branch { display: block; width: 100%; min-width: 46px; height: 7px; margin-top: 2px; background: #9a6a3a; border-radius: 4px; box-shadow: inset 0 -2px 0 #6f4a26; }
.story .leave { animation: mw-leave 3s ease-in infinite; }
.story .enter { animation: mw-enter 3s ease-in infinite; }
.story .puff { position: absolute; right: 2px; top: 10px; font-size: 16px; animation: mw-leave 3s ease-in infinite; }
.story .swimout { display: inline-block; animation: mw-swimout 3s ease-in infinite; }
.story .swimin { display: inline-block; animation: mw-swimin 3s ease-out infinite; }
.story .move .boat { font-style: normal; }
.story .still { display: none; font-size: 20px; color: #3e9be0; }
@keyframes mw-leave { 0%, 40% { transform: none; opacity: 1; } 85% { transform: translate(22px, -46px) scale(.8); opacity: 0; } 100% { transform: translate(22px, -46px); opacity: 0; } }
@keyframes mw-enter { 0% { transform: translateY(-30px); opacity: 0; } 15%, 45% { transform: translateY(-4px); opacity: 1; } 80% { transform: translateY(26px) scale(.7); opacity: 0; } 100% { opacity: 0; } }
@keyframes mw-swimout { 0%, 45% { transform: none; opacity: 1; } 85%, 100% { transform: translateX(50px); opacity: 0; } }
@keyframes mw-swimin { 0% { transform: translateX(40px); opacity: 0; } 15%, 50% { transform: none; opacity: 1; } 85% { transform: translateX(-18px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .story .leave, .story .enter, .story .puff, .story .swimout, .story .swimin { animation: none; }
  .story .still { display: inline; }
}

/* 🔍 solution: button beside ⓘ, the ⏭ skip wait, the solution sheet and the look-back strip */
.icon-btn.sol { font: 20px/1 var(--font); color: inherit; background: #fff3cf; transition: opacity .2s; }
.icon-btn.sol:disabled { opacity: 0; pointer-events: none; }
.icon-btn.sol.nudge { animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: scale(1.15); } }
.bottombar .away { visibility: hidden; }
.icon-btn.skip { position: relative; overflow: hidden; background: var(--mint); color: #fff; font-size: 24px; }
.icon-btn.skip i { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: rgba(255, 255, 255, .8); transform-origin: left; }
.icon-btn.skip.run i { animation: drain var(--wait, 4s) linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }

.overlay.solov { padding: 12px; background: rgba(20, 26, 60, .5); }
.popup.solpop { width: min(420px, 100%); max-width: 100%; min-width: 0; max-height: 100%; padding: 16px 12px 12px; gap: 8px; }
.solq { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; max-width: 100%; }
.solq .eq { font-size: 30px; white-space: normal; text-align: center; line-height: 1.25; }
.solq .eq .slot { font-size: 1em; }
.solq .solright { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 2px 8px; font-size: 26px; font-weight: 800; background: #d7f5e6; border: 3px solid var(--mint); border-radius: 12px; }
.solq .solright svg, .solq .solmine svg, .solq .slot svg { max-height: 56px; width: auto; }
.solq .solmine { font-size: 22px; font-weight: 800; color: var(--tomato); text-decoration-thickness: 3px; opacity: .85; }
.solq.multi { flex-direction: column; }
.solq .target { font-size: 28px; font-weight: 800; }
.solitems { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.solitems span { font-size: 18px; font-weight: 800; padding: 2px 8px; border: 3px solid var(--mint); background: #d7f5e6; border-radius: 10px; }
.solitems svg { width: 40px; height: 40px; }
.soldots { display: flex; gap: 8px; }
.soldots i { width: 12px; height: 12px; border-radius: 50%; background: var(--lock); cursor: pointer; }
.soldots i.on { background: var(--ink); }
.soldots i.oops { box-shadow: 0 0 0 2px var(--tomato); }
.solstep { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 10px 8px; }
.solstep.in { animation: stepin .35s ease-out; }
@keyframes stepin { from { opacity: 0; transform: translateX(14px); } }
.solstep.oops { border-color: var(--tomato); background: #fff4f3; }
.solpic { width: 100%; height: min(200px, 30vh); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.solfit { flex: none; display: inline-flex; justify-content: center; align-items: center; transform-origin: center; }
.solmath { font-size: 24px; font-weight: 800; text-align: center; line-height: 1.2; font-variant-numeric: tabular-nums; }
.solsay { margin: 0; min-height: 1.3em; font: 15px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; color: #56608a; text-align: center; }
.solnav { display: flex; gap: 18px; }
.solnav .icon-btn:disabled { opacity: .35; }
.solsvg { display: block; max-width: none; }
.solchecks { display: grid; gap: 4px; }
.solchecks div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 19px; font-weight: 800; padding: 2px 10px; border-radius: 10px; background: #eef1f7; }
.solchecks div.ok { background: #d7f5e6; }
.solchecks div.no { opacity: .6; }
.solchecks div.ok b { color: var(--mint); }
.solchecks div.no b { color: var(--tomato); }
.solchecks .mcoins { font-size: 14px; }
.solchecks .frac { font-size: .95em; }
.solmath .cdot { width: 26px; height: 26px; }
.solgal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 290px; }
.solgal.shapes { display: grid; grid-template-columns: repeat(3, 76px); }
.solgal.shapes div { position: relative; border-radius: 12px; padding: 2px; display: grid; place-items: center; }
.solgal.shapes div.ok { background: #d7f5e6; outline: 3px solid var(--mint); }
.solgal.shapes div.no { opacity: .45; }
.solgal.shapes svg { width: 62px; height: 62px; }
.solgal.shapes b { position: absolute; right: 2px; bottom: 0; font-size: 16px; }
.solrow { display: flex; align-items: center; gap: 12px; }
.solbig { font-size: 44px; font-weight: 800; line-height: 1; }
.solcrowd { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 280px; font-size: 30px; }
.solcrowd .gone { opacity: .2; }
.solcoins { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 300px; }
.solcoins div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.solcoins b { font-size: 16px; color: var(--mint); }
.solchests { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; max-width: 290px; }
.solchests span { display: flex; flex-direction: column; align-items: center; }
.solchests i { font-style: normal; font-size: 30px; line-height: 1.1; }
.solchests b { font-size: 17px; padding: 0 6px; background: #d7f5e6; border: 2px solid var(--mint); border-radius: 8px; }

.lookback { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; background: var(--card); border: 3px solid var(--ink); border-radius: 18px; max-width: 100%; }
.lbicon { font-size: 22px; }
.lbtiles { display: flex; flex-wrap: wrap; gap: 5px; }
.lbtile { min-width: 38px; height: 36px; padding: 0 4px; border-radius: 10px; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 2px; border: 2px solid var(--ink); }
.lbtile.ok { background: #d7f5e6; }
.lbtile.no { background: #ffd9d6; }
.lbtile b { font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .icon-btn.sol.nudge, .solstep.in { animation: none; }
}
.solpop .close { top: 8px; right: 8px; width: 40px; height: 40px; font-size: 18px; }
.solpop .solq { padding: 0 44px; min-height: 40px; }
@media (max-width: 380px) {
  .overlay.solov { padding: 8px; }
  .popup.solpop { padding: 12px 6px 10px; }
  .solstep { padding: 8px 4px; }
}
/* the look-back strip can make the results screen taller than a small phone: let it scroll */
.result { overflow-y: auto; justify-content: safe center; }
.lookback { flex: none; padding: 6px 8px; gap: 6px; border-radius: 16px; }
.lbicon { font-size: 18px; }
.lbtiles { gap: 4px; }
.lbtile { min-width: 32px; height: 30px; border-radius: 8px; font-size: 13px; }
.lbtile b { font-size: 10px; }
.solq .solmine { padding: 0 6px; background: #ffe1df; border-radius: 8px; text-decoration-color: var(--tomato); opacity: 1; }
@media (max-width: 360px) {
  .play .topbar { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .play .topbar .icon-btn.info { width: 36px; height: 36px; }
  .play .topbar .icon-btn.info:not(.sol) { font-size: 21px; }
  .play .topbar .icon-btn.sol { font-size: 17px; }
}
/* coin handfuls at the top of the sheet stay small, and a tall sheet scrolls instead of pushing ◀ ↻ ▶ away */
.solq .mcoins { gap: 0; justify-content: center; max-width: 150px; }
.solq .mcoin { transform: scale(.62); margin: -7px; }
.solq { flex: none; }
.solq .solright, .solq .solmine { max-width: 100%; }
.popup.solpop { overflow-y: auto; }

/* diamond shop: pet tabs, pet rooms, golden and rainbow pets, mystery eggs */
.pettabs { display: flex; gap: 8px; justify-content: center; }
.pettab { width: 58px; height: 50px; border-radius: 16px; background: var(--card); border: 3px solid var(--ink); font-size: 28px; line-height: 1; }
.pettab.on { background: var(--sun); box-shadow: inset 0 -4px 0 rgba(30, 38, 80, .15); }
.petpick { position: relative; }
.petpick .done { position: absolute; top: -8px; right: -8px; font-size: 16px; font-style: normal; }

/* colors: a filter on the pet picture only, so its hat keeps its own colors */
.pe { display: inline-block; }
.pe.sh-gold { filter: sepia(1) saturate(5) hue-rotate(-12deg) brightness(1.08) drop-shadow(0 0 .08em #ffd23f); }
.pe.sh-rainbow { filter: sepia(1) saturate(4) hue-rotate(0deg) drop-shadow(0 0 .08em #ff8ad8); animation: rainbow 3s linear infinite; }
@keyframes rainbow { to { filter: sepia(1) saturate(4) hue-rotate(360deg) drop-shadow(0 0 .08em #8ad8ff); } }
.shines { display: flex; gap: 10px; justify-content: center; }
.shinebtn { width: 86px; height: 96px; border-radius: 20px; background: var(--card); border: 3px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.shinebtn .pet { font-size: 46px; }
.shinebtn small { font-size: 14px; font-weight: 800; }
.shinebtn.on { background: var(--sun); }
.shinebtn.locked { opacity: .5; }
.buyrow { display: flex; gap: 22px; justify-content: center; }
.buyrow .bigbtn small { font-size: 16px; }

/* the room: wall on top, floor below; spots sit in fixed places so small kids just tap */
.room { position: relative; width: min(92%, 360px); aspect-ratio: 1; border: 4px solid var(--ink); border-radius: 26px; overflow: hidden; background: #fde9b8; flex-shrink: 0; }
.room-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: #c9e59a; border-top: 3px solid rgba(30, 38, 80, .25); }
.r-ocean { background: #bfe6ff; } .r-ocean .room-floor { background: #f3dca0; }
.r-candy { background: #ffd6ec; } .r-candy .room-floor { background: radial-gradient(circle, #ff9ccc 2px, transparent 3px) 0 0 / 18px 18px, #fff0f7; }
.r-desert { background: #ffe0b0; } .r-desert .room-floor { background: #e8b86a; }
.r-volcano { background: #f7c3a0; } .r-volcano .room-floor { background: #9b6b52; }
.r-space { background: radial-gradient(circle, #fff 1px, transparent 2px) 0 0 / 34px 34px, #2b2f66; } .r-space .room-floor { background: #5a5fa3; }
.spot { position: absolute; width: 21%; height: 21%; display: grid; place-items: center; font-size: clamp(28px, 10vw, 42px); line-height: 1; border-radius: 16px; z-index: 1; }
.spot.empty { border: 3px dashed rgba(30, 38, 80, .35); }
.spot.empty::after { content: '+'; font-size: 26px; font-weight: 800; color: rgba(30, 38, 80, .4); }
.r-space .spot.empty { border-color: rgba(255, 255, 255, .5); }
.r-space .spot.empty::after { color: rgba(255, 255, 255, .6); }
.spot.on { outline: 4px solid var(--sun); outline-offset: 2px; background: rgba(255, 255, 255, .35); }
.spot.ghost { animation: ghost 1s ease-in-out infinite; }
@keyframes ghost { 50% { opacity: .45; transform: scale(.92); } }
.sp-window { left: 5%; top: 6%; background: #d7f1ff; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--ink); }
.sp-window.empty { border-style: solid; }
.sp-light { left: 39.5%; top: 3%; }
.sp-wall { left: 74%; top: 6%; }
.sp-friend { left: 5%; top: 34%; }
.sp-plant { left: 76%; top: 36%; }
.sp-bed { left: 4%; top: 64%; }
.sp-toy { left: 76%; top: 72%; }
.sp-bowl { left: 26%; top: 78%; width: 17%; height: 17%; font-size: clamp(24px, 8vw, 34px); }
.sp-rug { left: 30%; top: 74%; width: 48%; height: 18%; z-index: 0; border-radius: 50%; }
.sp-bowl { z-index: 3; }
.rug { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid rgba(30, 38, 80, .5); }
.rug.rug1 { background: #e98f5a; }
.rug.rug2 { background: repeating-linear-gradient(90deg, #3e9be0 0 12px, #fff 12px 20px, #ef5b52 20px 32px, #fff 32px 40px); }
.rug.rug3 { background: conic-gradient(#ef5b52, #ffc23d, #8ad97a, #3e9be0, #b57be6, #ef5b52); }
.room-pet { position: absolute; left: 50%; top: 67%; transform: translate(-50%, -50%); font-size: clamp(60px, 22vw, 92px); z-index: 2; pointer-events: none; }
.room-count { font-size: 28px; font-weight: 800; }
.room-party { position: absolute; inset: 0; display: grid; place-items: center; font-size: 150px; z-index: 5; pointer-events: none; animation: party 1.6s forwards; }
@keyframes party { 0% { transform: scale(.2) rotate(-90deg); opacity: 0; } 30% { transform: scale(1.2); opacity: 1; } 70% { opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.shoprow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 0 14px; }
.shopbtn { width: 70px; height: 76px; border-radius: 18px; background: var(--card); border: 3px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 34px; line-height: 1.05; }
.shopbtn .rug { width: 50px; height: 26px; }
.shopbtn small { font-size: 13px; font-weight: 800; margin-top: 2px; }
.shopbtn.own { border-color: var(--mint); }
.shopbtn.on { background: var(--sun); }
.shoprow.friends .shopbtn { width: 56px; height: 56px; font-size: 30px; }

/* mystery eggs */
.eggbuy { width: 130px; height: 120px; border-radius: 28px; background: var(--card); border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 62px; line-height: 1; }
.eggbuy small { font-size: 17px; font-weight: 800; margin-top: 4px; }
.eggbuy:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.eggbuy.full { font-size: 56px; box-shadow: none; }
.book.zoo .book-grid span.miss { filter: brightness(0); opacity: .18; }
.hatchbox { position: fixed; inset: 0; z-index: 20; background: rgba(20, 26, 60, .55); display: grid; place-items: center; animation: fadein .2s; }
.bigegg { font-size: 150px; line-height: 1; transition: transform .15s; }
.bigegg.crack { animation: wobble .4s; }
.hatched { font-size: 160px; line-height: 1; animation: starpop .6s; }

@media (prefers-reduced-motion: reduce) {
  .pe.sh-rainbow { animation: none; filter: sepia(1) saturate(4) hue-rotate(150deg) drop-shadow(0 0 .08em #ff8ad8); }
  .spot.ghost { animation: none; opacity: .6; }
}
@media (max-height: 640px) { .room { width: min(80%, 300px); } .pet-stage { height: 150px; } .pet.huge { font-size: 104px; } }
.bigbtn.buy { position: relative; overflow: hidden; touch-action: none; }
.bigbtn.buy .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--sun); }
.bigbtn.buy span, .bigbtn.buy small { position: relative; }
.bigbtn.buy { -webkit-touch-callout: none; }
.holdhint { position: absolute; left: 68%; bottom: -10px; font-size: 38px; pointer-events: none; animation: holdpress 1.6s; }
@keyframes holdpress { 0% { transform: translate(-30%, 20px); opacity: 0; } 20%, 80% { transform: translate(-30%, 0); opacity: 1; } 100% { opacity: 0; } }
