:root{color-scheme:light;--bg:#fbf7ef;--ink:#263d34;--muted:#7d877e;--orange:#ea7644;--orange-dark:#cf5b30;--green:#2f6b4e;--border:#e7e4d9;--white:#fffefa;--shadow:0 22px 55px rgba(56,56,34,.08);font-family:ui-rounded,"Trebuchet MS",system-ui,-apple-system,"Segoe UI",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);min-width:320px}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #ebaa59;outline-offset:3px}.app-shell{width:min(1100px,calc(100% - 40px));margin:0 auto}.site-header{height:87px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.brand{font-size:24px;letter-spacing:-1.4px;font-weight:900;text-decoration:none;color:var(--ink);display:inline-flex;align-items:center;gap:9px}.brand-mark{display:grid;place-items:center;background:#ffedd6;border-radius:13px;width:42px;height:42px;font-size:24px;box-shadow:inset 0 -2px 0 rgba(119,81,45,.1)}.brand-period{color:var(--orange)}.header-label{font-size:12px;font-weight:700;color:#9e9e8d;letter-spacing:.025em}.intro{display:flex;justify-content:space-between;align-items:end;gap:16px;padding:43px 0 30px}.eyebrow{display:inline-flex;gap:8px;align-items:center;font-size:11px;letter-spacing:.15em;font-weight:900;color:var(--green)}.eyebrow.small{font-size:10px}.status-dot{width:8px;height:8px;display:inline-block;background:#7aaf62;border-radius:50%;box-shadow:0 0 0 4px #e7f3dc}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(35px,4.8vw,55px);letter-spacing:-2.2px;line-height:1.08;margin:15px 0 12px;font-weight:900}h1 span{color:var(--orange)}.intro p{font-size:14px;line-height:1.65;color:#7b857a;max-width:570px;margin:0}.intro strong{color:#536c58}.mini-stats{display:flex;align-items:center;gap:22px;flex-shrink:0;padding-bottom:5px}.mini-stats>div{display:flex;flex-direction:column;align-items:center;gap:4px}.stat-number{font-weight:900;letter-spacing:-.7px;font-size:27px}.stat-label{font-size:9px;letter-spacing:.12em;font-weight:900;color:#a0a99d}.stat-divider{width:1px;height:40px;background:var(--border)}.game-layout{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(345px,1fr);gap:20px;align-items:start}.scene-card,.play-card{background:var(--white);border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);overflow:hidden}.scene-card-header{padding:22px 23px 18px;display:flex;align-items:center;justify-content:space-between}.difficulty-pill{border-radius:100px;background:#edf3e7;color:#436b4d;padding:9px 13px;font-size:12px;font-weight:900}.scene-card-subtitle{letter-spacing:.14em;font-size:10px;color:#a4aa9f;font-weight:900}.scene{height:340px;position:relative;overflow:hidden;background:linear-gradient(180deg,#dff2f1 0%,#f4f8db 75%,#d5eac5 75%)}.sun{position:absolute;top:31px;right:91px;width:75px;height:75px;border-radius:50%;background:#ffdd8f;box-shadow:0 0 0 13px rgba(255,229,164,.36)}.cloud{position:absolute;width:86px;height:27px;background:#fffdf2;border-radius:50px;opacity:.8;top:64px;left:63px}.cloud:before,.cloud:after{content:"";position:absolute;background:inherit;border-radius:50%}.cloud:before{width:42px;height:40px;left:12px;top:-19px}.cloud:after{width:35px;height:33px;left:40px;top:-12px}.cloud-two{transform:scale(.65);left:54%;top:99px;opacity:.65}.landscape{position:absolute;inset:0;width:100%;height:100%}.fox{position:absolute;bottom:34px;left:5%;width:34%;max-width:198px;z-index:3;transition:left .6s cubic-bezier(.26,.77,.37,1),transform .6s}.fox svg,.chicken svg{width:100%;display:block;filter:drop-shadow(0 7px 1px rgba(35,77,42,.10))}.fox svg{animation:foxBreath 1.9s ease-in-out infinite}.chicken{position:absolute;bottom:40px;right:4%;width:25%;max-width:152px;z-index:4;transition:transform .5s}.chicken svg{animation:chickenBob 2.5s ease-in-out infinite}.coop{position:absolute;bottom:62px;right:6%;width:23%;max-width:127px;z-index:2;opacity:.88}.coop svg{width:100%;display:block}.fox-label,.chicken-label{position:absolute;z-index:5;bottom:14px;font-size:9px;letter-spacing:.1em;font-weight:900;color:#456c51}.fox-label{left:12%}.chicken-label{right:11%}.scene.won .chicken{animation:happy .5s ease-in-out 3}.scene.won .fox{transform:translateX(-22px) rotate(-7deg)}.scene.lost .chicken{transform:translateY(-30px) rotate(-10deg)}.scene.lost .fox svg{animation:foxWin .4s ease-in-out 3}.chase-status{padding:24px 25px 22px}.chase-head{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:800;margin-bottom:13px}.chase-head strong{font-size:12px;color:#9a9e8e}.chase-progress{height:10px;border-radius:30px;background:#f0eee4;overflow:hidden}.chase-progress-fill{height:100%;width:0;background:linear-gradient(90deg,#ebb779,#ea7650);border-radius:inherit;transition:width .6s ease}.step-dots{display:grid;grid-template-columns:repeat(8,1fr);gap:9px;margin-top:12px}.step-dot{height:5px;border-radius:7px;background:#eeeae0;transition:background .3s}.step-dot.active{background:var(--orange)}.scene-note{font-size:12px;color:#979e91;margin:17px 0 0}.play-card{padding:24px 24px 17px}.play-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.play-header h2{font-size:20px;letter-spacing:-.7px;margin:8px 0 0;line-height:1.25}.tries-bubble{white-space:nowrap;border-radius:10px;background:#fff1e9;border:1px solid #ffe0c9;color:#d66a3c;font-size:11px;font-weight:900;padding:9px 10px}.range-card{background:#f4f7ef;border:1px solid #e6eddf;border-radius:16px;text-align:center;margin-top:24px;padding:18px}.range-label{display:block;font-weight:900;color:#8ba088;letter-spacing:.12em;font-size:10px}.range-value{font-weight:900;font-size:36px;letter-spacing:-1.2px;display:flex;justify-content:center;align-items:center;gap:20px;margin-top:4px;font-variant-numeric:tabular-nums}.range-dash{color:#b9c9b2;font-size:26px}.guess-form{margin:22px 0 0}.guess-form label{font-size:13px;font-weight:900;display:block;margin-bottom:10px}.input-row{display:flex;gap:9px}.input-row input{min-width:0;flex:1;width:30%;border:2px solid #e9e9de;background:#fffefa;border-radius:12px;padding:14px 15px;font-size:17px;font-weight:800;color:var(--ink);outline-offset:2px}.input-row input::placeholder{color:#b4b5a7;font-size:13px;font-weight:500}.input-row input:focus{border-color:#9bbc99}.input-row input:disabled{background:#f5f3eb}.input-row button{border:0;background:var(--orange);color:white;border-radius:12px;font-size:14px;font-weight:900;min-width:115px;padding:12px;box-shadow:0 5px 0 var(--orange-dark);transition:transform .15s,box-shadow .15s}.input-row button:hover:not(:disabled){background:#df6b3a}.input-row button:active:not(:disabled){transform:translateY(4px);box-shadow:0 1px 0 var(--orange-dark)}.input-row button:disabled{background:#c6c3b8;box-shadow:none;cursor:default}.feedback{margin-top:19px;padding:12px 13px;border-radius:12px;display:flex;align-items:center;gap:11px;font-size:12px;line-height:1.5;font-weight:700;min-height:56px}.feedback-icon{font-size:18px;flex-shrink:0}.feedback.neutral{background:#f8f6ec;color:#777f71}.feedback.higher{background:#eaf5e8;color:#326b4d}.feedback.lower{background:#fff3e8;color:#ac602f}.feedback.error{background:#fff0e9;color:#aa4e37}.feedback.win{background:#e5f4e5;color:#2d6849}.feedback.lose{background:#fff0e9;color:#a95734}.history-header{display:flex;justify-content:space-between;align-items:center;margin:26px 0 10px}.history-header h3{font-size:13px;margin:0}.history-header span{color:#a3a79b;font-size:12px;font-weight:800}.guess-history{list-style:none;padding:0;margin:0;min-height:82px;max-height:200px;overflow:auto;scrollbar-width:thin}.guess-history li:not(.empty-history){display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px 11px;margin-bottom:6px;border:1px solid #f0eee6;border-radius:9px;background:#fcfaf5}.history-number{font-size:12px;color:#8e998a;font-weight:800}.history-value{font-size:15px;font-weight:900;font-variant-numeric:tabular-nums;margin-right:auto;margin-left:7px}.history-hint{font-size:11px;font-weight:900;color:#6a8970}.history-hint.lower{color:#c8834e}.history-hint.correct{color:#388353}.empty-history{padding:22px 10px;text-align:center;font-size:12px;color:#b0b2a6;background:#fbfaf4;border:1px dashed #eae7da;border-radius:10px}.result-actions{border-top:1px solid #f0eee7;margin-top:15px;padding-top:15px;display:flex;justify-content:center}.restart-btn{background:transparent;border:0;color:#758b73;font-weight:900;font-size:12px;padding:7px 15px;border-radius:9px}.restart-btn:hover{background:#eff4e9;color:#42674a}.how-to{border-bottom:1px solid var(--border);margin:25px 0 22px}.how-to summary{cursor:pointer;display:flex;justify-content:space-between;font-weight:800;color:var(--green);font-size:13px;padding:12px 5px 18px;list-style:none}.how-to summary::-webkit-details-marker{display:none}.how-to[open] summary span{transform:rotate(180deg)}.how-to-content{max-width:780px;color:#738275;line-height:1.7;font-size:13px;padding:0 5px 15px}.how-to-content p{margin:0 0 10px}.site-footer{display:flex;justify-content:space-between;color:#a1a89e;font-size:11px;padding:5px 0 28px}@keyframes foxBreath{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}@keyframes chickenBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes happy{0%,100%{transform:translateY(0)}50%{transform:translateY(-18px)}}@keyframes foxWin{0%,100%{transform:rotate(0)}50%{transform:rotate(-5deg)}}@media (max-width:940px){.intro{padding-top:33px}.game-layout{grid-template-columns:1fr}.scene{height:300px}.fox{width:29%;max-width:205px}.chicken{width:22%;max-width:157px}.coop{width:19%}.play-card{padding:25px}.guess-history{max-height:250px}}@media(max-width:620px){.app-shell{width:min(100% - 28px,520px)}.site-header{height:68px}.brand{font-size:22px}.brand-mark{width:38px;height:38px}.header-label{display:none}.intro{display:block;padding:31px 0 24px}h1{font-size:36px;letter-spacing:-1.6px}.intro p{font-size:13px}.mini-stats{display:none}.game-layout{gap:14px}.scene-card,.play-card{border-radius:17px}.scene-card-header{padding:13px 17px}.scene{height:245px}.sun{width:48px;height:48px;top:26px;right:46px}.cloud{transform:scale(.65);left:5px;top:41px}.cloud-two{left:47%;top:62px;transform:scale(.45)}.fox{width:38%;bottom:23px;left:2%}.chicken{width:31%;bottom:24px;right:0}.coop{width:25%;bottom:37px;right:4%}.fox-label,.chicken-label{font-size:8px;bottom:7px}.fox-label{left:5%}.chicken-label{right:4%}.chase-status{padding:19px}.play-card{padding:19px}.play-header h2{font-size:18px}.range-card{margin-top:17px;padding:14px}.range-value{font-size:33px}.input-row button{min-width:95px}.input-row input{padding:12px}.site-footer{display:block;text-align:center;line-height:1.9}.site-footer span{display:block}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Three-level selector — retains the original colors and visual style. */
.difficulty-selector{margin:-3px 0 22px}
.selector-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:13px}
.selector-heading h2{font-size:18px;letter-spacing:-.55px;line-height:1.2;margin:7px 0 0}
.selector-hint{font-size:11px;color:#989f93;white-space:nowrap;padding-bottom:2px}
.difficulty-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.level-button{display:flex;align-items:center;text-align:left;gap:12px;border:1px solid var(--border);border-radius:15px;background:var(--white);color:var(--ink);padding:13px 13px;box-shadow:0 5px 18px rgba(56,56,34,.035);transition:border-color .18s,background .18s,transform .18s;min-width:0}
.level-button:hover{transform:translateY(-2px);border-color:#bbcfb6}
.level-button.active{background:#eef5e9;border:2px solid #689772;padding:12px}
.level-emoji{font-size:26px;line-height:1}
.level-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.level-copy strong{font-weight:900;font-size:13px}
.level-copy small{font-size:11px;white-space:nowrap;color:#829081}
.level-check{margin-left:auto;color:#44805b;opacity:0;font-weight:900;font-size:15px}
.level-button.active .level-check{opacity:1}
@media(max-width:700px){.selector-heading{display:block}.selector-hint{display:block;margin-top:6px}.difficulty-options{gap:8px}.level-button{padding:11px 9px;gap:6px;flex-direction:column;align-items:center;text-align:center}.level-button.active{padding:10px 8px}.level-copy small{font-size:10px}.level-check{position:absolute;opacity:0!important}.level-emoji{font-size:22px}}
@media(max-width:420px){.level-copy small{font-size:9px}.difficulty-options{gap:6px}.level-button{padding:10px 5px}.level-button.active{padding:9px 4px}}

/* Step 4 adds a compact mode switch without changing the original game layout. */
.mode-selector{margin:0 0 22px}
.mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.mode-button{position:relative;display:flex;align-items:center;gap:13px;text-align:left;border:2px solid #e6e6da;border-radius:15px;background:var(--white);padding:14px 17px;min-width:0;color:var(--ink);transition:border-color .18s,background .18s,transform .18s}
.mode-button:hover{transform:translateY(-2px);border-color:#bbcfb6}
.mode-button.active{border-color:#689772;background:#eef5e9}
.mode-emoji{font-size:26px;line-height:1}
.mode-button span:nth-child(2){display:flex;flex-direction:column;min-width:0;gap:3px}
.mode-button strong{font-size:14px;font-weight:900}
.mode-button small{font-size:11px;color:#829081}
.mode-check{font-weight:900;color:#44805b;margin-left:auto;visibility:hidden}
.mode-button.active .mode-check{visibility:visible}
.mode-note{font-size:12px;color:#7f8d7e;margin:9px 2px 0;line-height:1.5}
.daily-result{background:#edf5e8;border:1px solid #d7e8d0;border-radius:14px;padding:14px;margin-top:18px;display:flex;align-items:flex-start;flex-direction:column;gap:9px}
.daily-result[hidden]{display:none!important}
.daily-result strong{font-size:14px}
.share-btn{border:0;border-radius:10px;padding:11px 14px;background:var(--green);color:white;font-size:12px;font-weight:900}
.share-btn:hover{background:#24563e}
.share-feedback{font-size:11px;color:#54785d;min-height:0}
@media(max-width:620px){.mode-button{padding:12px 9px;gap:8px}.mode-button strong{font-size:12px}.mode-button small{font-size:10px}.mode-emoji{font-size:22px}.mini-stats{gap:10px}.stat-number{font-size:23px}.stat-divider{height:33px}}
@media(max-width:390px){.mode-button small{font-size:9px}.mode-button{gap:6px}.mode-emoji{font-size:20px}}

.manual-share{width:100%;min-height:118px;padding:12px;border:1px solid #b9d4b1;border-radius:9px;background:#fffefa;color:var(--ink);font:12px/1.6 ui-monospace,monospace;resize:vertical}
.manual-share[hidden]{display:none!important}
