@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800;900&display=swap');

:root{--ink:#30452e;--muted:#78816b;--green:#405d32;--lime:#adc96d;--paper:#fffdf3;--orange:#bc7954;font-family:'Noto Sans TC',sans-serif;color:var(--ink);background:#e6eddd;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.65}button:focus-visible,a:focus-visible{outline:3px solid #c28a4d;outline-offset:5px}button{color:inherit}button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}
.game-screen{position:relative;isolation:isolate;min-height:800px;height:100svh;overflow:hidden;background:#e6eddd}.scenery{position:absolute;inset:0;background:url('./assets/pond.svg') center 61%/cover no-repeat;z-index:-3}.sun-glow{position:absolute;width:570px;height:570px;border-radius:50%;background:radial-gradient(circle,#faf7cf88,transparent 70%);left:40%;top:0;pointer-events:none;z-index:-2}
.site-header{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:30px 5%;z-index:10}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-size:24px;letter-spacing:1px;font-weight:800;line-height:1.3}.brand small{display:block;font-size:9px;letter-spacing:2.1px;font-weight:600;margin-top:5px}.header-actions{display:flex;align-items:center;gap:24px}.text-button{border:0;background:none;display:flex;align-items:center;gap:9px;font-size:14px;font-weight:600;padding:10px}.question-icon{border:1.5px solid currentColor;width:20px;height:20px;border-radius:50%;font-size:13px;display:grid;place-items:center}.icon-button{border:1px solid #71836133;border-radius:50%;width:44px;height:44px;display:grid;place-items:center;background:#ffffff40}.icon-button:hover,.text-button:hover{background:#fff8}.icon-button[aria-pressed=true]{background:#ecf2d4}
#playfield{position:absolute;inset:0}.intro-copy{position:absolute;left:8%;top:20%;z-index:2;pointer-events:none}.eyebrow{font-size:13px;letter-spacing:2px;font-weight:600;margin:0 0 21px;display:flex;align-items:center;gap:9px}.eyebrow>span{width:7px;height:7px;background:#8fa55c;transform:rotate(45deg);display:inline-block}.intro-copy h1{font-size:clamp(36px,3.7vw,58px);line-height:1.5;letter-spacing:3px;margin:0;font-weight:800}.intro-copy h1>span{color:#9cb26b}.intro-description{font-size:16px;line-height:1.9;margin:18px 0;color:#6c785f;letter-spacing:1px}.handwritten{display:flex;align-items:center;font-size:13px;color:#839066;transform:rotate(-5deg);margin-top:20px;gap:2px}.handwritten svg{width:65px;height:47px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;transform:rotate(-6deg)}
.meal-card{position:absolute;right:7%;top:23%;width:213px;padding:21px 22px 15px;border:1px solid #7d8f5b2b;border-radius:19px;background:#fcfff06b;backdrop-filter:blur(10px);z-index:3;transform:rotate(2deg);box-shadow:0 3px 0 #54643805}.meal-heading{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:600;white-space:nowrap}.meal-heading #meal-count{margin-left:auto;font-size:13px;color:#7f896e;letter-spacing:1px}.leaf-mark{color:#8ca459;font-size:20px}.meal-pellets{display:flex;gap:11px;margin:19px 0 13px;justify-content:space-between}.meal-pellets i{width:24px;height:24px;border-radius:50%;border:1px dashed #9ba77f;background:#adbc8c18;transition:.4s}.meal-pellets i.eaten{border:0;background:#9ab15d;box-shadow:inset -3px -3px 0 #6c86353d;position:relative}.meal-pellets i.eaten:after{content:'✓';position:absolute;inset:0;text-align:center;font-size:15px;color:#fcfff0;line-height:24px}.meal-card p{font-size:13px;color:#7c866c;margin:0}.best-record{border-top:1px solid #a9b78d40;font-size:12px;color:#93a07c;margin-top:14px;padding-top:10px}
.frog-area{position:absolute;left:50%;top:47%;width:clamp(300px,31vw,450px);aspect-ratio:440/340;transform:translate(-50%,-50%);z-index:4;pointer-events:none}.frog-character{position:absolute;inset:0;transform-origin:50% 86%;animation:breathe 3.6s ease-in-out infinite;filter:drop-shadow(0 10px 1px #52653608)}.frog-character img{width:100%;height:100%;object-fit:contain;user-select:none}.frog-shadow{position:absolute;left:10%;right:10%;height:14%;bottom:4%;border-radius:50%;background:#50653d22;filter:blur(3px)}.frog-mouth{position:absolute;width:21%;height:0;left:39.5%;top:58%;border-radius:40% 40% 50% 50%;background:#4d3828;box-shadow:inset 0 -9px #b2705a;opacity:0;transition:height .14s,opacity .14s;transform:rotate(-1deg)}.frog-character.eating{animation:chomp .7s ease-in-out}.frog-character.eating .frog-mouth{height:19%;opacity:1}.frog-character.full{animation:happy 2.3s ease-in-out infinite}.frog-character.attentive{animation:excited 1s ease-in-out infinite}.frog-bubble{position:absolute;top:-4%;left:50%;transform:translate(-50%,-50%) rotate(-4deg);font-size:15px;font-weight:500;white-space:nowrap;letter-spacing:.4px;background:#fffdf1;padding:12px 19px;border-radius:16px 16px 16px 4px;box-shadow:0 3px 0 #5e704112;z-index:3}.bubble-spark{display:inline-block;margin-left:9px;color:#a9b381;font-size:20px}.frog-name{position:absolute;bottom:-8%;width:100%;text-align:center;font-size:14px;font-weight:600;letter-spacing:2px;color:#536843}.frog-name>span:last-child{font-size:12px;font-weight:400;letter-spacing:1px;color:#7c8a67}.name-heart{color:#9ba96c;font-size:19px;vertical-align:-1px}
.feeding-dock{position:absolute;bottom:70px;left:50%;transform:translateX(-50%);width:590px;border:1px solid #f9fcef;background:#fffef4f5;box-shadow:0 12px 35px #546b3512,0 2px 0 #fff9 inset;border-radius:25px;padding:24px 30px 17px;z-index:7;text-align:center}.dock-heading{display:flex;align-items:center;justify-content:center;gap:10px}.dock-heading h2{font-size:19px;margin:0;font-weight:700;letter-spacing:.6px}.small-spark{color:#a2b56b;font-size:23px}.dock-description{font-size:14px;color:#849075;margin:8px 0 19px}.start-actions{display:flex;gap:12px;justify-content:center}.primary-button,.secondary-button{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:12px;padding:15px 22px;font-size:15px;font-weight:600;letter-spacing:.5px;min-height:51px;transition:transform .18s,box-shadow .18s,background .18s}.primary-button{background:var(--green);border:1px solid var(--green);color:#ffffed;box-shadow:0 4px 0 #293f23}.primary-button:hover{background:#4c6c3b;transform:translateY(-2px);box-shadow:0 6px 0 #293f23}.primary-button:active{transform:translateY(2px);box-shadow:0 2px 0 #293f23}.secondary-button{border:1px solid #cbd2b8;background:#f6f8eb;color:#60714b}.secondary-button:hover{background:#edf1dc}.privacy-note{font-size:12px;color:#949b85;display:flex;justify-content:center;align-items:center;gap:5px;margin:17px 0 0}.privacy-note svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.2}
.scene-footer{position:absolute;left:5%;right:5%;bottom:27px;display:flex;align-items:center;justify-content:space-between;color:#72815e;font-size:12px;letter-spacing:1px;z-index:2;pointer-events:none}.scene-footer>span:first-child{font-size:10px;letter-spacing:2px}.scene-footer>span:last-child{display:flex;align-items:center;gap:12px}.scene-footer svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.2}.float-leaf{position:absolute;width:15px;height:30px;background:#a3b578;border-radius:100% 0 100% 0;opacity:.45;pointer-events:none;animation:drift 8s ease-in-out infinite}.leaf-one{top:36%;left:32%;transform:rotate(30deg)}.leaf-two{top:44%;right:25%;width:9px;height:20px;animation-delay:-4s}.firefly{width:5px;height:5px;border-radius:50%;background:#f8f8bf;box-shadow:0 0 10px #e6eeb5;position:absolute;animation:glow 4s infinite;pointer-events:none}.fly-one{top:27%;left:47%}.fly-two{top:52%;right:17%;animation-delay:-2s}
.live-heading{display:flex;align-items:center;justify-content:space-between;font-size:13px;letter-spacing:.4px;color:#7b8a64;margin-bottom:12px}.subtle-button{font-size:12px;background:none;border:0;text-decoration:underline;text-underline-offset:4px;color:#7b866b;padding:4px 0}.attention-row{display:flex;align-items:center;gap:12px;font-size:13px}.attention-track{height:8px;border-radius:8px;background:#e6ead8;overflow:hidden;flex:1}.attention-track>div{height:100%;width:0;background:#aec56f;border-radius:8px;transition:width .08s linear,background .2s}.attention-row strong{min-width:37px;font-size:12px;font-weight:500;color:#7c8b65;text-align:right}.game-hint{font-size:16px;font-weight:600;min-height:24px;margin:12px 0 5px}.touch-tools{display:flex;align-items:center;justify-content:center;gap:28px}.food-source{touch-action:none;user-select:none;display:flex;align-items:center;gap:13px;background:#f0f2df;border:1px solid #d6ddba;padding:10px 17px;border-radius:13px;font-size:13px;min-height:58px}.food-source:active{background:#e5eac9}.bowl{position:relative;display:block;width:36px;height:23px;border-radius:4px 4px 17px 17px;background:#d0b38e;border:2px solid #8e7558;margin-top:12px;box-shadow:inset 0 -5px #ba946f}.bowl i{position:absolute;top:-12px;width:14px;height:13px;border-radius:6px;background:#ad7850;border:1.5px solid #79583d;transform:rotate(-22deg)}.bowl i:nth-child(1){left:0;top:-8px}.bowl i:nth-child(2){left:10px;top:-15px;transform:rotate(30deg)}.bowl i:nth-child(3){left:20px;top:-8px;transform:rotate(15deg)}.touch-tip{font-size:12px;line-height:1.8;color:#8c947e;text-align:left}.camera-tools{display:flex;gap:15px;justify-content:center;align-items:center;font-size:12px;color:#8a947a;padding-top:11px;padding-bottom:4px}.error-message{font-size:13px;text-align:left;line-height:1.7;background:#f7eada;color:#966541;border-radius:10px;padding:10px 13px;margin:15px 0 0}.success-eyebrow{color:#8c9d5e;font-size:13px;letter-spacing:1px;margin:0 0 8px}#success-panel h2{font-size:23px;margin:0}#success-detail{font-size:14px;color:#8b947a;margin:10px 0 15px}#success-panel .primary-button{margin:auto;min-width:200px;padding:11px 20px}
.food-cursor{position:absolute;width:30px;height:30px;transform:translate(-50%,-50%);z-index:20;pointer-events:none;filter:drop-shadow(0 4px 2px #4d49332e)}.food-crumb{display:block;width:24px;height:27px;border-radius:9px 11px 8px 10px;background:#b08051;border:2px solid #705337;transform:rotate(-25deg);box-shadow:inset 4px 3px #d7ae77,inset -4px -3px #987045}.food-crumb:after{content:'';position:absolute;width:3px;height:3px;top:6px;left:12px;background:#7e5b3a;border-radius:50%;box-shadow:-6px 8px #7e5b3a,5px 10px #d2a875}.food-ring{position:absolute;inset:-12px;border:1px dashed #657f46;border-radius:50%;opacity:.5}.food-cursor.empty .food-crumb{opacity:0}.food-cursor.empty .food-ring{inset:-1px;border-style:solid;background:#fff2}.feed-target{position:absolute;border:2px dashed #d7eaa1;width:130px;height:100px;border-radius:50%;transform:translate(-50%,-50%);z-index:6;pointer-events:none;opacity:0;transition:opacity .3s;box-shadow:0 0 30px #d7ee9d44;background:#deef9c22}.feed-target.visible{opacity:1;animation:targetPulse 1.2s ease-in-out infinite}.feed-target span{position:absolute;top:-32px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:12px;background:#eff6d8;color:#60743b;padding:4px 10px;border-radius:8px}.particle-layer{position:absolute;inset:0;pointer-events:none;z-index:15;overflow:hidden}.particle{position:absolute;font-size:24px;animation:particle 1.1s ease-out forwards;color:#a16648}.particle:nth-child(2n){color:#a8bd65}.reward-text{position:absolute;transform:translate(-50%,-50%);font-size:22px;font-weight:800;color:#597237;text-shadow:0 2px #fff;animation:reward 1.4s ease-out forwards;white-space:nowrap}.camera-preview{position:absolute;right:6%;bottom:120px;width:205px;aspect-ratio:4/3;border:5px solid #fffcef;border-radius:18px;box-shadow:0 5px 25px #314c3125;overflow:hidden;z-index:8;background:#2e3f2e}.camera-preview video{width:100%;height:100%;display:block;object-fit:contain}.camera-preview canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.camera-tag{position:absolute;left:8px;bottom:8px;font-size:11px;padding:4px 8px;background:#243c2bcc;color:#f2f6df;border-radius:6px}.flip-button{position:absolute;right:7px;top:7px;width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:50%;color:#fff;background:#233c2ab3}.flip-button svg{width:20px;height:20px}
dialog{border:1px solid #e9ecd7;border-radius:25px;box-shadow:0 20px 100px #213b2b40;background:#fffdf3;color:var(--ink);max-width:480px;width:calc(100% - 32px);padding:32px;max-height:90svh;overflow:auto}dialog::backdrop{background:#233b3273;backdrop-filter:blur(5px)}dialog .eyebrow{font-size:12px;color:#8d9e65;margin-bottom:12px}dialog h2{font-size:26px;margin:0 0 15px}dialog>p{font-size:14px;line-height:1.8;color:#7a8469}.dialog-close{position:absolute;right:15px;top:12px;background:none;border:0;font-size:28px;color:#8c977b;padding:4px 10px}.help-steps{padding:0;list-style:none;display:grid;gap:19px;margin:23px 0}.help-steps li{display:flex;gap:15px}.help-steps li>span{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:12px;background:#e8eed3;color:#758b43;font-weight:700;transform:rotate(-4deg)}.help-steps strong{font-size:15px}.help-steps p{font-size:13px;line-height:1.8;color:#7d876e;margin:5px 0 0}.help-note{padding:13px 15px;border-radius:12px;background:#f0f2e3;font-size:12px}.help-note+.primary-button{width:100%;margin-top:20px}
@keyframes breathe{0%,100%{transform:scale(1,1)}50%{transform:scale(1.015,.976)}}@keyframes excited{0%,100%{transform:rotate(-1deg) scaleY(1)}50%{transform:rotate(1deg) scaleY(1.025)}}@keyframes chomp{0%{transform:translateY(0) scale(1)}25%{transform:translateY(-35px) scale(.96,1.06)}55%{transform:translateY(0) scale(1.09,.91)}100%{transform:scale(1)}}@keyframes happy{0%,100%{transform:rotate(-2deg) scale(1.05,1)}50%{transform:rotate(2deg) scale(1.06,.98)}}@keyframes drift{0%,100%{translate:0 0;rotate:0deg}50%{translate:15px -25px;rotate:30deg}}@keyframes glow{0%,100%{opacity:.2;translate:0 0}50%{opacity:.8;translate:10px -15px}}@keyframes targetPulse{50%{box-shadow:0 0 40px #d7ee9d88}}@keyframes particle{to{translate:var(--dx) var(--dy);rotate:var(--rot);opacity:0}}@keyframes reward{0%{opacity:0;translate:0 15px}20%{opacity:1}70%{opacity:1}100%{opacity:0;translate:0 -50px}}
@media(min-width:1700px){.frog-area{width:490px}.intro-copy{left:13%}.meal-card{right:13%}.feeding-dock{bottom:9%}}
@media(max-width:1100px) and (min-width:701px){.intro-copy{left:5%;top:20%}.intro-copy h1{font-size:38px}.intro-description{font-size:14px}.meal-card{right:4%;top:21%;width:180px;padding:17px 15px}.frog-area{top:48%;width:330px}.camera-preview{right:3%;bottom:300px;width:155px}.handwritten{font-size:11px}}
@media(max-width:700px){
 .game-screen{min-height:730px;height:100svh}.scenery{background-size:auto 100%;background-position:50% 50%}.site-header{padding:calc(20px + env(safe-area-inset-top)) 23px 14px}.brand{font-size:20px;gap:8px}.brand img{width:36px;height:36px}.brand small{font-size:8px;letter-spacing:1.3px;margin-top:4px}.header-actions{gap:6px}.help-label{display:none}.text-button{padding:9px}.icon-button{width:36px;height:36px}.icon-button svg{width:20px;height:20px}
 .intro-copy{left:25px;top:calc(102px + env(safe-area-inset-top))}.eyebrow{font-size:10px;margin-bottom:10px;letter-spacing:1px}.intro-copy h1{font-size:30px;line-height:1.5;letter-spacing:2px}.intro-description{display:none}.handwritten{display:none}.meal-card{right:24px;top:calc(124px + env(safe-area-inset-top));width:142px;border-radius:14px;padding:11px 12px 10px;transform:rotate(3deg)}.meal-heading{font-size:11px;gap:3px}.meal-heading #meal-count{font-size:10px;letter-spacing:0}.leaf-mark{font-size:14px}.meal-pellets{gap:6px;margin:10px 0 8px}.meal-pellets i{width:17px;height:17px}.meal-pellets i.eaten:after{font-size:11px;line-height:17px}.meal-card p{font-size:10px}.best-record{display:none}
 .frog-area{top:46.5%;width:320px;max-width:87vw}.frog-bubble{font-size:13px;padding:9px 14px;top:2%}.bubble-spark{font-size:16px}.frog-name{font-size:12px;bottom:-5%}.frog-name>span:last-child{font-size:10px}.feeding-dock{width:calc(100% - 32px);max-width:440px;bottom:calc(44px + env(safe-area-inset-bottom));padding:20px 20px 16px;border-radius:22px}.dock-heading{gap:7px}.dock-heading h2{font-size:16px;letter-spacing:0}.small-spark{font-size:20px}.dock-description{font-size:12px;margin:8px 0 16px}.start-actions{gap:9px;flex-direction:column}.primary-button,.secondary-button{font-size:14px;min-height:46px;padding:12px 13px;border-radius:11px}.secondary-button{border:0;background:transparent;min-height:35px;padding:6px 10px;box-shadow:none}.secondary-button svg{width:18px;height:18px}.privacy-note{font-size:10px;margin-top:11px;gap:4px}.privacy-note svg{width:12px;height:12px}
 .scene-footer{bottom:calc(15px + env(safe-area-inset-bottom));justify-content:center}.scene-footer>span:first-child{display:none}.scene-footer>span:last-child{font-size:10px;letter-spacing:1.4px}.scene-footer svg{width:16px;height:16px}.leaf-one{left:13%;top:35%;width:10px;height:20px}.leaf-two{right:9%;top:49%}.fly-one{left:80%;top:30%}
 .playing .frog-area{top:45%}.playing .feeding-dock{padding:18px 19px 15px}.playing .intro-copy h1{font-size:27px}.live-heading{font-size:11px;margin-bottom:10px}.attention-row{font-size:12px;gap:9px}.game-hint{font-size:14px;margin:12px 0 7px}.touch-tools{gap:20px}.food-source{padding:9px 13px;font-size:12px;min-height:56px}.touch-tip{font-size:10px}.camera-tools{font-size:10px;gap:10px;flex-wrap:wrap}.camera-tools .subtle-button{font-size:11px}.camera-preview{right:20px;top:calc(210px + env(safe-area-inset-top));bottom:auto;width:104px;border-width:3px;border-radius:12px}.camera-mode .frog-area{top:49%;width:300px}.camera-tag{left:3px;bottom:3px;padding:2px 4px;font-size:8px}.flip-button{width:26px;height:26px;right:3px;top:3px}.flip-button svg{width:17px;height:17px}#success-panel h2{font-size:20px}#success-detail{font-size:12px}.success-eyebrow{font-size:11px}.error-message{font-size:12px;margin-top:8px}.error-present .intro-copy{opacity:.4}.error-present .frog-area{top:39%;width:260px}
}
@media(max-width:370px){.intro-copy h1{font-size:26px}.meal-card{right:20px;width:132px}.intro-copy{left:22px}.frog-area{width:290px}.dock-heading h2{font-size:14px}.dock-description{font-size:11px}.feeding-dock{padding-left:15px;padding-right:15px}}
@media(max-height:760px) and (min-width:701px){.game-screen{min-height:710px}.site-header{padding-top:20px}.intro-copy{top:18%}.frog-area{top:43%;width:340px}.feeding-dock{bottom:48px;padding-top:18px;padding-bottom:14px}.scene-footer{bottom:17px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}.float-leaf,.firefly{display:none}}

/* Keep the complete play surface within the phone's usable viewport. */
@media(max-width:700px){
 .game-screen{min-height:560px}.meal-heading{font-size:12px}.meal-heading #meal-count{font-size:12px}.meal-card p{font-size:11px}.primary-button,.secondary-button{font-size:16px}.game-hint{font-size:16px}.dock-description{font-size:13px}.privacy-note{font-size:11px}.food-source{font-size:14px}.touch-tip{font-size:12px}.camera-tools{font-size:12px}.live-heading{font-size:12px}.attention-row{font-size:13px}.camera-tag{font-size:10px}.scene-footer>span:last-child{color:#4e6743}
}
@media(max-width:700px) and (max-height:740px){
 .site-header{padding-top:calc(15px + env(safe-area-inset-top))}.intro-copy{top:calc(86px + env(safe-area-inset-top))}.intro-copy h1,.playing .intro-copy h1{font-size:25px;line-height:1.4}.intro-copy .eyebrow{margin-bottom:8px}.meal-card{top:calc(101px + env(safe-area-inset-top));padding-top:8px;padding-bottom:8px}.meal-pellets{margin:8px 0 6px}.frog-area,.playing .frog-area{top:46%;width:270px}.frog-bubble{font-size:12px;padding:8px 12px;top:1%}.frog-name{display:none}.feeding-dock{bottom:calc(32px + env(safe-area-inset-bottom));padding:15px 17px 11px;border-radius:19px}.dock-heading h2{font-size:15px}.dock-description{margin:6px 0 12px;font-size:12px}.start-actions{gap:6px}.primary-button,.secondary-button{font-size:14px;min-height:43px;padding:9px 10px}.secondary-button{min-height:29px;padding:5px}.privacy-note{margin-top:8px;font-size:10px}.playing .feeding-dock{padding:13px 17px 12px}.game-hint{font-size:14px;margin:10px 0 7px}.live-heading{margin-bottom:8px}.food-source{padding:7px 12px;min-height:52px}.scene-footer{bottom:calc(10px + env(safe-area-inset-bottom))}.camera-preview{top:calc(190px + env(safe-area-inset-top));width:90px}.camera-mode .frog-area{top:48%;width:250px}.camera-tools{padding-top:6px}.error-present .intro-copy{display:none}.error-present .frog-area{top:36%;width:230px}
}
@media(max-width:700px) and (max-height:610px){.intro-copy{top:80px}.intro-copy .eyebrow{display:none}.intro-copy h1,.playing .intro-copy h1{font-size:22px}.meal-card{top:85px}.frog-area,.playing .frog-area{top:45%;width:230px}.frog-bubble{top:-1%}.camera-mode .frog-area{top:46%;width:210px}.camera-preview{top:172px}.feeding-dock{bottom:27px}.dock-description{display:none}.dock-heading{margin-bottom:10px}.privacy-note{font-size:9px}.scene-footer{bottom:7px}}

/* A complete bite: open, reach, stick, retract, then gulp. */
.frog-face{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.mouth-opening{transform-origin:220px 211px;transform:scaleY(0);opacity:0}
.swallow-throat{transform-origin:220px 251px;opacity:0}
.happy-eyes{opacity:0}
.frog-character.eating{animation:feed-body 1.45s ease-in-out both}
.frog-character.eating .mouth-opening{animation:feed-mouth 1.45s ease-in-out both}
.frog-character.eating .swallow-throat{animation:feed-swallow 1.45s ease-in-out both}
.frog-character.eating .happy-eyes{animation:feed-eyes 1.45s ease-in-out both}
.feeding-fx{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:17}
.caught-food{position:absolute;width:30px;height:30px;transform:translate(-50%,-50%);pointer-events:none;z-index:18;filter:drop-shadow(0 3px 2px #49352e30)}
.sound-note{font-size:12px;letter-spacing:.4px;color:#8c9977;margin:8px 0 0}
.camera-preview{width:clamp(260px,25vw,360px);right:4%;top:44%;bottom:auto;border-radius:22px;border-width:4px;background:linear-gradient(145deg,#334d3c,#1c3026)}
.camera-title{position:absolute;top:12px;left:14px;font-size:13px;font-weight:600;color:#fffbe8;text-shadow:0 1px 4px #000a;letter-spacing:.8px}
.camera-tag{left:12px;bottom:12px;font-size:13px;padding:6px 10px;background:#1b3528df;border:1px solid #d9e6ba33}
.flip-button{width:40px;height:40px;right:9px;top:9px;box-shadow:0 1px 5px #10221944}
.camera-guide{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;pointer-events:none;opacity:.6;transition:opacity .25s;color:#f2f7d9}
.camera-guide svg{width:66px;height:66px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.camera-guide span{font-size:14px;background:#1e352c88;padding:5px 10px;border-radius:8px}
.camera-preview.hand-found .camera-guide{opacity:0}
.camera-preview.hand-found{border-color:#d4e4ac}
@keyframes feed-body{0%,60%{transform:scale(1)}72%{transform:scale(1.055,.96)}82%{transform:translateY(-5px) scale(.98,1.04)}91%{transform:scale(1.035,.98)}100%{transform:scale(1)}}
@keyframes feed-mouth{0%{opacity:0;transform:scaleY(.02)}9%{opacity:1;transform:scaleY(.65)}18%,64%{opacity:1;transform:scaleY(1)}76%{opacity:1;transform:scaleY(.12)}83%{opacity:1;transform:scaleY(.3)}92%,100%{opacity:0;transform:scaleY(0)}}
@keyframes feed-swallow{0%,69%{opacity:0;transform:scale(.8)}76%{opacity:1;transform:scale(1.14,1.3)}87%{opacity:1;transform:scale(.94,.85)}100%{opacity:0;transform:scale(1)}}
@keyframes feed-eyes{0%,67%{opacity:0}73%,92%{opacity:1}100%{opacity:0}}
@media(min-width:701px) and (max-width:1000px){.camera-mode .frog-area{left:39%;width:300px}.camera-mode .camera-preview{width:250px;right:3%;top:39%}.camera-mode .meal-card{top:17%}.camera-mode .intro-copy{top:16%}.camera-mode .intro-description,.camera-mode .handwritten{display:none}}
@media(max-width:700px){
 .camera-mode .intro-copy{display:none}
 .camera-mode .camera-preview{left:20px;right:20px;top:calc(88px + env(safe-area-inset-top));bottom:auto;width:auto;height:min(31svh,270px);aspect-ratio:auto;border-radius:20px;border-width:3px}
 .camera-mode .frog-area{top:57%;width:min(76vw,300px)}
 .camera-mode .frog-bubble{top:7%;font-size:13px;padding:8px 13px}
 .camera-mode .frog-name{display:none}
 .camera-mode .meal-card{top:calc(43px + min(31svh,270px) + env(safe-area-inset-top));right:31px;width:141px;padding:7px 9px;border-radius:10px;background:#fffcebdc;transform:none;z-index:9}
 .camera-mode .meal-pellets,.camera-mode .meal-card>p,.camera-mode .best-record{display:none}
 .camera-mode .meal-heading{font-size:12px;gap:5px}
 .camera-mode .camera-title{font-size:13px;top:13px;left:13px}
 .camera-mode .camera-tag{left:10px;bottom:10px;font-size:12px;padding:6px 9px;max-width:45%;white-space:nowrap}
 .camera-mode .flip-button{width:40px;height:40px;right:8px;top:8px}
 .camera-mode .flip-button svg{width:23px;height:23px}
 .camera-mode .feeding-dock{padding:15px 18px 12px;bottom:calc(35px + env(safe-area-inset-bottom))}
 .camera-mode .camera-tools{flex-direction:column;gap:7px;font-size:13px;padding-top:5px}
 .camera-mode .camera-tools .subtle-button{font-size:13px}
 .sound-note{font-size:11px;margin-top:6px}
}
@media(max-width:700px) and (max-height:740px){
 .camera-mode .camera-preview{top:calc(76px + env(safe-area-inset-top));height:28svh}
 .camera-mode .meal-card{top:calc(31px + 28svh + env(safe-area-inset-top))}
 .camera-mode .frog-area{top:55.5%;width:250px}
 .camera-mode .frog-bubble{top:7%;font-size:12px;padding:6px 11px}
 .camera-mode .feeding-dock{bottom:calc(29px + env(safe-area-inset-bottom));padding:12px 16px 10px}
 .camera-mode .game-hint{margin:8px 0 4px;font-size:14px}
 .camera-mode .camera-tools{gap:4px;font-size:12px}
 .camera-mode .live-heading{margin-bottom:6px}
 .camera-guide svg{width:52px;height:52px}.camera-guide{gap:8px}.camera-guide span{font-size:13px}
 .sound-note{font-size:10px;margin-top:4px}
}
@media(max-width:700px) and (max-height:610px){
 .camera-mode .camera-preview{top:70px;height:26svh}.camera-mode .meal-card{top:calc(25px + 26svh)}.camera-mode .frog-area{top:53%;width:210px}.camera-mode .frog-bubble{display:none}.camera-mode .feeding-dock{bottom:25px}.camera-mode .camera-tools{flex-direction:row;gap:9px}.camera-mode .camera-tools>span{font-size:11px}.camera-mode .camera-title{font-size:12px}.camera-guide span{font-size:12px}.camera-mode .camera-tag{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.frog-character.eating{animation:none}.frog-character.eating .mouth-opening{animation:none;opacity:1;transform:scaleY(.6)}.frog-character.eating .swallow-throat,.frog-character.eating .happy-eyes{animation:none}}

.closed-eyes,.sleepy-lids{opacity:0;transition:opacity .18s}
.frog-character.sleepy .sleepy-lids,.frog-character.sleeping .closed-eyes{opacity:1}
.frog-character.sleeping{animation:dozing 3.2s ease-in-out infinite}
.sleep-cloud{position:absolute;right:17%;top:15%;font-size:20px;color:#869968;letter-spacing:7px;opacity:0;pointer-events:none;font-weight:700}
.sleep-cloud span{display:inline-block;translate:1px -13px;font-size:27px}
.frog-area.is-sleeping .sleep-cloud{animation:sleep-cloud 2.4s ease-in-out infinite}
.mood-row{display:flex;align-items:center;justify-content:center;gap:12px;min-height:41px}.mood-row .game-hint{flex:1;margin:12px 0 7px}.wake-button{background:#e9efd3;border:1px solid #bbc99b;border-radius:10px;white-space:nowrap;padding:8px 10px;font-size:13px;color:#677f3d;font-weight:600;min-height:36px}.wake-button:hover{background:#dce8b5}
.sleeping-mode .attention-track>div{background:#b9a9d3!important}.sleeping-mode .mood-row .game-hint{font-size:14px;text-align:left}.sleeping-mode .camera-tools>span{display:none}
.success-actions{display:flex;justify-content:center;gap:12px;align-items:center}#success-panel .success-actions .primary-button{min-width:0;margin:0;padding:12px 19px}#success-panel .success-actions .secondary-button{padding:12px 16px;min-height:46px}.victory-share-caption{font-size:12px;color:#939d81;margin:12px 0 0}
.share-dialog{width:calc(100% - 32px);max-width:760px;padding:30px;border-radius:24px}.share-dialog h2{font-size:26px;margin-bottom:22px}.share-layout{display:grid;grid-template-columns:1fr 1.05fr;gap:24px;align-items:center}.share-photo-frame{width:100%;aspect-ratio:4/5;background:#e3ebd2;border-radius:16px;overflow:hidden;box-shadow:0 5px 20px #344c2a15}.share-photo-frame img{width:100%;height:100%;object-fit:contain;display:block;color:#72835b;font-size:14px}.share-controls{min-width:0}.share-status{font-size:14px;line-height:1.7;color:#71825d;margin:0 0 14px}.share-controls>.primary-button{width:100%;font-size:15px;padding:12px 10px}.share-utilities{display:flex;gap:9px;margin-top:13px}.share-utilities .secondary-button{flex:1;min-width:0;padding:10px 7px;font-size:13px;min-height:42px}.share-divider{display:block;text-align:center;font-size:12px;letter-spacing:1px;color:#99a184;margin:19px 0 12px}.social-links{display:flex;gap:10px}.social-link{flex:1;min-width:0;min-height:44px;display:flex;justify-content:center;align-items:center;gap:8px;border-radius:10px;text-decoration:none;font-weight:600;font-size:14px}.social-link.facebook{background:#e9effb;color:#2462b8;border:1px solid #cddbf0}.social-link.threads{background:#e9eae4;color:#303a2e;border:1px solid #d6d9ce}.social-link:hover{filter:brightness(.95)}.social-symbol{font-size:21px;font-weight:800;line-height:1}.share-hint{font-size:12px;line-height:1.8;color:#879277;margin:15px 0 0}.share-access-note{font-size:12px;line-height:1.8;color:#9b835f;margin:12px 0 0;padding-top:12px;border-top:1px solid #e7e8d9}
@keyframes dozing{0%,100%{transform:scale(1,.99) rotate(-.5deg)}50%{transform:scale(1.02,.96) rotate(.5deg)}}@keyframes sleep-cloud{0%,100%{opacity:.45;translate:0 0}50%{opacity:1;translate:5px -9px}}
@media(max-width:700px){.mood-row{gap:8px;min-height:38px}.mood-row .game-hint{margin:9px 0 6px}.sleeping-mode .mood-row .game-hint{font-size:13px;line-height:1.6}.wake-button{font-size:12px;min-height:34px;padding:7px 9px}.success-actions{gap:8px}#success-panel .success-actions .primary-button,#success-panel .success-actions .secondary-button{font-size:14px;padding:10px 12px;min-height:43px}.victory-share-caption{font-size:11px;margin-top:10px}.share-dialog{max-width:430px;padding:23px;max-height:94svh}.share-dialog h2{font-size:23px;margin-bottom:15px}.share-dialog .eyebrow{font-size:11px;margin-right:18px}.share-layout{display:flex;flex-direction:column;gap:15px}.share-photo-frame{max-height:32svh;width:auto;height:32svh;min-height:150px;flex-shrink:0}.share-controls{width:100%}.share-status{font-size:13px;margin-bottom:12px}.share-controls>.primary-button{font-size:15px}.share-utilities .secondary-button{background:#f0f3e3;border:1px solid #d0d8bc;font-size:13px;padding:9px 6px}.share-divider{margin:14px 0 10px}.share-hint,.share-access-note{font-size:11px}.share-access-note{margin-top:9px;padding-top:9px}.share-hint{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.frog-character.sleeping,.frog-area.is-sleeping .sleep-cloud{animation:none}.frog-area.is-sleeping .sleep-cloud{opacity:1}}
