@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./assets/fonts/font-0.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./assets/fonts/font-1.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./assets/fonts/font-2.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/fonts/font-3.ttf) format('truetype');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./assets/fonts/font-4.ttf) format('truetype');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./assets/fonts/font-5.ttf) format('truetype');
}

/* Repeated control taps are actions; keep panning and pinch zoom available. */
button,a,summary{touch-action:manipulation}
:root{--ink:#344b3e;--muted:#7c8875;--cream:#fffdf3;--orange:#ce7748;--ease:cubic-bezier(.23,1,.32,1)}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#eeefe4;color:var(--ink);font-family:'DM Sans',sans-serif;font-size:1rem}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible,#world:focus-visible{outline:3px solid #d17b4c;outline-offset:5px}button:active{transform:scale(.96)}button{transition:background 180ms ease,transform 150ms var(--ease)}#world{position:absolute;inset:0;touch-action:none}#world canvas{width:100%;height:100%;display:block}header{position:absolute;left:4%;right:4%;top:28px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.wordmark{min-width:44px;min-height:44px;font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:2rem;letter-spacing:-1.4px;color:var(--ink);text-decoration:none;line-height:1;pointer-events:auto}.brand-paw{display:inline-block;font-family:Georgia;font-size:2.3125rem;margin-right:9px;color:#567252;vertical-align:-3px}.edition{display:block;font:600 0.5625rem 'DM Sans',sans-serif;letter-spacing:2.9px;margin:12px 0 0 46px}.top-actions{display:flex;gap:10px;pointer-events:auto}.circle{position:relative;width:44px;height:44px;border:1px solid #66735c25;background:#fffdf2b0;border-radius:50%;font-size:1.25rem}.sound-off{position:absolute;left:13px;top:21px;width:19px;height:1px;background:currentColor;transform:rotate(-40deg)}main{pointer-events:none;position:absolute;inset:0}.chapter{position:absolute;left:4%;top:150px;max-width:330px}.eyebrow,.tiny-label{font-size:0.625rem;font-weight:700;letter-spacing:2px}.eyebrow{color:#82916f;font-size:0.6875rem}.chapter h1{font-family:'Fraunces',Georgia,serif;font-size:2.875rem;line-height:1.11;font-weight:500;letter-spacing:-1.7px;margin:16px 0}.chapter p{font-size:0.8125rem;color:#7a8370;line-height:1.7;max-width:255px}.text-button{pointer-events:auto;background:none;padding:12px 0;font-size:0.75rem;font-weight:600;border-bottom:1px solid #a3ad902f}.text-button span{margin-left:20px}.objective{position:absolute;right:4%;top:131px;background:#fffdf4d9;backdrop-filter:blur(16px);border:1px solid #fffdf9;border-radius:20px;box-shadow:0 6px 24px #37482d05;display:flex;gap:16px;align-items:center;padding:18px 20px}.objective-icon{font-size:1.75rem;color:#96a86e}.objective .tiny-label{font-size:0.5625rem;letter-spacing:1.4px;color:#8a957c}.objective strong{font-size:1.25rem;font-weight:600;margin-right:4px}.objective div div{margin-top:6px}.objective div div span{font-size:0.75rem;color:#89907e}.progress-ring{width:37px;height:37px;border-radius:50%;background:conic-gradient(#6c9258 0%,#e6ebdb 0);display:grid;place-items:center}.progress-ring span{width:29px;height:29px;border-radius:50%;background:#fffdf4;display:grid;place-items:center;font-size:1.125rem}.dog-card{pointer-events:auto;position:absolute;left:4%;bottom:190px;border:1px solid #ffffffae;box-shadow:0 12px 35px #5664450b;background:#fffef6c9;backdrop-filter:blur(15px);border-radius:21px;text-align:left;display:flex;align-items:center;padding:18px 19px 18px 12px;width:287px;gap:11px}.dog-avatar{background:#e6ebd9;width:76px;height:83px;border-radius:16px;overflow:hidden;flex-shrink:0;display:grid;place-items:center;background-position:center;background-size:cover}.dog-avatar span{font-size:2.625rem;color:#7b8d6e}.dog-info .tiny-label{font-size:0.5rem;letter-spacing:1.4px;color:#94a080}.dog-info h2{font-family:'Fraunces',Georgia,serif;font-size:1.75rem;font-weight:500;margin:5px 0}.dog-sex{font:0.875rem 'DM Sans';color:#95a38c}.dog-info>span:not(.tiny-label){font-size:0.625rem;color:#86917b;white-space:nowrap}.mood{display:flex;gap:6px;align-items:center;margin-top:10px;font-size:0.625rem}.mood i,.bottom-meta i{width:5px;height:5px;background:#9dac6a;border-radius:50%;display:inline-block}.card-chevron{position:absolute;right:13px;top:13px;font-size:0.875rem;color:#93a17e}.field-label{position:absolute;left:69%;top:40%;font-size:0.5625rem;letter-spacing:2px;font-weight:700;opacity:.6;white-space:nowrap;transform:translate(-50%,-100%)}.field-label span{font-size:1.125rem;padding-left:6px}.dog-bubble{position:absolute;background:#fffdf7ed;padding:9px 14px;border-radius:12px 12px 12px 2px;font-size:0.6875rem;box-shadow:0 3px 10px #4456340a;transform:translate(-15%,-110%);white-space:nowrap;transition:opacity 180ms ease;opacity:0}.bottom{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);width:490px;max-width:94vw;text-align:center}.message{font-size:0.75rem;color:#76836b;background:#f5f5e9af;display:inline-block;padding:8px 14px;border-radius:30px;margin-bottom:14px;backdrop-filter:blur(6px)}.command-bar{pointer-events:auto;display:flex;background:#fffdf5ed;backdrop-filter:blur(20px);padding:9px;gap:4px;border:1px solid #fff;box-shadow:0 12px 35px #4b5c3712;border-radius:24px;justify-content:space-around}.command{display:flex;flex-direction:column;gap:5px;align-items:center;background:none;min-width:99px;padding:10px 12px;border-radius:16px;font-size:0.75rem;font-weight:600}.command-icon{font:1.625rem Georgia;line-height:27px}.command kbd{font:0.5625rem 'DM Sans';color:#929781;white-space:nowrap}.command.active{background:#e7eddb;color:#4e6a43}.command.active kbd{color:#8a9a78}.divider{width:1px;background:#e7eadc;margin:15px 7px}.bottom-meta{display:flex;justify-content:space-between;margin:14px 12px 0;color:#8e987f;font-size:0.625rem;letter-spacing:.15px}.bottom-meta i{margin-right:5px}.bottom-meta button{pointer-events:auto;font-size:0.625rem;padding:0;background:none;color:#8e987f}.level-dots{position:absolute;right:4%;bottom:42px;display:flex;gap:8px;align-items:center}.level-dots button{pointer-events:auto;background:#fdfcf2a0;border:1px solid #dfe5d5;width:28px;height:28px;border-radius:50%;font-size:0.625rem;color:#929e82}.level-dots button.selected{background:#5b7650;color:#fff;border-color:#5b7650}.level-dots span{width:13px;height:1px;background:#b6c0a8}dialog{border:none;border-radius:30px;background:#fffdf4;color:var(--ink);padding:34px;width:440px;max-width:calc(100vw - 32px);max-height:90dvh;box-shadow:0 28px 100px #293a3533;text-align:center}dialog::backdrop{background:#334b3b39;backdrop-filter:blur(7px)}dialog h2{font:500 2.125rem 'Fraunces',Georgia;margin:15px 0 10px;letter-spacing:-1px}dialog p{font-size:0.875rem;line-height:1.7;color:#7a8670}dialog .eyebrow{font-size:0.625rem}dialog .close{position:absolute;right:18px;top:16px;border-radius:50%;background:#edf0e4;width:32px;height:32px;font-size:1.4375rem}.primary,.secondary{min-height:46px;border-radius:15px;padding:12px 20px;font-size:0.875rem;font-weight:600}.primary{background:#526f48;color:white}.secondary{background:#eaf0df}.modal-actions{display:flex;gap:9px;justify-content:center;margin-top:20px;flex-wrap:wrap}.portrait{width:140px;height:140px;border-radius:28px;object-fit:cover;display:block;margin:2px auto 18px;background:#e7ecd9}.traits{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.traits span{background:#f0efdf;border-radius:20px;padding:7px 11px;font-size:0.6875rem;color:#84906f}.care-feedback{min-height:45px;margin:12px 0 0!important;font-size:0.75rem!important}.map-option{display:flex;text-align:left;align-items:center;gap:16px;width:100%;padding:18px;margin-top:10px;background:#edf0df;border-radius:16px}.map-option b{font-family:'Fraunces';font-size:1.5rem;font-weight:500}.map-option small{display:block;font-size:0.75rem;color:#899577;margin-top:5px}.map-number{background:#fffdf4;width:35px;height:35px;display:grid;place-items:center;border-radius:50%}.instructions{text-align:left;display:grid;gap:16px;margin:24px 0}.instructions>div{display:flex;gap:14px;align-items:center;font-size:0.8125rem;color:#7c8870;line-height:1.55}.instructions strong{color:#435b3d}.instruction-icon{font:1.75rem Georgia;min-width:35px;color:#6b8755}.dog-select{display:flex;gap:6px;margin-top:16px}.dog-select button{flex:1;background:#eef0e5;padding:10px 5px;border-radius:12px;font-size:0.75rem}.dog-select .chosen{background:#58724c;color:white}#loading{position:fixed;inset:0;background:#eeefe4;display:flex;align-items:center;justify-content:center;flex-direction:column;transition:opacity 350ms ease;z-index:10}#loading p{font-size:0.875rem;color:#7c8c71}.loading-flower{font-size:3.75rem;color:#8da16d;animation:turn 6s linear infinite}@keyframes turn{to{transform:rotate(360deg)}}@media(hover:hover) and (pointer:fine){button:hover{background-color:#dfe7d1}.primary:hover{background:#425e39}.dog-card:hover{transform:translateY(-3px)}.command:hover{background:#eef2e4}}@media(min-width:1500px){.chapter{top:180px}.chapter h1{font-size:3.375rem}.dog-card{bottom:210px}}@media(max-width:900px){.chapter h1{font-size:2.25rem}.chapter{top:125px;max-width:240px}.chapter p{font-size:0.75rem;max-width:220px}.objective{top:124px;padding:14px;gap:10px}.objective-icon{display:none}.dog-card{bottom:185px;width:235px;padding:10px;gap:9px}.dog-avatar{width:60px;height:73px}.dog-info .tiny-label{font-size:0.4375rem}.level-dots{bottom:38px}.command{min-width:90px}.chapter .text-button{font-size:0.6875rem}}@media(max-width:600px){header{top:max(20px,env(safe-area-inset-top));left:6%;right:6%}.wordmark{font-size:1.75rem}.brand-paw{font-size:1.9375rem}.edition{font-size:0.4375rem;letter-spacing:2px;margin-left:39px;margin-top:9px}.top-actions{gap:6px}.circle{width:35px;height:35px;font-size:1.0625rem}.sound-off{left:9px;top:17px}.chapter{left:6%;top:112px}.eyebrow{font-size:0.5625rem}.chapter h1{font-size:1.875rem;letter-spacing:-1px;margin:10px 0}.chapter p{display:none}.chapter .text-button{padding:5px 0;font-size:0.625rem}.objective{top:116px;right:6%;gap:8px;padding:12px;border-radius:16px}.objective .tiny-label{font-size:0.4375rem;letter-spacing:1px}.objective div div span{font-size:0.5625rem;display:block;margin-top:3px}.objective strong{font-size:1.3125rem}.progress-ring{width:29px;height:29px}.progress-ring span{width:23px;height:23px;font-size:0.9375rem}.dog-card{left:6%;bottom:188px;width:auto;background:#fffdf4dc;padding:8px 13px 8px 8px;border-radius:16px;gap:9px}.dog-avatar{width:39px;height:43px;border-radius:9px}.dog-info .tiny-label,.dog-info>span,.dog-sex,.card-chevron{display:none!important}.dog-info h2{font-size:1.1875rem;margin:0}.mood{font-size:0.5625rem;margin-top:4px}.field-label{font-size:0.4375rem;letter-spacing:1.2px}.bottom{bottom:max(20px,env(safe-area-inset-bottom));width:calc(100% - 36px)}.message{font-size:0.625rem;max-width:97%;margin-bottom:9px;padding:8px 11px}.command-bar{padding:7px;gap:1px;border-radius:20px}.command{padding:7px 5px;min-width:0;flex:1;font-size:0.6875rem}.command-icon{font-size:1.5rem}.command kbd{font-size:0.5rem}.divider{margin:12px 4px}.bottom-meta{font-size:0.5625rem;margin:12px 3px 0}.bottom-meta button{font-size:0.5625rem}.level-dots{right:6%;bottom:207px;gap:5px}.level-dots button{width:24px;height:24px;font-size:0.5625rem}.level-dots span{width:8px}.dog-bubble{font-size:0.625rem;padding:7px 10px}dialog{padding:30px 24px}dialog h2{font-size:1.875rem}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-height:650px) and (min-width:650px){.chapter{top:110px}.chapter h1{font-size:2rem}.chapter p{display:none}.dog-card{bottom:35px}.bottom{bottom:18px;left:57%;width:440px}.objective{top:106px}.level-dots{bottom:30px}.command{padding:6px}.message{margin-bottom:7px}}
.dog-avatar{background-size:110%;background-position:50% 48%}.dog-avatar span{display:none}
[hidden]{display:none!important}.bond-row{display:flex;align-items:center;justify-content:center;gap:14px;margin:18px 0;color:#758568;font-size:0.75rem}.bond-pips{display:flex;gap:5px}.bond-pips i{height:9px;width:9px;border-radius:50%;background:#e0e6d5}.bond-pips .filled{background:#809d65}.recall-track{position:relative;height:20px;background:#e5e9d9;border-radius:20px;overflow:hidden;margin:24px 0 12px}.recall-zone{position:absolute;left:38%;width:28%;height:100%;background:#a9be8b}#recall-marker{position:absolute;top:2px;height:16px;width:8px;border-radius:8px;background:#425e38;transform:translateX(-50%)}.recall-cue{min-height:24px;font-weight:600}.recall-cue.ready{color:#557340}.practice-dots{font-size:1.4375rem;letter-spacing:8px;color:#83996d}#fetch-controls{pointer-events:auto;background:#fffdf4f0;border:1px solid #fff;border-radius:22px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 12px 35px #4b5c3712}#fetch-controls>span{font-size:0.875rem}#fetch-count{margin-left:12px;font-variant-numeric:tabular-nums}.map-badges{font-size:0.625rem!important;line-height:1.7}.map-option b{font-size:1.375rem}.map-option{padding:15px}.command{min-height:76px}.top-actions button{min-width:44px;min-height:44px}.level-dots button{min-width:36px;min-height:36px}body{-webkit-user-select:none;user-select:none;overscroll-behavior:none}.modal-actions button{min-height:48px}.dog-select button{min-height:44px}.bottom{padding-bottom:env(safe-area-inset-bottom,0px)}@media(max-width:600px){.top-actions{gap:3px}.circle{width:38px;height:38px}.top-actions button{min-width:38px;min-height:44px}.level-dots{gap:2px}.level-dots span{width:4px}.level-dots button{min-width:32px;min-height:36px}.command{min-height:76px}.bond-row{gap:10px}.map-option{padding:13px}.map-option b{font-size:1.25rem}.portrait{width:125px;height:125px;margin-bottom:12px}dialog p{font-size:0.875rem}.recall-track{margin-top:16px}.map-badges{font-size:0.625rem!important}}
@media(max-width:600px){.top-actions button{min-width:44px;min-height:44px}.top-actions{gap:2px}.message{font-size:0.75rem}.command{font-size:0.75rem}.command kbd{font-size:0.5625rem}.bottom-meta{font-size:0.625rem}.bottom-meta button{font-size:0.6875rem}.dog-info .mood{font-size:0.6875rem}.objective .tiny-label{font-size:0.5rem}.objective div div span{font-size:0.625rem}.dog-card{bottom:198px}.level-dots{bottom:213px}}@media(max-width:360px){.wordmark{font-size:1.5rem}.brand-paw{margin-right:4px}.edition{letter-spacing:1px}.top-actions{gap:0}.chapter h1{font-size:1.6875rem}.objective{padding:10px}.progress-ring{display:none}}
.bottom{padding-bottom:0}.command-icon{font-variant-emoji:text}@media(max-width:600px){.dog-card{bottom:230px}.level-dots{bottom:245px}}

.ribbon-card{display:flex;align-items:center;gap:15px;text-align:left;padding:16px 18px;margin:20px 0;background:#edf0e3;border:1px solid #dce3ce;border-radius:18px}.ribbon-card.earned{background:#f3ecd6;border-color:#e3d5ad}.ribbon-symbol{display:grid;place-items:center;flex:none;width:42px;height:50px;color:#8d7947;font-size:2.125rem}.ribbon-card strong{font-family:'Fraunces',Georgia,serif;font-size:1.3125rem;font-weight:500}.ribbon-card p{margin:5px 0 0;font-size:0.875rem;line-height:1.5}.ribbon-card small{font-size:0.75rem}.map-ribbon{color:#70643f!important;font-size:0.75rem!important;line-height:1.5;margin-top:5px}#ribbon-status{text-align:left;text-decoration:underline;text-decoration-color:#80916b55;text-underline-offset:3px;min-height:44px}.bottom-meta{align-items:center;margin-top:6px}#restart{min-height:44px}@media(max-width:600px){.ribbon-card{padding:13px;gap:10px;margin:14px 0}.ribbon-card strong{font-size:1.25rem}.ribbon-card p{font-size:0.8125rem}#ribbon-status{font-size:0.6875rem}}

.field-tools{position:absolute;right:4%;top:245px;pointer-events:auto;display:flex;gap:8px;max-width:230px;flex-wrap:wrap}.field-tools button{min-height:44px;padding:10px 14px;border-radius:14px;border:1px solid #cfdbc0;background:#fffdf3ed;box-shadow:0 5px 18px #3b513710;font-size:0.8125rem;font-weight:600}.level-dots{display:grid;grid-template-columns:repeat(3,36px);gap:5px}.meadow-map{text-align:left;display:grid;gap:12px;margin-top:24px}.meadow-entry{display:flex;gap:15px;padding:17px 14px;border:1px solid #dce3cf;border-radius:18px;background:#f5f5ea}.meadow-entry.current{border-color:#a7b894;background:#edf1e2}.meadow-entry .map-number{flex:none;margin-top:4px}.meadow-copy{min-width:0;flex:1}.meadow-copy h3{font-family:'Fraunces',Georgia,serif;font-size:1.4375rem;font-weight:500;margin:0}.meadow-copy p{font-size:0.8125rem;margin:5px 0 9px;line-height:1.4}.meadow-copy .map-badges,.meadow-copy .map-ribbon{display:block}.meadow-actions{display:flex;align-items:center;gap:14px;margin-top:12px;flex-wrap:wrap}.meadow-actions .primary{padding:10px 15px;font-size:0.8125rem;min-height:44px}.meadow-actions .text-button{min-height:44px;font-size:0.75rem}.challenge-earned{font-weight:600;color:#7b704c}.challenge-note{font-weight:600}#casual-play{min-height:44px}@media(max-width:600px){.field-tools{top:315px;right:6%;max-width:170px}.field-tools button{font-size:0.75rem;padding:9px 12px}.level-dots{grid-template-columns:repeat(3,32px);gap:3px;bottom:242px}.level-dots button{min-height:32px}.meadow-entry{gap:10px;padding:14px 10px}.meadow-copy h3{font-size:1.3125rem}.meadow-actions{gap:10px}.meadow-copy .map-badges{font-size:0.625rem}.chapter{max-width:200px}.chapter h1{font-size:1.8125rem}.field-label{font-size:0.5rem}}

.field-tools button small{display:block;margin-top:4px;font-size:0.6875rem;font-weight:400;color:#6b775e}.field-tip{padding:12px 15px;background:#edf1e3;border-radius:14px;text-align:left;font-size:0.875rem}

/* A quiet command receipt: always in the same place, with a readable cue budget. */
#command-feedback{display:flex;align-items:center;gap:12px;position:relative;max-width:440px;margin:0 auto 8px;padding:10px 15px 13px;background:#fffdf4f2;border:1px solid #dce3ce;border-radius:14px;color:#425b3c;font-size:0.875rem;min-height:44px;pointer-events:none;text-align:left}
#command-state{flex:1}#guide-clock{font-variant-numeric:tabular-nums;font-weight:600;color:#526f48;min-width:25px;text-align:right}.guide-track{position:absolute;bottom:5px;left:15px;right:15px;height:3px;border-radius:3px;background:#e1e6d6;overflow:hidden}.guide-track i{display:block;width:100%;height:100%;background:#78925b;transform-origin:left center}
#coach{display:flex;align-items:flex-start;gap:14px;text-align:left;padding:14px 16px;border-radius:18px;background:#fffaf0;border:1px solid #d4ddc1;box-shadow:0 7px 25px #354c3310;margin:0 auto 9px;max-width:460px;pointer-events:auto}
#coach-step{display:block;font-size:0.625rem;letter-spacing:1.1px;color:#687953;margin-bottom:5px}#coach-title{display:block;font:500 1.25rem 'Fraunces',Georgia;line-height:1.2}#coach-copy{margin:6px 0 0;color:#53644a;font-size:0.875rem;line-height:1.45}#coach-skip{flex:none;min-width:44px;min-height:44px;font-size:0.75rem;border-radius:12px;background:#edf0e1}#coach:not([hidden])~.message{display:none}
.command.lesson-cue{box-shadow:inset 0 0 0 2px #a78443;background:#f7edce}.command{transition:background-color 160ms ease,transform 140ms cubic-bezier(.23,1,.32,1)}.command:active,.primary:active,.secondary:active{transform:scale(.97)}button:focus-visible,#world:focus-visible{outline:3px solid #a17c38;outline-offset:3px}
.level-dots{grid-template-columns:repeat(3,44px);gap:3px}.level-dots button{min-width:44px;min-height:44px;font-size:0.75rem}.bottom-meta button,#levels,dialog .close{min-height:44px}dialog .close{min-width:44px}.message{color:#586b4c;font-size:0.875rem}.command kbd{font-size:0.75rem}.command{font-size:0.875rem}.instructions>div{font-size:0.875rem}dialog p{color:#5f7053}.bottom-meta button{font-size:0.75rem}#ribbon-status{font-size:0.75rem}
@media(max-width:600px){.command kbd{font-size:0.625rem}.command{font-size:0.8125rem}.bottom{bottom:max(10px,env(safe-area-inset-bottom))}.bottom-meta{margin-top:0}.message{font-size:0.75rem;line-height:1.4;padding:6px 10px;margin-bottom:6px;min-height:34px}.dog-card{bottom:284px}.level-dots{bottom:275px;grid-template-columns:repeat(3,44px);gap:1px}.chapter .text-button{font-size:0.75rem;min-height:44px}.chapter{top:110px}.field-tools{top:305px}.bottom:has(#coach:not([hidden])) .level-dots{display:none}body:has(#coach:not([hidden])) .dog-card{bottom:365px}#command-feedback{font-size:0.8125rem;padding:8px 12px 11px;margin-bottom:6px}#coach{padding:11px 13px;gap:8px}#coach-title{font-size:1.1875rem}#coach-copy{font-size:0.8125rem}#coach-step{font-size:0.625rem}.chapter h1{font-size:1.6875rem}}
@media(max-width:380px){header{left:4%;right:4%}.wordmark{font-size:1.5rem}.brand-paw{font-size:1.625rem}.edition{letter-spacing:1px;margin-left:30px}.chapter{left:4%;max-width:180px}.chapter h1{font-size:1.5625rem}.objective{right:4%;padding:9px}.objective .progress-ring{display:none}.bottom{width:calc(100% - 24px)}.command kbd{font-size:0.5625rem}#ribbon-status,#restart{font-size:0.6875rem}.dog-card{left:4%}}
@media(max-height:740px) and (max-width:600px){.chapter{top:90px}.chapter h1{font-size:1.5rem;margin:6px 0}.chapter .text-button{min-height:36px}.objective{top:96px}.field-tools{top:246px}.dog-card{bottom:268px}.level-dots{bottom:261px}body:has(#coach:not([hidden])) .dog-card{display:none}#coach-copy{font-size:0.75rem}.command{min-height:68px}}
@media(prefers-reduced-motion:reduce){.command:active,.primary:active,.secondary:active{transform:none}}

/* The journal and companion pages use the same paper, ink and small sewn details. */
.daylight{display:block;color:var(--meadow-accent,#78925b);font-size:0.75rem;letter-spacing:.05em;margin:8px 0}.chapter p{margin-top:10px}.objective #flock-mood{display:block;margin-top:5px;font-size:0.75rem;color:#5b7450}.field-tools{max-width:240px;top:254px}#pace-toggle{background:#eef1df;color:#49663e;font-weight:500}#pace-toggle[aria-pressed=true]{background:#4f714b;color:#fff}.field-tools button{border-color:#b9c8aa}#shy-label{color:#755840;background:#fff5dfdd;padding:5px 8px;border-radius:8px;font-size:0.625rem;letter-spacing:.04em;pointer-events:none}
dialog[data-screen=journal]{width:780px;text-align:left;padding:36px}.journal-summary{display:flex;gap:24px;flex-wrap:wrap;margin:20px 0 22px;padding:19px 0;border-top:1px solid #e1e5d6;border-bottom:1px solid #e1e5d6;font-size:0.75rem;color:#6b795e}.journal-summary>span{display:flex;flex-direction:column;gap:5px}.journal-summary strong{font:500 1.875rem 'Fraunces',Georgia;color:#435b3d}.journal-summary small{font-size:1.0625rem;color:#879176}.journal-friends{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.journal-friends button{display:flex;align-items:center;gap:10px;text-align:left;padding:12px;background:#f0f1e5;border-radius:15px;min-height:66px}.friend-initial{display:grid;place-items:center;width:35px;height:40px;border-radius:12px;font:500 1.4375rem 'Fraunces',Georgia;background:#dbe4ce;color:#435a3e;flex:none}.friend-1{background:#ecdfd0;color:#725538}.friend-2{background:#eae0bc;color:#6d5c25}.journal-friends strong{display:block;font-size:0.875rem}.journal-friends small{display:block;margin-top:3px;font-size:0.6875rem;line-height:1.35;color:#738066}.meadow-map{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.meadow-entry{border-top:3px solid var(--place-accent);background:#f8f7ef;padding:17px 12px;gap:10px}.map-number{color:var(--ink-soft);background:#f0eee1;font:500 1.3125rem 'Fraunces',Georgia}.map-daylight{font-size:0.625rem;letter-spacing:.06em;color:var(--place-accent);text-transform:uppercase;display:block;margin:3px 0 6px}.meadow-copy h3{font-size:1.4375rem}.friend-stamps{display:flex;gap:5px;margin-top:11px;flex-wrap:wrap}.friend-stamps span{font-size:0.6875rem;padding:5px 8px;border:1px dashed #d5dcc9;border-radius:8px;color:var(--ink-soft)}.friend-stamps .visited{border:1px solid #c3d1b6;background:#e8eddf;color:#506d40}.journal-note{text-align:center;margin-top:24px!important;font-size:0.8125rem!important}
.companion-strength{background:#f1f1e4;padding:13px 16px;border-radius:14px;text-align:left}.companion-strength strong{display:block;font-size:0.8125rem;color:#5e744c}.companion-strength span{display:block;margin-top:4px;font-size:0.8125rem;line-height:1.5;color:var(--ink-soft)}.memory-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:22px 0}.memory-stats strong{display:block;font:500 1.8125rem 'Fraunces',Georgia}.memory-stats strong small{font-size:0.9375rem;color:#939b85}.memory-stats span{display:block;font-size:0.6875rem;color:var(--ink-soft);margin-top:5px}.wardrobe-link{display:flex;align-items:center;gap:12px;width:100%;border:1px solid #dbe2cd;border-radius:14px;padding:12px 15px;margin-top:12px;font-size:0.875rem;text-align:left}.wardrobe-link>span:last-child{margin-left:auto}.fabric-swatch{display:inline-block;flex:none;width:27px;height:27px;border-radius:6px 6px 13px 6px;box-shadow:inset 0 0 0 3px #ffffff24}.wardrobe{display:grid;gap:8px;margin-top:23px}.bandana-option{display:flex;align-items:center;gap:15px;padding:13px 16px;min-height:67px;text-align:left;border:1px solid #dce2d0;border-radius:15px;background:#f5f5eb;width:100%}.bandana-option>span:nth-child(2){flex:1}.bandana-option strong{display:block;font-size:0.875rem}.bandana-option small{display:block;font-size:0.75rem;color:var(--ink-soft);margin-top:5px}.bandana-option.chosen{border-color:#869f70;background:#eaf0df}.bandana-option:disabled{opacity:1;cursor:default;border-style:dashed}.bandana-option:disabled:hover{background:#f5f5eb}.comfort-options{display:grid;gap:0;text-align:left;margin-top:22px}.comfort-option{display:flex;gap:18px;align-items:center;width:100%;padding:17px 0;border-bottom:1px solid #e3e7da;background:transparent;text-align:left}.comfort-option>span:first-child{flex:1}.comfort-option strong{display:block;font-size:0.9375rem}.comfort-option small{display:block;font-size:0.75rem;line-height:1.55;color:var(--ink-soft);margin-top:5px}.switch-track{width:44px;height:27px;border-radius:20px;background:#d9dfce;padding:3px;flex:none}.switch-track i{display:block;width:21px;height:21px;background:#fffdf4;border-radius:50%;transition:transform 160ms ease}.comfort-option[aria-checked=true] .switch-track{background:#79935e}.comfort-option[aria-checked=true] .switch-track i{transform:translateX(17px)}.studio-credit{font-size:0.75rem!important;margin-top:22px!important;color:#7e896f!important}.lesson-active .level-dots{display:none}
@media(max-width:600px){.daylight{font-size:0.6875rem;margin:6px 0}.chapter{max-width:190px}.field-tools{top:238px;right:6%;max-width:170px;gap:6px}.field-tools button{min-height:40px;font-size:0.75rem;padding:8px 11px}.objective #flock-mood{font-size:0.625rem}.chapter .text-button{min-height:40px}.chapter h1{font-size:1.6875rem}.chapter .eyebrow{font-size:0.5rem}.meadow-map{grid-template-columns:1fr}.journal-friends{gap:5px}.journal-friends button{display:block;padding:10px 7px;text-align:center}.friend-initial{margin:0 auto 8px;width:31px;height:32px}.journal-friends small{font-size:0.625rem}.journal-summary{gap:20px}.journal-summary strong{font-size:1.6875rem}.journal-summary>span{font-size:0.6875rem}.journal-summary small{font-size:0.875rem}dialog[data-screen=journal]{padding:30px 20px}.meadow-entry{padding:17px 13px}.memory-stats{margin:18px 0}.lesson-active .dog-card{bottom:365px}}
@media(max-height:740px) and (max-width:600px){.daylight{display:none}.field-tools{top:210px}.lesson-active .dog-card{display:none}}

@media(max-width:600px){.lesson-active .dog-card{display:none}}

/* On phones the journal provides meadow navigation without covering the field. */
@media(max-width:600px){.level-dots{display:none}.field-tools button{min-height:44px}.chapter .text-button{min-height:44px}}
.less-motion *{animation:none!important;transition:none!important}.less-motion button:active{transform:none}
.keepsake-preview{display:block;width:min(100%,330px);height:auto;margin:22px auto 0;border:1px solid #e1e4d5;border-radius:4px;box-shadow:0 9px 25px #455d3914}dialog[data-screen=keepsake]{width:470px}#pause-keepsake{min-height:44px;padding:10px 15px}
@media(min-width:901px) and (max-width:1100px){.dog-card{width:200px;bottom:48px;left:4%;padding:10px;gap:9px}.dog-avatar{width:48px;height:58px}.dog-info .tiny-label,.dog-info>span,.dog-sex,.card-chevron{display:none!important}.dog-info h2{font-size:1.5rem;margin:0}.mood{font-size:0.6875rem;margin-top:6px}}
@media(min-width:601px) and (max-width:900px){.dog-card{width:52px;height:64px;bottom:190px;left:4%;padding:4px;border-radius:14px}.dog-avatar{width:44px;height:54px;border-radius:10px}.dog-info,.card-chevron{display:none}}

.keepsake-pose{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:330px;margin:8px auto 0;text-align:left}.keepsake-pose span{font-size:0.75rem;color:#79856c}.keepsake-pose button{min-height:44px;white-space:nowrap;padding:8px 0 8px 10px;font-size:0.8125rem}

/* A small paper album, kept with the player's on-device memories. */
.album-door{display:flex;align-items:center;gap:14px;width:100%;margin:20px 0 8px;padding:17px 20px;border:1px solid #d8dfcc;border-radius:14px;background:#f5f3e9;text-align:left;color:#435b3d}.album-door-icon{display:grid;place-items:center;width:39px;height:46px;border:1px solid #cad5bb;border-radius:3px;background:#fffdf4;font-size:1.6875rem;transform:rotate(-7deg)}.album-door>span:nth-child(2){flex:1}.album-door strong,.album-door small{display:block}.album-door strong{font:500 1.3125rem 'Fraunces',Georgia}.album-door small{font-size:0.75rem;margin-top:5px;color:var(--ink-soft)}
dialog[data-screen=album]{width:760px;text-align:left;padding:36px}.album-intro{font-size:0.875rem!important;line-height:1.6!important}.album-filters{display:flex;flex-wrap:wrap;gap:7px;margin:22px 0}.album-filters button{min-height:44px;padding:10px 15px;border-radius:22px;background:#eeefdf;color:#738066;font-size:0.75rem}.album-filters button[aria-pressed=true]{background:#566e46;color:#fffdf4}.album-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 22px}.album-card{min-width:0;padding:0 0 10px;text-align:left;background:transparent;color:#435b3d}.album-image{position:relative;display:block;aspect-ratio:6/7;border:1px solid #e0e3d5;box-shadow:0 4px 12px #455d3910;overflow:hidden;border-radius:3px}.album-image img{display:block;width:100%;height:100%;object-fit:contain}.album-heart{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fffdf4;color:#a56668;font-size:1.0625rem}.album-card strong{display:block;font:500 1.3125rem/1.2 'Fraunces',Georgia;margin:13px 0 6px}.album-caption{display:block;font-size:0.75rem;line-height:1.5;color:#738066}.album-card small{display:block;font-size:0.6875rem;color:#8a937f;margin-top:4px}.album-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #dfe4d5;margin-top:20px;padding-top:10px;font-size:0.75rem;color:#7b886e}.album-pagination button,.album-back,.postcard-links button{min-height:44px}.album-pagination button:disabled{opacity:.35;cursor:default}.album-empty{text-align:center;padding:28px 15px 35px;border:1px dashed #d0dac1;border-radius:14px;background:#f8f8ee}.album-empty>span{font-size:2.5rem;color:#a6b48e}.album-empty h3{font:500 1.6875rem 'Fraunces',Georgia;margin:16px 0 10px;color:#435b3d}.album-empty p{font-size:0.875rem;line-height:1.6;max-width:310px;margin:0 auto 22px}.album-back{margin-top:15px}.postcard-links{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:12px}.postcard-links button{font-size:0.75rem}.muted-link{color:#8a8875}.album-notice{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#eaf0df;border-radius:10px;padding:10px 14px;margin-bottom:20px;font-size:0.8125rem}.album-notice button{min-height:44px}.keepsake-pose button[aria-pressed=true]{color:#a56668}#keep-postcard:disabled{background:#e7edda;color:#60754f;opacity:1}
@media(max-width:600px){dialog[data-screen=album]{padding:30px 20px}.album-grid{gap:20px 13px}.album-card strong{font-size:1.125rem}.album-caption{font-size:0.6875rem}.album-filters{gap:6px}.album-filters button{padding:8px 12px}.album-door{padding:14px 12px}.album-door strong{font-size:1.25rem}.album-door small{font-size:0.6875rem}.album-heart{right:5px;top:5px;width:25px;height:25px;font-size:0.875rem}}

.album-card:hover{background:transparent}.album-card:hover .album-image{border-color:#b7c6a7}.album-card:focus-visible{outline-offset:5px}

/* Legible ink and steady focus without changing the meadow palette. */
:root{--ink-soft:#59694f;--ink-detail:#626d58}
.eyebrow,.tiny-label,.chapter p,.daylight,.objective .tiny-label,.objective div div span,
.dog-info .tiny-label,.dog-info>span:not(.tiny-label),.card-chevron,.command kbd,.command.active kbd,
.bottom-meta,.bottom-meta button,.map-option small,.traits span,.instructions>div,
.journal-summary small,.journal-friends small,.map-daylight,.friend-stamps,
.memory-stats strong small,.album-intro,.album-caption,.album-card small,
.album-filters button,.album-pagination,.keepsake-pose span,.muted-link{color:var(--ink-soft)}
.studio-credit{color:var(--ink-soft)!important}
.album-filters button[aria-pressed=true]{color:#fffdf4}
.field-label{opacity:1;color:#455d3d;background:#fffdf4eb;padding:5px 8px;border-radius:7px;line-height:1.3}
.top-actions button{min-width:44px;min-height:44px}
button:focus-visible,a:focus-visible{outline:3px solid #38533b;outline-offset:3px;box-shadow:0 0 0 6px #fffdf4}
#world:focus-visible{outline:3px solid #38533b;outline-offset:-6px}
@media(max-width:600px){.field-label{font-size:0.5625rem;letter-spacing:.7px}.sound-off{left:12px;top:21px}.circle{width:44px;height:44px}}
@media(prefers-contrast:more){.objective,.dog-card,.command-bar,.message,#command-feedback{background:#fffdf4;border-color:#59694f;backdrop-filter:none}.field-label{background:#fffdf4}.comfort-option,.meadow-entry,.bandana-option,.album-image{border-color:#59694f}}
/* The heading is an announcement anchor, not an interactive control. */
#dialog-title:focus{outline:none}
.postcard-links a{color:inherit;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
/* A quiet chapter ending, using the companion's actual model and earned colors. */
dialog[data-screen=chapter]{width:510px}
dialog[data-screen=chapter] .eyebrow{display:block;margin-inline:24px}
.chapter-portrait{display:block;width:144px;height:144px;margin:24px auto 18px;border-radius:50% 50% 42% 42%;border:5px solid #edf0df;box-shadow:0 0 0 1px #d6ddc8}
.chapter-copy{max-width:360px;margin:0 auto!important}
.chapter-route{margin:22px 0;border-block:1px solid #dce2cf;text-align:left}
.chapter-route summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:48px;padding:8px 0;font-size:.875rem;cursor:pointer}
.chapter-route summary::-webkit-details-marker{display:none}
.chapter-route-count{margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap;color:#59694f}
.chapter-route-mark{font-size:1.125rem;line-height:1}
.chapter-route[open] .chapter-route-mark{transform:rotate(180deg)}
.chapter-route summary:focus-visible{outline:3px solid #38533b;outline-offset:4px;border-radius:4px}
.chapter-stamps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;list-style:none;padding:4px 0 18px;margin:0;text-align:left}
.chapter-stamps li{display:flex;align-items:baseline;gap:8px;font-size:.8125rem;line-height:1.5;color:#435b3d;min-width:0;overflow-wrap:anywhere}
.chapter-stamps li>span{flex:none;color:#627c4f}
.chapter-gift{display:flex;align-items:center;gap:16px;text-align:left;margin:24px 0 16px}
.chapter-gift .fabric-swatch{flex:none;width:38px;height:38px;border-radius:10px}
.chapter-gift strong{font:500 1.25rem/1.3 'Fraunces',Georgia}
.chapter-gift p{font-size:.8125rem;line-height:1.6;margin:6px 0 0}
.chapter-wear{min-height:48px;width:100%;white-space:normal}
.chapter-wear:disabled{opacity:1;background:#edf0df;color:#4e6344;cursor:default}
.chapter-door{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:16px 18px;border:1px solid #d7cba3;border-radius:16px;background:#f7f0d9;margin:22px 0;color:#435b3d}
.chapter-door>span:nth-child(2){flex:1;min-width:0}
.chapter-door strong{display:block;font:500 1.1875rem/1.3 'Fraunces',Georgia}
.chapter-door small{display:block;font-size:.8125rem;line-height:1.5;margin-top:5px;color:#59694f}
.chapter-seal{font-size:1.75rem;color:#886621;flex:none}
.reading-layout .chapter-stamps{grid-template-columns:1fr}
@media(max-width:360px){.chapter-stamps{grid-template-columns:1fr;gap:9px}.chapter-portrait{width:124px;height:124px}.chapter-gift{gap:12px}.chapter-door{padding:14px 12px}}
.compact-meadow-name{display:none}.chapter .text-button .journal-label{margin-left:0}
/* Short phones reserve the middle of the screen for the flock. */
@media(max-height:740px) and (max-width:600px){
 .chapter{top:78px;left:4%;max-width:215px}.chapter>h1,.chapter>.eyebrow{display:none}
 .chapter .text-button{position:relative;text-align:left;min-height:58px;padding:6px 23px 6px 0;border:0}
 .chapter .text-button .journal-label{display:block;font-size:0.625rem;color:var(--ink-soft)}
 .chapter .text-button .compact-meadow-name{display:block;font:500 1.3125rem/1.12 'Fraunces',Georgia;margin:4px 0 0;max-width:195px}
 .chapter .text-button .journal-arrow{position:absolute;right:0;top:10px;margin:0}
 .objective{top:80px;padding:9px 11px;right:4%;max-width:112px}.objective .progress-ring{display:none}
 .objective div div span,.objective #flock-mood{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
 .objective .tiny-label{font-size:0.4375rem;letter-spacing:.5px}.objective div div{margin-top:4px}
 .field-tools{top:155px;left:78px;right:4%;max-width:none;flex-wrap:nowrap;gap:6px}
 .field-tools button{padding:8px 9px;font-size:0.6875rem;min-height:44px}.field-tools #pace-toggle{flex:none}
 .field-tools button small{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
 .dog-card{top:155px;bottom:auto;left:4%;padding:4px;width:52px;height:54px;border-radius:13px}
 .dog-avatar{width:42px;height:44px}.dog-card .dog-info{display:none}
 .lesson-active .dog-card{display:flex}
}
@media(max-height:740px) and (max-width:360px){.chapter{max-width:175px}.chapter .text-button .compact-meadow-name{max-width:150px;font-size:1.1875rem}.field-tools button{font-size:0.625rem;padding:8px 7px}}
@media(max-width:360px){.command>span:not(.command-icon){white-space:nowrap;font-size:0.75rem}.command kbd{font-size:0.5625rem}}
@media(max-height:620px) and (max-width:600px){
 #coach-title{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
 #coach{padding:9px 11px}#coach-copy{margin:4px 0 0;font-size:0.75rem;line-height:1.4}
 .edition{display:none}header{top:max(12px,env(safe-area-inset-top))}.chapter{top:61px}.objective{top:65px}.field-tools,.dog-card{top:135px}
}
@media(max-height:740px) and (max-width:600px){.lesson-active .field-tools{left:4%}}

.save-notice{position:relative;pointer-events:auto;width:100%;margin:0 0 10px;padding:12px 16px;border:1px solid #c6a873;border-radius:16px;background:#fff3d9;color:#574124;box-shadow:0 5px 20px #344b3e18;display:flex;align-items:center;gap:14px;text-align:left;font-size:0.8125rem;line-height:1.5}
.save-notice[hidden]{display:none}.save-notice button{flex-shrink:0;min-height:44px;padding:8px 12px;border-radius:11px;background:#655335;color:#fffdf3;font-size:0.75rem;font-weight:600}.save-notice button[aria-disabled="true"]{opacity:.65}
dialog .save-notice{position:static;transform:none;width:100%;margin-top:18px;box-shadow:none}
#loading{justify-content:flex-start;overflow-y:auto;overscroll-behavior:contain;padding:max(20px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
#loading>*{flex-shrink:0;max-width:100%}
#loading>:first-child{margin-top:auto}
#loading>:last-child{margin-bottom:auto}
#retry-meadow{scroll-margin-block:32px}
#loading p{max-width:30rem;padding:0;text-align:center;line-height:1.6;color:var(--ink)}
.graphics-recovery{width:440px;padding:30px 24px}.graphics-recovery h2:focus{outline:none}.graphics-recovery .graphics-save-error{color:#815446}.graphics-recovery button:disabled,.graphics-recovery button[aria-disabled=true]{opacity:.65;cursor:wait}

/* Let text follow browser preferences and iOS Dynamic Type, retaining our faces. */
html{font:100% sans-serif;font:-apple-system-body}
.command-icon,.instruction-icon,.objective-icon,.brand-paw{font-size:26px}
.brand-paw{font-size:37px}.circle{font-size:20px}dialog .close{font-size:23px}
#meadow-window,#lesson-details{display:none}
/* Keep the scrolling viewport itself clear of system bars, including after rotation. */
:root{--dialog-safe-top:env(safe-area-inset-top,0px);--dialog-safe-right:env(safe-area-inset-right,0px);--dialog-safe-bottom:env(safe-area-inset-bottom,0px);--dialog-safe-left:env(safe-area-inset-left,0px)}
dialog{--dialog-gap:16px;position:fixed;inset:var(--dialog-safe-top) var(--dialog-safe-right) var(--dialog-safe-bottom) var(--dialog-safe-left);margin:auto;max-width:calc(100vw - var(--dialog-safe-left) - var(--dialog-safe-right) - 2 * var(--dialog-gap));max-height:min(90dvh,calc(100dvh - var(--dialog-safe-top) - var(--dialog-safe-bottom) - 2 * var(--dialog-gap)));overflow-y:auto;overflow-x:hidden;overflow-wrap:anywhere;scroll-padding:20px}
dialog h2{padding-inline:12px}dialog .close{z-index:1}
.comfort-option>span:first-child,.bandana-option>span:nth-child(2){min-width:0}
.primary,.secondary,.text-button{overflow-wrap:break-word}
.reading-layout dialog{--dialog-gap:12px;width:760px;padding:54px 20px 24px;max-height:calc(100dvh - var(--dialog-safe-top) - var(--dialog-safe-bottom) - 2 * var(--dialog-gap))}
.reading-layout .meadow-map,.reading-layout .album-grid{grid-template-columns:1fr}
.reading-layout .journal-friends{grid-template-columns:1fr}
.reading-layout .journal-friends button{display:flex;text-align:left}.reading-layout .friend-initial{margin:0;width:48px;height:48px}
.reading-layout .memory-stats{grid-template-columns:1fr;text-align:left;gap:16px}
.reading-layout .memory-stats>div{display:flex;align-items:center;gap:16px}
.reading-layout .keepsake-pose,.reading-layout .album-pagination,.reading-layout .save-notice{flex-wrap:wrap}
.reading-layout .keepsake-pose button{white-space:normal}.reading-layout .dog-select{flex-wrap:wrap}
.reading-layout .map-number{width:44px;height:44px;font-size:1rem}
.reading-layout .comfort-option{align-items:flex-start}.reading-layout .switch-track{margin-top:5px}

/* Larger text uses measured rows, leaving a real window onto the meadow. */
.reading-layout header{top:max(10px,env(safe-area-inset-top));left:12px;right:12px}
.reading-layout .wordmark{font-size:0}.reading-layout .brand-paw{font-size:32px;margin:0}.reading-layout .edition{display:none}
.reading-layout main{display:grid;grid-template-columns:52px minmax(0,1fr) 105px;grid-template-rows:auto auto minmax(80px,1fr) auto;grid-template-areas:'chapter chapter objective' 'dog tools tools' 'field field field' 'bottom bottom bottom';gap:6px;padding:max(64px,calc(env(safe-area-inset-top) + 56px)) 12px max(8px,env(safe-area-inset-bottom));}
.reading-layout .chapter,.reading-layout .objective,.reading-layout .field-tools,.reading-layout .dog-card,.reading-layout .bottom{position:static;inset:auto;transform:none;min-width:0;max-width:none;margin:0}
.reading-layout .chapter{grid-area:chapter;align-self:center}
.reading-layout .chapter>h1,.reading-layout .chapter>.eyebrow,.reading-layout .chapter>p,.reading-layout .daylight,.reading-layout .chapter .journal-label{display:none}
.reading-layout .chapter .text-button{padding:0 22px 0 0;position:relative;text-align:left;width:100%;border:0;min-height:44px}
.reading-layout .chapter .compact-meadow-name{display:block;max-width:none;margin:0;font:500 1rem/1.15 'Fraunces',Georgia;overflow-wrap:anywhere}
.reading-layout .chapter .journal-arrow{position:absolute;right:0;top:50%;margin:0;transform:translateY(-50%);font-size:20px}
.reading-layout .objective{grid-area:objective;padding:6px 8px;border-radius:12px;justify-content:center}
.reading-layout .objective strong{font-size:1rem;white-space:nowrap;margin:0}.reading-layout .objective .tiny-label{font-size:.4375rem;letter-spacing:.5px}
.reading-layout .objective div div{margin-top:0}.reading-layout .objective .progress-ring,.reading-layout .objective-icon{display:none}
.reading-layout .objective div div span,.reading-layout .objective #flock-mood{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.reading-layout .field-tools{grid-area:tools;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;align-items:center}
.reading-layout .field-tools button{font-size:.6875rem;padding:6px 8px;min-height:44px;line-height:1.2}
.reading-layout .field-tools button small{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.reading-layout .dog-card,.reading-layout.lesson-active .dog-card{display:flex;grid-area:dog;width:52px;height:54px;padding:4px;align-self:center}
.reading-layout .dog-avatar{width:42px;height:44px}.reading-layout .dog-info,.reading-layout .card-chevron{display:none}
.reading-layout #meadow-window{display:block;grid-area:field;min-width:0;min-height:0}
.reading-layout .bottom{grid-area:bottom;width:100%;max-width:760px;justify-self:center;display:flex;flex-direction:column;gap:5px;pointer-events:auto}
.reading-layout .command-bar{order:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:5px;border-radius:16px}
.reading-layout .command{min-width:0;min-height:48px;font-size:.8125rem;padding:6px 2px;justify-content:center;line-height:1.15}
.reading-layout .command>span:not(.command-icon){font-size:inherit;white-space:normal;overflow-wrap:normal}
.reading-layout .command-icon,.reading-layout .command kbd,.reading-layout .divider{display:none}
.reading-layout #command-feedback{order:1;width:100%;max-width:none;font-size:.75rem;line-height:1.25;padding:7px 10px 10px;min-height:0;margin:0}
.reading-layout #coach{order:2;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px;padding:6px 10px;margin:0;width:100%;max-width:none}
.reading-layout #coach>div{flex-basis:100%}.reading-layout #coach-title,.reading-layout #coach-copy{display:none}
.reading-layout #coach-step{font-size:.5rem;letter-spacing:.5px;margin:0}
.reading-layout #lesson-details{display:block;border-radius:10px;padding:5px 10px;background:#edf0e1;min-height:44px;font-size:.6875rem}
.reading-layout #coach-skip{font-size:.6875rem;padding:5px 10px}
.reading-layout .bottom-meta{order:3;gap:12px;margin:0;align-items:center;text-align:left}.reading-layout .bottom-meta button{font-size:.5625rem;line-height:1.2}
.reading-layout .message{display:none}.reading-layout .level-dots{display:none}
.reading-layout #fetch-controls{order:0;flex-wrap:wrap;font-size:.75rem}
.reading-layout .field-label{font-size:.5rem;letter-spacing:0}.reading-layout .dog-bubble{font-size:.625rem;white-space:normal;max-width:180px}
@media(min-aspect-ratio:5/4){
 .reading-layout main{grid-template-columns:52px minmax(0,1fr) 105px minmax(250px,38%);grid-template-rows:auto auto minmax(80px,1fr);grid-template-areas:'chapter chapter objective bottom' 'dog tools tools bottom' 'field field field bottom'}
 .reading-layout .bottom{max-height:100%;overflow-y:auto;align-self:stretch;justify-content:flex-start;padding:3px;scroll-padding:8px}
 .reading-layout .command-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.objective-compact{display:none}
.reading-layout .objective-full{display:none}.reading-layout .objective-compact{display:inline}
.reading-layout .objective .tiny-label{display:block;line-height:1.2;font-size:.5625rem;letter-spacing:0}
.reading-layout .bottom{max-height:45dvh;overflow-y:auto;scroll-padding:8px;padding:2px}
.reading-layout .command-bar{position:sticky;top:0;z-index:1;background:#fffdf5}
.reading-layout .message{display:block;order:2;font-size:.6875rem;line-height:1.25;margin:0;max-width:none;padding:6px 9px;border-radius:12px}
.reading-layout #coach{order:3}.reading-layout .bottom-meta{order:4}
.reading-layout .dog-bubble{display:none}
@media(min-aspect-ratio:5/4){.reading-layout .bottom{max-height:100%}}
/* Laptop-height windows have room for the lesson beside the field. */
@media(min-width:1000px) and (min-height:601px) and (min-aspect-ratio:5/4){
 .reading-layout .chapter .compact-meadow-name{font-size:1.375rem;line-height:1.2}
 .reading-layout .command{min-height:92px;gap:6px}
 .reading-layout .command-icon{display:block}
 .reading-layout .command kbd{display:block;white-space:normal;font-size:.625rem;line-height:1.25}
 .reading-layout #coach{padding:16px;text-align:left;gap:10px}
 .reading-layout #coach-title{display:block;font-size:1.25rem;line-height:1.25;margin-top:8px}
 .reading-layout #coach-copy{display:block;font-size:.875rem;line-height:1.55;margin-top:8px}
 .reading-layout #lesson-details{display:none}
}
.reading-layout .bottom>*{flex-shrink:0}
/* Meadow shortcuts share the controls' flow, so they cannot cover a command. */
.level-dots{position:static;inset:auto;grid-template-columns:repeat(6,44px);justify-content:center;gap:8px;margin-top:8px}
@media(min-width:1000px){.level-dots{position:absolute;left:calc(100% + 24px);right:auto;bottom:12px;width:max-content;grid-template-columns:repeat(3,44px);margin:0}}
/* Herding-only controls are unavailable during fetch; hide them until the visit resumes. */
body:has(#fetch-controls:not([hidden])) .field-tools,body:has(#fetch-controls:not([hidden])) .level-dots{display:none}
/* Fetch instructions lead the scrollable panel; its message already names the action. */
.reading-layout .bottom:has(#fetch-controls:not([hidden])) #command-feedback{display:none}
.reading-layout .bottom:has(#fetch-controls:not([hidden])) .message{order:-1}
.reading-layout #fetch-controls{padding:10px;gap:10px;flex-wrap:nowrap}
.reading-layout #fetch-controls>span{font-size:max(14px,.6875rem);white-space:nowrap}
.reading-layout #fetch-count{margin-left:6px}
.reading-layout #end-fetch{flex:1;min-width:0;min-height:44px;padding:10px 12px;font-size:max(14px,.6875rem);line-height:1.2}
.reading-layout:has(#coach:not([hidden])) .dog-card{display:flex;bottom:auto;align-self:auto}
@media(max-width:360px){
 .reading-layout .command-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
 .reading-layout .bottom{max-height:33dvh;scroll-padding-top:115px}
}

.reading-layout #pen-label,.reading-layout #pen-label-second{font-size:0;padding:4px 7px}
.reading-layout #pen-label span,.reading-layout #pen-label-second span{display:none}
.reading-layout #pen-label::after,.reading-layout #pen-label-second::after{content:attr(data-marker);font:22px/1.2 'DM Sans',sans-serif}
.reading-layout dialog h2{font-size:max(32px,1.25rem);line-height:1.15;padding-inline:0;letter-spacing:-.025em;hyphens:auto}

.reading-layout .wordmark{display:none}.reading-layout header{justify-content:flex-end}
.reading-layout .dog-card,.reading-layout.lesson-active .dog-card{position:fixed;top:max(10px,env(safe-area-inset-top));left:12px;grid-area:auto;z-index:1}
.reading-layout main{grid-template-areas:'chapter chapter objective' 'tools tools tools' 'field field field' 'bottom bottom bottom'}
.reading-layout #gate-toggle,.reading-layout #flock-focus{font-size:0}
.reading-layout #flock-focus>span{display:none}
.reading-layout #gate-toggle::before,.reading-layout #flock-focus::before{content:attr(data-compact);font-size:.6875rem}
@media(min-aspect-ratio:5/4){.reading-layout main{grid-template-areas:'chapter chapter objective bottom' 'tools tools tools bottom' 'field field field bottom'}}
.reading-layout main{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
.reading-layout header{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right))}
.reading-layout .dog-card,.reading-layout.lesson-active .dog-card{left:max(12px,env(safe-area-inset-left))}
@media(min-aspect-ratio:5/4) and (max-height:600px){
 .reading-layout main{grid-template-rows:auto minmax(80px,1fr);grid-template-areas:'chapter chapter objective bottom' 'field field field bottom'}
 .reading-layout .field-tools{position:fixed;top:max(10px,env(safe-area-inset-top));left:calc(max(12px,env(safe-area-inset-left)) + 64px);right:calc(max(12px,env(safe-area-inset-right)) + 214px);min-height:44px;z-index:2}
}

@media(max-width:600px){.brand-paw{font-size:31px}.command-icon{font-size:24px}.circle{font-size:17px}}

/* Short portrait phones keep the whole meadow above the command panel. */
@media(max-width:600px) and (max-height:740px) and (orientation:portrait){
 .reading-layout .chapter .compact-meadow-name{font-size:max(20px,1rem)}
 .reading-layout .command{font-size:max(14px,.8125rem)}
 .reading-layout .field-tools button,.reading-layout #gate-toggle::before,.reading-layout #flock-focus::before{font-size:max(12px,.6875rem)}
 .reading-layout #command-feedback{font-size:max(13px,.75rem)}
 .reading-layout .message,.reading-layout .bottom-meta button{font-size:max(12px,.6875rem)}
 .reading-layout #lesson-details,.reading-layout #coach-skip{font-size:max(13px,.6875rem)}
}
@media(min-width:361px) and (max-width:600px) and (min-height:600px) and (max-height:740px) and (orientation:portrait){
 .reading-layout #coach{text-align:left;padding:9px 12px}
 .reading-layout #coach-step{font-size:max(10px,.5rem)}
 .reading-layout #coach-copy{display:block;font-size:max(14px,.75rem);line-height:1.4;margin:7px 0 0}
 .reading-layout #lesson-details{display:none}
}

/* Make the listening pose legible without changing companion-card sizing. */
#recall-portrait{width:144px;height:144px}

.postcard-preparing{aspect-ratio:6/7;display:grid;place-items:center;padding:30px;background:#fffdf4;color:var(--ink-soft);font-size:1rem;line-height:1.6;text-align:center}

/* A saved Happy Heart, visible in the compact portrait as well as care. */
.dog-avatar{position:relative;overflow:visible;}
.dog-avatar .avatar-heart{position:absolute;right:-5px;bottom:-4px;display:grid;place-items:center;width:26px;height:26px;background:#fff8ed;border:1px solid #e8cebd;border-radius:50%;font-size:20px;line-height:1;}
.avatar-heart svg{grid-area:1/1;display:block;width:1em;height:1em;color:#e7d6c9;}
.avatar-heart #avatar-heart-fill{color:#a6534c;clip-path:inset(60% 0 0);transition:clip-path 220ms ease-out;}
.heart-summary{color:#84483f;font-size:max(11px,.6875rem);margin-top:5px;line-height:1.3;}
.happy-heart{margin:22px 0;padding:18px 20px;border-radius:22px;background:#f7eee4;border:1px solid #e7d6c4;text-align:left;}
.heart-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline;color:#75473f;}
.heart-heading span{white-space:nowrap;font-variant-numeric:tabular-nums;}
.heart-pips{display:flex;gap:4px;margin:10px 0;color:#d5c5b6;font-size:clamp(24px,1.75rem,34px);line-height:1.2;}
.heart-pips svg{display:block;width:1em;height:1em;}
.heart-pips .filled{color:#a6534c;}
.happy-heart p{font-size:max(14px,.875rem);line-height:1.55;margin:0;color:#725b50;}
.less-motion #avatar-heart-fill{transition:none;}
@media(prefers-reduced-motion:reduce){#avatar-heart-fill{transition:none;}}

/* Wide screens keep the editorial sidebar and reserve unobstructed playing space. */
.meadow-sidebar{display:contents}
.desktop-layout main{display:grid;grid-template-columns:minmax(250px,26%) minmax(0,1fr);grid-template-rows:minmax(80px,1fr) auto;grid-template-areas:'sidebar field' 'sidebar bottom';gap:20px 28px;padding:112px 4% max(26px,env(safe-area-inset-bottom))}
.desktop-layout .meadow-sidebar{grid-area:sidebar;display:flex;flex-direction:column;gap:16px;min-height:0;overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;padding:3px}
.desktop-layout .chapter,.desktop-layout .objective,.desktop-layout .field-tools,.desktop-layout .dog-card,.desktop-layout .bottom{position:static;inset:auto;transform:none;margin:0;min-width:0;max-width:none}
.desktop-layout .chapter{order:0;flex-shrink:0}.desktop-layout .chapter h1{font-size:2.5rem;margin:12px 0}.desktop-layout .chapter p{margin:10px 0 0}
.desktop-layout .objective{order:1;align-self:flex-start;padding:14px 16px;flex-shrink:0}
.desktop-layout .field-tools{order:2;justify-content:flex-start;flex-wrap:wrap;flex-shrink:0}
.desktop-layout #meadow-window{grid-area:field;display:block;min-width:0;min-height:0}
.desktop-layout .dog-card{order:3;flex-shrink:0;margin-top:auto;align-self:flex-start;max-width:100%;width:287px}
.desktop-layout .bottom{grid-area:bottom;position:relative;width:min(490px,calc(100% - 172px));justify-self:center;margin-right:172px;align-self:end}
.desktop-layout #command-feedback{line-height:1.4;min-height:calc(2.8em + 25px)}
.desktop-layout .message{line-height:1.4;min-height:calc(2.8em + 16px)}

@media(max-width:1280px) and (max-height:900px){
 .desktop-layout .chapter>.eyebrow,.desktop-layout .chapter>p,.desktop-layout .chapter>.daylight{display:none}
 .desktop-layout .meadow-sidebar{gap:8px}
 .desktop-layout .chapter h1{font-size:2rem;margin:4px 0 6px}
 .desktop-layout .objective{padding:12px;gap:8px}.desktop-layout .objective-icon{display:none}
}

/* Tall phones give the companion and field tools their own row above play. */
.phone-layout main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto minmax(80px,1fr) auto;grid-template-areas:'chapter objective' 'dog tools' 'field field' 'bottom bottom';gap:8px;padding:max(106px,calc(env(safe-area-inset-top) + 92px)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
.phone-layout .chapter,.phone-layout .objective,.phone-layout .field-tools,.phone-layout .dog-card,.phone-layout.lesson-active .dog-card,.phone-layout .bottom{position:static;inset:auto;transform:none;min-width:0;max-width:none;margin:0}
.phone-layout .chapter{grid-area:chapter;align-self:center}
.phone-layout .chapter>h1,.phone-layout .chapter>.eyebrow,.phone-layout .chapter>p,.phone-layout .chapter>.daylight,.phone-layout .journal-label{display:none}
.phone-layout .chapter .text-button{padding:0 22px 0 0;position:relative;text-align:left;width:100%;border:0;min-height:44px}
.phone-layout .chapter .compact-meadow-name{display:block;margin:0;font:500 1.5rem/1.15 'Fraunces',Georgia}
.phone-layout .chapter .journal-arrow{position:absolute;right:0;top:50%;margin:0;transform:translateY(-50%);font-size:20px}
.phone-layout .objective{grid-area:objective;padding:8px 10px;border-radius:16px;justify-content:center}
.phone-layout .objective-full,.phone-layout .objective-icon,.phone-layout .progress-ring{display:none}
.phone-layout .objective-compact{display:inline}.phone-layout .objective .tiny-label{font-size:.625rem;letter-spacing:.5px}
.phone-layout .objective strong{font-size:1.25rem}.phone-layout .objective div div{margin-top:2px}.phone-layout #flock-mood{display:none}
.phone-layout .dog-card{grid-area:dog;align-self:center;width:100%;padding:8px;gap:8px}
.phone-layout .dog-card .dog-avatar{width:39px;height:43px;flex-shrink:0}
.phone-layout .dog-info{min-width:0}.phone-layout .dog-info .mood{display:none}
.phone-layout .heart-summary{font-size:11px;line-height:1.25}
.phone-layout .field-tools{grid-area:tools;display:flex;justify-content:flex-end;flex-wrap:wrap;align-content:center;gap:5px}
.phone-layout .field-tools button{min-height:44px;padding:6px 10px;font-size:12px;line-height:1.25;max-width:100%}
.phone-layout .field-tools small{font-size:11px}
.phone-layout #meadow-window{display:block;grid-area:field;min-width:0;min-height:0}
.phone-layout .bottom{grid-area:bottom;display:flex;flex-direction:column;gap:5px;width:100%;max-height:36dvh;overflow-y:auto;scroll-padding:80px 0 8px;padding:2px}
.phone-layout .bottom>*{flex-shrink:0}
.phone-layout .command-bar{order:0;position:sticky;top:0;z-index:1;background:#fffdf5}
.phone-layout .command{min-height:62px}.phone-layout .command kbd{display:none}
.phone-layout #command-feedback{order:1;margin:0;width:100%;line-height:1.3;min-height:calc(2.6em + 21px)}
.phone-layout .message{order:2;margin:0;max-width:none;line-height:1.4;min-height:calc(4.2em + 12px)}
.phone-layout #coach{order:3;margin:0;width:100%;text-align:left;flex-wrap:wrap;gap:6px;padding:10px 12px}
.phone-layout #coach>div{flex:1;min-width:200px}.phone-layout #coach-title{display:none}.phone-layout #coach-copy{font-size:14px;line-height:1.4}
.phone-layout .bottom-meta{order:4;margin:0;align-items:center}
.phone-layout .level-dots{display:none}
.phone-layout #fetch-controls{order:0;gap:8px;padding:10px}
.phone-layout .bottom:has(#fetch-controls:not([hidden])) #command-feedback{display:none}
.phone-layout .bottom:has(#fetch-controls:not([hidden])) .message{order:-1}

/* Camera controls stay sharp and separate from the scene's zoom. */
#view-toggle svg{display:block;margin:auto}
#view-panel{position:fixed;z-index:20;top:max(72px,calc(env(safe-area-inset-top) + 64px));right:max(12px,env(safe-area-inset-right));width:min(280px,calc(100% - 24px));max-height:calc(100dvh - 96px);overflow-y:auto;padding:12px;background:#fffdf3;border:1px solid #cbd4be;border-radius:18px;box-shadow:0 8px 28px #344b3e20;pointer-events:auto}
.view-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:1rem}
#view-panel button{min-width:44px;min-height:44px;border-radius:12px;background:#e8eddd;font-size:1rem}
#view-close{font-size:1.5rem!important;background:transparent!important}
.zoom-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;margin-top:8px}
#view-panel button:disabled{opacity:.45;cursor:default}
#zoom-status{font-size:.8125rem;line-height:1.45;margin:10px 0;color:#52634b}
#home-signs{width:100%;padding:8px;line-height:1.35}
button.home-sign{pointer-events:auto;min-height:44px;min-width:44px;cursor:pointer;color:#405536}
button.home-sign:active{transform:translate(-50%,-100%) scale(.97)}
button.home-sign span{margin-left:8px;font-size:18px}
@media(max-width:600px){header .top-actions{gap:6px}.wordmark{font-size:1.4rem}.wordmark .brand-paw{display:none}}

/* One quiet receipt below the controls; longer advice is available on request. */
.bottom{display:flex;flex-direction:column;gap:4px}
.bottom .command-bar{order:0}
.bottom #command-feedback{order:1;max-width:none;width:100%;min-height:44px;margin:0;padding:0 4px 5px 10px;border:0;background:none;backdrop-filter:none;border-radius:0;gap:8px;font-size:.8125rem;line-height:1.3}
#tip-toggle{flex:none;pointer-events:auto;min-height:44px;min-width:44px;padding:6px 10px;border-radius:12px;background:#fffdf3b8;font-size:.75rem}
#tip-toggle[aria-expanded="true"]{background:#e7eddb}
.bottom .message{order:2;min-height:0;margin:0;max-width:none;padding:8px 12px;border-radius:12px;line-height:1.4}
.bottom:not(.tip-open):not(:has(#fetch-controls:not([hidden]))) .message{position:absolute;width:1px;height:1px;min-height:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
.bottom.tip-open .message{display:block}
.bottom #coach{order:-1}
.bottom .bottom-meta{order:4}
.bottom:has(#fetch-controls:not([hidden])) #command-feedback{display:none}
.bottom:has(#fetch-controls:not([hidden])) .message{order:1;background:none;backdrop-filter:none;padding:4px 10px}
.bottom #fetch-controls{order:0}
/* Changing fetch instructions must not anchor the lower buttons by scrolling
   the beginning of the new message out of the compact panel. */
.bottom:has(#fetch-controls:not([hidden])){overflow-anchor:none}
.reading-layout .bottom #coach,.phone-layout .bottom #coach{order:3}

.bottom.tip-open #message{display:block}
.bottom .level-dots{order:3}
#tip-toggle span{display:inline-block}
#tip-toggle[aria-expanded="true"] span{transform:rotate(180deg)}

/* Portrait tablets reserve the same real field boundary as phone and desktop. */
.tablet-layout main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto minmax(80px,1fr) auto;grid-template-areas:'chapter objective' 'chapter tools' 'field field' 'bottom bottom';gap:12px;padding:max(112px,calc(env(safe-area-inset-top) + 96px)) 4% max(26px,env(safe-area-inset-bottom))}
.tablet-layout .chapter,.tablet-layout .objective,.tablet-layout .field-tools,.tablet-layout .bottom{position:static;inset:auto;transform:none;margin:0;min-width:0;max-width:none}
.tablet-layout .chapter{grid-area:chapter;max-width:300px}
.tablet-layout .chapter h1{font-size:2.25rem;margin:12px 0;line-height:1.15}
.tablet-layout .objective{grid-area:objective;justify-self:end;align-self:start;padding:14px}
.tablet-layout .field-tools{grid-area:tools;justify-self:end;align-self:start;justify-content:flex-end;max-width:240px}
.tablet-layout #meadow-window{grid-area:field;display:block;min-width:0;min-height:0}
.tablet-layout .bottom{grid-area:bottom;width:min(490px,calc(100% - 120px));justify-self:center;max-height:38dvh;overflow-y:auto;scroll-padding:8px;padding:3px}
.tablet-layout .bottom>*{flex-shrink:0}
.tablet-layout .level-dots{position:static;width:auto;grid-template-columns:repeat(6,44px);justify-content:center;gap:8px;margin:8px 0 0}
.tablet-layout .dog-card,.tablet-layout.lesson-active .dog-card{left:4%;top:auto;bottom:max(30px,env(safe-area-inset-bottom));width:52px;height:64px;padding:4px;border-radius:14px}
.tablet-layout .dog-avatar{width:44px;height:54px;border-radius:10px}
.tablet-layout .dog-info,.tablet-layout .card-chevron{display:none}
@media(max-height:950px){.tablet-layout .chapter>.eyebrow,.tablet-layout .chapter>.daylight,.tablet-layout .chapter>p{display:none}.tablet-layout .chapter h1{font-size:2rem;margin:8px 0}.tablet-layout .field-tools{gap:5px}.tablet-layout .objective{padding:10px}}
@media(max-height:950px){
 .tablet-layout .field-tools{max-width:none;width:100%}
 .tablet-layout .level-dots{display:none}
 .tablet-layout .command kbd{display:none}
.tablet-layout .command{min-height:62px;padding:6px 8px}
}

/* Phone play gives the world the screen; secondary actions live in Pause. */
.mobile-pause-option{display:none}
.mobile-play-layout .mobile-pause-option{display:block}
.mobile-play-layout header{top:max(8px,env(safe-area-inset-top));left:66px;right:max(10px,env(safe-area-inset-right));height:44px;gap:8px}
.mobile-play-layout .wordmark{font-size:18px;letter-spacing:-.6px;display:flex;align-items:center;white-space:nowrap}
.mobile-play-layout .wordmark .edition,.mobile-play-layout .wordmark .brand-paw{display:none}
.mobile-play-layout main{grid-template-columns:minmax(96px,1fr) auto 66px;grid-template-rows:auto minmax(80px,1fr) auto;grid-template-areas:'chapter tools objective' 'field field field' 'bottom bottom bottom';gap:6px;padding:max(60px,calc(env(safe-area-inset-top) + 52px)) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
.mobile-play-layout .chapter .compact-meadow-name{font-size:18px;line-height:1.15}
.mobile-play-layout .chapter .text-button{padding-right:20px;min-height:44px}
.mobile-play-layout .objective{padding:0;min-height:44px;border:0;border-radius:0;box-shadow:none;background:none;backdrop-filter:none}
.mobile-play-layout .objective>div:first-of-type{display:flex;flex-direction:column;align-items:center;gap:0}
.mobile-play-layout .objective strong{font-size:16px;line-height:1.2;margin:0}
.mobile-play-layout .objective div div{margin:0}
.mobile-play-layout .objective .tiny-label{font-size:10px;letter-spacing:0;line-height:1.2}
.mobile-play-layout .objective div div>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.mobile-play-layout .field-tools{position:static;inset:auto;grid-area:tools;max-width:190px;min-width:0;gap:4px;align-self:center;justify-content:flex-end}
.mobile-play-layout .field-tools button{font-size:12px;min-height:44px;padding:6px 8px}
.mobile-play-layout #gate-toggle,.mobile-play-layout #flock-focus{font-size:0}
.mobile-play-layout #flock-focus>span,.mobile-play-layout .field-tools small{display:none}
.mobile-play-layout #gate-toggle::before,.mobile-play-layout #flock-focus::before{content:attr(data-compact);font-size:12px}
body.mobile-play-layout #dog-card,body.mobile-play-layout.lesson-active #dog-card{position:fixed;display:flex;grid-area:auto;align-self:auto;top:max(8px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));bottom:auto;width:44px;height:44px;min-height:44px;padding:2px;z-index:2;border-radius:12px}
.mobile-play-layout .dog-avatar{width:38px;height:38px;border-radius:9px}
.mobile-play-layout .dog-info,.mobile-play-layout .card-chevron{display:none}
.mobile-play-layout #meadow-window{margin-inline:-10px}
.mobile-play-layout .bottom{max-height:34dvh;scroll-padding:62px 0 8px;padding:0;gap:3px}
.mobile-play-layout .command-bar{padding:4px;gap:3px;border-radius:18px;grid-template-columns:repeat(4,minmax(0,1fr))}
.mobile-play-layout .command{min-height:50px;padding:4px 2px;font-size:13px;line-height:1.15;gap:2px}
.mobile-play-layout .command-icon{display:block;font-size:22px;line-height:24px}
.mobile-play-layout .command kbd,.mobile-play-layout .divider{display:none}
.mobile-play-layout .bottom #command-feedback{font-size:12px;padding:0 0 0 6px;min-height:44px;line-height:1.2}
.mobile-play-layout #tip-toggle{font-size:12px}
.mobile-play-layout .bottom #coach{order:3;padding:6px 10px;gap:8px;flex-wrap:nowrap}
.mobile-play-layout #coach>div{min-width:0;flex:1;flex-basis:auto}
.mobile-play-layout #coach-step{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.mobile-play-layout #coach-title,.mobile-play-layout #lesson-details{display:none}
.mobile-play-layout #coach-copy{display:block;font-size:13px;line-height:1.35;margin:0}
.mobile-play-layout #coach-skip{font-size:12px;min-height:44px;padding:6px 8px}
.mobile-play-layout .bottom-meta{display:none}
.mobile-play-layout #fetch-controls{padding:5px 8px;gap:8px}
.mobile-play-layout #fetch-controls>span{font-size:14px}
.mobile-play-layout #end-fetch{font-size:14px;min-height:44px;padding:8px 10px}
.mobile-play-layout .bottom .message{font-size:13px;line-height:1.3}
.mobile-play-layout #pen-label,.mobile-play-layout #pen-label-second{font-size:0;padding:4px 7px}
.mobile-play-layout #pen-label span,.mobile-play-layout #pen-label-second span{display:none}
.mobile-play-layout #pen-label::after,.mobile-play-layout #pen-label-second::after{content:attr(data-marker);font:22px/1.2 'DM Sans',sans-serif}
@media(max-width:380px){.mobile-play-layout .wordmark{display:none}.mobile-play-layout header{justify-content:flex-end}.mobile-play-layout .field-tools{max-width:115px}}

#save-keepsake[aria-disabled=true],#another-pose[aria-disabled=true]{cursor:wait}

/* Compact dock buttons keep the whole keyboard cue inside their scrollport. */
:is(.reading-layout,.phone-layout,.tablet-layout) .bottom :is(#tip-toggle,#coach-skip,#lesson-details,#end-fetch):focus-visible{outline-offset:-3px;box-shadow:inset 0 0 0 6px #fffdf4}
:is(.reading-layout,.phone-layout,.tablet-layout) .bottom .command:focus-visible{outline-offset:0;box-shadow:none}
