@charset "UTF-8";
:root{--bg:#f7f4eb;--paper:#fffcf5;--soft:#eeede2;--ink:#384c41;--muted:#657467;--accent:#52755e;--gold:#c59140;--line:#dedfd0;--coral:#c47663;--radius:20px;--shadow:0 5px 22px #374b3810;color-scheme:light;font-family:system-ui,-apple-system,'PingFang SC','Noto Sans',sans-serif;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit;border:0;background:transparent;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid var(--gold);outline-offset:3px}button,a{touch-action:manipulation}h1,h2,h3,p{margin:0}h1{font-size:clamp(25px,3vw,36px);line-height:1.25;letter-spacing:-.6px}h2{font-size:24px;line-height:1.3}h3{font-size:17px;line-height:1.4}p{line-height:1.65}img{display:block;max-width:100%;user-select:none;-webkit-user-drag:none}[hidden]{display:none!important}small{font-size:12px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);font-weight:650}.stack{display:grid;gap:15px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.pill{font-size:11px;border-radius:30px;padding:6px 12px;background:var(--soft);white-space:nowrap}.primary,.secondary,.danger{min-height:46px;padding:11px 20px;border-radius:13px;font-size:14px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary{background:var(--accent);color:#fff}.primary:hover{filter:brightness(1.07)}.secondary{background:var(--soft);border:1px solid var(--line)}.danger{color:#a23d30;border:1px solid #e0b5a5}.wide{width:100%}.icon-button{min-width:44px;min-height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:14px;background:var(--paper);font-size:23px}.text-button{min-height:44px;font-size:13px;text-decoration:underline;text-underline-offset:4px}.paper{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
#app{max-width:1260px;margin:auto;min-height:100dvh;display:flex;flex-direction:column}.app-header{display:flex;align-items:center;gap:18px;padding:18px 30px;flex-shrink:0}.brand{display:flex;align-items:center;gap:10px;padding:0;text-align:left;min-height:48px}.brand img{width:48px;height:48px;border-radius:15px}.brand b{font-size:20px;font-weight:750;display:block;letter-spacing:-.6px}.brand small{display:block;color:var(--muted);font-size:10px;margin-top:3px;letter-spacing:1px}.wallet{margin-left:auto;display:flex;gap:14px;font-size:13px;font-weight:700}.wallet span{display:flex;gap:5px;align-items:center}.wallet svg{width:18px;height:18px;color:var(--gold)}#main{flex:1;padding:15px 30px 28px;min-height:0}#navigation{position:sticky;bottom:0;z-index:5;display:flex;justify-content:center;gap:45px;padding:10px 20px calc(10px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);flex-shrink:0}#navigation button{min-width:66px;min-height:46px;border-radius:14px;font-size:12px;display:flex;gap:6px;align-items:center;justify-content:center;color:var(--muted)}#navigation button.active{background:#e3eadb;color:var(--accent);font-weight:700}
.page-heading{margin-bottom:24px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.page-heading .eyebrow{margin-bottom:10px}.page-heading p{font-size:13px;margin-top:10px;color:var(--muted)}.home-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:30px;align-items:start}.shop-hero{position:relative;overflow:hidden;height:min(65dvh,600px);background:#dcd8c4}.shop-hero>img{width:100%;height:100%;object-fit:cover;transition:filter .8s;filter:var(--repair-filter)}.shop-caption{position:absolute;left:16px;right:16px;bottom:16px;padding:18px;border-radius:16px;background:#fffcf5ed;backdrop-filter:blur(8px)}.shop-caption p{font-size:12px;color:var(--muted);margin:7px 0 12px}.shop-name{position:absolute;left:50%;top:10%;transform:translateX(-50%);padding:12px 18px;border:4px solid #f7e6b3;border-radius:12px;background:var(--accent);color:white;box-shadow:var(--shadow);font-size:18px;font-weight:750;white-space:nowrap}.repair-preview{display:flex;gap:6px;position:absolute;left:16px;top:16px;max-width:80%;flex-wrap:wrap}.repair-preview span{background:#fffcf5dd;border-radius:8px;padding:5px 8px;font-size:10px}.restoration-list{padding:14px}.repair-row{display:flex;align-items:center;gap:12px;padding:13px 7px;border-bottom:1px solid var(--line)}.repair-row:last-child{border:0}.repair-index{height:35px;width:35px;flex-shrink:0;display:grid;place-items:center;border:1px dashed var(--line);border-radius:50%;font-size:13px;color:var(--muted)}.repair-row.done .repair-index{background:#e6ecdf;color:var(--accent);border:0}.repair-row .primary{margin-left:auto;font-size:11px;min-height:42px;padding:8px 12px}.repair-row h3{font-size:14px}.repair-row small{color:var(--muted);display:block;margin-top:3px;font-size:11px}.home-side>p{font-size:13px;color:var(--muted)}.color-choices{display:flex;gap:10px}.color-choices button{width:44px;height:44px;border:3px solid var(--paper);border-radius:50%;box-shadow:0 0 0 1px var(--line)}.color-choices button.selected{box-shadow:0 0 0 3px var(--gold)}
.chapter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.chapter-card{overflow:hidden;text-align:left;padding:0}.chapter-art{height:215px;overflow:hidden;position:relative}.chapter-art img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.chapter-card:hover .chapter-art img{transform:scale(1.03)}.chapter-card.locked img{filter:grayscale(.75);opacity:.7}.chapter-art .pill{position:absolute;bottom:10px;left:10px;background:var(--paper)}.chapter-copy{padding:17px}.chapter-copy h3{margin:7px 0}.chapter-copy p{font-size:11px;color:var(--muted);min-height:35px}.quest-dots{display:flex;gap:5px;margin-top:15px}.quest-dots span{width:20px;height:5px;border-radius:3px;background:var(--line)}.quest-dots span.done{background:var(--accent)}.mission-list{display:grid;gap:10px;margin-top:24px}.mission-option{display:flex;align-items:center;gap:12px;text-align:left;padding:15px;background:var(--soft);border-radius:14px;min-height:68px}.mission-option .stage-number{width:28px;flex-shrink:0;color:var(--muted);font-size:18px}.mission-option b{display:block;font-size:14px}.mission-option small{font-size:11px;display:block;margin-top:4px}.mission-option .stars{margin-left:auto;font-size:15px}.stars{color:var(--gold);letter-spacing:3px}.hero-thumb{height:170px;width:100%;object-fit:cover;border-radius:16px;margin-bottom:16px}
#app.playing{height:100dvh;min-height:0}#app.playing #navigation{display:none}#app.playing #main{display:flex;flex-direction:column;padding-top:0;padding-bottom:12px}.play-top{display:flex;gap:12px;align-items:center;margin-bottom:10px;flex-shrink:0}.play-top .scene-label{flex:1;min-width:0}.scene-label b{font-size:16px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scene-label small{color:var(--muted);font-size:11px;display:block;margin-top:3px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:22px;min-height:0;flex:1}.scene-panel{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;background:#eee9d9;border-radius:22px;overflow:hidden}.scene-frame{position:relative;height:100%;width:auto;max-width:100%;aspect-ratio:4/5;overflow:hidden;touch-action:manipulation}.scene-frame>img{width:100%;height:100%;object-fit:fill}.scene-loading,.scene-error{position:absolute;inset:0;background:var(--paper);display:grid;place-items:center;font-size:13px;color:var(--muted)}.scene-error{padding:20px;text-align:center}.scene-frame.assist:after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 0 3px var(--accent);pointer-events:none}.hit-outline{position:absolute;border:2px dashed #52755ea0;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}.found-marker{position:absolute;width:24px;height:24px;display:grid;place-items:center;transform:translate(-50%,-50%);background:#52755ed9;color:white;border:2px solid #f9f5df;border-radius:50%;font-size:13px;pointer-events:none}.keepsake{position:absolute;transform:translate(-50%,-50%);min-width:40px;min-height:34px;border:2px solid #7b5c39;border-radius:6px;background:linear-gradient(#b89769 0 24%,#8e6b45 25% 30%,#bda076 31% 100%);box-shadow:0 3px 3px #412d2520;display:flex;align-items:center;justify-content:center;color:#ffebaa}.keepsake svg{width:17px;height:17px;filter:drop-shadow(0 1px 1px #533d20)}.keepsake.unlocked{outline:2px solid #f4db8d;outline-offset:2px}.interaction-note{font-size:11px;color:var(--muted);line-height:1.5}.game-aside{display:flex;flex-direction:column;gap:14px;min-height:0}.mission-note{padding:18px}.mission-note p{font-size:13px;margin-top:7px}.mission-note .eyebrow{font-size:10px}.mission-note small{color:var(--muted);line-height:1.5;display:block;margin-top:8px}.play-progress{display:flex;align-items:center;justify-content:space-between;font-size:13px}.play-progress b{font-size:21px}.progress-track{height:5px;border-radius:6px;background:var(--line);overflow:hidden;margin-top:8px}.progress-track span{display:block;height:100%;background:var(--accent);transition:width .2s}.target-list{display:grid;grid-template-columns:1fr;gap:9px}.target-tile{padding:7px;background:var(--paper);border:1px solid var(--line);border-radius:15px;display:flex;align-items:center;gap:12px;min-height:78px;position:relative}.target-tile img{width:72px;height:62px;object-fit:contain;border-radius:10px}.target-tile b{font-size:13px;font-weight:600;line-height:1.4}.target-tile .riddle{font-size:12px;padding:8px;line-height:1.5}.target-tile .memory-back{width:58px;height:58px;display:grid;place-items:center;font-size:30px;color:var(--muted);background:var(--soft);border-radius:10px}.target-tile.next{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}.target-number{position:absolute;top:3px;left:4px;background:var(--accent);color:white;font-size:9px;min-width:18px;height:18px;display:grid;place-items:center;border-radius:50%}.play-actions{margin-top:auto;display:flex;gap:8px}.play-actions button{flex:1}.hint-flash{position:absolute;width:50px;height:50px;border:3px solid #fff5a4;box-shadow:0 0 0 7px #efc86c70,0 0 22px 12px #fff3aa80;border-radius:50%;transform:translate(-50%,-50%);animation:pulse 1s infinite;pointer-events:none}.pause-cover{position:absolute;inset:0;z-index:3;background:#f8f4eae8;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;gap:18px}.clock{font-variant-numeric:tabular-nums;color:var(--muted);font-size:15px;white-space:nowrap}.clock.urgent{color:#a44837;font-weight:750}.game-instruction{font-size:11px;color:var(--muted);text-align:center;padding-top:8px;min-height:24px}.combo-label{color:var(--gold);font-size:12px;min-height:18px}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.result-grid>div{text-align:center;padding:14px 5px;background:var(--soft);border-radius:13px}.result-grid b{display:block;font-size:22px}.result-grid small{font-size:10px;color:var(--muted)}.reward-card{text-align:center;background:#e8eddf;padding:15px;border-radius:16px;margin:16px 0}.reward-card b{font-size:20px;display:block}.reward-card small{display:block;margin-top:4px;color:var(--muted)}.actions{display:grid;gap:10px;margin-top:20px}.ad-button{min-height:48px;border:1px solid var(--gold);border-radius:13px;color:#7e5f2e;background:#f9f1dc;font-size:13px;padding:10px 16px;display:flex;align-items:center;justify-content:center;gap:8px}.ad-button svg{width:20px}.story-quote{padding:15px 18px;background:var(--soft);border-radius:14px;font-size:13px;line-height:1.8;margin-top:16px}.daily-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.daily-hero{position:relative;overflow:hidden;min-height:400px}.daily-hero img{width:100%;height:100%;position:absolute;object-fit:cover}.daily-hero .shop-caption{bottom:18px}.goal-list{padding:20px;display:grid;gap:14px}.goal{padding:16px;background:var(--soft);border-radius:14px}.goal .primary{min-height:40px;font-size:12px;padding:8px 12px}.goal small{font-size:12px;color:var(--muted)}.album-scene{margin-bottom:28px}.album-scene>h3{margin-bottom:14px}.album-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px}.album-item{padding:10px;background:var(--paper);border:1px solid var(--line);border-radius:14px;text-align:center;min-width:0}.album-item img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:10px}.album-item.locked{background:var(--soft)}.album-item.locked .memory-back{height:80px;display:grid;place-items:center;font-size:34px;color:#a7ad9c}.album-item small{display:block;margin-top:6px;font-size:11px;line-height:1.35}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-section{padding:22px}.settings-section h3{margin-bottom:15px}.setting-row{display:flex;align-items:center;gap:10px;justify-content:space-between;min-height:52px;border-bottom:1px solid var(--line);font-size:13px}.setting-row:last-child{border:0}.setting-row input{width:22px;height:22px;accent-color:var(--accent)}.language-switch{display:flex;gap:6px}.language-switch button{min-height:42px;padding:8px 12px;border-radius:10px}.language-switch .selected{background:#dfe7d7}.settings-section>p{font-size:13px;color:var(--muted)}.settings-section .text-button{display:block;text-align:left}textarea{display:block;width:100%;height:160px;resize:vertical;border:1px solid var(--line);border-radius:12px;background:#fffdf8;color:var(--ink);padding:12px;font-family:ui-monospace,monospace;font-size:11px;user-select:text;-webkit-user-select:text;margin-top:15px}a{color:var(--accent);overflow-wrap:anywhere}.privacy-copy{font-size:13px;line-height:1.8;white-space:pre-line}.settings-note{font-size:12px;color:var(--muted);margin-top:15px;line-height:1.7}
dialog{width:min(500px,calc(100% - 28px));max-height:calc(100dvh - 30px);border:1px solid var(--line);border-radius:26px;background:var(--paper);color:var(--ink);padding:14px 24px 26px;box-shadow:0 20px 100px #20392c33;overscroll-behavior:contain}dialog::backdrop{background:#213d2f60;backdrop-filter:blur(5px)}.dialog-header{display:flex;justify-content:space-between;margin-bottom:8px}.dialog-header .icon-button{width:36px;min-height:36px;border:0;background:var(--soft);font-size:25px}.dialog-symbol{font-size:34px;margin-bottom:14px}.dialog-subtitle{font-size:13px;color:var(--muted);margin-top:10px;line-height:1.7}.dialog-stars{font-size:35px;text-align:center;margin-top:16px;color:var(--gold);letter-spacing:8px}.memory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:20px}.memory-grid .album-item{padding:6px}.memory-grid img{height:60px;aspect-ratio:auto}.memory-grid small{font-size:10px}.badge{font-size:11px;color:var(--accent);display:block;margin-top:8px}#toast{position:fixed;bottom:85px;left:50%;transform:translate(-50%,15px);opacity:0;z-index:20;pointer-events:none;background:#364f40f5;color:white;padding:13px 20px;border-radius:14px;font-size:13px;line-height:1.5;max-width:min(90vw,480px);width:max-content;box-shadow:var(--shadow);transition:opacity .15s,transform .15s}#toast.show{opacity:1;transform:translate(-50%,0)}body.reduced *,body.reduced *:before,body.reduced *:after{animation:none!important;transition:none!important}@keyframes pulse{50%{box-shadow:0 0 0 10px #efc86c30,0 0 28px 15px #fff3aa50}}
@media(max-width:1000px){.chapter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.album-grid{grid-template-columns:repeat(6,1fr)}}
@media(max-width:700px){.app-header{padding:10px 16px;gap:10px}.brand img{width:39px;height:39px;border-radius:12px}.brand b{font-size:17px}.brand small{font-size:8px;letter-spacing:.3px}.wallet{gap:10px;font-size:12px}.wallet svg{width:15px}.app-header>.icon-button{min-width:38px;min-height:40px;font-size:21px}#main{padding:15px 16px 22px}#navigation{gap:0;justify-content:space-around;padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}#navigation button{flex-direction:column;gap:3px;min-width:55px;font-size:10px}#navigation svg{width:20px;height:20px}.page-heading{margin-bottom:20px}.page-heading h1{font-size:28px}.page-heading .eyebrow{font-size:10px}.page-heading p{font-size:12px}.home-grid,.daily-grid,.settings-grid{grid-template-columns:1fr;gap:20px}.shop-hero{height:410px}.home-side .restoration-list{padding:10px}.home-side{gap:13px}.repair-row{padding:11px 5px}.repair-row .primary{font-size:10px}.chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chapter-art{height:180px}.chapter-copy{padding:12px}.chapter-copy h3{font-size:14px}.chapter-copy .eyebrow{font-size:9px}.chapter-copy p{font-size:10px;min-height:34px}.chapter-art .pill{font-size:9px;padding:5px 9px}.album-grid{grid-template-columns:repeat(4,1fr);gap:7px}.album-item{padding:5px}.album-item small{font-size:9px}.album-item.locked .memory-back{height:65px}.settings-section{padding:18px}.daily-hero{min-height:380px}#app.playing .app-header{padding:6px 12px;gap:6px;height:55px}#app.playing .brand img{width:30px;height:30px}#app.playing .brand b{font-size:14px}#app.playing .brand small{display:none}#app.playing .wallet{font-size:11px}#app.playing .app-header>.icon-button{min-height:36px;min-width:36px}#app.playing #main{padding:0 10px 8px}.play-top{margin-bottom:5px;gap:8px;min-height:42px}.play-top .icon-button{min-width:40px;min-height:40px;border-radius:12px}.scene-label b{font-size:13px}.scene-label small{font-size:10px}.clock{font-size:13px}.game-layout{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:8px}.scene-panel{border-radius:16px}.scene-frame{width:auto;height:100%;max-width:100%}.game-aside{display:grid;grid-template-columns:1fr;gap:5px}.mission-note{display:none}.play-progress{font-size:11px}.play-progress b{font-size:14px}.progress-track{height:3px;margin-top:4px}.target-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-height:90px}.target-tile{min-height:88px;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:4px;border-radius:11px}.target-tile img{height:51px;width:74px}.target-tile b{font-size:10px;text-align:center}.target-tile .riddle{font-size:10px;padding:3px;line-height:1.45}.target-tile .memory-back{height:48px;width:48px;font-size:24px}.play-actions{margin:0;gap:7px}.play-actions .primary,.play-actions .secondary{min-height:42px;padding:7px 10px;font-size:12px}.play-actions svg{width:16px;height:16px}.game-instruction{font-size:10px;padding-top:5px;min-height:20px}.combo-label{display:none}.interaction-note{display:none}.found-marker{height:20px;width:20px;font-size:11px}.keepsake{min-width:32px;min-height:26px;border-width:1px}.keepsake svg{width:14px;height:14px}#toast{bottom:80px;font-size:12px}.playing~#toast{bottom:60px}.pause-cover h2{font-size:20px}}
@media(max-width:360px){.brand small{display:none}.brand b{font-size:15px}.app-header{padding:8px 10px}.wallet{gap:7px}.shop-hero{height:360px}.chapter-art{height:150px}.target-list{min-height:78px}.target-tile{min-height:78px}.target-tile img{height:43px}.target-tile .riddle{font-size:9px}}
@media(max-height:650px) and (max-width:700px){#app.playing .app-header{height:43px;padding-top:3px;padding-bottom:3px}.play-top{min-height:36px}.play-top .icon-button{min-height:35px}.scene-label small{display:none}.target-list{min-height:75px}.target-tile{min-height:75px}.target-tile img{height:39px}.play-actions .primary,.play-actions .secondary{min-height:37px}.game-instruction{padding-top:2px;font-size:9px}}
@media(orientation:landscape) and (max-height:600px){#app.playing .app-header{display:none}#app.playing #main{padding:5px 12px}.play-top{margin-bottom:4px;min-height:38px}.play-top .icon-button{min-height:36px}.game-layout{grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:minmax(0,1fr);gap:15px}.game-aside{display:flex;gap:7px}.target-list{grid-template-columns:1fr;min-height:0}.target-tile{flex-direction:row;min-height:50px;gap:10px}.target-tile img{height:40px;width:54px}.target-tile .memory-back{height:37px;width:37px}.target-tile .riddle{font-size:10px}.game-instruction{display:none}.play-actions{margin-top:auto}}

/* Each repair reveals the corresponding area of the generated restored artwork. */
.shop-hero{height:auto;aspect-ratio:4/5;min-height:0}
.shop-hero>img{filter:none}
.shop-hero>.shop-clean{position:absolute;inset:0;pointer-events:none}
.restored-0{clip-path:inset(0 22% 60% 34%)}
.restored-1{clip-path:inset(38% 0 23% 68%)}
.restored-2{clip-path:inset(0 67% 54% 0)}
.restored-3{clip-path:inset(0 0 75% 77%)}
.restored-4{clip-path:inset(41% 32% 16% 8%)}
.restored-5{clip-path:polygon(82% 74%,100% 72%,100% 100%,82% 100%,82% 74%,32% 47%,18% 48%,18% 38%,32% 38%)}
.restored-6{clip-path:inset(0 0 65% 0)}

.keepsake{padding:0;background:#d7bb8b!important;border:0}.keepsake>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;border-radius:4px;pointer-events:none}.keepsake>svg{position:relative;z-index:1;background:#46664dba;border-radius:5px;padding:2px;width:19px;height:19px;color:#fff6cb;pointer-events:none}.keepsake:not(.unlocked)>svg{background:#826342d9}

/* v1.2: a quiet town, a clear next action, and a complete phone scene. */
.current-project,.visitor-panel{padding:22px}.current-project h2{font-size:23px;margin:10px 0}.current-project p,.visitor-panel p{font-size:13px;color:var(--muted);margin:10px 0 17px}.current-project .progress-track{margin-top:20px;height:7px}.project-cost{margin:12px 0 18px;font-size:13px;flex-wrap:wrap}.project-cost small{color:var(--muted)}.visitor-option{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:17px 0;border-bottom:1px solid var(--line);min-height:78px}.visitor-option:last-child{border:0}.visitor-option>svg,.visitor-option>span:first-child{flex-shrink:0;color:var(--accent)}.visitor-option>svg:last-child{margin-left:auto;width:18px}.visitor-option b{display:block;font-size:14px}.visitor-option small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.visitor-list{margin-top:18px}.mission-strip{display:flex;align-items:center;gap:10px;flex-shrink:0;min-height:52px;background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:8px 13px;margin-bottom:10px;text-align:left}.mission-strip>span:nth-child(2){flex:1;min-width:0}.mission-strip b,.mission-strip small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mission-strip b{font-size:12px;font-weight:600}.mission-strip small{font-size:11px;color:var(--accent);margin-top:3px}.mission-strip svg{width:20px;height:20px;color:var(--accent)}.brief-more{font-size:11px;color:var(--muted);flex-shrink:0}.mission-note{display:none!important}.target-list-button{display:flex;align-items:center;gap:6px;text-align:left;font-size:12px;min-height:40px;padding:0;text-decoration:underline;text-underline-offset:4px}.target-list-button svg{width:16px;height:16px}.list-number{display:block;font-size:12px;margin-bottom:6px;color:var(--muted)}.target-done{background:#e7eddf}.memory-grid .riddle{font-size:11px;line-height:1.6;padding:8px 2px}.scene-prop{position:absolute;object-fit:contain;transform:translate(-50%,-50%);pointer-events:none;transition:opacity .25s,filter .25s}.scene-prop.collected{opacity:.5;filter:saturate(.4)}.scene-action{position:absolute;transform:translate(-50%,-50%);height:44px;width:44px;border-radius:50%;background:#fffcf5ed;border:2px solid #bcc5b3;display:grid;place-items:center;color:var(--muted);z-index:2;box-shadow:var(--shadow)}.scene-action.ready{background:var(--accent);color:#fff;border-color:#f4e6bb;animation:pulse 2s infinite}.scene-action svg{width:20px}.find-pop{position:absolute;transform:translate(-50%,-100%);background:#fafff0ed;color:#375a3d;border-radius:20px;padding:5px 9px;box-shadow:0 2px 10px #35432c22;font-size:12px;white-space:nowrap;pointer-events:none;animation:find-pop 1.2s both;z-index:4}.target-tile{animation:target-enter .18s ease-out}.keepsake{background:transparent!important;min-height:0;min-width:0}.keepsake>img{object-fit:contain;border-radius:0;filter:drop-shadow(0 2px 2px #47391e30)}.keepsake>svg{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}#app.playing~#toast{bottom:auto;top:110px;max-width:min(86vw,430px);font-size:12px;padding:10px 14px}.reward-card small+small{margin-top:10px;color:var(--accent)}
@keyframes target-enter{from{opacity:.3;transform:translateY(3px)}to{opacity:1;transform:none}}@keyframes find-pop{0%{opacity:0;translate:0 6px}20%,70%{opacity:1}100%{opacity:0;translate:0 -12px}}
@media(max-width:700px){#app.playing .app-header{display:none}#app.playing #main{padding:6px 10px max(8px,env(safe-area-inset-bottom))}.play-top{min-height:44px;margin-bottom:6px}.play-top .icon-button{min-height:44px;min-width:44px}.mission-strip{min-height:44px;padding:5px 9px;gap:7px;margin-bottom:7px}.mission-strip b{font-size:11px}.mission-strip small{font-size:10px}.brief-more{font-size:10px}.game-layout{gap:7px}.game-aside{gap:4px}.game-instruction{display:none}.target-list-button{min-height:32px;font-size:11px}.target-list{min-height:86px}.target-tile{min-height:86px}.play-actions .primary,.play-actions .secondary{min-height:44px}.shop-hero{aspect-ratio:1/1}.current-project,.visitor-panel{padding:17px}.current-project h2{font-size:21px}.home-grid{gap:16px}.home-side{gap:13px}.shop-caption{padding:14px;left:12px;right:12px;bottom:12px}.page-heading{margin-bottom:16px}.page-heading .eyebrow{margin-bottom:6px}#app.playing~#toast{top:104px}.target-list-button svg{width:14px}}
@media(max-height:650px) and (max-width:700px){.mission-strip{min-height:38px}.mission-strip>span:first-child{display:none}.target-list{min-height:73px}.target-tile{min-height:73px}.target-tile img{height:40px}.target-list-button{min-height:28px}.game-aside{gap:3px}.game-layout{gap:5px}.play-top{min-height:40px}.play-top .icon-button{min-height:40px}.play-actions .primary,.play-actions .secondary{min-height:42px}.scene-label small{display:block;font-size:9px}}
@media(orientation:landscape) and (max-height:600px){.mission-strip{display:none}.target-list-button{min-height:28px}.target-list{min-height:0}.target-tile{min-height:49px}.game-aside{gap:5px}.scene-label small{display:block}}

.scene-prop.revealed{animation:prop-reveal .35s ease-out}@keyframes prop-reveal{from{opacity:0;scale:.85}to{opacity:1;scale:1}}
/* A quiet store: artwork carries the color, controls use the existing sage palette. */
.commerce-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.commerce-card{padding:28px;min-width:0}.commerce-card h2{margin:14px 0;font-size:26px}.commerce-card>p{line-height:1.8}.decor-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.decor-tile{display:flex;flex-direction:column;gap:8px;background:transparent;border:2px solid transparent;border-radius:14px;padding:3px 3px 10px;min-width:0;color:var(--ink)}.decor-tile img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:10px}.decor-tile small{font-size:11px;color:var(--muted)}.decor-tile.selected{border-color:var(--accent)}.commerce-note{font-size:12px;color:var(--muted);line-height:1.7;margin-top:14px}.pack-benefits{margin:22px 0}.pack-benefit{display:flex;align-items:center;gap:15px;padding:20px 0;border-bottom:1px solid #e8e8df}.pack-benefit>svg{width:24px;height:24px;color:var(--accent);fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}.pack-benefit span{display:flex;flex:1;flex-direction:column;gap:6px}.pack-benefit small{font-size:12px;color:var(--muted);font-weight:400}.pack-benefit strong{display:flex;flex-direction:column;align-items:center;font-size:25px;gap:4px}.commerce-footer{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin:24px 0;padding:24px}.commerce-footer>div{flex:1;min-width:220px}.commerce-footer p{font-size:13px;line-height:1.7}.commerce-status{width:100%;margin:0;color:var(--muted)}.decor-preview{width:100%;max-height:52dvh;object-fit:contain;border-radius:16px}.quota-label{padding:14px;background:#eef2e9;border-radius:10px;font-size:13px}.benefit-button{flex-wrap:wrap}.benefit-button small{width:100%;font-size:11px;opacity:.8}
@media(max-width:760px){.commerce-grid{grid-template-columns:1fr;gap:18px}.commerce-card{padding:22px 18px}.commerce-card h2{font-size:23px}.decor-tiles{gap:7px}.decor-tile b{font-size:12px}.commerce-footer{padding:20px}.commerce-footer>.secondary{width:100%}}

/* Text reminders and previews; scene props and collection artwork retain their own styles. */
.target-tile:has(.target-name){justify-content:center;padding:14px 24px;min-height:62px;text-align:center}
.target-tile .target-name{font-size:16px;font-weight:700;overflow-wrap:anywhere}
.memory-grid .album-item{display:flex;flex-direction:column;justify-content:center;min-height:76px;padding:12px 8px}
.memory-grid .target-name{font-size:14px;font-weight:700;line-height:1.5;margin:0;overflow-wrap:anywhere}
@media(max-width:700px){.target-tile:has(.target-name){padding:12px 6px;min-height:62px}.target-tile .target-name{font-size:13px}}
@media(orientation:landscape) and (max-height:600px){.target-tile:has(.target-name){min-height:49px;padding:8px 24px}}

/* Play uses a stable scene above a complete, horizontally scrollable target strip. */
#app.playing{height:100dvh;min-height:0}
#app.playing .app-header{display:none}
#app.playing #main{display:flex;flex-direction:column;min-width:0;padding:6px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));padding-top:max(6px,env(safe-area-inset-top));overflow:hidden}
.playing .play-top{min-height:44px;margin-bottom:4px;flex-shrink:0}
.playing .play-top .icon-button{min-width:44px;min-height:44px}
.playing .mission-strip{min-height:44px;margin-bottom:5px;padding:5px 9px}
.playing .mission-strip b{display:none}
.playing .mission-strip small{font-size:13px;margin:0}
.playing .game-layout{flex:1;min-height:0;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:5px}
.playing .scene-panel{min-height:0;min-width:0}
.playing .game-aside{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-width:0;min-height:0}
.playing .play-progress{height:44px;font-size:13px}
.playing .play-progress b{font-size:14px;white-space:nowrap}
.playing .target-list-button{min-height:44px;font-size:13px}
.playing .game-aside .progress-track,.playing .combo-label,.playing .interaction-note,.playing .game-instruction{display:none}
.playing .target-list{display:flex;flex-wrap:nowrap;gap:7px;min-height:0;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 2px 5px;scrollbar-width:thin}
.playing .target-list .target-tile{flex:0 0 116px;min-height:58px;padding:6px 10px;flex-direction:column;gap:2px;scroll-snap-align:start;border-radius:11px}
.playing .target-tile .target-name{font-size:13px;line-height:1.35}
.playing .target-tile .riddle{font-size:13px;line-height:1.4;padding:2px}
.playing .target-tile:has(.riddle){flex-basis:220px}
.playing .target-tile .memory-back{width:22px;height:22px;font-size:18px}
.playing .target-tile .target-lock{display:flex;align-items:center;gap:3px;font-size:11px;color:var(--muted)}
.target-lock svg{width:13px;height:13px;flex-shrink:0}
.playing .play-actions{margin:0;gap:7px}
.playing .play-actions button{min-height:44px;padding:7px 10px}
.playing .keepsake{min-width:44px;min-height:44px}
.playing .scene-action{width:44px;height:44px}
.failure-cover{position:absolute;inset:0;z-index:3;background:#f8f4eae8;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:12px;text-align:center}
.shop-status{padding:12px 16px;margin-bottom:18px;background:var(--soft);border-radius:12px;font-size:13px}
.purchase-reason:empty{display:none}
@media(orientation:landscape) and (max-height:600px){.playing .mission-strip{display:none}.playing .game-aside{grid-template-columns:minmax(0,1fr) 200px;align-items:center}.playing .game-aside>div:has(.play-progress){grid-column:1/-1}.playing .play-actions{flex-direction:row}.playing .game-aside .play-progress{height:32px}.playing .target-list-button{min-height:32px}}
.playing .target-scroll-cue{font-size:11px;color:var(--muted);white-space:nowrap}
@media(orientation:landscape) and (max-height:600px){.playing .game-aside .play-progress,.playing .target-list-button{min-height:44px;height:44px}}
.playing .keepsake>img{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);max-width:none}
