:root{font-family:ui-rounded,"Avenir Next",system-ui,sans-serif;color:#163047;background:#eef8f7;font-size:18px}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;font-size:17px;font-weight:750;min-height:48px;padding:11px 16px;border:2px solid #cee4e7;border-radius:16px;background:white;color:#163047;cursor:pointer;transition:transform .16s,background .16s}button:hover{background:#e2f5f2;transform:translateY(-2px)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:4px solid #ea9a15;outline-offset:4px}button:disabled{opacity:.55;cursor:default;transform:none}a{color:#146c81}header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 4vw;background:#12304a;color:white}header a{color:white;text-decoration:none;font-size:16px}header>div{display:flex;gap:8px}.brand{font-size:25px;white-space:nowrap}.brand b{color:#ffcc56}header button{font-size:16px;min-height:44px;padding:8px 11px;border-color:#35506a;background:#1e405e;color:white}header button:hover{background:#345d7d}main{max-width:1420px;margin:auto;padding:24px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.8fr);gap:35px;align-items:center}.play-area{position:relative;aspect-ratio:1103/1426;width:100%;max-height:calc(100svh - 118px);max-width:calc((100svh - 118px)*1103/1426);justify-self:center;border-radius:22px;overflow:hidden;box-shadow:0 14px 44px #193b4b20;background:#bee5ed;border:5px solid white}#scene{display:block;width:100%;height:100%;touch-action:manipulation}.play-area>button{position:absolute;background:transparent;border:0;padding:0;min-width:44px;min-height:44px;border-radius:50%;transform:translate(-50%,-50%)}.play-area>button:hover{background:#fff1;transform:translate(-50%,-50%)}#owl{left:44%;top:39%;width:34%;height:20%}#notebook{left:60%;top:76%;width:28%;height:15%;border-radius:15px}#target{z-index:3;width:10%;height:8%}#target.hint{outline:4px dashed #fff8c5;box-shadow:0 0 0 8px #134e4a88}#target.found{outline:4px solid #ffdc65;box-shadow:0 0 0 8px #13806099}#success{position:absolute;bottom:6%;left:10%;right:10%;background:#0e6b61;color:white;text-align:center;border:3px solid #ffd56b;border-radius:18px;padding:12px;font-weight:850;font-size:22px}#success[hidden]{display:none}#loading{position:absolute;inset:0;display:grid;place-items:center;background:#e8f8fa;z-index:5}#loading[hidden]{display:none}aside{max-width:530px}.eyebrow{font-size:15px;font-weight:850;letter-spacing:.13em;color:#157c7d}h1{font-size:clamp(32px,4.2vw,58px);line-height:1.05;margin:12px 0 20px}#message{background:white;padding:17px 20px;border-radius:18px;border-left:5px solid #f6ba42;min-height:84px;font-size:20px;line-height:1.45;margin-bottom:0}.guide{position:relative;margin:-3px 0 12px;background:linear-gradient(transparent 85%,#c9e7dc 85%);border-radius:18px;text-align:right}#digsy{display:block;width:100%;height:auto;max-height:210px;object-fit:contain;cursor:pointer}.guide>button{position:absolute;right:0;bottom:0;font-size:16px;background:#fff9df;border-color:#efd68e}.actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.primary{background:#ffce61;border-color:#ecc15b;color:#203448}.primary:hover{background:#ffdc8e}.celebrations{margin-top:15px;border:2px solid #bddbd2;border-radius:20px;padding:14px;background:#dff1e9}.celebrations p{margin:0 0 9px;font-weight:800}.celebrations button{margin:3px}.celebrations #again{display:block;width:100%;margin:10px 0 0}.round{font-size:16px;color:#57777c}details{font-size:16px;line-height:1.5;margin-top:24px}summary{cursor:pointer}dialog{max-width:650px;width:calc(100% - 30px);max-height:85svh;overflow:auto;border:0;border-radius:24px;padding:30px;color:#163047;box-shadow:0 20px 70px #0005}dialog::backdrop{background:#0c243bba;backdrop-filter:blur(7px)}dialog p{line-height:1.6;font-size:20px}dialog h2{font-size:30px}.fact{padding:16px;background:#e5f4ef;border-radius:15px;font-weight:750}#close-story{float:right}.star{position:absolute;color:#f9c63d;font-size:30px;pointer-events:none;animation:star-fall 1.5s ease-out forwards;z-index:4}@keyframes star-fall{from{transform:translateY(-50px) rotate(0);opacity:1}to{transform:translateY(200px) rotate(160deg);opacity:0}}.embedded header #back,.embedded header .brand{display:none}.embedded header{justify-content:flex-end}.embedded main{padding:14px}.calm button{transition:none}.calm .star{animation:none}.calm #success{animation:none}@media(max-width:720px){header{padding:9px 12px;flex-wrap:wrap;gap:9px}.brand{font-size:21px}header>div{margin-left:auto}header button{font-size:16px;padding:8px}#fullscreen{display:none}main{padding:14px;display:flex;flex-direction:column;gap:18px}.play-area{max-height:none;max-width:520px;width:100%}aside{width:100%;max-width:520px}h1{font-size:34px;margin:8px 0 15px}h1 br{display:none}#message{font-size:19px}.eyebrow{margin-top:4px}.guide{margin-bottom:18px}#digsy{max-height:185px}.actions button{font-size:17px}.embedded main{padding:10px}.embedded header{padding:8px}.round{margin-bottom:10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.star{animation:none}}

.head-slider{display:block;margin:18px 0;font-size:17px;font-weight:750}.head-slider span{float:right}.head-slider input{display:block;width:100%;min-height:44px;accent-color:#158579;cursor:pointer}
.embedded h1{font-size:clamp(30px,3.1vw,46px)}.embedded #digsy{max-height:155px}.embedded #message{min-height:72px}.embedded details{margin-top:10px}.embedded main{align-items:start}.embedded .head-slider{margin:12px 0}
@media(max-width:720px){.embedded h1{font-size:32px}.embedded #digsy{max-height:180px}}

.guide{text-align:center}.guide>button{position:static;margin:0 8px 8px}.embedded #digsy{max-height:135px}
header button{min-height:48px}.play-area>button{min-width:48px;min-height:48px}

#scene-digsy{position:absolute;bottom:5%;left:0;width:100%;height:29%;object-fit:contain;z-index:2;pointer-events:none}#scene-digsy[hidden]{display:none}#success{bottom:2%;font-size:18px;padding:9px}
#scene-digsy{height:auto;max-height:none}#success{bottom:7%;left:40%;right:5%;font-size:17px}

.scene-column{min-width:0;display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}
.find-instruction{display:flex;align-items:center;gap:14px;background:#fff7d8;border:2px solid #eed289;border-radius:18px;padding:12px 16px;width:100%;max-width:560px}
.find-instruction canvas{width:38px;height:53px;flex:0 0 38px;object-fit:contain}
.find-instruction strong,.find-instruction span{display:block;font-size:18px;line-height:1.35}
.find-instruction span{margin-top:4px;font-weight:650}
#hint-offer{margin-top:8px;font-size:16px;background:white}
#hint-offer[hidden]{display:none}
.scene-column .play-area{max-height:calc(100svh - 220px);max-width:calc((100svh - 220px)*1103/1426)}
#find-intro{text-align:center;max-width:530px;padding:25px}
#find-intro h2{margin:10px 0;font-size:30px;line-height:1.15}
.intro-pictures{display:flex;justify-content:center;align-items:center;gap:22px;margin:12px auto}
.intro-digsy{width:160px;height:160px;flex:0 0 160px;background:url('assets/digsy-atlas-clean.png') no-repeat 100% 100%/300% 200%}
#intro-clue{width:70px;height:98px;object-fit:contain;background:#fff6d8;border-radius:18px;padding:8px;box-sizing:content-box}
#find-intro p{line-height:1.4;margin:12px 0;font-size:20px}
#find-intro .intro-reassurance{font-size:17px;color:#42646a}
#start-find{width:100%;font-size:22px;min-height:60px;margin-top:10px}
@media(max-width:720px){.scene-column .play-area{max-height:none;max-width:520px}.find-instruction{padding:10px 12px;gap:10px}.find-instruction strong,.find-instruction span{font-size:17px}#find-intro{padding:20px}.intro-digsy{width:125px;height:125px;flex-basis:125px}.intro-pictures{gap:12px}#find-intro h2{font-size:27px}}

/* Owl v5: keep the child’s next action beside the picture. */
header{position:sticky;top:0;z-index:10}header #story{background:#ffce61;color:#163047;border-color:#ffce61}
.picture-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;max-width:560px;scroll-margin-top:85px}.picture-controls button{font-size:17px;padding:10px 8px}
#success{z-index:6;left:12%;right:12%;bottom:4%;padding:12px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:20px;box-shadow:0 5px 20px #12304a44}#success strong{line-height:1.2}#again{font-size:19px;min-height:52px;white-space:nowrap}
.scene-column .play-area{max-height:calc(100svh - 285px);max-width:calc((100svh - 285px)*1103/1426)}
@media(max-width:720px){header{gap:5px;padding:7px 10px}header .brand{display:none}header>a{font-size:16px}header>div{gap:5px}header button{font-size:16px;padding:7px 9px}.embedded header{justify-content:center}.scene-column{gap:9px}.scene-column .play-area{max-height:none;max-width:520px}#success{position:fixed;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));font-size:20px;padding:12px;z-index:20}body:has(#success:not([hidden])){padding-bottom:90px}.picture-controls{scroll-margin-top:110px}aside .eyebrow,aside h1{display:none}.actions{grid-template-columns:1fr}.head-slider{margin:12px 0}.round{margin:12px 0}details{margin-top:12px}}
@media(max-width:360px){header>a{font-size:15px}header button{padding:7px;font-size:15px}.picture-controls button{font-size:16px}#success{font-size:18px;gap:8px}#again{font-size:18px}}

/* Owl v6: compact top tools and clear full-owl interaction. */
header, .embedded header{padding:5px 10px;gap:6px;justify-content:flex-end}
header>div{display:flex;gap:6px;align-items:center;margin-left:0}
header #turn{background:#ffce61;color:#163047;border-color:#ecc15b}
header #story{background:white;color:#163047;border-color:#cee4e7}
header button{min-height:48px;padding:7px 12px;font-size:16px}
main,.embedded main{padding:8px 14px;gap:24px;align-items:start}
.scene-column{gap:7px}
.find-instruction.picture-controls{display:flex;align-items:center;gap:10px;padding:8px 12px;margin:0;scroll-margin-top:65px;max-width:560px}
.find-instruction canvas{width:30px;height:42px;flex-basis:30px}
.find-instruction strong,.find-instruction span{font-size:17px;line-height:1.25}
.find-instruction span{margin-top:4px}.owl-tap-tip{color:#17656b}
#hint-offer{padding:3px 9px;margin:5px 0 0;min-height:44px;font-size:16px}
#owl{left:41%;top:52%;width:50%;height:48%;z-index:1;clip-path:polygon(28% 0,68% 0,93% 17%,90% 42%,64% 75%,45% 99%,23% 91%,4% 73%,0 48%,12% 29%);cursor:pointer}
#owl:hover{background:#fff1}#target{z-index:3}#notebook{z-index:2}
.scene-column .play-area{max-height:calc(100svh - 200px);max-width:calc((100svh - 200px)*1103/1426)}
@media(max-width:720px){header,.embedded header{padding:4px 7px;justify-content:center}header>div{gap:5px;width:100%;justify-content:center}header button{font-size:16px;padding:6px 10px}.embedded main,main{padding:5px 7px;gap:12px}.scene-column{gap:5px}.find-instruction.picture-controls{padding:6px 10px;scroll-margin-top:60px}.scene-column .play-area{max-height:none;max-width:520px}.find-instruction strong,.find-instruction span{font-size:16px}header #back{margin-right:auto}.brand{display:none}}
@media(max-width:360px){header button{font-size:16px;padding:6px 8px}.find-instruction.picture-controls{padding:6px 8px;gap:8px}}

/* v10 approved phone preview: show the full illustration beneath compact controls. */
@media(max-width:720px){.scene-column .play-area{max-height:calc(100svh - 144px);max-width:calc((100svh - 144px)*1103/1426)}header{position:static}.find-instruction.picture-controls{padding:5px 8px}.find-instruction canvas{height:40px;width:29px;flex-basis:29px}.find-instruction strong,.find-instruction span{line-height:1.15}aside{margin-top:10px}}

#success{flex-wrap:wrap}#hear-cheer{font-size:16px;min-height:48px;background:white}#success strong{flex:1 1 100%;text-align:center}@media(max-width:720px){#success{gap:6px;padding:8px}#success strong{font-size:18px}#hear-cheer,#again{font-size:16px;min-height:48px;padding:8px}}
