:root{color-scheme:light;font:16px/1.45 system-ui,sans-serif;color:#31473e;background:#f1f1e7;--ink:#31473e;--accent:#487c68;--paper:#fffdf4}*{box-sizing:border-box}body{margin:0}main{max-width:980px;margin:auto;padding:clamp(8px,2vw,24px)}header{display:flex;gap:8px;align-items:center;justify-content:space-between}h1{font-size:clamp(1.35rem,3.8vw,2.1rem);line-height:1.15;margin:4px 0 8px}button,select{font:inherit;color:inherit;font-weight:650;min-height:44px;background:var(--paper);border:1px solid #879d91;border-radius:12px;padding:8px 12px;cursor:pointer}button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #175d82;outline-offset:2px}button:disabled{opacity:.55;cursor:default}button.primary{background:#dcebc5;border-color:#587b5d}button[aria-pressed=true]{background:#e8dcb5;border-color:#997b4f}.tools,.controls{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:8px 0}.tools select{min-width:0;max-width:100%;flex:1 1 125px}.tools button{flex:0 1 auto}.controls button{flex:1 1 90px}.guide{display:flex;align-items:center;gap:10px;background:var(--paper);border:1px solid #becbb8;border-radius:14px;padding:6px 12px;margin:6px 0;min-height:66px}.guide svg{width:58px;height:58px;flex:none}.guide p{margin:0;font-weight:650}.guide small{display:block;color:#4f6257}.scene{position:relative;isolation:isolate;border:2px solid #729284;border-radius:18px;overflow:hidden;aspect-ratio:8/5;background:#e1e9d8;box-shadow:0 4px 0 #c2cec0}.backdrop,.objects{position:absolute;inset:0}.backdrop>svg{width:100%;height:100%;display:block}.objects{pointer-events:none}.prop{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:clamp(44px,11%,96px);height:clamp(44px,18%,96px);padding:0;border:1px solid transparent;border-radius:15px;background:transparent;pointer-events:auto;touch-action:manipulation;filter:drop-shadow(0 2px 2px #344c3935);display:grid;place-items:center}.prop svg{width:100%;height:100%;pointer-events:none;overflow:visible}.prop:focus-visible{outline-offset:0;background:#fff8}.prop.found{opacity:.78;outline:2px solid #2e7158;background:#fff7d050}.prop.found::after{content:'✓';position:absolute;right:0;top:0;background:#255d45;color:#fff;font-weight:800;border-radius:50%;width:21px;height:21px;line-height:21px;text-align:center}.prop.hint{outline:3px dashed #7b471e;background:#fff6c780}.prop.retry{outline:2px dashed #9b6b46}.scene.paused .objects{visibility:hidden}.scene.paused::after{content:'Ⅱ';position:absolute;inset:0;display:grid;place-items:center;background:#28473a88;color:white;font-size:4rem}.scene[data-book] .prop{width:clamp(48px,15%,124px);height:clamp(48px,23%,124px)}.scene[data-book] .prop.visited{background:radial-gradient(ellipse,#fff5bcad,transparent 70%)}.scene[data-book] .prop[data-key=lantern].visited{background:radial-gradient(circle,#fff6a8b0,#ffce5970 48%,transparent 72%)}.scene[data-book] .prop[data-key=flower].visited svg{scale:1.16}.scene[data-book] .prop[data-key=boat].visited svg{transform:translateX(12%)}.scene[data-book] .prop[data-key=basket].visited::after{content:'✓';position:absolute;right:0;top:0;background:#356a4b;color:white;border-radius:50%;width:23px;text-align:center}.scene[data-book] .prop[data-key=sun].visited,.scene[data-book] .prop[data-key=moon].visited,.scene[data-book] .prop[data-key=star].visited{filter:drop-shadow(0 0 10px #fff2a1)}.prop.play svg{animation:hop .65s ease-in-out}.prop[data-key=boat].play svg,.prop[data-key=fish].play svg{animation:swim .65s ease-in-out}.prop[data-key=bird].play svg{animation:fly .65s ease-in-out}.prop[data-key=flower].play svg{animation:bloom .65s ease-in-out}.prop[data-key=lantern].play svg,.prop[data-key=star].play svg{animation:glow .65s ease-in-out}@keyframes hop{50%{transform:translateY(-13%) rotate(-7deg)}}@keyframes swim{50%{transform:translate(9%,-10%) rotate(9deg)}}@keyframes fly{50%{transform:translate(8%,-25%) rotate(-9deg)}}@keyframes bloom{50%{transform:scale(1.2) rotate(7deg)}}@keyframes glow{50%{filter:drop-shadow(0 0 12px #fff5a8)}}.kpg-rewards-still .prop.play svg{animation:none}.progress{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0;align-items:center}.progress svg{width:30px;height:30px}.progress .check{opacity:.45}.progress .check.done{opacity:1;background:#e0eac9;border-radius:50%;outline:1px solid #668367}.result{padding:10px;background:var(--paper);border:1px solid #aebda8;border-radius:14px;margin:8px 0}.result[hidden],button[hidden],div[hidden]{display:none!important}details{margin-top:8px;background:#fffdf6;border-radius:12px;padding:0 12px;border:1px solid #c1ccbc}summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:650}dialog{border:1px solid #688879;border-radius:16px;max-width:min(360px,92vw);color:var(--ink);background:var(--paper)}dialog::backdrop{background:#203b3d77}.page-nav{display:flex;align-items:center;justify-content:center;gap:6px}.page-nav button{flex:1}.page-nav span{font-weight:700;white-space:nowrap}html[data-world=interaktives-bilderbuch]{background:#eee9ef;--accent:#786d93;--paper:#fffaf6}html[data-world=interaktives-bilderbuch] .scene{border-color:#8b7b91}@media(max-width:500px){.scene{aspect-ratio:1.45}.guide{min-height:58px;padding:4px 8px}.guide svg{width:48px;height:48px}.tools{margin:5px 0}button,select{padding:6px 9px}.progress svg{width:25px;height:25px}}@media(orientation:landscape) and (max-height:500px){main{max-width:630px}.scene{aspect-ratio:2.1}.guide{min-height:50px}.guide svg{width:42px;height:42px}}@media(prefers-reduced-motion:reduce){.prop.play svg{animation:none}}
[hidden]{display:none!important}
@media(max-width:500px){html[data-world=wimmelbild-suche] .tools select{flex:1 1 calc(50% - 6px)}html[data-world=wimmelbild-suche] .tools button{flex:1 1 calc(50% - 6px)}}

/* Maintain separate 44px targets, including staggered search bands on narrow screens. */
html[data-world=wimmelbild-suche] .scene{min-height:258px}
.scene[data-book] .prop{width:clamp(48px,14%,112px);height:clamp(48px,21%,112px)}
.scene[data-book] .prop[data-key=snail].play svg{animation:crawl .65s ease-in-out}
.scene[data-book] .prop[data-key=acorn].play svg{animation:roll .65s ease-in-out}
.scene[data-book] .prop[data-key=butterfly].play svg{animation:fly .65s ease-in-out}
.scene[data-book] .prop[data-key=watering].play svg{animation:pour .65s ease-in-out}
.scene.watered .prop[data-key=flower] svg{scale:1.16;filter:drop-shadow(0 0 7px #ffe2a1)}
.weather{position:absolute;inset:0;pointer-events:none;opacity:0;background:repeating-linear-gradient(108deg,transparent 0 27px,#f3fbff77 28px 30px,transparent 31px 50px);mask-image:linear-gradient(transparent 8%,#000 34%,#000 65%,transparent 93%)}
.scene.rain .weather{opacity:.42}
@keyframes crawl{50%{transform:translateX(12%) scaleY(.88)}}@keyframes roll{50%{transform:translateX(15%) rotate(35deg)}}@keyframes pour{50%{transform:rotate(-25deg)}}
@media(max-width:500px){html[data-world=wimmelbild-suche] .scene{aspect-ratio:1.25}html[data-world=interaktives-bilderbuch] .scene{min-height:248px}}
@media(prefers-reduced-motion:reduce){.scene[data-book] .prop.play svg{animation:none}}
.kpg-rewards-still .scene[data-book] .prop.play svg{animation:none}
.scene{width:100%;max-width:100%}
@media(max-width:500px){html[data-world=interaktives-bilderbuch] .tools select:not([hidden]){flex:1 1 100%;width:100%}html[data-world=interaktives-bilderbuch] .tools button{flex:1 1 calc(50% - 6px)}html[data-world=interaktives-bilderbuch] .guide{min-height:100px}html[data-world=wimmelbild-suche] .guide{min-height:76px}}

/* Perspective changes artwork, never the interactive hit target. */
html[data-world=wimmelbild-suche] .prop svg{scale:var(--depth-scale,1)}
