/* EmotiMate 4.2 — "Clay Garden" redesign layer. Loaded last; overrides v4/v4.1 looks.
   Illustrated clay art (art/*.webp), soft vivid gradients, springy components, gentle drifting background.
   Sensory-safe: no flashing, slow ambient motion, html.rm / prefers-reduced-motion turn motion off. */
:root {
  --ink: #3a3456; --ink-2: #5b5480; --muted: #6c6790;
  --v1: #a18dff; --v2: #7c69f0; --v3: #5f4fd6;
  --coral1: #ffb49b; --coral2: #ff8d76;
  --card: #ffffff; --line: rgba(124, 105, 240, .12);
  --shadow: 0 2px 0 rgba(120, 100, 210, .06), 0 12px 26px -10px rgba(90, 70, 180, .22);
  --shadow-lg: 0 3px 0 rgba(120, 100, 210, .07), 0 22px 40px -16px rgba(90, 70, 180, .32);
  --spring: cubic-bezier(.34, 1.56, .64, 1); --ease: cubic-bezier(.2, .8, .25, 1);
  --hfont: 'Rubik', 'Varela Round', system-ui, sans-serif;
}
html { background: #f6f0ff; }
body {
  background:
    radial-gradient(70% 38% at 92% -4%, rgba(255, 214, 232, .95) 0, rgba(255, 214, 232, 0) 70%),
    radial-gradient(70% 40% at -6% 104%, rgba(196, 232, 255, .95) 0, rgba(196, 232, 255, 0) 70%),
    radial-gradient(50% 30% at 0% 40%, rgba(214, 245, 228, .8) 0, rgba(214, 245, 228, 0) 70%),
    linear-gradient(180deg, #f6f0ff 0%, #fdf5f2 100%);
}
/* gently drifting colour blobs behind everything (transform only, very slow) */
.bg42 { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg42 i { position: absolute; border-radius: 50%; will-change: transform; opacity: .7; }
.bg42 i:nth-child(1) { width: 70vmax; height: 70vmax; left: -30vmax; top: -24vmax; background: radial-gradient(closest-side, rgba(193, 176, 255, .55), rgba(193, 176, 255, 0)); animation: blob1 46s ease-in-out infinite alternate; }
.bg42 i:nth-child(2) { width: 60vmax; height: 60vmax; right: -26vmax; top: 30vh; background: radial-gradient(closest-side, rgba(255, 196, 176, .5), rgba(255, 196, 176, 0)); animation: blob2 54s ease-in-out infinite alternate; }
.bg42 i:nth-child(3) { width: 56vmax; height: 56vmax; left: -10vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(160, 225, 205, .45), rgba(160, 225, 205, 0)); animation: blob3 60s ease-in-out infinite alternate; }
@keyframes blob1 { to { transform: translate(12vw, 8vh) scale(1.08); } }
@keyframes blob2 { to { transform: translate(-10vw, -6vh) scale(1.1); } }
@keyframes blob3 { to { transform: translate(8vw, -10vh) scale(.94); } }
.app { position: relative; z-index: 1; }
/* drifting petals / bubbles (home & splash only, few and slow) */
.amb42 { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.amb42 span { position: absolute; bottom: -60px; width: 26px; height: 26px; opacity: 0; will-change: transform, opacity; animation: drift 26s linear infinite; }
.amb42 span img { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes drift { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 8% { opacity: .55; } 50% { transform: translate(var(--dx, 30px), -55vh) rotate(160deg); } 92% { opacity: .5; } 100% { transform: translate(calc(var(--dx, 30px) * -.4), -112vh) rotate(320deg); opacity: 0; } }
html.rm .bg42 i, html.rm .amb42 span { animation: none !important; } html.rm .amb42 { display: none; }
@media (prefers-reduced-motion: reduce) { .bg42 i, .amb42 span { animation: none !important; } .amb42 { display: none; } }

/* type */
h1 { font-family: var(--hfont); font-weight: 600; font-size: 27px; letter-spacing: -.2px; color: var(--ink); }
h2 { font-family: var(--hfont); font-weight: 600; font-size: 19px; color: var(--ink-2); }
h3 { font-family: var(--hfont); font-weight: 600; }

/* ---------- buttons: clay buttons that press down and spring back ---------- */
.btn { font-family: var(--hfont); font-weight: 600; letter-spacing: .1px; transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .2s ease; }
.btn-primary { background: linear-gradient(180deg, var(--v1) 0%, var(--v2) 100%); color: #fff; box-shadow: 0 4px 0 var(--v3), 0 14px 24px -10px rgba(95, 79, 214, .55), inset 0 2px 0 rgba(255, 255, 255, .35); }
.btn-primary:active, .btn-primary.pressing { transform: translateY(3px); box-shadow: 0 1px 0 var(--v3), 0 6px 12px -8px rgba(95, 79, 214, .5), inset 0 2px 0 rgba(255, 255, 255, .3); }
.btn-ghost { background: #fff; color: var(--ink-2); box-shadow: 0 3px 0 #e4ddfb, 0 10px 20px -12px rgba(90, 70, 180, .3), inset 0 0 0 2px #eee9fc; }
.btn-ghost:active, .btn-ghost.pressing { transform: translateY(2px); box-shadow: 0 1px 0 #e4ddfb, inset 0 0 0 2px #eee9fc; }
.icon-btn { background: #fff; box-shadow: 0 3px 0 #e8e2fb, 0 10px 18px -10px rgba(90, 70, 180, .35); transition: transform .18s var(--ease); }
.icon-btn:active { transform: translateY(2px) scale(.96); }
.pressing { transform: scale(.95); }

/* ---------- top bar ---------- */
.topbar .greet { font-family: var(--hfont); font-weight: 600; font-size: 20px; color: var(--ink); }
.stars-pill { background: linear-gradient(160deg, #fffaf0, #ffeab8); box-shadow: 0 3px 0 #f6dc9b, 0 10px 18px -10px rgba(220, 160, 40, .6); font-family: var(--hfont); font-weight: 700; color: #8a5a10; }
.stars-pill svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 2px rgba(200, 140, 20, .25)); }
.stars-pill b { font-weight: 700; }

/* now / next strip */
.nn-card { border-radius: 22px; box-shadow: var(--shadow); }

/* ---------- the room: illustrated clay room, sky shows through the window ---------- */
.room { min-height: clamp(200px, 30vh, 320px); border-radius: 32px; background: linear-gradient(180deg, #8fd0ff 0%, #c9ecff 45%, #eaf7ff 70%) !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), var(--shadow-lg) !important; isolation: isolate; }
.room::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url(art/room.webp) center 62% / cover no-repeat; }
.room.sky-dawn { background: linear-gradient(180deg, #ffc9b5 0%, #ffe6cf 50%, #fff4e4 75%) !important; }
.room.sky-dusk { background: linear-gradient(180deg, #f6a58e 0%, #d6a6e6 55%, #b9b4f2 80%) !important; }
.room.sky-night { background: radial-gradient(1.4px 1.4px at 40% 18%, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 58% 10%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 66% 24%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 48% 30%, #fff 50%, transparent 51%), radial-gradient(28px 28px at 62% 16%, #fff7d6 40%, rgba(255, 247, 214, 0) 70%), linear-gradient(180deg, #2c3172 0%, #4b4fa0 60%, #6c6ab8 85%) !important; }
.room.sky-day::after { content: ''; position: absolute; z-index: 0; left: 52%; top: 9%; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, #fff6c9 0 34%, rgba(255, 238, 160, .6) 50%, rgba(255, 238, 160, 0) 72%); pointer-events: none; }
.room.sky-night::before { filter: brightness(.66) saturate(.9) hue-rotate(-8deg); }
.room.sky-dusk::before { filter: brightness(.95) saturate(1.05); }
.room .window, .room .floor { display: none !important; }
.room .rcloud { z-index: 0 !important; opacity: .95; }
.room .dec { z-index: 2; filter: drop-shadow(0 6px 6px rgba(80, 60, 140, .14)); }
.room .dec svg { width: 100%; height: auto; }
.dec-rug { width: 76% !important; left: 50% !important; margin-left: 0 !important; transform: translateX(-50%); bottom: 2% !important; top: auto !important; right: auto !important; filter: none !important; }
.dec-plant { width: 23% !important; left: 1% !important; bottom: 15% !important; right: auto !important; top: auto !important; }
.dec-lamp { width: 15% !important; right: 1% !important; bottom: 16% !important; left: auto !important; top: auto !important; }
.dec-frame { width: 16% !important; left: 7% !important; top: 13% !important; right: auto !important; bottom: auto !important; }
.dec-bunting { width: 56% !important; left: 22% !important; top: -1% !important; right: auto !important; }
.dec-fairylights { width: 70% !important; height: auto !important; left: 15% !important; right: auto !important; top: 1% !important; border: 0 !important; border-radius: 0 !important; filter: drop-shadow(0 0 6px rgba(255, 220, 140, .55)) !important; }
.dec-fairylights.on { display: block !important; }
.has-bunting .dec-fairylights { top: 9% !important; }
.dec-starmobile { width: 13% !important; top: 0 !important; right: 9% !important; left: auto !important; }
.dec-fishbowl { width: 15% !important; right: 16% !important; bottom: 12% !important; left: auto !important; top: auto !important; }
.dec-sunflower { width: 12% !important; left: 21% !important; bottom: 12% !important; right: auto !important; top: auto !important; }
.dec-veggiebasket { width: 17% !important; left: 3% !important; bottom: 2% !important; right: auto !important; top: auto !important; }
.dec-pumpkin { width: 14% !important; right: 4% !important; bottom: 2% !important; left: auto !important; top: auto !important; }
.dec-snowglobe { width: 11% !important; right: 20% !important; bottom: 3% !important; left: auto !important; top: auto !important; }
.room .stage { z-index: 3; bottom: 3%; }
.room .fx { z-index: 4; } .room .bowl { z-index: 3; } .room .say { z-index: 5; } .room .night-veil { z-index: 6; }
.stage .charwrap { width: min(56vw, 230px); }
@media (min-height: 800px) { .stage .charwrap { width: min(60vw, 250px); } }
.say { background: rgba(255, 255, 255, .94) !important; border-radius: 22px; font-family: var(--hfont); font-weight: 500; color: var(--ink); box-shadow: 0 2px 0 rgba(120, 100, 210, .08), 0 14px 26px -14px rgba(90, 70, 180, .45) !important; }
.say::after { border-top-color: rgba(255, 255, 255, .94) !important; }

/* ---------- the rabbit art ---------- */
.char.art .sleep-img { opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.char.art .whole { transition: opacity .9s ease; }
.charwrap[data-mood="sleep"] .char.art .sleep-img { opacity: 1; }
.charwrap[data-mood="sleep"] .char.art .whole { opacity: 0; }
.char.art .ear-l { transform-origin: 83.3px 86px; } .char.art .ear-r { transform-origin: 137.3px 86px; }
.char.art .headgrp { transform-origin: 110px 172px; }
.char.art .paw-l { transform-origin: 82px 179px; } .char.art .paw-r { transform-origin: 137.8px 179px; }
.char.art .ears { transform-origin: 110px 88px; }
.char.art .cheek { opacity: 0; transition: opacity .5s ease; }
.charwrap[data-mood="love"] .char.art .cheek, .charwrap[data-mood="excited"] .char.art .cheek { opacity: .55; }
.char.art .eye { transition: transform .35s var(--ease); }
.charwrap.looking .char.art .look { transform: translate(calc(var(--lx, 0) * 3px), calc(var(--ly, 0) * 2px)); transition: transform .3s var(--ease); }
.char.art .look { transform-box: view-box; transition: transform .5s var(--ease); }
.char.art image { image-rendering: auto; }
.charwrap .char.art { filter: drop-shadow(0 3px 2px rgba(70, 50, 120, .10)); }
html.rm .char.art .sleep-img, html.rm .char.art .whole { transition: opacity .6s ease; }

/* ---------- quick pills & care buttons ---------- */
.pill { font-family: var(--hfont); font-weight: 600; color: var(--ink); border-radius: 20px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pill-feel { background: linear-gradient(155deg, #fff8e2, #ffe3a1) !important; box-shadow: 0 3px 0 #f2d488, 0 12px 20px -14px rgba(230, 170, 40, .9) !important; }
.pill-calm { background: linear-gradient(155deg, #e6fbf1, #bdeed8) !important; box-shadow: 0 3px 0 #a6e1c6, 0 12px 20px -14px rgba(46, 170, 120, .8) !important; }
.pill-more { background: linear-gradient(155deg, #f1ecff, #d8cfff) !important; box-shadow: 0 3px 0 #c6baf6, 0 12px 20px -14px rgba(130, 110, 240, .8) !important; }
.pill:active { transform: translateY(2px); }
.pill svg.clay { filter: drop-shadow(0 2px 2px rgba(80, 60, 140, .15)); }
.actions { gap: 8px; }
.act { border-radius: 24px !important; padding: 9px 0 8px !important; min-height: 92px; background: linear-gradient(170deg, #ffffff 0%, var(--tint, #f4f2ff) 100%) !important;
  box-shadow: 0 3px 0 var(--tint-b, #e6e0fb), 0 14px 22px -14px var(--tint-d, rgba(111, 104, 200, .6)), inset 0 0 0 1.5px rgba(255, 255, 255, .9) !important; transition: transform .18s var(--ease), box-shadow .18s var(--ease) !important; }
.act:active, .act.pressing { transform: translateY(3px) !important; box-shadow: 0 0 0 var(--tint-b, #e6e0fb), 0 6px 10px -8px var(--tint-d, rgba(111, 104, 200, .6)), inset 0 0 0 1.5px rgba(255, 255, 255, .9) !important; }
.act .ai { width: 54px !important; height: 54px !important; background: radial-gradient(circle at 50% 40%, #fff 0 55%, rgba(255, 255, 255, 0) 72%) !important; box-shadow: none !important; }
.act .ai svg { width: 48px !important; height: 48px !important; filter: drop-shadow(0 3px 3px rgba(80, 60, 140, .18)); }
.act .al { font-family: var(--hfont); font-weight: 600 !important; font-size: 14.5px !important; color: var(--ink) !important; }
.act-feed { --tint: #ffdcc4; --tint-b: #ffc9a6; --tint-d: rgba(255, 140, 80, .6); }
.act-water { --tint: #d2e9ff; --tint-b: #b5d9fb; --tint-d: rgba(70, 150, 240, .6); }
.act-pet { --tint: #ffd6e4; --tint-b: #ffbcd2; --tint-d: rgba(255, 110, 150, .6); }
.act-play { --tint: #fff0b3; --tint-b: #f9df85; --tint-d: rgba(240, 180, 40, .65); }
.act-rest { --tint: #e3dbff; --tint-b: #cfc3fb; --tint-d: rgba(130, 110, 240, .6); }
.act.wanted { box-shadow: 0 3px 0 var(--tint-b), 0 0 0 3px #fff, 0 0 0 6px var(--tint-d), 0 14px 22px -14px var(--tint-d) !important; }

/* ---------- nav: floating glass bar ---------- */
.nav { background: rgba(255, 255, 255, .86) !important; box-shadow: 0 2px 0 rgba(120, 100, 210, .06), 0 18px 34px -14px rgba(80, 60, 170, .38) !important; border: 1px solid rgba(255, 255, 255, .9); }
.nav-btn { font-family: var(--hfont); transition: background .35s var(--ease), color .3s ease, transform .2s var(--ease) !important; }
.nav-btn .nl { font-weight: 600 !important; }
.nav-btn.on { background: linear-gradient(160deg, #f1ecff, #ddd4ff) !important; color: #4a3dc0 !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9), 0 6px 14px -8px rgba(110, 90, 230, .6); }
.nav-btn:active { transform: scale(.93); }

/* ---------- generic cards / tiles ---------- */
.tile, .opt, .task, .choice, .row, .card, .nn-card, .stk, .shop-item, .item { border-radius: 22px; }
.tile, .opt, .choice { box-shadow: var(--shadow); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.tile:active, .opt:active, .choice:active { transform: translateY(2px) scale(.98); }
.note { background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1.5px var(--line); }
.switch { transition: background .3s var(--ease); }

/* screen enter */
@keyframes scr-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- bubbles mini-game v4.2 ---------- */
.play42 { position: relative; background: url(art/bg-play.webp) center bottom / cover no-repeat, linear-gradient(180deg, #ffe2cf, #d6f1f4) !important; --play-bottom: calc(max(16px, var(--safe-b)) + 22px); }
.play42 .play-head { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + var(--safe-t)) 16px 6px; }
.play42 .play-count { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); font-family: var(--hfont); font-weight: 700; font-size: 20px; color: var(--ink); }
.play42 .play-count .pc-i svg { width: 30px; height: 30px; }
.play42 .play-count i { font-style: normal; font-weight: 500; color: var(--muted); font-size: 16px; }
.play42 .play-count.bump { animation: cnt-bump .45s var(--spring); }
@keyframes cnt-bump { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
.play-meter { position: relative; z-index: 3; height: 10px; margin: 2px 18px 0; border-radius: 99px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 2px rgba(80, 60, 140, .12); overflow: hidden; }
.play-meter i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffd27a, #ff9fb8, #a18dff); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform .6s var(--spring); }
[dir="rtl"] .play-meter i { transform-origin: right center; }
.play42 .play-field { position: relative; flex: 1; overflow: hidden; margin-bottom: 0; }
.play42 .play-hint { position: absolute; z-index: 1; left: 0; right: 0; top: 22%; margin: 0 auto; width: max-content; max-width: 86%; text-align: center; padding: 10px 18px; border-radius: 20px; background: rgba(255, 255, 255, .85); box-shadow: var(--shadow); font-family: var(--hfont); font-weight: 600; color: var(--ink-2); transition: opacity .5s ease, transform .5s var(--ease); pointer-events: none; }
.play42 .play-hint.gone { opacity: 0; transform: translateY(-8px); }
.play42 .play-char { position: absolute; left: 50%; bottom: var(--play-bottom); transform: translateX(-50%); z-index: 2; pointer-events: none; }
.play42 .play-char::before { content: ''; position: absolute; left: 14%; right: 14%; bottom: 2%; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 60, 140, .22), rgba(70, 60, 140, 0)); }
.play42 .play-char .charwrap.play-big { width: min(70vw, calc((100dvh - 150px) * .42 * 220 / 270), 400px); }
.bub42 { position: absolute; left: 0; top: 0; z-index: 2; border-radius: 50%; padding: 0; display: grid; place-items: center; will-change: transform;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 9%, rgba(255, 255, 255, .35) 16%, rgba(255, 255, 255, 0) 30%),
              radial-gradient(circle at 50% 55%, rgba(255, 255, 255, .18) 0 38%, var(--c) 66%, var(--c2) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8), inset -6px -10px 18px rgba(255, 255, 255, .45), 0 10px 22px -10px rgba(80, 60, 160, .35);
  animation: bub-in42 .6s var(--spring) both; transition: opacity .25s ease; }
.bub42 .bub-sheen { position: absolute; inset: 6%; border-radius: 50%; background: conic-gradient(from 200deg, rgba(255, 180, 210, .0), rgba(255, 180, 210, .35), rgba(180, 220, 255, .35), rgba(190, 255, 220, .3), rgba(255, 240, 170, .3), rgba(255, 180, 210, 0)); -webkit-mask: radial-gradient(closest-side, transparent 72%, #000 80%, transparent 100%); mask: radial-gradient(closest-side, transparent 72%, #000 80%, transparent 100%); }
.bub42 .bub-in { width: 50%; height: 50%; position: relative; } .bub42 .bub-in svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(80, 60, 140, .2)); }
.bub42.popped { animation: bub-pop .26s ease-out forwards; }
.bub42.fade { opacity: 0; }
@keyframes bub-in42 { from { transform: var(--t0, none) scale(.2); opacity: 0; } }
@keyframes bub-pop { to { opacity: 0; filter: blur(1px); } }
.pop-ring { position: absolute; z-index: 2; border-radius: 50%; pointer-events: none; border: 3px solid var(--c); opacity: .8; animation: ring42 .65s ease-out forwards; }
@keyframes ring42 { from { transform: scale(.7); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }
.pop-dot { position: absolute; z-index: 2; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.pop-gift { position: absolute; z-index: 3; pointer-events: none; animation: gift-up 1.05s var(--ease) forwards; }
.pop-gift svg { width: 100%; height: 100%; }
@keyframes gift-up { 0% { transform: scale(.6); opacity: 1; } 30% { transform: translateY(-10px) scale(1.15); opacity: 1; } 100% { transform: translateY(-70px) scale(.9); opacity: 0; } }
.play-win { position: absolute; z-index: 5; left: 50%; top: 18%; transform: translateX(-50%); width: min(84%, 340px); padding: 18px 18px 16px; border-radius: 28px; text-align: center; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-lg); animation: win-in .6s var(--spring) both; font-family: var(--hfont); }
.play-win.out { animation: fadeout .3s ease forwards; }
.play-win b { display: block; font-size: 24px; font-weight: 700; color: var(--ink); margin: 6px 0 2px; }
.play-win .pw-sub { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #a2690f; font-size: 18px; } .play-win .pw-sub svg { width: 24px; height: 24px; }
.play-win .pw-stars { display: flex; justify-content: center; gap: 6px; } .play-win .pw-stars svg { width: 44px; height: 44px; animation: star-in .7s var(--spring) both; }
.play-win .pw-stars svg:nth-child(2) { width: 56px; height: 56px; animation-delay: .12s; } .play-win .pw-stars svg:nth-child(3) { animation-delay: .24s; }
.play-win .pw-btns { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
@keyframes win-in { from { opacity: 0; transform: translate(-50%, 20px) scale(.9); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes star-in { from { opacity: 0; transform: scale(.3) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes fadeout { to { opacity: 0; } }
.confetti42 { position: absolute; z-index: 4; top: -40px; width: 26px; height: 26px; pointer-events: none; will-change: transform; }
.confetti42 svg { width: 100%; height: 100%; }
html.rm .bub42, html.rm .play-win, html.rm .play-win .pw-stars svg { animation: fadein .35s ease both !important; } /* 5.7.1: a fade, kept under the motion audit line */
html.rm .pop-gift, html.rm .pop-ring { display: none; }

/* other places the rabbit appears: bigger, never a postage stamp */
.calm-scene .charwrap { width: min(46vw, 200px) !important; }
.b-char .charwrap { width: min(40vw, 170px) !important; }
.ob-char .charwrap { width: min(44vw, 180px); }
.splash-char .charwrap.big { width: min(66vw, 290px); }

/* breathing-bubbles: a bigger rabbit holding the wand at mouth height, in an illustrated sky */
.blow-field { --bw: min(52vw, 210px); height: min(60vh, 520px) !important; background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .05)), url(art/bg-play.webp) center 70% / cover no-repeat !important; border-radius: 30px !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), var(--shadow-lg) !important; }
.blow-rabbit { bottom: 10px !important; } .blow-rabbit .charwrap { width: var(--bw) !important; }
.blow-field .wand { bottom: calc(10px + var(--bw) * 1.227 * .42) !important; margin-left: calc(var(--bw) * .24) !important; width: 5px !important; height: 40px !important; background: linear-gradient(180deg, #c8b8ff, #9c88f0) !important; }
.blow-field .wand i { border-color: #b7a6fb !important; top: -30px !important; left: -13px !important; width: 31px !important; height: 31px !important; }
.blow-field .bubble-grow { bottom: calc(10px + var(--bw) * 1.227 * .42 + 66px) !important; margin-left: calc(var(--bw) * .24 + 2px) !important; width: min(46vw, 190px) !important; height: min(46vw, 190px) !important;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 8%, rgba(255, 255, 255, 0) 24%), radial-gradient(circle at 50% 55%, rgba(255, 255, 255, .15) 0 40%, rgba(200, 185, 255, .55) 70%, rgba(150, 200, 255, .7) 100%) !important; }
.blow-field .blow-count { font-family: var(--hfont); font-weight: 600; color: var(--ink-2); }

/* short phones (SE / 360x740): keep the care buttons above the nav without scrolling */
@media (max-height: 760px) {
  .home { gap: 8px; }
  .room { min-height: 190px !important; max-height: 236px; flex: 1 1 200px !important; }
  .stage .charwrap { width: min(44vw, 180px) !important; }
  .act { min-height: 80px; } .act .ai { width: 44px !important; height: 44px !important; } .act .ai svg { width: 40px !important; height: 40px !important; }
  .quick .pill { min-height: 46px; }
}

@media (max-height: 700px) {
  .home { gap: 6px !important; }
  .room { min-height: 168px !important; max-height: 190px; }
  .stage .charwrap { width: min(40vw, 158px) !important; }
  .nownext > * { padding-top: 8px !important; padding-bottom: 8px !important; }
  .grow-chip { padding-top: 5px !important; padding-bottom: 5px !important; min-height: 0 !important; }
  .quick .pill { min-height: 42px; }
}

/* 4.2.1 petting: soft warm halo behind the rabbit (no hand). Opacity/transform only, slow, never flashing. */
.room .glow42 { position: absolute; z-index: 2; pointer-events: none; border-radius: 50%; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(255, 248, 228, .95) 0%, rgba(255, 238, 236, .85) 55%, rgba(255, 214, 230, .5) 80%, rgba(255, 214, 230, 0) 100%); }

/* 4.2.1: on screens with the bottom bar (home, garden, stickers…) "unlocked" toasts rise above the bar like a snackbar,
   so they never cover the greeting/clock; on full-screen games (no bar, big hold button at the bottom) they stay at the top */
#app.with-nav ~ .toast { top: auto !important; bottom: calc(var(--nav-h) + 16px + var(--safe-b)) !important; transform: translate(-50%, 16px) !important; }
#app.with-nav ~ .toast.show { transform: translate(-50%, 0) !important; }
html.rm #app.with-nav ~ .toast, html.rm #app.with-nav ~ .toast.show { transform: translate(-50%, 0) !important; }
/* 4.2.1: the speech bubble is a compact card in the top corner, so the window and sky stay visible */
.room .say { left: auto !important; right: 8px !important; top: 8px !important; width: auto !important; max-width: min(41%, 190px); min-height: 0 !important;
  padding: 8px 12px !important; font-size: 15.5px !important; line-height: 1.3; gap: 6px !important; }
.room .say .need svg, .room .say .need img { width: 26px !important; height: 26px !important; }
.room .say::after { left: 16% !important; }

/* 4.2.1: the bubble wand is held up from the right paw with its ring right at the mouth (was at the cheek);
   the growing bubble and each released bubble start from that ring. Rabbit box: width --bw, height 1.227 * --bw,
   mouth at 54% from its top, right paw at 72%. */
.blow-field .wand { bottom: calc(10px + var(--bw) * .33) !important; margin-left: calc(var(--bw) * .115) !important; height: calc(var(--bw) * .2) !important;
  transform: rotate(-26deg); transform-origin: 50% 100%; border-radius: 3px; }
.blow-field .wand i { top: calc(-1 * var(--bw) * .14) !important; left: calc(2.5px - var(--bw) * .075) !important; width: calc(var(--bw) * .15) !important; height: calc(var(--bw) * .15) !important; border-width: 3.5px !important; }
.blow-field .bubble-grow { bottom: calc(10px + var(--bw) * .6) !important; margin-left: calc(var(--bw) * .02) !important; }
.blow-field .free-bub { bottom: calc(10px + var(--bw) * .6); margin-left: calc(var(--bw) * .02); }
