@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@700;800&display=swap');

:root { --ink:#273a59; --blue:#50a9ec; --yellow:#ffc743; --cream:#fff9ed; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; color:var(--ink); font-family:'Nunito',sans-serif; background:linear-gradient(145deg,#bde8ff 0%,#e9f8ff 45%,#fff6d8 100%); }
.game-shell { width:min(100%,1060px); padding:22px 18px 28px; margin:auto; }
header { display:flex; justify-content:space-between; align-items:center; margin:0 5px 14px; }
.brand { font:800 clamp(21px,4vw,34px)/1 'Baloo 2',sans-serif; letter-spacing:.5px; color:#265487; text-shadow:0 2px #fff; }
.brand span { color:#ffbd23; }
.progress { background:#fff; border:3px solid #d5eafb; border-radius:999px; padding:8px 16px; box-shadow:0 3px 0 #b9d8eb; font-size:14px; }
.game-card { overflow:hidden; border:6px solid #fff; border-radius:27px; background:#fff; box-shadow:0 13px 0 #aacce0,0 19px 35px #5283a044; }
.dog-area { min-height:100px; display:flex; align-items:center; gap:12px; padding:12px 20px; background:#fff4cf; border-bottom:4px solid #f3db91; }
.dog { font-size:67px; filter:drop-shadow(0 3px 0 #d3a86e); animation:wiggle 2s ease-in-out infinite; }
.speech { position:relative; flex:1; padding:13px 17px; border-radius:17px; background:white; box-shadow:0 3px 0 #e5d6a4; font-size:clamp(16px,2.4vw,20px); }
.speech::before { content:''; position:absolute; left:-10px; top:35px; border-right:12px solid white; border-top:8px solid transparent; border-bottom:8px solid transparent; }
.world { position:relative; isolation:isolate; height:clamp(390px,55vw,520px); overflow:hidden; background:linear-gradient(#72cbf5 0 54%,#8bda71 54% 100%); user-select:none; touch-action:none; }
.world::after { content:''; position:absolute; z-index:-1; inset:54% -50% 0; background:repeating-linear-gradient(105deg,transparent 0 47px,#76ca64 48px 52px,transparent 53px 95px); background-position:var(--landscape-shift, 0) 0; opacity:.42; }
.sun { position:absolute; top:20px; left:5%; font-size:60px; }.cloud { position:absolute; font-size:63px; opacity:.9; }.cloud-one { left:33%; top:25px; }.cloud-two { right:7%; top:66px; font-size:48px; }
.tree { position:absolute; bottom:18%; font-size:clamp(65px,11vw,110px); filter:drop-shadow(2px 5px 0 #5a9a4a); }.tree-one { left:3%; }.tree-two { right:2%; }
.flowers { position:absolute; right:15%; bottom:6%; font-size:32px; letter-spacing:5px; }.path { position:absolute; left:36%; bottom:-80px; width:29%; height:47%; border-radius:50% 50% 0 0; background:#e7bc7d; transform:perspective(250px) rotateX(18deg); opacity:.95; }
.jack { position:absolute; z-index:5; left:48%; top:62%; width:58px; height:70px; transition:left .12s linear,top .12s linear; text-align:center; filter:drop-shadow(1px 4px 1px #467f42); }.jack-head { display:block; font-size:51px; line-height:52px; }.jack-name { display:inline-block; color:white; background:#376bb1; border-radius:6px; padding:1px 4px; font-size:10px; letter-spacing:.5px; }
.object { position:absolute; z-index:4; display:none; width:58px; height:58px; border-radius:50%; background:#fffdf5cc; font-size:38px; line-height:58px; text-align:center; box-shadow:0 3px 0 #5b9950; transition:transform .15s,opacity .2s; }.object.active { display:block; animation:bob 1.1s ease-in-out infinite; }.object.found { animation:found .6s forwards; pointer-events:none; }
.hint { position:absolute; z-index:8; left:50%; bottom:14px; transform:translateX(-50%); width:max-content; max-width:90%; padding:7px 13px; color:#25415a; text-align:center; font-size:12px; background:#ffffffd9; border-radius:12px; box-shadow:0 2px 0 #97bece; }
.controls { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:13px 19px; background:#f2fbff; }.start-button { min-width:180px; border:0; border-radius:14px; padding:13px 18px; color:#654009; background:var(--yellow); box-shadow:0 4px 0 #d59614; cursor:pointer; font:800 18px 'Baloo 2',sans-serif; }.start-button:active { transform:translateY(3px); box-shadow:0 1px 0 #d59614; }.start-button[disabled] { cursor:default; background:#e4e9ec; color:#6f7d87; box-shadow:0 3px 0 #bdc9ce; }
.pad { display:flex; gap:6px; }.pad button { width:43px; height:36px; border:0; border-radius:9px; color:#35688c; background:#fff; box-shadow:0 2px 0 #b9d8eb; font-weight:bold; cursor:pointer; }
.tip { margin:19px 7px 0; text-align:center; color:#41667b; font-size:14px; }
@keyframes wiggle { 50% { transform:rotate(5deg) translateY(-3px); } } @keyframes bob { 50% { translate:0 -9px; } } @keyframes found { 45% { transform:scale(1.6) rotate(12deg); } 100% { transform:scale(0); opacity:0; } }
@media (max-width:550px) { .game-shell { padding:11px 8px; } header { margin-bottom:9px; }.progress { padding:6px 10px; font-size:12px; }.dog-area { padding:8px 11px; }.dog { font-size:49px; }.speech { font-size:15px; padding:10px; }.world { height:440px; }.controls { padding:10px; }.start-button { min-width:151px; font-size:16px; }.cloud-one { left:27%; }.tree { bottom:23%; } }
