#acts{max-width:96vw;bottom:35px;gap:4px;align-items:center}#acts button{min-width:64px;max-width:90px;min-height:64px;border-radius:50%;font-size:12px;padding:8px}#acts #runBtn,#acts #wave{position:static}#context{display:none!important}#acts button span{pointer-events:none}#acts button[hidden]{display:none!important}#acts .context-action{background:#f3cf7a33}#fernCounter{position:fixed;left:12px;top:84px;font-size:11px;max-width:60vw;padding:7px 12px;z-index:5;pointer-events:none}#meteorBanner{position:fixed;top:125px;left:50%;transform:translateX(-50%);z-index:8;text-align:center;padding:8px;font-size:12px;width:max-content;max-width:92vw}#modeTools{position:fixed;left:50%;transform:translateX(-50%);bottom:35px;display:none;gap:7px;z-index:9}body.mode #modeTools{display:flex}#v4Sheet .panel{background:#203c32;max-width:560px}#v4Sheet canvas{display:block;width:100%;max-height:60vh;object-fit:contain;border-radius:18px}#v4Sheet input,select{font:inherit;color:#fff9df;background:#2b483c;border:1px solid #acbda3;border-radius:12px;padding:10px;max-width:100%}#customize{margin:12px auto;max-width:360px;text-align:left}#customize label{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin:5px 0}#customize select{padding:5px}#outfits{display:flex;gap:8px;justify-content:center;margin:9px}#outfits button{border:2px solid #fff6;border-radius:50%;width:32px;min-height:32px}#outfits button.on{outline:2px solid #f3cf7a}#dexSummary{font-size:13px;line-height:1.8;margin-bottom:12px}#dexSummary .row{gap:4px}#dexSummary button{font-size:11px;padding:7px}#dexSummary .today-icon{border-radius:50%;width:42px;height:42px;overflow:hidden;padding:0}#dexSummary img{width:100%;height:100%;object-fit:cover}#dexDetail .bilingual{padding:12px;background:#ffffff0d;border-radius:14px;line-height:1.8}#dexDetail a{color:#f3d48a}#dexDetail h3{font-size:15px}.dcard small{display:block;font-size:10px;padding:0 8px 8px;color:#efd69d}#eggStatus{position:fixed;bottom:120px;left:50%;transform:translateX(-50%);font-size:12px;z-index:7;padding:8px 12px;max-width:90vw}#nurseryBtn{font-size:12px}#photoOverlay{display:none;position:fixed;inset:18px;border:1px solid #fff8;border-radius:28px;pointer-events:none;z-index:12;box-shadow:0 0 0 18px #f5f0d51c}body.photograph #photoOverlay{display:block}body.photograph #top,body.photograph #acts,body.photograph #joy,body.photograph #labels,body.photograph #mapWrap,body.photograph #credit,body.photograph #fernCounter,body.photograph #eggStatus,body.photograph #exit{visibility:hidden}#photoTools{display:none;position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:15;gap:8px}body.photograph #photoTools{display:flex}#toast{cursor:pointer}.babyrow{border:1px solid #ffffff28;border-radius:14px;padding:12px;margin:8px 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.babyrow p{margin:0;flex:1 1 100%}#v4Sheet progress{width:100%;accent-color:#eacb81}body.mode #eggStatus{opacity:.8}#top .grp.r{max-width:65%}
@media(max-width:560px){#acts{bottom:164px;width:max-content;padding:5px;gap:3px}#acts button{min-width:59px;max-width:66px;font-size:10px;min-height:62px}#joy{bottom:28px;width:104px;height:104px}#eggStatus{bottom:235px;font-size:11px}#fernCounter{top:108px;left:9px;max-width:95vw;font-size:10px}#mapWrap{top:155px}#meteorBanner{top:140px}#modeTools{bottom:42px;width:max-content;max-width:95vw}#welcome .panel{max-height:94vh;padding:14px}#customize{margin:8px auto}#customize label{font-size:11px}#welcome .sub{margin-bottom:5px}#welcome #enter{margin-top:7px}#top .grp.r{gap:3px}#top .grp.r button{font-size:10px;min-height:34px}#dexSummary .chip{min-height:40px}#v4Sheet .panel{max-height:92vh}}

#waveGreeting{position:fixed;transform:translate(-50%,-100%);padding:8px 14px;border-radius:18px;pointer-events:none;z-index:8;font-size:18px;color:#fff4ce;white-space:nowrap}
.eggTimerRing{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:conic-gradient(#d5b768 var(--progress),#455f4d 0);box-shadow:inset 0 0 0 3px #e5d5a966}
/* Three direct actions; the remaining controls have their own small right rail. */
#acts{bottom:28px;display:flex;width:max-content;max-width:calc(100vw - 300px);gap:8px;padding:6px;border-radius:22px}#acts button{border-radius:18px;min-width:132px;max-width:165px;min-height:68px;font-size:14px;padding:10px;line-height:1.5}#sideControls{position:fixed;right:16px;bottom:28px;display:flex;flex-direction:column;gap:8px;z-index:7}#sideControls button{position:static!important;border-radius:50%;width:46px;height:46px;min-height:46px;padding:3px;font-size:20px}#sideControls button span{display:none}#sideControls #mapToggle{font-size:11px;line-height:1.2}#mapClose{position:absolute;right:4px;top:4px;padding:4px;min-height:28px;background:#203c32e6}#mapWrap{top:110px}#top .grp.r{max-width:72%;flex-wrap:wrap}#top .grp:first-child{max-width:26%}#who{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:24vw}#credit{left:12px;bottom:6px;transform:none;font-size:10px;pointer-events:none}#fernCounter{display:none}#brightBtn,#labelBtn,#foodChoices{display:none!important}#eggStatus{bottom:118px}#toast{top:110px;bottom:auto;max-width:calc(100vw - 190px);font-size:12px}#explorerName{max-width:220px;font:inherit;background:#ffffff12;border:1px solid #ffffff40;color:inherit;border-radius:10px;padding:7px}#nameBox{font-size:20px}#waveReply{position:fixed;top:120px;left:12px;z-index:8;max-width:55vw;font-size:12px}body.photograph #sideControls,body.photograph #modeTools{visibility:hidden}body.mode #acts{display:none!important}#waveGreeting{max-width:65vw;white-space:normal;text-align:center;font-size:16px;pointer-events:none}.photoFallback{height:100px;display:grid;place-items:center;background:linear-gradient(140deg,#44664c,#243d38);border-radius:12px;font-size:35px;color:#eed7a0}.dcard .photoCredit{font-size:8px;line-height:1.3;color:#d1c8af}#dexDetail .photoFallback{height:180px}#dexDetail img{max-height:240px;object-fit:contain}
@media(max-width:600px){#top{padding:8px;display:flex;align-items:flex-start}#top .grp:first-child{max-width:26%}#top .grp.r{max-width:72%;gap:3px;justify-content:flex-end}#top .grp.r button{font-size:10px;padding:6px;min-height:32px}#who{font-size:10px;max-width:24vw}#acts{bottom:150px;max-width:calc(100vw - 18px);gap:5px;padding:5px}#acts button{min-width:0;width:calc((100vw - 54px)/3);max-width:116px;min-height:66px;font-size:12px;padding:6px}#sideControls{right:14px;bottom:25px;gap:6px}#sideControls button{width:36px;height:36px;min-height:36px;font-size:18px}#mapWrap{top:112px;right:9px;width:114px}#minimap{width:100px;height:100px}#eggStatus{bottom:229px;max-width:90vw;font-size:10px}#toast{top:85px;left:8px;transform:none;max-width:calc(100vw - 145px);font-size:11px;padding:7px}#meteorBanner{top:270px;max-width:90vw;font-size:10px}#modeTools{bottom:153px;max-width:96vw}#modeTools button{font-size:11px;padding:8px}#welcome .panel{overflow:auto}#nameBox{font-size:17px}#credit{left:8px;bottom:5px}#waveReply{top:90px;max-width:57vw}}
@media(max-height:500px) and (orientation:landscape){#top{padding:6px}#top .grp.r{max-width:74%;gap:3px}#top .grp.r button{font-size:10px;min-height:30px;padding:5px}#acts{bottom:18px;max-width:calc(100vw - 270px)}#acts button{width:108px;min-width:0;min-height:56px;font-size:11px}#joy{bottom:25px;width:82px;height:82px}#sideControls{right:14px;bottom:18px;gap:4px}#sideControls button{width:32px;height:32px;min-height:32px;font-size:17px}#mapWrap{top:56px;right:60px;width:98px}#minimap{width:84px;height:84px}#zoneName{font-size:9px}#eggStatus{bottom:92px;font-size:10px}#modeTools{bottom:25px}#toast{top:55px;max-width:55vw}#meteorBanner{top:55px;font-size:10px}#waveReply{top:90px}}
#photoBtn{line-height:1!important;overflow:hidden}#top .grp.r #soundBtn{max-width:90px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.mode #sideControls #runBtn{display:none!important}body.mode #mapToggle{display:block!important}
#waveGreeting{width:max-content;max-width:60vw;font-size:14px;line-height:1.4}#acts{left:50%;right:auto;transform:translateX(-50%)}
#toast:not(.show){visibility:hidden;pointer-events:none!important}body:has(#waveReply:not([hidden])) #toast{visibility:hidden;pointer-events:none!important}

/* Botanical facts stay readable on narrow phones. */
#guideTabs{margin:8px 0 12px;position:sticky;top:0;background:#253d32;z-index:2;padding:6px;border-radius:14px}
.plantCard{padding:14px;border:1px solid #b9c79745;border-radius:16px;background:#ffffff08;min-width:0}
.plantCard h3{font-size:16px;line-height:1.5;margin:0 0 8px}.plantCard p{line-height:1.6;font-size:14px}.plantCard small{color:#e7d59e}.plantCard a{color:#c0dbb1;font-size:13px}

/* Round 4: readable, equal, single-line controls at 360px. */
#acts{width:540px;max-width:calc(100vw - 300px)}#acts button{flex:1 1 0;width:0;min-width:0;max-width:none;font-size:19px;font-weight:700;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:5px;padding:10px 4px}
#sideControls button{width:116px;border-radius:24px;font-size:15px!important;font-weight:700;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:5px;padding:6px 10px}#sideControls button span{display:inline;font-size:17px}#sideControls #mapToggle{font-size:15px}#top .grp.r #soundBtn{max-width:none;overflow:visible;text-overflow:clip}#top button{white-space:nowrap}#who{overflow:visible;max-width:none;text-overflow:clip}.growthDots{letter-spacing:3px;font-size:14px;color:#eed392}
@media(max-width:600px){#acts{width:calc(100vw - 18px);max-width:calc(100vw - 18px);bottom:157px;gap:4px}#acts button{font-size:17px;min-height:68px;padding:8px 2px;width:0}#sideControls{right:10px;bottom:26px;gap:5px}#sideControls button{width:112px;height:36px;min-height:36px}#top .grp:first-child{max-width:24%}#who{max-width:23vw;overflow-wrap:anywhere;white-space:normal}#top .grp.r{max-width:75%}#top .grp.r button{font-size:11px;padding:5px 6px}#eggStatus{bottom:236px}}

/* Round 5: short explorer chip stays on one line without truncation. */
@media(max-width:600px){#who{white-space:nowrap;overflow-wrap:normal;max-width:none;font-size:10px}}

/* Only the existing growth tag is tappable; the postcard link expires with its toast. */
#babyTagHit{position:fixed;z-index:8;padding:0;border:0;background:transparent;box-shadow:none;cursor:pointer;touch-action:manipulation}
#babyTagHit[hidden]{display:none}
#babyTagHit:focus-visible{outline:2px solid #fff4ce;border-radius:8px}
#toast .postcardLink{display:inline;padding:3px 6px;margin-left:8px;font-size:12px;text-decoration:underline;background:transparent;color:inherit;border:0}
.remote-label{font-size:14px;color:#fff4ce;background:#203c32e8;padding:5px 9px;border-radius:10px;text-shadow:none}

body.composing #photoTools,body.composing #photoOverlay{display:none}
#cardCompose{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(620px,calc(100vw - 24px));padding:12px;background:#203c32ee;border:1px solid #fff4ce66;border-radius:18px;z-index:18}
#cardCompose[hidden]{display:none}
#cardCompose p{margin:0 0 8px;text-align:center;font-size:13px}
#cardCompose .composeRow{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:center}
#cardCompose button,#cardCompose label{min-height:44px;min-width:44px;border-radius:12px;font-size:14px;margin:0}
#cardCompose button{padding:9px 12px;border:1px solid #fff4ce66;background:#ffffff12}
#cardCompose button[aria-pressed=true]{background:#e4c98a;color:#203c32}
#cardCompose label{display:flex;align-items:center;gap:8px;flex:1 1 100%;justify-content:center}
#composeZoom{height:44px;min-width:160px;width:65%;accent-color:#e4c98a}
body.composing #toast,body.composing #babyTagHit{display:none}
@media(max-width:600px){#cardCompose button{flex:1 1 40%}#cardCompose p{font-size:12px}}

#babyGame{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:16;width:min(520px,94vw);padding:12px;background:#203c32ee;border-radius:18px;text-align:center}
#babyGame[hidden]{display:none}#babyGame p{font-size:13px;margin:0 0 8px}#babyGame .row{justify-content:center;gap:8px}#babyGame button{min-height:44px;min-width:70px;border:1px solid #fff4ce66;background:#ffffff18;border-radius:12px;padding:8px 12px}
body.baby-playing #acts{visibility:hidden}body.baby-playing #sideControls{bottom:140px}
#forestName[role=button]{min-height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:1;font-size:11px;border-top:1px solid #fff4ce44;margin-top:5px}
#forestName:focus-visible{outline:2px solid #fff4ce;border-radius:8px}
#friendArrow{position:fixed;transform:translate(-50%,-100%);z-index:10;background:#203c32dd;color:#fff4ce;padding:7px 12px;border-radius:14px;font-size:13px;pointer-events:none}
#friendArrow[hidden]{display:none}

#presenceNotice{position:fixed;top:85px;left:50%;transform:translateX(-50%);z-index:12;max-width:90vw;padding:10px 14px;border-radius:14px;background:#203c32ed;color:#fff4ce;font-size:13px;text-align:center;pointer-events:none}
#presenceNotice[hidden],body.composing #presenceNotice{display:none}

body.composing #waveGreeting,body.composing #friendArrow{display:none}
/* Unmodified Commons images retain their complete frame and their own credit. */
.commonsFigure{margin:8px 0;background:rgba(255,255,255,.04);border-radius:10px;overflow:hidden}
.commonsFigure img,#dexDetail .commonsFigure img,.plantCard .commonsFigure img{display:block;width:100%;height:180px;object-fit:contain;background:#fff;border-radius:0}
.commonsFigure figcaption{padding:5px 7px;font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.commonsFigure a{color:#e3d6ad}.dcard .commonsFigure img{height:96px}.dcard{cursor:pointer}.dcard .commonsFigure{margin:0}.plantCard img{max-width:100%}
#updateNotice{position:fixed;z-index:80;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);max-width:90vw;border:1px solid #d8cca9;border-radius:16px;padding:12px 18px;background:#233d32;color:#fff8df;font:inherit;box-shadow:0 4px 20px #0005;cursor:pointer}
.guideGallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}.guideGallery .commonsFigure{margin:0}
@media(max-width:500px){.guideGallery{grid-template-columns:1fr}}

/* Shrink flex children before wrapping so resize never clips Night or Map. */
#top{box-sizing:border-box;width:100%;flex-wrap:wrap;align-items:flex-start}
#top .grp{min-width:0;box-sizing:border-box;flex:1 1 240px}
#top .grp.r{max-width:65%;flex:1 1 320px;flex-wrap:wrap}
#top button{flex:0 1 auto;white-space:normal;overflow-wrap:anywhere}
@media(max-width:560px){#top .grp{flex-basis:38%}#top .grp.r{flex-basis:58%;max-width:58%}}

/* A persistent target caption keeps short phone actions unambiguous. */
#actionTarget{position:fixed;left:50%;transform:translateX(-50%);bottom:112px;z-index:8;font-size:13px;padding:5px 14px;pointer-events:none;white-space:nowrap}
#actionTarget[hidden],#soundSheet[hidden]{display:none!important}
@media(min-width:900px){#acts{width:850px;max-width:calc(100vw - 280px)}#acts button{font-size:14px;border-radius:24px}}
@media(max-width:600px){#actionTarget{bottom:235px}#acts button{font-size:15px}}

/* Three short, legible actions; the target is named once in the chip above. */
#acts{gap:8px;padding:8px;background:#183c30ed;border:1px solid #d2c9a46b;border-radius:24px}
#acts button{font-size:24px;font-weight:700;line-height:1.15;color:#fff6d8;background:#244d3e;min-height:64px;border-radius:18px;padding:12px 10px;white-space:nowrap;overflow:visible;gap:6px;text-shadow:0 1px 1px #10271e}
#acts button:hover,#acts button:focus-visible{background:#3b6551;outline:2px solid #f6dfa0;outline-offset:1px}
#actionTarget{font-size:16px;font-weight:700;color:#fff6d8;background:#183c30ed}
@media(max-width:600px){#acts{gap:4px;padding:5px}#acts button{font-size:18px;min-height:56px;padding:10px 2px;border-radius:15px;gap:3px}#actionTarget{font-size:14px;bottom:235px}}

/* Shared, distinguishable pastel actions and baby games. */
#acts{background:#fff8eadf;border-color:#c8b99b;box-shadow:0 5px 18px #19233328}
#acts button{color:#1f2d4a;text-shadow:none;border:1px solid #d5c5a9;transition:transform .14s ease,box-shadow .14s ease;background:#ffe9a8}
#acts button:nth-child(2){background:#bfe3ff}#acts button:nth-child(3){background:#f9cfe0}
#acts button:hover,#acts button:focus-visible{color:#1f2d4a;filter:brightness(1.025);outline:2px solid #1f2d4a;outline-offset:1px}
#acts button:active{transform:scale(.97);box-shadow:inset 0 2px 5px #3a2f2226}
#actionTarget{background:#fff8ea;color:#3a2f22;border:1px solid #d5c5a9}
#v4Sheet .panel.baby-games{background:#fff9ef;color:#3a2f22;text-align:center;border-color:#d5c5a9;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 32px);box-sizing:border-box;padding:22px}
.baby-games h2{font-size:24px;font-weight:700;text-align:center;padding:0 24px;margin-bottom:12px}.baby-games>p{font-size:15px;line-height:1.6;text-align:center;margin:0 0 18px}
.baby-games .close{color:#3a2f22}.baby-games button[data-game]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:100%;min-height:78px;margin:12px auto 0;padding:13px 16px;border-radius:20px;border:1px solid #d5c5a9;color:#1f2d4a;transition:transform .14s ease,box-shadow .14s ease;text-align:center}
.baby-games button[data-game] strong{font-size:24px;font-weight:700;line-height:1.2}.baby-games button[data-game] small{font-size:13px;font-weight:600;line-height:1.25;color:#3a2f22}
.baby-games button[data-game=fetch]{background:#ffe9a8}.baby-games button[data-game=hide]{background:#bfe3ff}.baby-games button[data-game=copy]{background:#f9cfe0}
.baby-games button[data-game]:active{transform:scale(.98);box-shadow:inset 0 3px 7px #3a2f2226}.baby-games button[data-game]:focus-visible{outline:3px solid #1f2d4a;outline-offset:2px}.baby-games button:disabled{opacity:.55}
#soundSheet .panel{box-sizing:border-box;max-height:calc(100dvh - 28px);overscroll-behavior:contain}#soundOpts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#soundOpts .opt{min-width:0;overflow-wrap:anywhere}#soundOpts .opt small{word-break:keep-all;overflow-wrap:normal;line-height:1.4}
@media(max-width:600px){#v4Sheet .panel.baby-games{padding:18px}.baby-games h2{font-size:23px}.baby-games button[data-game]{min-height:64px;padding:11px 14px}.baby-games button[data-game] strong{font-size:22px}#soundSheet .panel{padding:14px}#soundOpts .opt{padding:10px;font-size:14px}#soundOpts .opt small{font-size:12px}}

#acts button:hover,#acts button:focus-visible{background:#ffe9a8}#acts button:nth-child(2):hover,#acts button:nth-child(2):focus-visible{background:#bfe3ff}#acts button:nth-child(3):hover,#acts button:nth-child(3):focus-visible{background:#f9cfe0}
#v4Sheet .panel.baby-games{position:relative}.baby-games .close{position:absolute;float:none;right:10px;top:10px;width:34px;height:34px}

#acts button[data-pastel=yellow]{--action-pastel:#ffe9a8;background:var(--action-pastel)}#acts button[data-pastel=blue]{--action-pastel:#bfe3ff;background:var(--action-pastel)}#acts button[data-pastel=pink]{--action-pastel:#f9cfe0;background:var(--action-pastel)}#acts button[data-pastel]:hover,#acts button[data-pastel]:focus-visible{background:var(--action-pastel)}
/* Copy me: four clear choices and a short, readable call-and-response. */
#babyGame.copy-mode{background:#fff8eb;color:#1f2d4a;text-align:center;width:min(520px,calc(100vw - 24px));border:1px solid #eadbc8;padding:16px;border-radius:24px}
#babyGame.copy-mode p{font-size:16px;font-weight:700;text-align:center}
#babyGame.copy-mode .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#babyGame.copy-mode button{background:#fff8eb;color:#1f2d4a;font-size:24px;font-weight:700;min-height:64px;border:0;border-radius:18px;white-space:nowrap;transition:transform .12s}
#babyGame.copy-mode button:active{transform:scale(.96)}
#babyGame.copy-mode [data-move=bow]{background:#FFE9A8}#babyGame.copy-mode [data-move=jump]{background:#BFE3FF}#babyGame.copy-mode [data-move=spin]{background:#F9CFE0}#babyGame.copy-mode [data-move=wiggle]{background:#DCCCF7}
#babyGame.copy-mode button:last-child{grid-column:1/-1;font-size:18px;min-height:44px}
#copyStreak{color:#614066;min-height:24px;margin:8px 0 0!important}
body:has(#babyGame.copy-mode:not([hidden])) #joy{visibility:hidden}
@media(max-width:600px){#babyGame.copy-mode{padding:12px;bottom:14px}#babyGame.copy-mode button{font-size:20px;min-height:56px}#babyGame.copy-mode p{font-size:14px}}
.baby-games button[data-food]{display:block;width:100%;min-height:64px;margin:12px auto 0;padding:14px;border:1px solid #d5c5a9;border-radius:20px;color:#1f2d4a;font-size:24px;font-weight:700;transition:transform .14s}
.baby-games [data-food=fern]{background:#FFE9A8}.baby-games [data-food=berry]{background:#F9CFE0}.baby-games button[data-food]:active{transform:scale(.97)}
@media(max-width:600px){.baby-games button[data-food]{font-size:22px;min-height:56px}}
/* Five moves and Finish form one friendly desktop row, two rows on phones. */
#babyGame.copy-mode{width:min(1080px,calc(100vw - 24px))}
#babyGame.copy-mode .row{grid-template-columns:repeat(6,minmax(0,1fr));justify-content:center}
#babyGame.copy-mode button:last-child{grid-column:auto;min-height:64px;font-size:24px;background:#fff0d3}
#babyGame.copy-mode [data-move=dance]{background:#FFD8BA}
@media(max-width:600px){#babyGame.copy-mode .row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#babyGame.copy-mode button,#babyGame.copy-mode button:last-child{font-size:19px;padding:8px 5px;min-height:56px}}

.food-chooser [data-food=fern]{background:#ffe9a8}.food-chooser [data-food=berry],.food-chooser [data-food=fish]{background:#bfe3ff}.food-chooser [data-food=fruit]{background:#f9cfe0}.food-chooser button[data-food]{display:flex;flex-direction:column;align-items:center;gap:5px}.food-chooser strong{font-size:24px}.food-chooser small{font-size:13px;font-weight:600}@media(max-width:600px){.food-chooser strong{font-size:22px}}
/* Child-friendly controls: pictures lead, labels stay short. */
.kidTop .grp:first-child{display:none!important}.kidTop .grp.r{max-width:none!important;display:flex;gap:7px;justify-content:flex-end;flex-wrap:wrap}.kidTop .pill{min-height:44px;font-size:15px}
#animalBubble{position:fixed;transform:translate(-50%,-100%);z-index:19;background:#fff9ef;color:#1f2d4a;padding:12px;border-radius:24px;box-shadow:0 5px 22px #172e2533;min-width:286px;text-align:center;pointer-events:auto}#animalBubble strong{display:block;font-size:16px;margin-bottom:8px}#animalBubble:after{content:'';position:absolute;bottom:-9px;left:calc(50% - 9px);border:10px solid transparent;border-top-color:#fff9ef;border-bottom:0}.kidActions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.kidActions button{min-height:72px;padding:7px 4px;border:0;border-radius:18px;background:#ffe9a8;color:#1f2d4a;font-weight:700;display:flex;flex-direction:column;align-items:center;gap:3px}.kidActions button:nth-child(2){background:#bfe3ff}.kidActions button:nth-child(3){background:#f9cfe0}.kidActions .kidIcon{font-size:29px;line-height:1.2}.kidActions .kidWord{font-size:15px;white-space:nowrap}
#kidTargetName{position:fixed;z-index:7;transform:translate(-50%,-100%);font-size:13px;padding:5px 10px;border-radius:15px;background:#fff9eadd;color:#233b36;pointer-events:none}#kidMissions{position:fixed;top:68px;left:12px;z-index:15;background:#fff3c7;color:#24364a;border:1px solid #e3cfa6;border-radius:18px;font-size:15px;font-weight:700;padding:10px 13px;min-height:44px;max-width:80vw}#kidStickerBook{background:#f9cfe0;color:#1f2d4a;min-height:52px;padding:10px 18px;margin:16px 0;border:0;border-radius:18px;font-size:22px;font-weight:700}
#callBaby,#babyList{background:#ffe9a8;color:#1f2d4a;border:0;border-radius:18px;min-height:48px;padding:8px 10px;font-size:16px;font-weight:700}#babyList{background:#dcccf7}#sideControls #mapToggle{display:none}#nestSparkle{position:fixed;z-index:14;transform:translate(-50%,-50%);border:0;border-radius:22px;background:#fff6cce8;padding:10px;font-size:25px;animation:nestGlimmer 2.2s ease-in-out infinite}#kidTapHeart{position:fixed;z-index:120;pointer-events:none;opacity:0;font-size:22px;transform:translate(-50%,0)}#kidTapHeart.on{animation:kidHeart .65s ease-out}.kidBounce{animation:kidBounce .24s ease-out}.kidPanel{text-align:center;background:#fff9ef!important;color:#1f2d4a!important}.kidPanel button{display:block;width:100%;min-height:58px;margin:10px 0;border:1px solid #e8d7bf;border-radius:18px;background:#ffe9a8;color:#1f2d4a;font-size:22px;font-weight:700;padding:10px}.kidPanel button:nth-of-type(3n){background:#bfe3ff}.kidPanel button:nth-of-type(3n + 1){background:#f9cfe0}.kidStickerGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.kidStickerGrid span{font-size:44px;padding:16px;background:#ffe9a8;border-radius:22px}
#kidGuide{position:fixed;inset:0;z-index:100;background:#16382e55;display:grid;place-items:center;padding:14px}.kidGuideCard{width:min(460px,94vw);box-sizing:border-box;background:#fff9ef;color:#1f2d4a;border-radius:30px;padding:28px 18px;text-align:center;box-shadow:0 8px 40px #193b3040}.guidePicture{font-size:70px;min-height:125px;display:grid;place-items:center;background:#bfe3ff;border-radius:24px}.kidGuideCard h2{font-size:25px;margin:20px 0 12px}.kidGuideCard p{letter-spacing:8px;color:#715a8c}.kidGuideActions{display:flex;gap:10px}.kidGuideActions button{flex:1;min-height:60px;border:0;border-radius:18px;background:#ffe9a8;color:#1f2d4a;font-size:20px;font-weight:700}.kidGuideActions button:last-child{background:#f9cfe0}#animalBubble[hidden],#kidTargetName[hidden],#nestSparkle[hidden],#kidGuide[hidden]{display:none!important}
@keyframes kidBounce{50%{transform:scale(.95)}}@keyframes kidHeart{0%{opacity:0;transform:translate(-50%,0) scale(.6)}25%{opacity:1}100%{opacity:0;transform:translate(-50%,-45px) scale(1.1)}}@keyframes nestGlimmer{50%{box-shadow:0 0 22px #ffed9d77}}
body.photograph #kidMissions,body.photograph #callBaby,body.photograph #kidTargetName,body.photograph #animalBubble,body.photograph #nestSparkle{display:none!important}
@media(max-width:600px){#top.kidTop{padding:8px 9px;display:block}#top.kidTop .grp.r{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:5px}#top.kidTop .pill{font-size:13px;padding:6px;min-height:42px;white-space:nowrap}#kidMissions{top:105px;font-size:13px;max-width:90vw;padding:7px 10px}#acts{bottom:194px!important}#sideControls{bottom:14px!important;right:12px!important;gap:7px!important;width:122px}#sideControls button{width:100%;min-height:46px;font-size:14px}#animalBubble{min-width:276px;padding:10px}.kidActions button{min-height:66px}.kidActions .kidWord{font-size:14px}.guidePicture{font-size:58px;min-height:110px}.kidGuideCard h2{font-size:23px}}

#kidSettings,#kidHelp{background:#fff3dc;color:#1f2d4a;border:1px solid #dfcba5;border-radius:20px;min-height:44px;padding:7px 12px;font-size:15px;font-weight:700}.kidTop .pill{background:#fff9ede8;color:#1f2d4a;font-weight:700}#nestSparkle{white-space:nowrap}#sideControls #photoBtn{background:#bfe3ff;color:#1f2d4a;border-radius:18px;font-weight:700;min-height:48px}

.nestDirection{display:inline-block;line-height:1;transition:transform .3s}#nestSparkle{font-size:22px;padding:9px}
