@font-face{font-family:SUIT;src:url('./assets/SUIT-Regular.ttf')}@font-face{font-family:SUIT;src:url('./assets/SUIT-SemiBold.ttf');font-weight:600}
:root{font-family:SUIT,'Malgun Gothic',sans-serif;color:#294435;--forest:#234c3d;--paper:#f2f0df;--water:#4c9596;--sun:#e6c46f}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#bfd1c5}button{font:inherit;cursor:pointer;min-height:46px;border:0}button:focus-visible,canvas:focus-visible{outline:3px solid #eec971;outline-offset:4px}button:disabled{cursor:wait;opacity:.65}[hidden]{display:none!important}#forest{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none;outline-offset:-4px}header{position:fixed;left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));top:max(22px,env(safe-area-inset-top));display:flex;justify-content:space-between;align-items:center;gap:12px;pointer-events:none}.brand{background:#f7f5e8ed;padding:12px 20px;border-radius:32px;display:flex;align-items:center;gap:10px;font-weight:600;font-size:20px;box-shadow:0 4px 20px #183c2112}.brand svg{width:25px;height:25px;fill:none;stroke:#66824b;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tools{display:flex;gap:8px;pointer-events:auto}.tools button{border-radius:26px;background:#f7f5e8ed;color:#294435;padding:0 18px;font-size:14px}.tools #pause{font-size:22px;width:46px;padding:0}.sheet{position:fixed;background:#f4f2e8f2;border:1px solid #ffffffb0;box-shadow:0 18px 70px #153b3324;border-radius:24px;padding:32px;max-height:calc(100dvh - 120px);overflow:auto;backdrop-filter:blur(12px);width:min(390px,calc(100% - 32px));left:6vw;top:50%;transform:translateY(-48%)}h1{font-size:clamp(42px,5vw,64px);line-height:1.1;letter-spacing:-.06em;margin:16px 0 24px;font-weight:600}h2{font-size:31px;line-height:1.35;letter-spacing:-.04em;margin:12px 0 18px;font-weight:600}p{line-height:1.7;margin:0 0 24px;font-size:17px}.eyebrow{font-size:14px;color:#55715b}.primary{display:block;width:100%;background:var(--forest);color:#fffef4;border-radius:15px;padding:15px 22px;font-weight:600;font-size:17px}.primary:hover{background:#316451}.secondary{display:block;width:100%;margin-top:9px;background:transparent;color:#526451;border-radius:15px;font-size:15px}.secondary:hover{background:#dfe5d4}.hint{font-size:13px;color:#5d6d5c;margin:19px 0 14px;line-height:1.8}small{font-size:12px;color:#63735e}.location{position:fixed;top:98px;left:30px;width:180px;text-shadow:0 1px 8px #fff;pointer-events:none}.location>span{font-size:17px;font-weight:600}.location small{display:block;color:#3c5546;margin-top:6px}.trail-line{height:3px;background:#edf0dfb0;margin-top:10px;width:120px;border-radius:4px;overflow:hidden}.trail-line i{height:100%;background:#375f47;display:block;width:0}.keyboard-hint{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);font-size:12px;color:#fff;text-shadow:0 1px 8px #213a28;white-space:nowrap;pointer-events:none}#note{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);max-width:min(580px,calc(100% - 350px));text-align:center;background:#f7f5e8e8;border-radius:18px;padding:12px 20px;font-size:15px;line-height:1.5;pointer-events:none;transition:opacity .5s}#note:empty{opacity:0}#pad{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:max(25px,env(safe-area-inset-left));display:grid;grid-template-columns:repeat(3,52px);grid-template-rows:repeat(2,48px);gap:8px;touch-action:none}#pad button{background:#f7f5e8cc;border:1px solid #fff8;border-radius:15px;color:#34513f;font-size:24px;user-select:none;touch-action:none;-webkit-user-select:none}#pad button[data-dir=up]{grid-column:2}#pad button[data-dir=left]{grid-column:1;grid-row:2}#pad button[data-dir=down]{grid-column:2;grid-row:2}#pad button[data-dir=right]{grid-column:3;grid-row:2}#pad button.active{background:#e1bf70;transform:translateY(2px)}.action{position:fixed;right:max(30px,env(safe-area-inset-right));bottom:max(35px,env(safe-area-inset-bottom));padding:16px 24px;border-radius:26px;background:#f7f5e8f0;color:#294435;font-weight:600;box-shadow:0 4px 20px #19352720}.action kbd{font-family:inherit;font-size:11px;border:1px solid #9ca78b;border-radius:5px;padding:2px 5px;margin-left:10px}.rest{top:auto;bottom:30px;left:auto;right:30px;transform:none;width:350px}.rest p{font-size:16px}.pause-sheet,.finish,#error{left:50%;transform:translate(-50%,-50%);text-align:center}body[data-mode=rest] #pad,body[data-mode=paused] #journey,body[data-mode=finished] #pad{visibility:hidden}
@media(max-width:700px){header{left:14px;right:14px;top:14px}.brand{font-size:16px;padding:11px 14px;gap:6px}.brand svg{width:19px}.tools button{padding:0 12px;font-size:12px}.location{top:80px;left:18px}.sheet{padding:25px;left:16px;max-height:calc(100dvh - 105px)}.intro{width:310px}h1{font-size:46px;margin:12px 0 18px}.sheet p{font-size:15px}.hint{font-size:12px!important}.keyboard-hint{display:none}#pad{left:16px;bottom:20px;grid-template-columns:repeat(3,46px);grid-template-rows:repeat(2,46px);gap:8px}#note{bottom:145px;max-width:calc(100% - 32px);width:max-content;font-size:14px;padding:10px 14px}.action{right:16px;bottom:25px;padding:13px 17px;font-size:14px}.action kbd{display:none}.rest{right:16px;left:16px;bottom:22px;width:auto;max-width:390px;top:auto}.pause-sheet,.finish,#error{left:50%}.location>span{font-size:15px}}
@media(max-height:520px){header{top:10px}.sheet{padding:20px;max-height:calc(100dvh - 85px);top:56%}h1{font-size:34px;margin:10px 0}.sheet p{font-size:14px;margin-bottom:14px}.intro small,.intro .hint{font-size:11px;margin:9px 0}.intro{width:300px}#note{bottom:126px}.rest{top:auto;bottom:14px;width:320px;left:auto}.location{top:76px}.keyboard-hint{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.location{width:182px;background:#f7f5e8e8;padding:12px 14px;border-radius:16px;text-shadow:none}.location .trail-line{background:#cad4bf}.rest{display:grid;grid-template-columns:1fr auto;gap:5px 22px;width:min(610px,calc(100% - 32px));max-width:none;left:50%;right:auto;top:auto;bottom:28px;transform:translateX(-50%);padding:20px 24px;border-radius:20px}.rest .eyebrow{display:none}.rest h2{font-size:22px;margin:0;grid-column:1}.rest p{font-size:14px;line-height:1.6;margin:0;grid-column:1}.rest .primary{grid-column:2;grid-row:1 / 3;align-self:center;width:auto;font-size:14px;padding:12px 18px;white-space:nowrap}body[data-mode=rest] .keyboard-hint{display:none}
@media(max-width:700px){.location{padding:10px 12px;width:170px}.rest{bottom:20px;left:50%;right:auto;padding:18px;gap:5px 12px}.rest h2{font-size:19px}.rest p{font-size:13px}.rest .primary{font-size:13px;padding:12px}.rest{max-height:34dvh}}

/* Keep brief guidance off the enlarged backpack and feet. */
#note{top:94px;bottom:auto;max-width:calc(100% - 460px)}
@media(max-width:700px){#note{top:164px;bottom:auto;max-width:calc(100% - 32px)}}
@media(max-height:520px){#note{top:80px;max-width:calc(100% - 420px)}}

/* G07: while resting the journey card is inert anyway; hide it so the top-left card never covers the child's face
   in the leaf (bridge) and valley look-back framings. It returns as soon as walking resumes. */
body[data-mode=rest] #journey{visibility:hidden}

/* Let the summit landscape remain the reward instead of covering it with a dialog. */
.finish{top:auto;bottom:24px;left:50%;transform:translateX(-50%);width:min(580px,calc(100% - 32px));padding:21px 26px;text-align:left;display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
.finish .eyebrow,.finish h2,.finish p{grid-column:1 / -1;margin:0}.finish h2{font-size:27px}.finish h2 br{display:none}.finish p{font-size:14px;line-height:1.5;margin-bottom:6px}.finish .primary,.finish .secondary{font-size:14px;padding:11px 15px;margin:0}.finish .eyebrow{font-size:12px}
@media(max-width:700px){.finish{bottom:16px;padding:18px}.finish h2{font-size:24px}.finish p br{display:none}.finish p{font-size:13px}}

/* Quiet forest overlay; all existing controls retain their touch targets. */
header{left:0;right:0;top:0;padding:0 22px;height:50px;background:#173c35e8;color:#eef2df}
.brand{background:none;box-shadow:none;padding:0;font-size:16px;letter-spacing:.02em}.brand svg{stroke:#c4d5a2;width:21px}
.tools button{background:transparent;color:#eef2df;min-height:44px;font-size:12px}.tools #pause{font-size:20px}
.location{top:70px;background:#f4f1d9c9;border:1px solid #ffffff42;backdrop-filter:blur(8px);border-radius:12px}
#pad button{border-radius:50%;background:#f5f3dfad;backdrop-filter:blur(6px)}
#forest:focus-visible{outline:1px solid #eec97166;outline-offset:-1px}
@media(max-width:700px){header{height:48px;padding:0 14px}.brand{font-size:14px;gap:6px}.tools{gap:0}.tools button{padding:0 10px}.location{top:62px}}
.finish{left:auto;right:24px;top:auto;bottom:24px;transform:none;width:340px;padding:22px;max-height:45dvh;text-align:left}.finish h2{font-size:24px;margin:6px 0 12px}.finish p{font-size:14px;margin-bottom:14px}.finish .primary{font-size:15px;padding:12px}.finish .secondary{min-height:44px}.finish .eyebrow{display:none}@media(max-width:700px){.finish{left:16px;right:16px;bottom:16px;width:auto;max-height:40dvh}.finish h2{font-size:21px}.finish h2 br{display:none}}

/* Compact observation keeps the child and animal visible while retaining the return action. */
@media(min-width:701px){.rest{width:370px;left:auto;right:24px;transform:none;padding:14px 16px;gap:4px 12px}.rest h2{font-size:18px}.rest p{font-size:12px}.rest .primary{padding:12px 14px}}

/* Keep the ground and shoes clear in the four landmark compositions. */
.keyboard-hint{bottom:9px;font-size:11px}.location{width:164px;padding:10px 12px}.location>span{font-size:15px}.location small{font-size:11px}.location .trail-line{margin-top:7px}

body[data-mode=rest] #note{display:none}
/* Summit card up: the location box and (on portrait, where the group-photo row stands above the card) the note give the top-left back to the people. */
body[data-mode=finished] #journey{visibility:hidden}@media(orientation:portrait){body[data-mode=finished] #note{display:none}}
/* 2026-11: readable trail controls, with the landscape kept visible. */
header{background:#173c35f0;box-shadow:0 2px 16px #112e2420}.location{background:#f8f6e9ed;border:1px solid #fff9;box-shadow:0 5px 24px #14372b14}.location>span{font-size:16px}.location small{font-size:12px}.location .trail-line{width:100%;height:4px}
#pad{gap:7px;padding:9px;background:#173c3526;border:1px solid #fff5;border-radius:28px}#pad button{background:#f7f5e8ec;color:#234c3d;box-shadow:0 2px 5px #14372b18}#pad button:hover{background:#fffbea}#pad button.active{background:#e6c46f;box-shadow:inset 0 2px 4px #29443525}
.action{background:#234c3d;color:#fffbea;border:1px solid #fff8;box-shadow:0 5px 20px #14372b30}.action kbd{border-color:#e4edd5a0}.sheet{background:#faf8eef5;border-radius:24px;box-shadow:0 16px 60px #112e2433}.primary{border-radius:14px}.secondary{border:1px solid #cdd8c9}
.trail-line{height:5px;background:none}progress{display:block;width:100%;height:5px;appearance:none;border:0;border-radius:5px;overflow:hidden;background:#ced9c8}progress::-webkit-progress-bar{background:#ced9c8}progress::-webkit-progress-value{background:#4e7353;border-radius:5px}progress::-moz-progress-bar{background:#4e7353}

/* The observation action sits above the thumb pad on narrow screens. */
header{padding-left:max(22px,env(safe-area-inset-left));padding-right:max(22px,env(safe-area-inset-right));padding-top:env(safe-area-inset-top);height:calc(50px + env(safe-area-inset-top))}
#pad{bottom:max(20px,env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left))}.rest,.finish{bottom:max(20px,env(safe-area-inset-bottom))}
@media(max-width:700px){.location{top:calc(62px + env(safe-area-inset-top));left:16px;width:166px}.tools button{padding-inline:10px;min-width:44px}#note{top:calc(166px + env(safe-area-inset-top));font-size:13px}.action{bottom:148px;right:16px;max-width:calc(100% - 32px);font-size:14px;padding:13px 18px}.rest{grid-template-columns:1fr;gap:8px;padding:18px}.rest .primary{grid-column:1;grid-row:auto;width:100%;min-height:46px}.rest p{line-height:1.6}.finish{max-height:48dvh}.intro{max-height:calc(100dvh - 100px)}}
@media(max-height:520px) and (min-width:701px){.location{top:64px}.intro{top:calc(50% + 20px);max-height:calc(100dvh - 70px);padding:20px}.intro h1{font-size:36px}.intro p{margin-bottom:12px}.intro .hint{margin:10px 0}.rest,.finish{right:16px;bottom:14px;max-height:calc(100dvh - 78px)}#note{top:65px;max-width:calc(100% - 420px);font-size:12px;padding:10px}#pad{bottom:14px;grid-template-columns:repeat(3,46px);grid-template-rows:repeat(2,44px)}}

body[data-mode=rest] .location{opacity:.9}.tools button:disabled{opacity:.35;cursor:default}
@media(max-width:360px){header{padding-inline:12px}.brand{font-size:13px}.tools button{font-size:11px;padding-inline:8px}.location{width:156px}.rest h2{font-size:18px}.rest{padding:16px}.finish h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){#pad button.active{transform:none}}
@media(max-width:700px) and (orientation:portrait){.rest{bottom:auto;top:118px;transform:none;max-height:40dvh}}
@media(max-height:520px) and (max-width:900px){.rest{left:auto;right:12px;width:min(320px,52vw)}}
@media(max-height:520px){.intro h1{font-size:32px;margin:8px 0 12px}.intro h1 br{display:none}.rest{max-height:calc(100dvh - 80px)}}

/* Observation choices and personal memories share the forest's existing palette. */
.memory-symbols{position:absolute;width:0;height:0;overflow:hidden}
.rest{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:min(330px,calc(100% - 32px));max-height:calc(100dvh - 85px);padding:16px 18px}
.rest h2{font-size:19px;margin:4px 0 2px}.rest #rest-text{display:block;font-size:12px;line-height:1.5;color:#526451;margin:0}.rest .eyebrow{font-size:12px}.rest .primary{width:100%;font-size:14px;min-height:46px}
#observe-choices,#finish-choices{display:flex;gap:6px;flex-wrap:wrap}#observe-choices:empty,#finish-choices:empty{display:none}#observe-choices button,#finish-choices button{flex:1 1 110px;min-height:44px;padding:8px 10px;border:1px solid #a2b79f;background:#eef1e3;border-radius:12px;color:#234c3d;font-size:13px;font-weight:600}
#finish-choices{grid-column:1/-1}
/* Group-photo camera flash: one short white fade, nothing under reduced motion (app skips the class). */
#flash{position:fixed;inset:0;background:#fff;opacity:0;pointer-events:none}#flash.on{animation:photo-flash .55s ease-out}@keyframes photo-flash{0%{opacity:.85}100%{opacity:0}}
#classroom summary{cursor:pointer;font-size:15px;font-weight:600;color:#294435;padding:8px 0;list-style-position:inside}#classroom[open] summary{margin-bottom:6px}#classroom #teach{margin-top:10px}
#observe-choices button[aria-pressed=true],#finish-choices button[aria-pressed=true]{background:#234c3d;color:#fffbea;border-color:#234c3d}
/* One light question per place (rest card) and the summit feeling (finish card): same chip style as the look toggles, 44 px+ targets, full-width row in the finish grid. */
.ask{display:flex;flex-direction:column;gap:6px;grid-column:1/-1;text-align:left}.ask .ask-prompt{font-size:14px;font-weight:600;color:#456647;margin:0;line-height:1.4}.ask-options{display:flex;gap:6px;flex-wrap:wrap}.ask-options button{flex:1 1 96px;min-height:44px;padding:8px 10px;border:1px solid #a2b79f;background:#eef1e3;border-radius:12px;color:#234c3d;font-size:13px;font-weight:600}.ask-options button[aria-pressed=true]{background:#234c3d;color:#fffbea;border-color:#234c3d}
.intro #plan-note{margin:0 0 14px;font-weight:600;color:#456647}
.rest #observe-feedback{font-size:15px;line-height:1.6;padding-left:12px;border-left:3px solid #88a67d;min-height:48px}.rest #observe-saved{font-size:12px;line-height:1.5;color:#526451;min-height:18px}
.finish{width:min(420px,calc(100% - 32px));max-height:calc(100dvh - 100px);gap:10px}.finish h2{margin:0}.finish>p{margin-bottom:0}
/* G09: portrait tablet (768 wide) — a slightly narrower card bottom-right leaves the left half of the deck for the child, whom the camera now frames on the left third. Buttons keep 44 px+. */
@media(min-width:701px) and (orientation:portrait){.finish{width:min(390px,calc(100% - 32px));padding:20px}.finish p{margin-bottom:4px}}.memory-page{grid-column:1/-1;border-top:1px solid #cad4bf;border-bottom:1px solid #cad4bf;padding:4px 0;text-align:left}
/* Memories fold under a 44 px summary and scroll inside their own box, so the photo / stay / restart buttons stay in view at 1024x768 and 768x1024. */
.memory-page summary{font-size:14px;font-weight:600;color:#456647;min-height:44px;display:flex;align-items:center;cursor:pointer;list-style-position:inside}.memory-page summary:focus-visible{outline:3px solid #eec971;outline-offset:2px;border-radius:8px}.memory-page[open] summary{margin-bottom:6px}
#memories{list-style:none;margin:0;padding:0 4px 8px 0;display:grid;gap:10px;max-height:min(24dvh,190px);overflow:auto}#memories li{display:flex;gap:12px;align-items:center;font-size:14px;line-height:1.5}#memories svg{width:25px;height:25px;flex:none;fill:none;stroke:#557c57;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.finish #memory-empty{font-size:13px;margin:0;color:#526451}
@media(max-width:700px){.rest{left:16px;right:16px;transform:none;width:auto;max-height:47dvh;padding:16px;gap:8px}.rest h2{font-size:19px}.finish{left:16px;right:16px;width:auto;max-height:calc(100dvh - 90px)}#memories{max-height:min(20dvh,150px)}.rest #observe-feedback{font-size:14px;min-height:44px}}
@media(max-height:520px) and (min-width:701px){.rest{width:350px;max-height:calc(100dvh - 78px);padding:14px;gap:7px}.finish{max-height:calc(100dvh - 78px)}}

/* 2026-11-04 full course: classroom entry, teacher lesson panel, follow button, summit photo. Student HUD stays small. */
#look-row{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:13px;color:#55715b}#look-row .secondary{width:auto;margin:0;padding:0 14px;min-height:44px;font-size:13px}#look-row small{font-size:12px}
#classroom{border-top:1px solid #cad4bf;padding-top:12px;margin-top:4px}#classroom h2{font-size:17px;margin:0 0 6px}#classroom .hint{margin:0 0 10px}#classroom .secondary{margin:0 0 8px;min-height:46px}
#join-form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}#join-form label{grid-column:1/-1;font-size:13px;color:#55715b}#join-code{font:inherit;font-size:20px;letter-spacing:.18em;text-transform:uppercase;min-height:46px;padding:0 12px;border:1px solid #a2b79f;border-radius:12px;background:#fff;color:#234c3d;width:100%}#join-code:focus-visible{outline:3px solid #eec971;outline-offset:2px}#join-form .secondary{margin:0;min-width:120px}
#join-note{font-size:13px;color:#8a4b3c;margin:8px 0 0;min-height:18px}#solo-note{margin-top:6px}
.location #room-status,.location #gather-status{margin-top:8px;padding-top:6px;border-top:1px solid #cad4bf;font-weight:600;color:#355545}.location #gather-status{color:#8a5a2b}
.follow{position:fixed;left:50%;transform:translateX(-50%);bottom:max(30px,env(safe-area-inset-bottom));padding:0 20px;min-height:46px;border-radius:24px;background:#f7f5e8f0;color:#234c3d;font-weight:600;border:1px solid #fff8;box-shadow:0 4px 18px #14372b22}.follow[aria-pressed=true]{background:#e6c46f}
.teacher{left:auto;right:16px;top:calc(60px + env(safe-area-inset-top));transform:none;width:min(360px,calc(100% - 32px));max-height:calc(100dvh - 90px);padding:18px}.teacher h2{font-size:18px;margin:0 0 8px}.teacher .hint{margin:0 0 10px}
#lesson-list{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:6px}#lesson-list li{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;font-size:13px;line-height:1.4;padding:6px 8px;border-radius:10px;background:#eef1e3}#lesson-list li.current{background:#dfe9d0;outline:2px solid #88a67d}#lesson-list b{display:block;font-size:13px}#lesson-list small{display:block;color:#526451;font-size:11px}#lesson-list button{min-height:44px;min-width:70px;border-radius:10px;background:#234c3d;color:#fffbea;font-size:12px;font-weight:600;padding:0 10px}#lesson-list button[aria-pressed=true]{background:#e6c46f;color:#294435}
.teacher .secondary{margin:0 0 8px}.tools #lesson{font-weight:600}
.finish #photo{margin:0;border:1px solid #cdd8c9}
body[data-mode=rest] #follow,body[data-mode=finished] #follow{visibility:hidden}
@media(max-width:700px){.follow{bottom:92px;left:auto;right:16px;transform:none;font-size:13px}.teacher{left:16px;right:16px;width:auto;top:calc(56px + env(safe-area-inset-top))}}
@media(max-height:520px){.follow{bottom:16px;left:auto;right:150px;transform:none}}
@media(max-width:480px){header .brand span{display:none}}
/* 2026-11-07 hiking life: header journal button, small pack toolbar (flask + thirst bar, litter), action rows in the rest and
   summit cards, the journal dialog (world frozen while open) and the "today" summary lines. All targets 44 px+. */
.tools #journal-open{display:inline-flex;align-items:center;gap:6px;font-weight:600}.tools #journal-open svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.tools #journal-open.new span::after{content:'';display:inline-block;width:7px;height:7px;margin-left:5px;border-radius:50%;background:#e6c46f;vertical-align:middle}
#pack{position:fixed;right:max(30px,env(safe-area-inset-right));bottom:max(100px,calc(env(safe-area-inset-bottom) + 80px));display:flex;gap:8px}
#pack button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:56px;min-height:56px;padding:6px 10px;border-radius:18px;background:#f7f5e8ec;color:#234c3d;font-size:12px;font-weight:600;border:1px solid #fff8;box-shadow:0 4px 16px #14372b22}
#pack button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#pack button[aria-pressed=true]{background:#e6c46f}#pack #pick{background:#dfe9d0}
#pack .thirst{display:block;width:34px;height:4px;border-radius:3px;background:#cad4bf;overflow:hidden}#pack .thirst b{display:block;height:100%;width:calc(var(--thirst,0) * 100%);background:#4c9596;transition:width .3s}
body:not([data-mode=playing]) #pack{visibility:hidden}
.life-actions{display:flex;flex-direction:column;gap:6px;border-top:1px dashed #cad4bf;padding-top:8px}.life-actions .life-line{font-size:13px;line-height:1.5;color:#456647;margin:0;font-weight:600}.life-buttons{display:flex;gap:6px;flex-wrap:wrap}.life-buttons:empty{display:none}
.life-buttons button{flex:1 1 110px;min-height:44px;padding:8px 10px;border:1px solid #a2b79f;background:#eef1e3;border-radius:12px;color:#234c3d;font-size:13px;font-weight:600}.life-buttons button[disabled]{opacity:.6;cursor:default}.life-buttons button.working{background:#234c3d;color:#fffbea}
#finish-life{grid-column:1/-1}
.life-summary{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:6px}.life-summary li{display:flex;gap:10px;align-items:center;font-size:13px;line-height:1.4;color:#355545}.life-summary svg{width:21px;height:21px;flex:none;fill:none;stroke:#557c57;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.finish #life-summary{border-top:1px dashed #cad4bf;padding-top:6px}
.journal{left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 90px);padding:22px 24px;text-align:left}.journal h2{font-size:24px;margin:0 0 6px}.journal .hint{margin:0 0 12px}
#journal-entries{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:10px}#journal-entries li{display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:center;background:#eef1e3;border-radius:14px;padding:8px}
.journal-art{width:96px;height:96px;border-radius:12px;background-image:url('./assets/animal-journal.webp');background-size:300% 100%;background-repeat:no-repeat;background-color:#dfe6d3}
.journal-art.unseen{filter:grayscale(1) blur(7px) opacity(.35)}#journal-entries h3{font-size:15px;margin:0 0 3px;color:#234c3d}#journal-entries p{font-size:13px;line-height:1.5;margin:0;color:#3e5747}#journal-entries li.unseen h3{color:#6b7d68}
.journal #journal-close{margin-top:12px}body[data-mode=journal] #journey,body[data-mode=journal] #pack,body[data-mode=journal] .rest,body[data-mode=journal] .finish{visibility:hidden}
@media(max-width:700px){#pack{right:16px;bottom:210px;flex-direction:column}#pack button{min-width:52px;min-height:52px}.journal{padding:18px}#journal-entries li{grid-template-columns:72px 1fr}.journal-art{width:72px;height:72px}}
@media(max-height:520px){#pack{bottom:80px;right:16px}.journal{max-height:calc(100dvh - 60px)}#journal-entries li{grid-template-columns:60px 1fr}.journal-art{width:60px;height:60px}}
#reset-view{width:44px;min-width:44px;padding:0;display:grid;place-items:center}#reset-view svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}body:is([data-mode=playing],[data-mode=rest],[data-mode=finished]) #forest{cursor:grab}body #forest.dragging{cursor:grabbing}

/* Keep the food and friends visible while the child is eating; the ordinary observation choices remain available. */
.rest.meal-active :is(#rest-text,#observe-feedback,#observe-saved,#observe-ask),.finish.meal-active :is(#finish-text,#finish-ask,#memory-page){display:none}

/* One meal card, two actions: no observation/photo/restart controls compete while eating. */
.rest.meal-active :is(.eyebrow,#observe-choices,#leave-rest),.finish.meal-active :is(.eyebrow,#finish-choices,#photo,#stay,#again){display:none}
.dining-info{font-size:13px;line-height:1.5;color:#456647;margin:4px 0 10px}
.meal-active .life-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.meal-active .life-buttons button{min-height:48px}
@media(max-width:700px){.rest.meal-active,.finish.meal-active{top:auto;bottom:16px;left:16px;right:16px;width:auto;transform:none;max-height:36dvh}}

/* Optional hands-on exploration keeps the world visible and the two main actions within thumb reach. */
body[data-mode=explore] :is(#journey,#pack,#follow,#note){display:none!important}
#explorer{position:fixed;inset:0;pointer-events:none;z-index:10}
body[data-mode=paused] #explorer,body[data-mode=error] #explorer{visibility:hidden}
.exp-card{pointer-events:auto;position:absolute;right:20px;bottom:20px;width:min(390px,calc(100% - 32px));padding:20px;background:#f7f3e5f5;border:1px solid #fff9;border-radius:22px;box-shadow:0 8px 30px #14372b22}
.exp-card h2{font-size:22px;margin:5px 0 10px}.exp-card p{font-size:14px;line-height:1.65;margin:0 0 12px;color:#48634e}.exp-card label{display:flex;align-items:center;gap:12px;font-size:14px;margin:10px 0}
.exp-card input[type=range]{width:100%;min-height:44px;accent-color:#3d6952}.exp-card select{min-height:44px;max-width:100%;font:inherit;padding:8px;border:1px solid #a2b79f;border-radius:10px;background:#fffdf5;color:#294435}
.exp-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.exp-actions button{border-radius:12px;padding:10px;min-height:48px;background:#234c3d;color:#fffbea;font-weight:600}.exp-actions #exp-close{background:#e8ecdd;color:#294435}
#exp-target{position:fixed;width:70px;height:70px;transform:translate(-50%,-50%);background:transparent;border-radius:50%;pointer-events:auto;border:2px solid transparent}
#exp-target.hinted,#exp-target:focus-visible{border-color:#f4d47d;background:#f4d47d22;outline:2px solid #fff8;outline-offset:4px}
#exp-frame{position:absolute;left:10%;top:12%;width:60%;aspect-ratio:4/3;max-height:65vh;border:2px solid #fffa;border-radius:8px;box-shadow:0 0 0 999px #18372d33}
#exp-review img{display:block;width:100%;max-height:32dvh;object-fit:contain;border:7px solid #fffdf5;box-shadow:0 3px 10px #234c3d22;border-radius:4px}
#exp-album{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-height:42dvh;overflow:auto;padding:4px}.photo-card{padding:5px;background:#fffdf5;border:2px solid transparent;border-radius:9px;color:#294435;text-align:left}.photo-card[aria-pressed=true]{border-color:#557b56}.photo-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain}.photo-card span{display:block;font-size:12px;line-height:1.4;padding:5px 2px}
#explorer[data-kind=album] .exp-card,#explorer[data-stage=review] .exp-card{width:min(560px,calc(100% - 32px));left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);max-height:calc(100dvh - 90px);overflow:auto}
@media(max-width:700px){.exp-card{left:16px;right:16px;bottom:16px;width:auto;padding:16px;max-height:39dvh;overflow:auto}.exp-card h2{font-size:19px}.exp-card p{font-size:13px;line-height:1.5}#exp-frame{left:8%;top:17%;width:84%;max-height:40dvh}.exp-card .eyebrow{display:none}}
@media(max-height:520px) and (min-width:701px){.exp-card{width:330px;padding:12px;bottom:10px;max-height:calc(100dvh - 70px);overflow:auto}#exp-frame{width:45%;top:18%}}
#exp-frame{width:min(60vw,86.66dvh);max-height:none}
#exp-range-label{white-space:nowrap}#exp-range{min-width:0}
@media(max-width:700px){#exp-frame{left:50%;transform:translateX(-50%);width:min(84vw,53.33dvh);max-height:none}}
@media(max-height:520px) and (min-width:701px){#exp-frame{width:min(45vw,86.66dvh)}}

/* Optional reflection stays available without crowding the main activity. */
.ask summary{cursor:pointer;min-height:44px;display:list-item;padding:12px 4px;color:#345b42;font-size:13px;font-weight:600;text-align:left}.ask summary:focus-visible{outline:2px solid #426c50;outline-offset:2px}.ask:not([open]){margin-bottom:8px}#next-experience{font-weight:600;color:#234c3d}

/* Classroom entry retains the forest palette; QR stays plain black on white for scanning. */
#classroom{margin-block:16px}#classroom-heading{font-size:21px}#teacher-entry{margin-block:12px}#join-note:empty{display:none}
#join-note{font-size:14px;line-height:1.5}#intro #start{margin-top:12px}#intro:has(.room-share:not([hidden])){width:min(650px,calc(100% - 32px))}
#intro:has(.room-share:not([hidden])) h1{font-size:32px;margin-block:8px}#intro:has(.room-share:not([hidden])) h1 br{display:none}
.attendance{font-size:16px!important;font-weight:700;color:#234c3d;background:#e4eddb;padding:12px;border-radius:10px;line-height:1.5}
.room-share h3{font-size:19px;margin:16px 0 8px}.share-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;align-items:start}
.share-layout img{display:block;background:white;width:200px;height:200px;border:1px solid #ccd5c7;border-radius:4px}.share-code{display:block;font-size:30px;letter-spacing:.15em;font-variant-numeric:tabular-nums}
.share-layout input,.share-layout select{width:100%;min-width:0;min-height:44px;font:inherit;font-size:13px;padding:8px;border:1px solid #859a80;border-radius:8px;background:white;color:#234c3d}
.share-layout button{margin-top:8px!important}.share-network{display:block;font-size:13px}.share-note{font-size:14px!important;line-height:1.6}.teacher:has(.room-share:not([hidden])){width:min(650px,calc(100% - 32px))}
@media(max-width:550px){.share-layout{grid-template-columns:1fr}.share-layout img{width:200px;height:200px;margin-inline:auto}#join-form{grid-template-columns:1fr}#join-form label{grid-column:auto}#intro:has(.room-share:not([hidden])){padding:20px}.share-code{font-size:28px}}

#intro:has(#classroom:not([hidden])) h1{font-size:38px;margin:10px 0 14px}#intro:has(#classroom:not([hidden])) h1 br{display:none}
#intro:has(#classroom:not([hidden]))>p{font-size:15px;margin-bottom:12px}#intro:has(#classroom:not([hidden])) #plan-note{margin-block:8px;font-size:12px}
#intro:has(.room-share:not([hidden]))>p,#intro:has(.room-share:not([hidden])) #look-row,#intro:has(.room-share:not([hidden])) #join-note,#classroom.joined>h2,#classroom.joined>.hint{display:none}
#intro:has(.room-share:not([hidden])) #classroom{margin:0;padding:0;border:0}
#intro .room-share>.attendance{display:none}#lobby-status{margin-block:8px}.room-share .hint{margin:8px 0;font-size:12px}

.share-layout:has(img[hidden]){grid-template-columns:1fr}

/* Thumb joystick on touch devices; keyboard and optional directional buttons remain available. */
#joystick-wrap,#control-mode{display:none}body.touch-controls:not(.button-controls) #pad{display:none}
body.touch-controls:not(.button-controls) #joystick-wrap{display:flex;flex-direction:column;align-items:center;gap:7px;position:fixed;left:max(18px,env(safe-area-inset-left));bottom:max(70px,calc(env(safe-area-inset-bottom) + 56px));width:144px;user-select:none;-webkit-user-select:none}
#joystick{width:132px;height:132px;position:relative;display:grid;place-items:center;touch-action:none;border:2px solid #f6f4e5dc;border-radius:50%;background:radial-gradient(circle,#ecedd466 30%,#244c4699 75%);box-shadow:0 3px 14px #133d4230,inset 0 0 0 17px #fff2}
#joystick-knob{width:56px;height:56px;min-height:56px;border-radius:50%;background:#f5edc9;border:2px solid #fffdf1;box-shadow:0 3px 8px #14382e55;touch-action:none;padding:0}
#joystick.active #joystick-knob{background:#f0d279}#joystick-hint{font-size:12px;color:#234c3d;background:#f7f5e8eb;padding:4px 8px;border-radius:8px;white-space:nowrap}.stick-north{position:absolute;top:8px;color:#fffdf1;font-size:13px;font-weight:600;pointer-events:none}
body.touch-controls #control-mode{display:block;position:fixed;left:max(18px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));width:144px;min-height:44px;border-radius:24px;color:#234c3d;background:#f7f5e8e8;font-size:13px}
body.touch-controls.button-controls #pad{bottom:max(70px,calc(env(safe-area-inset-bottom) + 56px))}
body:not([data-mode=playing]) #joystick-wrap,body:not([data-mode=playing]) #control-mode{visibility:hidden}
@media(max-height:520px){body.touch-controls:not(.button-controls) #joystick-wrap{bottom:60px;width:126px}#joystick{width:112px;height:112px}#joystick-knob{width:50px;height:50px;min-height:50px}body.touch-controls #control-mode{width:126px;bottom:10px}#joystick-hint{font-size:11px}}

body.touch-controls .keyboard-hint{display:none}

/* Keep departure visible while optional observation content scrolls. */
.rest{overflow:hidden}.rest-content{display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto;overscroll-behavior:contain}.rest #leave-rest{flex-shrink:0}
