:root {
  --ink: #23305a; --soft: #5b6b94; --accent: #0060f5; --pink: #ff5fa8; --leaf: #3fae5a;
  --card: #ffffff; --line: rgba(35, 48, 90, 0.12); --gold: #ffbf1f;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #8fd16a; color: var(--ink);
  font-family: 'Fredoka', system-ui, sans-serif; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.hidden { display: none !important; }
canvas#garden { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; }
canvas#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ---------- HUD ---------- */
#hud { position: fixed; top: calc(8px + var(--safe-t)); left: 8px; right: 8px; display: flex; gap: 8px; justify-content: center; z-index: 10; pointer-events: none; }
.pill { background: rgba(255, 255, 255, 0.92); border-radius: 999px; padding: 6px 14px; box-shadow: 0 3px 0 rgba(35, 48, 90, 0.12); display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 44px; }
.pill.coins { font-size: 24px; }
.pill.coins b { min-width: 2ch; }
/* the game's money is squish: Squishy Click's blue squish drop, never a coin that looks like real money (Kids K6) */
.coin { width: 30px; height: 30px; display: inline-block; flex: none; background: url(../assets/icons/ui-squish.png) center/contain no-repeat; }
.coin.sm { width: 20px; height: 20px; }
.pill.level { flex-direction: column; gap: 2px; align-items: stretch; padding: 5px 14px; font-size: 14px; min-width: 104px; }
.pill.level .bar { height: 8px; background: #e3ebff; border-radius: 9px; overflow: hidden; }
.pill.level .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #61d36b, #2fb54a); border-radius: 9px; transition: width .4s; }
.pill.weather { font-size: 14px; flex-direction: column; gap: 0; align-items: center; justify-content: center; padding: 4px 14px; line-height: 1.15; }
.pill.weather small { color: var(--soft); font-weight: 500; }
.pill.weather.on { background: #fff6c9; box-shadow: 0 0 0 3px #ffd34d, 0 3px 0 rgba(35, 48, 90, .12); animation: glow 1.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 5px #ffe48a, 0 3px 0 rgba(35, 48, 90, .12); } }
.pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.18); } }

/* ---------- Seed tray ---------- */
#tray { position: fixed; left: 0; right: 0; bottom: calc(72px + var(--safe-b)); z-index: 10; padding: 0 8px 6px; }
#seeds { display: flex; gap: 8px; overflow-x: auto; padding: 6px 4px 8px; scrollbar-width: none; scroll-snap-type: x proximity; justify-content: safe center; }
#seeds::-webkit-scrollbar { display: none; }
.chip { flex: none; width: 76px; height: 92px; border-radius: 20px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 3px 0 rgba(35, 48, 90, 0.14);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 6px; position: relative; scroll-snap-align: center; transition: transform .15s; }
.chip canvas { width: 64px; height: 60px; }
.chip .price { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; }
.chip.sel { box-shadow: 0 0 0 4px var(--accent), 0 3px 0 rgba(35, 48, 90, .14); transform: translateY(-4px); }
.chip.poor { background: rgba(236, 239, 247, 0.92); box-shadow: 0 3px 0 rgba(35, 48, 90, 0.1); }
.chip.poor canvas { filter: grayscale(0.85) opacity(.5); }
.chip.poor .price { color: #9aa3bb; }
.chip.poor .price .coin { filter: grayscale(1) opacity(.6); }
.chip .need { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 5px; border-radius: 3px; background: #dfe5f2; overflow: hidden; display: none; }
.chip.poor .need { display: block; }
.chip .need i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd34d, #f2a300); border-radius: 3px; transition: width .4s; }
.chip.poor::after { content: ''; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: #9aa3bb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Crect x='6' y='11' width='12' height='9' rx='2' fill='white'/%3E%3Cpath d='M8.5 11V8a3.5 3.5 0 0 1 7 0v3'/%3E%3C/svg%3E") center/13px no-repeat; }
.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px) rotate(-3deg); } 40%, 80% { transform: translateX(6px) rotate(3deg); } }
.chip.locked { background: rgba(240, 243, 250, 0.9); }
.chip.locked canvas { filter: grayscale(1) brightness(1.15) opacity(.45); }
.chip .lock { position: absolute; top: 6px; right: 6px; font-size: 12px; font-weight: 600; background: #23305a; color: #fff; border-radius: 8px; padding: 1px 6px; }
.chip .tag { position: absolute; top: -6px; left: -4px; width: 26px; height: 26px; }
.chip .free { color: var(--leaf); }

/* ---------- Bottom nav ---------- */
#nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(72px + var(--safe-b)); padding-bottom: var(--safe-b); z-index: 11;
  background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -3px 12px rgba(35, 48, 90, 0.12); display: flex; justify-content: space-around; }
