/* Shared visual language: warm paper, forest controls, rounded readable type. */
:root{font-family:ui-rounded,"Avenir Next",system-ui,-apple-system,"Segoe UI",sans-serif;--forest:#254e40;--muted:#59665f;--cream:#faf7ef;--line:#dedfd3;background:var(--cream);color:var(--forest)}
body{min-width:280px}button,a,select{touch-action:manipulation}button,select{font:inherit}.ui-icon{width:24px;height:24px;display:block;flex-shrink:0}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b75b37;outline-offset:4px}
.site-header{max-width:1120px;padding:18px 24px;border:0;gap:16px}.brand{font-family:ui-rounded,"Avenir Next",system-ui,sans-serif;font-size:29px;font-weight:850;letter-spacing:-1.2px;gap:10px}.brand-friends{width:42px;height:42px;border-radius:14px}.brand-dot{color:#bd6546}.nav-link{font-size:14px;gap:8px}.collection-count{font-size:12px;padding:5px 8px;border-radius:20px}.help-button{background:#efefe5;border:1px solid #dce0d4;font-weight:750;width:44px;height:44px;display:grid;place-items:center}nav{gap:16px}
.home-stage{max-width:960px;margin:0 auto;padding:20px 24px 22px;text-align:center}.home-stage .eyebrow{font-size:10px;letter-spacing:1.6px;margin:0 0 12px}.home-stage h1{font-family:inherit;font-size:clamp(32px,4.4vw,48px);line-height:1.12;letter-spacing:-1.8px;font-weight:800;margin:0 0 12px}.home-subtitle{font-size:16px;color:var(--muted);margin:0 0 24px}.home-preview{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 auto 28px;max-width:900px;pointer-events:none}.home-preview>div{overflow:hidden;border:5px solid white;border-radius:20px;box-shadow:0 8px 25px #244d4010;aspect-ratio:5/3;background:#e9e9db}.home-preview svg{display:block;width:100%;height:100%}.primary-button{line-height:1.2;font-size:15px;font-weight:750;min-height:50px;border-radius:16px;gap:14px;padding:14px 22px;background:var(--forest);border:1px solid #173e30;box-shadow:0 4px 0 #16382c;transition:background .16s,transform .16s,box-shadow .16s}.primary-button:hover{background:#32634d;transform:translateY(-1px)}.primary-button:active{transform:translateY(3px);box-shadow:0 1px 0 #16382c}.primary-button>span:last-child{font-size:inherit}.play-button{min-width:244px;min-height:60px;font-size:20px;border-radius:19px;gap:18px}.play-symbol{font-size:22px!important}.home-promise{font-size:12px;color:var(--muted);margin:22px 0 0}#resume-playing{display:block;width:max-content;max-width:100%;margin:14px auto -9px;font-size:14px;text-decoration:underline;text-underline-offset:4px}
footer{max-width:1060px;border:0;margin:0 auto;padding:10px 24px;justify-content:center;font-size:12px;gap:18px}footer>span,footer .text-button{font-size:12px}.footer-brand{display:none}.text-button{font-size:14px;font-weight:650}.secondary-button{font-size:14px;border-radius:14px;min-height:48px}.collection-section{max-width:1120px;border:0;padding:18px 24px 30px}.collection-back{display:inline-flex;padding:0 0 10px;align-items:center;font-size:14px}.section-heading h1{font-family:inherit;font-size:32px;letter-spacing:-1px;line-height:1.2;margin:0}.section-heading>p{font-size:14px;line-height:1.5}.home-collection{gap:20px}.scene-card{border-radius:18px;box-shadow:0 3px 0 #e0e1d4;transition:transform .18s,box-shadow .18s}.scene-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #254e4018}.scene-card h3{font-size:17px;line-height:1.35;letter-spacing:-.3px;margin:0}.scene-card-body{padding:16px}.card-foot{margin-top:12px;padding-top:10px;font-size:12px}.card-arrow{background:#e8edde;width:36px;height:36px;flex-shrink:0}.card-arrow .ui-icon{width:20px;height:20px}.scene-badge{font-size:11px}.filter-buttons button{font-size:13px;font-weight:650}.difficulty-filter{font-size:13px}
.exit-game{background:#eeeee2;border:1px solid #d9dfcf;flex-shrink:0}.exit-game:hover{background:#dfe8d8}.play-topbar{height:56px;padding:4px}.play-topbar .progress strong{font-size:15px;font-weight:750}.game .hint-button{min-height:48px;border-radius:15px;border:1px solid #c5d3b6;background:#e6eedb;font-weight:750;gap:9px;box-shadow:0 2px 0 #cdd8c0}.game .hint-count{font-size:12px}.game .game-actions{gap:12px}.game .text-button{padding:12px 18px}.game .game-message{font-size:12px;min-height:18px;color:#526057}.game .result-panel{border-radius:16px}.game .result-panel h2{font-family:inherit;font-size:21px;font-weight:750}.game .result-panel p{font-size:13px}.game .primary-button{gap:10px;margin-bottom:4px}.playing .game{padding-bottom:max(6px,env(safe-area-inset-bottom))}.large-pictures .play-topbar{top:env(safe-area-inset-top,0px)}
dialog{font-family:inherit;margin:auto;max-width:440px;border:1px solid #dde1d2;border-radius:26px;background:var(--cream);padding:32px 26px 26px;overflow:auto;text-align:center;animation:dialog-in .18s ease-out}dialog h2,.dialog-heading h2,#completion-dialog h2{font-family:inherit;font-size:28px;line-height:1.2;font-weight:800;letter-spacing:-.8px;margin:14px 24px 20px}dialog p{font-size:15px;line-height:1.5}.dialog-close{position:absolute;top:10px;right:10px;width:40px;height:40px;display:grid;place-items:center;background:transparent}.dialog-close:hover{background:#e7ebdf}.close-button .ui-icon{width:22px;height:22px}dialog>.primary-button{min-width:160px;margin-top:14px}.quick-help{text-align:left;display:grid;gap:16px;margin:25px 0}.quick-help p{display:flex;align-items:center;gap:16px;margin:0;font-size:14px;line-height:1.5}.quick-help strong{display:block;font-size:16px}.quick-help .ui-icon,.help-heart{width:28px;flex-shrink:0;color:#486c3f}.help-heart{font-size:27px;text-align:center;color:#bd6546}.help-note{font-size:13px;line-height:1.5;margin:20px 0}.help-details{text-align:left;font-size:13px;border-top:1px solid var(--line);padding-top:12px}.help-details summary{cursor:pointer;min-height:36px;display:list-item;font-weight:650}.help-details p{font-size:13px;line-height:1.5}.intro-example{margin:15px 0}.intro-example span{padding:12px 16px}.finish-friends{width:72px;height:72px;border-radius:23px;margin:10px 0 12px}#completion-dialog{padding:28px 24px}#completion-dialog h2{margin:10px 18px}#finish-copy{font-size:14px}#finish-next{min-height:52px;font-size:16px}#next-preview{gap:12px;margin:20px 0 10px}#next-title{font-size:14px;line-height:1.4}#view-finished{font-size:14px}.dialog-actions{margin-top:20px}.scene-notice{font-size:13px;top:calc(env(safe-area-inset-top) + 66px);animation:none}
@keyframes dialog-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:700px){.site-header{padding:14px 16px}.brand{font-size:25px;gap:8px}.brand-friends{width:36px;height:36px;border-radius:12px}nav{gap:10px}.nav-link{font-size:12px}.collection-count{font-size:11px}.home-stage{padding:20px 18px}.home-stage h1{font-size:34px;letter-spacing:-1.1px}.home-subtitle{font-size:14px;margin-bottom:20px}.home-preview{grid-template-columns:1fr;max-width:410px;gap:8px;margin-bottom:23px}.home-preview>div{border-width:3px;border-radius:15px}.home-stage .eyebrow{font-size:9px}.play-button{min-height:56px}.home-promise{margin-top:20px}.collection-section{padding:12px 18px 24px}.section-heading{gap:10px}.section-heading h1{font-size:28px}.section-heading>p{font-size:13px}.home-collection{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.scene-card-body{padding:12px}.scene-card h3{font-size:15px}.card-foot{font-size:11px;gap:5px}.scene-badge{font-size:10px;left:8px;bottom:8px;padding:5px 7px}.card-arrow{width:28px;height:28px}.card-arrow .ui-icon{width:17px;height:17px}.collection-tools{gap:10px}.filter-buttons button{padding:9px 12px;font-size:12px}.play-topbar{gap:6px}.play-topbar .progress strong{font-size:13px}.play-topbar .heart{font-size:21px}.game .game-message{font-size:11px}.game .text-button{font-size:14px}footer{padding:8px 16px;gap:10px}footer>span{order:0;width:auto;font-size:11px}footer .text-button{margin:0;font-size:11px}.dialog-actions{gap:10px}dialog h2,#completion-dialog h2{font-size:26px}}
@media(max-width:360px){.brand-friends{display:none}.site-header{gap:8px}.home-stage{padding:12px 14px}.home-stage h1{font-size:30px}.home-preview{margin-bottom:18px}.home-collection{grid-template-columns:1fr}.collection-count{display:inline}.play-topbar .progress-dots{display:none}.play-topbar{gap:3px}.play-topbar .help-button,.exit-game{width:40px;min-width:40px}}
@media(max-height:700px) and (min-width:701px){.home-stage{padding-top:8px}.home-preview{max-width:760px;margin-bottom:20px}.home-stage h1{font-size:36px}.home-subtitle{margin-bottom:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:700px) and (max-height:740px){.home-stage{padding-top:8px}.home-stage .eyebrow{display:none}.home-stage h1{font-size:29px}.home-subtitle{margin-bottom:14px}.home-preview{width:min(100%,calc((100svh - 300px)/1.2));min-width:230px;gap:6px;margin-bottom:18px}.home-promise{margin-top:15px}.play-button{min-height:52px}footer{padding-top:0}}
#lives-dialog .help-heart{display:block;margin:12px auto 0;font-size:46px;width:auto}#lives-dialog>.text-button{display:block;margin:15px auto 0}
.collection-count{display:inline}

.sound-setting{display:flex!important;align-items:center;justify-content:space-between;min-height:48px;padding:12px 0;margin:8px 0 20px;border-top:1px solid #254e4020;font-weight:700}.sound-setting input{width:24px;height:24px;accent-color:var(--forest);cursor:pointer}
/* Screenshot review: quieter touch focus and a compact, consistent dialog rhythm. */
:root:not(.keyboard-input) :focus-visible{outline:none}
.keyboard-input :is(button,a,select,summary,input,.picture):focus-visible{outline:3px solid #476b52;outline-offset:3px}
dialog,#completion-dialog{padding:24px;max-width:400px;border-radius:24px;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px)}
dialog h2,#completion-dialog h2{font-size:26px;line-height:1.2;margin:18px 22px 16px;letter-spacing:-.7px}
dialog p{margin:12px 0;font-size:14px;line-height:1.45}
dialog>.primary-button{width:100%;margin-top:16px;min-height:50px}
.dialog-close{width:44px;height:44px;top:6px;right:6px}
.quick-help{gap:16px;margin:24px 0}.quick-help p{margin:0;font-size:13px;gap:14px}.quick-help strong{font-size:15px}
.help-note{margin:18px 0!important;font-size:12px!important}.help-details{padding-top:10px}.help-details p{font-size:12px;margin:10px 0}.help-details summary{min-height:32px}
#lives-dialog .help-heart{font-size:36px;margin:14px auto 8px}#lives-dialog>.text-button{margin:8px auto 0;min-height:44px}
.finish-friends{width:56px;height:56px;border-radius:18px;margin:8px 0 12px}
#completion-dialog .eyebrow{font-size:9px;letter-spacing:1.5px;margin:0 0 8px}#completion-dialog h2{margin:8px 14px 12px}
#next-preview{padding:10px;margin:18px 0 8px;gap:12px}#next-art{width:96px;height:58px}#next-title{font-size:13px}#next-preview small{font-size:9px}#view-finished{margin:8px auto 0}
#give-up-dialog .dialog-actions{display:flex;flex-direction:column;gap:10px;margin-top:20px}#give-up-dialog .dialog-actions button{width:100%;min-height:48px}
.game .game-message{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.game .end-summary{margin:0 0 6px;text-align:center;font-size:13px;font-weight:650;color:var(--muted)}
.game.attempt-ended .game-actions{width:100%;max-width:440px;gap:10px}.game.attempt-ended .game-actions>button:not([hidden]){flex:1;min-height:48px}
.game .answer-key{margin:0;width:100%;max-width:440px;font-size:13px}.game .answer-key summary{min-height:44px;cursor:pointer}
@media(pointer:coarse){.keyboard-controls{display:none}.keyboard-input .keyboard-controls{display:block}}
@media(max-height:520px){dialog,#completion-dialog{padding:18px 22px}.quick-help{gap:10px;margin:16px 0}.finish-friends{width:42px;height:42px;margin:0 0 8px}}
@media(hover:none){.primary-button:hover{background:var(--forest);transform:none}.text-button:hover,.nav-link:hover{color:var(--forest)}}
