/* Phase 3: actions stay large enough for little hands, even on a phone. */
.actions{grid-template-columns:repeat(2,82px);grid-template-rows:repeat(3,62px);gap:7px;align-items:stretch}.actions button,.actions #action{width:100%;min-height:0;font-size:12px;padding:5px;line-height:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.actions button b{font-size:24px;line-height:1}.actions #action{font-size:13px;border-width:3px}.actions #jump{background:#e3effc}.actions #fuss{background:#fce4eb}.actions #paw{background:#f7e8cf}#camera{pointer-events:auto;background:#fffbeded;border:2px solid white;box-shadow:0 3px 0 #40554240;border-radius:15px;padding:5px 9px;min-width:58px;height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:22px;font-weight:850;line-height:1.1}#camera small{font-size:10px;white-space:nowrap}#camera.active{background:#ffe09d}#camLabel{position:absolute;top:63px;left:50%;transform:translateX(-50%);pointer-events:none;background:#304639d6;color:white;font-weight:900;font-size:12px;letter-spacing:1.5px;border-radius:20px;padding:6px 12px}#earOverlay{position:absolute;bottom:-12px;left:50%;transform:translateX(-50%);width:min(50vw,280px);height:112px;pointer-events:none;opacity:.96;filter:drop-shadow(0 -3px 4px #30403925)}#earOverlay svg{display:block;width:100%;height:100%}.ear{fill:var(--ear-color,#e8a04d);stroke:#53413435;stroke-width:3}.innerEar{fill:#d89a9d;opacity:.8}body.ear-mode .tip{display:none}.sleepCam{position:absolute;inset:0;z-index:5;pointer-events:none;background:linear-gradient(0deg,#27392f70,transparent 40%)}.sleepCard{pointer-events:auto;position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(420px,calc(100% - 24px));background:#fffbeded;border:3px solid white;border-radius:25px;padding:13px;text-align:center;box-shadow:0 5px 24px #3c4b3940}.sleepCard h2{margin:5px;font-size:25px}.sleepCard p{font-weight:700;font-size:14px;margin:6px 0 12px}.sleepBadge{font-size:12px;font-weight:950;color:#8d72af;letter-spacing:1.5px}.dreams{position:absolute;top:18%;left:50%;font-weight:1000;font-size:42px;color:#f8eaff;letter-spacing:7px;text-shadow:0 3px 7px #5b416a70;animation:calmDream 3.6s alternate infinite;transform:rotate(-10deg)}@keyframes calmDream{0%{opacity:.3;translate:0 7px}100%{opacity:1;translate:0 -13px}}body.sleep-mode #hud,body.sleep-mode #controls,body.sleep-mode #hint,body.sleep-mode #toast,body.sleep-mode .tip,body.sleep-mode #camLabel,body.sleep-mode #earOverlay{visibility:hidden}
@media(max-width:650px){.actions{grid-template-columns:repeat(2,69px);grid-template-rows:repeat(3,54px);gap:5px}.actions button b{font-size:22px}.actions #action{font-size:12px}#camera{width:49px;min-width:49px;height:51px;font-size:19px;padding:4px}#camera small{font-size:9px}#map{width:48px;height:51px}#pause{padding:9px 11px}#hud{gap:4px;left:8px;right:8px}.right{gap:4px}.brand{font-size:10px;letter-spacing:.7px}.pill{padding:7px 9px}#camLabel{top:144px}#earOverlay{height:85px;width:48vw}}
@media(max-height:520px){.actions{grid-template-columns:repeat(2,64px);grid-template-rows:repeat(3,44px);gap:4px}.actions button b{font-size:20px}.actions button{font-size:10px}#camLabel{top:48px}#earOverlay{height:64px}.sleepCard{width:min(370px,48vw);bottom:7px;left:76%;padding:8px}.sleepCard h2{font-size:19px}.sleepCard p{margin:3px;font-size:11px}.sleepCard .primary{font-size:14px;padding:6px}.dreams{font-size:30px;left:44%;top:9%}}