#nav button { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; font-weight: 600; font-size: 13px; color: var(--soft); }
#nav img { width: 38px; height: 38px; object-fit: contain; transition: transform .15s; }
#nav button:active img { transform: scale(.88); }
#nav .badge { position: absolute; top: 4px; left: 54%; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pink); color: #fff; font-style: normal; font-size: 13px; line-height: 22px; display: none; }
#nav .badge.on { display: block; }
#nav .dot { position: absolute; top: 8px; left: 60%; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px #fff; display: none; }
#nav .dot.on { display: block; animation: pop 1.2s ease infinite; }

/* ---------- Sheets ---------- */
#sheetWrap { position: fixed; inset: 0; z-index: 30; background: rgba(20, 30, 60, 0.35); display: flex; align-items: flex-end; justify-content: center; }
#sheet { width: 100%; max-width: 640px; max-height: 82vh; background: #f6f8ff; border-radius: 28px 28px 0 0; display: flex; flex-direction: column; animation: up .22s ease; padding-bottom: var(--safe-b); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; padding: 16px 16px 8px 22px; }
.sheet-head h2 { margin: 0; flex: 1; font-size: 26px; font-weight: 600; }
.x { width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 var(--line); display: grid; place-items: center; }
.x svg { width: 22px; height: 22px; }
#sheetBody { overflow-y: auto; padding: 4px 16px 20px; }
.note { color: var(--soft); font-size: 15px; margin: 4px 4px 12px; line-height: 1.35; }
.row { background: #fff; border-radius: 20px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; box-shadow: 0 2px 0 var(--line); }
.row canvas { width: 64px; height: 60px; flex: none; }
.row img.hi { width: 56px; height: 56px; object-fit: contain; flex: none; }
.row .info { flex: 1; min-width: 0; }
.row .name { font-weight: 600; font-size: 17px; }
.row .sub { color: var(--soft); font-size: 14px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.row .acts { display: flex; flex-direction: column; gap: 6px; }
.btn { background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; border-radius: 16px; padding: 10px 16px; min-height: 64px; min-width: 64px; box-shadow: 0 3px 0 #0042ad; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #0042ad; }
.btn.pink { background: var(--pink); box-shadow: 0 3px 0 #c93a7f; }
.btn.green { background: #2fb54a; box-shadow: 0 3px 0 #1d8a34; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--line); }
.btn.big { font-size: 20px; padding: 14px 22px; border-radius: 20px; width: 100%; }
.btn[disabled] { background: #c9d1e4; box-shadow: 0 3px 0 #aab4cc; color: #fff; }
.tags { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.tg { font-size: 12px; font-weight: 600; border-radius: 8px; padding: 1px 7px; color: #fff; background: #8a97b8; }
.tg.l2 { background: #4aa8ff; } .tg.l3 { background: #b06cff; } .tg.l4 { background: #ff5fa8; } .tg.l5 { background: linear-gradient(90deg, #ff9a3c, #ffcf33); color: #6a3d00; }
.tg.rb { background: linear-gradient(90deg, #ff6b6b, #ffb84d, #ffe14d, #5fd36b, #4aa8ff, #a46bff); }
.tg.gd { background: linear-gradient(180deg, #ffe27a, #e7a400); color: #6a3d00; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 4px 12px; }
.switch input { width: 24px; height: 24px; accent-color: var(--accent); }

/* book */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 10px; }
.bk { background: #fff; border-radius: 18px; padding: 6px 4px 8px; text-align: center; box-shadow: 0 2px 0 var(--line); }
.bk canvas { width: 76px; height: 70px; }
.bk.unseen canvas { filter: brightness(0) opacity(.18); }
.bk .nm { font-size: 13px; font-weight: 600; line-height: 1.1; min-height: 2.2em; display: flex; align-items: center; justify-content: center; }
.dots { display: flex; justify-content: center; gap: 3px; margin-top: 4px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #e3e8f4; }
.dots i.on.l1 { background: #8a97b8; } .dots i.on.l2 { background: #4aa8ff; } .dots i.on.l3 { background: #b06cff; } .dots i.on.l4 { background: #ff5fa8; } .dots i.on.l5 { background: #ffb21f; }
.dots i.on.rb { background: conic-gradient(#ff6b6b, #ffe14d, #5fd36b, #4aa8ff, #a46bff, #ff6b6b); } .dots i.on.gd { background: #e7a400; box-shadow: 0 0 0 2px #ffe27a; }
.bk .bonus { font-size: 12px; color: var(--leaf); font-weight: 600; margin-top: 3px; min-height: 1em; }
.progress { height: 14px; background: #e3ebff; border-radius: 9px; overflow: hidden; margin: 0 4px 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #ff9ed2, #ff5fa8); }
.odds { background: #fff; border-radius: 16px; padding: 10px 14px; font-size: 14px; color: var(--soft); margin: 10px 0 14px; line-height: 1.4; }

/* gift */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 8px 0 16px; }
.cal div { background: #fff; border-radius: 14px; padding: 8px 2px; text-align: center; font-size: 12px; font-weight: 600; box-shadow: 0 2px 0 var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cal div.done { background: #dff6e3; }
.cal div.today { box-shadow: 0 0 0 3px var(--pink); }
.cal .gi { width: 30px; height: 30px; display: grid; place-items: center; }
.cal .gi img { width: 30px; height: 30px; }

/* ---------- Modal ---------- */
#modal { position: fixed; inset: 0; z-index: 40; background: rgba(20, 30, 60, 0.45); display: grid; place-items: center; padding: 16px; }
#modal .card { background: #fff; border-radius: 28px; padding: 22px; width: 100%; max-width: 380px; text-align: center; animation: pop .35s ease; }
#modal h3 { margin: 0 0 6px; font-size: 28px; }
#modal p { margin: 6px 0 14px; color: var(--soft); font-size: 16px; line-height: 1.35; }
#modal .thumbs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
#modal .thumbs { flex-wrap: nowrap; gap: 0; }
#modal .thumbs canvas { width: 76px; height: 72px; flex: 0 1 76px; min-width: 0; }
#modal input { font: inherit; font-size: 28px; width: 140px; text-align: center; border-radius: 16px; border: 2px solid var(--line); padding: 8px; margin-bottom: 12px; }
#modal .acts { display: flex; gap: 10px; justify-content: center; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; top: calc(64px + var(--safe-t)); left: 0; right: 0; z-index: 45; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast { background: rgba(255, 255, 255, 0.97); border-radius: 18px; padding: 8px 16px; font-weight: 600; font-size: 16px; box-shadow: 0 4px 14px rgba(35, 48, 90, 0.18); display: flex; align-items: center; gap: 8px; max-width: 92vw; animation: tin .25s ease; }
.toast canvas { width: 40px; height: 38px; }
.toast.out { opacity: 0; transform: translateY(-8px); transition: all .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Coach (first-time pointer) ---------- */
#coach { position: fixed; z-index: 35; pointer-events: none; display: flex; flex-direction: column-reverse; align-items: center; transform: translate(-50%, -100%); }
#coach img { width: 64px; transform: rotate(180deg) scaleX(-1); animation: tapme 0.9s ease-in-out infinite; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .2)); }
#coach span { background: #23305a; color: #fff; font-weight: 600; font-size: 17px; padding: 6px 14px; border-radius: 14px; margin: 4px 0; white-space: nowrap; }
#coach.up { flex-direction: column; transform: translate(-50%, 0); }
#coach.up img { transform: none; }
@keyframes tapme { 50% { translate: 0 10px; } }

@media (min-width: 700px) {
  .pill.coins { font-size: 28px; }
  .chip { width: 84px; height: 98px; }
}

/* ---------- Basket: the market ---------- */
.stall { position: relative; border-radius: 24px; background: radial-gradient(120% 90% at 50% 0%, #fff7e6 0%, #ffe9c7 60%, #ffd9a8 100%); box-shadow: inset 0 -6px 0 rgba(180, 110, 40, 0.12); margin-bottom: 12px; overflow: hidden; }
.stall::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: repeating-linear-gradient(90deg, #ff8fb8 0 36px, #fff 36px 72px); border-radius: 0 0 50% 50% / 0 0 14px 14px; opacity: .9; }
#pile { display: block; width: 100%; height: 220px; }
.stall .worth { position: absolute; top: 34px; right: 12px; background: #fff; border-radius: 16px; padding: 6px 12px; text-align: center; box-shadow: 0 3px 0 rgba(35, 48, 90, .1); transform: rotate(4deg); }
.stall .worth small { display: block; font-size: 12px; color: var(--soft); }
.stall .worth b { display: inline-flex; align-items: center; gap: 4px; font-size: 20px; }
.stall .empty { position: absolute; left: 16px; right: 16px; top: 46px; text-align: center; font-weight: 600; color: #8a6a3a; font-size: 16px; }
.sellbar { display: flex; gap: 10px; align-items: stretch; margin-bottom: 6px; }
.sellbar .btn.big { flex: 1; font-size: 22px; }
.keep { flex: none; width: 84px; border-radius: 20px; background: #fff; box-shadow: 0 3px 0 var(--line); display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 600; line-height: 1.1; color: var(--soft); padding: 4px; text-align: left; }
.keep img { width: 30px; height: 30px; filter: grayscale(1) opacity(.5); transition: filter .2s, transform .2s; }
.keep.on { background: #fff6c9; box-shadow: 0 0 0 3px #ffd34d, 0 3px 0 var(--line); color: #8a5a00; }
.keep.on img { filter: none; transform: rotate(-10deg) scale(1.1); }
.hint { color: var(--soft); font-size: 14px; margin: 6px 4px 10px; text-align: center; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tile { position: relative; background: #fff; border-radius: 22px; padding: 18px 4px 10px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 0 rgba(35, 48, 90, 0.12); cursor: pointer; transition: transform .12s; }
.tile:active { transform: scale(.95); }
.tile canvas { width: 84px; height: 78px; pointer-events: none; }
.tile .nm { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.1; min-height: 2.2em; display: flex; align-items: center; }
.tile .pricetag { margin-top: 4px; display: inline-flex; align-items: center; gap: 3px; background: #fff3c4; border-radius: 10px; padding: 2px 10px 2px 6px; font-weight: 600; font-size: 15px; color: #8a5a00; }
.tile .cnt { position: absolute; top: 8px; right: 8px; background: var(--accent); color: #fff; border-radius: 12px; font-size: 14px; padding: 1px 8px; }
.tile .rib { position: absolute; top: -6px; left: 10px; font-size: 12px; font-weight: 600; color: #fff; padding: 2px 9px; border-radius: 9px; background: #8a97b8; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.l2 { box-shadow: 0 0 0 3px #bfe0ff, 0 4px 0 rgba(35, 48, 90, .12); } .tile.l2 .rib { background: #4aa8ff; }
.tile.l3 { box-shadow: 0 0 0 3px #e2c9ff, 0 4px 0 rgba(35, 48, 90, .12); } .tile.l3 .rib { background: #b06cff; }
.tile.l4 { box-shadow: 0 0 0 3px #ffc4de, 0 4px 0 rgba(35, 48, 90, .12); } .tile.l4 .rib { background: #ff5fa8; }
.tile.l5 { background: linear-gradient(180deg, #fffaf0, #fff1d1); box-shadow: 0 0 0 3px #ffd34d, 0 4px 0 rgba(35, 48, 90, .12); } .tile.l5 .rib { background: linear-gradient(90deg, #ff9a3c, #ffcf33); color: #6a3d00; }
.tile.rb .rib { background: linear-gradient(90deg, #ff6b6b, #ffb84d, #5fd36b, #4aa8ff, #a46bff); }
.tile.gd { background: linear-gradient(180deg, #fffbe6, #ffefb0); box-shadow: 0 0 0 3px #ffbf1f, 0 4px 0 rgba(35, 48, 90, .12); } .tile.gd .rib { background: linear-gradient(180deg, #ffe27a, #e7a400); color: #6a3d00; }
.squish3 { min-height: 64px; margin-top: 8px; background: var(--pink); color: #fff; font-weight: 600; font-size: 15px; border-radius: 14px; padding: 8px 12px; box-shadow: 0 3px 0 #c93a7f; animation: wiggle 1.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-5deg) scale(1.06); } 86% { transform: rotate(5deg) scale(1.06); } }
.tile.hop canvas { animation: hop .3s ease; }
@keyframes hop { 40% { transform: translateY(-14px) scale(1.1, .92); } }

/* ---------- Full Garden, packs and the grown-up store ---------- */
.chip .lock.gold { background: linear-gradient(180deg, #ffe27a, #f2b100); color: #6a3d00; font-size: 11px; }
.chip .lock.pink { background: var(--pink); }
.chip.locked.wish canvas { filter: saturate(.6) opacity(.75); }
.btn.gold { background: linear-gradient(180deg, #ffd84d, #f2b100); color: #5a3400; box-shadow: 0 3px 0 #c48a00; }
.btn.gold:active { box-shadow: 0 1px 0 #c48a00; }
#modal .acts.col { flex-direction: column; align-items: stretch; gap: 8px; }
.linkbtn { color: var(--soft); font-weight: 600; font-size: 15px; padding: 8px; min-height: 64px; text-decoration: underline; }
.linkbtn.inline { min-height: 0; padding: 0 2px; font-size: inherit; color: inherit; }
.pill.level.capped { pointer-events: auto; cursor: pointer; background: #fff6c9; box-shadow: 0 0 0 3px #ffd34d, 0 3px 0 rgba(35, 48, 90, .12); }
.pill.level.capped .bar i { background: linear-gradient(90deg, #ffd34d, #f2a300); }
.pill.level.capped span::after { content: ' MAX'; color: #c48a00; font-size: 12px; }
.wishcard { display: flex; gap: 10px; align-items: center; background: #ffe3ef; border-radius: 18px; padding: 10px 14px; margin-bottom: 12px; font-size: 15px; }
.wishcard img { width: 40px; height: 40px; }
.offer { position: relative; background: #fff; border-radius: 22px; padding: 14px; margin-bottom: 12px; box-shadow: 0 3px 0 var(--line); text-align: center; }
.offer.hero { background: linear-gradient(180deg, #fff9e0, #ffefb3); box-shadow: 0 0 0 3px #ffd34d, 0 4px 0 rgba(35, 48, 90, .12); padding: 18px 14px; }
.offer.bundle { background: linear-gradient(180deg, #fff, #ffeef6); box-shadow: 0 0 0 3px #ffc4de, 0 3px 0 var(--line); }
.offer .oname { font-size: 21px; font-weight: 600; }
.offer.hero .oname { font-size: 26px; }
.offer .othumbs { display: flex; justify-content: center; gap: 2px; margin: 4px 0; }
.offer .othumbs canvas { width: 70px; height: 64px; }
.offer.hero .othumbs canvas { width: 80px; height: 74px; }
.offer .owhat { color: var(--soft); font-size: 15px; line-height: 1.35; margin: 4px 6px 12px; }
.offer .owned { font-weight: 600; color: var(--leaf); }
.offer .ribbon { position: absolute; top: -8px; right: 12px; background: #2fb54a; color: #fff; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 10px; }
.offer .ribbon.pinkr { right: auto; left: 12px; background: var(--pink); }
.promise { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 6px; }
.promise li { background: #fff; border-radius: 14px; padding: 8px 12px 8px 38px; font-size: 15px; position: relative; }
.promise li::before { content: ''; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: #2fb54a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ---------- Powell Play Kids: the grown-ups check, the Grown-Ups corner, the studio mark ---------- */
.grown-btn { position: fixed; z-index: 9; right: 8px; top: calc(60px + var(--safe-t)); display: flex; align-items: center; gap: 4px; background: rgba(27, 26, 58, .78); color: #fff; font-weight: 600; font-size: 13px; border-radius: 14px; padding: 6px 10px 6px 6px; }
.grown-btn img { width: 22px; height: 22px; }
.pp-home-studio { position: absolute; left: 50%; transform: translateX(-50%); bottom: 100%; padding: 6px; display: block; }
.pp-home-mark { display: block; width: 104px; height: auto; opacity: .55; }
html.portal .pp-home-studio, html.portal .pp-settings-studio, html.pp-host .pp-home-studio { display: none; }
.about { text-align: center; margin: 22px 0 6px; color: var(--soft); font-size: 13px; }
.about p { margin: 6px 0; }
.pp-settings-studio { display: block; width: 120px; height: auto; margin: 0 auto; opacity: .85; }
.about .ver { font-size: 12px; }
.about .stage { background: #eef1f8; border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.gh { font-size: 18px; margin: 20px 4px 8px; }
a.btn { text-decoration: none; }

/* ---------- loading scene ---------- */
.pp-loading { position: fixed; inset: 0; z-index: 100; --scene-bg: #2f9bf3; background: linear-gradient(180deg, #2f9bf3 0%, #5cb8f7 55%, #9fdc5a 56%, #6cc63c 100%); transition: opacity .35s; }
.pp-loading.gone { opacity: 0; pointer-events: none; }
.ld-title { position: absolute; left: 0; right: 0; top: 22%; text-align: center; color: #fff; }
.ld-title canvas { width: 180px; height: 150px; display: block; margin: 0 auto; }
.ld-title h1 { margin: 0; font-size: clamp(40px, 12vw, 72px); font-weight: 700; letter-spacing: .5px; text-shadow: 0 4px 0 rgba(20, 60, 140, .35); }
.pp-fade { position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to bottom, transparent, color-mix(in srgb, #3f8f2a 69%, transparent)); }
.pp-studio { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(3.5vh + env(safe-area-inset-bottom, 0px)); width: clamp(140px, 34vmin, 280px); height: auto; opacity: .92; animation: pp-in .25s ease-out both; }
@keyframes pp-in { from { opacity: 0 } }

.scode { font: 700 18px ui-monospace, Consolas, monospace; letter-spacing: 1px; white-space: nowrap; }

/* ---------- Kids 1.1: plan, baskets, quiet mode, the garden tour ---------- */
.plan { display: flex; gap: 10px; justify-content: center; margin: 10px 0 12px; }
.planbtn { flex: 1; min-height: 96px; border-radius: 20px; background: #f3f6fc; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 20px; }
.planbtn img { width: 28px; height: 28px; margin: 0 -4px; }
html.quiet *, html.quiet *::before, html.quiet *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
html.garden-asleep canvas#garden { filter: brightness(.55) saturate(.7); transition: filter 1.2s; }
#asleep { position: fixed; inset: 0; z-index: 38; display: grid; place-items: center; pointer-events: none; }
#asleep > div { pointer-events: auto; background: rgba(27, 26, 58, .82); color: #fffdf6; border-radius: 28px; padding: 24px 28px; text-align: center; max-width: 320px; }
#asleep h3 { margin: 0 0 6px; font-size: 26px; }
#tour { position: fixed; inset: 0; z-index: 60; background: linear-gradient(180deg, #2f9bf3, #9fdc5a); display: grid; place-items: center; padding: 16px; }
#tour .tcard { background: #fffdf6; border-radius: 28px; padding: 22px; width: 100%; max-width: 420px; text-align: center; }
#tour .tstep { color: var(--soft); font-size: 14px; margin: 0; }
#tour .tbig { width: 200px; height: 186px; display: block; margin: 6px auto; }
#tour .tname { font-size: 30px; font-weight: 700; color: #2f9bf3; margin: 30px 0 10px; }
#tour h3 { margin: 6px 0; font-size: 24px; }
#tour p { color: var(--soft); }
#tour .acts { display: flex; gap: 10px; justify-content: center; }
