* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #F6F3EC; color: #1C1915;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif; }
.page { max-width: 480px; margin: 0 auto; padding: 56px 20px 32px; }
.top h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.sub { margin: 8px 0 0; color: #8E877A; font-size: 14px; }
.card { margin-top: 20px; background: #FFFCF7; border: 1px solid #E4DDD0; border-radius: 16px; padding: 18px; line-height: 1.6; font-size: 15px; }
code { font-size: 13px; background: #E8E4DC; padding: 1px 6px; border-radius: 6px; }

body { background:#c4e49a; }
main { position:relative; isolation:isolate; width:100vw; height:100vh; height:100dvh; min-height:24rem; max-width:38rem; margin:auto; overflow:hidden; color:#783d16; background:linear-gradient(#92ddf7 0 9%,#c9e471 80%,#b1d853); }
.scene { position:absolute; inset:0; overflow:hidden; display:grid; place-items:center; }
/* Show only the yard between the illustration's baked-in controls. */
.dog { position:absolute; width:108%; height:100%; object-fit:fill; clip-path:inset(15% 3.4% 22.1%); transform-origin:50% 70%; }
.scene::before,.scene::after { content:''; position:absolute; left:0; right:0; height:18%; background:url('images/gen/gptimg_1796035393_look.jpg') center 17.7% / 108% 3200% no-repeat; }
.scene::before { top:0; }
.scene::after { bottom:0; height:23%; background-position:center 77.4%; z-index:-1; }
.growth,#feed,.reply { position:absolute; left:50%; transform:translateX(-50%); border-radius:5rem; }
.growth { top:max(4%,env(safe-area-inset-top)); display:flex; align-items:center; gap:.55rem; width:82%; max-width:25rem; padding:.7rem 1rem; background:#fff3d9; border:.13rem solid #fffaf0; box-shadow:0 .18rem .25rem #8e632d66; }
.growth .mp-icon { color:#ff8a3d; }.growth strong,#score { white-space:nowrap; font-weight:800; }
.track { flex:1; height:.75rem; overflow:hidden; background:#ecdcb8; border-radius:2rem; }.track i { display:block; height:100%; width:0; border-radius:inherit; background:linear-gradient(#ffd757,#ff8a3d); transition:width .2s; }
#feed { bottom:max(7%,env(safe-area-inset-bottom)); display:flex; align-items:center; justify-content:center; gap:.55rem; width:50%; max-width:16rem; min-height:3.3rem; height:9%; background:linear-gradient(#ffbd57,#ff8a3d 65%,#f17914); color:#fff; border:.18rem solid #fff3c0; box-shadow:0 .25rem #ba611e,0 .45rem .6rem #76522355; font:800 1.55rem inherit; font-family:inherit; font-size:1.55rem; font-weight:800; text-shadow:0 .08rem #b95b1c; cursor:pointer; touch-action:manipulation; }
#feed:active { transform:translate(-50%,.15rem); } #feed:focus-visible { outline:.2rem solid #643800; }
.reply { top:18%; padding:.55rem .95rem; width:max-content; max-width:90%; text-align:center; background:#fff8e8; font-weight:700; pointer-events:none; }.reply:empty { visibility:hidden; }
.dog.respond { animation:nuzzle .38s ease-out; } @keyframes nuzzle { 45% { transform:translateY(-.45rem) scale(1.025); } }
@media(prefers-reduced-motion:reduce){ .dog.respond { animation:none; }.track i { transition:none; } }
